define("wixappsCore/core/proxyFactory",["lodash","react","utils"],function(a,b,c){"use strict";var d={};var e={};function f(a,b){b.displayName=a+"Proxy";d[a]=b}function g(c,f){if(!a.has(d,c)){c="View"}var h=e[c];if(h){return f?h.class:h.factory}var i=d[c];if(!i){throw"no such proxy definition for name: "+c}var j=b.createClass(i);h=b.createFactory(j);e[c]={class:j,factory:h};return g(c,f)}function h(a){delete e[a]}function i(a,b){if(!d.hasOwnProperty(a)){c.log.error("Trying to extend component ["+a+"] but the component is not defined");return}var e=d[a];e.mixins=[b].concat(e.mixins||[])}function j(b){return a.has(d,b)}var k=function(a){return{displayName:a,render:function(){return b.DOM.div(null,a)}}};var l=["Label","ClippedParagraph","ClippedParagraph2","Date","DateEdit","TimeEdit","InlineText","InlineTextInput","TextInput","ErasableTextInput","NumberInput","NumericStepper","CheckBox","CheckBoxViewProxy","RichTextEditor","RichTextEditorInline","Price","EnumSelector","Image","Video","VideoSelector","VideoThumb","ImageSelector","ImageInput","VerticalList","FlowList","MultiColumn","VerticalListEditor","DraggableListItem","Box","VBox","HBox","Field","FieldBox","TextField","DataEditField","Stack","Css","InlineSpacer","HorizontalLine","VerticalLine","Switch","SwitchBox","OptionalArea","SuperFlow","Button","Button2","Table","Deck","TabMenu","Icon","StringArrayInput","Toggle","MusicPlayer","AudioInput","InlineSvg","Link","LinkSelector","OptionsList","SelectOptionsList","OptionsListInput","ComboBox","RadioGroup","CheckBoxGroup","TextArea","Area","Container","ZoomLink","AppLink","ZoomLayout","FixedRatioLayout","GoogleMap","LocationSelector","TagInput","DragAndDropVList","List2","PaginatedList","UnstyledLabel","TooltipIcon","Help","IFrame","ImageButton","TPAGallery","MediaRichTextEditorInline","MediaLabel","MediaThumb","Gallery","GridGallery","SliderGallery","ColumnGallery","PaginatedColumnGallery"];a.forEach(l,function(a){f(a,k(a))});return{getProxyClass:g,register:f,invalidate:h,extend:i,isValidProxyName:j}});define("wixappsCore/core/ViewContextMap",["lodash"],function(a){"use strict";var b="_";var c=".";function d(b){return a.isString(b)?a.compact(b.split(/[\.\[\]]/)):b}function e(c){return a.initial(c.split(b)).join(b)}function f(a,c,d){if(!a){return"0"}if(c&&this.contextMap[c]){return c}return a+b+String(d.index++)}function g(b,c,d){var f=b;while(f){if(a.has(this.contextMap[f][c],d)){return this.contextMap[f][c]}f=e(f)}return undefined}function h(){this.contextMap={}}function i(a,b,c){while(a.length>1){b=b[a.shift()]}b[a.shift()]=c}h.prototype={resolvePath:function(b,c){var f=a.flattenDeep(a.map(d(c),d));var g=b;var h=[];a.forEach(f,function(a){if(a==="parent"){g=e(g);if(!g){throw"Error:: no parent context."}}else if(a!=="this"){h.push(a)}});if(!this.contextMap[g]){return null}if(this.contextMap[g].scopePath.length&&a.every(this.contextMap[g].scopePath,a.isArray)&&h.length&&a.isNumber(h[0])){var i=h.shift();return this.contextMap[g].scopePath[i].concat(h)}return this.contextMap[g].scopePath.concat(h)},newContextForDataItem:function(b,c,d,e,g,h){var i=f.call(this,b,h,this.contextMap[b]);if(!this.contextMap[i]||!a.isEqual(this.contextMap[i].scopePath,c)){this.contextMap[i]={vars:d||{},events:e||{},functionLibrary:g||{},scopePath:c,index:0}}return i},newContextForDataPath:function(b,d,e,f,g,h){var i=this.contextMap[b];var j=a.isArray(d)?d:d.split(c);j=a.flattenDeep(a.map(j,function(b){if(a.isString(b)){return b.split(c)}return b}));j=a.without(j,"this");var k=i.scopePath.concat(j);return this.newContextForDataItem(b,k,e,f,g,h)},getVar:function(a,b){b=b.replace(/^\$/,"");var c=g.call(this,a,"vars",b);return c&&c[b]},setVar:function(b,c,d){var e=c.replace(/^\$/,"").split(".");var f=a.first(e);var h=g.call(this,b,"vars",f);if(!h){return}i(e,h,d)},overrideContextVars:function(b,c){if(!this.hasContext(b)){throw"Context does not exist"}a.assign(this.contextMap[b].vars,c)},getEvent:function(a,b){var c=g.call(this,a,"events",b);return c&&c[b]},getExpressionsFunctions:function(b){var c=b;var d={};while(c){a.defaults(d,this.contextMap[c].functionLibrary);c=e(c)}return d},resetContext:function(){this.contextMap={}},hasContext:function(b){return a.has(this.contextMap,b)}};return h});define("wixappsCore/util/styleMapping",["lodash"],function(a){"use strict";var b={Title:"font_0",Menu:"font_1","Page title":"font_2","Heading XL":"font_3","Heading L":"font_4","Heading M":"font_5","Heading S":"font_6","Body L":"font_7","Body M":"font_8","Body S":"font_9","Body XS":"font_10"};function c(a){return b[a]}function d(c){return a.invert(b)[c]}return{styleToFontClass:c,fontClassToStyle:d}});define("wixappsCore/core/expressions/functionLibrary",["lodash","wixappsCore/util/styleMapping","experiment"],function(a,b,c){"use strict";var d={get:function(b,c){return a.get(b,c)},getFromLocalStorage:function(a){return window.localStorage.getItem(a)},parseFromJSON:function(a){return JSON.parse(a)||{}},getObjectMember:function(b,c){return a.get(b,c,false)},and:function(){for(var a=0;ab},gte:function(a,b){return a>=b},lt:function(a,b){return a"}},String:{length:function(a){return String(a).length},isEmpty:function(a){return String(a)===null||String(a).length===0},charAt:function(a,b){return String(a).charAt(b)},charCodeAt:function(a,b){return String(a).charCodeAt(a,b)},concat:function(){return a.reduce(arguments,function(a,b){return a.concat(String(b))},"")},indexOf:function(a,b){return String(a).indexOf(b)},lastIndexOf:function(a,b){return String(a).lastIndexOf(b)},match:function(a,b){return String(a).match(new RegExp(b))},replace:function(a,b,c){return String(a).replace(b,c)},search:function(a,b){return String(a).search(new RegExp(b))},slice:function(a,b,c){return String(a).slice(b,c)},split:function(a,b){return String(a).split(b)},substr:function(a,b,c){return String(a).substr(b,c)},substring:function(a,b,c){return String(a).substring(b,c)},toLowerCase:function(a){return String(a).toLowerCase()},toUpperCase:function(a){return String(a).toUpperCase()},contains:function(a,b){return String(a).contains(b)},trim:function(a){return String(a).trim()},toInt:function(a){return parseInt(a,10)},toFloat:function(a){return parseFloat(a)}},Date:{createDate:function(a){if(!a){return new Date}return new Date(a)},getBefore:function(a,b,c,d){var e=d?new Date(d):new Date;e.setDate(e.getDate()-a);e.setMonth(e.getMonth()-b);e.setFullYear(e.getFullYear()-c);return e},getAfter:function(a,b,c,d){var e=d?new Date(d):new Date;e.setDate(e.getDate()-a);e.setMonth(e.getMonth()-b);e.setFullYear(e.getFullYear()-c);return e}},Theme:{getColor:function(b){var c=this.siteData.getColor(b);if(c[0]!=="#"){if(!a.includes(c,"rgb")&&a.includes(c,",")){return"rgba("+c+")"}return"#"+c}return c}},Styles:{fontToTextStyle:function(a){return b.fontClassToStyle("font_"+a)},calcFontSize:function(a){return a*3+9}},Mobile:{zoom:function(){return this.siteData.isMobileView()?1/this.siteData.mobile.getZoom():1}},experiment:function(a){return c.isOpen(a)},newBlogSocialIconSourceFor:function(a){return this.siteData.santaBase+"/static/images/new-blog-social-icons/"+a+".svg"},invertAlignment:function(a){switch(a){case"left":return"right";case"right":return"left";default:return a}}};function e(){var b={};var c=function(b,d,e){a.forEach(d,function(a,d){if(typeof a==="function"){b[e+d]=a}else if(typeof a==="object"){c(b,a,d+".")}})};c(b,d,"");return b}function f(a){this.siteData=a}f.prototype=e();f.prototype.addFunctions=function(b){a.assign(f.prototype,b)};return f});define("wixappsCore/core/viewsRenderer",["lodash","wixappsCore/core/proxyFactory","wixappsCore/core/ViewContextMap","wixappsCore/core/expressions/functionLibrary","animations","reactDOM","zepto"],function(a,b,c,d,e,f,g){"use strict";function h(b){return!a.isEqual(this.rootDataItemRef,this.getRootDataItemRef())||this.isChanged&&this.isChanged(b)}return{componentWillMount:function(){this.viewContextMap=new c(this);this.functionLibrary=new d(this.props.siteData)},getDataAspect:function(){return this.props.siteAPI.getSiteAspect("wixappsDataAspect")},getAppService:function(){return this.props.siteData.getClientSpecMapEntry(this.props.compData.appInnerID)},getPackageName:function(a){var b=this.getAppService(a||this.props.siteData);return b&&(b.packageName||b.type)},getAppDescriptor:function(){var a=this.getDataAspect();var b=this.getPackageName();return a.getDescriptor(b)},getFormatName:function(){return this.props.siteData.isMobileView()?"Mobile":""},getNormalizedDataPath:function(a,b){if(a===null){return b}return this.viewContextMap.resolvePath(a,b)},getDataByPath:function(a,b){if(a===null){return this.getDataByFullPath(b)}var c=this.getPackageName();var d=this.getDataAspect();var e=this.getNormalizedDataPath(a,b);return d.getDataByPath(c,e)},getDataByFullPath:function(b){var c=this.getPackageName();var d=this.getDataAspect();function e(b){return a.flattenDeep(a.map(b,function(b){if(a.isString(b)){return b.split(".")}return b}))}var f=[];if(a.every(b,a.isArray)){f=a.map(b,function(b){var c=e(b);return a.without(c,"this")})}else{f=e(b);f=a.without(f,"this")}return d.getDataByPath(c,f)},setDataByPath:function(a,b,c){var d=this.getPackageName();var e=this.getDataAspect();var f=this.getNormalizedDataPath(a,b);return e.setDataByPath(d,f,c)},setVar:function(a,b,c,d){this.viewContextMap.setVar(a,b,c);if(!d){this.registerReLayout();this.forceUpdate()}},getCompExtraData:function(){var a=this.getDataAspect();return a.getExtraDataByCompId(this.getPackageName(),this.props.compData.id)},componentWillUpdate:function(a){if(this.state.$displayMode==="content"&&h.call(this,a)){this.viewContextMap.resetContext()}},renderView:function(c){var d=this.getPackageName();var e={viewProps:{getPartData:this.getPartData,getPartDefinition:this.getPartDefinition,resolveImageData:this.resolveImageData,getNormalizedDataPath:this.getNormalizedDataPath,getDataByPath:this.getDataByPath,setDataByPath:this.setDataByPath,getDataByFullPath:this.getDataByFullPath,getViewDef:this.getViewDef,getLocalizationBundle:this.getLocalizationBundle,classSet:this.classSet,setVar:this.setVar,siteAPI:this.props.siteAPI,siteData:this.props.siteData,compProp:this.props.compProp,loadedStyles:this.props.loadedStyles,compId:this.props.id,packageName:d,rootId:this.props.rootId,rootNavigationInfo:this.props.rootNavigationInfo},functionLibrary:this.functionLibrary,viewContextMap:this.viewContextMap,viewName:this.getViewName(),formatName:this.props.formatName||this.getFormatName(),parentId:this.props.id,ref:"rootProxy",parentContextPath:null};var f={viewName:e.viewName,partDirection:this.props.compProp.direction||"ltr"};if(this.props.style&&this.props.style.width){f.compWidth=this.props.style.width}if(this.logic){e.logic=this.logic;if(this.logic.getViewVars){f=a.defaults(this.logic.getViewVars(this.getCompExtraData()),f)}}this.rootDataItemRef=this.getRootDataItemRef();e.contextProps={path:this.rootDataItemRef,vars:{view:f,proxy:{}},events:{scrollToView:a.bind(i,this)},functionLibrary:{}};e.proxyLayout={direction:f.partDirection};if(c){e.proxyLayout.height="100%"}var g=b.getProxyClass("View");return g(e)}};function i(){var a=1;var b=0;var c=f.findDOMNode(this);var d=g(c).offset().top;e.animate("BaseScroll",window,a,b,{y:d,ease:"Sine.easeInOut"})}});define("wixappsCore/core/viewsCustomizer",["lodash","wixappsCore/core/proxyFactory"],function(a,b){"use strict";function c(a,b){var c=[];if(b.fieldId==="vars"){c.push(a.vars)}else{d(a,b,0,c)}return c}function d(b,c,e,f){var g=b.id||b.data||e;if(c.fieldId==="*"||c.fieldId===g){f.push(b)}if(b.comp&&b.comp.items){a.forEach(b.comp.items,function(a,b){d(a,c,b,f)})}if(b.comp&&b.comp.templates){a.forEach(b.comp.templates,function(a){d(a,c,0,f)})}if(b.comp&&b.comp.cases){a.forEach(b.comp.cases,function(b){if(a.isArray(b)){a.forEach(b,function(a){d(a,c,0,f)})}else{d(b,c,0,f)}})}if(b.comp&&b.comp.columns&&b.comp.name==="Table"){a.forEach(b.comp.columns,function(b){a.forEach(["item","header","footer"],function(a){if(b[a]!==undefined){d(b[a],c,0,f)}})})}}function e(a,b){return(b.forType==="*"||a.forType===b.forType)&&(b.view==="*"||a.name===b.view)&&(b.format==="*"||(a.format||"")===(b.format||""))}function f(c){var d=a(arguments).rest().flatten().value();a.forEach(d,function(a){if(b.isValidProxyName(a.view)){a.view+="View"}if(e(c,a)){this.applyCustomization(c,a)}},this);return c}function g(b,d){var e=b.format||"";var f=d.format||"";if(f==="*"||f===e){var g=c(b,d);a.forEach(g,function(b){if(!a.isPlainObject(b)){return}var c=b;var e=d.key.split(".");for(var f=0;f1){return b+a.charAt(1)+e(a.slice(2),c)}else if(b!==c){return b+e(a.slice(1),c)}}return""};b=c.charAt(0);if(a.includes(d,b)){return'"'+e(c.slice(1),b)+'"'}}function e(a){var b=/[\w\*\/\-\%\+\$]/;var c=/[\w\*\/\-\%\+\.\$\[\]\?_]/;var d=function(a){var b=a.charAt(0);return a.length&&b.match(c)?b+d(a.slice(1)):""};var e=a.charAt(0);if(e.match(b)){return e+d(a.slice(1))}}function f(a){b=a.charAt(0);if(b==="("||b===")"){return b}}return{parseExpression:c}});define("wixappsCore/core/expressions/expressionParser",["wixappsCore/core/expressions/expressionLexer"],function(a){"use strict";var b=0,c=1;function d(d){var g=a.parseExpression(d);var h=g[0]==="("?c:b;var i=e(g,h);return f(i)}function e(a,b){if(a.length){var c=g(a,b)||i(a,b)||k(a,b);if(c){return[c.node].concat(e(c.next,b))}}return[]}function f(a){function b(a){return a.type==="function"}if(a.length>0&&a.every(b)){var c=a.slice(1).reduce(function(a,b){return{type:b.type,content:b.content,params:[a].concat(f(b.params))}},a[0]);return[c]}return a}function g(a,b){var d=b===c?0:1;var f=b===c?1:0;if(a[d]==="("&&typeof a[f]==="string"){var g=h(a);return{next:a.slice(g.length+3),node:{type:"function",content:a[f],params:e(g,b)}}}}function h(a){var b=function(a,c){if(!(a.length&&c>0)){return[]}var d=a[0];var e=a.slice(1);switch(d){case"(":return[d].concat(b(e,c+1));case")":return[d].concat(b(e,c-1));default:return[d].concat(b(e,c))}};return b(a.slice(2),1).slice(0,-1)}function i(a){var b;var c=a[0];if(c==="true"){b=true}else if(c==="false"){b=false}else if(c.charAt(0)==='"'&&c.charAt(c.length-1)==='"'||c.charAt(0)==="'"&&c.charAt(c.length-1)==="'"){b=j(c.slice(1,c.length-1))}else if(!isNaN(parseFloat(c,10))){b=parseFloat(c,10)}else if(!isNaN(parseInt(c,10))){b=parseInt(c,10)}if(b!==undefined){return{next:a.slice(1),node:{type:"primitive",content:b}}}}function j(a){a=a.replace(/\\/g,"");return a}function k(a){return{next:a.slice(1),node:{type:"ref",content:a[0]}}}return{parseExpressionSource:d}});define("wixappsCore/core/expressions/expression",["wixappsCore/core/expressions/expressionParser","lodash"],function(a,b){"use strict";function c(a){return typeof a==="object"&&b.has(a,"$expr")}function d(b,c,d){var e=a.parseExpressionSource(c)[0];return g(b,e,c,d)}function e(a,c,d,e){var f=b.map(c.params,function(b){return g(a,b,d,e)});var h=e[c.content];if(!h){throw new Error("Expression: "+d+" | Cannot resolve function "+c.content+"()")}return h.apply(e,f)}function f(a,b,c){var d=a(b.content);if(d===undefined){throw new Error("Expression: "+c+" | Cannot resolve symbol "+b.content)}return d}function g(a,b,c,d){switch(b.type){case"primitive":return h(b.content);case"ref":return f(a,b,c,d);case"function":return e(a,b,c,d)}}function h(a){if(!b.isString(a)){return a}else if(/^\s*(\+|-)?\d+\s*$/.test(a)){return parseInt(a,10)}else if(a==="true"){return true}else if(a==="false"){return false}else if(a==="null"){return null}return a}return{isExpression:c,evaluate:d,convertStringToPrimitive:h}});define("wixappsCore/util/viewsUtils",["lodash","wixappsCore/core/expressions/expression"],function(a,b){"use strict";function c(b,d){b.id=b.id||b.data||"def_"+d;var e=d+1;if(b.comp&&b.comp.items){a.forEach(b.comp.items,function(a){e=c(a,e)})}if(b.comp&&b.comp.templates){a.forEach(b.comp.templates,function(a){e=c(a,e)})}if(b.comp&&b.comp.cases){a.forEach(b.comp.cases,function(b){if(a.isArray(b)){a.forEach(b,function(a){e=c(a,e)})}else{e=c(b,e)}})}if(b.comp&&b.comp.columns&&b.comp.name==="Table"){a.forEach(b.comp.columns,function(b){a.forEach(["item","header","footer"],function(a){if(b[a]!==undefined){e=c(b[a],e)}})})}return e}function d(b,c){var e=c(b);if(e!==false){var f=["items","cases","templates"];a.forEach(f,function(f){if(b.comp&&b.comp[f]){a.forEach(b.comp[f],function(b){if(a.isArray(b)){a.forEach(b,function(a){e=d(a,c);return e})}else{e=d(b,c)}return e});return e}})}return e}function e(b,c,d){return a.compact([b,c,d]).join("|")}function f(b){if(a.isString(b)){var c=/[^\|]+\|([^\|]+).*/;var d=b.match(c);return d?d[1]:null}}function g(a,c){return c.comp&&b.convertStringToPrimitive(c.comp[a])}function h(b,c,d,e){var f=a.find(b.views,function(b){var f=a.isArray(b.name)?b.name:[b.name];var g=b.format||"";return b.forType===d&&g===e&&a.includes(f,c)});if(!f&&e){f=a.find(b.views,function(b){var e=a.isArray(b.name)?b.name:[b.name];var f=b.format||"";return b.forType===d&&f===""&&a.includes(e,c)})}return f}return{fillViewDefMissingIDs:function(a){c(a,0)},sanitizeCompId:function(a){return a.replace(/[\$:]/g,"")},traverseViews:d,getViewId:e,getViewNameFromId:f,getCompProp:g,findViewInDescriptorByNameTypeAndFormat:h}});define("wixappsCore/core/styleMap",[],function(){"use strict";var a={Area:{default:{skin:"wysiwyg.viewer.skins.area.AppleArea",style:"c1"},ecomCouponBox:{skin:"wysiwyg.viewer.skins.apps.DefaultBoxSkin",style:"ecom_cbx1"},ecomCartHeader:{skin:"wysiwyg.viewer.skins.apps.DefaultBoxSkin",style:"ecom_ch1"},ecomEmptyCartBG:{skin:"wysiwyg.viewer.skins.apps.DefaultBoxSkin",style:"ecom_ecbg1"}},Button:{default:{skin:"wysiwyg.viewer.skins.button.BasicButton",style:"b3"},ecomViewCart:{skin:"wysiwyg.viewer.skins.button.BasicButton",style:"ecom_vc1"},ecomCheckout:{skin:"wysiwyg.viewer.skins.button.DisabledLayerButton",style:"ecom_co1"},ecomAddToCart:{skin:"wysiwyg.viewer.skins.button.BasicButton",style:"ecom_atc1"},ecomRemoveFromCart:{skin:"wysiwyg.viewer.skins.button.FixedFontButton",style:"ecom_rfc1"},ecomApplyCoupon:{skin:"wysiwyg.viewer.skins.button.ApplyButtonEcom",style:"ecom_apl1"},ecomAddProduct:{skin:"wysiwyg.viewer.skins.button.AddProductButton",style:"ecom_ap1"}},Button2:{default:{skin:"wysiwyg.viewer.skins.button.BasicButton",style:"b3"},ecomViewCart:{skin:"wysiwyg.viewer.skins.button.BasicButton",style:"ecom_vc1"},ecomCheckout:{skin:"wysiwyg.viewer.skins.button.DisabledLayerButton",style:"ecom_co1"},ecomAddToCart:{skin:"wysiwyg.viewer.skins.button.BasicButton",style:"ecom_atc1"},ecomRemoveFromCart:{skin:"wysiwyg.viewer.skins.button.FixedFontButton",style:"ecom_rfc1"},ecomApplyCoupon:{skin:"wysiwyg.viewer.skins.button.ApplyButtonEcom",style:"ecom_apl1"},ecomAddProduct:{skin:"wysiwyg.viewer.skins.button.AddProductButton",style:"ecom_ap1"},ecomFeedbackContinueShopping:{skin:"wysiwyg.viewer.skins.button.EcomFeedbackContinueShopping",style:"ecom_fmcs1"},ecomFeedbackContinueShopping2:{skin:"wysiwyg.viewer.skins.button.EcomFeedbackContinueShopping2",style:"ecom_fmcs2"},ecomFeedbackCheckout:{skin:"wysiwyg.viewer.skins.button.EcomFeedbackCheckoutButton",style:"ecom_fmc1"}},ComboBox:{default:{skin:"wysiwyg.viewer.skins.input.ComboBoxInputSkinNoValidation",style:"wa_cb1"},ecomComboBox:{skin:"wixapps.integration.skins.ecommerce.inputs.ComboBoxInputSkin",style:""},ecomShippingComboBox:{skin:"wysiwyg.viewer.skins.appinputs.EcomComboBoxInputSkin",style:"ecom_scb1"},wixAppsGui:{skin:"wixapps.integration.skins.inputs.ComboBoxInputSkin",style:""}},TextArea:{default:{skin:"wysiwyg.viewer.skins.input.TextAreaInputSkin",style:"wa_tai1"},ecomTextArea:{skin:"wixapps.integration.skins.ecommerce.inputs.TextAreaInputSkin",style:""}},TextAreaInput:{default:{skin:"TextAreaDefaultSkin",style:"ta_input"}},TextInput:{default:{skin:"wysiwyg.viewer.skins.appinputs.AppsTextInputSkin",style:"wa_ti1"},ecomTextInput:{skin:"wysiwyg.viewer.skins.appinputs.EcomTextInputSkin",style:"ecom_ti1"}},ErasableTextInput:{default:{skin:"wysiwyg.viewer.skins.appinputs.EcomErasableTextInputSkin",style:"ecom_eti1"}},Gallery:{default:{skin:"wysiwyg.viewer.skins.paginatedgrid.PaginatedGridDefaultSkin",style:"pagg1"},productGallery:{skin:"wysiwyg.viewer.skins.paginatedgrid.PaginatedGridSimple",style:"pgg_cg0"},contentGallery:{skin:"wysiwyg.viewer.skins.paginatedgrid.PaginatedGridNoDetail",style:"pgg_cg1"},minipostGallery:{skin:"wysiwyg.viewer.skins.paginatedgrid.wixapps.PaginatedGridNoDetail",style:"pgg_cg2"},hoverGallery:{skin:"wysiwyg.viewer.skins.paginatedgrid.PaginatedGridNoBG",style:"pgg_cg3"},blogGallery:{skin:"wysiwyg.viewer.skins.paginatedgrid.PaginatedGridNoDetail",style:"pgg_cg4"}},Video:{default:{skin:"wysiwyg.viewer.skins.video.VideoDefault",style:"v2"},mediaLabel:{skin:"wysiwyg.viewer.skins.VideoSkin"}},Container:{default:{skin:"wysiwyg.viewer.skins.area.AppleArea",style:"c1"},ecomCouponBox:{skin:"wysiwyg.viewer.skins.apps.DefaultBoxSkin",style:"ecom_cbx1"},ecomCartHeader:{skin:"wysiwyg.viewer.skins.apps.DefaultBoxSkin",style:"ecom_ch1"},ecomEmptyCartBG:{skin:"wysiwyg.viewer.skins.apps.DefaultBoxSkin",style:"ecom_ecbg1"}},Image:{default:{skin:"wysiwyg.viewer.skins.photo.NoSkinPhoto",style:"wp1"}},VideoThumb:{default:{skin:"wysiwyg.viewer.skins.photo.NoSkinPhoto",style:"wp1"}},HorizontalLine:{default:{skin:"wysiwyg.viewer.skins.FiveGridLineSkin",style:"hl1"}},VerticalLine:{default:{skin:"wysiwyg.viewer.skins.VerticalLineSkin",style:"vl1"}},Table:{default:{skin:"wysiwyg.viewer.skins.table.TableComponentDefaultSkin",style:"tblc1"}},VerticalList:{default:{skin:"skins.core.InlineSkin",style:"vr1"},ecomOptionsList:{skin:"skins.core.InlineSkin"}},List2:{default:{skin:"skins.core.InlineSkin"}},PaginatedList:{default:{skin:"skins.core.InlineSkin"}},FlowList:{default:{skin:"skins.core.InlineSkin"}},Date:{default:{skin:"wysiwyg.viewer.skins.WRichTextClickableSkin"}},MediaLabel:{default:{skin:"wysiwyg.viewer.skins.WRichTextClickableSkin"}},Label:{default:{skin:"wysiwyg.viewer.skins.WRichTextClickableSkin"}},InlineText:{default:{skin:"skins.core.VerySimpleSkin"}},ClippedParagraph:{default:{skin:"wysiwyg.viewer.skins.WRichTextClickableSkin"}},ClippedParagraph2:{default:{skin:"wysiwyg.viewer.skins.WRichTextClickableSkin"}},Icon:{default:{skin:"wixapps.integration.skins.IconSkin"}},ImageButton:{default:{skin:"wixapps.integration.skins.ImageButtonSkin"}},ImageButtonWithText:{default:{skin:"wysiwyg.viewer.skins.IconLeftImageButtonWithText"}},Toggle:{default:{skin:"wixapps.integration.skins.ToggleSkin"}},SliderGallery:{default:{skin:"wysiwyg.viewer.skins.galleryselectableslider.SelectableSliderGalleryDefaultSkin"}},TouchMediaZoomSlideshow:{default:{skin:"wysiwyg.viewer.skins.TouchMediaZoomSlideshow"}},TouchMediaZoomItem:{default:{skin:"wysiwyg.viewer.skins.TouchMediaZoomItem"}},NumericStepper:{default:{skin:"wysiwyg.common.components.numericstepper.viewer.skins.NumericStepperSimpleSkin",style:"nums1"}},Pagination:{default:{skin:"skins.core.InlineSkin"}}};return a});define("wixappsCore/core/styleData",["wixappsCore/core/styleMap"],function(a){"use strict";function b(b){return a[b]&&a[b].default&&a[b].default.skin}function c(b,c,d,e,f){if(f&&e&&b[e]){return{skin:f,styleId:e}}else if(f){return{skin:f}}var g=a[c][d]||a[c].default;e=e||g.style;if(e&&b[e]){return{styleId:e,skin:b[e].skin}}return{styleId:g.style,skin:g.skin}}return{getDefaultSkinName:b,getSkinAndStyle:c}});define("wixappsCore/core/styleCollector",["lodash","skins","wixappsCore/util/viewsUtils","wixappsCore/core/styleData","wixappsCore/core/styleMap"],function(a,b,c,d,e){"use strict";var f=b.skins;function g(b,c,d,e){var g=b&&d[b]&&f[d[b].skin];var h=c&&f[c];var i;if(g){i=b}else{i=h?c:""}if(i&&!e[i]){e[i]="s"+a.size(e)}}function h(b,e,f){function h(b){var c=a.get(b,"comp.style");var h=a.get(b,"comp.skin")||b.comp&&d.getDefaultSkinName(b.comp.name);g(c,h,e,f)}c.traverseViews(b,h)}function i(b,c){a.forEach(e,function(d){a.forEach(d,function(a){g(a.style,a.skin,b,c)})})}return{collectViewStyles:h,addStyleIfNeeded:g,addDefaultStyles:i}});define("wixappsCore/core/wixappsDataHandler",["lodash"],function(a){"use strict";function b(a,b){if(!a){return null}a.wixapps=a.wixapps||{};a.wixapps[b]=a.wixapps[b]||{};return a.wixapps[b]}function c(a,c){var d=b(a,c);if(d.descriptor){return d.descriptor}return null}function d(b){return a.get(b,"categories",null)}function e(a){var c=b(a,"blog");return d(c)}function f(b,c){var d=e(b);var f;if(d){f=a.find(d.categoryById,{name:c})}return f||null}function g(a,c,d){var e=b(a,c);if(e[d]){return e[d]}return null}function h(a,c,d,e){var f=b(a,c);f[d]=e}function i(a,c,d){var e=b(a,c);delete e[d]}function j(a,c,d){var e=b(a,c);return e[d+"_extraData"]||null}function k(c,d,e){if(!a.isArray(e)||e.length===0){return[]}if(a.every(e,a.isArray)){return a.map(e,function(a){return k(c,d,a)})}var f=a.clone(e);var g=b(c,d);if(!g.items){return null}var h=g.items;while(f.length){var i=f.shift();h=h[i]}return h}function l(c,d,e,f){var g=a.clone(e);var h=b(c,d);var i=h.items;while(g.length>1){var j=g.shift();i=i[j]}i[g.shift()]=f}function m(a){return["wixapps",a]}function n(b,c,d,e){var f=o(c,d,e);a.merge(f,b)}function o(a,c,d){var e=b(a,c);e.metadata=e.metadata||{};e.metadata[d]=e.metadata[d]||{};return e.metadata[d]}function p(a,c,d){var e=b(a,c);if(e.metadata&&e.metadata[d]){e.metadata[d]={}}}function q(a,c){var d=b(a,c);d.metadata=d.metadata||{};d.metadata[c+"_metadata"]=d.metadata[c+"_metadata"]||{};return d.metadata[c+"_metadata"]}function r(b,c,d){var e=q(c,d);a.merge(e,b)}return{getDescriptor:c,getDataByCompId:g,setDataForCompId:h,clearDataForCompId:i,getExtraDataByCompId:j,getDataByPath:k,setDataByPath:l,getPackageData:b,getSiteDataDestination:m,setCompMetadata:n,getCompMetadata:o,getPackageMetadata:q,setPackageMetadata:r,clearCompMetadata:p,getBlogCategoriesFromPackageData:d,getBlogCategories:e,getBlogCategoryByName:f}});define("wixappsCore/core/wixappsLogger",["lodash","utils"],function(a,b){"use strict";var c=b.logger;var d={LISTS_EVENT_SOURCE:60,Type:{ERROR:10,USER_ACTION:40},Category:{EDITOR:1,VIEWER:2,CORE:3,SERVER:4},issue:{GENERAL:0,PROXY:1,APP_LOGIC:2,DATA_SERVICE:3,DATA_ITEMS:4,CORE_WIRING:5,DATA_EDITING:6,APP_BUILDER:7,APP_REPO_SERVICE:8},Severity:{RECOVERABLE:10,WARNING:20,ERROR:30,FATAL:40}};var e={GENERIC_ERROR:{errorCode:-2e4,desc:"WixApps unspecified error"},APP_PART2_FAILED_TO_LOAD:{errorCode:-20011,desc:"Failed to load app part",issue:d.issue.APP_BUILDER},DATA_SELECTOR_CONTAINS_NULL:{errorCode:-20013,desc:"A data selector returned from the server with a null id key.",issue:d.issue.APP_BUILDER},MISSING_PERMALINK:{errorCode:-22041,desc:"Site data is missing the permalink data item"},REQUEST_FAILED:{errorCode:-1,desc:"Unspecified error occurred, possibly a connection problem"}};c.register("wixapps","error",e);var f={APP_BUILDER_PART_LOADED:{eventId:103,desc:"App builder - part loaded in published",params:{c2:"appPartName",g2:"userId"}},APP_PART2_FAILED_TO_LOAD_DATA_SELECTOR:{eventId:135,desc:"Failed to load data selector",params:{c1:"dataSelector"}},APP_PART2_FAILED_TO_LOAD_PART_DEFINITION:{eventId:136,desc:"Failed to load app part definition"},VIEW_DEFINITION_NOT_FOUND:{eventId:137,desc:"Failed to load view definition"},TAG_SELECTED_IN_VIEWER:{eventId:305,desc:"User selected a tag in the viewer."}};c.register("wixapps","event",f);var g={desc:e.GENERIC_ERROR.desc,errorCode:e.GENERIC_ERROR.errorCode,type:d.Type.ERROR,issue:d.issue.GENERAL,severity:d.Severity.ERROR,category:d.Category.VIEWER,src:d.LISTS_EVENT_SOURCE};var h={type:d.Type.USER_ACTION,adapter:"lists",category:d.Category.VIEWER,src:d.LISTS_EVENT_SOURCE};function i(b,d,e){try{var f=a.defaults({},d,g);c.reportBI(b,f,e)}catch(a){}}function j(b,d,e){try{var f=a.defaults({},d,h);c.reportBI(b,f,e)}catch(a){}}return{events:f,errors:e,reportError:i,reportEvent:j}});define("wixappsCore/core/styleTranslator",["lodash"],function(a){"use strict";var b={horizontal:"row",vertical:"column"};var c={start:"flex-start",end:"flex-end"};var d=a.invert(c);var e={top:"start",middle:"center",bottom:"end",left:"start",right:"end"};var f={start:"flex-start",end:"flex-end"};function g(a){return{WebkitBoxOrient:a,WebkitFlexDirection:b[a]||a,msFlexDirection:b[a]||a,flexDirection:b[a]||a}}function h(a,b){var c=String(a).split(" ").length===1;if(a==="none"||a==="0"||a===0||a===""){return"none"}else if(c&&b==="vertical"){return a+" 1 auto"}return a}function i(a,b){var c=h(a,b);return{minWidth:0,WebkitFlex:c,msFlex:c,flex:c}}var j={"flex-direction":g,"box-orient":g,"box-flex":i,flex:i,"align-items":function(a){return{WebkitAlignItems:c[a]||a,msFlexAlign:d[a]||a,"align-items":c[a]||a,"align-self":c[a]||a}},"box-align":function(a){a=e[a]||a;return{WebkitBoxAlign:c[a]||a,WebkitAlignItems:c[a]||a,MozBoxAlign:c[a]||a,msFlexAlign:a,alignItems:c[a]||a,boxAlign:c[a]||a}},"justify-content":function(a){return{justifyContent:f[a]||a,WebkitJustifyContent:f[a]||a,MozJustifyContent:f[a]||a,msFlexPack:a,msJustifyContent:f[a]||a}},"box-shadow":function(a){return{WebkitBoxShadow:a,MozBoxShadow:a,boxShadow:a}},"border-radius":function(a){return{WebkitBorderRadius:a,MozBorderRadius:a,borderRadius:a}}};function k(a){return a.replace(/-([a-z])/gi,function(a,b){return b.toUpperCase()})}function l(b,c){return a.transform(b,function(b,d,e){var f=j[e];if(f){a.merge(b,f(d,c))}else{b[k(e)]=d;b[k(e)]=d}},{})}return{translate:l}});define("wixappsCore/util/spacersCalculator",["lodash"],function(a){"use strict";var b={rtl:{vertical:{before:"Top",after:"Bottom" },horizontal:{before:"Right",after:"Left"}},ltr:{vertical:{before:"Top",after:"Bottom"},horizontal:{before:"Left",after:"Right"}}};function c(c,d,e,f){e=e||"vertical";f=f||"ltr";var g={before:parseInt(d.spacerBefore||d.spacer,10),after:parseInt(d.spacerAfter||d.spacer,10)};if(g.before){d[c+b[f][e].before]=g.before}if(g.after){d[c+b[f][e].after]=g.after}return a.omit(d,["spacer","spacerBefore","spacerAfter"])}return{translateStaticSpacers:c.bind(null,"margin"),translateStaticSpacersXax:c.bind(null,"padding")}});define("wixappsCore/core/wixappsConfiguration",[],function(){"use strict";var a=false;return{shouldApplyAutomationAttributes:function(){return a},applyAutomationAttributes:function(){a=true}}});define("wixappsCore/core/wixappsPlugins",["lodash","wixappsCore/core/wixappsConfiguration"],function(a,b){"use strict";return{getAdditionalDomAttributes:function(c){var d={};if(b.shouldApplyAutomationAttributes()){d=a.merge(d,{"data-vcview":c.props.viewName,"data-vcfield":c.getViewDefProp("id"),"data-vctype":c.props.forType,"data-proxy":c.constructor.displayName,"data-field-name":c.getViewDefProp("data")})}return d}}});define("wixappsCore/proxies/mixins/baseProxy",["lodash","santaProps","wixappsCore/util/viewsUtils","wixappsCore/core/styleData","wixappsCore/core/expressions/expression","wixappsCore/core/styleTranslator","wixappsCore/util/spacersCalculator","utils","wixappsCore/core/wixappsPlugins"],function(a,b,c,d,e,f,g,h,i){"use strict";function j(){return this.getCompProp("hidden")?null:this.renderProxy()}function k(a){var b=a.parentContextPath;var c=a.contextProps;if(c){b=this.createContext(a.parentContextPath,c.path,c.vars,c.events,c.functionLibrary)}this.contextPath=b}function l(a){var b=this.getCompProp("cssClass")||"";if(this.props.className){b+=" "+this.props.className}if(this.getProxyCustomCssClass){b+=" "+this.getProxyCustomCssClass()}b+=" "+x(a);b=b.trim();return b}function m(a){var b=this.getCompProp("hoverVar");this.props.viewProps.setVar(this.contextPath,b,a)}function n(){var b={};var c=this.getCompProp("hoverVar");if(c){b.onMouseEnter=m.bind(this,true);b.onMouseLeave=m.bind(this,false)}var d=this.getCompProp("events");return a.transform(d,function(a,b,c){var d=null;if(b.params!==undefined&&b.params.enabled!==undefined&&b.params.enabled.$expr!==undefined){d=b.params.enabled.$expr}if(d){var f=e.evaluate(s.bind(this,this.contextPath),d,r.call(this,this.contextPath));if(!f){return}}if(h.stringUtils.startsWith(c,"dom:")){c="on"+c[4].toUpperCase()+c.substring(5);a[c]=this.handleViewEvent}switch(c){case"click":a.onClick=this.handleViewEvent;break;case"mouseup":{a.onMouseUp=this.handleViewEvent;break}case"mousedown":{a.onMouseDown=this.handleViewEvent}}},b,this)}function o(b){return a.isPlainObject(b)&&a.has(b,"_iid")}function p(b){return a.isPlainObject(b)&&b._type&&h.stringUtils.startsWith(b._type,"wix:Ref")}function q(a){return[a.collectionId,a.itemId]}function r(b){var c=this.props.viewContextMap.getExpressionsFunctions(b);return a.assign(this.props.functionLibrary,c)}function s(b,c){if(a.isUndefined(b)){b=this.contextPath}var d;var f=c.split(".");var g=f.shift();if(a.first(g)==="$"){d=this.props.viewContextMap.getVar(b,g);if(e.isExpression(d)){d=e.evaluate(s.bind(this,b),d.$expr,r.call(this,b))}else{while(f.length){d=d[f.shift()]}}}else{d=this.getDataByPath(c)}return e.convertStringToPrimitive(d)}function t(a){return h.stringUtils.startsWith(a,"$")}function u(b){b=b||this.props;var c=this.getViewDefProp("value",b.viewDef);if(!a.isUndefined(c)){return c}var d=b.viewDef&&b.viewDef.data||"this";if(e.isExpression(d)){return e.evaluate(s.bind(this,this.contextPath),d.$expr,r.call(this,this.contextPath))}if(t(d)){return this.getVar(d)}return this.getDataByPath(d,true)}function v(b,d){return c.sanitizeCompId(a.compact([this.props.viewProps.compId,this.props.viewId,this.contextPath,b&&b.id,d]).join("_"))}function w(b,c){var d=a.isArray(b)?a.map:a.mapValues;return d(b,function(b){var d=b;if(e.isExpression(b)){d=e.evaluate(s.bind(this,c),b.$expr,r.call(this,c))}else if(a.isArray(b)||a.isPlainObject(b)){d=w.call(this,b,c)}return e.convertStringToPrimitive(d)},this)}function x(a){if(a&&a.display&&a.display==="box"){delete a.display;return"flex_display"}return""}function y(b,c){var e={layout:b,componentType:c};if(this.useSkinInsteadOfStyles){e.skin=this.getCompProp("skin")||d.getDefaultSkinName(this.getCompProp("name"));return e}var f=d.getSkinAndStyle(this.props.viewProps.siteData.getAllTheme(),this.getCompProp("name"),this.getCompProp("styleNS"),this.getCompProp("style"),this.getCompProp("skin"));return a.assign(f,e)}function z(b){return a.pick(b,function(a,b){return b.indexOf("data-")===0})}function A(b,c){c[""]=a.merge({},c[""],n.call(this),i.getAdditionalDomAttributes(this));if(!b){return c}a.assign(c[""],z(this.props));var d=b(c);a.forEach(d,function(a){if(a&&a.style){a.style=f.translate(a.style,this.props.orientation)}},this);return d}function B(a,b){if(b.params){a.params=w.call(this,b.params,this.contextPath)}}return{statics:{getPropDefs:function(b){if(a.includes(["compProp","viewProp"],b)){var c={};a.forOwn(this,function(a,d){if(a.type===b){c[d]=a}});return c}},hidden:{type:"compProp",defaultValue:false},style:{type:"compProp",defaultValue:null},layout:{type:"viewProp",defaultValue:{}}},getDataByPath:function(a,b){var c=this.props.viewProps.getDataByPath(this.contextPath,a);if(b&&p(c)){return this.props.viewProps.getDataByFullPath(q(c))}return c},getVar:function(a){return this.props.viewContextMap.getVar(this.contextPath,a)},setVar:function(a,b,c){this.props.viewProps.setVar(this.contextPath,a,b,c)},getContextEvent:function(a){return this.props.viewContextMap.getEvent(this.contextPath,a)},getChildProxyProps:function(a,b,c){var d=null;if(b){d={path:b,vars:c.vars||{},events:c.events||{},functionLibrary:c.functionLibrary||{}}}var e={ref:"child",viewName:this.props.viewName,forType:this.props.forType,formatName:this.props.formatName,orientation:this.props.orientation,viewDef:a,parentId:this.props.parentId,viewId:this.props.viewId,logicEvents:this.props.logicEvents,logic:this.props.logic,functionLibrary:this.props.functionLibrary,parentContextPath:this.contextPath,contextProps:d,viewContextMap:this.props.viewContextMap,viewProps:this.props.viewProps,id:v.call(this,a,"child")};return e},getChildCompProps:function(c,d){var e={id:v.call(this,this.props.viewDef,this.props.key),ref:"component"};if(!c){e.style=this.getProxyStyle();e.className=l.call(this,e.style);return a.assign(e,n.call(this),i.getAdditionalDomAttributes(this),z(this.props))}var f=this.getProxyStyle();var g=y.call(this,f,c);var h=b.componentPropsBuilder.getCompProps(g,this.props.viewProps.siteAPI,this.props.viewProps.rootId,this.props.viewProps.loadedStyles);delete h.style.position;var j=a.merge(h.style,f);h.className=l.call(this,j);return a.assign(h,e,{transformSkinProperties:A.bind(this,d),style:j,compProp:this.props.compProp})},getViewDefProp:function(a,b,c){b=b||this.props.viewDef||{};c=c||this.contextPath;var d=b[a];var f=d;if(e.isExpression(d)){f=e.evaluate(s.bind(this,c),d.$expr,r.call(this,c))}else if(a==="layout"||a==="css"||a==="stylesheet"){return w.call(this,d,c)}return e.convertStringToPrimitive(f)},getCompProp:function(a,b,c){c=c||this.contextPath;var d=this.getViewDefProp("comp",b,c);if(!d){return undefined}return this.getViewDefProp(a,d,c)},getStyleDef:function(b,c){if(b){return a.merge({},this.getCompProp("css",b,c),this.getViewDefProp("layout",b,c))}var d={};if(this.getCustomStyle){d=this.getCustomStyle()}return a.merge(d,this.getCompProp("css"),this.getViewDefProp("layout"),this.props.proxyLayout)},getProxyStyle:function(){var a=this.getStyleDef();var b=this.props.orientation||"vertical";var c=this.props.viewProps.compProp&&this.props.viewProps.compProp.direction;a.boxSizing="border-box";a=g.translateStaticSpacers(a,b,c);a=f.translate(a,this.props.orientation);return a},handleViewEvent:function(b,c){var d=this.getCompProp("events");var f=this.props.logic;var g=d&&(d[b.type]||d["dom:"+b.type]||d["dom:"+b.type.toLowerCase()]);if(!g){return}var h=a.isString(g)?g:g.event;if(!h){return}a.forEach(h.split(";"),function(d){var h=d.trim().match(/^set:([^=]+)=(.+)$/);if(h){var i=e.evaluate(s.bind(this,this.contextPath),h[2].trim(),r.call(this,this.contextPath));var j=h[1].trim();if(t(j)){this.props.viewProps.setVar(this.contextPath,j,i)}else{this.props.viewProps.setDataByPath(this.contextPath,j,i)}return}var k=this.getContextEvent(d);if(a.isFunction(k)){B.call(this,b,g);k(b,c);return}if(!f){throw"Error:: Missing logic - cannot handle event ["+d+"]"}if(!a.isFunction(f[d])){throw"Error:: Logic missing implementation for event ["+d+"]"}B.call(this,b,g);var l=this.getViewDefProp("data")||"this";b.dataPath=this.props.viewProps.getNormalizedDataPath(this.contextPath,l);f[d](b,c)},this)},createContext:function(b,c,d,e,f){var g=a.merge({},d.view,d.proxy,this.getViewDefProp("vars"));var h=this.props.viewProps.getDataByPath(b,c);if(b===null||o(h)){var i=this.props.viewProps.getNormalizedDataPath(b,c);return this.props.viewContextMap.newContextForDataItem(b,i,g,e,f)}else if(p(h)){return this.props.viewContextMap.newContextForDataItem(b,q(h),g,e,f)}return this.props.viewContextMap.newContextForDataPath(b,c,g,e,f)},getInitialState:function(){k.call(this,this.props);this.proxyData=u.call(this);return{}},componentWillUpdate:function(a){if(!this.props.viewContextMap.hasContext(this.contextPath)){k.call(this,a)}var b=a.contextProps;if(b&&b.vars&&b.vars.proxy){this.props.viewContextMap.overrideContextVars(this.contextPath,b.vars.proxy)}this.proxyData=u.call(this,a)},render:function(){if(this.props.viewProps.siteData.isDebugMode()){return j.call(this)}try{return j.call(this)}catch(a){h.log.error("Cannot render proxy "+this.constructor.displayName+" with id: "+this.props.id,a);return null}}}});define("wixappsCore/proxies/mixins/inputProxy",["utils","wixappsCore/proxies/mixins/baseProxy"],function(a,b){"use strict";function c(b){return a.stringUtils.startsWith(b,"$")}return{mixins:[b],setData:function(a,b){var d=this.getViewDefProp("data")||"this";if(b){d+="."+b}var e=c(d)?this.props.viewProps.setVar:this.props.viewProps.setDataByPath;e(this.contextPath,d,a)}}});define("wixappsCore/core/linksConverter",["lodash","utils"],function(a,b){"use strict";var c="#!";var d=/(:\/\/)|(^\/\/)/;var e={"wix:Link":l,"wix:PageLink":i,"wix:ExternalLink":h,"wix:MailLink":k,"wix:PhoneLink":j,"wix:DocLink":g,"wix:AnchorLink":f};function f(b,c){var d=(a.includes(["#masterPage","masterPage"],b.pageId)?"masterPage":b.pageId)||"";var e=c(b.anchorDataId,d.replace("#",""));return{type:"AnchorLink",anchorName:b.anchorName,anchorDataId:a.isEmpty(e)?b.anchorDataId:e,pageId:c(b.pageId,"masterPage")}}function g(a){return{type:"DocumentLink",docId:a.docId,name:a.docName}}function h(a){return{type:"ExternalLink",url:a.protocol?a.protocol+"://"+a.address:a.address,target:a.target}}function i(a,b){return{type:"PageLink",pageId:b(a.pageId,"masterPage")}}function j(a){return{type:"PhoneLink",phoneNumber:a.phoneNumber}}function k(a){return{type:"EmailLink",recipient:a.email,subject:a.subject}}function l(a,e){var f=a.href;if(a.linkType==="WEBSITE"||d.test(f)){var g={address:f};return h(g)}if(b.stringUtils.startsWith(f,c)){return i({pageId:f.substr(2)},e)}if(b.stringUtils.startsWith(f,"mailto:")){var j=f.split("?");var l="";if(j.length>1){var m=b.urlUtils.parseUrlParams(j[1]);l=m.subject||""}var n={subject:l,email:j[0].substr(7)};return k(n)}}function m(b,c){if(!b){return null}var d=e[b._type];return d&&a.assign(d(b,c),{id:b.linkId})}return m});define("wixappsCore/core/typesConverter",["lodash","wixappsCore/core/linksConverter"],function(a,b){"use strict";function c(c,d){if(!d){return null}var e=b({_type:"wix:PageLink",pageId:d},c);return a.omit(e,"id")}return{richText:function(c,d,e,f){return{type:"StyledText",text:a.isString(c)?c:c.text,linkList:a.map(d,function(a){return b(a,e.getDataByQuery.bind(e))}),innerCompsData:f}},image:function(b,c,d,e,f){b=c(b,d,e);var g={type:"Image",uri:b.src,title:b.title,width:parseInt(b.width,10),height:parseInt(b.height,10)};if(!a.isEmpty(f)){g.quality=f}return g},videoThumb:function(a,b,c){var d={src:a.imageSrc,title:"",width:480,height:360};return this.image(d,b,c)},table:function(b){return{type:"Table",columnsStyle:a.map(b,function(a,b){if(!a.item){throw"missing definition for item in column "+b}return a.item.styleData})}},video:function(a){return{type:"Video",videoId:a.videoId,videoType:a.videoType}},linkableButton:function(b,d){var e=b&&(b.linkId?d.getDataByQuery(b.linkId):c(d.getDataByQuery.bind(d),b.pageId));var f=a.isString(b)?b:b&&b.label;return{type:"LinkableButton",label:a.unescape(f),link:e||null}},selectableList:function(b){return{type:"SelectableList",options:a.map(b.items,function(c){return{type:"SelectOption",value:c.value,text:a.isFunction(c.getText)?c.getText(b.selectedValue):c.text,disabled:c.enabled===false,description:c.description}}),value:b.selectedValue}},text:function(b,c){var d={type:"TextInput",value:a.unescape(b)};if(c){d.maxLength=c}return d},numeric:function(b){return{type:"NumericStepper",value:a.unescape(b)}},icon:function(a,b,c,d){a=b(a,c,d);return{type:"Icon",url:a.src,width:a.width,height:a.height,title:a.title}},link:b,imageList:function(b,c,d,e){var f=e.getGlobalImageQuality();return{type:"ImageList",items:a.map(b.items,function(b){return a.merge(this.image(b,c,d,f),{description:b.description||"",link:this.link(b.link,e)})},this)}}}});define("wixappsCore/util/videoThumbDataHandler",["lodash"],function(a){"use strict";var b={YOUTUBE:{prepareVideoThumbUrl:f},VIMEO:{prepareVideoThumbUrl:g}};var c="";function d(a){return"http://img.youtube.com/vi/"+a+"/0.jpg"}function e(a){return"http://vimeo.com/api/v2/video/"+a+".json"}function f(a){a.item.imageSrc=d(a.item.videoId);return null}function g(a){if(a.item.imageSrc){return null}var b=e(a.item.videoId);return{force:true,destination:a.path,url:b,dataType:"jsonp",transformFunc:i,error:function(){h(a)}}}function h(a){a.item.imageSrc=c}function i(b,c){var d=b[0];var e=a.isArray(c)?j(c,d.id):c;e.imageSrc=d.thumbnail_large;return c}function j(b,c){return a.find(b,{videoId:c+""})}function k(a){return a.item.videoType?b[a.item.videoType].prepareVideoThumbUrl(a):h(a)}function l(b,d){if(!c){c=d.santaBase+"/static/images/video/not-found.png"}return a.compact(a.map(b,k))}return{handleVideoThumbUrls:l}});define("wixappsCore/proxies/mixins/baseCompositeProxy",["react","lodash","wixappsCore/proxies/mixins/baseProxy","wixappsCore/core/proxyFactory","wixappsCore/core/styleTranslator"],function(a,b,c,d,e){"use strict";var f={HSpacer:"width",VSpacer:"min-height"};var g=["HSpacer","VSpacer"];function h(a){return b.includes(g,a)}function i(a,b){var c=this.getStyleDef(a,b);c.boxSizing="border-box";var d=this.getCompProp("size",a);if(d==="*"){c["box-flex"]=1}else{var g=this.getCompProp("name",a);c[f[g]]=d}return e.translate(c,b.orientation)}function j(b,c){if(this.getCompProp("hidden",b)){return null}c.style=i.call(this,b,c);return a.DOM.div(c)}return{mixins:[c],renderChildProxy:function(a,b,c,e){e=e||this.getChildProxyProps(a);b=String(b||"0");e.key=b;e.ref=b;e.refInParent=b;e.proxyLayout=c;if(this.getChildrenOrientation){e.orientation=this.getChildrenOrientation()}var f=this.getCompProp("name",a);if(h(f)){return j.call(this,a,e)}return d.getProxyClass(f)(e)}}});define("wixappsCore/util/localizer",["lodash","utils"],function(a,b){"use strict";var c="@";var d={macroPattern:new RegExp("^"+c+"[0-9a-zA-Z_\\-\\.]*"+c+"$"),thingyPattern:new RegExp(c,"g")};function e(b,c){if(a.has(c,b)){return c[b]}return"["+b+"] - not found"}return{getLocalizationBundleForPackage:function(a,c,d){var e=b.wixUserApi.getLanguage(d.requestModel.cookie,d.currentUrl).toLowerCase();var f=a.getDescriptor(c);return f&&(f.lang[e]||f.lang.en)},localize:function(a,b){var c,f,g;while((c=d.macroPattern.exec(a))!==null){c=c[0];f=c.replace(d.thingyPattern,"");g=e(f,b);a=a.replace(c,g)}return a}}});define("wixappsCore/util/memoizedViewsUtils",["lodash","wixappsCore/util/viewsUtils"],function(a,b){"use strict";function c(a,b,c,d){return[a.id,b,c,d].join("|")}return{findViewInDescriptorByNameTypeAndFormat:a.memoize(b.findViewInDescriptorByNameTypeAndFormat,c)}});define("wixappsCore/util/richTextDefaultStyles",[],function(){"use strict";function a(a){var b=a.charAt(0)==="#";var c={name:b?"style":"class",value:b?"color:"+a+";":a};return{name:"span",attributes:[c]}}function b(a){var b=a.charAt(0)==="#";var c={name:b?"style":"class",value:b?"background-color:"+a+";":a};return{name:"span",attributes:[c]}}function c(a){return{name:"strong",attributes:[{name:"style",value:a?"font-weight: bold;":"font-weight: normal;"}]}}function d(a){return{name:"em",attributes:[{name:"style",value:a?"font-style: italic;":"font-style: normal;"}]}}function e(a){return{name:"strike",attributes:[{name:"style",value:a?"text-decoration: line-through;":"text-decoration: none;"}]}}function f(a){return{name:"u",attributes:[{name:"style",value:a?"text-decoration: underline;":"text-decoration: none;"}]}}return{color:a,backgroundColor:b,bold:c,italic:d,lineThrough:e,underline:f}});define("wixappsCore/util/richTextUtils",["lodash","utils","wixappsCore/util/richTextDefaultStyles","wixappsCore/util/styleMapping","fonts","experiment"],function(a,b,c,d,e,f){"use strict";function g(a){return a.replace(/]*>(.*?)<\/a>/gi,"$1")}function h(a){return d.styleToFontClass(a)}function i(b){var c=a.map(b,function(b){if(a.includes(b.value,'"')){return b.name+"='"+b.value+"'"}return b.name+'="'+b.value+'"'}).join(" ");return c.length?" "+c:c}function j(b){return a.map(b,function(a){return"<"+a.name+i(a.attributes)+">"}).join("")}function k(b){return a.map(b,function(a){return""}).reverse().join("")}function l(b){return a(b).groupBy("name").map(function(b,c){var d=a(b).pluck("attributes").flattenDeep().compact().groupBy("name").map(function(b,c){return{name:c,value:a.pluck(b,"value").join(" ")}}).value();return{name:c,attributes:d}}).value()}function m(b,d,g,i){var j=a.reduce(d,function(a,b){a[b.name]=b.value;return a},{});j.class=h(g("style")||"Body M");if(g("singleLine")){j.class+=" singleLine"}if(f.isOpen("sv_fixColorOfHatulOnHover")){var k=g("color");if(k){if(a.first(k)!=="#"){j.class+=" "+k}else{j.style=j.style||"";j.style="color:"+k+";"+j.style}}}var m=g("line-height");if(m){j.style=j.style||"";if(!/line-height:/.test(j.style)){j.style="line-height:"+m+"em;"+j.style}}var n=g("fontFamily");if(n){j.style=j.style||"";if(!/font-family:/.test(j.style)){j.style="font-family:"+e.fontUtils.getFontFamilyWithFallbacks(n)+";"+j.style}}var o=g("fontSize");if(o){j.style=j.style||"";if(!/font-size:/.test(j.style)){j.style="font-size:"+o+"px;"+j.style}}if(i){j.style=j.style||"";j.style=i+";"+j.style}var p=[{name:b||"p",attributes:a.reduce(j,function(a,b,c){a.push({name:c,value:b});return a},[])}];var q=["color","backgroundColor","bold","italic","lineThrough","underline"];if(f.isOpen("sv_fixColorOfHatulOnHover")){q=a.pull(q,"color")}a.forEach(q,function(b){var d=g(b);if(!a.isUndefined(d)&&!a.isNull(d)){p.push(c[b](d))}});return l(p)}function n(b){return b._type==="wix:RichText"&&a.get(b,"version",0)<2}function o(b,c){return b._type==="wix:RichText"&&c==="2.0"&&a.get(b,"version",0)>=2}function p(a){var c=[];var d=[];b.htmlParser(a,{start:function(a,b,e){var f=[{name:!e&&c.length===0?"hatul":a,attributes:b}];if(!e){c.push(k(f))}d.push(j(f))},end:function(){d.push(c.pop())},chars:function(a){if(c.length===0){d.push("");d.push(a);d.push("")}else{d.push(a)}}});return d.join("")}function q(a,b,c,d,e){return s(a,b.text,c,n(b),o(b,d),e)}function r(a,b,c){return s(a,b,c,false,false)}function s(a,c,d,e,f,h){var i=a("disableLinks")?g(c):c;var l=e?p(i):i;var n=a("singleLine");var o=false;var q=[];var r=[];var s=false;b.htmlParser(l,{start:function(b,c,e){if(o){return}if(n&&(b==="img"||b==="br")){return}var g=q.length===0;var i;if(b==="hatul"){if(!g&&f){i=[{name:"span",attributes:[]}]}else{i=m(d,c,a,h)}}else{i=[{name:b,attributes:c}]}if(!e){q.push(k(i))}r.push(j(i))},end:function(){if(o){return}r.push(q.pop());if(q.length===0&&n){if(!s){r=[]}else{o=true}}},chars:function(a){if(o){return}if(q.length===0&&/^\s+$/.test(a)){return}s=s||!/^( )+$/.test(a);r.push(a)}});return r.join("")}return{getDataWithDefaultStyleForRichText:q,getDataWithDefaultStyle:s,getDataWithDefaultStyleForString:r}});define("wixappsCore/util/wixappsUrlParser",["lodash","utils","wixappsCore/core/wixappsLogger"],function(a,b,c){"use strict";var d={"79f391eb-7dfc-4adf-be6e-64434c4838d9":{parse:function(b,c){var d=c.split("/");var e={};e.filter={};if(d[0]==="Featured"){e.filter.featured=true;d.shift()}for(var f=0;f/<%= month %>/<%= day %>/<%= title %>");var h=new Date(e.date.iso);return d.getAppPageUrl(b,c,g({year:h.getFullYear(),month:h.getMonth()+1,day:h.getDate(),title:f}),"")}function j(a){var b="7326bfbb-4b10-4a8e-84c1-73f776051e10";return a&&a.type==="AppPage"&&a.appPageType==="AppPage"&&a.appPageId===b}function k(a,c,e,f){var g;if(a.isUsingUrlFormat(b.siteConstants.URL_FORMATS.SLASH)){if(e.permalink){g=d.getAppPageUrl(a,c.id,e.permalink)}else{g=i(a,c.id,e,encodeURIComponent(f))}}else{g=d.getAppPageUrl(a,c.id,e._iid,f)}return g}function l(a,b,c){var d="61f33d50-3002-4882-ae86-d319c1a249ab";var f=a.getClientSpecMapEntryByAppDefinitionId(d);e.updateCategoryTagSearchesCounter(b,c,f)}var m={appPageLink:function(b,c,e){var f=a.unescape(e.title).replace(/(?![a-z0-9])(?!\s)[\x00-\x7F]/gi,"").replace(/\s+/g,"-");return{href:j(c)?k(b,c,e,f):d.getAppPageUrl(b,c.id,e._iid,f)}},date:function(a,b,c){var e="date/"+c.value;return{href:d.getAppPageUrl(a,b.id,e,h(b))}},tag:function(a,b,c){var e=(c.key||c).replace(/\s+/g,"-");var f="tag/"+encodeURIComponent(e);return{href:d.getAppPageUrl(a,b.id,f,h(b)),onClick:l.bind(this,a,"tag",e)}},category:function(a,b,c){var e=c;var f="category/"+encodeURIComponent(e.name.replace(/\s+/g,"-"));return{href:d.getAppPageUrl(a,b.id,f,h(b)),onClick:l.bind(this,a,"category",e.name)}},author:function(a,b,c){var e="author/"+encodeURIComponent(c.author.replace(/\s+/g,"-"));return{href:d.getAppPageUrl(a,b.id,e,h(b))}},prevPage:function(a,b,c,e){var i=e.pageAdditionalData||"";var j=f(i);n(j);if(j.page&&Number(j.page)){j.page=Number(j.page)-1}if(Number(j.page)===0){delete j.page}return{href:d.getAppPageUrl(a,b.id,g(j),h(b))}},nextPage:function(a,b,c,e){var i=e.pageAdditionalData||"";var j=f(i);n(j);if(j.page&&Number(j.page)){j.page=Number(j.page)+1}else{j.page=1}return{href:d.getAppPageUrl(a,b.id,g(j),h(b))}},numberedPage:function(a,b,c,e){var i=e.pageAdditionalData||"";var j=f(i);n(j);j.page=parseInt(c,10);if(Number(j.page)===0){delete j.page}return{href:d.getAppPageUrl(a,b.id,g(j),h(b))}}};function n(b){if(a.has(b,"Page")){b.page=b.Page;delete b.Page}}function o(b,c){if(b==="samePage"){var d=this.props.viewProps.rootNavigationInfo.pageId;return a.find(c,{id:d})}return a.find(c,function(a){return a.appPageId&&a.appPageId===b})}return{mixins:[c],getCustomProps:function(){var a=this.getCompProp("linkType")||"appPageLink";var b=this.props.viewProps.siteData.getPagesDataItems();var c=this.getCompProp("pageId");var d=o.call(this,c,b);if(d&&a&&m[a]){var e=this.props.viewProps.rootNavigationInfo;return m[a](this.props.viewProps.siteData,d,this.proxyData,e)}return{}}}});define("wixappsCore/proxies/nativeAppLinkProxy",["react","wixappsCore/proxies/appLinkProxy"],function(a,b){"use strict";var c=a.createFactory(a.createClass({displayName:"FlexboxContainerAnchor",render:function(){return a.DOM.div(this.props,a.DOM.a({"data-page-item-context":this.props.pathToItems,href:this.props.href,ref:"a",style:{display:"flex",flexDirection:"column",height:"100%",width:"100%"},target:this.props.target},this.props.children))}}));return{mixins:[b],getCustomZoomReactClass:function(){return c}}});define("wixappsCore/core/layoutBasedHelper",["lodash"],function(a){"use strict";function b(b,c){var d=a.has(b,"width");d=d||c==="vertical";d=d||c==="horizontal"&&(a.has(b,"flex")||a.has(b,"box-flex"));return d}function c(b,c){var d=a.has(b,"height");d=d||c==="horizontal";d=d||c==="vertical"&&(a.has(b,"flex")||a.has(b,"box-flex"));return d}return{isLayoutBasedWidth:b,isLayoutBasedHeight:c}});define("wixappsCore/proxies/areaProxy",["lodash","core","wixappsCore/proxies/mixins/boxProxy","wixappsCore/core/layoutBasedHelper"],function(a,b,c,d){"use strict";var e=b.compFactory;var f={display:"inherit","flex-direction":"inherit"};return{mixins:[c],getChildrenOrientation:function(){return this.getCompProp("orientation")||"vertical"},getComponentName:function(){return"wixapps.integration.components.Area"},getReactClass:function(){return e.getCompClass(this.getComponentName())},transformSkinProperties:function(b){var c=this.getStyleDef();if(d.isLayoutBasedHeight(c,this.props.orientation)){b.bg=b.bg||{};b.bg.style=a.merge({},b.bg.style,{height:"100%"})}b.inlineContent.style=a.merge({},b.inlineContent.style,f,{position:"relative",width:"100%"});return b}}});define("wixappsCore/proxies/mixins/siteButtonProxy",["lodash","core","wixappsCore/proxies/mixins/baseProxy","wixappsCore/core/typesConverter","wixappsCore/util/localizer"],function(a,b,c,d,e){ "use strict";var f=b.compFactory;var g="wysiwyg.viewer.components.SiteButton";return{mixins:[c],statics:{componentType:g},getCustomStyle:function(){var b={position:"relative"};if(this.getAdditionalButtonStyle){b=a.merge(b,this.getAdditionalButtonStyle())}return b},renderProxy:function(){var b=this.getChildCompProps(g,this.transformSkinProperties);var c=d.linkableButton(this.proxyData,this.props.viewProps.siteData);var h=this.getCompProp("label");if(a.isUndefined(h)){h=c.label}c.label=h.toString()?e.localize(h,this.props.viewProps.getLocalizationBundle()):this.getDefaultLabel();b.compData=c;var i=this.proxyData;if(i&&i.pageId){var j=this.props.viewProps.siteData;b.getDataByQuery=function(){return d.link(i,j.getDataByQuery.bind(j))}}b.compProp={align:this.getCompProp("align")||"center",margin:this.getCompProp("margin")||0,padding:this.getCompProp("labelPadding")||""};b.shouldUseFlex=false;b.noAutoLinkGeneration=true;return f.getCompClass(g)(b)}}});define("wixappsCore/proxies/buttonProxy",["wixappsCore/proxies/mixins/siteButtonProxy","lodash"],function(a,b){"use strict";return{mixins:[a],transformSkinProperties:function(a){var c={"data-proxy-name":"Button",onClick:this.handleViewEvent};a[""]=b.merge({},a[""],c);return a},getAdditionalButtonStyle:function(){var a={};var b=this.getCompProp("label")||this.proxyData;if(b===""){a.display="none"}return a},getDefaultLabel:function(){return"Submit"}}});define("wixappsCore/proxies/button2Proxy",["wixappsCore/proxies/mixins/siteButtonProxy","lodash"],function(a,b){"use strict";return{mixins:[a],transformSkinProperties:function(a){var c=this.getProxyStyle();var d=c.height||this.getCompProp("height")||30;var e={onClick:this.handleViewEvent,"data-proxy-name":"Button2",style:{height:d,maxWidth:c.width}};if(this.getCompProp("shouldNotExceedParentWidth")){e.style.width="100%";e["data-should-prevent-width-measurement"]=true}a[""]=b.merge({},a[""],e);var f={overflow:"hidden"};a.link.style=b.merge({},a.link.style,f);return a},getDefaultLabel:function(){return""}}});define("wixappsCore/proxies/mixins/textProxy",["lodash","wixappsCore/proxies/mixins/baseProxy","wixappsCore/core/typesConverter","wixappsCore/util/localizer","wixappsCore/util/richTextUtils","reactDOM","experiment"],function(a,b,c,d,e,f,g){"use strict";var h=new RegExp(a.escape("
"),"gi");function i(b,d,e){var f=a.find(d.links,{linkId:e});return f?c.link(f,b):null}return{mixins:[b],statics:{prefix:{type:"compProp",defaultValue:""},postfix:{type:"compProp",defaultValue:""},disableLinks:{type:"compProp",defaultValue:false},lineThrough:{type:"compProp",defaultValue:false},underline:{type:"compProp",defaultValue:false},singleLine:{type:"compProp",defaultValue:false},color:{type:"compProp",defaultValue:null},backgroundColor:{type:"compProp",defaultValue:null},noWrap:{type:"compProp",defaultValue:false},bold:{type:"compProp",defaultValue:false},italic:{type:"compProp",defaultValue:false},lineHeight:{type:"compProp",defaultValue:null},fontFamily:{type:"compProp",defaultValue:null},fontSize:{type:"compProp",defaultValue:null},showTooltip:{type:"compProp",defaultValue:false}},useSkinInsteadOfStyles:true,getInitialState:function(){return{showToolTip:false}},componentDidMount:function(){var a=f.findDOMNode(this);var b=this.getCompProp("singleLine")&&this.getCompProp("showTooltip")&&a.scrollWidth>a.offsetWidth;if(b!==this.state.showToolTip){this.setState({showToolTip:b})}},createFormattedText:function(b,c){if(b._type==="wix:RichText"||b._type==="wix:MediaRichText"){var f=this.props.viewProps.getPartDefinition().version;return e.getDataWithDefaultStyleForRichText(this.getCompProp,b,c,f)}if(!a.isString(b)){b=a.isNumber(b)?b.toString():""}if(g.isOpen("sv_limitAuthorLength")){var i=this.getCompProp("max-chars");if(i){b=b.substring(0,i)}}var j=this.props.viewProps.getLocalizationBundle();var k=d.localize(b,j);var l=k.replace(h,a.unescape);var m=a.compact(["",this.getCompProp("prefix"),l,this.getCompProp("postfix"),""]).join("");return e.getDataWithDefaultStyleForString(this.getCompProp,m,c)},getDataByQuery:function(a){var b=this.props.viewProps.siteData;return i(b.getDataByQuery.bind(b),this.proxyData,a)},getRichTextChildCompProps:function(a,b){var c=this.getChildCompProps(a,b);c.style=c.style||{};c.style.whiteSpace=this.getCompProp("noWrap")?"nowrap":"normal";if(this.state.showToolTip){c.title=(this.getCompProp("prefix")||""+this.proxyData+this.getCompProp("postfix")||"").replace(/\s+/gim," ").replace(/^\s*/,"").replace(/\s*$/,"")}c.noAutoLinkGeneration=true;return c}}});define("wixappsCore/util/textClipper",["lodash","utils"],function(a,b){"use strict";var c=b.htmlParser;var d=[" ","<",">","&","¢","£","¥","€","©","®"];function e(b){return a.reduce(d,function a(b,c){return b.replace(c,"*")},b).length}function f(a,b){var c=new RegExp("("+d.join("|")+")");var e="";var f=0;while(f0){var g=c.exec(a);var h=g?g.index:a.length;var i=a.substr(0,h);i=i.substr(0,b-f);f+=i.length;if(f")}},chars:function(a){if(i){return}var c=e(a);if(j+c<=b){j+=c;d.push(a)}else{i=true;var k=f(a,b-j);d.push(g(k));d.push("...");while(h.length>0){d.push(h.pop())}}},end:function(){if(i){return}d.push(h.pop())}});return d.join("")}return{clipText:h}});define("wixappsCore/proxies/clippedParagraphProxy",["lodash","core","wixappsCore/proxies/mixins/textProxy","wixappsCore/core/typesConverter","wixappsCore/util/textClipper","fonts"],function(a,b,c,d,e,f){"use strict";var g=b.compFactory;function h(b){var c=parseFloat(b);if(isNaN(c)&&a.includes(["normal","initial","inherit"],b)){c=1.2}return c}function i(a){var b=this.getCompProp("minLines")||this.getCompProp("singleLine")&&1;if(!b){return 0}var c=f.fontUtils.getFontClassName(a);var d=this.props.viewProps.siteData.getFont(c);var e=f.fontUtils.parseFontStr(d);var g=1.25;if(this.getCompProp("line-height")){g=h(this.getCompProp("line-height"))}return parseInt(e.size,10)*g*b}return{mixins:[c],renderProxy:function(){var a=this.proxyData;var b=this.createFormattedText(a);var c=i.call(this,b);var f=function(a){a[""].style=a[""].style||{};a[""].style.overflow="hidden";if(c){a[""].style["min-height"]=c}return a};var h="wysiwyg.viewer.components.WRichText";var j=this.getRichTextChildCompProps(h,f);var k=this.getCompProp("max-chars")||150;var l=this.getCompProp("remove-anchors")||false;if(l){b=b.replace(/(]*>)/g,"").replace(/(<\/a>)/g,"")}b=e.clipText(b,k);j.compData=d.richText(b,a.links,this.props.viewProps.siteData);return g.getCompClass(h)(j)}}});define("wixappsCore/proxies/comboBoxProxy",["lodash","core","wixappsCore/core/typesConverter","wixappsCore/proxies/mixins/inputProxy","wixappsCore/util/localizer"],function(a,b,c,d,e){"use strict";var f=b.compFactory;function g(){return{placeholder:{text:e.localize(this.getCompProp("promptText"),this.props.viewProps.getLocalizationBundle()),value:-1},size:null}}return{mixins:[d],renderProxy:function(){var b=this.proxyData;var d=this;var h="wysiwyg.viewer.components.inputs.ComboBoxInput";var i=this.getChildCompProps(h);i.compProp=this.getCompProp("hasPrompt")&&!a.some(b.items,{value:b.selectedValue})?g.call(this):{};i.compData=c.selectableList(b);a.forEach(i.compData.options,function(a){a.text=e.localize(a.text,this.props.viewProps.getLocalizationBundle());a.description=e.localize(a.description,this.props.viewProps.getLocalizationBundle())},this);i.onSelectionChange=function a(c,e){c.payload.listData=b;var f=c.payload.value||b.items[0].value;d.setData(f,"selectedValue");d.handleViewEvent(c,e)};i.errorMessage=!b.valid;return f.getCompClass(h)(i)}}});define("wixappsCore/proxies/cssProxy",["lodash","react","wixappsCore/proxies/mixins/baseCompositeProxy"],function(a,b,c){"use strict";return{mixins:[c],renderProxy:function(){var c=this.getCompProp("items");var d=a.map(c,function(a,b){return this.renderChildProxy(a,b)},this);var e=this.getChildCompProps();return b.DOM.div(e,d)}}});define("wixappsCore/proxies/dateProxy",["core","wixappsCore/proxies/mixins/textProxy","wixappsCore/core/typesConverter"],function(a,b,c){"use strict";var d=a.compFactory;var e="wysiwyg.viewer.components.WRichText";var f=function(){var a=/d{1,5}|m{1,5}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[\-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){a=String(a);b=b||2;while(a.length99?Math.round(r/10):r),t:o<12?"a":"p",tt:o<12?"am":"pm",T:o<12?"A":"P",TT:o<12?"AM":"PM",Z:h?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(s>0?"-":"+")+d(Math.floor(Math.abs(s)/60)*100+Math.abs(s)%60,4),S:["th","st","nd","rd"][k%10>3?0:(k%100-k%10!==10)*k%10]};return g.replace(a,function(a){return a in t?t[a]:a.slice(1,a.length-1)})}}();f.masks={default:"mmmm dd, yyyy",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",eUshortDate:"d/m/yy",eUshortDate2:"d.m.yy"};f.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};return{mixins:[b],statics:{componentType:e,format:{type:"compProp",defaultValue:"mmmm dd, yyyy"}},getFormattedDateString:function(a){var b=this.getCompProp("format")||this.constructor.format.defaultValue;var c=a.iso||a;var d=new Date(c);if(d.getTime()>=0){return f(d,b)}return""},renderProxy:function(){var a=this.proxyData;var b=this.createFormattedText(this.getFormattedDateString(a));var f=this.getRichTextChildCompProps(e);f.compData=c.richText(b,a.links,this.props.viewProps.siteData);return d.getCompClass(e)(f)}}});define("wixappsCore/proxies/erasableTextInputProxy",["core","wixappsCore/core/typesConverter","wixappsCore/proxies/mixins/inputProxy"],function(a,b,c){"use strict";var d=a.compFactory;return{mixins:[c],renderProxy:function(){var a=this.proxyData;var c="wysiwyg.viewer.components.inputs.ErasableTextInput";var e=this.getChildCompProps(c);e.compData=b.text(a);e.compProp={label:this.getCompProp("label"),placeholder:this.getCompProp("placeholder")};e.message=this.getCompProp("message");e.isValid=this.getCompProp("isValid");var f=this;e.onChange=function(a,b){f.setData(a.target.value);a.type="inputChanged";f.handleViewEvent(a,b)};e.onErase=function(){f.setData("")};return d.getCompClass(c)(e)}}});define("wixappsCore/proxies/fixedRatioProxy",["react","wixappsCore/proxies/mixins/baseCompositeProxy","lodash"],function(a,b,c){"use strict";function d(a,b){var d=function(b){return a[b]&&!(c.isString(a[b])&&a[b].slice(-1)==="%")};var e={};if(d("width")){e.width=parseInt(a.width,10);e.height=Math.floor(e.width/b)}else if(d("height")){e.height=parseInt(a.height,10);e.width=Math.floor(e.height*b)}else if(d("box-flex")||d("boxFlex")){e.position="absolute";e.height="100%";e.width="100%";e.top="0px";e.left="0px"}else{throw new Error("FixedRatioProxy's child proxy does not receive legal layout properties")}return e}function e(b,c){var d={1:"data:image/gif;base64,R0lGODlhAQABAIAAAP7//wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",1.77:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAYAAAA7KqwyAAAAE0lEQVR42mP4TyFgGDVg1AAgAAC2ij3fb7PW1wAAAABJRU5ErkJggg=="};var e={position:"relative",top:"0px",bottom:"0px",left:"0px",right:"0px",visibility:"hidden"};if(b==="vertical"){e.minWidth="100%"}else{e["min-height"]="100%"}if(!d[c]){throw"This ratio is not supported by the current map: "+c}return a.DOM.img({src:d[c],style:e})}function f(a){var b={vertical:{width:"100%",minWidth:"100%",position:"relative"},horizontal:{height:"100%","min-height":"100%",position:"relative"}};return b[a]}return{mixins:[b],renderProxy:function(){var b=this.getCompProp("items");var g=parseFloat(this.getCompProp("aspectRatio"));if(b.length!==1){throw new Error("FixedRatioProxy can only contain one child")}if(!g){throw new Error("FixedRatioProxy did not receive any aspect ratio")}var h=b[0];var i=this.getStyleDef(h);if(h.layout&&!h.layout["box-flex"]&&!h.layout.boxFlex){c.merge(i,d(i,g));return this.renderChildProxy(h,0,i)}var j=e(this.props.orientation,g);var k=f(this.props.orientation);return a.DOM.div({style:c.merge(k,i)},j,this.renderChildProxy(h,0,d(i,g)))}}});define("wixappsCore/proxies/mixins/templateBasedChildrenProxy",["lodash"],function(a){"use strict";function b(b,c){if(!c){return{}}if(b==="first"&&a.has(c,"first")){return c.first}else if(b==="last"&&a.has(c,"last")){return c.last}return c.item}function c(a,b){if(a===0){return"first"}else if(a===b-1){return"last"}return"middle"}return{getChildTemplateDefinition:function(a,d){var e=this.getCompProp("templates");var f=c(a,d);return b(f,e)}}});define("wixappsCore/proxies/galleryProxy",["lodash","core","wixappsCore/proxies/mixins/templateBasedChildrenProxy","wixappsCore/proxies/mixins/baseCompositeProxy"],function(a,b,c,d){"use strict";var e=b.compFactory;function f(a){a[""]["data-proxy-name"]="GalleryProxy";a[""]["data-total-columns"]=this.getCompProp("columns");a[""]["data-total-rows"]=this.getCompProp("rows");a[""]["data-gap"]=this.getCompProp("gap");a.itemsContainer.style.width=isNaN(a.itemsContainer.style.width)?"100%":a.itemsContainer.style.width;a.itemsContainer.style.height=isNaN(a.itemsContainer.style.height)?"100%":a.itemsContainer.style.height;return a}function g(b,c){if(!a.isEqual(b.compData,c.compData)){return false}var d=["numCols","maxRows","margin"];return a.isEqual(a.pick(b.compProp,d),a.pick(c.compProp,d))}return{mixins:[d,c],createGalleryItem:function(b,c,d,e,f,g,h){var i=this.getCompProp("columns");var j=this.getCompProp("rows");var k=this.getCompProp("gap")||0;var l={position:"absolute",width:"calc((100% - "+(i-1)*k+"px) / "+i+")",height:"calc((100% - "+(j-1)*k+"px) / "+j+")"};if(g){l=a.merge(l,g)}var m={getComponentScopedClass:function(a){var b={};b[a]=true;return h(b)}};var n=this.getChildTemplateDefinition(d,f);var o=this.getViewDefProp("data")||"this";var p=a.indexOf(this.proxyData,c);var q=this.getItemRef(b,e,d);var r=this.getChildProxyProps(n,[o,p],{functionLibrary:m});var s={className:h({galleryDisplayer:true}),"data-index":d};r=a.assign(r,s);return this.renderChildProxy(n,q,l,r)},getItemRef:function(a,b,c){return a+b+"#"+c},registerComponentReLayout:function(){this.refs.component.registerReLayout()},renderProxy:function(){var a="wysiwyg.viewer.components.PaginatedGridGallery";var b=this.getChildCompProps(a,f.bind(this));b.createGalleryItem=this.createGalleryItem;b.onAnimationCompleteCallback=this.registerComponentReLayout;b.getItemRef=this.getItemRef;b.compData={items:this.proxyData};b.compProp={transition:this.getCompProp("transition"),autoplayInterval:this.getCompProp("autoplayInterval"),transDuration:this.getCompProp("transDuration")||1,numCols:this.getCompProp("columns"),maxRows:this.getCompProp("rows"),margin:this.getCompProp("gap"),autoplay:this.getCompProp("autoplay"),expandEnabled:this.getCompProp("expandEnabled"),showAutoplay:this.getCompProp("showAutoplay"),showNavigation:this.getCompProp("showNavigation")!==false,showCounter:this.getCompProp("showCounter")!==false};b.style.position="relative";b.key=this.getViewDefProp("id")+"_"+this.getCompProp("rows")+"_"+this.getCompProp("columns");var c=this.props.viewProps.siteData.measureMap;if(c&&c.height[b.id]&&this.refs.component&&g(b,this.refs.component.props)){b.style.width=c.width[b.id];b.style.height=c.height[b.id]}return e.getCompClass(a)(b)}}});define("wixappsCore/proxies/hBoxProxy",["react","wixappsCore/proxies/mixins/boxProxy"],function(a,b){"use strict";return{mixins:[b],getChildrenOrientation:function(){return"horizontal"},getReactClass:function(){return a.DOM.div}}});define("wixappsCore/proxies/horizontalLineProxy",["core","wixappsCore/proxies/mixins/baseProxy","lodash"],function(a,b,c){"use strict";var d=a.compFactory;var e="wysiwyg.viewer.components.FiveGridLine";function f(a){a[""]=c.merge({},a[""],{style:{position:"relative"}});return a}return{mixins:[b],statics:{componentType:e},renderProxy:function(){var a=this.getChildCompProps(e,f);return d.getCompClass(e)(a)}}});define("wixappsCore/proxies/iconProxy",["core","wixappsCore/core/typesConverter","wixappsCore/proxies/mixins/baseProxy"],function(a,b,c){"use strict";var d=a.compFactory;return{mixins:[c],renderProxy:function(){var a=this.proxyData;var c="wixapps.integration.components.Icon";var e=this.getChildCompProps(c);e.compData=b.icon(a,this.props.viewProps.resolveImageData,this.props.viewProps.siteData.serviceTopology,this.props.viewProps.packageName);return d.getCompClass(c)(e)}}});define("wixappsCore/proxies/imageButtonProxy",["core","wixappsCore/core/typesConverter","wixappsCore/proxies/mixins/baseProxy"],function(a,b,c){"use strict";var d=a.compFactory;return{mixins:[c],renderProxy:function(){var a=this.proxyData;var c="wixapps.integration.components.ImageButton";var e=this.getChildCompProps(c);e.compData=b.icon(a,this.props.viewProps.resolveImageData,this.props.viewProps.siteData.serviceTopology,this.props.viewProps.packageName);e.compProp={isSprite:this.getCompProp("isSprite"),spriteDirection:this.getCompProp("spriteDirection"),startPositionX:this.getCompProp("startPositionX"),startPositionY:this.getCompProp("startPositionY")};return d.getCompClass(c)(e)}}});define("wixappsCore/proxies/imageButtonWithTextProxy",["core","lodash","wixappsCore/proxies/mixins/baseProxy"],function(a,b,c){"use strict";return{mixins:[c],renderProxy:function(){var c="wysiwyg.viewer.components.ImageButtonWithText";var d=b.merge({},this.getChildCompProps(c),{compData:{iconSource:this.getCompProp("iconSource"),label:this.getCompProp("label"),extraInfo:this.getCompProp("extraInfo"),type:this.getCompProp("type")},compProp:{direction:this.props.viewProps.compProp.direction,size:this.getCompProp("size")}});return a.compFactory.getCompClass(c)(d)}}});define("wixappsCore/proxies/mixins/baseImageProxy",["lodash","core","wixappsCore/proxies/mixins/baseProxy","react"],function(a,b,c,d){"use strict";var e=b.compFactory;var f={fitWidth:"fitWidthStrict",fitHeight:"fitHeightStrict"};var g="wysiwyg.viewer.components.WPhoto";function h(b,c,d,e){var f=a.pick(c,["width","height"]);if(b==="fitWidth"&&a.isNumber(c.width)){return f}if(b==="fitHeight"&&a.isNumber(c.height)){return f}if(a.isNumber(c.height)&&a.isNumber(c.width)){return f}return{width:d?d.width[e]:16,height:d?d.height[e]:16}}return{mixins:[c],statics:{componentType:g},getCustomStyle:function(){return{position:"relative"}},renderProxy:function(){var a=this.getCompProp("imageMode")||"fill";var b=this.getCompData();var c=this.getChildCompProps(g);c.compData=b;var i=f[a]||a;c.compProp={displayMode:i};var j={"data-proxy-name":"Image","data-width":b.width,"data-height":b.height,"data-uri":b.uri,"data-display-mode":i,id:c.id+"_container",style:c.style,ref:"container"};c.style=h(i,c.style,this.props.viewProps.siteData.measureMap,c.id);return d.DOM.div(j,e.getCompClass(g)(c))}}});define("wixappsCore/proxies/imageProxy",["wixappsCore/core/typesConverter","wixappsCore/proxies/mixins/baseImageProxy"],function(a,b){"use strict";return{mixins:[b],getCompData:function(){return a.image(this.proxyData,this.props.viewProps.resolveImageData,this.props.viewProps.siteData.serviceTopology,this.props.viewProps.packageName,this.props.viewProps.siteData.getGlobalImageQuality())}}});define("wixappsCore/proxies/inlineSpacerProxy",["react","wixappsCore/proxies/mixins/baseProxy"],function(a,b){"use strict";return{mixins:[b],getCustomStyle:function(){var a=this.getCompProp("size");return{wordSpacing:a,display:"inline"}},renderProxy:function(){var b=this.getChildCompProps();return a.DOM.div(b," ")}}});define("wixappsCore/proxies/inlineTextProxy",["core","wixappsCore/proxies/mixins/textProxy","wixappsCore/core/typesConverter","react"],function(a,b,c,d){"use strict";var e=a.compFactory;function f(a){a[""].parentConst=d.DOM.span;return a}return{mixins:[b],renderProxy:function(){var a=this.proxyData;var b=this.createFormattedText(a,"span");var d="wysiwyg.viewer.components.WRichText";var g=this.getRichTextChildCompProps(d,f);g.compData=c.richText(b,a.links,this.props.viewProps.siteData);return e.getCompClass(d)(g)}}});define("wixappsCore/proxies/labelProxy",["core","wixappsCore/proxies/mixins/textProxy","wixappsCore/core/typesConverter"],function(a,b,c){"use strict";var d=a.compFactory;var e="wysiwyg.viewer.components.WRichText";return{mixins:[b],statics:{componentType:e},renderProxy:function(){var a=this.proxyData;var b=this.getCompProp("elementTag");var f=this.createFormattedText(a,b);var g=this.getRichTextChildCompProps(e);g.compData=c.richText(f,a.links,this.props.viewProps.siteData);return d.getCompClass(e)(g)}}});define("wixappsCore/proxies/linkProxy",["react","utils","wixappsCore/core/typesConverter","wixappsCore/proxies/mixins/boxProxy"],function(a,b,c,d){"use strict";return{mixins:[d],getChildrenOrientation:function(){return this.getCompProp("orientation")||"vertical"},getReactClass:function(){return a.DOM.a},getCustomProps:function(){var a=this.props.viewProps.siteData;var d=c.link(this.proxyData,a.getDataByQuery.bind(a));var e=b.linkRenderer.renderLink(d,a,this.props.viewProps.rootNavigationInfo);e.className="wixAppsLink";return e}}});define("wixappsCore/proxies/listProxy",["lodash","core","wixappsCore/proxies/mixins/templateBasedChildrenProxy","wixappsCore/proxies/mixins/baseCompositeProxy"],function(a,b,c,d){"use strict";var e=b.compFactory;return{mixins:[d,c],getDefaultProps:function(){return{}},getInitialState:function(){return{currentPage:1}},prevPageClicked:function(){g.call(this,h.call(this))},nextPageClicked:function(){g.call(this,i.call(this))},renderProxy:function(){var b=this.proxyData;var c=b.length;var d=this.getCompProp("templates")?this.getCompProp("templates.vars"):{};var g;var h=this.getCompProp("hidePagination");if(!h){g=this.getCompProp("itemsPerPage")}var i=0;var j=c;var k=1;var l=this.state.currentPage;if(!a.isUndefined(g)){i=(l-1)*g;j=Math.min(i+g,c);k=Math.ceil(c/g)}var m=b.slice(i,j);var n=m.length;var o=a.map(m,function(b,c){var e="middle";if(c===0&&n>1){e="first"}else if(c===n-1){e="last"}var g={indexInParent:c,indexOneInParent:c+1,positionInParent:e,isOddIndexInParent:c%2===1,currentPage:l,maxPage:k,hasNext:l!==k,hasPrev:l!==1,hidePagination:this.getCompProp("hidePagination")};g=a.merge({},d,g);var h={prevPageClicked:this.prevPageClicked,nextPageClicked:this.nextPageClicked,numberedPageClicked:a.bind(f,this)};var j=this.getViewDefProp("data")||"this";var m=this.getChildTemplateDefinition(c,n);var o={vars:{proxy:g},events:h};var p=i+c;var q=this.getChildProxyProps(m,[j,p],o);q["data-isfirst"]=c===0;q["data-iseven"]=c%2===1;q["data-islast"]=c===n-1;q.proxyParentId=this.props.viewDef.id+"_"+p;return this.renderChildProxy(m,p,this.props.childAdditionalStyle,q)},this);var p=this.getChildCompProps("wysiwyg.viewer.components.VerticalRepeater");p.style=a.merge(p.style,this.props.additionalStyle);return e.getCompClass("wysiwyg.viewer.components.VerticalRepeater")(p,o)}};function f(a){g.call(this,a.params.page)}function g(a){this.setState({currentPage:a});this.props.viewProps.siteAPI.registerReLayoutPending()}function h(){return this.state.currentPage===1?j.call(this):this.state.currentPage-1}function i(){return this.state.currentPage===j.call(this)?1:this.state.currentPage+1}function j(){var a=this.proxyData.length;var b=this.getCompProp("itemsPerPage");return Math.ceil(a/b)}});define("wixappsCore/proxies/mediaLabelProxy",["lodash","core","wixappsCore/proxies/mixins/textProxy","wixappsCore/core/typesConverter"],function(a,b,c,d){"use strict";var e=b.compFactory;function f(b){b[""]=a.merge({},b[""],{"data-proxy-name":"MediaLabel"});return b}function g(a){var b=a.viewDef.data||"this";return this.props.viewProps.getNormalizedDataPath(this.contextPath,b)}function h(a){if(a){if(a._type==="wix:Image"){var b=this.props.viewProps.siteData.getGlobalImageQuality();return d.image(a,this.props.viewProps.resolveImageData,this.props.viewProps.siteData.serviceTopology,this.props.viewProps.packageName,b)}if(a._type==="wix:Video"){return d.video(a)}}return null}return{mixins:[c],shouldComponentUpdate:function(b){var c=a.includes(this.props.viewProps.siteData.componentsToRender,this.props.viewProps.compId);var d=g.call(this,b);var e=d&&!a.isEqual(this.fullDataPath,d);return c||e||!!(this.isViewDefCompChangedInNextProps&&this.isViewDefCompChangedInNextProps(b))},renderProxy:function(){var b=this.proxyData;this.fullDataPath=g.call(this,this.props);var c=this.createFormattedText(b);var i="wysiwyg.viewer.components.MediaRichText";var j=this.getRichTextChildCompProps(i,f);var k=a.mapValues(b.refMap,h,this);j.compData=d.richText(c,b.links,this.props.viewProps.siteData,k);return e.getCompClass(i)(j)}}});define("wixappsCore/proxies/paginatedColumnGalleryProxy",["lodash","core","react","utils","wixappsCore/proxies/mixins/templateBasedChildrenProxy","wixappsCore/proxies/mixins/baseCompositeProxy"],function(a,b,c,d,e,f){"use strict";var g=b.componentUtils.galleryPagingCalculations;return{mixins:[f,e],componentWillUpdate:function(a){var b=Math.ceil(this.proxyData.length/this.getItemsNumberPerPage(a));var c=this.getVar("maxPage");if(b!==c){this.setVar("maxPage",b,true)}},componentWillMount:function(){var a=Math.ceil(this.proxyData.length/this.getItemsNumberPerPage(this.props));this.setVar("maxPage",a,true)},getItemsNumberPerPage:function(b){var c=parseInt(this.getCompProp("itemsPerPage",b.viewDef),10);if(a.isNaN(c)||!a.isNaN(c)&&c>=this.proxyData.length){c=this.proxyData.length}return c},createChildProxy:function(b,e,f){var g=this.getViewDefProp("data")||"this";var h=this.getChildTemplateDefinition(b,e);var i=this.getChildProxyProps(h,[g,b],{});return c.DOM.div({key:b,style:a.assign({display:"inline-block",verticalAlign:"top",width:100/f+"%"},d.style.prefix({boxSizing:"border-box"}))},this.renderChildProxy(h,b,null,i))},getCurrentPositionInData:function(a,b){if(a===this.proxyData.length){return 0}return b*a},getCurrentPage:function(){var a=this.getVar("currentPage")||1;a=parseInt(a,10)-1;return a},renderProxy:function(){var a=this.getItemsNumberPerPage(this.props);var b=this.getCurrentPage();var d=this.getCurrentPositionInData(a,b);var e=this.getCompProp("columns")||3;var f=[];var h=g.getLastItemIndex(this.proxyData,d,a);for(var i=d;i<=h;i++){f.push(this.createChildProxy(i,a,e))}var j=this.getChildCompProps();j["data-proxy-name"]="PaginatedColumnGalleryProxy";j["data-direction"]=this.getVar("partDirection")||"ltr";j["data-horizontal-gap"]=this.getCompProp("horizontalGap")||0;j["data-vertical-gap"]=this.getCompProp("verticalGap")||0;j["data-columns"]=e;return c.DOM.div(j,f)}}});define("wixappsCore/proxies/paginationProxy",["lodash","react","wixappsCore/proxies/mixins/baseCompositeProxy"],function(a,b,c){"use strict";return{mixins:[c],renderProxy:function(){return b.DOM.div(d.call(this),f.call(this))}};function d(){return{style:e.call(this)}}function e(){return{display:"inline-flex"}}function f(){return a.map(g.call(this),function(a,b){var c=ka.call(this,a);var d=sa(a,b);var e=null;var f=qa.call(this,a);return this.renderChildProxy(c,d,e,f)},this)}function g(){return[].concat(h.call(this),u.call(this),v.call(this))}function h(){return i.call(this).concat(p.call(this))}function i(){return j.call(this)?[k.call(this)]:[]}function j(){return!fa.call(this,1)}function k(){return J.call(this,{isFirst:true,name:l.call(this),number:o.call(this)})}function l(){return"<"+(m.call(this)?" "+n.call(this):"")}function m(){return Boolean(n.call(this))}function n(){return this.getCompProp("nameForPrevious")}function o(){return ga.call(this)-1}function p(){return q.call(this)?r.call(this):[]}function q(){return K.call(this,1)}function r(){return s.call(this).concat(I.call(this))}function s(){return ca.call(this)||!C.call(this)?[t.call(this)]:[]}function t(){return J.call(this,{number:1})}function u(){return a.map(M.call(this),function(a){return J.call(this,{isFirst:a===1&&!j.call(this),isDisabled:fa.call(this,a),number:a})},this)}function v(){return w.call(this).concat(B.call(this))}function w(){return x.call(this)?y.call(this):[]}function x(){return K.call(this,ia.call(this))}function y(){return[I.call(this)].concat(z.call(this))}function z(){return ca.call(this)||!j.call(this)?[A.call(this)]:[]}function A(){return J.call(this,{number:ia.call(this)})}function B(){return C.call(this)?[D.call(this)]:[]}function C(){return!fa.call(this,ia.call(this))}function D(){return J.call(this,{name:E.call(this),number:H.call(this)})}function E(){return(F.call(this)?G.call(this)+" ":"")+">"}function F(){return Boolean(G.call(this))}function G(){return this.getCompProp("nameForNext")}function H(){return ga.call(this)+1}function I(){return J.call(this,{isDisabled:true,isGap:true,name:"..."})}function J(a){return{paginationItemDisabled:Boolean(a.isDisabled),paginationItemFirst:Boolean(a.isFirst),paginationItemGap:Boolean(a.isGap),paginationItemName:a.name?a.name:a.number.toString(),paginationItemValue:a.isDisabled?null:a.number}}function K(a){return!L.call(this,a)}function L(b){return a.includes(M.call(this),b)}function M(){return a.range(N.call(this),U.call(this)+1)}function N(){return O.call(this)||X.call(this)?1:Q.call(this)}function O(){return P.call(this)