Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define("components/components/imageButtonWithText/imageButtonWithText", ["core", "experiment"], function(a, b) {
- "use strict";
- return {
- displayName: "ImageButtonWithText",
- mixins: [a.compMixins.skinBasedComp],
- getSkinProperties: function a() {
- return {
- button: {
- className: c.call(this)
- },
- buttonIcon: {
- src: this.props.compData.iconSource
- },
- buttonLabel: {
- children: this.props.compData.label
- },
- buttonExtraInfo: {
- children: this.props.compData.extraInfo
- }
- }
- }
- };
- function c() {
- var a = {};
- a["direction-" + this.props.compProp.direction] = true;
- a["label-empty"] = !this.props.compData.label;
- a["extraInfo-empty"] = !b.isOpen("sv_blogSocialCounters") || !this.props.compData.extraInfo;
- a["size-" + this.props.compProp.size] = true;
- a["type-" + this.props.compData.type] = true;
- return this.classSet(a)
- }
- });
- define("components/components/verticalAnchorsMenu/svgShapesData", [], function() {
- "use strict";
- return {
- circle: {
- svg: {
- width: "12",
- height: "12",
- viewBox: "0 0 24 24"
- },
- content: '<circle cx="12" cy="12" r="10"/>'
- },
- fullCircle: {
- svg: {
- width: "24",
- height: "24",
- viewBox: "0 0 48 48"
- },
- content: '<circle class="external" cx="24" cy="24" r="22" />' + '<circle class="border" cx="24" cy="24" r="10" />' + '<circle class="inner" cx="24" cy="24" r="10" />'
- }
- }
- });
- define("components/components/verticalAnchorsMenu/verticalAnchorsMenuItem", ["zepto", "lodash", "react", "utils", "components/components/verticalAnchorsMenu/svgShapesData"], function(a, b, c, d, e) {
- "use strict";
- var f = d.linkRenderer;
- var g = {
- item: "item",
- line: "line",
- link: "link",
- symbol: "symbol",
- textWrapper: "text-wrapper",
- label: "label"
- };
- return c.createClass({
- displayName: "VerticalAnchorsMenuItem",
- getInitialState: function() {
- this.elementClasses = {};
- return {
- hovered: null
- }
- },
- updateElementClasses: function() {
- var a = this.props.styleId;
- b.forEach(g, function(b, c) {
- this.elementClasses[c] = a + "_" + b
- }, this)
- },
- handleOnMouseEnter: function() {
- if (!this.props.isTablet) {
- this.setState({
- hovered: true
- })
- }
- },
- handleOnMouseLeave: function() {
- if (!this.props.isTablet) {
- this.setState({
- hovered: false
- })
- }
- },
- disableClickOnTextWrapper: function(b) {
- var c = a(b.target).find("[class=" + this.elementClasses.textWrapper + "]");
- if (c && c.css("visibility") === "hidden") {
- b.preventDefault();
- b.stopPropagation()
- }
- },
- generateAnchorLink: function() {
- var a = b.clone(this.props.anchorData);
- var c = this.props.siteData;
- var d = c.getDataByQuery(c.getPrimaryPageId());
- a.type = "AnchorLink";
- a.anchorDataId = a;
- a.pageId = d;
- return f.renderLink(a, c, this.props.rootNavigationInfo)
- },
- getLabelProps: function() {
- return {
- className: this.elementClasses.label
- }
- },
- getTextWrapperProps: function() {
- return {
- className: this.elementClasses.textWrapper,
- key: "textWrapper"
- }
- },
- getSvgProps: function() {
- var a = e[this.props.svgShapeName];
- var c = this.elementClasses.symbol;
- var d = b.clone(a.svg);
- b.assign(d, {
- key: "img-" + c + this.props.svgShapeName,
- className: c,
- dangerouslySetInnerHTML: {
- __html: a.content
- }
- });
- return d
- },
- getLinkProps: function() {
- var a = this.props.skinExports;
- var c = {
- className: this.elementClasses.link
- };
- var d = this.props.siteData.browser.ie && this.props.siteData.browser.version <= 10;
- if (a.disableClickOnHiddenElement && d) {
- c.onClick = this.disableClickOnTextWrapper
- }
- b.assign(c, this.generateAnchorLink());
- return c
- },
- getItemProps: function(a) {
- var c = this.props.styleId;
- var e = this.elementClasses.item;
- if (this.props.isActive) {
- e += " " + c + "_active"
- }
- if (!this.props.isTablet && this.state.hovered) {
- e += " " + c + "_hover"
- }
- var f = 50;
- var g = this.state.hovered ? this.props.hoveredOrSelectedColorBrightness : this.props.colorBrightness;
- var h = this.props.backgroundBrightness;
- var i = b.isFinite(g) && b.isFinite(h);
- var j = Math.abs(g - h) < d.siteConstants.BRIGHTNESS_DIFF_THRESHOLD;
- if (i && j) {
- if (h >= f) {
- e += " " + c + "_dark"
- } else {
- e += " " + c + "_light"
- }
- }
- return {
- key: a,
- className: e,
- onMouseLeave: this.handleOnMouseLeave
- }
- },
- addMouseEnterEventToSkinExportedClass: function(a) {
- var c = this.props.skinExports;
- b.some(a, function(a) {
- if (a.className && !this.props.isTablet && b.includes(a.className, c.hoverElementClass)) {
- a.onMouseEnter = this.handleOnMouseEnter;
- return true
- }
- }, this)
- },
- render: function() {
- this.updateElementClasses();
- var a = this.props.anchorData.id;
- var b = this.props.anchorData.name;
- var d = {
- itemProps: this.getItemProps(a),
- linkProps: this.getLinkProps(),
- svgProps: this.getSvgProps(),
- textWrapperProps: this.getTextWrapperProps(),
- labelProps: this.getLabelProps()
- };
- this.addMouseEnterEventToSkinExportedClass(d);
- return c.DOM.li(d.itemProps, c.DOM.a(d.linkProps, [c.DOM.svg(d.svgProps), c.DOM.span(d.textWrapperProps, c.DOM.span(d.labelProps, b))]))
- }
- })
- });
- define("components/components/verticalAnchorsMenu/verticalAnchorsBaseMenu", ["lodash", "react", "core", "components/components/verticalAnchorsMenu/verticalAnchorsMenuItem"], function(a, b, c, d) {
- "use strict";
- var e = c.compMixins;
- return {
- displayName: "VerticalAnchorsBaseMenu",
- mixins: [e.skinBasedComp, e.skinInfo],
- getDefaultProps: function() {
- return {
- svgShapeName: "circle"
- }
- },
- getMenuButtons: function(c) {
- return a.map(c, function(c) {
- var e = this.props.isSelectedFn(c.id);
- var f = {
- key: c.id,
- isTablet: this.props.isTablet,
- styleId: this.props.styleId,
- svgShapeName: this.props.svgShapeName,
- anchorData: c,
- isActive: e,
- siteData: this.props.siteData,
- rootNavigationInfo: this.props.rootNavigationInfo,
- skinExports: this.getSkinExports()
- };
- if (this.props.compProp.autoColor && a.get(this, "props.structure.layout.fixedPosition")) {
- var g = a.get(this, "props.overlappingBackgroundElementInfo.brightness");
- var h = this.getParams(["symbolAndTextColor", "selectedColor"]);
- var i = h.symbolAndTextColor.value;
- var j = h.selectedColor.value;
- var k = i.values.hsv[2];
- var l = j.values.hsv[2];
- f.colorBrightness = e ? l : k;
- f.hoveredOrSelectedColorBrightness = l;
- f.backgroundBrightness = g
- }
- return b.createElement(d, f)
- }, this)
- },
- addConnectingLinesIfNeeded: function(c) {
- if (!this.getSkinExports() || this.getSkinExports().hasConnectingLines !== true) {
- return c
- }
- var d = [];
- a.forEach(c, function(a) {
- d.push(b.DOM.div({
- className: this.props.styleId + "_line"
- }));
- d.push(a)
- }, this);
- return a.rest(d)
- },
- getMenuClasses: function() {
- var a = this.props.styleId;
- var b = [];
- b.push(a + "_orientation-" + this.props.compProp.orientation);
- b.push(a + "_text-align-" + this.props.compProp.itemsAlignment);
- return b.join(" ")
- },
- getSkinProperties: function() {
- var a = this.getMenuButtons(this.props.menuItems);
- a = this.addConnectingLinesIfNeeded(a);
- return {
- menuContainer: {
- className: this.getMenuClasses(),
- children: a
- }
- }
- }
- }
- });
- define("components/components/verticalMenu/verticalMenuDomBuilder", ["react", "lodash", "zepto", "utils"], function(a, b, c, d) {
- "use strict";
- function e(a, b) {
- var c;
- if (a.link && a.link.type === "PageLink" && a.link.pageId.id === b) {
- return true
- }
- for (c = 0; c < a.items.length; c++) {
- if (e(a.items[c], b)) {
- return true
- }
- }
- return false
- }
- function f(a) {
- var b = c(a.target).find("a")[0];
- if (b) {
- b.click();
- return false
- }
- return true
- }
- function g(a, c, e, f, g, h, i, j, k) {
- var l = {};
- l[c + "_selected"] = e;
- l[c + "_hover"] = d.stringUtils.startsWith(h, g);
- l[a] = true;
- var m = {
- className: d.classNames(l),
- style: {
- height: f
- },
- onClick: j ? i.click : i.leave,
- id: g,
- key: g
- };
- if (k) {
- b.assign(m, {
- onMouseEnter: i.enter,
- onMouseLeave: i.leave
- })
- }
- return m
- }
- function h(a, b, c, d) {
- return {
- style: {
- marginBottom: d + "px"
- },
- className: a ? b : b + " " + c + "_emptySubMenu"
- }
- }
- function i(a, c, d, e, f, g, h) {
- var i = {
- className: a + " " + c + "_label level" + f,
- style: {
- lineHeight: d + "px"
- },
- onClick: h ? g.click : g.leave
- };
- if (e) {
- b.merge(i, e.render)
- }
- return i
- }
- function j(a) {
- if (b.includes(a.className, "Wrapper")) {
- a.onClick = f
- }
- }
- var k = {
- getSkin: function(a, b) {
- return a[b]
- },
- buildTemplate: function(a, c) {
- var d = a.slice(3, a.length),
- e = [];
- b.forEach(d, function(a) {
- if (b.isArray(a)) {
- e.push(this.buildTemplate(a, c))
- }
- }, this);
- return {
- tag: a[0].toLowerCase(),
- skinPart: a[1],
- className: b.map(a[2], function(a) {
- return c + a
- }),
- items: e
- }
- },
- buildDomItem: function(c, d, f, k, l, m, n, o, p, q, r, s) {
- var t = a.DOM[d.tag];
- var u = [];
- var v = {
- className: d.className.concat(k.link ? "" : l + "_noLink").join(" ")
- };
- var w = p + f.indexOf(k) + "_";
- var x = b.filter(k.items, {
- isVisible: true
- }).length > 0;
- switch (d.tag) {
- case "a":
- u.push(k.label);
- v = i(v.className, l, n.line, k.link, o, r, x);
- break;
- case "ul":
- b.forEach(k.items, function(a) {
- if (a.isVisible) {
- u.push(this.buildDomItem(c, c, k.items, a, l, m, n, o + 1, w, q, r, s))
- }
- }, this);
- v = h(x, v.className, l, n.separator);
- break;
- case "li":
- b.forEach(d.items, function(a) {
- u.push(this.buildDomItem(c, a, f, k, l, m, n, o, p, q, r, s))
- }, this);
- v = g(v.className, l, e(k, m), n.item, w, q, r, x, s);
- break;
- default:
- b.forEach(d.items, function(a) {
- u.push(this.buildDomItem(c, a, f, k, l, m, n, o, p, q, r, s))
- }, this);
- break
- }
- j(v);
- if (d.tag === "ul") {
- return t(v, u)
- }
- return t.apply(null, [v].concat(u))
- },
- buildDOMFromTemplate: function(c, d, e, f, g, h, i, j) {
- var k = c.items[0];
- var l = b(d).filter("isVisible").map(function(a) {
- return this.buildDomItem(k, k, d, a, e, f, g, 0, "root", h, i, j)
- }, this).value();
- return a.DOM.ul({
- className: e + "menuContainer"
- }, l)
- }
- };
- return k
- });
- define("components/components/verticalMenu/verticalMenuItem", ["skins", "components/components/verticalMenu/verticalMenuDomBuilder"], function(a, b) {
- "use strict";
- var c = {
- displayName: "MenuItem",
- render: function() {
- var c = b.getSkin(a.skins, this.props.skin),
- d = b.buildTemplate(c.react[0], this.props.classPrefix);
- return b.buildDOMFromTemplate(d, this.props.data, this.props.classPrefix, this.props.currentUrlPageId, this.props.heights, this.props.hoverId, this.props.callbacks, this.props.isDesktop, this.props.isIE)
- }
- };
- return c
- });
- define("components/components/verticalMenu/verticalMenu", ["zepto", "lodash", "react", "core", "utils", "components/components/verticalMenu/verticalMenuItem", "reactDOM"], function(a, b, c, d, e, f, g) {
- "use strict";
- var h = d.compMixins;
- var i = c.createFactory(c.createClass(f));
- function j() {
- return window.innerHeight || window.document.documentElement.clientHeight || window.document.body.clientHeight
- }
- function k(a) {
- var b = j(),
- c = Math.floor(b / 2);
- return c > a ? "down" : "up"
- }
- function l(b) {
- var c = o(b.target);
- var d = c.id;
- var e = a(c).find("ul")[0].children.length > 0;
- var f = d === this.state.hoverId;
- if (e) {
- if (f) {
- this.setState({
- hoverId: null
- })
- } else {
- this.setState({
- hoverId: d
- });
- b.preventDefault()
- }
- } else {
- this.setState({
- hoverId: null
- })
- }
- }
- function m(a) {
- var b = o(a.target).id;
- if (b !== this.state.hoverId) {
- this.setState({
- hoverId: b
- })
- }
- }
- function n() {
- this.setState({
- hoverId: null
- })
- }
- function o(a) {
- while (a.tagName !== "LI") {
- a = a.parentElement
- }
- return a
- }
- return {
- displayName: "VerticalMenu",
- mixins: [h.skinBasedComp, h.skinInfo],
- getInitialState: function() {
- return {
- $subMenuOpenSide: "subMenuOpenSide-" + this.props.compProp.subMenuOpenSide,
- $subMenuOpenDirection: "subMenuOpenDir-up",
- $itemsAlignment: "items-align-" + this.props.compProp.itemsAlignment,
- $subItemsAlignment: "subItems-align-" + this.props.compProp.itemsAlignment,
- hoverId: null
- }
- },
- componentWillReceiveProps: function(a) {
- if (a.compProp.itemsAlignment !== this.props.compProp.itemsAlignment) {
- this.setState({
- $itemsAlignment: "items-align-" + a.compProp.itemsAlignment,
- $subItemsAlignment: "subItems-align-" + a.compProp.itemsAlignment
- })
- }
- if (a.compProp.subMenuOpenSide !== this.props.compProp.subMenuOpenSide) {
- this.setState({
- $subMenuOpenSide: "subMenuOpenSide-" + a.compProp.subMenuOpenSide
- })
- }
- },
- updateDirection: function() {
- var a = this.props.siteData.measureMap && this.props.siteData.measureMap.absoluteTop[this.props.id] || this.props.style.top;
- var b = "subMenuOpenDir-" + k(a - window.pageYOffset);
- if (b !== this.state.$subMenuOpenDirection) {
- this.setState({
- $subMenuOpenDirection: b
- })
- }
- },
- updateDOMDataAttributes: function() {
- var a = g.findDOMNode(this);
- var b = this.getParamValues();
- this.lastParams = b;
- this.updateDirection();
- a.setAttribute("data-param-border", b.border);
- a.setAttribute("data-param-separator", b.separator);
- a.setAttribute("data-param-padding", b.padding)
- },
- componentDidMount: function() {
- this.updateDOMDataAttributes()
- },
- componentDidUpdate: function() {
- if (!b.isEqual(this.getParamValues(), this.lastParams)) {
- this.updateDOMDataAttributes()
- }
- },
- getParamValues: function() {
- var a = this.getParamFromDefaultSkin("separatorHeight") || this.getParamFromDefaultSkin("sepw");
- var b = this.getParamFromDefaultSkin("textSpacing");
- var c = this.getParamFromDefaultSkin("brw");
- return {
- separator: a ? parseInt(a.value, 10) : 0,
- border: c ? parseInt(c.value, 10) : 0,
- padding: b ? parseInt(b.value, 10) : 0
- }
- },
- getSkinProperties: function() {
- var a = this.getParamValues();
- var b = this.getSkinExports();
- var c = e.menuUtils.getSiteMenuWithRender(this.props.siteData, false, this.props.rootNavigationInfo);
- var d = e.verticalMenuCalculations.getVisibleItemsCount(c);
- var f = e.verticalMenuCalculations.getItemHeight(this.props.style.height, a.separator, d, b);
- return {
- "": {
- onMouseEnter: this.updateDirection
- },
- menuContainer: {
- parentConst: i,
- data: c,
- skin: this.props.skin,
- classPrefix: this.props.styleId,
- currentUrlPageId: this.props.currentUrlPageId,
- heights: {
- separator: b && b.separatorNotIncludedInLineHeight ? 0 : a.separator,
- line: e.verticalMenuCalculations.getLineHeight(f, a.separator, a.border, b),
- item: f
- },
- callbacks: {
- click: l.bind(this),
- enter: m.bind(this),
- leave: n.bind(this)
- },
- hoverId: this.state.hoverId,
- isDesktop: !(this.props.siteData.mobile.isMobileDevice() || this.props.siteData.mobile.isTabletDevice()),
- isIE: !!this.props.siteData.getBrowser().ie
- }
- }
- }
- }
- });
- define("components/bi/events.json", [], function() {
- return {
- FORM_SUBMIT: {
- eventId: 100,
- adapter: "ugc-viewer",
- params: {
- c1: "componentId",
- c2: "componentType"
- }
- },
- FORM_SUBMIT_SUCCESS: {
- eventId: 367,
- adapter: "ugc-viewer",
- params: {
- component_id: "componentId",
- component_type: "componentType"
- }
- },
- TIME_IN_FOLD: {
- eventId: 354,
- adapter: "ugc-viewer",
- wixSiteSampleRatio: 1,
- params: {
- active_fold: "activeFold",
- total_folds: "totalFolds",
- time_in_fold: "timeInFold"
- }
- },
- MOBILE_APP_BANNER_SHOWN: {
- eventId: 404,
- adapter: "app-builder",
- src: 62,
- params: {
- metaSiteId: "metaSiteId",
- type: "type"
- }
- },
- MOBILE_APP_BANNER_GET_CLICKED: {
- eventId: 405,
- adapter: "app-builder",
- src: 62,
- params: {
- metaSiteId: "metaSiteId",
- link: "link"
- }
- },
- MOBILE_APP_BANNER_CLOSE_CLICKED: {
- eventId: 406,
- adapter: "app-builder",
- src: 62,
- params: {
- metaSiteId: "metaSiteId"
- }
- },
- MOBILE_ACTION_BAR_TOGGLE: {
- eventId: 370,
- adapter: "ugc-viewer",
- params: {
- site_id: "site_id",
- status: "status"
- }
- },
- MOBILE_ACTION_BAR_USAGE: {
- eventId: 371,
- adapter: "ugc-viewer",
- params: {
- site_id: "site_id",
- button_name: "button_name"
- }
- },
- ZOOM_IN_EXPAND_MODE: {
- eventId: 375,
- adapter: "ugc-viewer",
- params: {
- site_id: "site_id",
- zoomType: "zoomType"
- }
- },
- ENTER_EXPAND_MODE: {
- eventId: 376,
- adapter: "ugc-viewer",
- params: {
- site_id: "site_id"
- }
- }
- }
- });
- define("components/bi/events", ["components/bi/events.json", "utils"], function(a, b) {
- "use strict";
- b.logger.register("components", "event", a);
- return a
- });
- define("components/components/verticalAnchorsMenu/verticalAnchorsMenu", ["zepto", "lodash", "react", "utils", "santaProps", "components/components/verticalAnchorsMenu/verticalAnchorsBaseMenu", "components/components/verticalMenu/verticalMenu", "components/bi/events"], function(a, b, c, d, e, f, g, h) {
- "use strict";
- var i = [3, 6, 10];
- var j = [];
- var k = d.scrollAnchors;
- var l = c.createClass(f);
- var m = c.createClass(g);
- function n(a) {
- if (b.includes(a, "verticalanchorsmenu")) {
- return l
- } else if (b.includes(a, "verticalmenu")) {
- return m
- }
- return c.DOM.div(null, ["AnchorMenuSkin Not Found"])
- }
- function o(a) {
- return b.includes(a, "VerticalAnchorsMenuLinkedNoTextSkin")
- }
- function p(a, b) {
- var c = null;
- if (a.hiddenAnchorIds && b) {
- c = a.hiddenAnchorIds[b]
- }
- return c
- }
- function q(a, c, d) {
- if (d) {
- b.forEach(j, function(a) {
- clearTimeout(a)
- });
- j = b.map(i, function(a) {
- return setTimeout(function() {
- c.reportBI(h.TIME_IN_FOLD, {
- activeFold: d.index,
- totalFolds: d.total,
- timeInFold: a
- })
- }, a * 1e3)
- })
- }
- }
- return {
- displayName: "VerticalAnchorsMenu",
- propTypes: b.assign({}, e.santaTypesUtils.getSantaTypesByDefinition(f), e.santaTypesUtils.getSantaTypesByDefinition(g)),
- getInitialState: function() {
- var a = {
- isTablet: this.props.siteData.isTabletDevice(),
- activeAnchorId: null
- };
- if (this.props.compProp.autoColor) {
- a.overlappingElementInfo = null
- }
- return a
- },
- componentDidMount: function() {
- var a = window && window.pageYOffset;
- var b = this.props.siteAPI.getSiteAspect("dynamicColorElements");
- b.registerObserver(this.handleDynamicColorElementUpdate);
- this.updateOverlappingElement(a);
- this.props.siteAPI.getSiteAspect("windowScrollEvent").registerToScroll(this);
- this.updateActiveAnchor(a)
- },
- componentWillUnmount: function() {
- this.props.siteAPI.getSiteAspect("windowScrollEvent").unregisterToScroll(this);
- var a = this.props.siteAPI.getSiteAspect("dynamicColorElements");
- a.unregisterObserver(this.handleDynamicColorElementUpdate)
- },
- componentDidUpdate: function() {
- var b = a(window).scrollTop();
- this.updateActiveAnchor(b);
- this.updateOverlappingElement(b)
- },
- componentDidLayout: function() {
- var b = a(window).scrollTop();
- this.updateActiveAnchor(b);
- this.updateOverlappingElement(b)
- },
- onScroll: function(a) {
- var b = a && a.y || 0;
- this.updateActiveAnchor(b);
- this.updateOverlappingElement(b)
- },
- updateActiveAnchor: function(a) {
- var b = this.props.siteData.getPrimaryPageId();
- var c = p(this.props.compData, b);
- var d = k.getActiveAnchor(this.props.siteData, a, c);
- var e = d ? d.activeAnchorComp.id : null;
- if (this.state.activeAnchorId !== e) {
- q(this.props.siteData, this.props.siteAPI, d);
- this.setState({
- activeAnchorId: e
- })
- }
- },
- handleDynamicColorElementUpdate: function(a) {
- if (this.props.compProp.autoColor) {
- var c = b.get(this.state.overlappingElementInfo, "id");
- var d = b.find(a, {
- id: c
- });
- if (d) {
- this.setState({
- overlappingElementInfo: d
- })
- }
- }
- },
- getOverlappingDynamicElementInfo: function(a) {
- var c = this.props.siteData.measureMap;
- if (!c) {
- return null
- }
- var d = a + c.absoluteTop[this.props.id];
- var e = c.height[this.props.id];
- var f = c.absoluteLeft[this.props.id] + this.props.siteData.getSiteX();
- var g = c.width[this.props.id];
- var h = this.props.siteAPI.getSiteAspect("dynamicColorElements");
- var i = b.reject(h.getInformation(), function(a) {
- return !a.top || a.alpha < .1
- });
- var j = b(i).filter(function(a) {
- var b = a.top - e / 2;
- var c = a.top + a.height - e / 2;
- return d >= b && d <= c && f + g / 2 <= a.left + a.width && f >= a.left
- }).sortBy(function(a) {
- return a.width * a.height
- }).first();
- return j
- },
- updateOverlappingElement: function(a) {
- if (this.props.compProp.autoColor) {
- var b = this.getOverlappingDynamicElementInfo(a);
- var c = this.state.overlappingElementInfo;
- if ((c && c.id) !== (b && b.id)) {
- this.setState({
- overlappingElementInfo: b
- })
- }
- }
- },
- getMenuItems: function() {
- var a = this.props.siteData.getPrimaryPageId();
- var c = this.props.compData.pageTopLabel;
- var d = k.getPageAnchors(this.props.siteData, a, c);
- var e = p(this.props.compData, a);
- var f = b.filter(d, function(a) {
- return !b.includes(e, a.compId)
- });
- if (b.size(f) === 0) {
- f.push(d[0])
- }
- return f
- },
- isSelected: function(a) {
- return this.state.activeAnchorId === a
- },
- render: function() {
- var a = b.assign({}, this.props, {
- isSelectedFn: this.isSelected,
- menuItems: this.getMenuItems(),
- svgShapeName: o(this.props.skin) ? "fullCircle" : "circle",
- isTablet: this.state.isTablet
- });
- if (this.props.compProp.autoColor && b.get(this, "props.structure.layout.fixedPosition")) {
- a.overlappingBackgroundElementInfo = this.state.overlappingElementInfo
- }
- var d = n(a.skin);
- return c.createElement(d, a)
- }
- }
- });
- define("components/components/imageZoom/imageZoom", ["core", "utils", "lodash", "components/bi/events.json"], function(a, b, c, d) {
- "use strict";
- function e(a) {
- return a.isMobileDevice() && !a.isMobileView() || a.isTabletDevice()
- }
- return {
- displayName: "ImageZoom",
- mixins: [a.compMixins.mediaZoomWrapperMixin],
- fireEnterExpandModeEvent: function() {
- this.props.siteAPI.reportBI(d.ENTER_EXPAND_MODE, {
- site_id: this.props.siteData.rendererModel.siteInfo.siteId
- })
- },
- componentWillMount: function() {
- this.fireEnterExpandModeEvent()
- },
- getInitialState: function() {
- var a = this.props.siteData;
- if (e(a)) {
- this.enableInnerScrolling = true
- }
- return {}
- },
- getPrevAndNextState: function() {
- var a, b;
- var d = this.props.pageItemAdditionalData;
- var e = {
- next: null,
- prev: null
- };
- if (d) {
- a = c.map(d.items, "id");
- if (a.length > 1) {
- b = a.indexOf(this.props.compData.id);
- e.next = a[(b + 1) % a.length];
- e.prev = a[(b - 1 + a.length) % a.length]
- }
- }
- return e
- },
- isDataChanged: function(a, b) {
- return a.compData !== b.compData
- },
- getChildComp: function(a, d) {
- var f = this.props.siteData;
- var g = f.isMobileView();
- var h;
- if (e(f)) {
- h = b.mediaZoomCalculations.getNonOptimizedViewDimensions
- } else {
- h = g ? b.mediaZoomCalculations.getMobileViewDimensions : b.mediaZoomCalculations.getDesktopViewDimensions
- }
- var i = g ? "wysiwyg.components.MobileImageZoomDisplayer" : "wysiwyg.components.ImageZoomDisplayer";
- var j = {
- zoomDimensions: h(this.props.compData, f, f.measureMap, d.width, d.height),
- quality: {
- quality: 90
- }
- };
- c.assign(j, a);
- return this.createChildComponent(this.props.compData, i, "imageItem", j)
- },
- getBoxDimensions: function() {
- return this.props.siteData.measureMap && this.props.siteData.measureMap.custom[this.props.id + this.props.compData.id] || null
- },
- actualNavigateToItem: function(a) {
- if (b.nonPageItemZoom.getZoomedImageData() === undefined) {
- var d = c.clone(this.props.rootNavigationInfo);
- d.pageItemId = a;
- this.props.siteAPI.navigateToPage(d)
- } else if (a) {
- b.nonPageItemZoom.zoom(b.nonPageItemZoom.getImageDataFromGalleryByQuery(a))
- } else {
- b.nonPageItemZoom.unzoom()
- }
- },
- getChildZoomComponentType: function() {
- if (this.props.siteData.isMobileView()) {
- return "wysiwyg.viewer.components.MobileMediaZoom"
- }
- return "wysiwyg.viewer.components.MediaZoom"
- }
- }
- });
- define("components/components/mobileMediaZoom/mobileMediaZoom", ["lodash", "core"], function(a, b) {
- "use strict";
- var c = b.compMixins;
- return {
- displayName: "MobileMediaZoom",
- mixins: [c.skinBasedComp],
- getInitialState: function() {
- var b = this.props.getPrevAndNextStateFunc();
- a.assign(b, {
- $viewerType: this.props.siteData.isMobileDevice() ? "mobile" : "tablet",
- $buttonState: ""
- });
- if (this.props.enableInnerScrolling) {
- b.$scrollState = "scrollEnabled"
- }
- return b
- },
- componentWillReceiveProps: function(a) {
- if (!this.props.siteData.renderFlags.isZoomAllowed) {
- setTimeout(this.closeMediaZoom, 0);
- return
- }
- if (this.props.isDataChangedFunc(this.props, a)) {
- this.setState(this.props.getPrevAndNextStateFunc())
- }
- },
- createOverlay: function(a) {
- return b.componentUtils.fullScreenOverlay.createOverlay(a, {
- siteWidth: this.props.siteData.getSiteWidth(),
- isMobileDevice: this.props.siteData.isMobileDevice(),
- siteScrollingBlocker: this.props.siteAPI.getSiteAspect("siteScrollingBlocker"),
- forceBackground: this.props.siteAPI.forceBackground,
- disableForcedBackground: this.props.siteAPI.disableForcedBackground
- })
- },
- getSkinProperties: function() {
- var a = this.props.getChildCompFunc({
- key: this.props.compData.id,
- hideMediaZoomButtons: this.hideButtons,
- showMediaZoomButtons: this.showButtons
- }, {
- width: 0,
- height: 0
- });
- var b = !this.state.next;
- var c = {
- "": {
- onSwipeLeft: this.clickOnNextButton,
- onSwipeRight: this.clickOnPreviousButton
- },
- itemsContainer: {
- children: a
- },
- xButton: {
- onClick: this.closeMediaZoom,
- style: {}
- },
- buttonPrev: {
- onClick: this.clickOnPreviousButton,
- style: {}
- },
- buttonNext: {
- onClick: this.clickOnNextButton,
- style: {}
- }
- };
- c = this.props.enableInnerScrolling ? c : this.createOverlay(c);
- if (b || this.props.enableInnerScrolling) {
- c.buttonNext.style.display = "none";
- c.buttonPrev.style.display = "none"
- }
- return c
- },
- clickOnNextButton: function(a) {
- this.showButtons();
- this.props.actualNavigateToItemFunc(this.state.next);
- if (a) {
- if (a.preventDefault) {
- a.preventDefault()
- }
- if (a.stopPropagation) {
- a.stopPropagation()
- }
- }
- },
- closeMediaZoom: function() {
- if (this.props.closeFunction) {
- this.props.closeFunction()
- } else {
- this.props.siteAPI.navigateToPage({
- pageId: this.props.rootNavigationInfo.pageId
- })
- }
- },
- clickOnPreviousButton: function(a) {
- this.showButtons();
- this.props.actualNavigateToItemFunc(this.state.prev);
- if (a) {
- if (a.preventDefault) {
- a.preventDefault()
- }
- if (a.stopPropagation) {
- a.stopPropagation()
- }
- }
- },
- hideButtons: function() {
- this.setState({
- $buttonState: "hideButtons"
- })
- },
- showButtons: function() {
- this.setState({
- $buttonState: ""
- })
- },
- componentDidMount: function() {
- this.props.siteAPI.enterFullScreenMode({
- scrollable: this.props.enableInnerScrolling
- })
- },
- componentWillUnmount: function() {
- this.props.siteAPI.exitFullScreenMode()
- }
- }
- });
- define("components/components/mobileImageZoomDisplayer/mobileImageZoomDisplayer", ["lodash", "core", "utils", "imageClientApi"], function(a, b, c, d) {
- "use strict";
- var e = b.compMixins;
- var f = c.linkRenderer;
- var g = {
- goToLinkText: "Go to link"
- };
- var h = {
- displayName: "MobileImageZoomDisplayer",
- mixins: [e.skinBasedComp],
- getInitialState: function() {
- return {
- $panelState: this.hasTitleOrDescription() ? "" : "hidePanel",
- $descriptionState: ""
- }
- },
- getSkinProperties: function() {
- var a = this.props.compData;
- var b = this.props.compProp;
- var c = this.props.siteData;
- var e = this.props.zoomDimensions;
- var h = {
- title: {
- children: a.title
- },
- description: {
- children: a.description,
- style: {
- height: "auto"
- }
- },
- ellipsis: {
- style: {
- display: "none"
- }
- },
- image: this.createChildComponent(a, "core.components.Image", "image", {
- key: a.id,
- id: this.props.id + "image",
- ref: "image",
- imageData: a,
- quality: this.props.quality,
- containerWidth: e.imageContainerWidth,
- containerHeight: e.imageContainerHeight,
- displayMode: d.fittingTypes.LEGACY_FULL,
- onClick: this.togglePanel,
- effectName: this.props.compProp.effectName,
- usePreloader: true
- })
- };
- if (a.description) {
- h.description.onSwipeUp = this.expandDescription;
- h.description.onSwipeDown = this.collapseDescription;
- h.title.onClick = this.toggleDescription;
- h.description.onClick = this.toggleDescription
- } else {
- h.description.style = {
- display: "none"
- }
- }
- if (a.link) {
- h.link = f.renderLink(a.link, c, this.props.rootNavigationInfo);
- h.link.children = b && b.goToLinkText ? b.goToLinkText : g.goToLinkText
- } else {
- h.link = {
- style: {
- display: "none"
- }
- }
- }
- return h
- },
- togglePanel: function() {
- if (this.isPanelHidden()) {
- this.props.showMediaZoomButtons();
- if (this.hasTitleOrDescription()) {
- this.showPanel()
- }
- } else {
- this.props.hideMediaZoomButtons();
- this.hidePanel()
- }
- },
- toggleDescription: function() {
- if (this.isDescriptionExpanded()) {
- this.collapseDescription()
- } else {
- this.expandDescription()
- }
- },
- hasTitleOrDescription: function() {
- return this.props.compData.title || this.props.compData.description
- },
- isPanelHidden: function() {
- return this.state.$panelState === "hidePanel"
- },
- showPanel: function() {
- this.setState({
- $panelState: ""
- })
- },
- hidePanel: function() {
- this.setState({
- $panelState: "hidePanel"
- })
- },
- isDescriptionExpanded: function() {
- return this.state.$descriptionState === "expandedDescription"
- },
- expandDescription: function() {
- this.props.hideMediaZoomButtons();
- this.setState({
- $descriptionState: "expandedDescription"
- })
- },
- collapseDescription: function() {
- this.props.showMediaZoomButtons();
- this.setState({
- $descriptionState: ""
- })
- }
- };
- return h
- });
- define("components/components/pageGroup/pageGroup", ["lodash", "core", "reactDOM", "experiment"], function(a, b, c, d) {
- "use strict";
- var e = b.compMixins;
- var f = {
- outIn: "OutIn",
- crossfade: "CrossFade",
- shrinkfade: "CrossFade",
- swipeHorizontal: "SlideHorizontal",
- swipeHorizontalFullScreen: "SlideHorizontal",
- swipeVertical: "SlideVertical",
- swipeVerticalFullScreen: "SlideVertical",
- none: "NoTransition"
- };
- function g(a, b) {
- function c(a, b) {
- switch (a) {
- case "SlideHorizontal":
- return {
- siteWidth: b.getSiteWidth(),
- width: b.measureMap.width.screen,
- ease: "Cubic.easeOut"
- };
- case "SlideVertical":
- var c = Math.max(b.measureMap.height.screen, b.measureMap.height.masterPage || b.measureMap.height.SITE_PAGES);
- return {
- screenHeight: b.measureMap.height.screen,
- height: c,
- reverse: true,
- ease: "Cubic.easeInOut"
- };
- case "OutIn":
- return {
- sourceEase: "Strong.easeOut",
- destEase: "Strong.easeIn"
- };
- case "CrossFade":
- return {
- sourceEase: "Sine.easeInOut",
- destEase: "Quad.easeInOut"
- };
- default:
- return {}
- }
- }
- return c.bind(this, a, b)
- }
- function h(a, b, e) {
- if (!a.refs[b]) {
- a.refs[e].updateVisibility()
- } else if (a.props.currentUrlPageId !== b) {
- a.refs[b].forceUpdate(function() {
- a.refs[e].updateVisibility();
- if (d.isOpen("sv_platform1")) {
- c.findDOMNode(a.refs[b]).style.visibility = "hidden"
- }
- })
- }
- }
- var i = {
- displayName: "PageGroup",
- mixins: [e.skinBasedComp, e.animationsMixin],
- getInitialState: function() {
- this.actionsAspect = this.props.siteAPI.getSiteAspect("actionsAspect");
- return {
- prevPages: []
- }
- },
- componentWillReceiveProps: function(b) {
- var c, d, e;
- var i = this.props.currentUrlPageId;
- var j = b.currentUrlPageId;
- var k = this;
- var l = f[b.rootNavigationInfo.transition || this.props.compProp.transition] || f.none;
- var m = this.props.siteData.getPrefetchPages();
- if (i !== j) {
- if (!a.includes(this.state.prevPages, i)) {
- this.setState({
- prevPages: a.union(this.state.prevPages.concat([i]), m)
- })
- } else {
- this.refs[i].clearAnimationsQueue(true);
- if (!a.isEqual(a.intersection(this.state.prevPages, m), m)) {
- this.setState({
- prevPages: a.union(this.state.prevPages, m)
- })
- }
- }
- c = this.getAnimationProperties(l).defaultDuration || 0;
- e = g(l, this.props.siteData);
- d = {
- onComplete: function() {
- h(k, i, j);
- k.actionsAspect.handlePageTransitionComplete(i, j)
- }
- };
- this.actionsAspect.registerNextPageTransition(this, i, j, l, c, 0, e, d)
- } else {
- var n = a(this.state.prevPages).filter(function(a) {
- return this.props.siteData.pagesData[a]
- }, this).union(m).value();
- this.setState({
- prevPages: n
- })
- }
- },
- createPage: function(a) {
- var b = this.state.prevPages.length === 0;
- return this.props.createPage(a, b)
- },
- getSkinProperties: function() {
- var b = this.props.siteData.pagesData;
- var c = a.includes(this.state.prevPages, this.props.currentUrlPageId) ? this.state.prevPages : this.state.prevPages.concat(this.props.currentUrlPageId);
- c = a.reject(c, function(a) {
- return !b[a]
- });
- return {
- "": {
- children: a.map(c, this.createPage)
- }
- }
- }
- };
- return i
- });
- define("components/components/deadComponent/deadComponent", ["core"], function(a) {
- "use strict";
- var b = a.compMixins;
- return {
- displayName: "DeadComponent",
- mixins: [b.skinBasedComp],
- getSkinProperties: function() {
- return {
- title: {},
- desc: {},
- desc2: {}
- }
- }
- }
- });
- define("components/components/erasableTextInput/erasableTextInput", ["lodash", "textCommon"], function(a, b) {
- "use strict";
- function c(a) {
- return {
- $erase: a.compData.value ? "showButton" : "hideButton"
- }
- }
- return {
- displayName: "ErasableTextInput",
- mixins: [b.baseTextInput],
- behaviors: b.baseTextInput.BASE_TEXT_BEHAVIORS,
- getInitialState: function() {
- return c(this.props)
- },
- componentWillReceiveProps: function(a) {
- this.setState(c(a))
- },
- getSkinProperties: function() {
- return a.merge(this.getBaseTextInputSkinProperties(), {
- erase: {
- children: "x",
- onClick: this.props.onErase
- }
- })
- }
- }
- });
- define("components/components/galleries/tpaGallery", ["lodash", "core", "utils", "tpa", "color", "experiment", "coreUtils"], function(a, b, c, d, e, f, g) {
- "use strict";
- var h = c.linkRenderer,
- i = b.compMixins,
- j = d.tpaMixins,
- k = {
- ExternalLink: "WEBSITE",
- EmailLink: "EMAIL",
- PageLink: "PAGE",
- DocumentLink: "DOCUMENT",
- AnchorLink: "ANCHOR",
- DynamicPageLink: "DYNAMIC_PAGE_LINK"
- };
- function l(a) {
- var b = a.split(",");
- return e({
- r: b[0],
- g: b[1],
- b: b[2]
- }).hexString()
- }
- function m(b, d, e) {
- var f, g, h = {};
- a.forEach(d, function(i, j) {
- f = c.colorParser.getColorValue(b.getGeneralTheme(), e[d[j]]);
- h[j] = a.includes(f, ",") ? l(f) : f;
- g = e["alpha-" + d[j]];
- if (!a.isUndefined(g)) {
- h["alpha" + c.stringUtils.capitalize(j)] = g
- }
- });
- return h
- }
- function n(b, c, d) {
- if (b.link) {
- return a.merge({}, b, h.renderLink(b.link, c, d), {
- linkType: k[b.link.type]
- })
- }
- return b
- }
- function o(b, c, d) {
- return a.map(b, function(a) {
- return n(a, c, d)
- })
- }
- function p(a, b, c, d) {
- var e = g.urlUtils.joinURL(a, "/galleries/" + (d ? "src/" : "target/"));
- var f = e + b + "/" + b + ".html";
- return c(f, ["compId", "deviceType", "locale", "viewMode"])
- }
- function q(b, c, d, e, g, h) {
- return {
- params: {
- props: a.merge({}, b, m(d, e, g)),
- quality: d.getGlobalImageQuality(),
- marketingLandingPage: f.isOpen("sv_marketingLandingPage"),
- items: o(c, d, h),
- mainPageId: d.getMainPageId()
- },
- eventType: "SETTINGS_UPDATED",
- intent: "addEventListener"
- }
- }
- function r(b) {
- return a.map(b, function(b) {
- return a.omit(b, "quality")
- })
- }
- return {
- mixins: [i.skinBasedComp, j.tpaUrlBuilder, j.tpaCompApi, i.skinInfo],
- messageSent: false,
- isAlive: false,
- componentInIframeReady: false,
- processImageClick: function(b) {
- var d = b.args[0],
- e = this.props.compData.items[d],
- f = this.props.compData.id,
- g = h.renderImageZoomLink(this.props.siteData, this.props.rootNavigationInfo, e, f);
- if (this.props.rootNavigationInfo.pageItemId === e.id) {
- return
- }
- var i = h.getLinkUrlFromLinkProps(g);
- var j = a.defaults({
- pageItemAdditionalData: g["data-page-item-context"]
- }, c.wixUrlParser.parseUrl(this.props.siteData, i));
- this.props.siteAPI.navigateToPage(j)
- },
- getInitialState: function() {
- this.currStyle = this.props.siteData.getAllTheme()[this.props.structure.styleId];
- this.lastRenderedStyleData = {};
- return {
- height: this.props.style.height
- }
- },
- setAppIsAlive: function() {
- this.isAlive = true;
- this.askToSendIframeMessage(this.props.compProp, this.props.compData)
- },
- setComponentInIframeReady: function() {
- this.messageSent = false;
- this.componentInIframeReady = true;
- this.askToSendIframeMessage(this.props.compProp, this.props.compData)
- },
- askToSendIframeMessage: function(a, b, c, d) {
- if (this.debounceIframe && this.shouldDebounceIframe && this.shouldDebounceIframe(a, b, c)) {
- this.debounceIframe(a, b, c, d)
- } else {
- this.sendIframeMessage(a, b, c, d)
- }
- },
- sendIframeMessage: function(a, b, c, d) {
- var e;
- if (this.isAlive && this.componentInIframeReady && !this.messageSent) {
- var f = this.getOverrideParams ? this.getOverrideParams(a) : a;
- var g = this.getStyleData(c, d);
- e = q(f, b.items, this.props.siteData, this.getStyleProps(), g, this.props.rootNavigationInfo);
- if (this.patchMessageProps) {
- this.patchMessageProps(e.params.props, c)
- }
- this.props.siteAPI.getSiteAspect("tpaPostMessageAspect").sendPostMessage(this, e);
- this.lastRenderedStyleData = g;
- this.messageSent = true
- }
- },
- shouldRenderIframe: function(b) {
- var c = o(b.compData.items, b.siteData, b.rootNavigationInfo);
- var d = r(c);
- var e = r(this.props.compData.items);
- var f = this.props.siteData.getGlobalImageQuality();
- var g = a.every(this.props.compData.items, function(b) {
- return !a.isEqual(b.quality, f) && !(a.isEmpty(b.quality) && a.isEmpty(f))
- }, this);
- var h = !a.isEqual(b.compProp, this.props.compProp) || !a.isEqual(e, d) || g || !a.isEqual(this.getStyleData(b.structure.styleId), this.lastRenderedStyleData);
- return h;
- },
- componentWillReceiveProps: function(b) {
- var c = b.siteData.getAllTheme()[b.structure.styleId];
- if (!a.isEqual(this.currStyle, c)) {
- this.currStyle = c;
- this.messageSent = false
- }
- if (this.shouldRenderIframe(b)) {
- this.messageSent = false
- }
- if (!a.isEqual(b.style.height, this.props.style.height)) {
- this.setState({
- height: b.style.height
- })
- }
- this.askToSendIframeMessage(b.compProp, b.compData, b.structure.styleId, b);
- if (this.isPlayingAllowed !== this.props.siteData.renderFlags.isPlayingAllowed) {
- this.isPlayingAllowed = this.props.siteData.renderFlags.isPlayingAllowed;
- this.sendEditModeMessage(this.isPlayingAllowed ? "site" : "editor")
- }
- },
- sendEditModeMessage: function(a) {
- if (!this.isAlive || !this.componentInIframeReady) {
- return
- }
- var b = {
- params: {
- editMode: a
- },
- eventType: "EDIT_MODE_CHANGE",
- intent: "addEventListener"
- };
- this.props.siteAPI.getSiteAspect("tpaPostMessageAspect").sendPostMessage(this, b)
- },
- getSkinProperties: function() {
- return {
- "": {
- style: {
- height: this.state.height || 0,
- minWidth: 10,
- minHeight: 10
- }
- },
- iframe: {
- style: {
- height: this.state.height,
- width: this.props.style.width
- },
- className: "tpa-gallery-" + this.getGalleryType(),
- src: p(this.props.siteData.santaBase, this.getGalleryType(), this.buildUrl, this.props.siteData.isDebugMode())
- }
- }
- }
- }
- });
- define("components/components/galleries/masonry", ["lodash", "components/components/galleries/tpaGallery"], function(a, b) {
- "use strict";
- var c = {
- textColor: "#000",
- descriptionColor: "#000",
- textBackgroundColor: "#fff",
- backgroundMouseoverColor: "#000",
- alphaBackgroundMouseoverColor: .4
- };
- return {
- displayName: "MasonryGallery",
- mixins: [b],
- getGalleryType: function() {
- return "Masonry"
- },
- getStyleProps: function() {
- return {
- textColor: "color1",
- descriptionColor: "color2",
- textBackgroundColor: "color3",
- backgroundMouseoverColor: "color4",
- textButtonColor: "color5"
- }
- },
- patchMessageProps: function(b, d) {
- var e = this.getStyleData(d);
- if (!e.version || parseInt(e.version, 10) === 1) {
- a.assign(b, c)
- }
- }
- }
- });
- define("components/components/galleries/accordion", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "AccordionGallery",
- mixins: [a],
- getGalleryType: function() {
- return "Accordion"
- },
- getStyleProps: function() {
- return {
- textColor: "color1",
- descriptionColor: "color2",
- textBackgroundColor: "color3",
- borderColor: "color4"
- }
- }
- }
- });
- define("components/components/galleries/impress", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "ImpressGallery",
- mixins: [a],
- getGalleryType: function() {
- return "Impress"
- },
- getStyleProps: function() {
- return {
- bcgColor1: "color1",
- bcgColor2: "color2",
- bcgColor3: "color3",
- bcgColor4: "color4",
- bcgColor5: "color5",
- textColor: "color6",
- descriptionColor: "color7",
- textBackgroundColor: "color8"
- }
- }
- }
- });
- define("components/components/galleries/freestyle", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "FreestyleGallery",
- mixins: [a],
- getGalleryType: function() {
- return "Freestyle"
- },
- getStyleProps: function() {
- return {
- borderColor: "color1"
- }
- }
- }
- });
- define("components/components/touchMediaZoom/touchMediaZoomUtils", [], function() {
- "use strict";
- function a(a) {
- return {
- leftPart_leftMargin: b(a, 0),
- leftPart_begin: c(a, 0),
- leftPart_rightMargin: d(a, 0),
- centerPart_leftMargin: b(a, 1),
- centerPart_begin: c(a, 1),
- centerPart_rightMargin: d(a, 1),
- rightPart_leftMargin: b(a, 2),
- rightPart_begin: c(a, 2),
- rightPart_rightMargin: d(a, 2),
- fullWidth: c(a, 3)
- }
- }
- function b(a, b) {
- return b * (1 + a)
- }
- function c(a, b) {
- return b * (1 + a) + a
- }
- function d(a, b) {
- return b * (1 + a) + 2 * a
- }
- function e(a, b, c) {
- return Math.min(Math.max(a, b), c)
- }
- function f(a) {
- var b = Math.min(a.viewport.width / a.imageDimensions.width, 1);
- var c = Math.min(a.viewport.height / a.imageDimensions.height, 1);
- var d = Math.min(b, c);
- return {
- width: Math.round(a.imageDimensions.width * d),
- height: Math.round(a.imageDimensions.height * d)
- }
- }
- return {
- createStageData: a,
- clamp: e,
- calcImageSize: f
- }
- });
- define("components/components/touchMediaZoom/touchMediaZoomSlideshow", ["lodash", "utils", "core", "components/components/touchMediaZoom/touchMediaZoomUtils", "imageClientApi", "experiment", "components/bi/events.json"], function(a, b, c, d, e, f, g) {
- "use strict";
- var h = c.compMixins,
- i = b.linkRenderer,
- j = b.nonPageItemZoom,
- k = .2,
- l = 29,
- m = .25;
- return {
- displayName: "TouchMediaZoomSlideshow",
- mixins: [h.skinBasedComp],
- nonReactState: {
- currentSlideIndex: 0,
- swipeOffset: 0,
- isZoomed: false
- },
- getSwipeOffset: function() {
- return this.nonReactState.swipeOffset
- },
- setSwipeOffset: function(a) {
- this.nonReactState.swipeOffset = a;
- var b = this.generateTransformString(a);
- this.refs.swipeStage.style.transform = b;
- this.refs.swipeStage.style.webkitTransform = b
- },
- generateTransformString: function(a) {
- return "translate3d(" + -1 * a * this.stagePercentFactor + "%, 0, 0)"
- },
- getCurrentSlideIndex: function() {
- return this.nonReactState.currentSlideIndex
- },
- setCurrentSlideIndex: function(a) {
- this.nonReactState.currentSlideIndex = a
- },
- getIsZoomed: function() {
- return this.nonReactState.isZoomed
- },
- setIsZoomed: function(a) {
- this.nonReactState.isZoomed = a
- },
- getStagePercentFactor: function() {
- return 100 / this.stageData.fullWidth
- },
- getItems: function() {
- return a.get(this.props, "pageItemAdditionalData.items", [this.props.compData])
- },
- enterZoomMode: function() {
- this.isZoomed = true;
- this.refs.xButton.classList.add(this.classSet({
- "force-hide": true
- }));
- if (f.isOpen("sv_expandModeBi")) {
- this.fireZoomInExpandModeEvent("pinch")
- }
- },
- exitZoomMode: function() {
- this.isZoomed = false;
- this.refs.xButton.classList.remove(this.classSet({
- "force-hide": true
- }))
- },
- onTouchMove: function(a) {
- if (a.touches.length === 1 && !this.isZoomed) {
- a.preventDefault();
- return
- }
- if (a.touches.length === 1 || this.isZoomed) {
- return
- }
- this.enterZoomMode()
- },
- onTouchEnd: function() {
- if (!this.isZoomed) {
- return
- }
- this._touchEndTimeoutHandle = window.setTimeout(function() {
- if (!this.props.siteData.mobile.isZoomedIn()) {
- this.exitZoomMode()
- }
- }.bind(this), 300)
- },
- fireEnterExpandModeEvent: function() {
- this.props.siteAPI.reportBI(g.ENTER_EXPAND_MODE, {
- site_id: this.props.siteData.rendererModel.siteInfo.siteId
- })
- },
- fireZoomInExpandModeEvent: function(a) {
- this.props.siteAPI.reportBI(g.ZOOM_IN_EXPAND_MODE, {
- site_id: this.props.siteData.rendererModel.siteInfo.siteId,
- zoomType: a
- })
- },
- componentWillMount: function() {
- this.fireEnterExpandModeEvent();
- this.props.siteAPI.getSiteAspect("siteScrollingBlocker").enterMediaZoomMode(this);
- var a = this.props.siteAPI.getSiteAspect("windowKeyboardEvent");
- a.registerToArrowLeftKey(this);
- a.registerToArrowRightKey(this);
- Object.defineProperty(this, "swipeOffset", {
- get: this.getSwipeOffset,
- set: this.setSwipeOffset
- });
- Object.defineProperty(this, "currentSlideIndex", {
- get: this.getCurrentSlideIndex,
- set: this.setCurrentSlideIndex
- });
- Object.defineProperty(this, "isZoomed", {
- get: this.getIsZoomed,
- set: this.setIsZoomed
- });
- Object.defineProperty(this, "stagePercentFactor", {
- get: this.getStagePercentFactor
- });
- this.stageData = d.createStageData(k);
- this.resetNonReactState();
- this.preloadImages(this.currentSlideIndex);
- this.setState({
- showInfo: true,
- isZoomed: false
- })
- },
- componentDidMount: function() {
- this.setSwipeOffset(this.swipeOffset);
- this.refs.swipeStage.addEventListener("transitionend", this.onSwipeEnd);
- if (!this.props.siteData.isMobileDevice()) {
- return
- }
- var a = this;
- require(["hammer"], function(b) {
- a.setupTouchHandlers(b)
- });
- this.refs[""].addEventListener("touchend", this.onTouchEnd);
- this.refs[""].addEventListener("touchcancel", this.onTouchEnd);
- this.refs[""].addEventListener("touchmove", this.onTouchMove)
- },
- componentWillUnmount: function() {
- this.props.siteAPI.getSiteAspect("siteScrollingBlocker").exitMediaZoomMode(this);
- window.clearTimeout(this._touchEndTimeoutHandle)
- },
- setupTouchHandlers: function(b) {
- this.hammertime = new b.Manager(this.refs[""], {
- cssProps: {
- touchCallout: "default"
- },
- touchAction: "auto"
- });
- this.hammertime.add(new b.Pan({
- event: "pan",
- direction: b.DIRECTION_HORIZONTAL
- }));
- this.hammertime.add(new b.Pan({
- event: "panstart",
- direction: b.DIRECTION_HORIZONTAL
- }));
- this.hammertime.add(new b.Pan({
- event: "panend",
- direction: b.DIRECTION_HORIZONTAL
- }));
- this.hammertime.on("panstart pan panend", this.onSwipe);
- if (f.isOpen("sv_expandModeBi")) {
- this.hammertime.add(new b.Tap({
- event: "doubletap",
- taps: 2,
- threshold: 30,
- posThreshold: 30
- }));
- this.hammertime.on("doubletap", a.partial(this.fireZoomInExpandModeEvent, "doubleTap"))
- }
- },
- componentWillUpdate: function() {
- if (this.props.siteData.isMobileDevice()) {
- this.setSwipeOffset(this.stageData.centerPart_begin)
- }
- },
- componentWillReceiveProps: function() {
- if (!this.props.siteData.renderFlags.isZoomAllowed) {
- setTimeout(this.closeMediaZoom, 0);
- return
- }
- },
- resetNonReactState: function(b) {
- var c = b || this.props.compData;
- var d = a.findIndex(this.getItems(), {
- id: c.id
- });
- var e = this.props.siteData.mobile.isZoomed();
- this.nonReactState = {
- currentSlideIndex: d,
- swipeOffset: this.stageData.centerPart_begin,
- isZoomed: e
- }
- },
- onSwipe: function a(b) {
- if (this.isZoomed) {
- return
- }
- if (b.center.x - b.deltaX < l) {
- return
- }
- switch (b.type) {
- case "panstart":
- break;
- case "pan":
- this.swipeOffset = d.clamp(this.stageData.centerPart_begin - b.deltaX / window.innerWidth, this.currentSlideIndex > 0 ? this.stageData.leftPart_leftMargin : this.stageData.centerPart_leftMargin, this.currentSlideIndex < this.getItems().length - 1 ? this.stageData.rightPart_rightMargin : this.stageData.centerPart_rightMargin);
- break;
- case "panend":
- this.startTransition();
- break;
- default:
- throw "unsupported event type: " + b.type
- }
- },
- calcTransitionTarget: function() {
- if (this.swipeOffset < this.stageData.centerPart_leftMargin) {
- return {
- offset: this.stageData.leftPart_begin,
- index: this.currentSlideIndex - 1
- }
- }
- if (this.swipeOffset > this.stageData.centerPart_rightMargin) {
- return {
- offset: this.stageData.rightPart_begin,
- index: this.currentSlideIndex + 1
- }
- }
- return {
- offset: this.stageData.centerPart_begin,
- index: this.currentSlideIndex
- }
- },
- startTransition: function(a) {
- var b = a || this.calcTransitionTarget();
- this.refs.swipeStage.classList.add(this.props.styleId + "_animate");
- this.swipeOffset = b.offset;
- this.currentSlideIndex = b.index;
- this.preloadImages(this.currentSlideIndex)
- },
- onSwipeEnd: function a() {
- this.refs.swipeStage.classList.remove(this.props.styleId + "_animate");
- this.swipeOffset = this.stageData.centerPart_begin;
- this.navigateToSlide(this.currentSlideIndex);
- this.setState({})
- },
- navigateToSlide: function(b) {
- var c = this.getItems()[b].id;
- var d = a.clone(this.props.rootNavigationInfo);
- d.pageItemId = c;
- this.props.siteAPI.updateUrlIfNeeded(d)
- },
- closeMediaZoom: function() {
- if (j.getZoomedImageData()) {
- j.unzoom()
- } else {
- this.props.siteAPI.navigateToPage({
- pageId: this.props.rootNavigationInfo.pageId
- })
- }
- },
- onXButton: function(a) {
- this.closeMediaZoom();
- a.preventDefault()
- },
- onArrowLeftKey: function() {
- if (this.currentSlideIndex > 0) {
- this.startTransition({
- offset: this.stageData.leftPart_begin,
- index: this.currentSlideIndex - 1
- })
- }
- },
- onArrowRightKey: function() {
- if (this.currentSlideIndex < this.getItems().length - 1) {
- this.startTransition({
- offset: this.stageData.rightPart_begin,
- index: this.currentSlideIndex + 1
- })
- }
- },
- toggleInfoPanel: function(a) {
- if (a.target === this.refs.stage_CENTER.refs.link) {
- return
- }
- this.setState({
- showInfo: !this.isManipulated() && !this.state.showInfo
- })
- },
- getGotoLink: function(b) {
- var c = b.link;
- if (!c) {
- return
- }
- var d = i.renderLink(c, this.props.siteData, this.props.rootNavigationInfo);
- d.children = a.get(this.props, "compProps.goToLinkText", "Go to link");
- return d
- },
- preloadImages: function(a) {
- for (var b = a - 10; b < a + 10; b++) {
- this.preloadImage(b, m)
- }
- for (var c = a - 3; c < a + 3; c++) {
- this.preloadImage(c)
- }
- },
- preloadImage: function(a, b) {
- if (a < 0 || a >= this.getItems().length) {
- return
- }
- var c = this.getItems()[a];
- var d = this.getImageData(c, b);
- (new window.Image).src = d.uri
- },
- getStageParts: function() {
- return a.filter([{
- id: "LEFT",
- imageIndex: this.currentSlideIndex - 1,
- offset: this.stageData.leftPart_leftMargin
- }, {
- id: "CENTER",
- imageIndex: this.currentSlideIndex,
- offset: this.stageData.centerPart_leftMargin
- }, {
- id: "RIGHT",
- imageIndex: this.currentSlideIndex + 1,
- offset: this.stageData.rightPart_leftMargin
- }], function(a) {
- return a.imageIndex >= 0 && a.imageIndex < this.getItems().length
- }, this)
- },
- isManipulated: function() {
- var a = this.props.siteData.isMobileDevice() && this.props.siteData.mobile.isLandscape();
- return a || this.state.isZoomed
- },
- getImageData: function(c, f) {
- var g = e.fittingTypes.SCALE_TO_FIT;
- var h = {
- id: c.uri,
- width: c.width,
- height: c.height
- };
- var i = this.props.siteData.mobile.getDevicePixelRatio();
- var j = this.props.siteData.screenSize;
- var k = d.calcImageSize({
- imageDimensions: a.pick(c, ["width", "height"]),
- viewport: {
- width: j.width,
- height: j.height
- }
- });
- var l = {
- width: Math.round(k.width * (f || 1)),
- height: Math.round(k.height * (f || 1))
- };
- var m = {
- width: l.width,
- height: l.height,
- alignment: e.alignTypes.CENTER,
- htmlTag: "img",
- pixelAspectRatio: i
- };
- var n = a.defaults({
- quality: 85
- }, c.quality || {});
- var o = this.props.siteData.browser;
- var p = e.getData(g, h, m, n, o);
- a.assign(p.css.img, k, {
- objectFix: "internal"
- });
- a.assign(p, {
- uri: b.urlUtils.joinURL(this.props.siteData.getStaticMediaUrl(), p.uri)
- });
- return p
- },
- buildStageChildren: function() {
- var b = [];
- a.forEach(this.getStageParts(), function(a) {
- var c = a.offset * this.stagePercentFactor;
- var d = "stage_" + a.id;
- var e = this.getItems()[a.imageIndex];
- var f = this.getImageData(e, m);
- var g = this.getImageData(e);
- var h = this.createChildComponent(e, "wysiwyg.viewer.components.TouchMediaZoomItem", "image", {
- key: this.props.id + "_item" + a.imageIndex,
- id: d,
- ref: d,
- imageData: g,
- imageFastData: f,
- title: e.title,
- description: e.description,
- link: this.getGotoLink(e),
- screenWidth: this.props.siteData.screenSize.width,
- itemWidth: this.props.siteData.screenSize.width * (1 + 2 * k),
- showInfo: this.state.showInfo && !this.isManipulated(),
- itemLeft: c
- });
- b.push(h)
- }, this);
- return b
- },
- getSkinProperties: function() {
- return {
- "": {
- onClick: this.toggleInfoPanel
- },
- swipeStage: {
- style: {
- width: 100 * this.stageData.fullWidth + "%"
- },
- children: this.buildStageChildren()
- },
- xButton: {
- onClick: this.onXButton,
- className: this.classSet({
- hidden: this.isManipulated()
- })
- }
- }
- }
- }
- });
- define("components/components/touchMediaZoom/touchMediaZoomItem", ["lodash", "react", "core"], function(a, b, c) {
- "use strict";
- return {
- displayName: "TouchMediaZoomItem",
- mixins: [c.compMixins.skinBasedComp],
- propTypes: {
- itemWidth: b.PropTypes.number.isRequired,
- itemLeft: b.PropTypes.number.isRequired,
- screenWidth: b.PropTypes.number.isRequired,
- imageData: b.PropTypes.object.isRequired,
- imageFastData: b.PropTypes.object.isRequired,
- title: b.PropTypes.string,
- description: b.PropTypes.string,
- link: b.PropTypes.object,
- showInfo: b.PropTypes.bool.isRequired
- },
- getTitle: function() {
- return {
- className: this.classSet({
- hidden: !this.props.title
- }),
- children: this.props.title
- }
- },
- getDescription: function() {
- return {
- className: this.classSet({
- hidden: !this.props.description
- }),
- children: this.props.description
- }
- },
- getLink: function() {
- return a.assign({}, this.props.link, {
- className: this.classSet({
- hidden: !this.props.link
- })
- })
- },
- hasInfo: function() {
- return this.props.title || this.props.description || this.props.link
- },
- isImageFullWidth: function() {
- return this.props.screenWidth <= this.props.imageFastData.css.img.width
- },
- getSkinProperties: function() {
- var a = b.createElement("img", {
- src: this.props.imageFastData.uri,
- style: this.props.imageFastData.css.img,
- className: this.classSet({
- fast: true
- })
- });
- var c = b.createElement("img", {
- src: this.props.imageData.uri,
- style: this.props.imageData.css.img,
- className: this.classSet({
- heavy: true
- })
- });
- return {
- "": {
- className: this.classSet({
- parallax: this.isImageFullWidth()
- }),
- style: {
- width: this.props.itemWidth + "px",
- left: this.props.itemLeft + "%"
- }
- },
- imageContainer: {
- style: {
- width: this.props.screenWidth + "px"
- },
- children: [a, c]
- },
- info: {
- className: this.classSet({
- hidden: !this.props.showInfo || !this.hasInfo()
- }),
- style: {
- width: this.props.screenWidth + "px"
- }
- },
- description: this.getDescription(),
- title: this.getTitle(),
- link: this.getLink()
- }
- }
- }
- });
- define("components/components/galleries/collage", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "CollageGallery",
- mixins: [a],
- getGalleryType: function() {
- return "Collage"
- },
- getStyleProps: function() {
- return {
- textColor: "color1",
- descriptionColor: "color2",
- backgroundMouseoverColor: "color3"
- }
- },
- getOverrideParams: function(a) {
- if (a.maxImageSize > a.numOfCells) {
- a.maxImageSize = a.numOfCells
- }
- if (a.minImageSize > a.maxImageSize) {
- a.minImageSize = a.maxImageSize
- } else if (a.maxImageSize < a.minImageSize) {
- a.maxImageSize = a.minImageSize
- }
- return a
- }
- }
- });
- define("components/components/galleries/honeycomb", ["lodash", "components/components/galleries/tpaGallery"], function(a, b) {
- "use strict";
- return {
- displayName: "HoneycombGallery",
- mixins: [b],
- getGalleryType: function() {
- return "Honeycomb"
- },
- debounceIframe: a.debounce(function(a, b, c) {
- this.sendIframeMessage(a, b, c)
- }, 400),
- shouldDebounceIframe: function(a) {
- return a.numOfColumns !== this.props.compProp.numOfColumns
- },
- getStyleProps: function() {
- return {
- textColor: "color1",
- descriptionColor: "color2",
- textBackgroundColor: "color3",
- backgroundMouseoverColor: "color4",
- holesColor: "color5"
- }
- }
- }
- });
- define("components/components/galleries/stripShowcase", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "StripShowcaseGallery",
- mixins: [a],
- getGalleryType: function() {
- return "StripShowcase"
- },
- getStyleProps: function() {
- return {}
- }
- }
- });
- define("components/components/galleries/stripSlideshow", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "StripSlideshowGallery",
- mixins: [a],
- getGalleryType: function() {
- return "StripSlideshow"
- },
- getStyleProps: function() {
- return {
- titleColor: "color1",
- descriptionColor: "color2",
- backgroundColor: "color3"
- }
- }
- }
- });
- define("components/components/galleries/thumbnails", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "ThumbnailsGallery",
- mixins: [a],
- getGalleryType: function() {
- return "Thumbnails"
- },
- getStyleProps: function() {
- return {
- textColor: "color1",
- descriptionColor: "color2",
- textBackgroundColor: "color3"
- }
- }
- }
- });
- define("components/components/galleries/tpa3DGallery", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "TPA3DGallery",
- mixins: [a],
- getGalleryType: function() {
- return "Slicebox"
- },
- getStyleProps: function() {
- return {}
- }
- }
- });
- define("components/components/galleries/tpa3DCarousel", ["components/components/galleries/tpaGallery"], function(a) {
- "use strict";
- return {
- displayName: "TPA3DCarouselGallery",
- mixins: [a],
- getGalleryType: function() {
- return "Carousel"
- },
- getStyleProps: function() {
- return {}
- }
- }
- });
- define("components/components/infoTip/infoTipUtils", ["zepto"], function(a) {
- "use strict";
- function b(a) {
- return a.offset()
- }
- function c(a, b) {
- return {
- top: a.top - b.height,
- left: a.left - b.width / 2,
- right: "auto"
- }
- }
- function d(b, c, d, e) {
- var f = a(window.document.body).scrollTop(),
- g = b - f < 0,
- h;
- if (g) {
- h = c.top + e.height;
- if (h > d + f + e.height) {
- if (c.top < 0) {
- h = c.top
- } else {
- h = f
- }
- }
- return h > 0 ? h : 0
- }
- return b
- }
- function e(a, b, c, d) {
- if (b > d) {
- return "auto"
- }
- return a < 0 ? c.left : a
- }
- function f(a, b, c) {
- return a > c ? b.left + b.width : a
- }
- function g(a, b, c) {
- var g = window.innerWidth,
- h = window.innerHeight;
- return {
- top: d(a.top, b, h, c),
- left: e(a.left, a.right, b),
- right: f(a.right, b, g)
- }
- }
- function h(a, b) {
- var c = 0,
- d = 0,
- e, f = b.offsetParent();
- if (f) {
- e = f.offset();
- c = e.top;
- d = e.left
- }
- return {
- top: a.top - c,
- left: a.left - d,
- right: a.right === "auto" ? a.right : a.right + d
- }
- }
- function i(d, e) {
- var f, i, j;
- d = a(d);
- e = a(e);
- j = {
- width: e.width(),
- height: e.height()
- };
- f = b(d);
- i = c(f, j);
- i = g(i, f, j);
- i = h(i, e);
- return i
- }
- return {
- getPosition: i
- }
- });
- define("components/components/infoTip/infoTip", ["lodash", "utils", "core", "components/components/infoTip/infoTipUtils", "reactDOM"], function(a, b, c, d, e) {
- "use strict";
- var f = c.compMixins;
- var g = b.style.assignStyle;
- var h = 150,
- i = 500,
- j = 3e3;
- function k() {
- n.call(this)
- }
- function l() {
- this.setTimeoutNamed("closeTipByTimeout", k.bind(this), j)
- }
- function m(a, b) {
- o.call(this, e.findDOMNode(b.source))
- }
- function n() {
- this.clearTimeoutNamed("openTip");
- this.setState({
- $hidden: "hidden",
- runTimer: true
- })
- }
- function o(a) {
- this.setState({
- $hidden: "",
- isShown: true,
- caller: a
- });
- l.call(this)
- }
- function p() {
- var b, c;
- if (this.state.isShown) {
- b = e.findDOMNode(this);
- c = d.getPosition(this.state.caller, b);
- g(b, a.pick(c, ["top", "left", "right"]))
- }
- }
- function q(b) {
- return b && a.isEmpty(b.description)
- }
- return {
- displayName: "InfoTip",
- mixins: [f.skinBasedComp, f.timeoutsMixin],
- onMouseEnter: function() {
- this._isMouseInside = true
- },
- onMouseLeave: function() {
- this._isMouseInside = false;
- n.call(this)
- },
- showToolTip: function(a, b) {
- if (q(b.source.props.compData)) {
- return
- }
- this.clearTimeoutNamed("hideTipByClose");
- this.setTimeoutNamed("openTip", function() {
- m.call(this, a, b)
- }.bind(this), i)
- },
- closeToolTip: function() {
- this.setTimeoutNamed("hideTipByClose", function() {
- if (!this._isMouseInside) {
- n.call(this)
- }
- }.bind(this), h)
- },
- getSkinProperties: function() {
- return {
- content: {
- children: [this.props.compData.content]
- }
- }
- },
- componentDidUpdate: function() {
- p.call(this)
- },
- getInitialState: function() {
- return {
- $hidden: "hidden",
- isMouseInside: false
- }
- }
- }
- });
- define("components/components/singleAudioPlayer/singleAudioPlayer", ["core", "react", "lodash", "reactDOM"], function(a, b, c, d) {
- "use strict";
- var e = a.compMixins;
- var f = function(a) {
- return a === 0 ? 0 : Math.ceil(a / 20)
- };
- var g = function(a) {
- return a * 20
- };
- var h = function(a) {
- var b = a / 1e3,
- c = Math.floor(b / 60),
- d = Math.floor(b % 60),
- e = c < 10 ? "0" + c : c,
- f = d < 10 ? "0" + d : d,
- g = e + ":" + f;
- return g
- };
- var i = function(a, b, c) {
- var d = (a.nativeEvent.offsetX ? a.nativeEvent.offsetX : a.nativeEvent.layerX) / b,
- e = Math.ceil(d * c);
- return e
- };
- var j = function(a, b) {
- if (b === "unmuted") {
- a.muteAudio()
- } else {
- a.unmuteAudio()
- }
- };
- return {
- displayName: "SingleAudioPlayer",
- mixins: [e.skinBasedComp, e.skinInfo, e.audioMixin],
- getInitialState: function() {
- this.audioVolume = this.props.compProp.volume;
- this.autoPlay = this.props.compProp.autoplay;
- return {
- $playerState: "waiting",
- $device: this.getDeviceState(),
- $isduration: "duration",
- $isMuted: "unmuted",
- trackDuration: "00:00",
- trackPositionLabel: "00:00",
- progressPosition: 0,
- volumeBars: f(this.props.compProp.volume),
- dragging: false,
- $heightChanged: false
- }
- },
- finishedPlayingAudio: function() {
- this.isAudioPlaying = false;
- if (this.props.compProp.loop) {
- this.initiatePlay()
- } else {
- this.setState({
- $playerState: "repeat"
- })
- }
- },
- whileLoadingHandler: function(a) {
- var b = h(a);
- this.setState({
- trackDuration: b
- })
- },
- whilePlayingHandler: function(a) {
- var b = h(a),
- c = a / this.getAudioDuration() * 100;
- this.setState({
- trackPositionLabel: b,
- progressPosition: c
- })
- },
- getProgressBarWidth: function() {
- return d.findDOMNode(this.refs.progressbar).offsetWidth
- },
- resetTrackPosition: function() {
- this.setState({
- trackPositionLabel: "00:00",
- progressPosition: 0
- })
- },
- movingProgressbarHandle: function(a) {
- var b = this.getProgressBarWidth(),
- c = this.getSkinExports("barSpaceLeft").barSpaceLeft,
- d = this.getSkinExports("barSpaceRight").barSpaceRight,
- e = this.props.style.width,
- f = a.pageX,
- g = this.getAudioDuration(),
- j = f < c || f > e - d,
- k = i(a, b, g);
- if (j) {
- return
- }
- this.setState({
- trackPositionLabel: h(k),
- progressPosition: k / g * 100
- });
- this.seekAudio(k)
- },
- stoppedMovingProgressbarHandle: function(a) {
- var b = this.getProgressBarWidth();
- var c = this.getAudioDuration();
- var d = i(a, b, c);
- this.setState({
- trackPositionLabel: h(d),
- progressPosition: d / c * 100
- });
- this.seekAudio(d)
- },
- callSeek: function(a) {
- var b = this.getProgressBarWidth();
- var c = this.getAudioDuration();
- var d = i(a, b, c);
- this.seekAudio(d)
- },
- buildVolumeScale: function() {
- var a = 5,
- d = this.props.styleId,
- e = this.state.volumeBars;
- return c.times(a, function(a) {
- return b.DOM.li({
- className: a < e ? d + "_on" : d + "_off",
- onClick: this.setNonPersistentVolume,
- "data-index": a + 1
- }, b.DOM.div({
- className: d + "_colorBlock"
- }), b.DOM.div({
- className: d + "_colorBlank"
- }))
- }, this)
- },
- callToggleMute: function() {
- j(this, this.state.$isMuted);
- if (this.state.$isMuted === "unmuted") {
- this.setState({
- $isMuted: "muted"
- })
- } else {
- this.setState({
- $isMuted: "unmuted"
- })
- }
- },
- getTargetIndex: function(a) {
- return a.getAttribute("data-index")
- },
- setNonPersistentVolume: function(a) {
- var b = this.getTargetIndex(a.currentTarget);
- this.setState({
- volumeBars: b
- });
- this.setVolume(g(b))
- },
- updateComponentHeight: function(a) {
- return this.getSkinExports(a + "Height")[a + "Height"]
- },
- getSkinProperties: function() {
- this.autoPlay = this.props.compProp.autoplay;
- this.updateAudioObject();
- return {
- "": {
- style: {
- height: this.updateComponentHeight(this.getDeviceState())
- }
- },
- sep: {
- children: " - "
- },
- sep2: {
- children: " / "
- },
- artistLabel: {
- children: this.props.compData.artist
- },
- trackLabel: {
- children: this.props.compData.track
- },
- playBtn: {
- onClick: this.initiatePlay
- },
- pauseBtn: {
- onClick: this.initiatePause
- },
- repeatBtn: {
- onClick: this.initiatePlay
- },
- bar: {
- onClick: this.callSeek
- },
- slider: {
- onClick: this.callSeek,
- style: {
- width: this.state.progressPosition + "%"
- }
- },
- handle: {
- onDrag: this.movingProgressbarHandle,
- onDragEnd: this.stoppedMovingProgressbarHandle,
- style: {
- cursor: "pointer",
- left: this.state.progressPosition + "%"
- },
- draggable: true
- },
- volumeBtn: {
- onClick: this.callToggleMute
- },
- volumeScale: {
- children: this.buildVolumeScale()
- },
- trackDuration: {
- children: this.state.trackDuration
- },
- trackPosition: {
- children: this.state.trackPositionLabel
- }
- }
- }
- }
- });
- define("components/components/siteBackground/siteBackground", ["lodash", "core", "utils", "backgroundCommon", "experiment"], function(a, b, c, d, e) {
- "use strict";
- var f = "100%";
- var g = "100%";
- var h = 0;
- var i = "120%";
- var j = 0;
- var k = c.balataConsts;
- function l(b, c) {
- var d = b.scrollType;
- var e = a.get(b, ["mediaRef", "type"]);
- var f = e === "Image" || e === "WixVideo";
- if (!c.browserFlags().fixedSiteBackground || c.isMobileView() || !f) {
- d = "scroll"
- }
- return d
- }
- function m(a, b) {
- var c = b;
- if (a.isMobileView() || a.mobile.isAndroidOldBrowser()) {
- c = "scroll"
- } else if (!a.browserFlags().fixedSiteBackground) {
- c = ""
- }
- return c
- }
- function n(a, b) {
- var c = "absolute";
- if (!a.isMobileDevice() && b === "fixed" || b === "parallax") {
- c = "fixed"
- }
- return c
- }
- function o(a, b, d) {
- var e = m(a, l(b, a));
- var h = n(a, e);
- var i = {
- top: 0,
- height: g,
- width: f,
- backgroundColor: c.colorParser.getColor(a.getColorsMap(), b.color),
- display: d ? "none" : "",
- position: h
- };
- return i
- }
- function p(a) {
- var b = g;
- if (a === "parallax") {
- b = i
- }
- return b
- }
- function q(a) {
- var b = h;
- if (a === "parallax") {
- b = j
- }
- return b
- }
- function r(b, c, d, e) {
- var g = a.isPlainObject(c.mediaRef) ? c.mediaRef : b.getDataByQuery(c.mediaRef, e);
- var h = {
- position: "absolute",
- top: q(l(c, b)),
- height: p(l(c, b)),
- width: f,
- opacity: g && g.opacity
- };
- return h
- }
- function s() {
- return [{
- action: "bgScrub",
- name: "SiteBackgroundParallax",
- duration: 1,
- delay: 0
- }]
- }
- function t(b, c, d, e, f) {
- var g = c.mediaRef || {};
- var h = e.mediaRef || {};
- var i = !c.mediaRef && !e.mediaRef;
- var j = i || g.type === h.type;
- var k = g.type === "WixVideo" && j;
- var l = ["mediaRef", "imageOverlay"];
- var m = ["type", "alignType", "fittingType", "scrollType", "colorOverlay", "colorOverlayOpacity", "color", "videoId", "uri", "opacity"];
- if (k) {
- m = a.without(m, "color")
- } else if (i) {
- m = ["color"]
- }
- return j && u(b, c, d, e, f, l, m)
- }
- function u(b, c, d, e, f, g, h) {
- var i = a.every(h, function(a) {
- return (c && c[a]) === (e && e[a])
- });
- i = i && a.every(g, function(a) {
- return c ? u(b, c[a], d, e[a], f, g, h) : true
- });
- return i
- }
- function v(b, c, d) {
- var e = this.getBgData(b);
- var f = e.mediaRef;
- if (f && f.type === "WixVideo") {
- var g = a.cloneDeep(e);
- g.id = c;
- return d(g, "wysiwyg.viewer.components.videoBackground", c, {
- compData: f,
- structureComponentId: "siteBackground"
- })
- }
- return null
- }
- function w(a, b, d) {
- var e = b.colorOverlay ? c.colorParser.getColor(a.getColorsMap(), b.colorOverlay, b.colorOverlayOpacity) : null;
- var h = x(a, b.imageOverlay);
- var i = m(a, l(b, a));
- return {
- position: "absolute",
- top: 0,
- width: f,
- height: g,
- backgroundImage: h,
- backgroundColor: e,
- backgroundAttachment: d ? "" : i
- }
- }
- function x(a, b) {
- if (!b) {
- return null
- }
- return "url(" + c.urlUtils.joinURL(a.getStaticMediaUrl(), b.uri) + ")"
- }
- return {
- displayName: "SiteBackground",
- mixins: [b.compMixins.skinBasedComp, b.compMixins.animationsMixin, d.mixins.backgroundDetectionMixin],
- isCurrentBgVideo: false,
- currentId: null,
- previousScroll: null,
- getInitialState: function() {
- this.actionsAspect = this.props.siteAPI.getSiteAspect("actionsAspect");
- this.currentId = this.props.currentUrlPageId;
- this.size = {};
- return {
- visibleBgPageId: this.props.currentUrlPageId,
- previousVisibleBgPageId: "",
- resetAttachment: false,
- hidePrevious: false
- }
- },
- getBgData: function(b) {
- b = b || this.state.visibleBgPageId;
- var c = this.props.siteData.getDataByQuery(b, b);
- if (e.isOpen("sv_platform1")) {
- c = this.props.siteAPI.getRuntimeDal().getCompData(b) || this.props.siteData.getDataByQuery(b, b)
- }
- if (a.isEmpty(c)) {
- return {}
- }
- var d = this.props.siteData.isMobileView() ? "mobile" : "desktop";
- return c.pageBackgrounds[d].ref || {}
- },
- callforBackgroundChange: function(a) {
- var b = {
- onComplete: function() {
- if (a !== this.state.visibleBgPageId) {
- if (this.refs.previousVideo && this.refs.previousVideo.kill) {
- this.refs.previousVideo.kill()
- }
- this.setState({
- hidePrevious: true,
- previousVisibleBgPageId: "",
- resetAttachment: false
- })
- }
- }.bind(this)
- };
- this.actionsAspect.registerNextBGPageTransition(this, "previous", "current", b);
- this.setState({
- visibleBgPageId: this.currentId,
- previousVisibleBgPageId: a,
- resetAttachment: true,
- hidePrevious: false
- })
- },
- componentWillReceiveProps: function(a) {
- var b = this.state.visibleBgPageId;
- this.currentId = a.currentUrlPageId;
- if (this.currentId !== b) {
- var c = this.getBgData(b);
- var d = this.getBgData(this.currentId);
- if (!t(this.props.siteData, d, this.currentId, c, b)) {
- this.callforBackgroundChange(b)
- } else {
- if (this.refs.previousVideo && this.refs.previousVideo.kill) {
- this.refs.previousVideo.kill()
- }
- this.setState({
- previousVisibleBgPageId: ""
- })
- }
- }
- },
- isVideo: function() {
- return this.isCurrentBgVideo
- },
- handleParallaxBehavior: function(a) {
- var b = l(a, this.props.siteData);
- var c = this.previousScroll === "parallax" || b === "parallax";
- if (c) {
- this.previousScroll = b;
- if (b === "parallax") {
- this.actionsAspect.registerBehaviors("currentImage", "siteBackground", s())
- } else {
- this.actionsAspect.unRegisterBehaviors("currentImage", s())
- }
- }
- },
- getClasses: function() {
- var a = "";
- return a
- },
- getSkinProperties: function() {
- var a = this.state.visibleBgPageId;
- var b = this.state.previousVisibleBgPageId;
- var c = this.state.resetAttachment;
- var d = null;
- var e = !this.props.siteData.isTouchDevice();
- var f, g;
- if (b) {
- d = this.getBgData(b);
- if (e) {
- f = v.call(this, b, "previousVideo", this.createChildComponent)
- }
- }
- var h = this.getBgData(a);
- if (e) {
- g = v.call(this, this.currentId, "currentVideo", this.createChildComponent)
- }
- this.isCurrentBgVideo = !!g;
- this.handleParallaxBehavior(h);
- var i = this.props.id;
- var j = {
- "": {
- id: i,
- className: this.getClasses()
- },
- current: {
- key: a,
- id: i + "_current_" + a,
- style: o(this.props.siteData, h, false)
- },
- currentImage: {
- key: "background_currentImage_" + l(h, this.props.siteData),
- id: i + "_currentImage_" + a,
- style: r(this.props.siteData, h, c, a),
- "data-type": k.BG_IMAGE
- },
- currentVideo: g,
- currentOverlay: {
- id: i + "_currentOverlay_" + a,
- style: w(this.props.siteData, h, c, a)
- },
- previous: {
- key: b || "noPrev",
- id: i + "_previous_" + b,
- style: d ? o(this.props.siteData, d, this.state.hidePrevious) : {}
- },
- previousImage: {
- id: i + "_previousImage_" + b,
- style: d ? r(this.props.siteData, d, c, b) : {}
- },
- previousVideo: f,
- previousOverlay: {
- id: i + "_previousOverlay_" + b,
- style: d ? w(this.props.siteData, d, c, b) : {}
- }
- };
- return j
- }
- }
- });
- define("components/components/videoBackground/videoBackground", ["lodash", "core", "utils", "backgroundCommon"], function(a, b, c, d) {
- "use strict";
- function e(b, d, e) {
- var f = {};
- if (!d) {
- return f
- }
- a.forEach(d.formats, function(a) {
- f[a] = c.urlUtils.joinURL(e.getStaticVideoUrl(), b.videoId, d.quality, a, "file." + a)
- });
- return f
- }
- function f(a) {
- return {
- loop: a.loop ? "loop" : "",
- muted: a.mute ? "muted" : "",
- preload: a.preload || "auto"
- }
- }
- return {
- displayName: "VideoBackground",
- mixins: [b.compMixins.skinBasedComp, d.mixins.bgVideoMixin],
- componentWillReceiveProps: function(a) {
- if (a.refInParent === "previousVideo") {
- this.videoBackgroundAspect.unregisterVideo(this.props.refInParent)
- }
- },
- getDefaultSkinName: function() {
- return "wysiwyg.viewer.skins.videoBackgroundSkin"
- },
- getSkinProperties: function() {
- var a;
- var b = {};
- var c = {};
- var d;
- if (this.state.active) {
- a = this.getVideoData();
- d = this.state.videoQuality;
- b = e(a, d, this.props.siteData);
- c = f(a)
- }
- var g = {
- "": {
- "data-quality": d && d.quality,
- style: {
- position: "relative",
- top: 0,
- left: 0
- }
- },
- video: {
- loop: c.loop,
- autoPlay: c.autoplay,
- muted: c.muted,
- preload: c.preload,
- width: "100%",
- height: "100%",
- style: {
- visibility: "hidden"
- }
- },
- mp4: {
- src: b.mp4 || "",
- type: "video/mp4"
- },
- webm: {
- src: b.webm || "",
- type: "video/webm"
- }
- };
- return g
- }
- }
- });
- define("components/components/inputWithValidation/inputWithValidation", ["core", "lodash", "react", "santaProps"], function(a, b, c, d) {
- "use strict";
- var e = a.compMixins;
- function f() {
- var a = this.props.validators || [];
- var c = this.state.value;
- var d = "";
- b.forEach(a, function(a) {
- if (d) {
- return false
- }
- d = a(c)
- });
- this.setState({
- error: d
- });
- this.hasError = !!d;
- return d
- }
- function g(a, b) {
- var c;
- if (this.state.error) {
- c = {
- className: a,
- children: this.state.error
- }
- } else if (this.props.asyncErrorMessage) {
- c = {
- className: a,
- children: this.props.asyncErrorMessage
- }
- } else {
- c = b
- }
- return c
- }
- return {
- displayName: "InputWithValidation",
- mixins: [e.skinBasedComp],
- propTypes: {
- isMobileView: d.Types.isMobileView.isRequired,
- validators: c.PropTypes.array,
- asyncErrorMessage: c.PropTypes.string,
- defaultValue: c.PropTypes.string,
- styleId: c.PropTypes.string,
- onChange: c.PropTypes.func,
- lazyValidation: c.PropTypes.bool,
- label: c.PropTypes.string,
- placeholder: c.PropTypes.string,
- noPlaceHolder: c.PropTypes.bool,
- type: c.PropTypes.string
- },
- statics: {
- useSantaTypes: true
- },
- getInitialState: function() {
- return {
- value: this.props.defaultValue || "",
- error: false
- }
- },
- onChange: function(a) {
- a.persist();
- this.setState({
- value: a.target.value
- });
- if (this.props.onChange) {
- this.props.onChange(a)
- }
- this.debouncedOnChange(a);
- if (this.props.lazyValidation) {
- this.setState({
- error: false
- })
- }
- },
- debouncedOnChange: b.debounce(function() {
- if (!this.props.lazyValidation) {
- this.validate()
- }
- }, 200),
- getValue: function() {
- return this.state.value
- },
- getSkinProperties: function() {
- var a = this.props.styleId + "_error";
- var c = a;
- var d = this.state.error || this.props.asyncErrorMessage ? a : "";
- var e = this.props.styleId + "_new";
- c += " " + e;
- d += " " + e;
- var f = {
- onFocus: this.onFocus,
- onBlur: this.onBlur
- };
- var h = {
- className: e
- };
- if (this.props.isMobileView) {
- d += " " + this.props.styleId + "_mobile";
- c += " " + this.props.styleId + "_mobile"
- }
- return {
- label: this.props.label ? {
- children: this.props.label
- } : {},
- input: b.merge({
- className: d,
- value: this.state.value,
- placeholder: this.state.noPlaceHolder ? "" : this.props.placeholder,
- onChange: this.onChange,
- type: this.props.type || "text"
- }, f),
- errorMessage: g.bind(this)(c, h)
- }
- },
- isValid: function() {
- return !this.hasError
- },
- validate: function() {
- return !f.apply(this)
- },
- onFocus: function() {
- this.setState({
- noPlaceHolder: true
- })
- },
- onBlur: function() {
- this.setState({
- noPlaceHolder: false
- })
- }
- }
- });
- define("components/components/flashComponent/flashComponent", ["lodash", "reactDOM", "core", "utils", "imageClientApi", "swfobject"], function(a, b, c, d, e) {
- "use strict";
- var f = c.compMixins;
- var g = d.linkRenderer;
- function h(a, b, c, d) {
- var e = !!a.link;
- var f = e ? g.renderLink(a.link, b, d) : {};
- f.style = {
- textAlign: c.align
- };
- return f
- }
- function i(a, b, c, f, g) {
- var h = {
- width: b,
- height: c
- };
- var i = {
- width: f,
- height: g
- };
- if (a === "fit") {
- return d.imageUtils.getContainerSize(h, i, e.fittingTypes.LEGACY_FIT_WIDTH)
- } else if (a === "stretch") {
- return d.imageUtils.getContainerSize(h, i, e.fittingTypes.STRETCH)
- }
- return {
- width: f,
- height: g
- }
- }
- function j(a, b) {
- return this.createChildComponent(a, "core.components.Image", "noFlashImg", {
- id: this.props.id + "noFlashImg",
- ref: "noFlashImg",
- imageData: a,
- containerWidth: b.width,
- containerHeight: b.height,
- displayMode: e.fittingTypes.LEGACY_FULL,
- usePreloader: true
- })
- }
- function k() {
- window.swfobject.embedSWF(m(this.props.compData, this.props.siteData), this.props.id + "flashContainer", "100%", "100%", "10.0.0", "playerProductInstall.swf", null, n(), o(), l.bind(this));
- this.embeddedUri = this.props.compData.uri
- }
- function l(a) {
- if (a.success) {
- b.findDOMNode(this.refs.noFlashImgContainer).style.display = "none"
- }
- }
- function m(a, b) {
- if (a.uri) {
- return b.serviceTopology.staticMediaUrl + "/" + a.uri
- }
- return ""
- }
- function n() {
- return {
- quality: "high",
- bgcolor: "#FAFAFA",
- allowscriptaccess: "never",
- allowfullscreen: "true",
- wMode: "transparent",
- scale: "exactFit",
- flashVars: "",
- play: "true",
- autoplay: "true"
- }
- }
- function o() {
- return {
- align: "middle"
- }
- }
- return {
- displayName: "FlashComponent",
- mixins: [f.skinBasedComp],
- getInitialState: function() {
- this.embeddedUri = null;
- var a = !!this.props.compData.link;
- return {
- $linkableComponent: a ? "link" : "noLink"
- }
- },
- componentDidMount: function() {
- k.call(this)
- },
- componentDidUpdate: function() {
- if (this.props.compData.uri !== this.embeddedUri) {
- k.call(this)
- }
- },
- getSkinProperties: function() {
- var a = this.props.compData.placeHolderImage;
- var b = this.props.compProp.displayMode;
- var c = this.props.compData.uri ? this.props.compData.width : a.width;
- var d = this.props.compData.uri ? this.props.compData.height : a.height;
- var e = i(b, this.props.style.width, this.props.style.height, c, d);
- return {
- "": {
- style: {
- width: e.width,
- height: e.height
- }
- },
- link: h(this.props.compData, this.props.siteData, this.props.compProp, this.props.rootNavigationInfo),
- noFlashImg: j.call(this, a, e)
- }
- }
- }
- });
- define("components/components/wixAppsImageButton/wixAppsImageButton", ["core", "react"], function(a, b) {
- "use strict";
- var c = a.compMixins;
- var d = {
- Default: 0,
- Hover: 1,
- Click: 2
- };
- return {
- displayName: "ImageButton",
- mixins: [c.skinBasedComp],
- getInitialState: function() {
- return {
- currentPositionX: this.props.compProp.startPositionX,
- currentPositionY: this.props.compProp.startPositionY
- }
- },
- setSpriteState: function(a) {
- var b = this.props.compProp;
- var c = this.props.compData;
- switch (b.spriteDirection) {
- case "none":
- break;
- case "horizontal":
- this.setState({
- currentPositionX: b.startPositionX - a * c.width
- });
- break;
- default:
- this.setState({
- currentPositionY: b.startPositionY - a * c.height
- });
- break
- }
- },
- onMouseOver: function() {
- this.setSpriteState(d.Hover);
- if (this.props.onMouseOver) {
- this.props.onMouseOver()
- }
- },
- onMouseDown: function() {
- this.setSpriteState(d.Click)
- },
- onMouseUp: function() {
- this.setSpriteState(d.Hover)
- },
- onMouseOut: function() {
- this.setSpriteState(d.Default);
- if (this.props.onMouseOut) {
- this.props.onMouseOut()
- }
- },
- getSpriteProperties: function(a) {
- var c = {
- backgroundImage: "url(" + a.url + ")",
- backgroundRepeat: "no-repeat",
- backgroundPosition: this.state.currentPositionX + "px " + this.state.currentPositionY + "px",
- width: a.width,
- height: a.height,
- display: "inline-block"
- };
- return {
- "": {
- style: {
- width: a.width,
- height: a.height
- },
- children: b.DOM.span({
- style: c
- }),
- onMouseOver: this.onMouseOver,
- onMouseOut: this.onMouseOut,
- onMouseDown: this.onMouseDown,
- onMouseUp: this.onMouseUp
- }
- }
- },
- getImageProperties: function(a) {
- return {
- "": {
- style: {
- width: a.width,
- height: a.height
- },
- children: b.DOM.img({
- src: a.url,
- width: a.width,
- height: a.height,
- title: a.title
- }),
- onMouseOver: this.props.onMouseOver,
- onMouseOut: this.props.onMouseOut
- }
- }
- },
- getSkinProperties: function() {
- var a = this.props.compData;
- return this.props.compProp.isSprite ? this.getSpriteProperties(a) : this.getImageProperties(a)
- }
- }
- });
- define("components/components/messageView/messageView", ["core"], function(a) {
- "use strict";
- var b = a.compMixins;
- function c() {
- var a = {
- label: "OK",
- id: "ok"
- };
- var b = {
- align: "center"
- };
- var c = "okButton";
- return this.createChildComponent(a, "wysiwyg.viewer.components.SiteButton", c, {
- skinPart: c,
- compProp: b,
- onClick: this.props.compProp.onCloseCallback
- })
- }
- return {
- displayName: "MessageView",
- mixins: [b.skinBasedComp],
- getSkinProperties: function() {
- return {
- "": {
- style: {
- display: "block",
- position: "absolute"
- }
- },
- blockingLayer: {},
- dialog: {},
- title: {
- children: this.props.compProp.title
- },
- description: {
- dangerouslySetInnerHTML: {
- __html: this.props.compProp.description || ""
- }
- },
- okButton: c.call(this)
- }
- }
- }
- });
- define("components/components/bgImageStrip/bgImageStrip", ["core", "utils"], function(a, b) {
- "use strict";
- return {
- displayName: "BgImageStrip",
- mixins: [a.compMixins.skinBasedComp],
- getSkinProperties: function() {
- return {
- bg: {
- style: {},
- "data-type": b.balataConsts.BG_IMAGE
- }
- }
- }
- }
- });
- define("components/components/container/page", ["lodash", "balataCommon", "containerCommon"], function(a, b, c) {
- "use strict";
- var d = c.mixins.containerMixin;
- function e(a) {
- return a.props.siteData.isMobileView()
- }
- function f(a) {
- return a.props.siteData.isMobileDevice()
- }
- function g(a) {
- return e(a) ? "mobile" : "desktop"
- }
- function h(a) {
- return a.props.compProp[g(a)].popup
- }
- function i(b) {
- return a.get(b.props.compData, ["pageBackgrounds", g(b), "ref"])
- }
- function j(a) {
- a.props.siteAPI.closePopupPage()
- }
- function k(c, d, e) {
- var f = {
- onClick: e ? a.partial(j, c) : a.noop,
- style: {
- position: "fixed",
- pointerEvents: "auto"
- },
- compDesign: {
- background: d
- }
- };
- return b.mubalat.createChildBalata(c, f)
- }
- function l(a) {
- var b = h(a);
- return k(a, i(a), b.closeOnOverlayClick)
- }
- return {
- displayName: "WixPage",
- mixins: [d],
- getSkinProperties: function() {
- var a = {
- inlineContent: {
- children: this.props.children
- }
- };
- if (this.props.compData.isPopup) {
- a[""] = {
- style: {
- position: "relative"
- }
- };
- a.bg = l(this);
- a.inlineContent.style = {
- pointerEvents: "none"
- }
- }
- return a
- },
- componentDidMount: function() {
- if (this.props.compData.isPopup && e(this) && f(this)) {
- this.props.siteAPI.getSiteAspect("siteScrollingBlocker").setSiteScrollingBlocked(this, true)
- }
- },
- componentWillUnmount: function() {
- if (this.props.compData.isPopup && e(this) && f(this)) {
- this.props.siteAPI.getSiteAspect("siteScrollingBlocker").setSiteScrollingBlocked(this, false)
- }
- }
- }
- });
- define("components/components/container/popupContainer", ["core", "balataCommon"], function(a, b) {
- "use strict";
- var c = a.compMixins;
- return {
- displayName: "PopupContainer",
- mixins: [c.skinBasedComp],
- forceRedrawOnAnimationEnded: true,
- getDefaultSkinName: function() {
- return "wysiwyg.viewer.skins.stripContainer.DefaultStripContainer"
- },
- getBackground: function() {
- return b.mubalat.createChildBalata(this, {
- compData: {
- id: this.props.compDesign.id
- }
- })
- },
- componentWillMount: function() {
- var a = this.props.siteAPI.getSiteAspect("windowKeyboardEvent");
- if (a) {
- a.registerToEscapeKey(this)
- }
- },
- componentWillUnmount: function() {
- var a = this.props.siteAPI.getSiteAspect("windowKeyboardEvent");
- if (a) {
- a.unRegisterKeys(this)
- }
- this.forceRedrawOnAnimationEnded = false
- },
- onEscapeKey: function() {
- this.props.siteAPI.closePopupPage()
- },
- getSkinProperties: function() {
- return {
- "": {
- style: {
- pointerEvents: "auto"
- }
- },
- background: this.getBackground(),
- inlineContent: {
- children: this.props.children
- }
- }
- }
- }
- });
- define("components/components/container/stripContainer", ["core", "balataCommon", "backgroundCommon"], function(a, b, c) {
- "use strict";
- var d = a.compMixins;
- return {
- displayName: "StripContainer",
- mixins: [d.skinBasedComp, c.mixins.backgroundDetectionMixin],
- getDefaultSkinName: function() {
- return "wysiwyg.viewer.skins.stripContainer.DefaultStripContainer"
- },
- getBackground: function() {
- return b.mubalat.createChildBalata(this)
- },
- getSkinProperties: function() {
- return {
- "": {
- onClick: this.props.onClick
- },
- background: this.getBackground(),
- inlineContent: {
- children: this.props.children
- }
- }
- }
- }
- });
- define("components/components/container/stripColumnsContainer", ["react", "lodash", "core", "balataCommon", "backgroundCommon"], function(a, b, c, d, e) {
- "use strict";
- var f = c.compMixins;
- function g() {
- var c = b.sum(a.Children.map(this.props.children, function(a) {
- return a.props.structure.layout.width
- }));
- var d = a.Children.map(this.props.children, function(a) {
- return Math.round(a.props.structure.layout.width / c * 100) / 100
- });
- var e = b.sum(d);
- d[0] += 1 - e;
- return d
- }
- function h() {
- var b = this.props.compProp.rowMargin;
- var c = a.Children.map(this.props.children, function(c) {
- var d = {
- position: "absolute",
- top: b,
- height: c.props.style.height,
- left: 0,
- width: 320
- };
- b += d.height + this.props.compProp.columnsMargin;
- var e = {
- position: "absolute",
- overflow: "hidden",
- width: 320,
- left: 0,
- top: 0,
- bottom: 0
- };
- c = a.cloneElement(c, {
- rootStyle: d,
- bgStyle: e
- });
- return c
- }, this);
- var e = b - this.props.compProp.columnsMargin + this.props.compProp.rowMargin;
- return {
- "": {
- style: {
- height: e
- }
- },
- background: d.mubalat.createChildBalata(this),
- inlineContent: {
- children: c
- }
- }
- }
- return {
- displayName: "StripColumnsContainer",
- mixins: [f.skinBasedComp, e.mixins.backgroundDetectionMixin],
- componentDidLayout: function() {
- var a = this.getScrollBarWidth();
- var b = this.getScreenWidth();
- var c = this.lastScrollBarWidth !== a;
- var d = this.lastScreenWidth !== b;
- var e = this.props.siteData.isMobileView();
- if (!e && (c || d)) {
- this.lastScrollBarWidth = a;
- this.lastScreenWidth = b;
- this.registerReLayout();
- this.forceUpdate()
- }
- },
- getDefaultSkinName: function() {
- return "wysiwyg.viewer.skins.stripContainer.DefaultStripContainer"
- },
- getDesktopBackground: function(a, b) {
- return d.mubalat.createChildBalata(this, {
- style: {
- top: 0,
- bottom: 0,
- left: "calc(" + parseInt(b / 2, 10) + "px - (" + a + " / 2))",
- right: "calc(" + parseInt(b / 2, 10) + "px + (" + a + " / 2))",
- width: "calc(" + a + ")"
- }
- })
- },
- getScrollBarWidth: function() {
- var a = this.props.siteData;
- var c = a.measureMap;
- var d = a.browser.firefox;
- return d ? 0 : b.get(c, "innerWidth.screen", 0) - b.get(c, "clientWidth", 0)
- },
- getPageWidth: function() {
- return this.props.siteData.getSiteWidth()
- },
- getScreenWidth: function() {
- return this.props.siteData.getScreenWidth()
- },
- getSkinProperties: function() {
- if (this.props.siteData.isMobileView()) {
- return h.call(this)
- }
- var c = this.getPageWidth();
- var d = this.getScreenWidth();
- this.lastScreenWidth = d;
- var e = g.call(this);
- var f = e.length;
- var i = this.props.compProp;
- var j = c - i.columnsMargin * (f - 1) - i.frameMargin * 2;
- var k = b.map(e, function(a) {
- return Math.floor(j * a)
- });
- var l = b.reduce(e, function(a, b) {
- a.push(a[a.length - 1] + b);
- return a
- }, [0]);
- var m, n, o;
- var p = this.getScrollBarWidth();
- this.lastScrollBarWidth = p;
- var q = d && d <= c;
- if (i.fullWidth && !q) {
- n = "(100vw - " + p + "px - " + i.siteMargin * 2 + "px)";
- m = "(100vw - " + p + "px - " + (i.columnsMargin * (f - 1) + (i.siteMargin + i.frameMargin) * 2) + "px)";
- o = "(" + c + "px - " + n + ") / 2 + " + i.frameMargin + "px + "
- } else {
- n = c + "px";
- m = "(" + (c - (i.columnsMargin * (f - 1) + i.frameMargin * 2)) + "px)";
- o = i.frameMargin + "px + "
- }
- var r = a.Children.map(this.props.children, function(b, c) {
- var d = e[c];
- var f = b.props.compProp.alignment / 100;
- var g = {
- position: "absolute",
- left: "calc(" + m + " * " + (l[c] + d * f) + " + " + o + (c * i.columnsMargin - k[c] * f) + "px)",
- width: k[c],
- top: i.rowMargin,
- height: b.props.style.height
- };
- var h = {
- position: "absolute",
- width: "calc(" + m + " * " + d + " + 1px)",
- left: "calc((" + m + " * " + d + " - " + k[c] + "px) * " + -f + " - 1px)",
- top: 0,
- bottom: 0
- };
- var j = {
- position: "absolute",
- width: k[c],
- top: 0,
- bottom: 0,
- left: "calc((100% - " + k[c] + "px) * " + f + ")"
- };
- b = a.cloneElement(b, {
- rootStyle: g,
- bgStyle: h,
- inlineStyle: j
- });
- return b
- }, this);
- var s = {
- background: this.getDesktopBackground(n, c),
- inlineContent: {
- children: r
- }
- };
- s[""] = {};
- return s
- }
- }
- });
- define("components/components/colorOption/colorOption", ["core", "lodash"], function(a, b) {
- "use strict";
- var c = a.compMixins;
- return {
- displayName: "ColorOption",
- mixins: [c.optionInput],
- getSkinProperties: function() {
- var a = {
- "": {
- style: {
- backgroundColor: this.props.compData.text
- }
- },
- tooltip: this.createInfoTipChildComponent()
- };
- if (!this.props.compData.disabled) {
- a[""] = b.merge(a[""], {
- onClick: this.props.onClick,
- onMouseEnter: this.onMouseEnter,
- onMouseLeave: this.onMouseLeave
- })
- }
- return a
- }
- }
- });
- define("components/components/mobileColorOption/mobileColorOption", ["core"], function(a) {
- "use strict";
- var b = a.compMixins;
- return {
- displayName: "MobileColorOption",
- mixins: [b.optionInput],
- getSkinProperties: function() {
- var a = {
- "": {
- style: {
- backgroundColor: this.props.compData.text
- }
- }
- };
- if (!this.props.compData.disabled) {
- a[""].onClick = this.props.onClick;
- a[""].style.cursor = "pointer"
- }
- return a
- }
- }
- });
- define("components/components/dropDownMenu/dropDownMenu", ["lodash", "reactDOM", "utils", "core", "zepto"], function(a, b, c, d, e) {
- "use strict";
- var f = d.compMixins;
- var g = c.menuUtils;
- function h(a) {
- return !isNaN(parseFloat(a)) && isFinite(a)
- }
- function i(b) {
- return a.filter(b, "isVisible")
- }
- function j(a, b, d) {
- return a ? "100%" : c.style.unitize(b - d.menuBorderY - d.labelPad - d.ribbonExtra - d.ribbonEls - d.menuBtnBorder)
- }
- function k(b, c, d) {
- var e = a.cloneDeep(b);
- if (!c || !c.custom[d]) {
- return e
- }
- var f = c.custom[d].isMoreShown;
- var g = c.custom[d].realWidths;
- if (!f) {
- return e
- }
- var h = g.indexOf(0);
- e = e.splice(h);
- return e
- }
- function l(b, c, d, e, f, g, h, i, j, k) {
- var l = d.concat("__more__");
- var n = c.custom[b];
- var o = n.realWidths;
- var p = n.menuItemContainerExtraPixels;
- var q = c.width[b];
- var r = a.findIndex(l, function(a) {
- return a === e
- });
- if (r >= 0 && o) {
- var s = Math.abs(k.getSiteX());
- var t = s + c.absoluteLeft[b];
- var u = t + q;
- var v = m(p, h, j, q, f, i, t, u, c.clientWidth);
- return {
- left: v.moreContainerLeft,
- right: v.moreContainerRight,
- bottom: n.needToOpenMenuUp ? g + "px" : "auto"
- }
- }
- }
- function m(a, c, d, e, f, g, h, i, j) {
- var k = "0px";
- var l = "auto";
- var m = b.findDOMNode(g);
- var n = g.refs.hitArea ? b.findDOMNode(g.refs.hitArea) : null;
- var o = m.offsetLeft + (n ? n.offsetLeft : 0);
- var p = n && n.offsetWidth || m.offsetWidth;
- if (c === "left") {
- if (f === "left") {
- k = 0
- } else {
- k = o + a.left + "px"
- }
- } else if (c === "right") {
- if (f === "right") {
- l = 0
- } else {
- l = e - o - p - a.right + "px"
- }
- k = "auto"
- } else if (f === "left") {
- k = o + (p + a.left - d) / 2 + "px"
- } else if (f === "right") {
- k = "auto";
- l = (p + a.right - (d + a.width)) / 2 + "px"
- } else {
- k = a.left + o + (p - (d + a.width)) / 2 + "px"
- }
- if (k !== "auto") {
- var q = h + parseInt(k, 10);
- k = q < 0 ? 0 : k
- }
- if (l !== "auto") {
- var r = i - parseInt(l, 10);
- l = r > j ? 0 : l
- }
- return {
- moreContainerLeft: k,
- moreContainerRight: l
- }
- }
- function n(a, b) {
- if (a.childElementCount > 0) {
- var c = e(a.firstChild).find("p");
- if (c) {
- var d = parseInt(window.getComputedStyle(c[0]).lineHeight, 10);
- return d + 15 + b.menuBorderY + b.labelPad + b.menuBtnBorder
- }
- }
- return 0
- }
- function o(a, b, c, d, e, f) {
- if (f === a.length - 1) {
- if (a.length === 1) {
- return "dropLonely"
- }
- if (b) {
- return "bottom"
- }
- if (!c && d !== "right") {
- return "center"
- }
- return e ? "left" : "right"
- }
- if (f === 0) {
- if (b) {
- return "top"
- }
- if (!c && d !== "left") {
- return "center"
- }
- return e ? "right" : "left"
- }
- return b ? "dropCenter" : "center"
- }
- function p(b, d, e) {
- var f = b.getCurrentUrlPageId();
- var h = b.getCurrentPopupId();
- var i = a.some(d, "link.pageId.id", h);
- var j;
- var k = {
- AnchorLink: function(b) {
- return (a.has(b.anchorDataId, "id") ? b.anchorDataId.id : b.anchorDataId) === j
- },
- PageLink: function(a) {
- if (!j) {
- if (a.pageId.isPopup) {
- return a.pageId.id === h
- } else if (!i) {
- return a.pageId.id === f
- }
- }
- return false
- }
- };
- if (g.shouldHighlightAnchorInPage(b)) {
- j = c.menuUtils.getActiveAnchorInPage(e, d, b)
- }
- return function(a) {
- var b = a && k[a.type];
- return b ? b(a) : false
- }
- }
- function q(b, c, d, e, f, g, h) {
- return a.map(c, function(a, i) {
- var j = a.link;
- var k = p(g, c, b);
- return {
- isContainer: Boolean(d),
- isSelected: k(j),
- positionInList: o(c, d, e, f, h, i)
- }
- })
- }
- return {
- displayName: "DropDownMenu",
- mixins: [f.skinBasedComp, f.timeoutsMixin, f.skinInfo],
- getInitialState: function() {
- this.shouldChildrenUpdate = false;
- return {
- hover: null,
- hoverListPosition: null,
- activeAnchor: null,
- $dropAlign: this.props.compProp.alignButtons,
- $mobile: this.props.siteData.isMobileDevice() || this.props.siteData.isMobileView() || this.props.siteData.isTabletDevice() ? "mobile" : "notMobile"
- }
- },
- componentDidMount: function() {
- if (g.shouldHighlightAnchorInPage(this.props.siteData)) {
- var a = this.props.siteAPI;
- a.getSiteAspect("anchorChangeEvent").registerToAnchorChange(this)
- }
- },
- componentDidUpdate: function() {
- var a = b.findDOMNode(this.refs.moreContainer);
- var c = g.nonHiddenPageIdsFromMainMenu(this.props.siteData);
- var d = c.indexOf(this.state.hover);
- var f = this.props.siteData.measureMap;
- if (h(this.state.hover) || this.state.hover === "__more__") {
- if (!f || !f.custom[this.props.id]) {
- return
- }
- var i = f.custom[this.props.id].realWidths;
- if (!i) {
- return
- }
- var j = e(a);
- var k = j.children();
- var m = k.find("p");
- m.css({
- "line-height": "100%"
- });
- k.css({
- "min-width": "0px"
- });
- var o = this.refs[this.state.hover];
- var p = o.refs.hitArea ? b.findDOMNode(o.refs.hitArea) : null;
- var q = p ? p.offsetLeft : 0;
- var r;
- if (d !== -1) {
- r = i[d]
- } else {
- r = i[i.length - 1]
- }
- r -= q;
- var s = Math.max(a.offsetWidth, r);
- var t = l(this.props.id, f, c, this.state.hover, this.state.hoverListPosition, this.props.style.height, this.props.compProp.alignButtons, o, s, this.props.siteData);
- var u = n(a, this.getParamsFromSkins());
- j.css({
- left: t.left,
- right: t.right
- });
- j.parent().css({
- left: t.left,
- right: t.right,
- bottom: t.bottom
- });
- k.css({
- "min-width": s + "px"
- });
- m.css({
- "line-height": u + "px"
- })
- }
- },
- componentWillUnmount: function() {
- if (g.shouldHighlightAnchorInPage(this.props.siteData)) {
- this.props.siteAPI.getSiteAspect("anchorChangeEvent").unregisterToAnchorChange(this)
- }
- },
- convertItemsToChildren: function(b, c, d, e, f) {
- var g = i(b);
- c = c || {};
- c.style = c.style || {};
- var h = q(this.props.siteAPI, g, e, this.props.compProp.stretchButtonsToMenuWidth, this.props.compProp.alignButtons, this.props.siteData, this.props.compProp.rtl);
- return a.map(g, function(b, g) {
- var i = (e ? this.state.hover : "") + (c.prefix || "") + g;
- return this.createChildComponent(b, "core.components.MenuButton", "repeaterButton", a.merge({
- isContainer: h[g].isContainer,
- isSelected: h[g].isSelected,
- positionInList: h[g].positionInList,
- id: this.props.id + i,
- ref: i,
- key: b.id,
- refInParent: i,
- lineHeight: j(d, this.props.style.height, f),
- mouseEnterHandler: this.mouseEnterHandler,
- mouseLeaveHandler: this.mouseLeaveHandler,
- isDropDownButton: e,
- onMouseClick: this.onMouseClick,
- menuBtnPageId: b.link && b.link.type === "PageLink" && b.link.pageId ? b.link.pageId.id : ""
- }, c))
- }, this)
- },
- onMouseClick: function(a, b, c) {
- var d = i(g.getSiteMenuWithRender(this.props.siteData, false, this.props.rootNavigationInfo));
- if (!c) {
- var e = [];
- if (b !== "__more__") {
- var f = d[b].items;
- e = i(f)
- }
- var h = e.length > 0 || b === "__more__";
- var j = this.state.hover;
- if (!this.dropDownOpen && h) {
- this.mouseEnterHandler(b);
- a.preventDefault();
- a.stopPropagation()
- } else if (this.dropDownOpen && !this.isDropdownOwner(b, j) && h) {
- this.mouseLeaveHandler();
- a.preventDefault();
- a.stopPropagation();
- this.mouseEnterHandler(b)
- } else if (this.dropDownOpen) {
- this.mouseLeaveHandler()
- }
- } else {
- this.mouseLeaveHandler()
- }
- },
- onAnchorChange: function(a) {
- if (a !== this.state.activeAnchor) {
- this.setState({
- activeAnchor: a
- })
- }
- },
- isDropdownOwner: function(a, b) {
- return a === b
- },
- createMoreButton: function(a, b) {
- var c = "__more__";
- var d = b ? "left" : "right";
- var e = this.props.compProp.alignButtons;
- var f = this.props.compProp.stretchButtonsToMenuWidth;
- if (!f && e !== "right") {
- d = "center"
- }
- return this.createChildComponent({
- id: c,
- label: this.props.compProp.moreButtonLabel
- }, "core.components.MenuButton", "repeaterButton", {
- isSelected: false,
- positionInList: d,
- id: this.props.id + c,
- ref: c,
- key: c,
- lineHeight: j(false, this.props.style.height, a),
- mouseEnterHandler: this.mouseEnterHandler,
- mouseLeaveHandler: this.mouseLeaveHandler,
- onMouseClick: this.onMouseClick,
- isDropDownButton: false,
- menuBtnPageId: "",
- display: "inline-block"
- })
- },
- mouseEnterHandler: function(a, b) {
- this.hovering = true;
- this.lastHovered = this.getCurrentTime();
- var d = a.replace(this.props.id, "");
- var e = g.nonHiddenPageIdsFromMainMenu(this.props.siteData).concat("__more__");
- var f = e.indexOf(d);
- if (f !== -1 && (h(d) || c.stringUtils.startsWith(a, "__")) && a !== this.state.hover) {
- if (this.state.hover) {
- this.refs[this.state.hover].setIdleState()
- }
- this.registerReLayout();
- this.setState({
- hover: a,
- hoverListPosition: b
- })
- }
- },
- getCurrentTime: function() {
- return Date.now()
- },
- mouseLeaveHandler: function() {
- this.hovering = false;
- this.lastHovered = this.getCurrentTime();
- if (!this.dropDownOpen && this.state.hover) {
- this.refs[this.state.hover].setIdleState()
- }
- this.setTimeout(function() {
- var a = this.getCurrentTime() - this.lastHovered;
- if (!this.hovering && this.state.hover && a >= 1e3) {
- this.refs[this.state.hover].setIdleState();
- this.dropDownOpen = false;
- this.setState({
- hover: null,
- hoverListPosition: null
- })
- }
- }.bind(this), 1e3)
- },
- getParamsFromSkins: function() {
- return {
- menuBorderY: this.getSumParamValue("menuTotalBordersY", this.props.skin),
- menuBtnBorder: this.getSumParamValue("menuButtonBorders", this.getSkinExports().repeaterButton.skin),
- ribbonEls: this.getParamFromDefaultSkin("ribbonEls").value ? parseInt(this.getParamFromDefaultSkin("ribbonEls").value, 10) : 0,
- labelPad: this.getFromExports("labelPad"),
- ribbonExtra: this.getFromExports("ribbonExtra") ? Math.abs(parseInt(this.getFromExports("ribbonExtra"), 10)) : 0
- }
- },
- getSkinProperties: function() {
- var a = i(g.getSiteMenuWithRender(this.props.siteData, false, this.props.rootNavigationInfo));
- var b = this.getParamsFromSkins();
- var c = this.convertItemsToChildren(a, {
- display: "inherit"
- }, null, null, b);
- var d = [];
- var e = "hidden";
- c.push(this.createMoreButton(b, this.props.compProp.rtl));
- if (this.props.compProp.rtl) {
- c.reverse()
- }
- if (h(this.state.hover) || this.state.hover === "__more__") {
- var f = this.props.siteData.measureMap;
- d = this.convertItemsToChildren(h(this.state.hover) ? a[this.state.hover].items : k(a, f, this.props.id), {
- style: {
- width: "100%"
- },
- display: "block",
- prefix: "_",
- subMenu: true
- }, true, true, b);
- if (d.length > 0) {
- e = "inherit";
- this.dropDownOpen = true
- }
- }
- return {
- "": {
- id: this.props.id,
- key: this.props.refInParent,
- ref: this.props.refInParent,
- "data-menuborder-y": b.menuBorderY,
- "data-menubtn-border": b.menuBtnBorder,
- "data-ribbon-els": b.ribbonEls,
- "data-label-pad": b.labelPad,
- "data-ribbon-extra": b.ribbonExtra
- },
- itemsContainer: {
- children: c,
- style: {
- height: this.props.style.height - b.menuBorderY - b.ribbonExtra - b.ribbonEls,
- display: "inline-block",
- textAlign: this.props.compProp.alignButtons,
- overflow: "visible"
- }
- },
- back: {
- style: {
- height: this.props.style.height - b.menuBorderY - b.labelPad
- }
- },
- moreContainer: {
- children: d,
- "data-hover": this.state.hover,
- style: {
- visibility: e
- }
- },
- dropWrapper: {
- style: {
- visibility: e
- },
- "data-drophposition": this.state.hover ? this.state.hoverListPosition : "",
- "data-dropalign": this.props.compProp.alignButtons
- }
- }
- }
- }
- });
- define("components/components/facebookShare/facebookShare", ["lodash", "react", "core", "socialCommon"], function(a, b, c, d) {
- "use strict";
- var e = c.compMixins;
- return {
- displayName: "FacebookShare",
- mixins: [e.skinBasedComp, d.socialCompMixin],
- getUrlToBeShared: function() {
- var a = this.props.compData.urlChoice.toLowerCase() === "site";
- var b = this.getSocialUrl(a);
- return encodeURIComponent(b)
- },
- getFacebookSharer: function() {
- return "http://www.facebook.com/sharer.php?u="
- },
- openSharePopup: function() {
- var a = "wix_share_to_facebook";
- var b = "width = 635, height = 346, scrollbars = no, status = no, toolbar = no, menubar = no, location = no";
- this.props.siteAPI.openPopup(this.getFacebookSharer() + this.getUrlToBeShared(), a, b)
- },
- getSkinProperties: function() {
- var a = this.props.siteData.measureMap;
- return {
- "": {
- style: {
- height: a && a.height[this.props.id] ? a.height[this.props.id] : this.props.style.height,
- width: a && a.width[this.props.id] ? a.width[this.props.id] : this.props.style.width
- }
- },
- facebookShareButton: {
- parentConst: b.DOM.a,
- onClick: this.openSharePopup
- },
- label: {
- children: [this.props.compData.label]
- },
- shareButton: {},
- icon: {}
- }
- }
- }
- });
- define("components/components/ebayItemsBySeller/ebayItemsBySeller", ["react", "reactDOM", "core", "utils"], function(a, b, c, d) {
- "use strict";
- var e = c.compMixins;
- var f = d.urlUtils;
- var g = {
- Australia: "15",
- Austria: "16",
- Belgium_Dutch: "123",
- Belgium_French: "23",
- Canada: "2",
- CanadaFrench: "210",
- China: "223",
- eBayMotors: "100",
- France: "71",
- Germany: "77",
- HongKong: "201",
- India: "203",
- Ireland: "205",
- Italy: "101",
- Malaysia: "207",
- Netherlands: "146",
- Philippines: "211",
- Poland: "212",
- Singapore: "216",
- Spain: "186",
- Sweden: "218",
- Switzerland: "193",
- Taiwan: "196",
- UK: "3",
- US: "0"
- };
- var h = {
- EKServer: "",
- ai: "aj|kvpqvqlvxwkl",
- cid: "0",
- eksize: "1",
- encode: "UTF-8",
- endcolor: "FF0000",
- endtime: "y",
- fbgcolor: "FFFFFF",
- fs: "0",
- hdrsrch: "n",
- img: "y",
- logo: "6",
- numbid: "n",
- paypal: "n",
- popup: "y",
- prvd: "9",
- r0: "3",
- shipcost: "y",
- sort: "MetaEndSort",
- sortby: "endtime",
- sortdir: "asc",
- srchdesc: "n",
- title: "",
- tlecolor: "FFFFFF",
- tlefs: "0",
- tlfcolor: "000000",
- toolid: "10004",
- track: "5335838312"
- };
- return {
- displayName: "EbayItemsBySeller",
- mixins: [e.skinBasedComp, e.skinInfo],
- getScriptUrl: function() {
- var a = "http://lapi.ebay.com/ws/eBayISAPI.dll",
- b = this._prepareOptions();
- return a + "?" + f.toQueryString(h) + "&" + f.toQueryString(b)
- },
- getSkinProperties: function() {
- var b, c = this.props.structure.layout,
- d = this.props.siteData.getBrowser().ie,
- e;
- if (!d) {
- e = 'data:text/html,<html><body style="margin:0px;"><div><script src="' + this.getScriptUrl() + '"></script></div></body></html>'
- }
- if (this.props.compData.sellerId) {
- b = a.DOM.iframe({
- src: d ? "" : encodeURI(e),
- style: {
- width: c.width,
- height: c.height
- }
- })
- }
- return {
- iFrameHolder: {
- children: this.props.compData.sellerId ? [b] : []
- }
- }
- },
- getInitialState: function() {
- return {
- $contentState: this.props.compData.sellerId ? "hasContent" : "noContent"
- }
- },
- componentDidMount: function() {
- if (!this.props.compData.sellerId) {
- return
- }
- var a = this.props.siteData.getBrowser();
- if (a.ie) {
- var c = b.findDOMNode(this).querySelector("iframe"),
- d;
- if (parseInt(a.version, 10) === 10) {
- c.src = "javascript:(function () {" + "document.open();document.domain='" + encodeURIComponent(window.document.domain) + "';document.close()" + "})();"
- }
- d = c.contentWindow.document;
- d.write('<html><body style="margin:0px;"><div><script type="text/javascript" src="' + this.getScriptUrl() + '"></script></div></body></html>')
- }
- },
- _prepareOptions: function() {
- var a = this.props.structure.layout;
- var b = Math.floor((a.height - 100) / 70);
- var c = this.props.compData.sellerId;
- return {
- width: a.width,
- hdrimage: this.props.compProp.headerImage,
- fntcolor: this.getParamFromDefaultSkin("fontColor").value.hexString().replace("#", ""),
- bdrcolor: this.getParamFromDefaultSkin("borderColor").value.hexString().replace("#", ""),
- hdrcolor: this.getParamFromDefaultSkin("headerColor").value.hexString().replace("#", ""),
- tbgcolor: this.getParamFromDefaultSkin("backgroundColor").value.hexString().replace("#", ""),
- lnkcolor: this.getParamFromDefaultSkin("linkColor").value.hexString().replace("#", ""),
- num: b,
- si: c,
- sid: c,
- siteid: g[this.props.compData.registrationSite] || 0
- }
- }
- }
- });
- define("components/components/icon/icon", ["lodash", "core", "react"], function(a, b, c) {
- "use strict";
- var d = b.compMixins;
- return {
- displayName: "Icon",
- mixins: [d.skinBasedComp],
- getInitialState: function() {
- return {
- isIconClicked: false
- }
- },
- onClick: function() {
- this.setState({
- isIconClicked: !this.state.isIconClicked
- })
- },
- getSkinProperties: function() {
- var b = this.props.compData;
- var d = {
- img: {
- parentConst: c.DOM.img,
- src: b.url,
- title: b.title,
- width: b.width,
- height: b.height,
- onClick: this.onClick
- }
- };
- d[""] = {
- style: a.merge(this.props.style, {
- width: b.width,
- height: b.height
- })
- };
- return d
- }
- }
- });
- define("components/components/flickrBadgeWidget/flickrBadgeWidget", ["core", "utils"], function(a, b) {
- "use strict";
- var c = a.compMixins,
- d = b.urlUtils;
- return {
- displayName: "FlickrBadgeWidget",
- mixins: [c.skinBasedComp],
- 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.compId === this.props.id) {
- this.registerReLayout();
- this.setState(a.data.size)
- }
- },
- getFlickSrc: function() {
- var a = this.props.compData,
- c = {
- imageCount: a.imageCount,
- whichImages: a.whichImages,
- imageSize: a.imageSize,
- layoutOrientation: a.layoutOrientation,
- userId: a.userId,
- tag: a.tag,
- origin: b.urlUtils.origin(),
- compId: this.props.id
- };
- return this.props.siteData.santaBase + "/static/external/flickrBadgeWidget.html?" + d.toQueryString(c)
- },
- getSkinProperties: function() {
- return {
- "": {
- style: {
- width: this.state.width,
- height: this.state.height
- }
- },
- iframe: {
- src: this.getFlickSrc(),
- height: this.state.height,
- width: this.state.width
- },
- overlayClick: {
- href: "http://www.flickr.com/photos/" + this.props.compData.userId + "/",
- target: "_blank"
- }
- }
- }
- }
- });
- define("components/components/mediaZoom/svgShapesData", [], function() {
- "use strict";
- return {
- buttonClose: {
- svg: {
- viewBox: "0 0 180 180",
- className: "svgButtonClose"
- },
- content: '<path d="M5 5 L175 175 M175 5 L5 175"/>'
- },
- buttonPrevious: {
- svg: {
- viewBox: "0 0 180 310",
- className: "svgNavButton"
- },
- content: '<path d="M170 10 L10 161 M10 150 L170 300"/>'
- },
- buttonNext: {
- svg: {
- viewBox: "0 0 180 310",
- className: "svgNavButton"
- },
- content: '<path d="M10 10 L170 161 M170 150 L10 300"/>'
- }
- }
- });
- define("components/components/mediaZoom/mediaZoom", ["zepto", "react", "lodash", "core", "components/components/mediaZoom/svgShapesData", "reactDOM", "experiment"], function(a, b, c, d, e, f, g) {
- "use strict";
- var h = d.compMixins;
- var i = {
- width: 240,
- height: 60
- };
- var j = {
- width: 0,
- height: 0
- };
- function k(a) {
- return a && !a.target.href
- }
- return {
- displayName: "MediaZoom",
- mixins: [h.skinBasedComp, h.animationsMixin, h.skinInfo, d.compMixins.galleryImageExpandedActionMixin],
- getSvg: function(a) {
- var d = e[a];
- var f = c.clone(d.svg);
- var g = this.props.styleId + "_";
- c.assign(f, {
- className: g + d.svg.className,
- dangerouslySetInnerHTML: {
- __html: d.content
- }
- });
- return b.DOM.svg(f)
- },
- getInitialState: function() {
- this.isAnimating = false;
- this.shouldUpdateSizeOnLayout = true;
- var a = "desktop";
- if (this.props.siteData.isMobileDevice()) {
- a = "mobile"
- } else if (this.props.siteData.isTabletDevice()) {
- a = "tablet"
- }
- return c.assign({
- $buttonsState: "showButtons",
- $device: a
- }, this.props.getPrevAndNextStateFunc())
- },
- componentWillReceiveProps: function(a) {
- if (!this.props.siteData.renderFlags.isZoomAllowed) {
- setTimeout(this.closeMediaZoom, 0);
- return
- }
- var b = this.props.isDataChangedFunc(this.props, a);
- this.shouldUpdateSizeOnLayout = b;
- if (b) {
- this.setState(this.props.getPrevAndNextStateFunc())
- }
- },
- getSkinProperties: function() {
- var a = !!this.state.next;
- var b = a ? {} : {
- display: "none"
- };
- var c = this.props.siteData.isMobileDevice() || this.props.siteData.isTabletDevice() ? j : i;
- var d = this.props.getChildCompFunc({
- toggleButtons: this.toggleButtons,
- goToNextItem: this.clickOnNextButton,
- goToPrevItem: this.clickOnPreviousButton
- }, c);
- var e = {
- "": {
- "data-width-spacer": c.width,
- "data-height-spacer": c.height
- },
- blockingLayer: {
- onClick: this.onBlockingLayerClick
- },
- xButton: {
- onClick: this.closeMediaZoom,
- children: [this.getSvg("buttonClose")]
- },
- dialogBox: {
- onClick: this.handleDialogBoxClick
- },
- itemsContainer: {
- children: d
- },
- buttonPrev: {
- onClick: this.clickOnPreviousButton,
- style: b,
- children: [this.getSvg("buttonPrevious")]
- },
- buttonNext: {
- onClick: this.clickOnNextButton,
- style: b,
- children: [this.getSvg("buttonNext")]
- }
- };
- if (this.props.siteData.isMobileDevice() || this.props.siteData.isTabletDevice()) {
- e.blockingLayer.onSwipeLeft = this.clickOnNextButton;
- e.blockingLayer.onSwipeRight = this.clickOnPreviousButton
- }
- return e
- },
- onBlockingLayerClick: function(a) {
- if (k(a)) {
- this.closeMediaZoom();
- a.preventDefault();
- a.stopPropagation()
- }
- },
- componentDidLayout: function() {
- var b = this.props.getBoxDimensionsFunc();
- var c = {
- width: b.dialogBoxWidth,
- height: b.dialogBoxHeight,
- "margin-top": b.marginTop,
- "margin-left": b.marginLeft,
- padding: b.padding
- };
- var d = {
- width: b.dialogBoxWidth,
- height: b.dialogBoxHeight,
- marginTop: b.marginTop,
- marginLeft: b.marginLeft,
- padding: b.padding
- };
- if (!this.shouldUpdateSizeOnLayout) {
- a(f.findDOMNode(this.refs.dialogBox)).css(c);
- return
- }
- this.shouldUpdateSizeOnLayout = false;
- var e = this;
- var g = this.sequence();
- g.add("dialogBox", "BaseDimensions", .5, 0, {
- to: d
- }).add("itemsContainer", "FadeIn", .5, 0).onCompleteAll(function() {
- e.unBlockNavigation();
- e.handleImageExpandedAction()
- }).execute()
- },
- clickOnNextButton: function(a) {
- this.navigateToOtherPageWithAnimations(this.state.next);
- if (a) {
- a.preventDefault();
- a.stopPropagation()
- }
- },
- clickOnPreviousButton: function(a) {
- this.navigateToOtherPageWithAnimations(this.state.prev);
- if (a) {
- a.preventDefault();
- a.stopPropagation()
- }
- },
- navigateToOtherPageWithAnimations: function(a) {
- if (this.isNavigationBlocked()) {
- return
- }
- var b = this;
- this.blockNavigation();
- this.animate("itemsContainer", "FadeOut", .5, 0, null, {
- onComplete: function() {
- b.props.actualNavigateToItemFunc(a)
- }
- })
- },
- closeMediaZoom: function() {
- if (this.props.closeFunction) {
- this.props.closeFunction()
- } else {
- if (g.isOpen("sv_dpages")) {
- var a = c.omit(this.props.rootNavigationInfo, ["imageZoom", "pageItemId", "title"]);
- this.props.siteAPI.navigateToPage(a);
- return
- }
- this.props.siteAPI.navigateToPage({
- pageId: this.props.rootNavigationInfo.pageId
- })
- }
- },
- handleDialogBoxClick: function(a) {
- if (k(a)) {
- a.preventDefault();
- a.stopPropagation();
- this.props.siteAPI.passClickEvent(a)
- }
- },
- unBlockNavigation: function() {
- this.isAnimating = false
- },
- blockNavigation: function() {
- this.isAnimating = true
- },
- isNavigationBlocked: function() {
- return this.isAnimating
- },
- componentDidMount: function() {
- this.props.siteAPI.enterFullScreenMode()
- },
- componentWillUnmount: function() {
- this.props.siteAPI.exitFullScreenMode()
- },
- toggleButtons: function(a) {
- var b = this.state.$buttonsState === "showButtons" ? "hideButtons" : "showButtons";
- this.setState({
- $buttonsState: b
- });
- if (a) {
- a.preventDefault();
- a.stopPropagation()
- }
- }
- }
- });
- define("components/components/imageZoomDisplayer/imageZoomDisplayer", ["lodash", "core", "utils", "imageClientApi"], function(a, b, c, d) {
- "use strict";
- var e = b.compMixins;
- var f = c.linkRenderer;
- var g = {
- goToLinkText: "Go to link"
- };
- function h(a, b, c, e) {
- var f = {
- id: this.props.id + "image",
- ref: "image",
- key: a.id,
- imageData: a,
- quality: e,
- containerWidth: b.imageContainerWidth,
- containerHeight: b.imageContainerHeight,
- displayMode: d.fittingTypes.LEGACY_FULL,
- onClick: this.props.goToNextItem,
- effectName: this.props.compProp.effectName,
- usePreloader: true
- };
- if (c) {
- f.onClick = this.props.toggleButtons;
- f.onTap = this.props.toggleButtons
- }
- return this.createChildComponent(a, "core.components.Image", "image", f)
- }
- return {
- displayName: "ImageZoomDisplayer",
- mixins: [e.skinBasedComp],
- getInitialState: function() {
- var a = "desktop";
- if (this.props.siteData.isMobileDevice()) {
- a = "mobile"
- } else if (this.props.siteData.isTabletDevice()) {
- a = "tablet"
- }
- return {
- $device: a
- }
- },
- getSkinProperties: function() {
- var a = this.props.compData;
- var b = this.props.compProp;
- var c = this.props.siteData;
- var d = this.props.zoomDimensions;
- var e = this.props.quality;
- var i = {
- title: {
- children: a.title
- },
- description: {
- children: a.description
- },
- image: h.call(this, a, d, c.isMobileDevice() || c.isTabletDevice(), e)
- };
- if (a.link) {
- i.link = f.renderLink(a.link, c, this.props.rootNavigationInfo);
- i.link.children = b && b.goToLinkText ? b.goToLinkText : g.goToLinkText
- }
- return i
- }
- }
- });
- define("components/components/menuButton/menuButton", ["lodash", "react", "utils", "core", "reactDOM"], function(a, b, c, d, e) {
- "use strict";
- var f = d.compMixins;
- function g(a) {
- a = a && a.trim();
- return a || " "
- }
- return {
- displayName: "MenuButton",
- mixins: [f.skinBasedComp, f.skinInfo],
- getInitialState: function() {
- return {
- $container: this.props.isContainer ? "drop" : "menu",
- $selected: this.props.isSelected ? "selected" : "",
- $state: "idle",
- $type: this.props.compData.link ? "link" : "header",
- $mobile: this.props.siteData.isMobileDevice() || this.props.siteData.isMobileView() || this.props.siteData.isTabletDevice() ? "mobile" : "notMobile"
- }
- },
- componentWillReceiveProps: function(a) {
- this.setState({
- $selected: a.isSelected ? "selected" : ""
- })
- },
- getSkinProperties: function() {
- var d = this.props.compData;
- var e = this.props.compProp.alignText;
- var f = {
- parentConst: b.DOM.a,
- style: a.merge(this.props.style || {}, {
- display: this.props.display,
- position: "relative",
- boxSizing: "border-box",
- color: "grey"
- }),
- onClick: this.onMouseClick,
- "data-listposition": this.props.positionInList
- };
- if (this.state.$mobile !== "mobile") {
- a.assign(f, {
- onMouseEnter: this.onMouseEnter,
- onMouseLeave: this.onMouseLeave
- })
- }
- if (d.link) {
- a.merge(f, d.link.render)
- }
- return {
- "": f,
- bg: {
- style: {
- textAlign: e
- }
- },
- label: {
- children: g(d.label),
- dir: this.props.dir,
- style: {
- lineHeight: c.style.unitize(this.props.lineHeight),
- textAlign: e
- }
- }
- }
- },
- onMouseEnter: function() {
- if (this.props.compData.link || this.props.refInParent === "__more__") {
- this.setState({
- $state: "over"
- })
- }
- var a = e.findDOMNode(this);
- this.props.mouseEnterHandler(this.props.refInParent, a.getAttribute("data-listposition"))
- },
- onMouseLeave: function() {
- if (this.props.isDropDownButton) {
- this.setIdleState()
- }
- this.props.mouseLeaveHandler(this.props.refInParent)
- },
- onMouseClick: function(a) {
- if (this.state.$mobile !== "notMobile") {
- this.props.onMouseClick(a, this.props.refInParent, this.props.isDropDownButton)
- }
- },
- setIdleState: function() {
- this.setState({
- $state: "idle"
- })
- }
- }
- });
- define("components/components/numericStepper/numericStepper", ["lodash", "core", "reactDOM"], function(a, b, c) {
- "use strict";
- var d = b.compMixins;
- var e = 0;
- var f = 999;
- function g(a, b, d) {
- if (this.state.currentValue) {
- var e = parseInt(this.state.currentValue, 10) + a;
- var f = c.findDOMNode(this.refs.inputNumberInput);
- b.target = f;
- i.call(this, b, d, this.state.currentValue, String(e))
- }
- }
- function h(a, b, c) {
- c = c || a.target.value;
- if (c) {
- i.call(this, a, b, this.state.currentValue, c)
- } else {
- this.setState({
- currentValue: c,
- previousValue: this.state.currentValue
- })
- }
- }
- function i(a, b, c, d) {
- var e = Number(d);
- var f = Number(c);
- var g = e < this.state.minValue;
- var h = e > this.state.maxValue;
- if (d === "" || isNaN(e)) {
- e = f;
- return
- } else if (g) {
- e = this.state.minValue
- } else if (h) {
- if (this.props.onInputChangedFailed) {
- a.type = "inputChangedFailed";
- a.payload = {
- oldValue: f,
- invalidValue: e,
- maxValue: this.state.maxValue,
- minValue: this.state.minValue
- };
- this.props.onInputChangedFailed(a, b);
- e = this.state.maxValue
- }
- }
- d = String(e);
- if (this.props.onInputChange && e !== f) {
- a.type = "inputChanged";
- a.payload = d;
- this.props.onInputChange(a, b)
- }
- this.setState({
- currentValue: d,
- previousValue: String(f)
- })
- }
- function j(a) {
- return a.key !== "space" && (!a.shiftKey || a.keyCode >= 35 && a.keyCode <= 40) && (a.key.length !== 1 || a.ctrlKey || a.metaKey || a.shiftKey || a.keyCode >= 48 && a.keyCode <= 57 || a.keyCode >= 96 && a.keyCode <= 105)
- }
- function k(a, b) {
- i.call(this, a, b, this.state.previousValue, this.state.currentValue)
- }
- return {
- displayName: "NumericStepper",
- mixins: [d.skinBasedComp],
- getInitialState: function() {
- return this.getState(this.props)
- },
- getState: function(b) {
- return {
- $validation: b.compProp.message ? "invalid" : "valid",
- currentValue: this.props.compData.value,
- previousValue: this.props.compData.value,
- minValue: a.isUndefined(this.props.compProp.minValue) ? e : Number(this.props.compProp.minValue),
- maxValue: a.isUndefined(this.props.compProp.maxValue) ? f : Number(this.props.compProp.maxValue)
- }
- },
- componentWillReceiveProps: function(a) {
- this.setState(this.getState(a))
- },
- getSkinProperties: function() {
- return {
- inputNumberInput: {
- value: this.state.currentValue,
- onChange: h.bind(this),
- onKeyDown: j.bind(this),
- onBlur: k.bind(this)
- },
- plus: {
- onClick: g.bind(this, 1)
- },
- minus: {
- onClick: g.bind(this, -1)
- }
- }
- }
- }
- });
- define("components/components/optionsListInput/optionsListInput", ["lodash", "core", "react"], function(a, b, c) {
- "use strict";
- var d = b.compMixins;
- function e(a, b, c) {
- if (this.props.onSelectionChange) {
- b.type = "selectionChanged";
- b.payload = a;
- this.props.onSelectionChange(b, c)
- }
- }
- return {
- displayName: "OptionsListInput",
- mixins: [d.skinBasedComp],
- propType: {
- itemClassName: c.PropTypes.string.isRequired,
- itemSkin: c.PropTypes.string.isRequired,
- selectedItem: c.PropTypes.object,
- valid: c.PropTypes.boolean,
- onSelectionChange: c.PropTypes.function
- },
- getInitialState: function() {
- return this.getCssState(this.props)
- },
- getCssState: function(a) {
- return {
- $validity: a.valid === false ? "invalid" : "valid"
- }
- },
- componentWillReceiveProps: function(a) {
- if (a.valid !== this.props.valid) {
- this.setState(this.getCssState(a))
- }
- },
- getSkinProperties: function() {
- var b = a.map(this.props.compData.options, function(a, b) {
- var c = {
- selected: this.props.selectedItem === a,
- onClick: e.bind(this, a),
- id: this.props.id + b,
- ref: b
- };
- return this.createChildComponent(a, this.props.itemClassName, {
- skin: this.props.itemSkin,
- styleId: this.props.loadedStyles[this.props.itemSkin]
- }, c)
- }, this);
- return {
- "": {
- children: b
- }
- }
- }
- }
- });
- define("components/components/selectOptionsList/selectOptionsList", ["lodash", "core", "react"], function(a, b, c) {
- "use strict";
- var d = b.compMixins;
- function e(a, b, c) {
- if (this.props.onSelectionChange) {
- b.type = "selectionChanged";
- b.payload = a;
- this.props.onSelectionChange(b, c)
- }
- }
- return {
- displayName: "SelectOptionsList",
- mixins: [d.skinBasedComp, d.timeoutsMixin],
- propType: {
- itemClassName: c.PropTypes.string.isRequired,
- itemSkin: c.PropTypes.string.isRequired,
- selectedItem: c.PropTypes.object,
- valid: c.PropTypes.boolean,
- onSelectionChange: c.PropTypes.function
- },
- getInitialState: function() {
- return {
- $validity: this.props.valid === false ? "invalid" : "valid",
- $tooltip: this.props.selectedItem && this.props.selectedItem.description ? "displayed" : "hidden"
- }
- },
- componentWillMount: function() {
- if (this.state.$tooltip === "displayed") {
- var a = this;
- this.setTimeout(function() {
- a.setState({
- $tooltip: "hidden"
- })
- }, 1500)
- }
- },
- componentWillReceiveProps: function(a) {
- var b = this.props;
- var c = {
- $validity: a.valid === false ? "invalid" : "valid"
- };
- if (!b.selectedItem || b.selectedItem && a.selectedItem && b.selectedItem.description !== a.selectedItem.description) {
- c.$tooltip = a.selectedItem && a.selectedItem.description ? "displayed" : "hidden"
- }
- this.setState(c);
- if (this.props.selectedItem !== a.selectedItem && c.$tooltip === "displayed") {
- var d = this;
- this.setTimeout(function() {
- d.setState({
- $tooltip: "hidden"
- })
- }, 1500)
- }
- },
- getSkinProperties: function() {
- var b = a.map(this.props.compData.options, function(a, b) {
- var c = {
- selected: this.props.selectedItem === a,
- onClick: e.bind(this, a),
- ref: b
- };
- return this.createChildComponent(a, this.props.itemClassName, {
- skin: this.props.itemSkin,
- styleId: this.props.loadedStyles[this.props.itemSkin]
- }, c)
- }, this);
- var c = {
- itemsContainer: {
- children: b
- }
- };
- if (this.props.selectedItem) {
- c.tooltip = {
- children: [this.props.selectedItem.description]
- }
- }
- return c
- }
- }
- });
- define("components/components/dialogs/translations/dialogMixinTranslations", [], {
- de: {
- SMResetPass_Reset_Succ: "Sie haben Ihr Passwort erfolgreich zurückgesetzt.",
- SMForm_Password: "Passwort",
- SMLogin_Remember_Me: "Angemeldet bleiben",
- PasswordLogin_Password: "Passwort",
- SMForm_Error_Password_Blank: "Passwort kann nicht leer sein.",
- SMRegister_Login: "Anmelden",
- SMForm_Error_19999: "Unbekannter Nutzer",
- SMForm_Error_19958: "Ihre Anfrage auf Mitgliedschaft wartet auf Bestätigung vom Betreiber der Website.",
- SMResetPass_Retype_Password: "Erneut eingeben:",
- SMForm_Error_Password_Length: "Passwortlänge muss zwischen {0} und {1} sein.",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Zurück zur Anmeldung",
- dialogMixinTranslations_forgot_password_mobile: "Passwort vergessen?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Ihr Passwort wurde geändert.",
- dialogMixinTranslations_login_google: "Mit Google+ anmelden",
- SMForm_Error_19995: "Diese E-Mail-Adresse existiert bereits.",
- SMResetPassMail_confirmation_title: "Bitte prüfen Sie Ihren Posteingang.",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Passwort erneut eingeben",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Neues Passwort eingeben",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Bitte geben Sie das Passwort unten ein",
- SMLogin_OR: "Oder",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Bitte überprüfen Sie Ihren Posteingang",
- SMRegister_sign_up: "Registrieren",
- dialogMixinTranslations_signup_facebook: "Mit Facebook registrieren",
- SMForm_Error_Email_Blank: "E-Mail-Adresse kann nicht leer sein.",
- PasswordLogin_Header: "Geben Sie ein Passwort ein, um diese Seite zu sehen.",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Bitte geben Sie das Passwort unten ein.",
- SMForm_Error_Non_Ascii_Chars: "Passwort darf nur ASCII-Zeichen beinhalten.",
- SMForm_Email: "E-Mail-Adresse",
- dialogMixinTranslations_Log_In: "Anmelden",
- PasswordLogin_Wrong_Password: "Bitte geben Sie das richtige Passwort ein.",
- dialogMixinTranslations_login_facebook: "Mit Facebook anmelden",
- SMLogin_Forgot_Password: "Passwort vergessen?",
- dialogMixinTranslations_signup_switch_email: "Mit E-Mail-Adresse registrieren",
- dialogMixinTranslations_forgot_password_mobile_new: "Vergessen?",
- PasswordLogin_Error_General: "Serverfehler – Anmeldung nicht möglich",
- dialogMixinTranslations_Password_Reset_TooShort: "Das Passwort muss 4-15 Zeichen beinhalten.",
- SMContainer_Show_Confirm: "Diese Seite ist mit der Mitgliederanmeldung geschützt. Ihre Besucher können diese Seite erst sehen, wenn diese angemeldet sind.",
- dialogMixinTranslations_Log_In_Title: "Anmelden",
- SMContainer_Show_Confirm2: "Gehen Sie zum Bereich „Kontakte“ in Ihrem Konto und klicken Sie auf „Website Mitglieder“, um Mitglieder zu verwalten.",
- dialogMixinTranslations_switch_to_signup: "Sie haben kein Konto?",
- SMContain_Cancel: "Abbrechen",
- SMLogin_Login: "Anmelden",
- SMApply_Success1: "Vielen Dank! Ihre Anfrage zur Mitgliederanmeldung wurde versandt und wartet auf Bestätigung.",
- SMForm_Error_19976: "Falsche E-Mail-Adresse oder Passwort.",
- dialogMixinTranslations_signup_google: "Mit Google+ anmelden",
- SMApply_Success2: "Der Administrator der Website wird Sie per E-Mail informieren ( {0} ), sobald Ihre Anfrage bestätigt wurde. ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Mit E-Mail-Adresse anmelden",
- SMForm_Error_Email_Invalid: "Ungültige E-Mail-Adresse",
- SMProfile_Update_Details: "Angaben aktualisieren",
- SMResetPass_Continue: "Fortfahren",
- dialogMixinTranslations_forgot_password: "Passwort vergessen?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Wir haben Ihnen einen Link per E-Mail geschickt, mit dem Sie Ihr Passwort zurücksetzen können.",
- SMForm_Error_Password_Retype: "Passwörter stimmen nicht überein.",
- SMForm_Error_19972: "Ungültiges Token",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Passwort zurücksetzen",
- SMResetPass_Reset_Fail: "Passwort konnte nicht geändert werden. Probieren Sie es später nochmal.",
- SMRegister_Already_Have_User: "Ich bin bereits Mitglied",
- SMResetPassMail_confirmation_msg: "Wir haben Ihnen eine E-Mail mit einem Link geschickt, mit dem Sie Ihr Passwort zurücksetzen können.",
- SMRegister_GO: "OK",
- SMResetPass_New_Password: "Neues Passwort eingeben",
- SMResetPassMail_title: "Passwort zurücksetzen",
- SMContainer_Need_Log_In: "Sie müssen angemeldet sein, um diese Seite zu sehen.",
- SMResetPass_Message: "Bitte füllen Sie beide Felder unten aus, um ein neues Passwort festzulegen. ",
- SMForm_Error_19988: "Validierungsfehler",
- SMForm_Error_General_Err: "Serverfehler. Versuchen Sie es später nochmal.",
- SMForm_Retype_Password: "Passwort erneut eingeben",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Passwort zurücksetzen",
- PasswordLogin_AdministratorLogin: "Administrator-Anmeldung",
- SMProfile_Update: "Aktualisieren",
- SMResetPassMail_Enter_Email: "Bitte geben Sie Ihre E-Mail-Adresse ein.",
- SMForm_Error_19980: "Vom Betreiber der Website geblockt",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Gästebereich",
- PasswordLogin_Cancel: "Abbrechen",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Ungültige Sitzung"
- },
- en: {
- PasswordLogin_AdministratorLogin: "Administrator Login",
- SMContainer_Show_Confirm: "This page is protected with a member login. Your users will be able to see this page once they are logged in.",
- SMRegister_sign_up: "Sign up",
- SMLogin_OR: "Or",
- SMForm_Error_19972: "Invalid token",
- SMLogin_Login: "Login",
- SMForm_Error_19976: "Wrong email or password",
- PasswordLogin_Submit: "OK",
- SMLogin_Remember_Me: "Remember Me",
- SMResetPassMail_Enter_Email: "Please enter your email address",
- SMForm_Password: "Password",
- SMContainer_OK: "OK",
- SMResetPass_Reset_Fail: "Password could not have been changed. Try again later.",
- PasswordLogin_Cancel: "Cancel",
- SMResetPass_Message: "To set your new password, please enter it in both fields below. ",
- SMResetPass_New_Password: "Enter a new password",
- SMResetPass_Retype_Password: "Type again:",
- SMForm_Error_19980: "Blocked by site owner",
- SMResetPassMail_confirmation_title: "Please check your email",
- SMForm_Error_19984: "Invalid Session",
- PasswordLogin_Wrong_Password: "Please enter the correct password",
- SMResetPass_Reset_Succ: "You’ve successfully reset your password.",
- SMForm_Error_19988: "Validation Error",
- SMForm_Error_Non_Ascii_Chars: "Password must contain only ASCII characters",
- PasswordLogin_Header: "Enter password to view this page",
- SMRegister_GO: "GO",
- PasswordLogin_Password: "Password",
- SMResetPassMail_confirmation_msg: "We’ve sent you an email with a link that will allow you to reset your password",
- PasswordLogin_Error_General: "Server error - Unable to log in",
- SMResetPass_Continue: "Continue",
- SMLogin_Forgot_Password: "Forgot your password?",
- SMForm_Error_Password_Blank: "Password cannot be blank",
- SMForm_Error_Email_Invalid: "Email is invalid",
- SMForm_Error_19958: "Your member request is waiting approval from the site owner",
- SMForm_Error_19995: "Email is already taken",
- SMProfile_Update: "Update",
- SMProfile_Update_Details: "Update your details",
- SMForm_Email: "Email",
- SMForm_Error_Password_Length: "Password length must be between {0} and {1}",
- SMContain_Cancel: "Cancel",
- SMContainer_Show_Confirm2: "To manage your site's members, go to your Contacts from the Dashboard and click Site Members",
- SMContainer_Need_Log_In: "To view this page, you need to be logged in.",
- SMForm_Error_19999: "Unknown user",
- SMRegister_Already_Have_User: "I'm already a user",
- SMForm_Error_Email_Blank: "Email cannot be blank",
- SMForm_Error_General_Err: "Server error. Try again later.",
- SMForm_Error_Password_Retype: "Passwords are not the same",
- 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.",
- SMForm_Retype_Password: "Retype password",
- SMResetPassMail_title: "Reset Password",
- SMRegister_Login: "Login",
- SMResetPassMail_Back_Login: "Back to Login",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Guest Area",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Please enter the password below.",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Please Check Your Email",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "We’ve emailed you a link to reset your password.",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Reset Password",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Enter your new password below",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Enter a new password",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Re-type password",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Reset Password",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Your password has been changed.",
- dialogMixinTranslations_Log_In: "log in",
- dialogMixinTranslations_Log_In_Title: "Log in",
- dialogMixinTranslations_Password_Reset_TooShort: "Password must be 4-15 characters",
- dialogMixinTranslations_forgot_password: "Forgot password?",
- dialogMixinTranslations_switch_to_signup: "Don't have an account?",
- dialogMixinTranslations_forgot_password_mobile: "Forgot password?",
- dialogMixinTranslations_forgot_password_mobile_new: "forgot?",
- dialogMixinTranslations_login_google: "Log in with Google+",
- dialogMixinTranslations_login_facebook: "Log in with Facebook",
- dialogMixinTranslations_signup_google: "Sign up with Google+",
- dialogMixinTranslations_signup_facebook: "Sign up with Facebook",
- dialogMixinTranslations_login_switch_email: "Log in with Email",
- dialogMixinTranslations_signup_switch_email: "Sign up with Email",
- SMForm_Error_18880: "Email address must be provided"
- },
- es: {
- SMResetPass_Reset_Succ: "¡Has restablecido tu contraseña exitosamente!",
- SMForm_Password: "Clave",
- SMLogin_Remember_Me: "Recuérdame",
- PasswordLogin_Password: "Clave",
- SMForm_Error_Password_Blank: "El campo de la clave no puede estar en blanco",
- SMRegister_Login: "Inicia Sesión",
- SMForm_Error_19999: "Usuario desconocido",
- SMForm_Error_19958: "La solicitud de miembro está a la espera de la aprobación por parte del dueño del sitio.",
- SMResetPass_Retype_Password: "Escríbela de nuevo:",
- SMForm_Error_Password_Length: "La longitud de la clave debe ser entre {0} y {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Volver a Iniciar Sesión",
- dialogMixinTranslations_forgot_password_mobile: "¿Has olvidado la contraseña?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Tu contraseña ha cambiado.",
- dialogMixinTranslations_login_google: "Iniciar sesión con Google+",
- SMForm_Error_19995: "Este email ya está siendo usado",
- SMResetPassMail_confirmation_title: "Por favor revisa tu correo",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Vuelve a escribir tu contraseña",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Escribe una nueva clave",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Escribe tu nueva contraseña a continuación.",
- SMLogin_OR: "O",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Por favor revisa tu correo",
- SMRegister_sign_up: "Regístrate",
- dialogMixinTranslations_signup_facebook: "Registrar con Facebook",
- SMForm_Error_Email_Blank: "El campo del email no puede estar en blanco",
- PasswordLogin_Header: "Escribe la clave para ver esta página",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Por favor ingresa la contraseña a continuación.",
- SMForm_Error_Non_Ascii_Chars: "La clave debe contener sólo caracteres ASCII",
- SMForm_Email: "Email",
- dialogMixinTranslations_Log_In: "Inicia sesión",
- PasswordLogin_Wrong_Password: "Por favor introduce la clave correcta",
- dialogMixinTranslations_login_facebook: "Iniciar sesión con Facebook",
- SMLogin_Forgot_Password: "¿Has olvidado tu clave?",
- dialogMixinTranslations_signup_switch_email: "Registrar con un email",
- dialogMixinTranslations_forgot_password_mobile_new: "¿olvidaste?",
- PasswordLogin_Error_General: "Error del servidor - No es posible iniciar sesión",
- dialogMixinTranslations_Password_Reset_TooShort: "Tu contraseña debe tener entre 4 y 15 caracteres",
- SMContainer_Show_Confirm: "Esta página está protegida con un login de miembro. Tus usuarios podrán ver esta página una vez hayan iniciado sesión.",
- dialogMixinTranslations_Log_In_Title: "Inicia sesión",
- SMContainer_Show_Confirm2: "Para administrar los miembros de tu página web, dirígete a tus Contactos desde el panel de Control y haz clic en Miembros del sitio.",
- dialogMixinTranslations_switch_to_signup: "¿No tienes todavía una cuenta?",
- SMContain_Cancel: "Cancelar",
- SMLogin_Login: "Inicia sesión",
- SMApply_Success1: "¡Enhorabuena! Tu solicitud de login de miembros fue enviada y su aprobación está pendiente.",
- SMForm_Error_19976: "Email o clave incorrecto/a",
- dialogMixinTranslations_signup_google: "Registrar con Google+",
- 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. ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Iniciar sesión con tu email",
- SMForm_Error_Email_Invalid: "Email inválido",
- SMProfile_Update_Details: "Update your details",
- SMResetPass_Continue: "Continuar",
- dialogMixinTranslations_forgot_password: "¿Has olvidado la contraseña?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Te hemos enviado un email con un enlace para restablecer tu contraseña.",
- SMForm_Error_Password_Retype: "Las claves no son las mismas",
- SMForm_Error_19972: "Token inválido",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Restablecer Clave",
- SMResetPass_Reset_Fail: "La clave no se pudo cambiar. Inténtalo de nuevo más tarde.",
- SMRegister_Already_Have_User: "Ya tengo un usuario",
- SMResetPassMail_confirmation_msg: "Te hemos enviado un email con un enlace que te permitirá restablecer tu contraseña.",
- SMRegister_GO: "ENTRAR",
- SMResetPass_New_Password: "Escribe una nueva clave",
- SMResetPassMail_title: "Restablecer Clave",
- SMContainer_Need_Log_In: "Para ver esta página, tienes que iniciar sesión.",
- SMResetPass_Message: "Para configurar tu nueva clave, por favor rellena ambos campos a continuación. ",
- SMForm_Error_19988: "Error de Validación",
- SMForm_Error_General_Err: "Error del servidor. inténtalo de nuevo más tarde.",
- SMForm_Retype_Password: "Escribe de nuevo la clave",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Restablecer Clave",
- PasswordLogin_AdministratorLogin: "Administrator Login",
- SMProfile_Update: "Update",
- SMResetPassMail_Enter_Email: "Por favor escribe tu dirección de correo",
- SMForm_Error_19980: "Bloqueado por el dueño del sitio",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Solo para invitados",
- PasswordLogin_Cancel: "Cancel",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Sesión Inválida"
- },
- fr: {
- SMResetPass_Reset_Succ: "Vous avez réinitialisé votre mot de passe avec succès",
- SMForm_Password: "Mot de passe",
- SMLogin_Remember_Me: "Se Souvenir de Moi",
- PasswordLogin_Password: "Mot de passe",
- SMForm_Error_Password_Blank: "Veuillez saisir le mot de passe",
- SMRegister_Login: "Connexion",
- SMForm_Error_19999: "Utilisateur inconnu",
- SMForm_Error_19958: "Votre demande est en attente d'approbation du propriétaire du site",
- SMResetPass_Retype_Password: "Confirmez le mot de passe :",
- SMForm_Error_Password_Length: "La longueur du mot de passe doit être entre {0} et {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Retour à Connexion",
- dialogMixinTranslations_forgot_password_mobile: "Mot de passe oublié ?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Votre mot de passe a été modifié.",
- dialogMixinTranslations_login_google: "Se connecter avec Google+",
- SMForm_Error_19995: "Cet email est déjà utilisé",
- SMResetPassMail_confirmation_title: "Veuillez consulter votre boîte e-mail",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Ressaisissez votre mot de passe ",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Saisissez un nouveau mot de passe",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Saisissez votre nouveau mot de passe ci-dessous",
- SMLogin_OR: "Ou",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Veuillez vérifier dans votre boîte e-mail",
- SMRegister_sign_up: "Inscription",
- dialogMixinTranslations_signup_facebook: "Se connecter avec Facebook",
- SMForm_Error_Email_Blank: "Veuillez saisir l'e-mail",
- PasswordLogin_Header: "Veuillez saisir un mot de passe afin d'accéder à cette page",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Veuillez saisir le mot de passe ci-dessous.",
- SMForm_Error_Non_Ascii_Chars: "Le mot de passe doit contenir uniquement des caractères ASCII",
- SMForm_Email: "Email",
- dialogMixinTranslations_Log_In: "Connexion",
- PasswordLogin_Wrong_Password: "Veuillez saisir le mot de passe correct",
- dialogMixinTranslations_login_facebook: "Se connecter avec Facebook",
- SMLogin_Forgot_Password: "Mot de passe oublié ?",
- dialogMixinTranslations_signup_switch_email: "Se connecter avec votre e-mail",
- dialogMixinTranslations_forgot_password_mobile_new: "oublié ?",
- PasswordLogin_Error_General: "Erreur serveur - Impossible de se connecter",
- dialogMixinTranslations_Password_Reset_TooShort: "Le mot de passe doit comprendre entre 4 et 15 caractères",
- SMContainer_Show_Confirm: "Cette page est protégée par une connexion membre. Vos utilisateurs verront cette page une fois qu'ils seront connectés.",
- dialogMixinTranslations_Log_In_Title: "Connexion",
- SMContainer_Show_Confirm2: "Pour gérer vos membres de site, allez à vos Contacts depuis le tableau de bord et cliquez sur Membres du site",
- dialogMixinTranslations_switch_to_signup: "Vous n'avez pas de compte ?",
- SMContain_Cancel: "Annulation",
- SMLogin_Login: "Connexion",
- SMApply_Success1: "Bravo ! Votre demande de connexion membre a été envoyée et est actuellement en attente d'approbation.",
- SMForm_Error_19976: "L' email ou le mot de passe est incorrect",
- dialogMixinTranslations_signup_google: "Se connecter avec Google+",
- SMApply_Success2: "L'administrateur du site vous informera par email ({0}) lorsque votre demande aura été approuvée. ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Se connecter avec votre e-mail",
- SMForm_Error_Email_Invalid: "Email invalide",
- SMProfile_Update_Details: "Update your details",
- SMResetPass_Continue: "Continuer",
- dialogMixinTranslations_forgot_password: "Mot de passe oublié ?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Nous vous avons envoyé un lien pour réinitialiser votre mot de passe.",
- SMForm_Error_Password_Retype: "Les mots de passe ne sont pas identiques",
- SMForm_Error_19972: "Token invalide",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Réinitialiser Mot de Passe",
- SMResetPass_Reset_Fail: "Votre mot de passe n'a pas pu être modifié. Veuillez réessayer ultérieurement.",
- SMRegister_Already_Have_User: "J'ai déjà un nom d'utilisateur",
- SMResetPassMail_confirmation_msg: "Un email avec un lien pour réinitialiser votre mot de passe vous a été envoyé",
- SMRegister_GO: "OK",
- SMResetPass_New_Password: "Saisissez un nouveau mot de passe",
- SMResetPassMail_title: "Réinitialiser Mot de Passe",
- SMContainer_Need_Log_In: "Pour voir cette page, vous devez être connecté",
- SMResetPass_Message: "Pour définir votre nouveau mot de passe, veuillez le saisir dans les champs ci-dessous. ",
- SMForm_Error_19988: "Erreur Validation",
- SMForm_Error_General_Err: "Erreur de serveur. Veuillez réessayer plus tard.",
- SMForm_Retype_Password: "Confirmez mot de passe",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Réinitialiser Mot de Passe",
- PasswordLogin_AdministratorLogin: "Administrator Login",
- SMProfile_Update: "Update",
- SMResetPassMail_Enter_Email: "Veuillez saisir votre adresse email",
- SMForm_Error_19980: "Bloqué par le propriètaire du site",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Espace visiteur",
- PasswordLogin_Cancel: "Cancel",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Session Invalide"
- },
- it: {
- SMResetPass_Reset_Succ: "Hai ripristinato con successo la tua password.",
- SMForm_Password: "Password",
- SMLogin_Remember_Me: "Ricordami",
- PasswordLogin_Password: "Password",
- SMForm_Error_Password_Blank: "Il campo Password non può essere lasciato in bianco",
- SMRegister_Login: "Login",
- SMForm_Error_19999: "Utente sconosciuto",
- SMForm_Error_19958: "La tua richiesta membro è in attesa di approvazione da parte per proprietario del sito",
- SMResetPass_Retype_Password: "Digita nuovamente:",
- SMForm_Error_Password_Length: "La lunghezza della password dev'essere compresa tra {0} e {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Torna al Login",
- dialogMixinTranslations_forgot_password_mobile: "Hai dimenticato la password?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "La tua password è cambiata.",
- dialogMixinTranslations_login_google: "Accedi con Google+",
- SMForm_Error_19995: "L'Email è già in utilizzo",
- SMResetPassMail_confirmation_title: "Ti preghiamo di controllare la tua email",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Inserisci di nuovo la tua password",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Inserisci una nuova password",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Inserisci la tua password qui sotto",
- SMLogin_OR: "Oppure",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Controlla la tua Mail",
- SMRegister_sign_up: "Iscriviti",
- dialogMixinTranslations_signup_facebook: "Iscriviti con Facebook",
- SMForm_Error_Email_Blank: "Il campo Email non può essere lasciato in bianco",
- PasswordLogin_Header: "Inserisci la password per visualizzare questa pagina",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Inserisci la password qui sotto.",
- SMForm_Error_Non_Ascii_Chars: "La password deve contenere solo caratteri ASCII",
- SMForm_Email: "Email",
- dialogMixinTranslations_Log_In: "Accedi",
- PasswordLogin_Wrong_Password: "Ti preghiamo di inserire la password corretta",
- dialogMixinTranslations_login_facebook: "Accedi con Facebook",
- SMLogin_Forgot_Password: "Hai dimenticato la tua password?",
- dialogMixinTranslations_signup_switch_email: "Iscriviti con la tua email",
- dialogMixinTranslations_forgot_password_mobile_new: "dimenticata?",
- PasswordLogin_Error_General: "Errore del server - Non è possibile effettuare l'accesso",
- dialogMixinTranslations_Password_Reset_TooShort: "La password deve contenere dai 4 ai 15 caratteri",
- SMContainer_Show_Confirm: "Questa pagina è protetta da un login membri. I tuoi utenti saranno in grado di vedere questa pagina una volta che avranno effettuato l'accesso.",
- dialogMixinTranslations_Log_In_Title: "Accedi",
- SMContainer_Show_Confirm2: "Per gestire i membri del tuo sito, vai su Contatti dal Pannello di Controllo e clicca Membri del Sito",
- dialogMixinTranslations_switch_to_signup: "Non possiedi un account?",
- SMContain_Cancel: "Cancella",
- SMLogin_Login: "Login",
- SMApply_Success1: "Successo! La tua richiesta di login membro è stata inviata ed è in attesa di approvazione.",
- SMForm_Error_19976: "Email o password non corretta",
- dialogMixinTranslations_signup_google: "Iscriviti con Google+",
- SMApply_Success2: "L'amministratore del sito ti notificherà via email( {0} ) una volta che la tua richiesta è stata accettata ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Accedi con la tua email",
- SMForm_Error_Email_Invalid: "L'Email non è valida",
- SMProfile_Update_Details: "Update your details",
- SMResetPass_Continue: "Continua",
- dialogMixinTranslations_forgot_password: "Hai dimenticato la password?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Ti abbiamo inviato una mail con il link per reimpostare la tua password.",
- SMForm_Error_Password_Retype: "Le password non sono uguali",
- SMForm_Error_19972: "Token non valido",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Ripristina Password",
- SMResetPass_Reset_Fail: "Non è stato possibile modificare la password. Prova nuovamente più tardi.",
- SMRegister_Already_Have_User: "Sono un utente esistente",
- SMResetPassMail_confirmation_msg: "Ti abbiamo inviato un'email con un link che ti permetterà di ripristinare la tua password",
- SMRegister_GO: "VAI",
- SMResetPass_New_Password: "Inserisci una nuova password",
- SMResetPassMail_title: "Ripristina Password",
- SMContainer_Need_Log_In: "Per visualizzare questa pagina, devi aver fatto il login.",
- SMResetPass_Message: "Per impostare la tua nuova password, inseriscila per cortesia in entrambi i campi qui sotto. ",
- SMForm_Error_19988: "Errore di Convalida",
- SMForm_Error_General_Err: "Errore del server. Prova nuovamente più tardi.",
- SMForm_Retype_Password: "Digita nuovamente la password",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Ripristina Password",
- PasswordLogin_AdministratorLogin: "Administrator Login",
- SMProfile_Update: "Update",
- SMResetPassMail_Enter_Email: "Ti preghiamo di inserire il tuo indirizzo email",
- SMForm_Error_19980: "Bloccato dal proprietario del sito",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Area Ospiti",
- PasswordLogin_Cancel: "Cancel",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Sessione non valida"
- },
- ja: {
- SMResetPass_Reset_Succ: "パスワードがリセットされました!",
- SMForm_Password: "パスワード",
- SMLogin_Remember_Me: "ログインを保存する",
- PasswordLogin_Password: "パスワード",
- SMForm_Error_Password_Blank: "パスワードは必須項目です",
- SMRegister_Login: "ログイン",
- SMForm_Error_19999: "不明なユーザー",
- SMForm_Error_19958: "会員登録はサイト管理者の承認待ちです",
- SMResetPass_Retype_Password: "もう一度入力してください",
- SMForm_Error_Password_Length: "{0}〜{1}文字以内のパスワードを入力してください",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "ログインに戻る",
- dialogMixinTranslations_forgot_password_mobile: "パスワードがわからない?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "パスワードが更新されました",
- dialogMixinTranslations_login_google: "Google+ でログイン",
- SMForm_Error_19995: "このメールアドレスはすでに登録されています",
- SMResetPassMail_confirmation_title: "新着メールをご確認ください",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "パスワードを再入力",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "新しいパスワードを入力してください",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "新しいパスワードを入力",
- SMLogin_OR: "/",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "メールをご確認ください",
- SMRegister_sign_up: "新規登録",
- dialogMixinTranslations_signup_facebook: "Facebook で登録",
- SMForm_Error_Email_Blank: "メールアドレスは必須項目です",
- PasswordLogin_Header: "このページを開くためには、パスワードを入力する必要があります。",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "パスワードを入力してください。",
- SMForm_Error_Non_Ascii_Chars: "パスワードにはASCII(アスキー)文字のみ使用してください",
- SMForm_Email: "メールアドレス",
- dialogMixinTranslations_Log_In: "ログイン",
- PasswordLogin_Wrong_Password: "正しいパスワードを入力してください",
- dialogMixinTranslations_login_facebook: "Facebook でログイン",
- SMLogin_Forgot_Password: "パスワードがわからない?",
- dialogMixinTranslations_signup_switch_email: "メールで登録",
- dialogMixinTranslations_forgot_password_mobile_new: "お忘れですか?",
- PasswordLogin_Error_General: "サーバーエラー:ログインできませんでした",
- dialogMixinTranslations_Password_Reset_TooShort: "4-15文字のパスワードを入力してください",
- SMContainer_Show_Confirm: "このページは会員専用ページです。アクセスには会員ログインが必要です。",
- dialogMixinTranslations_Log_In_Title: "ログイン",
- SMContainer_Show_Confirm2: "サイト会員を管理するには、マイサイトから「コンタクト」をクリックし「サイト会員」を選択してください。",
- dialogMixinTranslations_switch_to_signup: "アカウントを持っていない?",
- SMContain_Cancel: "キャンセル",
- SMLogin_Login: "ログイン",
- SMApply_Success1: "会員登録の申請を送信しました。",
- SMForm_Error_19976: "メールアドレスまたはパスワードが有効ではありません",
- dialogMixinTranslations_signup_google: "Google+ で登録",
- SMApply_Success2: "会員登録の承認後、サイト管理者から「{0}」に通知メールが送信されます。 ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "メールでログイン",
- SMForm_Error_Email_Invalid: "メールアドレスが有効ではありません",
- SMProfile_Update_Details: "詳細を更新してください",
- SMResetPass_Continue: "続行",
- dialogMixinTranslations_forgot_password: "パスワードがわからない?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "パスワード再設定用のリンクをお送りしました。",
- SMForm_Error_Password_Retype: "パスワードが一致しません",
- SMForm_Error_19972: "トークンが有効ではありません",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "パスワードをリセット",
- SMResetPass_Reset_Fail: "パスワードを変更できませんでした。もう一度お試しください。",
- SMRegister_Already_Have_User: "登録済みの方はこちら",
- SMResetPassMail_confirmation_msg: "メールのリンクをクリックしてパスワードをリセットしてください。",
- SMRegister_GO: "GO",
- SMResetPass_New_Password: "新しいパスワードを入力してください",
- SMResetPassMail_title: "パスワードをリセット",
- SMContainer_Need_Log_In: "ページにアクセスするには、ログインする必要があります",
- SMResetPass_Message: "こちらに新しいパスワードを入力してください。 ",
- SMForm_Error_19988: "認証エラー",
- SMForm_Error_General_Err: "サーバーエラーが発生しました。もう一度お試しください",
- SMForm_Retype_Password: "もう一度入力してください",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "パスワードをリセット",
- PasswordLogin_AdministratorLogin: "管理者ログイン",
- SMProfile_Update: "更新",
- SMResetPassMail_Enter_Email: "メールアドレスを入力してください",
- SMForm_Error_19980: "サイト管理者からブロックされています",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "ゲストエリア",
- PasswordLogin_Cancel: "キャンセル",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "無効なセッションです"
- },
- ko: {
- SMResetPass_Reset_Succ: "비밀번호가 성공적으로 변경되었습니다.",
- SMForm_Password: "비밀번호",
- SMLogin_Remember_Me: "내 계정 기억하기",
- PasswordLogin_Password: "비밀번호",
- SMForm_Error_Password_Blank: "비밀번호는 필수 입력사항입니다.",
- SMRegister_Login: "로그인",
- SMForm_Error_19999: "알 수 없는 사용자입니다.",
- SMForm_Error_19958: "사이트 소유자의 회원요청 승인을 기다리고 있습니다.",
- SMResetPass_Retype_Password: "비밀번호 확인",
- SMForm_Error_Password_Length: "비밀번호는 {0}자 이상 {1}자 이하로 작성하세요.",
- SMContainer_OK: "확인",
- SMResetPassMail_Back_Login: "로그인으로 돌아가기",
- dialogMixinTranslations_forgot_password_mobile: "비밀번호 찾기",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "비밀번호 재설정 완료!",
- dialogMixinTranslations_login_google: "Google+ 로그인",
- SMForm_Error_19995: "이미 존재하는 이메일입니다.",
- SMResetPassMail_confirmation_title: "이메일을 확인해 주세요.",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "비밀번호 확인",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "새로운 비밀번호",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "비밀번호를 아래에 입력하세요.",
- SMLogin_OR: "또는",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "이메일을 확인하세요!",
- SMRegister_sign_up: "가입하기",
- dialogMixinTranslations_signup_facebook: "Facebook으로 가입",
- SMForm_Error_Email_Blank: "이메일은 필수 입력사항입니다.",
- PasswordLogin_Header: "비밀번호를 입력하세요.",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "비밀번호를 입력하세요.",
- SMForm_Error_Non_Ascii_Chars: "비밀번호는 반드시 ASCII 문자를 포함해야합니다.",
- SMForm_Email: "이메일",
- dialogMixinTranslations_Log_In: "로그인하세요.",
- PasswordLogin_Wrong_Password: "올바른 비밀번호를 입력하세요.",
- dialogMixinTranslations_login_facebook: "Facebook 로그인",
- SMLogin_Forgot_Password: "비밀번호 찾기",
- dialogMixinTranslations_signup_switch_email: "이메일로 가입",
- dialogMixinTranslations_forgot_password_mobile_new: "비밀번호 찾기",
- PasswordLogin_Error_General: "로그인 실패 - 서버 오류",
- dialogMixinTranslations_Password_Reset_TooShort: "비밀번호는 4-15자로 작성하세요.",
- SMContainer_Show_Confirm: "회원 로그인 기능으로 보호되어 있는 페이지입니다. 방문자들은 로그인 후에 이 페이지에 접속할 수 있습니다.",
- dialogMixinTranslations_Log_In_Title: "로그인",
- SMContainer_Show_Confirm2: '사이트 회원을 관리하려면 대시보드에서 "연락처 관리"페이지로 이동해 "사이트 회원" 탭을 클릭하세요.',
- dialogMixinTranslations_switch_to_signup: " ",
- SMContain_Cancel: "취소",
- SMLogin_Login: "로그인",
- SMApply_Success1: "성공적으로 회원가입 요청이 이루어졌습니다! 현재 회원가입 승인을 기다리고 있습니다.",
- SMForm_Error_19976: "잘못된 이메일 또는 비밀번호입니다.",
- dialogMixinTranslations_signup_google: "Google+로 가입",
- SMApply_Success2: "회원가입이 승인되면 이메일로 알려드립니다.",
- SMForm_Error_18880: "이메일 주소를 입력하세요!",
- dialogMixinTranslations_login_switch_email: "이메일로 로그인",
- SMForm_Error_Email_Invalid: "유효하지 않은 이메일 주소입니다.",
- SMProfile_Update_Details: "내 세부정보를 업데이트하세요.",
- SMResetPass_Continue: "계속",
- dialogMixinTranslations_forgot_password: "비밀번호 찾기",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "비밀번호 재설정 링크를 이메일로 발송했습니다.",
- SMForm_Error_Password_Retype: "비밀번호를 다시 입력해 주세요.",
- SMForm_Error_19972: "유효하지 않은 토큰입니다.",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "비밀번호 재설정",
- SMResetPass_Reset_Fail: "비밀번호를 변경할 수 없습니다. 잠시후에 다시 시도하세요.",
- SMRegister_Already_Have_User: "회원인 경우",
- SMResetPassMail_confirmation_msg: "비밀번호 재설정 링크가 이메일로 발송되었습니다.",
- SMRegister_GO: "확인",
- SMResetPass_New_Password: "새로운 비밀번호",
- SMResetPassMail_title: "비밀번호 재설정",
- SMContainer_Need_Log_In: "이 페이지를 보려면 로그인하세요.",
- SMResetPass_Message: "새 비밀번호를 설정하려면 다음을 입력해 주세요. ",
- SMForm_Error_19988: "유효성 검사 오류",
- SMForm_Error_General_Err: "서버 오류입니다. 잠시 후 다시 시도하세요.",
- SMForm_Retype_Password: "비밀번호 확인",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "비밀번호 재설정",
- PasswordLogin_AdministratorLogin: "관리자 로그인",
- SMProfile_Update: "업데이트",
- SMResetPassMail_Enter_Email: "이메일 주소를 입력하세요.",
- SMForm_Error_19980: "사이트 소유자에 의해 차단되었습니다.",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "비공개 페이지",
- PasswordLogin_Cancel: "취소",
- PasswordLogin_Submit: "확인",
- SMForm_Error_19984: "유효하지 않은 세션입니다."
- },
- pl: {
- SMResetPass_Reset_Succ: "Zresetowanie hasła powiodło się.",
- SMForm_Password: "Hasło",
- SMLogin_Remember_Me: "Zapamietaj mnie",
- PasswordLogin_Password: "Hasło",
- SMForm_Error_Password_Blank: 'Pole "Hasło" nie możne być puste.',
- SMRegister_Login: "Zaloguj się",
- SMForm_Error_19999: "Nierozpoznany użytkownik",
- SMForm_Error_19958: "Twoja prośba o login do witryny czeka na zatwierdzenie przez właściciela witryny.",
- SMResetPass_Retype_Password: "Wpisz ponownie:",
- SMForm_Error_Password_Length: "Długość hasła musi wynosić pomiędzy {0} a {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Powrót do Loginu",
- dialogMixinTranslations_forgot_password_mobile: "Zapomniałeś hasła?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Hasło zostało zmienione.",
- dialogMixinTranslations_login_google: "Zaloguj się z Google+",
- SMForm_Error_19995: "Email już istnieje",
- SMResetPassMail_confirmation_title: "Sprawdź swój email",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Powtórz hasło",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Wpisz nowe hasło",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Wpisz nowe hasło poniżej",
- SMLogin_OR: "Lub",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Sprawdź Swój Email",
- SMRegister_sign_up: "Zarejestruj sie",
- dialogMixinTranslations_signup_facebook: "Zarejestruj się z Facebook",
- SMForm_Error_Email_Blank: 'Pole "Email" nie możne być puste.',
- PasswordLogin_Header: "Wpisz hasło, aby zobaczyć tę stronę.",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Wpisz hasło poniżej.",
- SMForm_Error_Non_Ascii_Chars: "Hasło możne zawierać tylko znaki ASCII",
- SMForm_Email: "Email",
- dialogMixinTranslations_Log_In: "Zaloguj się",
- PasswordLogin_Wrong_Password: "Wpisz poprawne hasło",
- dialogMixinTranslations_login_facebook: "Zaloguj się z Facebook",
- SMLogin_Forgot_Password: "Zapomniałeś hasła?",
- dialogMixinTranslations_signup_switch_email: "Zarejestruj się przez Email",
- dialogMixinTranslations_forgot_password_mobile_new: "Zapomniałeś?",
- PasswordLogin_Error_General: "Błąd serwera - nie można się zalogować",
- dialogMixinTranslations_Password_Reset_TooShort: "Hasło musi mieć 4-15 znaków",
- SMContainer_Show_Confirm: "Ta strona jest zabezpieczona loginem witryny. Twoi użytkownicy zobaczą treść tej strony po zalogowaniu.",
- dialogMixinTranslations_Log_In_Title: "Zaloguj się",
- SMContainer_Show_Confirm2: "Aby zarządzać członkami witryny, idź do Kontaktów w Panelu i kliknij Członkowie Witryny",
- dialogMixinTranslations_switch_to_signup: "Nie masz konta?",
- SMContain_Cancel: "Anuluj",
- SMLogin_Login: "Login",
- SMApply_Success1: "Gratulujemy! Twoja prośba o członkostwo została wysłana i czeka na zatwierdzenie.",
- SMForm_Error_19976: "Niepoprawny email lub hasło",
- dialogMixinTranslations_signup_google: "Zarejestruj się z Google+",
- SMApply_Success2: "Administrator powiadomi Cię w emailu,( {0} ) gdy twoja prośba zostanie zatwierdzona. ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Zaloguj się przez Email",
- SMForm_Error_Email_Invalid: "Nieprawidłowy Email",
- SMProfile_Update_Details: "Zaktualizuj swoje dane",
- SMResetPass_Continue: "Kontynuuj",
- dialogMixinTranslations_forgot_password: "Zapomniałeś hasła?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Wysłaliśmy email z linkiem, który umożliwi ci zresetowanie hasła.",
- SMForm_Error_Password_Retype: "Hasła nie są takie same",
- SMForm_Error_19972: "Błędny token",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Zresetuj Hasło",
- SMResetPass_Reset_Fail: "Hasło nie mogło zostać zmienione. Spróbuj ponownie później.",
- SMRegister_Already_Have_User: "Jestem już użytkownikiem",
- SMResetPassMail_confirmation_msg: "Wysłaliśmy email z linkiem, który umożliwi Ci zresetowanie hasła.",
- SMRegister_GO: "START",
- SMResetPass_New_Password: "Wpisz nowe hasło",
- SMResetPassMail_title: "Zresetuj Hasło",
- SMContainer_Need_Log_In: "Musisz być zalogowany, aby zobaczyć tę stronę.",
- SMResetPass_Message: "Aby skonfigurować nowe hasło, wpisz je w obydwu polach poniżej. ",
- SMForm_Error_19988: "Błąd walidacji",
- SMForm_Error_General_Err: "Błąd serwera. Spróbuj ponownie później.",
- SMForm_Retype_Password: "Powtórz hasło",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Zresetuj Hasło",
- PasswordLogin_AdministratorLogin: "Login Administratora",
- SMProfile_Update: "Aktualizuj",
- SMResetPassMail_Enter_Email: "Wpisz swój adres email",
- SMForm_Error_19980: "Zablokowane przez właściciela witryny",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Strefa Gości",
- PasswordLogin_Cancel: "Anuluj",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Błędna Sesja"
- },
- ru: {
- SMResetPass_Reset_Succ: "Вы успешно сменили пароль.",
- SMForm_Password: "Пароль",
- SMLogin_Remember_Me: "Запомнить меня",
- PasswordLogin_Password: "Пароль",
- SMForm_Error_Password_Blank: "Недопустимый пароль",
- SMRegister_Login: "Войти",
- SMForm_Error_19999: "Неизвестный пользователь",
- SMForm_Error_19958: "Ваша регистрация ждет подтверждения владельца сайта",
- SMResetPass_Retype_Password: "Повторите пароль:",
- SMForm_Error_Password_Length: "Длина пароля должна быть от {0} до {1} знаков",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Назад",
- dialogMixinTranslations_forgot_password_mobile: "Не помню пароль",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Пароль успешно изменен.",
- dialogMixinTranslations_login_google: "Войти через Google+",
- SMForm_Error_19995: "Email уже зарегистрирован",
- SMResetPassMail_confirmation_title: "Пожалуйста, проверьте ваш email",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Повторите пароль",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Новый пароль",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Укажите новый пароль:",
- SMLogin_OR: "или",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Пожалуйста, проверьте ваш email",
- SMRegister_sign_up: "Регистрация",
- dialogMixinTranslations_signup_facebook: "Войти через Facebook",
- SMForm_Error_Email_Blank: "Недопустимый еmail",
- PasswordLogin_Header: "Для доступа к странице введите пароль",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Пожалуйста, укажите пароль:",
- SMForm_Error_Non_Ascii_Chars: "Пароль может содержать только символы ASCII",
- SMForm_Email: "Email",
- dialogMixinTranslations_Log_In: "Войти",
- PasswordLogin_Wrong_Password: "Пожалуйста, введите правильный пароль",
- dialogMixinTranslations_login_facebook: "Войти через Facebook",
- SMLogin_Forgot_Password: "Забыли пароль?",
- dialogMixinTranslations_signup_switch_email: "Войти через почту",
- dialogMixinTranslations_forgot_password_mobile_new: "Не помню",
- PasswordLogin_Error_General: "Ошибка сервера: вход не удался",
- dialogMixinTranslations_Password_Reset_TooShort: "Пароль должен состоять из 4–15 знаков",
- SMContainer_Show_Confirm: "Эта страница доступна только зарегистрированным пользователям. Посетители увидят ее, только указав email и пароль.",
- dialogMixinTranslations_Log_In_Title: "Вход",
- SMContainer_Show_Confirm2: "Чтобы управлять контактами пользователей сайта: Wix Home > Контакты > Пользователи",
- dialogMixinTranslations_switch_to_signup: "У вас нет аккаунта?",
- SMContain_Cancel: "Отменить",
- SMLogin_Login: "Войти",
- SMApply_Success1: "Отлично! Ваш запрос регистрации отправлен на подтверждение.",
- SMForm_Error_19976: "Неверный email или пароль",
- dialogMixinTranslations_signup_google: "Войти через Google+",
- SMApply_Success2: "Как только ваш запрос будет подтвержден, администратор сайта отправит вам письмо на {0} ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Войти через почту",
- SMForm_Error_Email_Invalid: "Недопустимый еmail",
- SMProfile_Update_Details: "Обновите ваши данные",
- SMResetPass_Continue: "Продолжить",
- dialogMixinTranslations_forgot_password: "Не помню пароль",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Отправили вам ссылку для смены пароля.",
- SMForm_Error_Password_Retype: "Пароли не совпадают",
- SMForm_Error_19972: "Неверный токен",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Смена пароля",
- SMResetPass_Reset_Fail: "Не получилось сменить пароль. Попробуйте позже.",
- SMRegister_Already_Have_User: "У меня уже есть аккаунт.",
- SMResetPassMail_confirmation_msg: "Мы отправили вам ссылку для смены пароля.",
- SMRegister_GO: "ОК",
- SMResetPass_New_Password: "Новый пароль",
- SMResetPassMail_title: "Смена пароля",
- SMContainer_Need_Log_In: "Для доступа к странице введите пароль.",
- SMResetPass_Message: "Введите ваш новый пароль ниже. ",
- SMForm_Error_19988: "Ошибка валидации",
- SMForm_Error_General_Err: "Ошибка сервера. Пожалуйста, попробуйте позже.",
- SMForm_Retype_Password: "Повторите пароль",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Сменить пароль",
- PasswordLogin_AdministratorLogin: "Логин администратора",
- SMProfile_Update: "Обновить",
- SMResetPassMail_Enter_Email: "Пожалуйста, введите ваш email",
- SMForm_Error_19980: "Заблокирован владельцем сайта",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Зона для гостей",
- PasswordLogin_Cancel: "Отменить",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Неверная сессия"
- },
- nl: {
- SMResetPass_Reset_Succ: "U hebt uw wachtwoord opnieuw ingesteld.",
- SMForm_Password: "Wachtwoord",
- SMLogin_Remember_Me: "Onthouden",
- PasswordLogin_Password: "Wachtwoord",
- SMForm_Error_Password_Blank: "Wachtwoord mag niet leeg worden gelaten",
- SMRegister_Login: "Inloggen",
- SMForm_Error_19999: "Onbekende gebruiker",
- SMForm_Error_19958: "Uw verzoek om ledentoegang wacht op goedkeuring door de eigenaar van de website",
- SMResetPass_Retype_Password: "Typ het opnieuw:",
- SMForm_Error_Password_Length: "Het wachtwoord moet tussen de {0} en {1} tekens lang zijn",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Terug naar inloggen",
- dialogMixinTranslations_forgot_password_mobile: "Wachtwoord vergeten?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Uw wachtwoord is gewijzigd.",
- dialogMixinTranslations_login_google: "Inloggen met Google+",
- SMForm_Error_19995: "E-mailadres is al in gebruik",
- SMResetPassMail_confirmation_title: "Controleer uw e-mailberichten",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Vul het wachtwoord opnieuw in",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Vul een nieuw wachtwoord in",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Vul hieronder het nieuwe wachtwoord in",
- SMLogin_OR: "Of",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Controleer uw e-mailberichten",
- SMRegister_sign_up: "Aanmelden",
- dialogMixinTranslations_signup_facebook: "Aanmelden met Facebook",
- SMForm_Error_Email_Blank: "E-mailadres mag niet leeg worden gelaten",
- PasswordLogin_Header: "Vul uw wachtwoord in om deze pagina weer te geven",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Vul hieronder uw wachtwoord in.",
- SMForm_Error_Non_Ascii_Chars: "Het wachtwoord mag alleen uit ASCII-tekens bestaan",
- SMForm_Email: "E-mailadres",
- dialogMixinTranslations_Log_In: "Inloggen",
- PasswordLogin_Wrong_Password: "Vul het juiste wachtwoord in",
- dialogMixinTranslations_login_facebook: "Inloggen met Facebook",
- SMLogin_Forgot_Password: "Wachtwoord vergeten?",
- dialogMixinTranslations_signup_switch_email: "Aanmelden met e-mail",
- dialogMixinTranslations_forgot_password_mobile_new: "vergeten?",
- PasswordLogin_Error_General: "Serverfout - inloggen mislukt",
- dialogMixinTranslations_Password_Reset_TooShort: "Het wachtwoord moet tussen 4 en 15 tekens lang zijn",
- SMContainer_Show_Confirm: "Voor deze pagina is inloggen vereist. Uw gebruikers kunnen deze pagina zien als ze zijn ingelogd.",
- dialogMixinTranslations_Log_In_Title: "Inloggen",
- SMContainer_Show_Confirm2: "Om uw siteleden te beheren gaat u op uw dashboard naar uw contacten en klikt u op Siteleden",
- dialogMixinTranslations_switch_to_signup: "Hebt u geen account?",
- SMContain_Cancel: "Annuleren",
- SMLogin_Login: "Inloggen",
- SMApply_Success1: "Uw verzoek om toegang is verzonden en wacht op goedkeuring.",
- SMForm_Error_19976: "Verkeerd e-mailadres of wachtwoord",
- dialogMixinTranslations_signup_google: "Aanmelden met Google+",
- SMApply_Success2: "De administrator van de website zal u een e-mailbericht ( {0} ) sturen zodra uw verzoek is goedgekeurd ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Inloggen met e-mail",
- SMForm_Error_Email_Invalid: "Ongeldig e-mailadres",
- SMProfile_Update_Details: "Werk uw gegevens bij",
- SMResetPass_Continue: "Doorgaan",
- dialogMixinTranslations_forgot_password: "Wachtwoord vergeten?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "We hebben u een e-mailbericht gestuurd met een link waarmee u uw wachtwoord opnieuw kunt instellen.",
- SMForm_Error_Password_Retype: "De wachtwoorden komen niet overeen",
- SMForm_Error_19972: "Ongeldige token",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Stel het wachtwoord opnieuw in",
- SMResetPass_Reset_Fail: "Het wachtwoord kon niet worden gewijzigd. Probeer het later opnieuw.",
- SMRegister_Already_Have_User: "Ik ben al een gebruiker",
- SMResetPassMail_confirmation_msg: "We hebben u een e-mailbericht gestuurd met een link waarmee u uw wachtwoord opnieuw kunt instellen",
- SMRegister_GO: "VERDER",
- SMResetPass_New_Password: "Vul een nieuw wachtwoord in",
- SMResetPassMail_title: "Stel het wachtwoord opnieuw in",
- SMContainer_Need_Log_In: "U moet ingelogd zijn om deze pagina te kunnen zien.",
- SMResetPass_Message: "Om een nieuw wachtwoord in te stellen moet u het in beide velden hieronder invullen. ",
- SMForm_Error_19988: "Validatiefout",
- SMForm_Error_General_Err: "Serverfout. Probeer het later opnieuw.",
- SMForm_Retype_Password: "Typ het wachtwoord opnieuw",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Stel het wachtwoord opnieuw in",
- PasswordLogin_AdministratorLogin: "Inloggen als administrator",
- SMProfile_Update: "Bijwerken",
- SMResetPassMail_Enter_Email: "Vul uw e-mailadres in",
- SMForm_Error_19980: "Geblokkeerd door de eigenaar van de website",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Ledentoegang",
- PasswordLogin_Cancel: "Annuleren",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Ongeldige sessie"
- },
- tr: {
- SMResetPass_Reset_Succ: "Şifrenizi yeniden ayarlama başarılı.",
- SMForm_Password: "Şifre",
- SMLogin_Remember_Me: "Beni hatırla",
- PasswordLogin_Password: "Şifre",
- SMForm_Error_Password_Blank: "Şifre bos olamaz",
- SMRegister_Login: "Giriş",
- SMForm_Error_19999: "Bilinmeyen kullanıcı",
- SMForm_Error_19958: "Üyelik talebiniz site sahibinden onay bekliyor",
- SMResetPass_Retype_Password: "Yeniden girin:",
- SMForm_Error_Password_Length: "Şifre uzunlugu {0} ile {1} arasında olmalıdır",
- SMContainer_OK: "TAMAM",
- SMResetPassMail_Back_Login: "Giriş'e Dön",
- dialogMixinTranslations_forgot_password_mobile: "Sifrenizi unuttunuz mu?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Şifreniz değiştirildi.",
- dialogMixinTranslations_login_google: "Google+ ile giriş yapın",
- SMForm_Error_19995: "Bu e-posta kullanımda bile",
- SMResetPassMail_confirmation_title: "Lütfen e-postanızı kontrol edin",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Şifrenizi tekrar girin",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Yeni bir şifre girin",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Yeni şifrenizi aşağıya girin",
- SMLogin_OR: "Veya",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Lütfen E-Postanızı Kontrol Edin",
- SMRegister_sign_up: "Kaydol",
- dialogMixinTranslations_signup_facebook: "Facebook ile hesabınızı oluşturun",
- SMForm_Error_Email_Blank: "E-posta boş olamaz",
- PasswordLogin_Header: "Bu sayfayi görüntülemek için şifreyi girin",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Lütfen aşağıya şifrenizi girin.",
- SMForm_Error_Non_Ascii_Chars: "Sifre sadece ASCII karakterleri içermelidir",
- SMForm_Email: "E-posta",
- dialogMixinTranslations_Log_In: "Giriş",
- PasswordLogin_Wrong_Password: "Lütfen doğru şifreyi girin",
- dialogMixinTranslations_login_facebook: "Facebook ile giriş yapın",
- SMLogin_Forgot_Password: "Sifrenizi unuttunuz mu?",
- dialogMixinTranslations_signup_switch_email: "E-Postanızla hesabınızı oluşturun",
- dialogMixinTranslations_forgot_password_mobile_new: "Unuttunuz mu?",
- PasswordLogin_Error_General: "Sunucu hatası - -Oturum açılamıyor",
- dialogMixinTranslations_Password_Reset_TooShort: "Şifreniz 4-15 karakter uzunluğunda olmalıdır",
- SMContainer_Show_Confirm: "Bu sayfa üye girişiyle korunmaktadır. Kullanıcılarınız giriş yaptıktan sonra bu sayfayı görebilecekler.",
- dialogMixinTranslations_Log_In_Title: "Giriş",
- SMContainer_Show_Confirm2: "Sitenizin üyelerini yönetmek için lütfen yönetim panonuzda Kişiler'e gidin ve Site Üyeleri'ne tıklayın.",
- dialogMixinTranslations_switch_to_signup: "Bir hesabınız yok mu? ",
- SMContain_Cancel: "İptal",
- SMLogin_Login: "Giriş",
- SMApply_Success1: "Başarılı! Üye girişi talebiniz gönderildi ve onay bekliyor.",
- SMForm_Error_19976: "Yanlış e-posta veya şifre",
- dialogMixinTranslations_signup_google: "Google+ ile hesabınızı oluşturun",
- SMApply_Success2: "Talebiniz onaylandığında site yöneticisi size e-posta( {0} ) yoluyla bildirecektir ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "E-Postanızla giriş yapın",
- SMForm_Error_Email_Invalid: "E-posta geçersiz",
- SMProfile_Update_Details: "Bilgilerinizi güncelleyin",
- SMResetPass_Continue: "Devam",
- dialogMixinTranslations_forgot_password: "Sifrenizi unuttunuz mu?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Sifrenizi yenilemeniz için size bir e-posta gönderdik.",
- SMForm_Error_Password_Retype: "Şifreler aynı degil",
- SMForm_Error_19972: "Geçersiz jeton",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Şifreyi Sıfırla",
- SMResetPass_Reset_Fail: "Şifre değiştirilemedi. Daha sonra tekrar deneyin.",
- SMRegister_Already_Have_User: "Zaten bir kullanıcıyım",
- SMResetPassMail_confirmation_msg: "Size şifrenizi sıfırlamanızı sağlayacak bir bağlantı içeren bir e-posta gönderdik.",
- SMRegister_GO: "GIT",
- SMResetPass_New_Password: "Yeni bir şifre girin",
- SMResetPassMail_title: "Şifreyi Sıfırla",
- SMContainer_Need_Log_In: "Bu sayfayı görüntülemek için giriş yapmanız gerekir.",
- SMResetPass_Message: "Yeni şifrenizi belirlemek için lütfen aşağıdaki iki alana da girin. ",
- SMForm_Error_19988: "Doğrulama Hatası",
- SMForm_Error_General_Err: "Sunucu hatası. Daha sonra yeniden deneyin.",
- SMForm_Retype_Password: "Şifreyi yeniden yazın",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Şifreyi Sıfırla",
- PasswordLogin_AdministratorLogin: "Yönetici Girişi",
- SMProfile_Update: "Güncelle",
- SMResetPassMail_Enter_Email: "Lütfen e-posta adresinizi girin",
- SMForm_Error_19980: "Site sahibi tarafindan bloke edildi",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Misafir Alanı",
- PasswordLogin_Cancel: "İptal",
- PasswordLogin_Submit: "Tamam",
- SMForm_Error_19984: "Geçersiz Oturum"
- },
- sv: {
- SMResetPass_Reset_Succ: "Du har återställt ditt lösenord.",
- SMForm_Password: "Lösenord",
- SMLogin_Remember_Me: "Kom ihåg mig",
- PasswordLogin_Password: "Lösenord",
- SMForm_Error_Password_Blank: "Lösenord kan inte vara tomt",
- SMRegister_Login: "Logga in",
- SMForm_Error_19999: "Okänd användare",
- SMForm_Error_19958: "Din medlemsbegäran väntar på godkännande från sidans ägare",
- SMResetPass_Retype_Password: "Skriv in igen:",
- SMForm_Error_Password_Length: "Lösenordets längd måste vara mellan {0} och {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Tillbaka till inloggning",
- dialogMixinTranslations_forgot_password_mobile: "Glömt ditt lösenord?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Ditt lösenord har ändrats.",
- dialogMixinTranslations_login_google: "Logga in med Google+",
- SMForm_Error_19995: "E-posten är upptagen",
- SMResetPassMail_confirmation_title: "Kontrollera din e-post",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Skriv in lösenord igen",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Ange ett nytt lösenord",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Skriv in ditt nya lösenord nedan",
- SMLogin_OR: "Eller",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Vänligen kontrollera din e-post",
- SMRegister_sign_up: "Registrera dig",
- dialogMixinTranslations_signup_facebook: "Registrera dig med Facebook",
- SMForm_Error_Email_Blank: "E-post kan inte vara tom",
- PasswordLogin_Header: "Skriv in lösenord för att visa sidan",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Vänligen skriv in lösenord nedan.",
- SMForm_Error_Non_Ascii_Chars: "Lösenord får endast innehålla ASCII-tecken",
- SMForm_Email: "E-post",
- dialogMixinTranslations_Log_In: "logga in",
- PasswordLogin_Wrong_Password: "Ange rätt lösenord",
- dialogMixinTranslations_login_facebook: "Logga in med Facebook",
- SMLogin_Forgot_Password: "Glömt ditt lösenord?",
- dialogMixinTranslations_signup_switch_email: "Registrera dig med e-post",
- dialogMixinTranslations_forgot_password_mobile_new: "glömt?",
- PasswordLogin_Error_General: "Serverfel – kunde inte logga in",
- dialogMixinTranslations_Password_Reset_TooShort: "Lösenord måste vara 4-15 tecken",
- SMContainer_Show_Confirm: "Denna sida skyddas med en medlemsinloggning. Dina besökare kan se den här sidan när de har loggat in.",
- dialogMixinTranslations_Log_In_Title: "Logga in",
- SMContainer_Show_Confirm2: "För att hantera dina sidas medlemmar, gå till dina Kontakter från din Översikt och klicka på Sidmedlemmar",
- dialogMixinTranslations_switch_to_signup: "Har du inget konto?",
- SMContain_Cancel: "Avbryt",
- SMLogin_Login: "Logga in",
- SMApply_Success1: "Klart! Din begäran om medlemsinloggning har skickats och väntar på godkännande.",
- SMForm_Error_19976: "Fel e-post eller lösenord",
- dialogMixinTranslations_signup_google: "Registrera dig med Google+",
- SMApply_Success2: "Sidans administratör meddelar dig via e-post ({0}) så fort din begäran har godkänts ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Logga in med e-post",
- SMForm_Error_Email_Invalid: "Ogiltig e-post",
- SMProfile_Update_Details: "Uppdatera dina uppgifter",
- SMResetPass_Continue: "Fortsätt",
- dialogMixinTranslations_forgot_password: "Glömt ditt lösenord?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Vi har skickat ett mejl med en länk som gör att du kan återställa ditt lösenord.",
- SMForm_Error_Password_Retype: "Lösenordet matchar inte varandra",
- SMForm_Error_19972: "Ogiltig token",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Återställ lösenord",
- SMResetPass_Reset_Fail: "Lösenordet kunde inte ändras. Försök igen senare.",
- SMRegister_Already_Have_User: "Jag är redan en användare",
- SMResetPassMail_confirmation_msg: "Vi har skickat ett mejl med en länk som gör att du kan återställa ditt lösenord",
- SMRegister_GO: "KÖR",
- SMResetPass_New_Password: "Ange ett nytt lösenord",
- SMResetPassMail_title: "Återställ lösenord",
- SMContainer_Need_Log_In: "Du måste vara inloggad för att visa den här sidan.",
- SMResetPass_Message: "Ange ett nytt lösenord genom att skriva in det i båda fälten nedan. ",
- SMForm_Error_19988: "Valideringsfel",
- SMForm_Error_General_Err: "Serverfel. försök igen senare.",
- SMForm_Retype_Password: "Skriv in lösenord igen",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Återställ lösenord",
- PasswordLogin_AdministratorLogin: "Adminstratörsinloggning",
- SMProfile_Update: "Uppdatera",
- SMResetPassMail_Enter_Email: "Skriv in din e-postadress",
- SMForm_Error_19980: "Blockerad av sidans ägare",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Gästområde",
- PasswordLogin_Cancel: "Avbryt",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Ogiltig session"
- },
- pt: {
- SMResetPass_Reset_Succ: "Você redefiniu sua senha com sucesso.",
- SMForm_Password: "Senha",
- SMLogin_Remember_Me: "Lembre-se de mim",
- PasswordLogin_Password: "Senha",
- SMForm_Error_Password_Blank: "O campo da senha não pode estar vazio",
- SMRegister_Login: "Login",
- SMForm_Error_19999: "Usuário desconhecido",
- SMForm_Error_19958: "Seu pedido de login está aguardando a aprovação do proprietário do site",
- SMResetPass_Retype_Password: "Digite novamente:",
- SMForm_Error_Password_Length: "Senha deve ter entre {0} e {1} caracteres",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Voltar para Login",
- dialogMixinTranslations_forgot_password_mobile: "Esqueceu sua senha?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Sua senha foi alterada.",
- dialogMixinTranslations_login_google: "Login com Google+",
- SMForm_Error_19995: "E-mail já está sendo usado",
- SMResetPassMail_confirmation_title: "Por favor, verifique seu email",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Digite sua senha novamente",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Insira uma nova senha",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Insira sua nova senha abaixo",
- SMLogin_OR: "Ou",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Por favor, verifique seu email.",
- SMRegister_sign_up: "Registre-se",
- dialogMixinTranslations_signup_facebook: "Registre-se com Facebook",
- SMForm_Error_Email_Blank: "Campo E-mail não pode estar vazio",
- PasswordLogin_Header: "Insira a senha para ver esta página",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Por favor, insira a senha abaixo.",
- SMForm_Error_Non_Ascii_Chars: "A senha deve conter apenas caracteres ASCII",
- SMForm_Email: "E-mail",
- dialogMixinTranslations_Log_In: "Login",
- PasswordLogin_Wrong_Password: "Por favor, insira a senha correta",
- dialogMixinTranslations_login_facebook: "Login com Facebook",
- SMLogin_Forgot_Password: "Esqueceu sua senha?",
- dialogMixinTranslations_signup_switch_email: "Registre-se com email",
- dialogMixinTranslations_forgot_password_mobile_new: "esqueceu?",
- PasswordLogin_Error_General: "Erro de servidor - Não foi possível fazer login",
- dialogMixinTranslations_Password_Reset_TooShort: "A senha deve ter entre 4 e 15 caracteres",
- SMContainer_Show_Confirm: "Esta página está protegida com login de membros. Seus usuários poderão ver esta página depois de fazerem login.",
- dialogMixinTranslations_Log_In_Title: "Login",
- SMContainer_Show_Confirm2: "Para gerenciar os membros do seu site, vá em seus Contatos a partir do Painel de Controle e clique em 'Membros do site'",
- dialogMixinTranslations_switch_to_signup: "Ainda não tem uma conta?",
- SMContain_Cancel: "Cancelar",
- SMLogin_Login: "Login",
- SMApply_Success1: "Seu pedido de login foi enviado com sucesso e aguarda aprovação.",
- SMForm_Error_19976: "E-mail ou senha incorreta",
- dialogMixinTranslations_signup_google: "Registre-se com Google+",
- SMApply_Success2: "O administrador do site irá enviar-lhe uma notificação via email( {0} ) assim que o pedido for aprovado ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Login com email",
- SMForm_Error_Email_Invalid: "Email inválido",
- SMProfile_Update_Details: "Update your details",
- SMResetPass_Continue: "Continuar",
- dialogMixinTranslations_forgot_password: "Esqueceu sua senha?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Enviamos um email com o link para redefinir sua senha. ",
- SMForm_Error_Password_Retype: "Senhas não correspondem",
- SMForm_Error_19972: "Token Inválido",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Redefinir Senha",
- SMResetPass_Reset_Fail: "Não foi possível alterar a senha. Tente novamente mais tarde.",
- SMRegister_Already_Have_User: "Já sou usuário",
- SMResetPassMail_confirmation_msg: "Enviamos um e-mail com um link que lhe permitirá redefinir sua senha",
- SMRegister_GO: "OK",
- SMResetPass_New_Password: "Insira uma nova senha",
- SMResetPassMail_title: "Redefinir Senha",
- SMContainer_Need_Log_In: "Para ver esta página, você precisa fazer login.",
- SMResetPass_Message: "Para definir sua nova senha, por favor, digite-a nos dois campos abaixo: ",
- SMForm_Error_19988: "Erro de Validação",
- SMForm_Error_General_Err: "Erro de servidor. tente novamente mais tarde.",
- SMForm_Retype_Password: "Digite sua senha novamente",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Redefinir Senha",
- PasswordLogin_AdministratorLogin: "Login de administrador",
- SMProfile_Update: "Update",
- SMResetPassMail_Enter_Email: "Por favor, insira seu endereço de e-mail",
- SMForm_Error_19980: "Bloqueado pelo proprietário do site",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Área de convidados",
- PasswordLogin_Cancel: "Cancelar",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Sessão Inválida"
- },
- no: {
- SMResetPass_Reset_Succ: "Du har nå tilbakestillt passordet.",
- SMForm_Password: "Passord",
- SMLogin_Remember_Me: "Husk meg",
- PasswordLogin_Password: "Passord",
- SMForm_Error_Password_Blank: "Passordet kan ikke stå tomt",
- SMRegister_Login: "Logg inn",
- SMForm_Error_19999: "Ukjent bruker",
- SMForm_Error_19958: "Din medlemsforespørsel venter godkjenning fra nettstedets eier",
- SMResetPass_Retype_Password: "Skriv på nytt:",
- SMForm_Error_Password_Length: "Passordets lengde må være mellom {0} og {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Tilbake til innlogging",
- dialogMixinTranslations_forgot_password_mobile: "Glemt passordet?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Passordet ditt har blitt endret.",
- dialogMixinTranslations_login_google: "Logg inn med Google+",
- SMForm_Error_19995: "E-post er allerede tatt",
- SMResetPassMail_confirmation_title: "Vennligst sjekk e-posten din",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Skriv inn passord på nytt",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Skriv inn et nytt passord",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Skriv inn ditt nye passord nedenfor",
- SMLogin_OR: "Eller",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Vennligst sjekk e-posten din",
- SMRegister_sign_up: "Registrer deg",
- dialogMixinTranslations_signup_facebook: "Registrer deg med Facebook",
- SMForm_Error_Email_Blank: "E-post kan ikke stå tomt",
- PasswordLogin_Header: "Skriv inn passord for å se denne siden",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Vennligst oppgi passord nedenfor.",
- SMForm_Error_Non_Ascii_Chars: "Passordet må kun inneholde ASCII-tegn",
- SMForm_Email: "E-post",
- dialogMixinTranslations_Log_In: "Logg inn",
- PasswordLogin_Wrong_Password: "Vennligst oppgi riktig passord",
- dialogMixinTranslations_login_facebook: "Logg inn med Facebook",
- SMLogin_Forgot_Password: "Glemt passordet?",
- dialogMixinTranslations_signup_switch_email: "Registrer deg med e-post",
- dialogMixinTranslations_forgot_password_mobile_new: "glemt?",
- PasswordLogin_Error_General: "Serverfeil - kan ikke logge på",
- dialogMixinTranslations_Password_Reset_TooShort: "Passordet bestå av 4-15 tegn",
- SMContainer_Show_Confirm: "Denne siden er beskyttet med et medlems pålogging. Brukerne vil kunne se denne siden når de er innlogget.",
- dialogMixinTranslations_Log_In_Title: "Logg inn",
- SMContainer_Show_Confirm2: "For å administrere nettstedets medlemmer, gå til dine kontakter fra dashbordet og klikk nettstedmedlemmer",
- dialogMixinTranslations_switch_to_signup: "Har du ikke en konto?",
- SMContain_Cancel: "Avbryt",
- SMLogin_Login: "Logg inn",
- SMApply_Success1: "Supert! Din forespørsel om medlemsinnlogging er sendt og venter på godkjenning.",
- SMForm_Error_19976: "Feil e-post eller passord",
- dialogMixinTranslations_signup_google: "Registrer deg med Google+",
- SMApply_Success2: "Nettstedets administrator vil varsle deg via e-post( {0} ) med en gang forespørselen din har blitt godkjent ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Logg inn med e-post",
- SMForm_Error_Email_Invalid: "E-post er ugyldig",
- SMProfile_Update_Details: "Oppdater informasjon",
- SMResetPass_Continue: "Fortsett",
- dialogMixinTranslations_forgot_password: "Glemt passordet?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Vi har sendt deg en link for å tilbakestille passordet ditt.",
- SMForm_Error_Password_Retype: "Passordene er ikke de samme",
- SMForm_Error_19972: "Ugyldig symbol",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Nullstill passord",
- SMResetPass_Reset_Fail: "Passord kunne ikke endres. Prøv igjen senere.",
- SMRegister_Already_Have_User: "Jeg er allerede en bruker",
- SMResetPassMail_confirmation_msg: "Vi har sendt deg en e-post med en link som vil tillate deg å nullstille passordet ditt",
- SMRegister_GO: "OK",
- SMResetPass_New_Password: "Skriv inn et nytt passord",
- SMResetPassMail_title: "Nullstill passord",
- SMContainer_Need_Log_In: "For å se denne siden, må du være logget inn.",
- SMResetPass_Message: "Hvis du vil angi det nye passordet, vennligst skriv det i begge felt. ",
- SMForm_Error_19988: "Valideringsfeil",
- SMForm_Error_General_Err: "Serverfeil. Prøv igjen senere.",
- SMForm_Retype_Password: "Skriv inn passord på nytt",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Nullstill passord",
- PasswordLogin_AdministratorLogin: "Administrator Logg inn",
- SMProfile_Update: "Oppdater",
- SMResetPassMail_Enter_Email: "Fyll inn din e-postadresse",
- SMForm_Error_19980: "Blokkert av nettstedets eier",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Gjesteområde",
- PasswordLogin_Cancel: "Avbryt",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Ugyldig økt"
- },
- da: {
- SMResetPass_Reset_Succ: "Du har med succes nulstillet din adgangskode.",
- SMForm_Password: "Adgangskode",
- SMLogin_Remember_Me: "Husk mig",
- PasswordLogin_Password: "Adgangskode",
- SMForm_Error_Password_Blank: "Adgangskode må ikke være tomt",
- SMRegister_Login: "Log ind",
- SMForm_Error_19999: "Ukendt bruger",
- SMForm_Error_19958: "Din medlems anmodning afventer godkendelse fra hjemmesidens ejer.",
- SMResetPass_Retype_Password: "Indtast igen:",
- SMForm_Error_Password_Length: "Adgangskoden skal være mellem {0} og {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Tilbage til log ind",
- dialogMixinTranslations_forgot_password_mobile: "Har du glemt din adgangskode?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Din adgangskode er blevet ændret.",
- dialogMixinTranslations_login_google: "Log ind med Google+",
- SMForm_Error_19995: "E-mail er allerede taget",
- SMResetPassMail_confirmation_title: "Tjek venligst dine e-mails",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Indtast adgangskode igen",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Indtast en ny adgangskode",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Indtast din nye adgangskode hernede",
- SMLogin_OR: "eller",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Kontroller venligst din e-mail",
- SMRegister_sign_up: "Tilmeld dig",
- dialogMixinTranslations_signup_facebook: "Tilmeld dig med Facebook",
- SMForm_Error_Email_Blank: "E-mail feltet må ikke være tomt",
- PasswordLogin_Header: "Indtast adgangskode for at se denne side",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Indtast venligst adgangskoden hernede.",
- SMForm_Error_Non_Ascii_Chars: "Adgangskode må kun indeholde ASCII-tegn",
- SMForm_Email: "E-mail",
- dialogMixinTranslations_Log_In: "log ind",
- PasswordLogin_Wrong_Password: "Venligst indtast den korrekte adgangskode",
- dialogMixinTranslations_login_facebook: "Log ind med Facebook",
- SMLogin_Forgot_Password: "Har du glemt din adgangskode?",
- dialogMixinTranslations_signup_switch_email: "Tilmeld dig med e-mail",
- dialogMixinTranslations_forgot_password_mobile_new: "glemt?",
- PasswordLogin_Error_General: "Serverfejl - kan ikke logge ind",
- dialogMixinTranslations_Password_Reset_TooShort: "Adgangskoden skal være mellem 4 - 15 tegn",
- SMContainer_Show_Confirm: "Denne side er beskyttet med et login til medlemmer. Dine brugere vil kunne se denne side, når de er logget ind.",
- dialogMixinTranslations_Log_In_Title: "Log ind",
- SMContainer_Show_Confirm2: "Gå til dine kontakter fra din hjemmesides oversigt, og klik på Hjemmesidemedlemmer for at administrere dem.",
- dialogMixinTranslations_switch_to_signup: "Har du ingen konto?",
- SMContain_Cancel: "Annuller",
- SMLogin_Login: "Log ind",
- SMApply_Success1: "Succes! Din anmodning om medlemslogin er sendt og afventer godkendelse.",
- SMForm_Error_19976: "Forkert e-mail eller adgangskode",
- dialogMixinTranslations_signup_google: "Tilmeld dig med Google+",
- SMApply_Success2: "Hjemmesideadministratoren vil give dig besked via e-mail( {0} ) når din anmodning er blevet godkendt.",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Log ind med e-mail",
- SMForm_Error_Email_Invalid: "E-mail er ugyldig",
- SMProfile_Update_Details: "Opdater venligst dine detaljer",
- SMResetPass_Continue: "Næste",
- dialogMixinTranslations_forgot_password: "Har du glemt din adgangskode?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Vi har sendt en link til dig via e-mail for at nulstille adgangskoden.",
- SMForm_Error_Password_Retype: "Adgangskoderne er ikke ens",
- SMForm_Error_19972: "ugyldig kode",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Nulstil adgangskode",
- SMResetPass_Reset_Fail: "Adgangskoden kunne ikke ændres. Prøv igen senere.",
- SMRegister_Already_Have_User: "Jeg er allerede bruger",
- SMResetPassMail_confirmation_msg: "Vi har sendt dig en e-mail med et link, som giver dig mulighed for at nulstille din adgangskode",
- SMRegister_GO: "START",
- SMResetPass_New_Password: "Indtast en ny adgangskode",
- SMResetPassMail_title: "Nulstil adgangskode",
- SMContainer_Need_Log_In: "For at se denne side skal du logge ind.",
- SMResetPass_Message: "For at angive din nye adgangskode, venligst indtast det i begge felter herunder. ",
- SMForm_Error_19988: "Valideringsfejl",
- SMForm_Error_General_Err: "Serverfejl. Prøv igen senere.",
- SMForm_Retype_Password: "Gentag adgangskode",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Nulstil adgangskode",
- PasswordLogin_AdministratorLogin: "Administratorlogin",
- SMProfile_Update: "Opdater",
- SMResetPassMail_Enter_Email: "Venligst indtast din e-mailadresse",
- SMForm_Error_19980: "Blokeret af hjemmesideejer",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Gæsteområde",
- PasswordLogin_Cancel: "Annuller",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Ugyldig session"
- },
- hi: {
- SMResetPass_Reset_Succ: "You’ve successfully reset your password.",
- SMForm_Password: "Password",
- SMLogin_Remember_Me: "Remember Me",
- PasswordLogin_Password: "Password",
- SMForm_Error_Password_Blank: "Password cannot be blank",
- SMRegister_Login: "Login",
- SMForm_Error_19999: "Unknown user",
- SMForm_Error_19958: "Your member request is waiting approval from the site owner",
- SMResetPass_Retype_Password: "पुनः टाइप करें:",
- SMForm_Error_Password_Length: "Password length must be between {0} and {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Back to Login",
- dialogMixinTranslations_forgot_password_mobile: "पासवर्ड भूल गए?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Your password has been changed.",
- dialogMixinTranslations_login_google: "Log in with Google+",
- SMForm_Error_19995: "Email is already taken",
- SMResetPassMail_confirmation_title: "कृपया अपनी ई-मेल देखें",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Re-type password",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Enter a new password",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Enter your new password below",
- SMLogin_OR: "Or",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Please Check Your Email",
- SMRegister_sign_up: "Sign up",
- dialogMixinTranslations_signup_facebook: "Sign up with Facebook",
- SMForm_Error_Email_Blank: "Email cannot be blank",
- PasswordLogin_Header: "Enter password to view this page",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "This area is for members only.\nPlease enter the password below.",
- SMForm_Error_Non_Ascii_Chars: "Password must contain only ASCII characters",
- SMForm_Email: "Email",
- dialogMixinTranslations_Log_In: "लॉग इन करें",
- PasswordLogin_Wrong_Password: "Please enter the correct password",
- dialogMixinTranslations_login_facebook: "Log in with Facebook",
- SMLogin_Forgot_Password: "Forgot your password?",
- dialogMixinTranslations_signup_switch_email: "Sign up with Email",
- dialogMixinTranslations_forgot_password_mobile_new: "भूल गए?",
- PasswordLogin_Error_General: "Server error - Unable to log in",
- dialogMixinTranslations_Password_Reset_TooShort: "Password must be 4-15 characters",
- SMContainer_Show_Confirm: "This page is protected with a member login. Your users will be able to see this page once they are logged in.",
- dialogMixinTranslations_Log_In_Title: "लॉग इन करें",
- SMContainer_Show_Confirm2: "To manage your site's members, go to your Contacts from the Dashboard and click Site Members",
- dialogMixinTranslations_switch_to_signup: "एक अकाउंट नहीं है?",
- SMContain_Cancel: "Cancel",
- SMLogin_Login: "Login",
- SMApply_Success1: "Success! Your member login request has been sent and is awaiting approval.",
- SMForm_Error_19976: "Wrong email or password",
- dialogMixinTranslations_signup_google: "Sign up with Google+",
- SMApply_Success2: "The site administrator will notify you via email( {0} ) once your request has been approved ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Log in with Email",
- SMForm_Error_Email_Invalid: "Email is invalid",
- SMProfile_Update_Details: "Update your details",
- SMResetPass_Continue: "Continue",
- dialogMixinTranslations_forgot_password: "पासवर्ड भूल गए?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "We’ve emailed you a link to reset your password.",
- SMForm_Error_Password_Retype: "Passwords are not the same",
- SMForm_Error_19972: "Invalid token",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Reset Password",
- SMResetPass_Reset_Fail: "Password could not have been changed. Try again later.",
- SMRegister_Already_Have_User: "I'm already a user",
- SMResetPassMail_confirmation_msg: "हमने आपको ई-मेल से एक लिंक भेजी है जिसके द्वारा आप अपना पासवर्ड दुबारा सेट कर सकेंगे",
- SMRegister_GO: "GO",
- SMResetPass_New_Password: "नया पासवर्ड प्रविष्ट करें",
- SMResetPassMail_title: "पासवर्ड दुबारा सेट करें",
- SMContainer_Need_Log_In: "To view this page, you need to be logged in.",
- SMResetPass_Message: "अपना नया पासवर्ड सेट करने के लिए, कृपया उसे नीचे दिए गए दोनों स्थानों में प्रविष्ट करें। ",
- SMForm_Error_19988: "Validation Error",
- SMForm_Error_General_Err: "Server error. try again later.",
- SMForm_Retype_Password: "Retype password",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Reset Password",
- PasswordLogin_AdministratorLogin: "Administrator Login",
- SMProfile_Update: "Update",
- SMResetPassMail_Enter_Email: "Please enter your email address",
- SMForm_Error_19980: "Blocked by site owner",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Your Password, Please.",
- PasswordLogin_Cancel: "Cancel",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Invalid Session"
- },
- zh: {
- SMResetPass_Reset_Succ: "You’ve successfully reset your password.",
- SMForm_Password: "Password",
- SMLogin_Remember_Me: "Remember Me",
- PasswordLogin_Password: "Password",
- SMForm_Error_Password_Blank: "Password cannot be blank",
- SMRegister_Login: "Login",
- SMForm_Error_19999: "Unknown user",
- SMForm_Error_19958: "Your member request is waiting approval from the site owner",
- SMResetPass_Retype_Password: "再次键入:",
- SMForm_Error_Password_Length: "Password length must be between {0} and {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Back to Login",
- dialogMixinTranslations_forgot_password_mobile: "Forgot your password?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Your password has been changed.",
- dialogMixinTranslations_login_google: "Log in with Google+",
- SMForm_Error_19995: "Email is already taken",
- SMResetPassMail_confirmation_title: "请查看您的电子邮件",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Re-type password",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Enter a new password",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Enter your new password below",
- SMLogin_OR: "Or",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Please Check Your Email",
- SMRegister_sign_up: "Sign up",
- dialogMixinTranslations_signup_facebook: "Sign up with Facebook",
- SMForm_Error_Email_Blank: "Email cannot be blank",
- PasswordLogin_Header: "Enter password to view this page",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "This area is for members only.\nPlease enter the password below.",
- SMForm_Error_Non_Ascii_Chars: "Password must contain only ASCII characters",
- SMForm_Email: "Email",
- dialogMixinTranslations_Log_In: "log in",
- PasswordLogin_Wrong_Password: "Please enter the correct password",
- dialogMixinTranslations_login_facebook: "Log in with Facebook",
- SMLogin_Forgot_Password: "Forgot your password?",
- dialogMixinTranslations_signup_switch_email: "Sign up with Email",
- dialogMixinTranslations_forgot_password_mobile_new: "forgot?",
- PasswordLogin_Error_General: "Server error - Unable to log in",
- dialogMixinTranslations_Password_Reset_TooShort: "Password must be 4-15 characters",
- SMContainer_Show_Confirm: "This page is protected with a member login. Your users will be able to see this page once they are logged in.",
- dialogMixinTranslations_Log_In_Title: "Log in",
- SMContainer_Show_Confirm2: "To manage your site's members, go to your Contacts from the Dashboard and click Site Members",
- dialogMixinTranslations_switch_to_signup: "Don't have an account?",
- SMContain_Cancel: "Cancel",
- SMLogin_Login: "Login",
- SMApply_Success1: "Success! Your member login request has been sent and is awaiting approval.",
- SMForm_Error_19976: "Wrong email or password",
- dialogMixinTranslations_signup_google: "Sign up with Google+",
- SMApply_Success2: "The site administrator will notify you via email( {0} ) once your request has been approved ",
- SMForm_Error_18880: "Email address must be provided",
- dialogMixinTranslations_login_switch_email: "Log in with Email",
- SMForm_Error_Email_Invalid: "Email is invalid",
- SMProfile_Update_Details: "Update your details",
- SMResetPass_Continue: "Continue",
- dialogMixinTranslations_forgot_password: "Forgot password?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "We’ve emailed you a link to reset your password.",
- SMForm_Error_Password_Retype: "Passwords are not the same",
- SMForm_Error_19972: "Invalid token",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Reset Password",
- SMResetPass_Reset_Fail: "Password could not have been changed. Try again later.",
- SMRegister_Already_Have_User: "I'm already a user",
- SMResetPassMail_confirmation_msg: "我们已向您发送一封包含链接的电子邮件,供您重置密码。",
- SMRegister_GO: "GO",
- SMResetPass_New_Password: "输入新密码",
- SMResetPassMail_title: "重置密码",
- SMContainer_Need_Log_In: "To view this page, you need to be logged in.",
- SMResetPass_Message: "要设置您的新密码,请在下方两个字段内输入新密码。 ",
- SMForm_Error_19988: "Validation Error",
- SMForm_Error_General_Err: "Server error. try again later.",
- SMForm_Retype_Password: "Retype password",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Reset Password",
- PasswordLogin_AdministratorLogin: "Administrator Login",
- SMProfile_Update: "Update",
- SMResetPassMail_Enter_Email: "Please enter your email address",
- SMForm_Error_19980: "Blocked by site owner",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Your Password, Please.",
- PasswordLogin_Cancel: "Cancel",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Invalid Session"
- },
- cs: {
- SMResetPass_Reset_Succ: "Úspěšně jste obnovili své heslo.",
- SMForm_Password: "Heslo",
- SMLogin_Remember_Me: "Zapamatovat si mě",
- PasswordLogin_Password: "Heslo",
- SMForm_Error_Password_Blank: "Heslo nemůže být prázdné",
- SMRegister_Login: "Přihlásit se",
- SMForm_Error_19999: "Neznámý uživatel ",
- SMForm_Error_19958: "Váš požadavek čeká na schválení vlastníkem webu",
- SMResetPass_Retype_Password: "Zadejte heslo znovu:",
- SMForm_Error_Password_Length: "Délka hesla musí být mezí {0} a {1}",
- SMContainer_OK: "OK",
- SMResetPassMail_Back_Login: "Zpátky k přihlášení ",
- dialogMixinTranslations_forgot_password_mobile: "Zapomněli jste heslo?",
- dialogMixinTranslations_RESET_PASSWORD_SUCESS_TITLE: "Vaše heslo bylo změněno.",
- dialogMixinTranslations_login_google: "Přihlásit se přes Google+",
- SMForm_Error_19995: "E-mail je již obsazen",
- SMResetPassMail_confirmation_title: "Zkontrolujte si prosím e-mail",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE: "Potvrďte heslo",
- dialogMixinTranslations_RESET_PASSWORD_NEWFIELD: "Zadejte nové heslo",
- dialogMixinTranslations_RESET_PASSWORD_TEXT: "Zadejte nové heslo níže",
- SMLogin_OR: "Nebo",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TITLE: "Zkontrolujte si prosím e-mail",
- SMRegister_sign_up: "Přihlásit se",
- dialogMixinTranslations_signup_facebook: "Registrovat se přes Facebook",
- SMForm_Error_Email_Blank: "E-mail nemůže být prázdný",
- PasswordLogin_Header: "Zadejte heslo k zobrazení této stránky",
- dialogMixinTranslations_GUEST_LOGIN_SUBTITLE: "Zadejte prosím heslo níže.",
- SMForm_Error_Non_Ascii_Chars: "Heslo musí obsahovat pouze ASCII znaky",
- SMForm_Email: "E-mail",
- dialogMixinTranslations_Log_In: "Přihlásit se",
- PasswordLogin_Wrong_Password: "Zadejte prosím správné heslo",
- dialogMixinTranslations_login_facebook: "Přihlásit se přes Facebook",
- SMLogin_Forgot_Password: "Zapomněli jste heslo?",
- dialogMixinTranslations_signup_switch_email: "Registrovat se pomocí e-mailu",
- dialogMixinTranslations_forgot_password_mobile_new: "zapomněli jste?",
- PasswordLogin_Error_General: "Chyba serveru - Nelze se přihlásit ",
- dialogMixinTranslations_Password_Reset_TooShort: "Heslo musí obsahovat 4–15 znaků",
- SMContainer_Show_Confirm: "Tato stránka je zabezpečená přihlášením uživatele. Vaši uživatelé budou mít možnost vidět tuto stránku, jakmile se přihlásí.",
- dialogMixinTranslations_Log_In_Title: "Přihlásit se",
- SMContainer_Show_Confirm2: "Chcete-li spravovat členy vašeho webu, přejděte z Ovládacího panelu do Seznamu kontaktů a klikněte na Členové webu",
- dialogMixinTranslations_switch_to_signup: "Nemáte účet?",
- SMContain_Cancel: "Zrušit",
- SMLogin_Login: "Přihlásit se",
- SMApply_Success1: "Povedlo se! Váš požadavek přihlásit se jako uživatel byl odeslán a čeká na schválení.",
- SMForm_Error_19976: "Nesprávný e-mail nebo heslo",
- dialogMixinTranslations_signup_google: "Registrovat se přes Google+",
- SMApply_Success2: "Správce webu vás bude informovat prostřednictvím emailu({0}), jakmile bude vaše žádost schválena",
- SMForm_Error_18880: "Musíte poskytnout e-mailovou adresu",
- dialogMixinTranslations_login_switch_email: "Přihlásit se pomocí e-mailu",
- SMForm_Error_Email_Invalid: "Email je neplatný",
- SMProfile_Update_Details: "Aktualizujte své údaje",
- SMResetPass_Continue: "Pokračovat",
- dialogMixinTranslations_forgot_password: "Zapomněli jste heslo?",
- dialogMixinTranslations_RESET_PASSWORD_CHECKEMAIL_TEXT: "Na váš e-mail jsme zaslali odkaz pro obnovení hesla.",
- SMForm_Error_Password_Retype: "Hesla nejsou stejná",
- SMForm_Error_19972: "Neplatný poukaz",
- dialogMixinTranslations_RESET_PASSWORD_TITLE: "Obnovit heslo",
- SMResetPass_Reset_Fail: "Heslo nemohlo být změněno. Zkuste to znovu později.",
- SMRegister_Already_Have_User: "Již mám účet",
- SMResetPassMail_confirmation_msg: "Zaslali jsme vám e-mail s odkazem, který Vám umožní obnovit heslo.",
- SMRegister_GO: "POKRAČOVAT",
- SMResetPass_New_Password: "Zadejte nové heslo",
- SMResetPassMail_title: "Obnovit heslo",
- SMContainer_Need_Log_In: "Pro zobrazení této stránky musíte být přihlášeni.",
- SMResetPass_Message: "Chcete-li nastavit nové heslo, zadejte ho prosím níže do obou polí. ",
- SMForm_Error_19988: "Chyba ověření",
- SMForm_Error_General_Err: "Chyba serveru. Zkuste to znovu později.",
- SMForm_Retype_Password: "Heslo znovu",
- dialogMixinTranslations_RESET_PASSWORD_BUTTON: "Obnovit heslo",
- PasswordLogin_AdministratorLogin: "Přihlášení správce",
- SMProfile_Update: "Aktualizovat",
- SMResetPassMail_Enter_Email: "Zadejte prosím vaši e-mailovou adresu",
- SMForm_Error_19980: "Blokováno vlastníkem webu",
- dialogMixinTranslations_GUEST_LOGIN_TITLE: "Sekce pro hosty",
- PasswordLogin_Cancel: "Zrušit",
- PasswordLogin_Submit: "OK",
- SMForm_Error_19984: "Neplatná relace"
- }
- });
- define("components/components/dialogs/dialogMixin", ["react", "lodash", "santaProps", "utils", "core", "components/components/dialogs/translations/dialogMixinTranslations", "reactDOM", "components/components/inputWithValidation/inputWithValidation", "siteButton"], function(a, b, c, d, e, f, g, h, i) {
- "use strict";
- var j = 1;
- return {
- PASS_MIN_LEN: 4,
- PASS_MAX_LEN: 15,
- propTypes: b.assign({
- smSettings: c.Types.SiteMembersSantaTypes.smSettings.isRequired,
- isMobileView: c.Types.isMobileView.isRequired,
- isSiteMembersDialogsOpenAllowed: c.Types.SiteMembersSantaTypes.isSiteMembersDialogsOpenAllowed,
- isPremiumUser: c.Types.isPremiumUser.isRequired,
- siteMembersUrl: c.Types.SiteMembersSantaTypes.siteMembersUrl.isRequired,
- metaSiteId: c.Types.RendererModel.metaSiteId.isRequired,
- biVisitorId: c.Types.biVisitorId,
- windowKeyboardEvent: c.Types.SiteAspects.windowKeyboardEvent,
- exitFullScreenMode: c.Types.exitFullScreenMode,
- enterFullScreenMode: c.Types.enterFullScreenMode,
- styleId: c.Types.Component.styleId,
- notClosable: a.PropTypes.bool,
- onCloseDialogCallback: a.PropTypes.func,
- onSubmitCallback: a.PropTypes.func,
- language: a.PropTypes.string
- }, c.santaTypesUtils.getSantaTypesByDefinition(h), c.santaTypesUtils.getSantaTypesByDefinition(i)),
- mixins: [e.compMixins.animationsMixin],
- getInitialState: function() {
- var a = this.props.isMobileView ? "mobile" : "desktop";
- this.canOpenSiteMembersDialogs = this.props.isSiteMembersDialogsOpenAllowed;
- return {
- showComponent: true,
- errMsg: "",
- oAuthErrMsg: "",
- $view: a,
- $canBeClosed: !this.props.notClosable ? "canBeClosed" : "",
- socialLoginEnabled: this.isSocialLogin(),
- socialLoginIframeReady: false
- }
- },
- componentWillMount: function() {
- if (!this.props.notClosable && this.props.windowKeyboardEvent) {
- this.props.windowKeyboardEvent.registerToEscapeKey(this)
- }
- },
- componentWillReceiveProps: function(a) {
- if (this.canOpenSiteMembersDialogs && this.canOpenSiteMembersDialogs !== a.isSiteMembersDialogsOpenAllowed) {
- this.closeDialog()
- }
- },
- componentWillUnmount: function() {
- if (this.props.windowKeyboardEvent) {
- this.props.windowKeyboardEvent.unRegisterKeys(this)
- }
- this.props.exitFullScreenMode()
- },
- onEscapeKey: function() {
- var a = true;
- this.closeDialog(a)
- },
- componentDidMount: function() {
- this.animate("dialog", "FadeIn", .5, 0);
- this.props.enterFullScreenMode()
- },
- onClickCloseButton: function() {
- var a = true;
- this.closeDialog(a)
- },
- closeDialog: function(a) {
- if (this.props.onCloseDialogCallback) {
- this.props.onCloseDialogCallback(this, false, a)
- } else {
- this.performCloseDialog()
- }
- },
- performCloseDialog: function(a) {
- this.animate("dialog", "FadeOut", .5, 0, null, {
- onComplete: function() {
- if (a) {
- a()
- }
- }
- })
- },
- submit: function() {
- if (this.shouldBlockSubmit && this.shouldBlockSubmit()) {
- this.blockSubmit(g.findDOMNode(this.refs.submitButton));
- return
- }
- var a = true;
- if (this.validateBeforeSubmit) {
- a = this.validateBeforeSubmit()
- }
- if (a) {
- if (this.props.onSubmitCallback) {
- this.props.onSubmitCallback(this.getDataToSubmit(), this)
- } else {
- d.log.error("dialogMixin: this.props.onSubmitCallback is not defined")
- }
- }
- },
- submitOnEnterKeyPress: function(a) {
- if (a.key === "Enter") {
- this.submit()
- }
- },
- getErrorMessage: function() {
- return this.state.errMsg
- },
- _toErrorKey: function(a) {
- var c = "SMForm_Error_";
- var d = b.startsWith(a, c) ? a : c + a;
- if (b.includes(d, "-")) {
- d = d.replace("-", "")
- }
- return d
- },
- setErrorMessageByCode: function(a) {
- if (a) {
- this.setErrorMessage(this._toErrorKey(a))
- } else {
- this.setState({
- errMsg: ""
- })
- }
- },
- setOuathErrorMessageByCode: function(a) {
- this.setState({
- oAuthErrMsg: a ? this.getText(this.props.language, this._toErrorKey(a)) : ""
- })
- },
- setErrorMessage: function(a) {
- var b = this.getText(this.props.language, a);
- this.setState({
- errMsg: b
- })
- },
- shouldDialogBeClosed: function() {
- return !this.state.showComponent
- },
- getCloseDialogSkinProperties: function() {
- return {
- "": {
- style: {
- display: "none"
- }
- }
- }
- },
- getMobileSocialLoginClass: function() {
- return this.state.socialLoginEnabled ? "socialLoginMode" : "emailLoginMode"
- },
- _isAsciiOnlyInput: function(a) {
- var b = a.length;
- var c = this.PASS_MAX_LEN;
- for (var d = 0; d < b && d < c; d++) {
- if (a.charCodeAt(d) > 127) {
- return false
- }
- }
- return true
- },
- _getEmailValidator: function(a) {
- return function(b) {
- if (b.length === 0) {
- return this.getText(a, "SMForm_Error_Email_Blank")
- }
- if (!d.validationUtils.isValidEmail(b)) {
- return this.getText(a, "SMForm_Error_Email_Invalid")
- }
- return false
- }.bind(this)
- },
- _getPasswordValidator: function(a) {
- return function(b) {
- if (b.length === 0) {
- return this.getText(a, "SMForm_Error_Password_Blank")
- }
- if (b.length < this.PASS_MIN_LEN || b.length > this.PASS_MAX_LEN) {
- return this.getText(a, "SMForm_Error_Password_Length").replace("{0}", this.PASS_MIN_LEN).replace("{1}", this.PASS_MAX_LEN)
- }
- if (!this._isAsciiOnlyInput(b)) {
- return this.getText(a, "SMForm_Error_Non_Ascii_Chars")
- }
- return false
- }.bind(this)
- },
- _onInputChange: function() {
- this.setErrorMessageByCode("")
- },
- createEmailInput: function(a, b) {
- var c = a.language;
- var d = this.getText(c, a.inputTitleKey);
- var e = this._getEmailValidator(c);
- var f = {
- refId: a.refId,
- inputTitleText: d,
- validators: [e],
- defaultValue: a.defaultValue || ""
- };
- return this.createInputWithValidation(f, b)
- },
- createPasswordInput: function(a, b) {
- var c = a.language;
- var d = this.getText(c, a.inputTitleKey);
- var e = a.overrideValidators || [this._getPasswordValidator(c)];
- var f = {
- refId: a.refId,
- inputTitleText: d,
- validators: e,
- type: "password",
- defaultValue: a.defaultValue
- };
- return this.createInputWithValidation(f, b)
- },
- createInputWithValidation: function(a, c) {
- a.validators = a.validators || [];
- c = c || {};
- var d = {
- lazyValidation: true,
- validators: a.validators,
- label: a.inputTitleText,
- ref: a.refId,
- defaultValue: a.defaultValue,
- type: a.type,
- onChange: this._onInputChange
- };
- b.merge(d, c);
- return this.createChildComponent({
- id: "inputWithValidation" + j++
- }, "wysiwyg.components.viewer.inputs.InputWithValidation", "inputWithValidation", d)
- },
- getText: function(a, c, d) {
- a = f[a] ? a : "en";
- c = f[a][c] ? c : "SMForm_Error_General_Err";
- var e = f[a][c];
- if (d) {
- b.forEach(d, function(a, b) {
- e = e.replace("{" + b + "}", a)
- })
- }
- return e
- },
- createXButton: function() {
- return {
- onClick: this.onClickCloseButton,
- className: this.props.isPremiumUser ? "" : this.props.styleId + "free"
- }
- },
- createContent: function() {
- return {
- className: this.getErrorMessage() ? this.props.styleId + "_validationError" : "",
- onKeyPress: this.submitOnEnterKeyPress
- }
- },
- createSubmitButton: function(a, b) {
- var c = {
- label: b || "GO",
- id: "ok"
- };
- var d = {
- align: "center"
- };
- var e = a;
- return this.createChildComponent(c, "wysiwyg.viewer.components.SiteButton", e, {
- skinPart: e,
- styleId: this.props.loadedStyles.b1,
- compProp: d,
- style: {
- position: "relative",
- height: "100%",
- width: "100%"
- },
- structure: {
- layout: {
- scale: .5
- }
- }
- })
- },
- _onTokenReceived: function(a) {
- if (a.token && typeof b.isFunction(this.props.onTokenMessage)) {
- this.props.onTokenMessage(a.token, a.vendor, this.refs[this.socialHolderRef].contentWindow, this)
- }
- },
- _onSocialLoginIframeLoaded: function() {
- this.setState({
- socialLoginIframeReady: true
- })
- },
- onSocialLoginIframeMessage: function(a) {
- switch (a.type) {
- case "page-ready":
- this._onSocialLoginIframeLoaded();
- break;
- case "auth-token":
- this._onTokenReceived(a);
- break
- }
- },
- getSocialLoginSkinParts: function(a, b, c) {
- var d = this.state.socialLoginIframeReady ? this.props.styleId + "_hide" : "";
- var e = this.props.smSettings.socialLoginGoogleEnabled ? this.props.styleId + "_google" : "";
- var f = this.props.smSettings.socialLoginFacebookEnabled ? this.props.styleId + "_facebook" : "";
- return {
- socialHolder: this._getSocialLoginIframeProps({
- mode: a,
- lang: b,
- vendors: [{
- id: "google",
- enabled: this.props.smSettings.socialLoginGoogleEnabled
- }, {
- id: "facebook",
- enabled: this.props.smSettings.socialLoginFacebookEnabled
- }]
- }),
- dummySocialButtons: {
- className: (d + " " + e + " " + f).trim()
- },
- googleButton: {
- children: this.getText(b, c.google)
- },
- facebookButton: {
- children: this.getText(b, c.facebook)
- },
- switchToEmailLink: {
- children: this.getText(b, c.switchEmail),
- onClick: this.toggleSocialLoginDisplayState
- },
- switchToSocialLink: {
- className: (this.props.isPremiumUser ? "" : this.props.styleId + "free") + " " + (this.props.styleId + "_" + (this.isSocialLogin ? this.getMobileSocialLoginClass() : "")),
- onClick: this.toggleSocialLoginDisplayState
- },
- socialLoginErrorMsg: {
- className: this.props.styleId + (this.state.oAuthErrMsg ? "_enabled" : ""),
- children: this.state.oAuthErrMsg
- }
- }
- },
- isSocialLogin: function() {
- return !!(this.props.smSettings.socialLoginGoogleEnabled || this.props.smSettings.socialLoginFacebookEnabled)
- },
- toggleSocialLoginDisplayState: function() {
- this.setState({
- socialLoginEnabled: !this.state.socialLoginEnabled
- })
- },
- _getSocialLoginIframeProps: function(a) {
- return {
- src: this._buildIframeSrc(a),
- frameBorder: "0",
- scrolling: "no",
- allowTransparency: "true"
- }
- },
- _buildIframeSrc: function(a) {
- return b.template("${baseUrl}/view/social/frame/${msid}?mode=${mode}&lang=${lang}&vendors=${vendors}&visitorId=${visitorId}")({
- baseUrl: this.props.siteMembersUrl.replace(/^(https|http):/i, ""),
- msid: this.props.metaSiteId,
- mode: a.mode,
- lang: a.lang,
- vendors: a.vendors.reduce(function(a, b) {
- return b.enabled ? a.push(b.id) && a : a
- }, []).join(","),
- visitorId: this.props.biVisitorId
- })
- }
- }
- });
- define("components/components/dialogs/notificationDialog/notificationDialog", ["lodash", "core", "components/components/dialogs/dialogMixin", "react", "santaProps"], function(a, b, c, d, e) {
- "use strict";
- return {
- displayName: "NotificationDialog",
- mixins: [b.compMixins.skinBasedComp, c],
- propTypes: {
- title: d.PropTypes.string,
- description: d.PropTypes.string,
- buttonText: d.PropTypes.string,
- language: d.PropTypes.string,
- styleId: e.Types.Component.styleId,
- onButtonClick: d.PropTypes.func
- },
- statics: {
- useSantaTypes: true
- },
- getSkinProperties: function() {
- if (this.shouldDialogBeClosed()) {
- return this.getCloseDialogSkinProperties()
- }
- var b = a.isUndefined(this.props.title) ? "=title missing=" : this.props.title;
- var c = a.isUndefined(this.props.description) ? "=description missing=" : this.props.description;
- var d = function(a) {
- return this.props.buttonText || this.getText(this.props.language, a)
- }.bind(this);
- return {
- blockingLayer: {},
- dialogTitle: {
- children: b
- },
- dialogDescription: {
- children: c,
- className: this.props.description ? "" : this.props.styleId + "_noDialogDescription"
- },
- okButton: {
- children: this.createSubmitButton("okButton", d("SMRegister_GO")),
- onClick: this.props.onButtonClick || this.closeDialog
- },
- xButton: this.createXButton()
- }
- }
- }
- });
- define("components/components/dialogs/creditsDialog/creditsDialog", ["lodash", "core", "components/components/dialogs/dialogMixin", "reactDOM", "santaProps"], function(a, b, c, d, e) {
- "use strict";
- return {
- displayName: "CreditsDialog",
- mixins: [b.compMixins.skinBasedComp, c],
- componentDidMount: function() {
- d.findDOMNode(this.refs.iframe).contentWindow.focus()
- },
- propTypes: {
- santaBase: e.Types.santaBase.isRequired
- },
- statics: {
- useSantaTypes: true
- },
- getSkinProperties: function() {
- if (this.shouldDialogBeClosed()) {
- return this.getCloseDialogSkinProperties()
- }
- return {
- blockingLayer: {
- onClick: this.closeDialog
- },
- iframe: {
- src: this.props.santaBase + "/static/external/credits/snake/snake.html"
- }
- }
- }
- }
- });
- define("components/components/dialogs/enterPasswordDialog/enterPasswordDialog", ["react", "core", "components/components/dialogs/dialogMixin", "lodash"], function(a, b, c, d) {
- "use strict";
- return {
- displayName: "EnterPasswordDialog",
- mixins: [b.compMixins.skinBasedComp, c],
- propTypes: {
- digestedPassword: a.PropTypes.string,
- language: a.PropTypes.string,
- notClosable: a.PropTypes.bool
- },
- statics: {
- useSantaTypes: true
- },
- passwordInputRef: "passwordInput",
- validateBeforeSubmit: function() {
- return this.refs[this.passwordInputRef].validate()
- },
- getDataToSubmit: function() {
- return this.props.digestedPassword ? {} : {
- password: this.refs[this.passwordInputRef].getValue()
- }
- },
- getSkinProperties: function() {
- var a = this.getText(this.props.language, "SMRegister_GO");
- var b = this.getErrorMessage();
- var c = {
- blockingLayer: {},
- errMsg: {
- children: b
- },
- content: this.createContent(),
- subtitle: {
- children: this.getText(this.props.language, "dialogMixinTranslations_GUEST_LOGIN_SUBTITLE")
- },
- title: {
- children: this.getText(this.props.language, "dialogMixinTranslations_GUEST_LOGIN_TITLE")
- },
- okButton: {
- children: this.createSubmitButton("okButton", a),
- onClick: this.submit
- },
- password: {
- children: this._createPasswordField({
- placeholder: this.getText(this.props.language, "PasswordLogin_Password")
- })
- }
- };
- if (!this.props.notClosable) {
- var e = {
- blockingLayer: {},
- xButton: this.createXButton()
- };
- d.merge(c, e)
- }
- return c
- },
- _validatePassword: function(a) {
- if (!a) {
- return this.getText(this.props.language, "SMForm_Error_Password_Blank")
- }
- return false
- },
- _createPasswordField: function(a) {
- var b = {
- refId: this.passwordInputRef,
- inputTitleKey: "PasswordLogin_Password",
- language: this.props.language,
- overrideValidators: [this._validatePassword]
- };
- return this.createPasswordInput(b, a)
- }
- }
- });
- define("components/components/dialogs/siteMemberDialogs/signUpDialog/signUpDialog", ["lodash", "core", "components/components/dialogs/dialogMixin", "react", "santaProps"], function(a, b, c, d, e) {
- "use strict";
- return {
- displayName: "SignUpDialog",
- mixins: [b.compMixins.skinBasedComp, b.compMixins.postMessageCompMixin, c],
- propTypes: {
- language: d.PropTypes.string,
- styleId: e.Types.Component.styleId,
- onSwitchDialogLinkClick: d.PropTypes.func
- },
- statics: {
- useSantaTypes: true
- },
- passwordInputRef: "passwordInput",
- retypePasswordInputRef: "retypePasswordInput",
- emailInputRef: "emailInput",
- socialHolderRef: "socialHolder",
- validateBeforeSubmit: function() {
- this.refs[this.emailInputRef].validate();
- this.refs[this.passwordInputRef].validate();
- this.refs[this.retypePasswordInputRef].validate();
- if (!this.refs[this.emailInputRef].isValid() || !this.refs[this.passwordInputRef].isValid() || !this.refs[this.retypePasswordInputRef].isValid()) {
- return false
- }
- if (this.refs[this.passwordInputRef].getValue() !== this.refs[this.retypePasswordInputRef].getValue()) {
- this.setErrorMessageByCode("SMForm_Error_Password_Retype");
- return false
- }
- return true
- },
- getDataToSubmit: function() {
- return {
- email: this.refs[this.emailInputRef].getValue(),
- password: this.refs[this.passwordInputRef].getValue()
- }
- },
- getSkinProperties: function() {
- if (this.shouldDialogBeClosed()) {
- return this.getCloseDialogSkinProperties()
- }
- var b = this.isSocialLogin();
- var c = this.props.language;
- var d = this.getText(c, "SMRegister_Already_Have_User") + ",";
- var e = this.getText(c, "SMRegister_sign_up");
- var f = this.getText(c, "SMRegister_GO");
- var g = this.getText(c, "dialogMixinTranslations_Log_In");
- var h = this.getErrorMessage();
- var i = {
- blockingLayer: {},
- note: {
- children: d
- },
- switchDialogLink: {
- children: g,
- onClick: this.props.onSwitchDialogLinkClick
- },
- title: {
- children: e
- },
- errMsg: {
- children: h
- },
- content: this.createContent(),
- okButton: {
- children: this.createSubmitButton("okButton", f),
- onClick: this.submit
- },
- email: {
- children: this._createEmailField({
- placeholder: this.getText(c, "SMForm_Email")
- })
- },
- password: {
- children: this._createPasswordField({
- placeholder: this.getText(c, "PasswordLogin_Password")
- })
- },
- retypePassword: {
- children: this._createRetypePasswordField({
- placeholder: this.getText(c, "SMForm_Retype_Password")
- })
- },
- contentWrapper: {
- className: this.props.styleId + "_" + (b ? "horizontal" : "vertical") + " " + this.props.styleId + "_" + (b ? this.getMobileSocialLoginClass() : "")
- }
- };
- a.assign(i, b ? this.getSocialLoginSkinParts("signup", c, {
- google: "dialogMixinTranslations_signup_google",
- facebook: "dialogMixinTranslations_signup_facebook",
- switchEmail: "dialogMixinTranslations_signup_switch_email"
- }) : {});
- if (!this.props.notClosable) {
- var j = {
- blockingLayer: {},
- xButton: this.createXButton()
- };
- a.merge(i, j)
- }
- return i
- },
- _createEmailField: function(a) {
- var b = {
- refId: this.emailInputRef,
- inputTitleKey: "SMForm_Email",
- language: this.props.language
- };
- return this.createEmailInput(b, a)
- },
- _createPasswordField: function(a) {
- var b = {
- refId: this.passwordInputRef,
- inputTitleKey: "SMForm_Password",
- language: this.props.language
- };
- return this.createPasswordInput(b, a)
- },
- _createRetypePasswordField: function(a) {
- var b = {
- refId: this.retypePasswordInputRef,
- inputTitleKey: "SMForm_Retype_Password",
- language: this.props.language
- };
- return this.createPasswordInput(b, a)
- },
- componentDidMount: function() {
- this.setPostMessageHandler("wix-social-login", this.onSocialLoginIframeMessage)
- }
- }
- });
- define("components/components/dialogs/siteMemberDialogs/memberLoginDialog/memberLoginDialog", ["lodash", "core", "components/components/dialogs/dialogMixin", "react", "reactDOM", "santaProps"], function(a, b, c, d, e, f) {
- "use strict";
- return {
- displayName: "MemberLoginDialog",
- mixins: [b.compMixins.skinBasedComp, b.compMixins.postMessageCompMixin, c],
- propTypes: {
- isMobileView: f.Types.isMobileView.isRequired,
- notClosable: d.PropTypes.bool,
- language: d.PropTypes.string,
- styleId: f.Types.Component.styleId,
- onSwitchDialogLinkClick: d.PropTypes.func,
- onForgetYourPasswordClick: d.PropTypes.func,
- defaultEmail: d.PropTypes.string
- },
- statics: {
- useSantaTypes: true
- },
- passwordInputRef: "passwordInput",
- emailInputRef: "emailInput",
- socialHolderRef: "socialHolder",
- validateBeforeSubmit: function() {
- this.refs[this.emailInputRef].validate();
- this.refs[this.passwordInputRef].validate();
- return this.refs[this.emailInputRef].isValid() && this.refs[this.passwordInputRef].isValid()
- },
- getDataToSubmit: function() {
- return {
- email: this.refs[this.emailInputRef].getValue(),
- password: this.refs[this.passwordInputRef].getValue(),
- rememberMe: e.findDOMNode(this.refs.rememberMeCheckbox).checked
- }
- },
- getSkinProperties: function() {
- if (this.shouldDialogBeClosed()) {
- return this.getCloseDialogSkinProperties()
- }
- var b = this.isSocialLogin();
- var c = this.props.language;
- var d = this.getText(c, "dialogMixinTranslations_Log_In_Title");
- var e = this.getText(c, "SMRegister_GO");
- var f = this.getText(c, "SMRegister_sign_up");
- var g = this.getText(c, "SMLogin_Remember_Me");
- var h = this.getText(c, this.props.isMobileView ? "dialogMixinTranslations_forgot_password_mobile" : "dialogMixinTranslations_forgot_password");
- var i = this.getText(c, "dialogMixinTranslations_switch_to_signup") + " ";
- var j = this.getErrorMessage();
- var k = {
- blockingLayer: {},
- switchDialogLink: {
- children: f,
- onClick: this.props.onSwitchDialogLinkClick
- },
- title: {
- children: d
- },
- content: this.createContent(),
- rememberMeCheckboxLabel: {
- children: g
- },
- forgotYourPasswordLink: {
- children: h,
- onClick: this._onForgotYourPasswordClick
- },
- switchToSignUpText: {
- children: i
- },
- password: {
- children: this._createPasswordField({
- placeholder: this.getText(c, "PasswordLogin_Password"),
- asyncErrorMessage: j
- })
- },
- email: {
- children: this._createEmailField({
- placeholder: this.getText(c, "SMForm_Email")
- })
- },
- okButton: {
- children: this.createSubmitButton("okButton", e),
- onClick: this.submit
- },
- forgotYourPasswordLinkMobile: {
- children: h,
- onClick: this._onForgotYourPasswordClick
- },
- contentWrapper: {
- className: this.props.styleId + "_" + (b ? "horizontal" : "vertical") + " " + this.props.styleId + "_" + (b ? this.getMobileSocialLoginClass() : "")
- }
- };
- a.assign(k, b ? this.getSocialLoginSkinParts("login", c, {
- google: "dialogMixinTranslations_login_google",
- facebook: "dialogMixinTranslations_login_facebook",
- switchEmail: "dialogMixinTranslations_login_switch_email"
- }) : {});
- if (!this.props.notClosable) {
- var l = {
- blockingLayer: {},
- xButton: this.createXButton()
- };
- a.merge(k, l)
- }
- return k
- },
- _onForgotYourPasswordClick: function() {
- this.props.onForgetYourPasswordClick()
- },
- _createEmailField: function(a) {
- var b = {
- refId: this.emailInputRef,
- inputTitleKey: "SMForm_Email",
- language: this.props.language,
- defaultValue: this.props.defaultEmail
- };
- return this.createEmailInput(b, a)
- },
- _createPasswordField: function(a) {
- var b = {
- refId: this.passwordInputRef,
- inputTitleKey: "SMForm_Password",
- language: this.props.language
- };
- return this.createPasswordInput(b, a)
- },
- componentDidMount: function() {
- this.setPostMessageHandler("wix-social-login", this.onSocialLoginIframeMessage)
- }
- }
- });
- define("components/components/dialogs/siteMemberDialogs/requestPasswordResetDialog/requestPasswordResetDialog", ["lodash", "core", "components/components/dialogs/dialogMixin", "react"], function(a, b, c, d) {
- "use strict";
- return {
- displayName: "RequestPasswordResetDialog",
- mixins: [b.compMixins.skinBasedComp, c],
- emailInputRef: "emailInput",
- propTypes: {
- notClosable: d.PropTypes.bool,
- language: d.PropTypes.string,
- defaultEmail: d.PropTypes.string
- },
- statics: {
- useSantaTypes: true
- },
- validateBeforeSubmit: function() {
- this.refs[this.emailInputRef].validate();
- return this.refs[this.emailInputRef].isValid()
- },
- getDataToSubmit: function() {
- return {
- email: this.refs[this.emailInputRef].getValue()
- }
- },
- getSkinProperties: function() {
- if (this.shouldDialogBeClosed()) {
- return this.getCloseDialogSkinProperties()
- }
- var b = this.props.language;
- var c = this.getText(b, "SMResetPassMail_title");
- var d = this.getText(b, "SMRegister_GO");
- var e = this.getText(b, "SMResetPassMail_Enter_Email");
- var f = this.getErrorMessage();
- var g = {
- blockingLayer: {},
- title: {
- children: c
- },
- errMsg: {
- children: f
- },
- content: this.createContent(),
- okButton: {
- children: this.createSubmitButton("okButton", d),
- onClick: this.submit
- },
- subtitle: {
- children: e
- },
- email: {
- children: this._createEmailInput({
- placeholder: this.getText(b, "SMForm_Email")
- })
- }
- };
- if (!this.props.notClosable) {
- var h = {
- blockingLayer: {},
- xButton: this.createXButton()
- };
- a.merge(g, h)
- }
- return g
- },
- _createEmailInput: function(a) {
- var b = {
- refId: this.emailInputRef,
- inputTitleKey: "SMResetPassMail_Enter_Email",
- language: this.props.language,
- defaultValue: this.props.defaultEmail
- };
- return this.createEmailInput(b, a)
- }
- }
- });
- define("components/components/dialogs/siteMemberDialogs/resetPasswordDialog/resetPasswordDialog", ["lodash", "core", "components/components/dialogs/dialogMixin", "santaProps", "react"], function(a, b, c, d, e) {
- "use strict";
- return {
- displayName: "ResetPasswordDialog",
- mixins: [b.compMixins.skinBasedComp, c],
- propTypes: {
- forgotPasswordToken: d.Types.SiteMembersSantaTypes.forgotPasswordToken,
- language: e.PropTypes.string
- },
- statics: {
- useSantaTypes: true
- },
- passwordInputRef: "passwordInput",
- retypePasswordInputRef: "retypePasswordInput",
- validateBeforeSubmit: function() {
- this.refs[this.passwordInputRef].validate();
- this.refs[this.retypePasswordInputRef].validate();
- if (!this.refs[this.passwordInputRef].isValid() || !this.refs[this.retypePasswordInputRef].isValid()) {
- return false
- }
- if (this.refs[this.passwordInputRef].getValue() !== this.refs[this.retypePasswordInputRef].getValue()) {
- this.setErrorMessage("SMForm_Error_Password_Retype");
- return false
- }
- return true
- },
- getDefaultProps: function() {
- return {
- shouldNotClose: true
- }
- },
- getDataToSubmit: function() {
- return {
- forgotPasswordToken: this.props.forgotPasswordToken,
- newPassword: this.refs[this.passwordInputRef].getValue()
- }
- },
- getSkinProperties: function() {
- var a = this.props.language;
- var b = this.getText(a, "SMResetPassMail_title");
- var c = this.getText(a, "dialogMixinTranslations_RESET_PASSWORD_TEXT");
- var d = this.getText(a, "SMRegister_GO");
- var e = this.getText(a, "SMResetPass_New_Password");
- var f = this.getText(a, "dialogMixinTranslations_RESET_PASSWORD_NEWFIELD_RETYPE");
- var g = this.getErrorMessage();
- return {
- blockingLayer: {},
- title: {
- children: b
- },
- errMsg: {
- children: g
- },
- content: this.createContent(),
- okButton: {
- children: this.createSubmitButton("okButton", d),
- onClick: this.submit
- },
- subtitle: {
- children: c
- },
- password: {
- children: this._createPasswordField({
- placeholder: e
- })
- },
- retypePassword: {
- children: this._createRetypePasswordField({
- placeholder: f
- })
- }
- }
- },
- _createPasswordField: function(a) {
- var b = {
- refId: this.passwordInputRef,
- inputTitleKey: "SMResetPass_New_Password",
- language: this.props.language
- };
- return this.createPasswordInput(b, a)
- },
- _createRetypePasswordField: function(a) {
- var b = {
- refId: this.retypePasswordInputRef,
- inputTitleKey: "SMResetPass_Retype_Password",
- language: this.props.language
- };
- return this.createPasswordInput(b, a)
- }
- }
- });
- define("components/components/itunesButton/itunesButton", ["lodash", "react", "core", "utils"], function(a, b, c, d) {
- "use strict";
- var e = "{{langCode}}";
- var f = "iTunesBtn_" + e + ".svg";
- var g = "/static/images/itunesButton/";
- var h = ["da", "de", "en", "es", "fr", "it", "jp", "ko", "nl", "no", "pl", "pt", "ru", "sv", "tr"];
- function i(a, c) {
- var d = {
- parentConst: b.DOM.a,
- target: a.openIn
- };
- if (c.downloadUrl) {
- d.href = c.downloadUrl
- }
- return d
- }
- function j(a, b) {
- if (a === "userLang") {
- return d.wixUserApi.getLanguage(b.requestModel.cookie, b.currentUrl)
- }
- return a
- }
- function k(b, c) {
- var d = l(c);
- var f = j(b.language, c);
- if (!a.includes(h, f)) {
- f = "en"
- }
- return d.replace(e, f.toUpperCase())
- }
- function l(a) {
- var b = a.santaBase + g;
- return b + f
- }
- return {
- displayName: "ItunesButton",
- mixins: [c.compMixins.skinBasedComp],
- getSkinProperties: function() {
- return {
- downloadButton: i(this.props.compProp, this.props.compData),
- itunesImg: {
- src: k(this.props.compProp, this.props.siteData)
- }
- }
- }
- }
- });
- define("components/components/toggle/toggle", ["core"], function(a) {
- "use strict";
- var b = a.compMixins;
- return {
- displayName: "Toggle",
- mixins: [b.skinBasedComp],
- getInitialState: function() {
- return this.getCssState(this.props)
- },
- componentWillReceiveProps: function(a) {
- this.setState(this.getCssState(a))
- },
- getCssState: function(a) {
- return {
- $default: a.initialState || "off"
- }
- },
- getSkinProperties: function() {
- var a = this.props.children[0];
- var b = this.props.children[1];
- return {
- on: {
- children: this.props.initialState === "on" ? [a] : []
- },
- off: {
- children: this.props.initialState === "off" ? [b] : []
- }
- }
- }
- }
- });
- define("components/components/skypeCallButton/skypeCallButton", ["core", "react"], function(a, b) {
- "use strict";
- var c = a.compMixins;
- var d = {
- call: {
- small: {
- width: 38,
- height: 16
- },
- medium: {
- width: 56,
- height: 24
- },
- large: {
- width: 73,
- height: 32
- }
- },
- chat: {
- small: {
- width: 45,
- height: 16
- },
- medium: {
- width: 65,
- height: 24
- },
- large: {
- width: 86,
- height: 32
- }
- }
- };
- return {
- displayName: "SkypeCallButton",
- mixins: [c.skinBasedComp],
- getInitialState: function() {
- var a = this.props.compData,
- b = this.props.compProp;
- return {
- $buttontype: a.buttonType,
- $imagesize: b.imageSize,
- $imagecolor: b.imageColor
- }
- },
- componentWillReceiveProps: function(a) {
- var b = a.compData;
- var c = a.compProp;
- this.setState({
- $buttontype: b.buttonType,
- $imagesize: c.imageSize,
- $imagecolor: c.imageColor
- })
- },
- getSkinProperties: function() {
- var a = this.props.compData,
- c = this.props.compProp,
- e = d[a.buttonType][c.imageSize];
- var f = {
- "": {
- style: {
- width: e.width,
- height: e.height
- }
- },
- placeholder: {
- parentConst: b.DOM.div,
- style: {
- display: "block",
- width: e.width,
- height: e.height
- }
- }
- };
- if (a.skypeName) {
- f.skypeLink = {
- href: "skype:" + a.skypeName + "?" + a.buttonType
- }
- }
- return f
- }
- }
- });
- define("components/components/sliderGallery/sliderGallery", ["core", "skins", "lodash", "reactDOM", "galleriesCommon"], function(a, b, c, d, e) {
- "use strict";
- var f = a.compMixins;
- var g = e.utils.galleriesHelperFunctions;
- var h = e.utils.matrixScalingCalculations;
- function i(a, b, c) {
- var d = this.state.currentIndex;
- if (d !== a) {
- if (this.props.onImageSelected) {
- b.type = "imageSelected";
- b.payload = {
- itemIndex: a,
- imageData: this.props.compData.items[a]
- };
- this.props.onImageSelected(b, c)
- }
- this.setState({
- currentIndex: a
- })
- }
- }
- var j = 60;
- function k(a, b) {
- var d = b.props.selectedItemIndex || 0;
- var e = c.get(a, ["currentIndex"], d);
- return {
- currentIndex: e
- }
- }
- return {
- displayName: "SliderGallery",
- statics: {
- behaviors: {
- nextSlide: {
- methodName: "next"
- },
- prevSlide: {
- methodName: "prev"
- }
- }
- },
- mixins: [f.skinBasedComp, f.skinInfo, f.animationsMixin, f.timeoutsMixin, f.compStateMixin(k)],
- _currentOffset: null,
- _motion: false,
- _firstChild: null,
- getInitialState: function() {
- var a = this.props.siteAPI.getSiteAspect("windowTouchEvents");
- a.registerToWindowTouchEvent("touchStart", this);
- return c.assign(k(null, {
- props: this.props.compProp
- }), {
- $mobile: this.props.siteData.isMobileDevice() || this.props.siteData.isTabletDevice() ? "mobile" : "notMobile",
- $displayDevice: this.props.siteData.isMobileView() ? "mobileView" : "desktopView"
- })
- },
- componentWillUnmount: function() {
- this.props.siteAPI.getSiteAspect("windowTouchEvents").unregisterFromWindowTouchEvent("touchStart", this)
- },
- getSkinProperties: function() {
- this.gap = c.isNumber(this.props.compProp.margin) ? this.props.compProp.margin : 20;
- this.contentOverflow = false;
- var a = b.skins[this.props.skin];
- var d = a.exports && a.exports.bottomGap || 0;
- var e = Math.abs(this.getFromExports("itemContainerAdditionalHeight"));
- var f = this.populate(d, e);
- var h = Math.abs(this.getFromExports("itemContainerTotalOffset"));
- var i = this.props.style.width - h;
- if (this.itemsHolderWidth > i) {
- this.contentOverflow = true;
- f = this.populate(d, e)
- }
- return {
- imageItem: {},
- images: {
- children: f,
- "data-gallery-id": this.props.id
- },
- swipeLeftHitArea: {
- onMouseEnter: this.prev,
- onMouseLeave: this._stopMovement,
- onTouchStart: this.prev,
- "data-gallery-id": this.props.id
- },
- swipeRightHitArea: {
- onMouseEnter: this.next,
- onMouseLeave: this._stopMovement,
- onTouchStart: this.next,
- "data-gallery-id": this.props.id
- },
- "": {
- onSwipeLeft: this.next,
- onSwipeRight: this.prev,
- "data-height-diff": g.getSkinHeightDiff(this.props.skin),
- "data-width-diff": g.getSkinWidthDiff(this.props.skin),
- "data-bottom-gap": d,
- "data-additional-height": e
- }
- }
- },
- getChildrenData: function() {
- var a = this.props.compData.items;
- return this.props.compProp.loop && this.contentOverflow ? a.concat(a) : a
- },
- populate: function(a, d) {
- var e;
- var f = this.props.compProp;
- var j = this.props.compData;
- this.itemsHolderWidth = 0;
- var k = this.getChildrenData();
- e = k.map(function(e, k) {
- var l = e;
- var m = this.getSkinExports().imageItem.skin;
- var n = this.getParams(["topPadding", "imgHeightDiff"], m);
- var o = g.getDisplayerHeightDiff(b.skins[m], n, this.state.$displayDevice);
- var p = g.getDisplayerWidthDiff(b.skins[m], this.state.$displayDevice);
- var q = Math.floor(this.props.style.height + d);
- var r = this.props.compData.items.length;
- var s = h.getSizeAfterScaling({
- itemHeight: q,
- itemWidth: Math.floor(q * (this.props.compProp.aspectRatio || 1)),
- displayerData: l,
- imageMode: this.props.compProp.imageMode,
- heightDiff: o,
- widthDiff: p,
- bottomGap: a
- });
- this.itemsHolderWidth = this.itemsHolderWidth + s.imageWrapperSize.imageWrapperWidth + this.gap;
- return this.createChildComponent(l, "wysiwyg.viewer.components.Displayer", "imageItem", {
- rootId: this.props.rootId,
- currentUrlPageId: this.props.currentUrlPageId,
- rootNavigationInfo: this.props.rootNavigationInfo,
- galleryDataId: j.id,
- imageWrapperSize: s.imageWrapperSize,
- style: {
- display: "inline-block",
- margin: "0 " + (c.isNumber(f.margin) ? f.margin : 20) + "px 0 0",
- height: s.displayerSize.height,
- width: s.displayerSize.width
- },
- isSelected: this.state.currentIndex === k,
- onClick: i.bind(this, k),
- displayerDataQuery: e,
- galleryId: this.props.id,
- heightDiff: o,
- widthDiff: p,
- bottomGap: a,
- imageIndex: k % r,
- key: this.props.id + k,
- ref: this.props.id + k,
- id: this.props.id + k
- })
- }, this);
- return e
- },
- prev: function() {
- this._move(true)
- },
- next: function() {
- this._move(false)
- },
- _move: function(a) {
- var b = this.props.compProp.maxSpeed || .05;
- this.slide(a, b, this.props.compProp.loop)
- },
- _stopMovement: function() {
- if (this._sequenceId) {
- this.easeStopSequence(this._sequenceId, 1);
- this._sequenceId = null
- }
- },
- slide: function(a, b, c) {
- if (!this.contentOverflow) {
- return
- }
- var e = this.props.siteData.measureMap;
- var f = e.width[this.props.id + "images"] - (this.props.compProp.margin || 0);
- var g = e.width[this.props.id + "itemsContainer"];
- var h = d.findDOMNode(this.refs.images).offsetLeft;
- var i = c ? -f / 2 : g - f;
- this._stopMovement();
- var k = this.sequence();
- var l = Math.abs(i) / (b * j);
- var m = l * (a ? Math.abs(h / i) : 1 - Math.abs(h / i));
- k.add("images", "BasePosition", m, 0, {
- from: {
- left: h
- },
- to: {
- left: a ? 0 : i
- },
- ease: "Linear.easeNone"
- });
- if (c) {
- k.add("images", "BasePosition", l, 0, {
- from: {
- left: a ? i : 0
- },
- to: {
- left: a ? 0 : i
- },
- repeat: c ? -1 : 0,
- immediateRender: false,
- ease: "Linear.easeNone"
- })
- }
- k.onCompleteAll(function() {
- this.handleAction("imageChanged")
- }.bind(this));
- this._sequenceId = k.execute({
- paused: true
- });
- this.easeStartSequence(this._sequenceId, 1);
- if (this.state.$mobile === "mobile") {
- this.clearTimeoutNamed(this.props.id);
- this._nextStopTimeout = this.setTimeoutNamed(this.props.id, function() {
- this._stopMovement()
- }.bind(this), 2e3)
- }
- },
- onWindowTouchStart: function(a) {
- var b = a.target.getAttribute("data-gallery-id") || a.target.parentNode.getAttribute("data-gallery-id");
- if (b !== this.props.id) {
- this._stopMovement()
- }
- }
- }
- });
- define("components/components/slideShowGallery/slideShowGallery", ["core", "skins", "lodash", "utils", "galleriesCommon"], function(a, b, c, d, e) {
- "use strict";
- var f = a.compMixins;
- var g = e.utils.matrixScalingCalculations;
- var h = e.utils.galleriesHelperFunctions;
- var i = d.galleriesCommonLayout;
- function j(a, b) {
- return l(a + 1, b)
- }
- function k(a, b) {
- return l(a - 1, b)
- }
- function l(a, b) {
- return (a % b + b) % b
- }
- function m(a, b) {
- return String(a + 1) + "/" + String(b)
- }
- function n(a, b, c) {
- if (b === "flexibleHeight") {
- return a.displayerSize.height
- }
- return c
- }
- function o(a) {
- return {
- currentIndex: c.get(a, "currentIndex", 0)
- }
- }
- return {
- displayName: "SlideShowGallery",
- mixins: [f.skinBasedComp, e.mixins.galleryAutoPlayMixin, f.animationsMixin, f.timeoutsMixin, f.skinInfo, f.compStateMixin(o)],
- statics: {
- behaviors: {
- nextSlide: {
- methodName: "next"
- },
- prevSlide: {
- methodName: "prev"
- }
- }
- },
- getInitialState: function() {
- this.shouldResetGalleryToOriginalState = this.props.siteData.renderFlags.shouldResetGalleryToOriginalState;
- var a = this.props.siteAPI.getSiteAspect("windowTouchEvents");
- a.registerToWindowTouchEvent("touchStart", this);
- this.isAnimating = false;
- this.getButtonsState = this.getButtonsState || c.noop;
- return c.assign(o(), {
- $mobile: this.props.siteData.isMobileDevice() || this.props.siteData.isTabletDevice() ? "mobile" : "notMobile",
- $displayDevice: this.props.siteData.isMobileView() ? "mobileView" : "desktopView",
- displayerPanelState: "notShowPanel",
- $touchRollOverSupport: "touchRollOut",
- $animationInProcess: null
- }, this.getButtonsState())
- },
- componentDidMount: function() {
- this.updateAutoplayState()
- },
- componentWillReceiveProps: function(a) {
- var b = false;
- var d = {
- $mobile: a.siteData.isMobileDevice() || a.siteData.isTabletDevice() ? "mobile" : "notMobile",
- $displayDevice: a.siteData.isMobileView() ? "mobileView" : "desktopView"
- };
- if (this.props.compProp.autoplay !== a.compProp.autoplay) {
- var e = a.compProp.autoplay && !this.props.siteAPI.isZoomOpened() && this.props.siteData.renderFlags.isPlayingAllowed ? "autoplayOn" : "autoplayOff";
- b = true;
- d.shouldAutoPlay = a.compProp.autoplay;
- d.$slideshow = e
- }
- c.assign(d, this.getButtonsState());
- this.setState(d, function() {
- if (b) {
- this.updateAutoplayState();
- this.handleAction(d.$slideshow)
- }
- }.bind(this));
- if (this.shouldResetGalleryToOriginalState !== a.siteData.renderFlags.shouldResetGalleryToOriginalState) {
- if (this.shouldResetGalleryToOriginalState && this.props.compProp.imageMode === "flexibleHeight" && this.resetGalleryState) {
- this.resetGalleryState()
- }
- this.shouldResetGalleryToOriginalState = a.siteData.renderFlags.shouldResetGalleryToOriginalState
- }
- },
- componentWillUnmount: function() {
- this.props.siteAPI.getSiteAspect("windowTouchEvents").unregisterFromWindowTouchEvent("touchStart", this)
- },
- getSkinProperties: function() {
- var a = this.props.compData;
- var b, d, e;
- var f = a.items && a.items.length > 0;
- if (f) {
- b = a.items[this.state.currentIndex];
- d = this.getDisplayerSizeAfterScaling(b);
- e = n(d, this.props.compProp.imageMode, this.props.style.height)
- }
- var g = f ? this.hideShowPanel : c.noop;
- var j = {
- itemsContainer: {
- children: f ? this.generateNextPagesIfNeeded().concat([this.createDisplayer(b, this.state.currentIndex)]) : [],
- style: {
- height: "100%"
- },
- "data-gallery-id": this.props.id
- },
- buttonPrev: {
- onClick: this.prev,
- style: {
- visibility: !this.props.compProp.isHidden && f && this.props.compProp.showNavigation ? "visible" : "hidden"
- },
- "data-gallery-id": this.props.id
- },
- buttonNext: {
- onClick: this.next,
- style: {
- visibility: !this.props.compProp.isHidden && f && this.props.compProp.showNavigation ? "visible" : "hidden"
- },
- "data-gallery-id": this.props.id
- },
- counter: {
- children: m(this.state.currentIndex, this.props.compData.items.length),
- style: {
- visibility: !this.props.compProp.isHidden && this.props.compProp.showCounter ? "visible" : "hidden"
- },
- "data-gallery-id": this.props.id
- },
- border: {
- style: {
- height: e
- },
- "data-gallery-id": this.props.id
- },
- autoplay: {
- onClick: this.toggleAutoPlay,
- style: {
- cursor: "pointer",
- visibility: this.shouldShowAutoPlay() ? "visible" : "hidden"
- },
- "data-gallery-id": this.props.id
- },
- "": {
- style: {
- height: e,
- overflow: "hidden"
- },
- onMouseEnter: g,
- onMouseLeave: g,
- onMouseMove: g,
- onTouchStart: this.onComponentTouchStart,
- "data-gallery-id": this.props.id,
- "data-height-diff": h.getSkinHeightDiff(this.props.skin),
- "data-width-diff": h.getSkinWidthDiff(this.props.skin),
- "data-text-alignment": this.props.compProp.alignText
- }
- };
- if (this.props.compProp.imageMode === "flexibleHeight") {
- i.updateSkinPropsForFlexibleHeightGallery(j, e)
- }
- return j
- },
- onComponentTouchStart: function(a) {
- this.hideShowPanel(a);
- if (this.state.$touchRollOverSupport === "touchRollOut") {
- this.setState({
- $touchRollOverSupport: "touchRollOver"
- })
- }
- },
- onWindowTouchStart: function(a) {
- if (this.state.$touchRollOverSupport === "touchRollOver" && a.target.getAttribute("data-gallery-id") !== this.props.id) {
- this.hideShowPanel({
- type: "mouseleave",
- target: a.target
- });
- this.setState({
- $touchRollOverSupport: "touchRollOut"
- })
- }
- },
- hideShowPanel: function(a, b, c) {
- var d = a.type === "mouseleave" ? "notShowPanel" : "showPanel";
- var e = this.props.compData.items[this.state.currentIndex];
- var f = this.props.id + e.id + this.state.currentIndex;
- if (this.refs[f].getPanelState() !== d) {
- this.refs[f].setPanelState(d)
- }
- if (!c && d !== this.state.displayerPanelState) {
- this.setState({
- displayerPanelState: d
- })
- }
- },
- prev: function(a) {
- var b = this.props.compProp.reverse;
- this.moveSlide(!b, a)
- },
- next: function(a) {
- var b = this.props.compProp.reverse;
- this.moveSlide(b, a)
- },
- moveSlide: function(a, b) {
- if (this.isAnimating) {
- return false
- }
- var c = a ? k(this.state.currentIndex, this.props.compData.items.length) : j(this.state.currentIndex, this.props.compData.items.length);
- if (this.state.currentIndex === c) {
- return false
- }
- this.hideShowPanel({
- type: "mouseleave",
- target: {
- id: ""
- }
- }, {}, true);
- var d = this.props.compData.items[c].id;
- var e = this.props.compData.items[this.state.currentIndex].id;
- var f = this.props.id + d + c;
- var g = this.props.id + e + this.state.currentIndex;
- this.refs[f].setTransitionPhase("transIn");
- this.refs[g].setTransitionPhase("transOut");
- var h = {
- swipeVertical: "SlideVertical",
- swipeHorizontal: "SlideHorizontal",
- crossfade: "CrossFade",
- outIn: "OutIn",
- none: "NoTransition"
- };
- var i = this.props.compProp.transition === "none" ? 0 : this.props.compProp.transDuration;
- this.setState({
- $animationInProcess: "animationInProcess"
- });
- var l = this.sequence();
- if (this.props.compProp.imageMode === "flexibleHeight") {
- var m = this.getDisplayerSizeAfterScaling(d);
- l.add("", "BaseDimensions", this.props.compProp.transDuration, 0, {
- to: {
- height: m.displayerSize.height
- }
- })
- }
- l.add("itemsContainer", "BaseDimensions", 0, 0, {
- to: {
- zIndex: 0
- }
- }, 0).add({
- sourceRefs: g,
- destRefs: f
- }, h[this.props.compProp.transition], i, 0, {
- reverse: a
- }, 0).add("itemsContainer", "BaseDimensions", 0, 0, {
- to: {
- clearProps: "zIndex",
- immediateRender: false
- }
- }).onStartAll(function() {
- this.isAnimating = true
- }.bind(this)).onCompleteAll(function() {
- this.animationCompleteCallback(c, b)
- }.bind(this)).execute()
- },
- animationCompleteCallback: function(a, b) {
- this.isAnimating = false;
- this.registerReLayout();
- this.setState({
- currentIndex: a,
- $animationInProcess: null
- }, function() {
- this.updateAutoplayState();
- this.handleAction("imageChanged");
- if (c.isFunction(b)) {
- b()
- }
- }.bind(this))
- },
- getDisplayerSizeAfterScaling: function(a) {
- return g.getSizeAfterScaling({
- itemHeight: this.props.style.height - h.getSkinHeightDiff(this.props.skin),
- itemWidth: this.props.style.width - h.getSkinWidthDiff(this.props.skin),
- displayerData: a,
- imageMode: this.props.compProp.imageMode,
- heightDiff: this.getDisplayerHeightDiff(),
- widthDiff: this.getDisplayerWidthDiff(),
- bottomGap: this.getBottomGap()
- })
- },
- generateNextPagesIfNeeded: function() {
- var a;
- var b;
- var c = [];
- var d = j(this.state.currentIndex, this.props.compData.items.length);
- if (d !== this.state.currentIndex) {
- a = this.props.compData.items[d]
- }
- var e = k(this.state.currentIndex, this.props.compData.items.length);
- if (e !== this.state.currentIndex && e !== d) {
- b = this.props.compData.items[e]
- }
- var f = {
- visibility: "hidden",
- opacity: 0
- };
- if (a) {
- c.push(this.createDisplayer(a, d, f))
- }
- if (b) {
- c.push(this.createDisplayer(b, e, f))
- }
- return c
- },
- createDisplayer: function(a, b, d) {
- var e = this.getDisplayerSizeAfterScaling(a);
- return this.createChildComponent(a, "wysiwyg.viewer.components.Displayer", "imageItem", {
- key: this.state.currentIndex + a.id,
- ref: this.props.id + a.id + b,
- id: this.props.id + a.id + b,
- currentUrlPageId: this.props.currentUrlPageId,
- galleryDataId: this.props.compData.id,
- galleryId: this.props.id,
- imageWrapperSize: e.imageWrapperSize,
- showPanelState: d ? "notShowPanel" : this.state.displayerPanelState,
- heightDiff: this.getDisplayerHeightDiff(),
- widthDiff: this.getDisplayerWidthDiff(),
- bottomGap: this.getBottomGap(),
- imageIndex: b,
- style: c.merge({
- width: e.displayerSize.width,
- height: e.displayerSize.height,
- position: "absolute",
- left: 0,
- top: 0
- }, d)
- })
- },
- getDisplayerHeightDiff: function() {
- var a = this.getSkinExports().imageItem.skin;
- var c = this.getParams(["topPadding", "imgHeightDiff"], a);
- return h.getDisplayerHeightDiff(b.skins[a], c, this.state.$displayDevice)
- },
- getDisplayerWidthDiff: function() {
- var a = this.getSkinExports().imageItem.skin;
- return h.getDisplayerWidthDiff(b.skins[a], this.state.$displayDevice)
- },
- getBottomGap: function() {
- var a = b.skins[this.props.skin];
- return a.exports && a.exports.bottomGap || 0
- }
- }
- });
- define("components/components/textOption/textOption", ["core"], function(a) {
- "use strict";
- var b = a.compMixins;
- return {
- displayName: "TextOption",
- mixins: [b.optionInput],
- getSkinProperties: function() {
- var a = {
- size: {
- children: this.props.compData.text
- },
- tooltip: this.createInfoTipChildComponent()
- };
- if (!this.props.compData.disabled) {
- a[""] = {
- onClick: this.props.onClick,
- onMouseEnter: this.onMouseEnter,
- onMouseLeave: this.onMouseLeave
- }
- }
- return a
- }
- }
- });
- define("components/components/mobileTextOption/mobileTextOption", ["core"], function(a) {
- "use strict";
- var b = a.compMixins;
- return {
- displayName: "MobileTextOption",
- mixins: [b.optionInput],
- getSkinProperties: function() {
- var a = {
- size: {
- children: this.props.compData.text
- },
- tooltip: {
- children: [this.props.compData.description]
- }
- };
- if (!this.props.compData.disabled) {
- a[""] = {
- onClick: this.props.onClick,
- style: {
- cursor: "pointer"
- }
- }
- }
- return a
- }
- }
- });
- define("components/components/vKShareButton/vKShareButton", ["react", "lodash", "core", "utils", "socialCommon"], function(a, b, c, d, e) {
- "use strict";
- var f = c.compMixins;
- var g = {
- Button: {
- w: 100,
- h: 21
- },
- ButtonWithoutCounter: {
- w: 64,
- h: 21
- },
- Link: {
- w: 50,
- h: 21
- },
- LinkWithoutIcon: {
- w: 30,
- h: 21
- },
- Icon: {
- w: 36,
- h: 36
- }
- };
- var h = g.Button;
- var i = function(a, b) {
- var c = a.compData;
- var e = {
- id: a.id,
- url: b,
- style: c.style,
- text: c.text || "Share"
- };
- return a.siteData.santaBase + "/static/external/VKShare.html?" + d.urlUtils.toQueryString(e)
- };
- var j = function(a, b) {
- var c = g[b] || h;
- return {
- width: a || c.w,
- height: c.h
- }
- };
- function k(a, c, d) {
- return {
- allowTransparency: "true",
- key: "VKShareButton-" + a.currentUrlPageId,
- frameBorder: "0",
- src: i(a, d),
- scrolling: "no",
- style: b.clone(c)
- }
- }
- return {
- displayName: "VKShareButton",
- mixins: [f.skinBasedComp, e.socialCompMixin],
- onVKPostMessage: function(a) {
- this.setState({
- widthFromVK: a.width
- })
- },
- getInitialState: function() {
- return {}
- },
- componentDidMount: function() {
- this.props.siteAPI.getSiteAspect("vkPostMessage").registerToPostMessage(this)
- },
- componentWillUnmount: function() {
- this.props.siteAPI.getSiteAspect("vkPostMessage").unRegisterToPostMessage(this)
- },
- getSkinProperties: function() {
- var b = j(this.state.widthFromVK, this.props.compData.style);
- var c = this.getSocialUrl();
- var d = k(this.props, b, c);
- return {
- "": {
- style: b
- },
- iframe: a.DOM.iframe(d)
- }
- }
- }
- });
- define("components/components/wGooglePlusOne/wGooglePlusOne", ["lodash", "react", "core", "reactDOM"], function(a, b, c, d) {
- "use strict";
- var e = c.compMixins;
- function f(a) {
- var b = a.compProp.size + "_" + a.compProp.annotation;
- switch (b) {
- case "small_bubble":
- return {
- width: 70,
- height: 15
- };
- case "small_none":
- return {
- width: 24,
- height: 15
- };
- case "small_inline":
- return {
- width: 250,
- height: 15
- };
- case "medium_bubble":
- return {
- width: 90,
- height: 20
- };
- case "medium_none":
- return {
- width: 32,
- height: 20
- };
- case "medium_inline":
- return {
- width: 250,
- height: 20
- };
- case "standard_bubble":
- return {
- width: 106,
- height: 24
- };
- case "standard_none":
- return {
- width: 38,
- height: 24
- };
- case "standard_inline":
- return {
- width: 250,
- height: 24
- };
- case "tall_bubble":
- return {
- width: 50,
- height: 60
- };
- case "tall_none":
- return {
- width: 50,
- height: 20
- };
- case "tall_inline":
- return {
- width: 250,
- height: 20
- };
- default:
- return {
- width: 50,
- height: 60
- }
- }
- }
- return {
- displayName: "WGooglePlusOne",
- mixins: [e.skinBasedComp],
- componentWillMount: function() {
- var a = this.loader = this.props.siteAPI.getSiteAspect("externalScriptLoader");
- a.loadScript("GOOGLE", this.renderTag, {
- cookie: this.props.siteData.requestModel.cookie,
- currentUrl: this.props.siteData.currentUrl
- })
- },
- componentDidMount: function() {
- if (window.gapi) {
- this.renderTag()
- }
- },
- componentDidUpdate: function(b) {
- var c = ["annotation", "size"];
- if (!a.isEqual(a.pick(this.props.compProp, c), a.pick(b.compProp, c))) {
- this.renderTag()
- }
- },
- renderTag: function() {
- var b = this.refs.googlePlus || this.refs[""];
- var c = f(this.props);
- if (a.get(window, "gapi.plusone")) {
- window.gapi.plusone.render(d.findDOMNode(b), {
- size: this.props.compProp.size,
- annotation: this.props.compProp.annotation,
- width: c.width
- })
- }
- },
- componentWillUnmount: function() {
- this.loader.unsubscribe("GOOGLE", this.renderTag)
- },
- getSkinProperties: function() {
- return {
- googlePlus: {
- children: b.DOM.div({
- className: "g-plusone"
- }),
- ref: "googlePlus"
- },
- "": {
- style: f(this.props)
- }
- }
- }
- }
- });
- define("components/bi/errors.json", [], function() {
- return {
- FORM_SUBMIT_FAILURE: {
- errorCode: 101027,
- severity: "error",
- params: {
- p1: "componentId",
- p2: "componentType",
- p3: "errorDesc",
- p4: "response"
- }
- },
- FORM_SUBMIT_FINAL_FALLBACK: {
- errorCode: 101028,
- severity: "fatal",
- params: {
- p1: "componentId",
- p2: "componentType",
- p3: "errorDesc",
- p4: "response"
- }
- },
- FORM_SUBMIT_INVALID_EMAIL: {
- errorCode: 101029,
- severity: "error",
- params: {
- p1: "email"
- }
- },
- MEDIA_RICH_TEXT_WRONG_COMP_DATA: {
- errorCode: 32e3,
- severity: "fatal",
- params: {
- p1: "wixCompJson",
- p2: "errorDesc",
- p3: "errorStack"
- }
- },
- MEDIA_RICH_TEXT_UNSUPPORTED_COMPONENT: {
- errorCode: 32001,
- severity: "fatal",
- params: {
- p1: "wixCompJson"
- }
- },
- MEDIA_RICH_MISSING_COMPONENT_PLACEHOLDER: {
- errorCode: 32002,
- severity: "fatal",
- params: {
- p1: "dataQuery"
- }
- },
- IMAGE_FILTER_NOT_VALID: {
- errorName: "image_filter_not_valid",
- errorCode: 556,
- severity: "error",
- params: {
- p1: "filterName"
- }
- }
- }
- });
- define("components/bi/errors", ["components/bi/errors.json", "lodash", "utils"], function(a, b, c) {
- "use strict";
- b.forEach(a, function(a, b) {
- a.errorName = b
- });
- c.logger.register("components", "error", a);
- return a
- });
- define("components/components/mediaRichText/galleryHelpers/galleryHelpers", ["lodash", "utils"], function(a, b) {
- "use strict";
- var c = "wysiwyg.viewer.components.MatrixGallery",
- d = "wysiwyg.viewer.skins.gallerymatrix.BlogMatrixGallery",
- e = "wysiwyg.viewer.components.SlideShowGallery",
- f = "skins.viewer.gallery.BlogSlideShow",
- g = [c, e],
- h = .75;
- function i(b) {
- return a.includes(g, b)
- }
- function j(a) {
- return a === c
- }
- function k(a) {
- return a === e
- }
- function l(a, b) {
- var c = 0;
- if (j(b.componentType)) {
- var d = 26,
- e = b.cols,
- f = b.rows,
- g = b.margin * 2,
- i = Math.round((a - (e - 1) * g) / e),
- l = h * i;
- c = Math.round(l * f) + (f - 1) * g + d
- } else if (k(b.componentType)) {
- c = Math.round(h * a)
- }
- return c
- }
- function m(a, b) {
- var c = a.width;
- return {
- width: c,
- height: l(c, b),
- position: "relative"
- }
- }
- function n(a) {
- var c = {};
- if (j(a.componentType)) {
- c = {
- skin: d,
- compProp: {
- type: "MatrixGalleryProperties",
- metaData: {
- schemaVersion: "1.0"
- },
- expandEnabled: true,
- imageMode: a.fixedSize ? "clipImage" : "flexibleWidthFixed",
- numCols: a.cols,
- maxRows: a.rows,
- incRows: 2,
- margin: a.margin * 2,
- alignText: "left"
- }
- }
- } else if (k(a.componentType)) {
- c = {
- skin: f,
- compProp: {
- autoplay: a.autoplay,
- autoplayInterval: a.autoplayInterval,
- bidirectional: false,
- expandEnabled: true,
- imageMode: "flexibleWidthFixed",
- metaData: {
- schemaVersion: "1.0"
- },
- reverse: false,
- showAutoplay: true,
- showCounter: true,
- showExpand: false,
- showNavigation: true,
- showSocial: false,
- transDuration: 1,
- transition: "swipeHorizontal",
- type: "SlideShowGalleryProperties"
- }
- }
- } else {
- b.log.error("Unknown gallery type: " + a.componentType)
- }
- return c
- }
- function o(b, c, e, g) {
- var h = b.componentType;
- var i = a.assign({
- dataQuery: b.dataQuery,
- propertyQuery: b.dataQuery,
- componentType: b.componentType,
- type: "Component",
- style: m(e, b),
- compData: {
- type: "ImageList",
- items: a.map(b.imageList, function(b) {
- var d = a.get(c, b.dataQuery);
- return a.assign({}, b, d, {
- type: "Image",
- id: b.id + b.uri,
- isRef: false,
- metaData: {
- isHidden: false,
- isPreset: true,
- schemaVersion: "1.0"
- }
- })
- }),
- metaData: {
- isPreset: true,
- schemaVersion: "1.0",
- isHidden: false
- }
- }
- }, n(b));
- if (k(h)) {
- i.styleId = g[f]
- }
- if (j(h)) {
- i.styleId = g[d]
- }
- return i
- }
- return {
- buildGalleryJsonFromCkData: o,
- isGalleryComponent: i
- }
- });
- define("components/components/mediaRichText/mediaRichText", ["lodash", "utils", "reactDOM", "reactDOMServer", "santaProps", "textCommon", "components/bi/errors", "components/components/mediaRichText/galleryHelpers/galleryHelpers"], function(a, b, c, d, e, f, g, h) {
- "use strict";
- var i = b.htmlParser;
- var j = f.textComponentsUtils;
- var k = {
- wline: "div"
- };
- function l(b, c) {
- return !a.has(k, b) && a.findWhere(c, {
- name: "wix-comp"
- })
- }
- function m(a) {
- return k[a] || a
- }
- function n() {
- var a = this.props.siteData.measureMap;
- if (a) {
- this._lastMeasuredWidth = a.width[this.props.id]
- }
- return this._lastMeasuredWidth
- }
- function o(a, b) {
- var c = JSON.parse(a.replace(/"/g, '"'));
- c.url = b;
- return c
- }
- function p(a, b) {
- try {
- return o(a, b)
- } catch (b) {
- this.props.siteAPI.reportBI(g.MEDIA_RICH_TEXT_WRONG_COMP_DATA, {
- wixCompJson: a,
- errorDesc: b.message,
- errorStack: b.stack
- });
- return undefined
- }
- }
- function q(a) {
- return "innerContainer_" + a.replace("#", "")
- }
- function r(a) {
- return "innerComp_" + a.replace("#", "")
- }
- function s(a, b) {
- var c = a.style;
- c.marginTop = "10px";
- c.marginBottom = "10px";
- c.marginLeft = b.marginLeft;
- c.marginRight = b.marginRight;
- c.position = "static"
- }
- function t(a, b) {
- var c = b.style;
- if (a.floatValue) {
- c.float = a.floatValue;
- c.display = "";
- c.clear = ""
- } else {
- c.display = a.display;
- c.clear = "both";
- c.float = ""
- }
- }
- function u(b, c) {
- if (a.has(b, "post-cover-photo")) {
- c.addItemProp = true
- }
- }
- function v(a, b) {
- a.compProp = {
- showControls: "temp_show",
- enablejsapi: 1
- };
- u(b, a);
- return a
- }
- function w(b, c, d) {
- c.compProp = {
- displayMode: "fitWidthStrict"
- };
- var e = a.get(c, "structure.linkDataQuery");
- if (e) {
- var f = e.slice(1);
- c.compData.link = a.find(b, {
- id: f
- })
- }
- u(d, c);
- return c
- }
- function x(b) {
- b.compData.items = a.map(b.compData.items, function(c) {
- return a.assign({
- galleryData: b.compData
- }, c)
- })
- }
- return {
- displayName: "MediaRichText",
- mixins: [f.textCompMixin],
- allowIframes: true,
- convertCompDataTextToHTML: function(c) {
- this.innerComponents = {};
- this.componentDataQueryList = a.clone(c.compData.componentDataList || []);
- this._compData = c.compData;
- this._componentHtml = j.convertDataQueryLinksIntoHtmlAnchors(this._componentHtml, c.compData.linkList, a.partialRight(b.linkRenderer.renderLink, c.siteData, c.rootNavigationInfo));
- this._componentHtml = this._convertComponentsPlaceHoldersToRenderedComponents(this._componentHtml);
- this._componentHtml = j.mobileTextTransformIfNeeded(this._componentHtml, {
- brightness: a.get(c, "compProp.brightness"),
- isMobileView: c.siteData.isMobileView(),
- scale: a.get(c, "structure.layout.scale"),
- fontGetter: c.siteData.getFont.bind(c.siteData),
- colorGetter: c.siteData.getColor.bind(c.siteData)
- })
- },
- _addToCompDataListIfMissing: function(b) {
- if (!a.includes(this.componentDataQueryList, b)) {
- this.componentDataQueryList.push(b)
- }
- },
- _convertComponentsPlaceHoldersToRenderedComponents: function(b) {
- var c = [];
- i(b, {
- start: function(b, d, e, f) {
- if (l(b, d)) {
- var g = a.reduce(d, function(a, b) {
- a[b.name] = b.value;
- return a
- }, {});
- var h = p.call(this, g["wix-comp"], g.src);
- if (h) {
- this._handleInnerComps(h, c, f)
- }
- } else {
- f = f.replace("<" + b, "<" + m(b));
- c.push(f)
- }
- }.bind(this),
- chars: function(a) {
- c.push(a)
- },
- end: function(a) {
- c.push("</" + m(a) + ">")
- }
- });
- return c.join("")
- },
- _validateAndFixGalleryCompData: function(b, c) {
- var d = a.clone(b);
- var e = h.buildGalleryJsonFromCkData(c, this._compData.innerCompsData, b.style, this.props.loadedStyles);
- e.id = r(e.dataQuery);
- a.assign(d, e);
- x(d);
- return d
- },
- _createInnerComponentProperties: function(a) {
- var b = this._createInnerComponentBasicProperties(a, a.defaultWidth);
- if (a.componentType === "wysiwyg.viewer.components.WPhoto") {
- return w(this._compData.linkList, b, a)
- } else if (a.componentType === "wysiwyg.viewer.components.Video") {
- return v(b, a)
- } else if (h.isGalleryComponent(a.componentType)) {
- return this._validateAndFixGalleryCompData(b, a)
- }
- this.props.siteAPI.reportBI(g.MEDIA_RICH_TEXT_UNSUPPORTED_COMPONENT, {
- wixCompJson: a
- });
- return b
- },
- _getTextCompWidth: function() {
- return n.call(this) || this.props.style.width || 20
- },
- _createInnerComponentBasicProperties: function(b, c) {
- var d = this._getTextCompWidth();
- var f = e.componentPropsBuilder.getCompProps(b, this.props.siteAPI, null, this.props.loadedStyles);
- f.compData = f.compData || a.get(this._compData.innerCompsData, b.dataQuery);
- f.usePreloader = false;
- delete f.ref;
- s(f, b);
- t(b, f);
- this._calcInnerCompWidthAndHeight(c, b, d, f);
- return f
- },
- _calcInnerCompWidthAndHeight: function(b, c, d, e) {
- var f = d,
- g = e.compData && e.compData.width,
- h = c.width;
- if (a.isNumber(h)) {
- f = this._getWidthMultiplier(c) * d
- } else if (a.isNumber(g)) {
- f = Math.min(g, d)
- }
- e.style.width = f;
- if (c.dimsRatio) {
- e.style.height = e.style.width * c.dimsRatio
- } else if (c.componentType === "wysiwyg.viewer.components.Video") {
- e.style.height = e.style.width * .5625
- }
- },
- _getWidthMultiplier: function(a) {
- return this.props.siteData.isMobileView() ? .99 : a.width
- },
- _replaceWixCompPlaceholdersWithLiveReactElements: function() {
- var b = c.findDOMNode(this);
- a.forEach(this.componentDataQueryList, function(a) {
- var d = r(a);
- if (this.innerComponents[d]) {
- var e = q(a),
- f = this.innerComponents[d].class,
- h = this.innerComponents[d].props;
- c.render(f(h), b.querySelector("#" + e))
- } else {
- this.props.siteAPI.reportBI(g.MEDIA_RICH_MISSING_COMPONENT_PLACEHOLDER, {
- dataQuery: a
- })
- }
- }, this)
- },
- componentDidUpdate: function() {
- this._replaceWixCompPlaceholdersWithLiveReactElements()
- },
- componentDidMount: function() {
- this._replaceWixCompPlaceholdersWithLiveReactElements()
- },
- _handleInnerComps: function(a, b, c) {
- if (a.componentType === "htmlComp") {
- this._handleHtmlComp(a, b, c)
- } else {
- this._handleInnerMediaComp(a, b, c)
- }
- },
- _handleInnerMediaComp: function(a, c) {
- var e = r(a.dataQuery);
- var f = q(a.dataQuery);
- var g = this._createInnerComponentProperties(a);
- var h = b.compFactory.getCompClass(a.componentType);
- this.innerComponents[e] = {
- props: g,
- class: h
- };
- this._addToCompDataListIfMissing(a.dataQuery);
- this.toggleRenderToString(true);
- c.push("<div id='" + f + "'>" + d.renderToString(h(g)) + "</div>");
- this.toggleRenderToString(false)
- },
- _handleHtmlComp: function(a, b, c) {
- var d = this.props.siteData.serviceTopology.staticHTMLComponentUrl;
- var e = "//0.htmlcomponentservice.com/";
- var f;
- function g(a) {
- return a.replace(/^(https?:)?\/\//, "")
- }
- if (a.type === "website") {
- f = "//" + g(a.websiteUrl)
- } else {
- var h = a.urlStatus === "temp" ? e : d;
- f = h + a.relativeUrl
- }
- var i = "";
- if (a.align === "center") {
- i = "display: block; clear: both; margin: 0 auto;"
- } else {
- i = "float:" + a.align + ";"
- }
- c = c.replace(/src=(".*?")/, 'src="' + f + '"' + ' style="' + i + '" sandbox="allow-scripts allow-same-origin allow-popups" ');
- c = c.replace(/wix-comp=(".*?")/, "");
- if (this.props.siteData.isMobileView() && a.dimsRatio) {
- c = c.replace(/width=(".*?")/, 'width="99%"');
- if (a.dimsRatio > 1) {
- var j = this._getTextCompWidth() ? parseInt(this._getTextCompWidth(), 10) : 1;
- var k = .99 * j * a.dimsRatio;
- c = c.replace(/height=(".*?")/, 'height="' + k + 'px"')
- }
- } else {
- c = c.replace(/width=(".*?")/, 'width="' + a.width + '"')
- }
- b.push(c)
- }
- }
- });
- define("components/components/youTubeSubscribeButton/youTubeSubscribeButton", ["lodash", "react", "core"], function(a, b, c) {
- "use strict";
- var d = c.compMixins;
- var e = {
- defaultLayoutWidth: 145,
- defaultLayoutHeight: 33,
- fullLayoutWidth: 212,
- fullLayoutHeight: 55,
- fullLayoutHeightIE: 67,
- toolTipExtraSpace: 60,
- toolTipWidthExtraSpaceDefault: 150,
- toolTipWidthExtraSpaceFull: 150
- };
- function f(a, b, c) {
- var d = g(a, b, c);
- return {
- height: d.height + e.toolTipExtraSpace,
- width: d.width + (c === "default" ? e.toolTipWidthExtraSpaceDefault : e.toolTipWidthExtraSpaceFull)
- }
- }
- function g(a, b, c) {
- if (c === "default") {
- if (a < e.defaultLayoutHeight) {
- a = e.defaultLayoutHeight
- }
- if (b < e.defaultLayoutWidth) {
- b = e.defaultLayoutWidth
- }
- } else {
- if (a < e.fullLayoutHeight) {
- a = e.fullLayoutHeight
- }
- if (b < e.fullLayoutWidth) {
- b = e.fullLayoutWidth
- }
- }
- return {
- width: b,
- height: a
- }
- }
- return {
- displayName: "YouTubeSubscribeButton",
- mixins: [d.skinBasedComp],
- getInitialState: function() {
- var a;
- if (this.props.siteData.browser.ie) {
- e.fullLayoutHeight = e.fullLayoutHeightIE
- }
- if (this.props.compProp.layout === "default") {
- a = this.props.siteData.browser.ie ? "defaultIE" : "default"
- } else {
- a = this.props.siteData.browser.ie ? "fullIE" : "full"
- }
- return {
- $layout: a,
- $hoverMode: "nonHover",
- iframeWrapperSizes: g(this.props.style.height, this.props.style.width, this.props.compProp.layout)
- }
- },
- getIFrameSrc: function() {
- var a = this.props.siteData.santaBase + "/static/external/youtubeSubscribeButton.html?";
- var b = [];
- b.push("channel=" + this.props.compData.youtubeChannelId);
- b.push("layout=" + this.props.compProp.layout);
- b.push("theme=" + this.props.compProp.theme);
- return a + b.join("&")
- },
- onMouseOut: function() {
- this.setState({
- iframeWrapperSizes: g(this.props.style.height, this.props.style.width, this.props.compProp.layout),
- $hoverMode: "nonHover"
- })
- },
- onMouseEnter: function() {
- this.setState({
- iframeWrapperSizes: f(this.props.style.height, this.props.style.width, this.props.compProp.layout),
- $hoverMode: "hoverMode"
- })
- },
- componentWillReceiveProps: function(a) {
- this.setState({
- iframeWrapperSizes: f(a.style.height, a.style.width, a.compProp.layout)
- })
- },
- getSkinProperties: function() {
- var a = g(this.props.style.height, this.props.style.width, this.props.compProp.layout);
- var c = {
- src: this.getIFrameSrc(),
- allowFullScreen: true,
- frameBorder: "0",
- width: "100%",
- height: "100%",
- onMouseOut: this.onMouseOut,
- onMouseEnter: this.onMouseEnter
- };
- return {
- "": {
- style: {
- height: a.height,
- width: a.width
- }
- },
- hitWidth: {
- style: {
- left: a.width
- }
- },
- youtubeIframe: {
- addChildren: [b.DOM.iframe(c)],
- style: {
- width: this.state.iframeWrapperSizes.width,
- height: this.state.iframeWrapperSizes.height
- }
- }
- }
- }
- }
- });
- define("components/components/wixads/wixAdsDesktop", ["lodash", "utils", "core"], function(a, b, c) {
- "use strict";
- var d = b.htmlParser;
- function e(b) {
- var c = b;
- var d = ["smallMusa", "smallLogo", "face", "cap", "spacer", "emphasis", "adFooterBox", "siteBanner", "bigMusa", "txt", "shd", "wrapper", "logoDot"];
- a.forEach(d, function(a) {
- c = c.split(a).join("wixAds_" + a)
- });
- return c || ""
- }
- function f(b, c, d, e) {
- var f = a.map(d, function(a) {
- return a.name + "='" + a.escaped + "'"
- }).join(" ");
- b.push("<" + c + " " + f + (e ? "/" : "") + ">")
- }
- function g(a, b) {
- a.push("</" + b + ">")
- }
- function h(a, b) {
- a.push(b)
- }
- function i(a) {
- var b = [];
- d(a, {
- start: f.bind(null, b),
- end: g.bind(null, b),
- chars: h.bind(null, b)
- });
- return b.join("")
- }
- function j() {
- return this.props.siteData.isFacebookSite() && this.props.siteData.rendererModel.premiumFeatures.length > 0
- }
- return {
- displayName: "WixAdsDesktop",
- mixins: [c.compMixins.skinBasedComp],
- getInitialState: function() {
- this.onAdClick = this.onPreviewAdClick || this.onViewerAdClick;
- return {
- $viewerState: "desktop",
- $appType: this.props.siteData.isFacebookSite() ? "facebook" : ""
- }
- },
- getSkinProperties: function() {
- return {
- desktopWADTop: {
- onClick: this.onAdClick,
- style: {
- visibility: this.props.siteAPI.isZoomOpened() || j.call(this) ? "hidden" : "visible"
- }
- },
- desktopWADTopLabel: {
- dangerouslySetInnerHTML: {
- __html: e(i(this.props.adData.topLabel))
- }
- },
- desktopWADTopContent: {
- dangerouslySetInnerHTML: {
- __html: e(i(this.props.adData.topContent))
- }
- },
- desktopWADBottom: {
- onClick: this.onAdClick,
- style: {
- visibility: this.props.siteAPI.isZoomOpened() || j.call(this) ? "hidden" : "visible",
- display: "block !important"
- }
- },
- desktopWADBottomContent: {
- className: this.classSet({
- nativeAndroid: this.props.siteData.mobile.isAndroidOldBrowser()
- }),
- dangerouslySetInnerHTML: {
- __html: e(i(this.props.adData.footerLabel))
- }
- }
- }
- },
- onViewerAdClick: function() {
- this.props.siteAPI.openPopup(this.props.adData.adUrl, "_blank")
- }
- }
- });
- define("components/components/wixads/wixAdsMobile", ["lodash", "utils", "core"], function(a, b, c) {
- "use strict";
- return {
- displayName: "WixAdsMobile",
- mixins: [c.compMixins.skinBasedComp],
- getInitialState: function() {
- this._onClickHandler = this.onClickOverridenHandler || this.onAdClick;
- return {
- $viewerState: "mobile"
- }
- },
- shouldShowMobileWixAds: function() {
- var c = this.props.siteData;
- var d = a(c.currentUrl.query).keys().find(function(a) {
- return a.toLowerCase() === "showmobileview"
- });
- var e = b.stringUtils.isTrue(c.currentUrl.query[d]);
- var f = this.props.siteData.renderFlags.isWixAdsAllowed;
- var g = this.props.siteAPI.isZoomOpened();
- var h = c.isMobileDevice() ? c.mobile.isPortrait() : true;
- var i = c.isPremiumUser();
- var j = !i && f && h && !g;
- return e || j
- },
- getSkinProperties: function() {
- var a = this.shouldShowMobileWixAds();
- var b = {
- display: a ? "block" : "none"
- };
- return {
- "": {
- style: {
- height: a ? 30 : 0
- }
- },
- mobileAd: {
- onClick: this._onClickHandler,
- style: b
- },
- mobileAdLink: {},
- mobileAdImg: {
- style: {
- height: a ? 30 : 0
- },
- src: this.props.siteData.serviceTopology.staticMediaUrl + "/" + this.props.adData.footerLabel
- }
- }
- },
- onAdClick: function() {
- window.location.href = this.props.adData.adUrl
- }
- }
- });
- define("components/components/mobileActionsMenu/mobileActionsMenuItem", ["react", "utils"], function(a, b) {
- "use strict";
- var c = a.createClass({
- displayName: "MobileActionsMenuItem",
- render: function() {
- var c = {};
- c[this.props.styleId + "_selected"] = this.props.isSelected;
- c[this.props.styleId + "_subItem"] = this.props.level > 1;
- c[this.props.styleId + "_hasChildren"] = this.props.hasChildren;
- var d = "#";
- if (this.props.target === "page") {
- d = this.props.href
- } else if (this.props.target === null) {
- d = ""
- }
- return a.DOM.li({
- onClick: this.onItemClick
- }, a.DOM.a({
- href: d,
- "data-anchor": this.props["data-anchor"],
- className: b.classNames(c)
- }, this.props.level > 1 ? "> " + this.props.label : this.props.label))
- },
- onItemClick: function() {
- if (this.props.target === "window") {
- this.props.siteAPI.openPopup(this.props.href)
- } else if (this.props.target === "page") {
- this.props.closeMenu()
- }
- }
- });
- return c
- });
- define("components/components/mobileActionsMenu/mobileActionsMenu", ["lodash", "react", "core", "utils", "components/bi/events.json", "components/components/mobileActionsMenu/mobileActionsMenuItem"], function(a, b, c, d, e, f) {
- "use strict";
- function g(b, c, d, e, f, g) {
- function i(a, b) {
- return h(b, c, a, e, f, d, g)
- }
- return a(b).filter("isVisibleMobile").reduce(function(b, c) {
- var d = a(c.items).filter("isVisibleMobile").map(i.bind(null, 2)).value();
- return b.concat([i(1, c)]).concat(d)
- }, [])
- }
- function h(c, d, e, g, h, i, j) {
- var k = c.link ? c.link.render.href : null;
- var l = c.label;
- var m = k ? "page" : null;
- return b.createElement(f, {
- label: l,
- href: k,
- target: m,
- "data-anchor": a.get(c, "link.render.data-anchor"),
- closeMenu: j,
- level: e,
- hasChildren: c.items && c.items.length > 0,
- isSelected: "#" + d === c.link ? c.link.pageId : false,
- siteAPI: g,
- siteData: h,
- styleId: i
- })
- }
- function i(b, c, d, e) {
- return a.map(b, function(a) {
- return j(a.id, a.url, d, e, c)
- })
- }
- function j(a, c, d, e, g) {
- return b.createElement(f, {
- label: k(a),
- href: c,
- target: "window",
- siteAPI: d,
- siteData: e,
- styleId: g
- })
- }
- function k(a) {
- var b = {
- facebook: "Facebook",
- twitter: "Twitter",
- pinterest: "Pinterest",
- google_plus: "Google+",
- tumblr: "Tumblr",
- blogger: "Blogger",
- linkedin: "LinkedIn",
- youtube: "YouTube",
- vimeo: "Vimeo",
- flickr: "Flickr",
- "": ""
- };
- return b[a] || a
- }
- return {
- displayName: "MobileActionsMenu",
- mixins: [c.compMixins.skinBasedComp],
- getInitialState: function() {
- return {
- $display: "closed",
- $theme: this.props.userColorScheme || "dark",
- $list: "nolist",
- zoom: 1
- }
- },
- componentDidLayout: function() {
- a.delay(function() {
- var a = this.props.siteData.mobile.getInvertedZoomRatio();
- this.setState({
- zoom: a
- })
- }.bind(this), 1e3)
- },
- getSkinProperties: function() {
- var a = {};
- var c = this.props.siteData.rendererModel.siteMetaData;
- var e = c.quickActions;
- var f = d.menuUtils.getSiteMenuWithRender(this.props.siteData, false, this.props.rootNavigationInfo);
- var h = e.socialLinks;
- var j = this.state.$list === "pages" ? g(f, this.props.currentUrlPageId, this.props.styleId, this.props.siteAPI, this.props.siteData, this.onListCloseClick) : [];
- var k = this.state.$list === "social" ? i(h, this.props.styleId, this.props.siteAPI, this.props.siteData) : [];
- var l = [];
- if (e.configuration.navigationMenuEnabled) {
- l.push(b.DOM.li({
- className: this.props.styleId + "_navigation",
- onClick: this.onMenuItemClick.bind(this, "pages")
- }, b.DOM.a()))
- }
- if (e.configuration.phoneEnabled) {
- l.push(b.DOM.li({
- className: this.props.styleId + "_phone",
- onClick: this.onMenuItemClick.bind(this, "phone")
- }, b.DOM.a()))
- }
- if (e.configuration.emailEnabled) {
- l.push(b.DOM.li({
- className: this.props.styleId + "_email",
- onClick: this.onMenuItemClick.bind(this, "email")
- }, b.DOM.a()))
- }
- if (e.configuration.addressEnabled) {
- l.push(b.DOM.li({
- className: this.props.styleId + "_address",
- onClick: this.onMenuItemClick.bind(this, "address")
- }, b.DOM.a()))
- }
- if (e.configuration.socialLinksEnabled) {
- l.push(b.DOM.li({
- className: this.props.styleId + "_socialLinks",
- onClick: this.onMenuItemClick.bind(this, "social")
- }, b.DOM.a()))
- }
- if (l.length === 0) {
- a.display = "none"
- }
- a.zoom = this.state.zoom;
- return {
- "": {
- style: a
- },
- wrapper: {
- onSwipeUp: this.onTouchSwipeUp,
- onSwipeDown: this.onTouchSwipeDown,
- style: {
- className: "mobile-actions-menu-wrapper"
- }
- },
- knobContainer: {},
- knob: {
- onClick: this.onKnobClick
- },
- menuContainer: {
- children: b.DOM.ul({
- children: l
- }),
- style: {}
- },
- lists: {},
- listTitle: {
- children: this.state.$list === "pages" ? "Pages" : "See me on..."
- },
- pagesList: {
- children: b.DOM.ul({
- children: j
- })
- },
- socialList: {
- children: b.DOM.ul({
- children: k
- })
- },
- closeBtn: {
- onClick: this.onListCloseClick,
- onTouchEnd: this.onListCloseClick
- }
- }
- },
- componentWillReceiveProps: function(a) {
- if (this.props.currentUrlPageId !== a.currentUrlPageId) {
- this.setState({
- $list: "nolist"
- })
- }
- },
- onKnobClick: function(a) {
- a.preventDefault();
- a.stopPropagation();
- this.props.siteAPI.reportBI(e.MOBILE_ACTION_BAR_TOGGLE, {
- site_id: this.props.siteData.rendererModel.siteInfo.siteId,
- status: this.state.$display !== "opened"
- });
- this.setState({
- $display: this.state.$display === "opened" ? "closed" : "opened"
- })
- },
- onTouchSwipeUp: function(a) {
- a.preventDefault();
- a.stopPropagation();
- if (this.state.$display !== "opened") {
- this.setState({
- $display: "opened"
- })
- }
- },
- onTouchSwipeDown: function(a) {
- a.preventDefault();
- a.stopPropagation();
- if (this.state.$display !== "closed") {
- this.setState({
- $display: "closed"
- })
- }
- },
- onMenuItemClick: function(a, b) {
- b.preventDefault();
- b.stopPropagation();
- this.props.siteAPI.reportBI(e.MOBILE_ACTION_BAR_USAGE, {
- site_id: this.props.siteData.rendererModel.siteInfo.siteId,
- button_name: a
- });
- var c = this.props.siteData.rendererModel.siteMetaData;
- switch (a) {
- case "pages":
- this.setState({
- $list: "pages"
- });
- break;
- case "address":
- window.location.href = "http://maps.apple.com/?q=" + c.contactInfo.address;
- break;
- case "phone":
- window.location.href = "tel:" + c.contactInfo.phone;
- break;
- case "email":
- window.location.href = "mailto:" + c.contactInfo.email;
- break;
- case "social":
- this.setState({
- $list: "social"
- });
- break;
- default:
- break
- }
- },
- onListCloseClick: function() {
- this.setState({
- $list: "nolist"
- });
- return false
- }
- }
- });
- define("components/components/wTwitterTweet/wTwitterTweet", ["lodash", "core", "utils", "socialCommon"], function(a, b, c, d) {
- "use strict";
- var e = b.compMixins;
- var f = c.urlUtils;
- return {
- displayName: "WTwitterTweet",
- mixins: [e.skinBasedComp, d.twitterComponentMixin, d.socialCompMixin],
- getIFrameSrc: function() {
- var a = {
- href: "https://twitter.com/share",
- lang: this.getLanguage(),
- url: this.getSocialUrl(this.props.rootId === "masterPage"),
- text: this.props.compData.defaultText,
- related: this.props.compData.accountToFollow,
- compId: this.props.id,
- origin: c.urlUtils.origin(),
- widgetType: "TWEET"
- };
- if (this.props.siteData.isMobileView()) {
- a.size = "l"
- }
- return this.props.siteData.santaBase + "/static/external/twitter.html?" + f.toQueryString(a)
- }
- }
- });
- define("components/components/exitMobileModeButton/exitMobileModeButton", ["lodash", "core", "utils", "buttonCommon"], function(a, b, c, d) {
- "use strict";
- var e = c.linkRenderer;
- function f(a, b, c) {
- var d = {
- type: "SwitchMobileViewMode",
- dataMobile: false
- };
- var f = e.renderLink(d, a, c);
- f.style = {
- textAlign: b.align
- };
- return f
- }
- return {
- displayName: "ExitMobileModeButton",
- mixins: [b.compMixins.skinBasedComp, d.buttonMixin],
- getSkinProperties: function() {
- var a = this.props.compData;
- var b = this.props.compProp;
- var c = this.props.siteData;
- var d = this.props.rootNavigationInfo;
- var e = {
- link: f.call(this, c, b, d),
- label: {
- children: [a.label],
- style: this.getLabelStyle(this.props)
- }
- };
- this.resetMinHeightIfNeeded(e);
- return e
- }
- }
- });
- define("components/components/table/table", ["lodash", "core", "react"], function(a, b, c) {
- "use strict";
- var d = b.compMixins;
- function e() {
- var b = a.times(this.props.compProp.numOfRows, function(b) {
- var d = a.times(this.props.compProp.numOfColumns, function(a) {
- var d = this.props.getBodyCell(a, b);
- var e = "cell_" + b + "_" + a;
- var f = {
- style: this.props.compData.columnsStyle[a],
- ref: e,
- key: d && d.props.key || e
- };
- return c.DOM.td(f, d)
- }, this);
- return c.DOM.tr({
- key: "row_" + b,
- ref: "row_" + b
- }, d)
- }, this);
- var d = c.DOM.tr({
- key: "row_spacer",
- ref: "row_spacer",
- className: this.classSet({
- spacer: true
- })
- }, c.DOM.td({
- colSpan: "100%"
- }));
- b.push(d);
- return b
- }
- function f(b) {
- var d = b ? "header" : "footer";
- var e = b ? this.props.getHeaderCell : this.props.getFooterCell;
- return a.times(this.props.compProp.numOfColumns, function(a) {
- var b = e(a);
- var f = d + "_cell_" + a;
- var g = {
- ref: f,
- key: b && b.props.key || f
- };
- return c.DOM.td(g, b)
- })
- }
- return {
- displayName: "Table",
- mixins: [d.skinBasedComp],
- propType: {
- getBodyCell: c.PropTypes.func.isRequired,
- getHeaderCell: c.PropTypes.func.isRequired,
- getFooterCell: c.PropTypes.func.isRequired
- },
- getSkinProperties: function() {
- var a = {
- tableBody: {
- children: e.call(this)
- }
- };
- if (this.props.compProp.minHeight) {
- a[""] = {
- style: {
- minHeight: this.props.compProp.minHeight,
- width: "100%"
- }
- };
- a.table = {
- style: {
- height: this.props.compProp.minHeight
- }
- }
- }
- if (this.props.compProp.header) {
- a.tableHeader = {
- children: c.DOM.tr({
- key: "row_header"
- }, f.call(this, true))
- }
- }
- if (this.props.compProp.footer) {
- a.tableFooter = {
- children: c.DOM.tr({
- key: "row_footer"
- }, f.call(this, false))
- }
- }
- return a
- }
- }
- });
- define("components/components/disqusComments/translations/disqusComments", [], {
- de: {
- disqusComments_notDisqusIdMessage: "Um mit Disqus zu starten, gehen Sie zu den Einstellungen."
- },
- en: {
- disqusComments_notDisqusIdMessage: "To get started with Disqus head to the Settings panel."
- },
- es: {
- disqusComments_notDisqusIdMessage: "Para comenzar con Disqus, dirígete al panel de opciones."
- },
- fr: {
- disqusComments_notDisqusIdMessage: "Pour commencer à utiliser Disqus, dirigez-vous vers le panneau de propriété."
- },
- it: {
- disqusComments_notDisqusIdMessage: "Per iniziare a usare Disqus, dirigiti al riquadro Impostazioni."
- },
- ja: {
- disqusComments_notDisqusIdMessage: "アカウントを接続して Disqus をご利用ください。"
- },
- ko: {
- disqusComments_notDisqusIdMessage: "Disqus를 시작하려면 설정창으로 이동하세요."
- },
- pl: {
- disqusComments_notDisqusIdMessage: "Aby rozpocząć korzystanie z Disqus przejdź do panelu Ustawień."
- },
- ru: {
- disqusComments_notDisqusIdMessage: "Для работы с Disqus зайдите в панель настроек."
- },
- nl: {
- disqusComments_notDisqusIdMessage: "Ga naar de Instellingen om aan de slag te gaan met Disqus."
- },
- tr: {
- disqusComments_notDisqusIdMessage: "Disqus kullanmaya başlamak için Ayarlar paneline gidin."
- },
- sv: {
- disqusComments_notDisqusIdMessage: "För att börja använda Disqus gå till inställningar."
- },
- pt: {
- disqusComments_notDisqusIdMessage: "Para começar com o Disqus, vá no painel de configurações."
- },
- no: {
- disqusComments_notDisqusIdMessage: "For å komme i gang med Disqus gå til innstillingerpanelet."
- },
- da: {
- disqusComments_notDisqusIdMessage: "For at komme i gang med Diqus, gå til panelet indstillinger."
- },
- hi: {
- disqusComments_notDisqusIdMessage: "To get started with Disqus head to the Settings panel."
- },
- zh: {
- disqusComments_notDisqusIdMessage: "To get started with Disqus head to the Settings panel."
- },
- cs: {
- disqusComments_notDisqusIdMessage: "Abyste mohli začít používat Disqus, přejděte na panel Nastavení."
- }
- });
- define("components/components/disqusComments/disqusComments", ["core", "utils", "lodash", "components/components/disqusComments/translations/disqusComments"], function(a, b, c, d) {
- "use strict";
- var e = a.compMixins,
- f = b.urlUtils,
- g = "wixdemo123";
- return {
- displayName: "DisqusComments",
- mixins: [e.skinBasedComp, e.postMessageCompMixin, e.uniquePageIdMixin],
- getDisqusInstanceId: function() {
- return this.getDisqusId && this.getDisqusId() || this.getUniquePageId()
- },
- getIframeSrc: function() {
- var a = this.props.siteData;
- var b = a.getCurrentUrlPageId();
- var c = a.getDataByQuery(b, a.MASTER_PAGE_ID);
- var d = this.getDisqusInstanceId(),
- e = {
- disqusId: this.props.compData.disqusId ? this.props.compData.disqusId : g,
- pageUrl: a.currentUrl.full,
- pageTitle: c.title,
- compId: this.props.id,
- disqusInstanceId: d
- };
- return this.props.siteData.santaBase + "/static/external/disqusComments.html?" + f.toQueryString(e)
- },
- getSkinProperties: function() {
- var a = !!this.props.compData.disqusId;
- return {
- "": {
- style: {
- height: this.state.$disqusCommentsDesiredHeight ? this.state.$disqusCommentsDesiredHeight : ""
- }
- },
- disqusCommentsHolder: {
- src: this.getIframeSrc(),
- style: {
- height: this.state.$disqusCommentsDesiredHeight ? this.state.$disqusCommentsDesiredHeight : ""
- }
- },
- disqusCommentsPreviewOverlay: {
- style: {
- display: "none"
- }
- },
- noDisqusIdMessage: {
- style: {
- display: !a ? "" : "none"
- },
- children: this.getTranslation("disqusComments_notDisqusIdMessage")
- }
- }
- },
- componentWillReceiveProps: function(a) {
- this.setState({
- $disqusId: a.compData.disqusId
- })
- },
- getTranslation: function(a) {
- return this.translatedKeys[a] || a
- },
- getInitialState: function() {
- var a = this.props.siteData;
- var c = b.wixUserApi.getLanguage(a.requestModel.cookie, a.currentUrl).toLowerCase() || "en";
- this.translatedKeys = d[c] || {};
- return {
- $disqusId: this.props.compData.disqusId,
- $disqusCommentsDesiredHeight: 200
- }
- },
- onDisqusCommentsHolderMsg: function(a) {
- this.prevHeight = this.state.$disqusCommentsDesiredHeight;
- this.setState({
- $disqusCommentsDesiredHeight: a.height
- });
- if (this.prevHeight !== a.height) {
- this.registerReLayout()
- }
- },
- componentDidMount: function() {
- this.setPostMessageHandler(this.props.id, this.onDisqusCommentsHolderMsg)
- }
- }
- });
- define("components/components/boxSlideShow/common/boxSlideShowAutoPlay", [], function() {
- "use strict";
- return {
- canAutoPlay: function(a) {
- return this.getSlidesFromChildren(this.props.children).length > 1 && a && this.props.siteData.renderFlags.isPlayingAllowed && !this.props.siteAPI.isZoomOpened();
- },
- toggleAutoPlay: function() {
- this.setState({
- autoPlay: !this.state.autoPlay
- }, this.updateAutoPlayState)
- },
- updateAutoPlayState: function() {
- this.clearTimeoutNamed(this.props.id);
- if (this.state.autoPlay) {
- this.setTimeoutNamed(this.props.id, this.autoplayCallback, this.getAutoplayInterval())
- }
- },
- autoplayCallback: function() {
- if (this.props.siteAPI.isZoomOpened()) {
- return
- }
- this.clickMoveToNextSlide();
- this.updateAutoPlayState()
- },
- getAutoplayInterval: function() {
- var a = this.props.compProp.autoPlayInterval;
- return Math.floor(a * 1e3)
- },
- componentDidMount: function() {
- this.updateAutoPlayState()
- }
- }
- });
- define("components/components/boxSlideShow/common/slideNavigationMixin", ["react", "lodash", "core", "components/components/boxSlideShow/common/boxSlideShowAutoPlay"], function(a, b, c, d) {
- "use strict";
- var e = c.compMixins;
- var f = {
- center: "center",
- left: "flex-start",
- right: "flex-end"
- };
- var g = c.componentUtils.boxSlideShowCommon;
- function h(a, b) {
- var c = a.selectedButtonSizeRatio || 1;
- return Math.floor(b * c)
- }
- function i(a, c) {
- if (!a) {
- return {
- currentIndex: 0,
- autoPlay: c.props.autoPlay || false
- }
- }
- return b.pick(a, ["currentIndex", "autoPlay"])
- }
- return {
- mixins: [e.skinBasedComp, e.timeoutsMixin, d, e.animationsMixin, e.compStateMixin(i)],
- getInitialState: function() {
- this.reverse = false;
- this.isDirectionLeftToRight = this.props.compProp.direction === "LTR";
- return b.assign(i(null, {
- props: this.props.compProp
- }), {
- isInTransition: false,
- autoPlay: this.canAutoPlay(this.props.compProp.autoPlay)
- })
- },
- setCurrentSlideAndRegisterRelayout: function(a, b, c) {
- if (this.state.isInTransition && !b) {
- return
- }
- this.registerReLayout();
- this.setState({
- currentIndex: a,
- isInTransition: c
- });
- this.handleAction("change")
- },
- componentWillReceiveProps: function(a) {
- if (this.props.compProp.direction !== a.compProp.direction) {
- this.isDirectionLeftToRight = a.compProp.direction === "LTR"
- }
- if (!a.children) {
- return
- }
- var c = this.getSlidesFromChildren(this.props.children).length;
- var d = this.getSlidesFromChildren(a.children).length;
- if (d < c) {
- var e = b.pluck(a.children, "ref");
- var f = b.pluck(this.props.children, "ref");
- var g = f[this.state.currentIndex];
- var h = b.difference(f, e);
- var i = b.indexOf(f, h[0]);
- var j = this.state.currentIndex > 0 ? this.state.currentIndex - 1 : 0;
- if (b.includes(e, g)) {
- j = e.indexOf(g)
- } else if (j >= d) {
- j = d - 1
- }
- var k = this.state.currentIndex >= d;
- if (this.state.currentIndex !== j) {
- var l = this.state.currentIndex === i;
- this.setCurrentSlideAndRegisterRelayout(j, k, l)
- }
- }
- var m = this.canAutoPlay(a.compProp.autoPlay);
- if (m !== this.state.autoPlay) {
- this.setState({
- autoPlay: m
- }, this.updateAutoPlayState);
- this.handleAction(m ? "autoplayOn" : "autoplayOff")
- }
- },
- createDotsNavigationButtons: function() {
- var c = this.getSlidesFromChildren(this.props.children);
- var d = this.getSkinExports();
- var e = [];
- b.forEach(c, function(b, c) {
- var f = this.state.currentIndex === c;
- var g = f ? h(d, this.props.compProp.navigationDotsSize) : this.props.compProp.navigationDotsSize;
- var i = {
- className: this.classSet({
- "navigation-dot": true,
- selected: f
- }),
- style: {
- width: g,
- height: g,
- marginRight: this.props.compProp.navigationDotsGap / 2,
- marginLeft: this.props.compProp.navigationDotsGap / 2
- }
- };
- e.push(a.DOM.div({
- className: this.classSet({
- "navigation-dot-wrapper": true
- }),
- onClick: this.moveToSlide.bind(this, c),
- children: a.DOM.ul(i)
- }))
- }, this);
- return e
- },
- getDotsNavigationWrapperStyle: function() {
- var a = this.getSkinExports();
- var b = h(a, this.props.compProp.navigationDotsSize);
- return {
- bottom: this.props.compProp.navigationDotsMargin - .5 * b,
- justifyContent: this.getDotsAlignment(),
- WebkitJustifyContent: this.getDotsAlignment()
- }
- },
- moveNextSlide: function(a) {
- if (this.state.isInTransition) {
- return
- }
- if (a) {
- var b = this.props.siteAPI.getSiteAspect("SlideShowComponentAspect");
- b.registerOnSlideChangeComplete(a)
- }
- this.reverse = false;
- var c = g.getNextSlideIndex(this.getSlidesFromChildren(this.props.children), this.state.currentIndex);
- this.setCurrentSlideAndRegisterRelayout(c, false, true)
- },
- movePreviousSlide: function(a) {
- if (this.state.isInTransition) {
- return
- }
- if (a) {
- var b = this.props.siteAPI.getSiteAspect("SlideShowComponentAspect");
- b.registerOnSlideChangeComplete(a)
- }
- this.reverse = true;
- var c = g.getPrevSlideIndex(this.getSlidesFromChildren(this.props.children), this.state.currentIndex);
- this.setCurrentSlideAndRegisterRelayout(c, false, true)
- },
- isSlideDirectionReversed: function(a) {
- var b = this.state.currentIndex;
- if (a > b) {
- return b === 0 && a === this.getSlidesFromChildren(this.props.children).length - 1
- }
- return !(a === 0 && b === this.getSlidesFromChildren(this.props.children).length - 1)
- },
- moveToSlide: function(a, c) {
- if (a === this.state.currentIndex || this.state.isInTransition) {
- return
- }
- if (c && b.isFunction(c)) {
- var d = this.props.siteAPI.getSiteAspect("SlideShowComponentAspect");
- d.registerOnSlideChangeComplete(c)
- }
- var e = this.getSlidesFromChildren(this.props.children);
- if (b.isNumber(a) && a >= 0 && a < e.length) {
- this.reverse = this.isSlideDirectionReversed(a);
- this.setCurrentSlideAndRegisterRelayout(a, false, true)
- }
- },
- getSlidesFromChildren: function(a) {
- return g.getSlidesFromChildrenByProps(a)
- },
- getShownOnAllSlidesFromChildren: function(a) {
- return g.getShownOnAllSlidesFromChildrenByProps(a)
- },
- onMouseEnter: function() {
- if (this.state.autoPlay && this.props.compProp.pauseAutoPlayOnMouseOver) {
- this.setState({
- autoPlay: false
- }, this.updateAutoPlayState)
- }
- },
- onMouseLeave: function() {
- if (this.props.compProp.pauseAutoPlayOnMouseOver) {
- this.setState({
- autoPlay: this.canAutoPlay(this.props.compProp.autoPlay)
- }, this.updateAutoPlayState)
- }
- },
- getTransitionDuration: function() {
- return this.props.compProp.transition === "NoTransition" ? 0 : this.props.compProp.transDuration
- },
- transitionCallback: function() {
- this.setState({
- isInTransition: false
- });
- var a = this.props.siteAPI.getSiteAspect("SlideShowComponentAspect");
- a.reportSlideChange(this.props.id)
- },
- getArrowButtonStyle: function(a) {
- var c = this.props.compProp;
- var d = this.getSkinExports();
- var e = d.arrowWidthToHeightRatio || 1;
- var f = c.navigationButtonSize / e;
- var g = c.navigationButtonMargin - .5 * f;
- var h = a ? {
- left: g
- } : {
- right: g
- };
- return b.assign(h, {
- width: f
- })
- },
- getNavigationArrowsStyle: function() {
- var a = this.getSkinExports();
- var b = a.arrowWidthToSizeRatio || 1;
- return {
- top: "calc(50% - " + this.props.compProp.navigationButtonSize * b + "px)"
- }
- },
- getDotsAlignment: function() {
- return f[this.props.compProp.navigationDotsAlignment]
- },
- clickMoveToNextSlide: function() {
- this.moveNextSlide()
- },
- clickMoveToPreviousSlide: function() {
- this.movePreviousSlide()
- }
- }
- });
- define("components/components/boxSlideShow/boxSlideShow/boxSlideShow", ["react", "lodash", "core", "components/components/boxSlideShow/common/slideNavigationMixin"], function(a, b, c, d) {
- "use strict";
- var e = a.createFactory(c.wixTransitionGroup);
- return {
- displayName: "boxSlideShow",
- mixins: [d],
- statics: {
- behaviors: {
- nextSlide: {
- methodName: "moveNextSlide",
- params: []
- },
- prevSlide: {
- methodName: "movePreviousSlide",
- params: []
- },
- moveToSlide: {
- methodName: "moveToSlide",
- params: ["slide"]
- }
- }
- },
- getSkinProperties: function() {
- return {
- "": {
- "data-shouldhideoverflowcontent": this.props.compProp.shouldHideOverflowContent,
- onSwipeLeft: this.clickMoveToNextSlide,
- onSwipeRight: this.clickMoveToPreviousSlide
- },
- inlineContent: {
- parentConst: e,
- siteAPI: this.props.siteAPI,
- siteData: this.props.siteData,
- transition: this.props.compProp.transition,
- transitionDuration: this.getTransitionDuration(),
- transitionCallback: this.transitionCallback,
- reverse: this.isDirectionLeftToRight ? !this.reverse : this.reverse,
- children: [a.cloneElement(this.getSlidesFromChildren(this.props.children)[this.state.currentIndex], {
- onMouseEnter: this.onMouseEnter,
- onMouseLeave: this.onMouseLeave,
- flexibleBoxHeight: this.props.compProp.flexibleBoxHeight,
- shouldHideOverflowContent: this.props.compProp.shouldHideOverflowContent,
- skin: this.getSkinExports().slide.skin,
- styleId: this.props.styleId + "slide",
- parentId: this.props.id,
- minHeight: this.props.structure.layout.height
- })]
- },
- shownOnAllSlides: {
- children: this.getShownOnAllSlidesFromChildren(this.props.children)
- },
- navigationArrows: {
- "data-show-navigation-arrows": this.props.compProp.showNavigationButton,
- style: this.getNavigationArrowsStyle()
- },
- dotsMenuWrapper: {
- "data-show-navigation-dots": this.props.compProp.showNavigationDots,
- children: this.createDotsNavigationButtons(),
- style: this.getDotsNavigationWrapperStyle()
- },
- prevButton: {
- onClick: this.clickMoveToPreviousSlide,
- style: this.getArrowButtonStyle(true)
- },
- nextButton: {
- onClick: this.clickMoveToNextSlide,
- style: this.getArrowButtonStyle(false)
- }
- }
- }
- }
- });
- define("components/components/boxSlideShowSlide/boxSlideShowSlide", ["lodash", "balataCommon", "containerCommon"], function(a, b, c) {
- "use strict";
- var d = c.mixins.containerMixin;
- return {
- displayName: "boxSlideShowSlide",
- mixins: [d],
- getSkinProperties: function() {
- var a = {
- "": {
- "data-shouldhideoverflowcontent": this.props.shouldHideOverflowContent && !this.props.flexibleBoxHeight,
- onMouseEnter: this.props.onMouseEnter,
- onMouseLeave: this.props.onMouseLeave,
- "data-flexibleboxheight": this.props.flexibleBoxHeight,
- "data-parent-id": this.props.parentId,
- "data-min-height": this.props.minHeight
- },
- inlineContent: {
- children: this.props.children
- }
- };
- a.background = b.mubalat.createChildBalata(this);
- return a
- }
- }
- });
- define("components/components/boxSlideShow/stripSlideShow/stripSlideShow", ["react", "lodash", "core", "components/components/boxSlideShow/common/slideNavigationMixin"], function(a, b, c, d) {
- "use strict";
- var e = a.createFactory(c.wixTransitionGroup);
- return {
- displayName: "stripSlideShow",
- mixins: [d],
- statics: {
- behaviors: {
- nextSlide: {
- methodName: "moveNextSlide",
- params: []
- },
- prevSlide: {
- methodName: "movePreviousSlide",
- params: []
- },
- moveToSlide: {
- methodName: "moveToSlide",
- params: ["slide"]
- }
- }
- },
- getTransitionParams: function() {
- return {
- width: this.props.siteData.getScreenWidth()
- }
- },
- getSkinProperties: function() {
- return {
- "": {
- onSwipeLeft: this.clickMoveToNextSlide,
- onSwipeRight: this.clickMoveToPreviousSlide
- },
- inlineContentParent: {
- style: {
- overflow: this.props.compProp.shouldHideOverflowContent ? "hidden" : "visible"
- }
- },
- inlineContent: {
- parentConst: e,
- siteAPI: this.props.siteAPI,
- siteData: this.props.siteData,
- transition: this.props.compProp.transition,
- transitionDuration: this.getTransitionDuration(),
- transitionCallback: this.transitionCallback,
- reverse: this.isDirectionLeftToRight ? !this.reverse : this.reverse,
- getTransitionParams: this.getTransitionParams,
- children: [a.cloneElement(this.getSlidesFromChildren(this.props.children)[this.state.currentIndex], {
- onMouseEnter: this.onMouseEnter,
- onMouseLeave: this.onMouseLeave,
- flexibleBoxHeight: this.props.compProp.flexibleBoxHeight,
- shouldHideOverflowContent: this.props.compProp.shouldHideOverflowContent,
- parentId: this.props.id,
- minHeight: this.props.structure.layout.height
- })]
- },
- shownOnAllSlides: {
- children: this.getShownOnAllSlidesFromChildren(this.props.children)
- },
- navigationArrows: {
- "data-show-navigation-arrows": this.props.compProp.showNavigationButton,
- "data-navigation-button-margin": this.props.compProp.navigationButtonMargin,
- style: this.getNavigationArrowsStyle()
- },
- dotsMenuWrapper: {
- "data-show-navigation-dots": this.props.compProp.showNavigationDots,
- children: this.createDotsNavigationButtons(),
- style: this.getDotsNavigationWrapperStyle()
- },
- prevButton: {
- onClick: this.clickMoveToPreviousSlide,
- style: this.getArrowButtonStyle(true)
- },
- nextButton: {
- onClick: this.clickMoveToNextSlide,
- style: this.getArrowButtonStyle(false)
- }
- }
- }
- }
- });
- define("components/components/boxSlideShowSlide/stripSlideShowSlide", ["lodash", "balataCommon", "containerCommon"], function(a, b, c) {
- "use strict";
- var d = c.mixins.containerMixin;
- return {
- displayName: "stripSlideShowSlide",
- mixins: [d],
- getBackground: function() {
- return b.mubalat.createChildBalata(this)
- },
- getSkinProperties: function() {
- return {
- "": {
- onMouseEnter: this.props.onMouseEnter,
- onMouseLeave: this.props.onMouseLeave,
- "data-flexibleboxheight": this.props.flexibleBoxHeight,
- "data-parent-id": this.props.parentId,
- "data-min-height": this.props.minHeight
- },
- background: this.getBackground(),
- inlineContent: {
- children: this.props.children
- },
- inlineContentParent: {
- style: {
- overflowX: this.props.shouldHideOverflowContent ? "hidden" : "visible",
- overflowY: this.props.shouldHideOverflowContent && !this.props.flexibleBoxHeight ? "hidden" : "visible"
- }
- }
- }
- }
- }
- });
- define("components/components/mobileAppBanner/mobileAppBanner", ["lodash", "react", "core", "utils", "components/bi/events"], function(a, b, c, d, e) {
- "use strict";
- var f = d.logger;
- return {
- displayName: "MobileAppBanner",
- mixins: [c.compMixins.skinBasedComp],
- propTypes: {
- siteData: b.PropTypes.object.isRequired,
- bannerModel: b.PropTypes.object.isRequired,
- appDownloadUrl: b.PropTypes.string.isRequired,
- closeBanner: b.PropTypes.func.isRequired
- },
- componentDidMount: function() {
- var a = this.props.siteData;
- f.reportBI(a, e.MOBILE_APP_BANNER_SHOWN, {
- metaSiteId: a.getMetaSiteId(),
- type: "MobileAppBannerBasicSkin"
- })
- },
- getSkinProperties: function() {
- var a = {
- "": {
- id: this.props.id,
- key: this.props.key,
- ref: this.props.id
- },
- container: {
- "data-device": this.getDevice(this.props.siteData)
- },
- close: {
- onClick: this.closeBannerClicked
- },
- appname: {
- children: [this.props.bannerModel.appName]
- },
- getlink: {
- href: this.props.appDownloadUrl,
- onClick: this.getAppClicked
- },
- iconbody: {
- style: {
- backgroundImage: "url(" + this.props.bannerModel.iconUrl + ")"
- }
- }
- };
- return a
- },
- getAppClicked: function() {
- var a = this.props.siteData;
- f.reportBI(a, e.MOBILE_APP_BANNER_GET_CLICKED, {
- metaSiteId: a.getMetaSiteId(),
- link: this.props.appDownloadUrl
- })
- },
- closeBannerClicked: function() {
- var a = this.props.siteData;
- this.props.closeBanner();
- f.reportBI(a, e.MOBILE_APP_BANNER_CLOSE_CLICKED, {
- metaSiteId: a.getMetaSiteId()
- })
- },
- getDevice: function(a) {
- if (a.mobile.isAppleMobileDevice()) {
- return "apple"
- }
- if (a.mobile.isAndroidMobileDevice()) {
- return "android"
- }
- return "other"
- }
- }
- });
- define("components/components/checkbox/checkbox", ["lodash", "core", "santaProps"], function(a, b, c) {
- "use strict";
- var d = function(b) {
- return {
- valid: a.get(b, "valid", true)
- }
- };
- return {
- displayName: "Checkbox",
- propTypes: {
- compData: c.Types.Component.compData.isRequired,
- compProp: c.Types.Component.compProp.isRequired
- },
- mixins: [b.compMixins.skinBasedComp, b.compMixins.runTimeCompData, b.compMixins.compStateMixin(d), b.compMixins.inputFocusMixin],
- statics: {
- useSantaTypes: true,
- behaviors: a.assign({
- change: {
- methodName: "validate"
- }
- }, b.compMixins.inputFocusMixin.INPUT_FOCUS_BEHAVIORS)
- },
- focus: function() {
- this.refs.input.focus()
- },
- blur: function() {
- this.refs.input.blur()
- },
- validate: function() {
- var a = this.props.compProp.required ? this.refs.input.checked : true;
- this.setState({
- valid: a
- });
- this.handleAction("validate")
- },
- getInitialState: function() {
- return a.assign(d(), {
- checked: false,
- valid: true
- })
- },
- componentWillMount: function() {
- this.setState({
- checked: this.props.compData.checked,
- valid: this.props.compProp.required ? this.props.compData.checked : true
- })
- },
- componentWillReceiveProps: function(a) {
- var b = {
- checked: a.compData.checked
- };
- if (a.renderFlags.componentViewMode === "editor") {
- b.valid = true
- }
- this.setState(b)
- },
- onChange: function() {
- if (this.props.compProp.readOnly || this.props.compProp.isDisabled) {
- return
- }
- var a = {
- checked: !this.state.checked
- };
- this.setState(a);
- this.updateData(a);
- this.handleAction("change", a);
- this.validate()
- },
- onFocus: function() {
- this.handleAction("focus")
- },
- onBlur: function() {
- this.handleAction("blur")
- },
- getSkinProperties: function() {
- return {
- "": {
- "data-error": !this.state.valid,
- "data-disabled": !!this.props.compProp.isDisabled
- },
- container: {
- tabIndex: 0,
- onFocus: this.onFocus,
- onBlur: this.onBlur
- },
- input: {
- disabled: !!this.props.compProp.isDisabled,
- required: this.props.compProp.required,
- checked: this.state.checked,
- onChange: this.onChange,
- value: this.props.compData.value
- }
- }
- }
- }
- });
- define("components/components/controller/controller", ["core"], function(a) {
- "use strict";
- var b = a.compMixins;
- return {
- displayName: "Controller",
- mixins: [b.skinBasedComp],
- statics: {
- useSantaTypes: true
- },
- getSkinProperties: function() {
- return {}
- }
- }
- });
- define("components/components/grid/core/enums", [], function() {
- "use strict";
- return {
- FieldType: Object.freeze({
- STRING: "string",
- DATE: "date",
- NUMBER: "number",
- IMAGE: "image",
- BOOLEAN: "bool",
- RICH_TEXT: "richText"
- }),
- SortDirection: Object.freeze({
- ASC: "asc",
- DESC: "desc",
- NONE: "none"
- }),
- UserSelectionType: Object.freeze({
- NONE: "none",
- CELL: "cell",
- ROW: "row"
- }),
- DataSourceType: Object.freeze({
- DYNAMIC: "dynamic",
- STATIC: "static"
- }),
- PaginationType: Object.freeze({
- PAGES: "pagination",
- SCROLL: "virtual",
- NONE: "normal"
- }),
- HorizontalAlignment: Object.freeze({
- LEFT: "left",
- CENTER: "center",
- RIGHT: "right"
- }),
- filtering: {
- NumericOperator: Object.freeze({
- EQUALS: "EQUALS",
- NOT_EQUALS: "NOT_EQUALS",
- LESS_THAN: "LESS_THAN",
- LESS_OR_EQUALS: "LESS_OR_EQUALS",
- GREATER_THAN: "GREATER_THAN",
- GREATER_OR_EQUALS: "GREATER_OR_EQUALS"
- }),
- StringOperator: Object.freeze({
- EQUALS: "EQUALS",
- NOT_EQUALS: "NOT_EQUALS",
- CONTAINS: "CONTAINS",
- STARTS_WITH: "STARTS_WITH",
- ENDS_WITH: "ENDS_WITH"
- }),
- DateOperator: Object.freeze({
- LAST_X_DAYS: "LAST_X_DAYS",
- LAST_X_WEEKS: "LAST_X_WEEKS",
- LAST_X_MONTHS: "LAST_X_MONTHS"
- })
- },
- ColumnLayout: Object.freeze({
- EQUAL: "equal",
- FIT_CONTENT: "fitContent",
- MANUAL: "manual"
- })
- }
- });
- define("components/components/grid/helpers/filtering", ["lodash", "components/components/grid/core/enums"], function(a, b) {
- "use strict";
- var c = b.FieldType;
- var d = b.filtering.NumericOperator;
- var e = b.filtering.StringOperator;
- var f = b.filtering.DateOperator;
- var g = {};
- var h = function(a, b) {
- return b === a
- };
- var i = function(a, b) {
- return b !== a
- };
- g.NumericOperatorFuncs = {};
- g.NumericOperatorFuncs[d.EQUALS] = h;
- g.NumericOperatorFuncs[d.NOT_EQUALS] = i;
- g.NumericOperatorFuncs[d.LESS_THAN] = function(a, b) {
- return b < a
- };
- g.NumericOperatorFuncs[d.LESS_OR_EQUALS] = function(a, b) {
- return b <= a
- };
- g.NumericOperatorFuncs[d.GREATER_THAN] = function(a, b) {
- return b > a
- };
- g.NumericOperatorFuncs[d.GREATER_OR_EQUALS] = function(a, b) {
- return b >= a
- };
- g.StringOperatorFuncs = {};
- g.StringOperatorFuncs[e.EQUALS] = h;
- g.StringOperatorFuncs[e.NOT_EQUALS] = i;
- g.StringOperatorFuncs[e.CONTAINS] = function(b, c) {
- return a.includes(c, b)
- };
- g.StringOperatorFuncs[e.STARTS_WITH] = function(b, c) {
- return a.startsWith(c, b)
- };
- g.StringOperatorFuncs[e.ENDS_WITH] = function(b, c) {
- return a.endsWith(c, b)
- };
- var j = 864e5;
- var k = 7;
- var l = 12;
- g.DateOperatorFuncs = {};
- g.DateOperatorFuncs[f.LAST_X_DAYS] = function(a, b) {
- return new Date(b).getTime() > Date.now() - a * j
- };
- g.DateOperatorFuncs[f.LAST_X_WEEKS] = function(a, b) {
- return new Date(b).getTime() > Date.now() - a * j * k
- };
- g.DateOperatorFuncs[f.LAST_X_MONTHS] = function(a, b) {
- var c = new Date;
- var d = new Date(b);
- return d.getYear() * l + d.getMonth() > c.getMonth() + c.getYear() * l - a
- };
- g.OperatorFuncs = {};
- g.OperatorFuncs[c.NUMBER] = g.NumericOperatorFuncs;
- g.OperatorFuncs[c.STRING] = g.StringOperatorFuncs;
- g.OperatorFuncs[c.DATE] = g.DateOperatorFuncs;
- g.buildFilter = function(b) {
- return function(c) {
- return a.every(b, function(a, b) {
- return g.OperatorFuncs[a.type][a.operator](a.value, c[b])
- })
- }
- };
- return g
- });
- define("components/components/grid/wrappers/dataSource", ["lodash", "components/components/grid/core/enums", "components/components/grid/helpers/filtering"], function(a, b, c) {
- "use strict";
- function d(b, d) {
- return a.every(b.compProp.filter, function(e, f) {
- var g = a.find(b.compProp.columns, {
- id: f
- });
- if (a.isUndefined(g)) {
- return true
- }
- var h = a.get(d, g.dataPath);
- return c.OperatorFuncs[e.type][e.operator](e.value, h)
- })
- }
- function e(c, e, f, g) {
- var h = -1;
- var i;
- if (g === b.DataSourceType.DYNAMIC) {
- i = a.partial(f.dynamic(c, e.dataFetchContext))
- } else {
- i = a.partial(f.static(c, a.partial(d, c)))
- }
- return {
- rowCount: h,
- getRows: i
- }
- }
- return e
- });
- define("components/components/grid/core/state", ["lodash", "components/components/grid/helpers/filtering"], function(a, b) {
- "use strict";
- function c(b, c) {
- var d = b;
- if (!a.isUndefined(c)) {
- d = a.filter(b, c)
- }
- return {
- rows: d,
- rowsCount: d.length
- }
- }
- function d() {
- return {
- dataFetchContext: null,
- dataFetchHandler: null,
- uiState: null,
- agGridApi: null,
- currentPage: null
- }
- }
- d.setGrid = function(a, b, c, e) {
- d.destroyGrid(a);
- new b.Grid(e, c);
- a.agGridApi = c.api;
- return a
- };
- d.destroyGrid = function(a) {
- if (a.agGridApi !== null) {
- a.agGridApi.destroy();
- a.agGridApi = null
- }
- return a
- };
- d.setDataSource = function(a, b) {
- a.agGridApi.setDatasource(b);
- return a
- };
- d.setRowData = function(a, d, e) {
- var f = b.buildFilter(e);
- var g = c(d, f);
- a.agGridApi.setRowData(g.rows);
- return a
- };
- d.updateUsingApi = function(b, c) {
- a.forEach(c, function(a, c) {
- b.agGridApi[c].apply(b.agGridApi, a)
- });
- return b
- };
- d.setDataFetchHandler = function(a, b) {
- a.dataFetchHandler = b;
- return a
- };
- d.handleFetchedData = function(b, d) {
- if (b.dataFetchHandler !== null) {
- var e = a.clone(d);
- var f = b.dataFetchHandler;
- if (a.has(f, "startRow")) {
- e = c(d.rows, f.filter);
- e.rows = a.slice(e.rows, f.startRow, f.endRow)
- }
- f.successCallback(e.rows, e.rowsCount);
- b.dataFetchHandler = null
- }
- return b
- };
- d.updateUIState = function(a, b, c) {
- if (a.uiState === null) {
- a.uiState = {}
- }
- a.uiState[c] = b;
- return a
- };
- d.restoreUIState = function(a, b) {
- return d.updateUsingApi(a, b)
- };
- d.saveCurrentPage = function(a) {
- a.currentPage = a.agGridApi.paginationController.currentPage;
- return a
- };
- d.restoreCurrentPage = function(a) {
- a.agGridApi.paginationController.currentPage = a.currentPage;
- a.agGridApi.paginationController.loadPage();
- return a
- };
- return d
- });
- define("components/components/grid/wrappers/gridOptions", ["components/components/grid/core/enums"], function(a) {
- "use strict";
- var b = a.UserSelectionType;
- function c(b, d, e) {
- var f = e.dataFetchContext !== null;
- var g = {
- rowBuffer: 0,
- rowHeight: b.rowHeight,
- paginationOverflowSize: 0,
- paginationPageSize: b.pagination.rowsPerPage,
- enableSorting: false,
- enableFilter: false,
- suppressMovableColumns: true,
- rowSelection: c.getRowSelection(b),
- suppressCellSelection: c.isCellSelectionSuppressed(b),
- enableServerSideSorting: f,
- enableServerSideFilter: f,
- onSortChanged: d.onSortChanged,
- onFilterChanged: d.onUoUFiltersChanged,
- onCellValueChanged: d.onCellEdit,
- onRowSelected: d.onRowSelect,
- onCellFocused: d.onCellSelect
- };
- if (b.pagination.type !== a.PaginationType.NONE) {
- g.rowModelType = b.pagination.type
- }
- return g
- }
- c.isCellSelectionSuppressed = function(a) {
- return a.userSelectionType !== b.CELL
- };
- c.getRowSelection = function(a) {
- if (a.userSelectionType === b.ROW) {
- return "single"
- }
- return undefined
- };
- return c
- });
- define("components/components/grid/helpers/either", ["lodash"], function(a) {
- "use strict";
- var b = {
- Left: function(a) {
- return {
- left: a
- }
- },
- Right: function(a) {
- return {
- right: a
- }
- },
- isRight: a.partialRight(a.has, "right"),
- get: a.partialRight(a.get, "right"),
- getOrElse: function(a, c) {
- if (b.isRight(a)) {
- return b.get(a)
- }
- return c
- }
- };
- return b
- });
- define("components/components/grid/wrappers/newValueHandler", ["lodash", "components/components/grid/helpers/either", "components/components/grid/core/enums"], function(a, b, c) {
- "use strict";
- var d = c.FieldType;
- var e = b.Left;
- var f = b.Right;
- var g = {
- validatorByFieldType: {}
- };
- g.validatorByFieldType[d.DATE] = function(b) {
- if (a.isNaN(Date.parse(b))) {
- return e(null)
- }
- return f(new Date(b))
- };
- g.validatorByFieldType[d.NUMBER] = function(b) {
- var c = Number(b);
- if (a.isNaN(c)) {
- return e(null)
- }
- return f(c)
- };
- g.getNextValue = function(c, d, e) {
- var f = d;
- if (a.has(g.validatorByFieldType, c)) {
- f = b.getOrElse(g.validatorByFieldType[c](d), e)
- }
- return f
- };
- g.update = function(b, c) {
- var d = g.getNextValue(b.type, c.newValue, c.oldValue);
- a.set(c.data, b.dataPath, d)
- };
- return g
- });
- define("components/components/grid/wrappers/dateFilter", ["lodash", "components/components/grid/core/enums"], function(a, b) {
- "use strict";
- var c = b.filtering;
- var d = c.DateOperator;
- var e = c.DateOperatorFuncs;
- function f() {}
- f.prototype.init = function(b) {
- this.eGui = window.document.createElement("div");
- this.eGui.innerHTML = '<div><select class="date-filter-select ag-filter-select">' + a.map(d, function(a, b) {
- return '<option value="' + b + '">' + a + "</option>"
- }).join("") + "</select></div>" + '<div><input type="number" class="date-filter-amount ag-filter-filter" min="0" placeholder="Filter..." /></div>';
- this.select = this.eGui.querySelector(".date-filter-select");
- this.input = this.eGui.querySelector(".date-filter-amount");
- this.select.addEventListener("change", b.filterChangedCallback);
- this.input.addEventListener("change", b.filterChangedCallback)
- };
- f.prototype.getGui = function() {
- return this.eGui
- };
- f.prototype.doesFilterPass = function(b) {
- var c = Number(this.input.value) || 0;
- var d = this.select.value;
- if (!a.isUndefined(e[d])) {
- return e[d](c, b.data.date)
- }
- return true
- };
- f.prototype.isFilterActive = function() {
- return this.select.value !== d.NONE
- };
- f.prototype.getApi = function() {
- return {
- getModel: a.bind(function() {
- return {
- type: b.FieldType.DATE,
- operator: this.select.value,
- value: Number(this.input.value)
- }
- }, this),
- setModel: a.bind(function(c) {
- if (a.isUndefined(c)) {
- c = {
- type: b.FieldType.DATE,
- operator: d.NONE,
- value: ""
- }
- }
- this.select.value = c.operator;
- this.input.value = c.value
- }, this)
- }
- };
- return f
- });
- define("components/components/grid/wrappers/cellRenderers", ["lodash", "utils", "components/components/grid/core/enums"], function(a, b, c) {
- "use strict";
- var d = b.linkRenderer;
- var e = b.dateTimeUtils;
- var f = c.FieldType;
- var g = {
- byFieldType: {}
- };
- function h(a, b, c, d) {
- var e = /^image:\/\//;
- if (e.test(b)) {
- var f = /^image:\/\/([^\/]*)\/([^\/]*)\/([^\/]*)\/([^\/]*)/;
- var g = b.match(f);
- var h = g[1];
- var i = g[2];
- var j = a(i) + "/" + h + "/fit/w_" + c + ",h_" + d + "/" + i;
- return j
- }
- return b
- }
- function i(b, c) {
- if (a.isUndefined(c.value.data)) {
- return ""
- }
- return b(c)
- }
- function j(a) {
- var b = a && a.outerHTML ? a.outerHTML : a;
- var c = window.document.createElement("div");
- c.className = "ag-cell-text";
- c.innerHTML = b;
- return c
- }
- g.linkRenderer = function(b, c, e) {
- return function(f) {
- var g = window.document.createElement("a");
- var h = b(f);
- g.innerHTML = h && h.outerHTML ? h.outerHTML : h;
- var i = d.renderLink(f.value.link, c, e);
- a.assign(g, i);
- return g
- }
- };
- g.valueRenderer = function(b) {
- return j(a.get(b, "value.data"))
- };
- g.byFieldType[f.DATE] = function(a) {
- var b = a.compProp.dateFormat;
- return function(a) {
- var c = new Date(a.value.data);
- var d = e.dateFormat(c, b);
- return j(d)
- }
- };
- g.byFieldType[f.IMAGE] = function(a) {
- var b = a.getMediaFullStaticUrl;
- return function(a) {
- var c = a.column.actualWidth;
- var d = a.node.rowHeight;
- var e = h(b, a.value.data, c, d);
- return '<img class="ag-cell-image" src="' + e + '">'
- }
- };
- g.byFieldType[f.BOOLEAN] = a.partial(a.identity, function(a) {
- return j(a.value.data ? "Yes" : "No")
- });
- g.byFieldType[f.RICH_TEXT] = a.partial(a.identity, function(a) {
- return '<div class="ag-cell-richtext">' + a.value.data + "</div>"
- });
- g.get = function(b, c) {
- var d;
- if (a.has(g.byFieldType, b)) {
- d = g.byFieldType[b](c)
- } else {
- d = g.valueRenderer
- }
- return a.wrap(d, i)
- };
- return g
- });
- define("components/components/grid/wrappers/columnDefinition", ["lodash", "experiment", "components/components/grid/core/enums", "components/components/grid/wrappers/newValueHandler", "components/components/grid/wrappers/dateFilter", "components/components/grid/wrappers/cellRenderers"], function(a, b, c, d, e, f) {
- "use strict";
- var g = "structure.layout.width";
- var h = c.FieldType;
- var i = c.HorizontalAlignment;
- function j(c, e) {
- var f = e.type;
- var g = j.byFieldType[f];
- var h = a.assign({
- colId: e.id,
- field: e.id,
- headerName: e.label,
- width: j.getColumnWidth(c, e),
- hide: !e.visible,
- valueGetter: j.getValueGetter(e),
- newValueHandler: a.partial(d.update, e),
- cellRenderer: j.getCellRenderer(c, e),
- editable: j.getEditable(c.compProp, g),
- cellStyle: j.getCellStyle(c.compProp)
- }, g);
- if (!b.isOpen("se_gridUoUEdit")) {
- a.assign(h, {
- editable: false
- })
- }
- return h
- }
- j.getValueGetter = function(b) {
- return function(c) {
- return {
- data: a.get(c.data, b.dataPath),
- link: a.get(c.data, b.linkPath + "_linkObj"),
- toString: function() {
- return this.data.toString()
- }
- }
- }
- };
- j.getEditable = function(b, c) {
- return b.allowUserEditing && !a.isUndefined(c) && c.editable
- };
- j.getCellRenderer = function(b, c) {
- var d = c.type;
- var e = f.get(d, b);
- if (a.isUndefined(c.linkPath)) {
- return e
- }
- return f.linkRenderer(e, b.linkRenderInfo, b.rootNavigationInfo)
- };
- j.getColumnWidth = function(b, d) {
- switch (b.compProp.columnLayout) {
- case c.ColumnLayout.EQUAL:
- if (b.compProp.columns.length === 0) {
- return 0
- }
- return a.get(b, g) / b.compProp.columns.length;
- default:
- return d.width
- }
- };
- j.getCellStyle = function(a) {
- if (a.horizontalAlignment === i.CENTER) {
- return function() {
- return {
- paddingLeft: "0"
- }
- }
- }
- return function() {
- return {
- paddingLeft: a.cellPadding + "px"
- }
- }
- };
- j.byFieldType = {};
- j.byFieldType[h.STRING] = {
- filter: "text",
- editable: true
- };
- j.byFieldType[h.NUMBER] = {
- filter: "number",
- editable: true
- };
- function k(a, b) {
- return new Date(a) - new Date(b)
- }
- j.byFieldType[h.DATE] = {
- filter: e,
- comparator: k,
- editable: true
- };
- return j
- });
- define("components/components/grid/apiCallMaps/selectionCallMap", ["lodash", "components/components/grid/core/enums"], function(a, b) {
- "use strict";
- function c(c) {
- if (a.has(c, "columnId")) {
- return b.UserSelectionType.CELL
- }
- return b.UserSelectionType.ROWS
- }
- function d(a, b) {
- if (b.id === a) {
- b.setSelected(true, true)
- }
- }
- function e(b) {
- return {
- forEachNode: [a.partial(d, b)]
- }
- }
- function f(a, b, c) {
- var d = a % b;
- var e = c.id % b;
- var f = c.id - e <= a && c.id - e + b > a;
- if (c.childIndex === d && f) {
- c.setSelected(true, true)
- }
- }
- function g(b, c) {
- return {
- forEachNodeAfterFilterAndSort: [a.partial(f, b, c.rowsPerPage)]
- }
- }
- var h = {};
- h[b.PaginationType.NONE] = g;
- h[b.PaginationType.PAGES] = g;
- h[b.PaginationType.SCROLL] = e;
- function i(a) {
- return {
- setFocusedCell: [a.rowIndex, a.columnId]
- }
- }
- function j(a, d) {
- if (c(a) === b.UserSelectionType.CELL) {
- return i(a)
- }
- return h[d.type](a.rowIndex, d)
- }
- return j
- });
- define("components/components/grid/apiCallMaps/updateApiCallMap", ["lodash", "components/components/grid/wrappers/columnDefinition", "components/components/grid/apiCallMaps/selectionCallMap"], function(a, b, c) {
- "use strict";
- function d(c, d) {
- return a.map(c, a.partial(b, d))
- }
- function e(a, b) {
- return a ? b.compProp.headerHeight : 0
- }
- function f(b, c) {
- return a.reduce(f.propertyUpdateOrder, function(d, e) {
- if (a.has(b, e)) {
- a.assign(d, f.propertyToCall[e](b[e], c))
- }
- return d
- }, {})
- }
- f.invoke = function(a) {
- return function(b) {
- var c = {};
- c[a] = [b];
- return c
- }
- };
- f.propertyUpdateOrder = ["columns", "headerHeight", "sorting", "userSelection", "showHeader"];
- f.propertyToCall = {
- columns: a.flow(d, f.invoke("setColumnDefs")),
- headerHeight: f.invoke("setHeaderHeight"),
- showHeader: a.flow(e, f.invoke("setHeaderHeight")),
- sorting: f.invoke("setSortModel"),
- userSelection: function(a, b) {
- return c(a, b.compProp.pagination)
- }
- };
- return f
- });
- define("components/components/grid/apiCallMaps/uiStateApiCallMap", ["lodash", "components/components/grid/apiCallMaps/selectionCallMap", "components/components/grid/core/enums"], function(a, b) {
- "use strict";
- function c(b, d) {
- var e = c.callByProperty(d);
- return a.reduce(b, function(b, c, d) {
- return a.assign(b, e[d](c))
- }, {})
- }
- c.callByProperty = function(a) {
- return {
- userFilter: function(a) {
- return {
- setFilterModel: [a]
- }
- },
- userSelection: function(c) {
- b(c, a.pagination)
- }
- }
- };
- c.uiProperties = ["userFilter", "userSelection"];
- c.getUIStateProps = function(b) {
- return a.pick(b, c.uiProperties)
- };
- return c
- });
- define("components/components/grid/core/actions", ["lodash", "components/components/grid/wrappers/dataSource", "components/components/grid/core/state", "components/components/grid/wrappers/gridOptions", "components/components/grid/apiCallMaps/updateApiCallMap", "components/components/grid/apiCallMaps/uiStateApiCallMap", "components/components/grid/core/enums"], function(a, b, c, d, e, f, g) {
- "use strict";
- var h = g.UserSelectionType;
- return {
- INIT: c,
- CREATE_GRID: function(a, b, e, f) {
- return function(g) {
- var h = d(b, e, g);
- return c.setGrid(g, a, h, f)
- }
- },
- UPDATE_GRID_USING_API: a.flow(e, a.curryRight(c.updateUsingApi)),
- DESTROY_GRID: c.destroyGrid,
- SET_DATA_FETCH_HANDLER: a.curryRight(c.setDataFetchHandler),
- HANDLE_FETCHED_DATA: a.curryRight(c.handleFetchedData),
- SET_DATA: function(a, d, e) {
- return function(f) {
- if (a.compProp.pagination.type === g.PaginationType.NONE) {
- return c.setRowData(f, a.compData.rows, a.compProp.filter)
- }
- var h = b(a, f, d, e);
- return c.setDataSource(f, h)
- }
- },
- UPDATE_UI_STATE: function(b) {
- return a.partial(a.reduce, b, c.updateUIState)
- },
- RESTORE_UI_STATE: function(a) {
- return function(b) {
- var d = f(b.uiState, a);
- return c.restoreUIState(b, d)
- }
- },
- SAVE_CURRENT_PAGE: c.saveCurrentPage,
- RESTORE_CURRENT_PAGE: c.restoreCurrentPage,
- CLEAR_SELECTION: function(a) {
- return function(b) {
- if (a === h.CELL) {
- return c.updateUsingApi(b, {
- setFocusedCell: [-1, -1]
- })
- } else if (a === h.ROW) {
- return c.updateUsingApi(b, {
- deselectAll: []
- })
- }
- return c.updateUsingApi(b, {
- setFocusedCell: [-1, -1],
- deselectAll: []
- })
- }
- }
- }
- });
- define("components/components/grid/core/propsInspector", ["lodash", "components/components/grid/apiCallMaps/updateApiCallMap", "components/components/grid/apiCallMaps/uiStateApiCallMap", "components/components/grid/core/enums"], function(a, b, c, d) {
- "use strict";
- function e(a) {
- return a.compProp.columnLayout === d.ColumnLayout.EQUAL
- }
- function f(b, c) {
- var d = a(c.compProp).pick(f.agGridAffectingProps).reduce(function(c, d, e) {
- if (!a.isEqual(d, b.compProp[e])) {
- c[e] = d
- }
- return c
- }, {});
- d = a.reduce(f.propChangeTests, function(b, d) {
- if (d.test(c)) {
- var e = {};
- e[d.mappedProp] = c.compProp[d.mappedProp];
- a.assign(b, e)
- }
- return b
- }, d);
- return {
- props: d,
- dataChanged: b.compData.revision !== c.compData.revision
- }
- }
- f.propChangeTests = [{
- test: e,
- mappedProp: "columns"
- }];
- f.agGridAffectingProps = ["allowUserEditing", "allowUserFiltering", "allowUserSorting", "cellPadding", "columnLayout", "columns", "dataSource", "dateFormat", "headerHeight", "heightLayout", "horizontalAlignment", "linkTarget", "pagination", "rowHeight", "showHeader", "userFilter", "userSelection", "userSelectionType"];
- f.apiProperties = b.propertyUpdateOrder;
- f.hasOnlyApiProps = function(b) {
- return a(b.props).keys().difference(f.apiProperties).isEmpty()
- };
- f.didDataSourceChange = function(b) {
- return a.has(b.props, "dataSource") || a.has(b.props, "pagination")
- };
- f.didDataChange = function(a) {
- return a.dataChanged
- };
- f.didUIPropsChange = function(b) {
- return !a(b.props).keys().intersection(c.uiProperties).isEmpty()
- };
- f.isEmpty = function(b) {
- return a.isEmpty(b.props) && !b.dataChanged
- };
- f.hasPagesPagination = function(a) {
- return a.compProp.pagination.type === d.PaginationType.PAGES
- };
- return f
- });
- define("components/components/grid/helpers/filterModelConverter", ["lodash", "components/components/grid/core/enums"], function(a, b) {
- "use strict";
- var c = b.FieldType;
- var d = b.filtering.NumericOperator;
- var e = b.filtering.StringOperator;
- var f = {
- convert: function(b, c) {
- return a.mapValues(b, function(b, d) {
- var e = a.find(c, {
- id: d
- });
- var g = e.type;
- if (a.has(f.operatorMap, g)) {
- return {
- type: g,
- operator: f.operatorMap[g][b.type],
- value: b.filter
- }
- }
- return b
- })
- }
- };
- f.operatorMap = {};
- f.operatorMap[c.NUMBER] = {
- 1: d.EQUALS,
- 2: d.NOT_EQUALS,
- 3: d.LESS_THAN,
- 4: d.LESS_OR_EQUALS,
- 5: d.GREATER_THAN,
- 6: d.GREATER_OR_EQUALS
- };
- f.operatorMap[c.STRING] = {
- 1: e.CONTAINS,
- 2: e.EQUALS,
- 3: e.NOT_EQUALS,
- 4: e.STARTS_WITH,
- 5: e.ENDS_WITH
- };
- return f
- });
- define("components/components/grid/helpers/rowHelpers", ["lodash"], function(a) {
- "use strict";
- var b = {
- createRow: function(b, c, d, e) {
- var f = {};
- a.forEach(b, function(b) {
- var g = a.get(c, b.dataPath);
- if (e && b.id === d) {
- g = e
- }
- a.set(f, b.dataPath, g)
- });
- return f
- },
- getRowIndex: function(b, c) {
- return a.findIndex(b.compData.rows, c)
- }
- };
- return b
- });
- define("components/components/grid/helpers/boolSet", ["lodash"], function(a) {
- "use strict";
- var b = a.flow(a.partialRight(a.chunk, 2), a.partialRight(a.filter, a.last), a.partialRight(a.map, a.first));
- return b
- });
- define("components/components/grid/core/grid", ["lodash", "experiment", "components/components/grid/core/actions", "components/components/grid/core/propsInspector", "components/components/grid/helpers/filterModelConverter", "components/components/grid/helpers/rowHelpers", "components/components/grid/core/enums", "components/components/grid/helpers/boolSet"], function(a, b, c, d, e, f, g, h) {
- "use strict";
- var i = g.UserSelectionType;
- function j(a) {
- return {
- loadAgGridModule: null,
- state: null,
- foreign: a
- }
- }
- j.mutateState = function(b, c) {
- b.state = a.reduce(c, function(a, b) {
- return b(a)
- }, b.state)
- };
- j.ensureAgGridModule = function(a) {
- if (j.loadAgGridModule !== null) {
- j.loadAgGridModule.then(a)
- }
- };
- j.init = function(a, b, d) {
- j.ensureAgGridModule(function(e) {
- j.mutateState(a, [c.INIT, c.CREATE_GRID(e, b.compProp, j.bindGridEventHandlers(a, b), d), c.UPDATE_GRID_USING_API(b.compProp, b), c.SET_DATA(b, j.bindRowGetters(a), false)])
- })
- };
- j.update = function(a, b, e, f) {
- j.ensureAgGridModule(function(g) {
- var i = d(b, e);
- if (!d.isEmpty(i)) {
- var k = d.hasOnlyApiProps(i);
- var l = d.hasPagesPagination(b) && d.hasPagesPagination(e);
- var m = d.didDataSourceChange(i);
- var n = d.didDataChange(i);
- var o = d.didUIPropsChange(i);
- var p = k ? i.props : e.compProp;
- var q = h([c.SAVE_CURRENT_PAGE, !k && l, c.CREATE_GRID(g, e.compProp, j.bindGridEventHandlers(a, e), f), !k, c.UPDATE_GRID_USING_API(p, e), true, c.SET_DATA(e, j.bindRowGetters(a), e.compProp.dataSource.type), m || !k, c.HANDLE_FETCHED_DATA({
- rows: e.compData.rows,
- rowsCount: e.compData.rowsCount
- }), !m && n, c.RESTORE_CURRENT_PAGE, !k && l, c.UPDATE_UI_STATE(i.props), o, c.RESTORE_UI_STATE(e.compProp), !o]);
- j.mutateState(a, q)
- }
- })
- };
- j.destroy = function(a) {
- j.mutateState(a, [c.DESTROY_GRID])
- };
- var k = {
- EDITOR: "editor",
- PREVIEW: "preview"
- };
- j.handleViewModeChange = function(a, b, d) {
- if (d === k.EDITOR) {
- j.mutateState(a, [c.SET_DATA(b, j.bindRowGetters(a), false), c.CLEAR_SELECTION()])
- }
- };
- j.bindRowGetters = function(a) {
- return {
- static: function(b, d) {
- return function(e) {
- j.mutateState(a, [c.SET_DATA_FETCH_HANDLER({
- successCallback: e.successCallback,
- startRow: e.startRow,
- endRow: e.endRow,
- filter: d
- }), c.HANDLE_FETCHED_DATA({
- rows: b.compData.rows
- })])
- }
- },
- dynamic: function(b) {
- return function(d) {
- j.mutateState(a, [c.SET_DATA_FETCH_HANDLER({
- successCallback: d.successCallback
- })]);
- var f = e.convert(d.filterModel, b.compProp.columns);
- var g = {
- name: "fetchData",
- id: b.id,
- startRow: d.startRow,
- endRow: d.endRow,
- sorting: d.sortModel,
- filter: f
- };
- a.foreign.handleAction("fetchData", g)
- }
- }
- }
- };
- j.bindGridEventHandlers = function(b, d) {
- return {
- onSortChanged: function() {
- if (b.state !== null) {
- var a = b.state.agGridApi.getSortModel();
- b.foreign.updateProps({
- sorting: a
- })
- }
- },
- onUoUFiltersChanged: function() {
- var a = b.state.agGridApi.getFilterModel();
- j.mutateState(b, [c.UPDATE_UI_STATE({
- userFilter: a
- })])
- },
- onRowSelect: function(a) {
- if (!a.node.selected) {
- return
- }
- var d = a.node.childIndex || a.node.id;
- var e = {
- rowIndex: d,
- rowData: JSON.stringify(a.node.data)
- };
- b.foreign.updateProps({
- userSelection: e
- });
- j.mutateState(b, [c.UPDATE_UI_STATE({
- userSelection: e
- }), c.CLEAR_SELECTION(i.CELL)]);
- b.foreign.handleAction("rowSelect", e)
- },
- onCellSelect: function(a) {
- if (!a.column) {
- return
- }
- var d = this.api.getRenderedNodes()[a.rowIndex];
- var e = d.data[a.column.colId];
- var f = {
- rowIndex: a.rowIndex,
- columnId: a.column.colId,
- cellData: JSON.stringify(e)
- };
- j.mutateState(b, [c.UPDATE_UI_STATE({
- userSelection: f
- }), c.CLEAR_SELECTION(i.ROW)]);
- b.foreign.handleAction("cellSelect", f)
- },
- onCellEdit: function(c) {
- var e = f.createRow(d.compProp.columns, c.data, c.colDef.colId, c.oldValue);
- var g = f.createRow(d.compProp.columns, c.data, c.colDef.colId, c.newValue);
- var h = f.getRowIndex(d, e);
- var i = a.map(d.compData.rows, function(a, b) {
- if (b === h) {
- return g
- }
- return a
- });
- b.foreign.updateData({
- rows: i
- });
- b.foreign.handleAction("cellEdit", {
- cellData: c.newValue,
- rowIndex: h,
- columnId: c.colDef.colId
- })
- }
- }
- };
- if (b.isOpen("sv_grid")) {
- j.loadAgGridModule = new Promise(a.partial(require, ["ag-grid"]))
- }
- return j
- });
- define("components/components/grid/gridComponent", ["lodash", "core", "santaProps", "components/components/grid/core/grid", "components/components/grid/core/enums"], function(a, b, c, d, e) {
- "use strict";
- var f = "ag-fresh";
- var g = 540;
- return {
- displayName: "Grid",
- mixins: [b.compMixins.skinBasedComp, b.compMixins.runTimeCompData],
- propTypes: {
- compData: c.Types.Component.compData.isRequired,
- compProp: c.Types.Component.compProp.isRequired,
- linkRenderInfo: c.Types.Link.linkRenderInfo,
- getMediaFullStaticUrl: c.Types.ServiceTopology.getMediaFullStaticUrl
- },
- statics: {
- useSantaTypes: true
- },
- getClasses: function() {
- var a = {};
- a[f] = true;
- a["hide-pagination-panel"] = this.props.compData.rows.length === 0;
- a["align-text-left"] = this.props.compProp.horizontalAlignment === e.HorizontalAlignment.LEFT;
- a["align-text-right"] = this.props.compProp.horizontalAlignment === e.HorizontalAlignment.RIGHT;
- a["align-text-center"] = this.props.compProp.horizontalAlignment === e.HorizontalAlignment.CENTER;
- a["disable-horizontal-scroll"] = this.props.compProp.columnLayout === e.ColumnLayout.EQUAL;
- a["break-pagination-rows"] = this.props.style.width < g;
- a["select-rows"] = this.props.compProp.userSelectionType === e.UserSelectionType.ROW;
- a["select-cells"] = this.props.compProp.userSelectionType === e.UserSelectionType.CELL;
- return a
- },
- transformNextProps: function(b, c) {
- if (a.isFunction(this.transformPropsWithPreviewDummyData)) {
- return this.transformPropsWithPreviewDummyData(b, c)
- }
- return c
- },
- componentDidMount: function() {
- this.grid = d(this);
- this.componentViewMode = this.props.renderFlags.componentViewMode;
- d.init(this.grid, this.props, this.refs.grid)
- },
- componentWillReceiveProps: function(a) {
- var b = this.transformNextProps(this.props, a);
- if (b.renderFlags.componentViewMode !== this.componentViewMode) {
- this.componentViewMode = b.renderFlags.componentViewMode;
- d.handleViewModeChange(this.grid, b, this.componentViewMode)
- }
- d.update(this.grid, this.props, b, this.refs.grid, this.componentViewMode)
- },
- getSkinProperties: function() {
- var b = this.getClasses();
- var c = {
- "": {
- className: a.reduce(b, function(a, b, c) {
- if (b) {
- a += " " + c
- }
- return a
- }, "")
- }
- };
- return c
- },
- componentWillUnmount: function() {
- d.destroy(this.grid)
- }
- }
- });
- define("components/core/svgShapeStylesCollector", ["lodash", "core"], function(a, b) {
- "use strict";
- function c(b, c, d, e) {
- var f = a.get(b, "styleItem.id") || a.get(b, "structure.styleId");
- if (f) {
- e[f] = f
- }
- var g = a.get(b.structure, ["modes", "overrides"]);
- a.forEach(g, function(a) {
- var b = a.styleId;
- if (b && c[b]) {
- e[b] = b
- }
- })
- }
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.svgshape.SvgShape", c);
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.PopupCloseIconButton", c)
- });
- define("components/core/mediaRichTextStylesCollector", ["lodash", "skins", "core"], function(a, b, c) {
- "use strict";
- var d = b.skins;
- c.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.MediaRichText", function(b, c, e, f) {
- var g = /(<img[^>]*wix-comp="([^"]+)"[^>]*>)/g;
- var h;
- while (h = g.exec(b.dataItem.text)) {
- var i = JSON.parse(h[2].replace(/"/g, '"'));
- var j = "";
- if (i.skin && d[i.skin]) {
- j = i.skin
- }
- if (j && !f[j]) {
- f[j] = "s" + a.size(f)
- }
- }
- })
- });
- define("components/core/dialogsStylesCollector", ["lodash", "core"], function(a, b) {
- "use strict";
- function c(b, c, d, e) {
- e.b1 = e.b1 || "s" + a.size(e)
- }
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.dialogs.EnterPasswordDialog", c);
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.dialogs.NotificationDialog", c);
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.dialogs.siteMemberDialogs.MemberLoginDialog", c);
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.dialogs.siteMemberDialogs.RequestPasswordResetDialog", c);
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.dialogs.siteMemberDialogs.ResetPasswordDialog", c);
- b.styleCollector.registerClassBasedStyleCollector("wysiwyg.viewer.components.dialogs.siteMemberDialogs.SignUpDialog", c)
- });
- define("components/core/appControllerStyleCollector", ["lodash", "core"], function(a, b) {
- "use strict";
- var c = "platform.components.skins.controllerIconAndNameSkin";
- function d(b, d, e, f) {
- f[c] = f[c] || "s" + a.size(f)
- }
- b.styleCollector.registerClassBasedStyleCollector("platform.components.AppController", d)
- });
- define("components/behaviors/compBehaviorHandler", ["lodash"], function(a) {
- "use strict";
- function b(b, c, d) {
- var e = c.getSiteAspect("behaviorsAspect");
- a.forEach(b, function(a) {
- e.registerBehavior(a, d.callback)
- });
- c.forceUpdate()
- }
- return {
- handle: b
- }
- });
- define("components/behaviors/compBehaviorsRegistrar", ["core", "components/behaviors/compBehaviorHandler"], function(a, b) {
- "use strict";
- a.behaviorHandlersFactory.registerHandler("comp", b)
- });
- define("components/behaviors/animationBehaviorHandler", ["lodash", "animations", "core"], function(a, b, c) {
- "use strict";
- function d(a, b) {
- c.animationsService.hideElementsByAnimationType(b, [a])
- }
- function e(a, b) {
- c.animationsService.revertHideElementsByAnimations(b, [a])
- }
- function f(d, e, f) {
- var g = f.group || f.action;
- var h = e.getRuntimeDal();
- d = a(d).filter(function(a) {
- var b = h.getCompProps(a.targetId) || {};
- return !b.isHidden && !b.isCollapsed
- }).map(function(c) {
- return a.omit(a.defaultsDeep({}, c, a.find(b.viewerDefaults, {
- name: c.name
- })), "action")
- }).value();
- if (e.getSiteData().isMobileView()) {
- a.defer(function() {
- a.get(f, "callback", a.noop)()
- });
- return
- }
- c.animationsService.playAnimations(e, g, d, true, f.callback || a.noop)
- }
- function g(a, b) {
- return !(b.getSiteData().isMobileDevice() || b.getSiteData().isMobileView())
- }
- return {
- handle: f,
- handlePreCondition: d,
- cancelPreCondition: e,
- isEnabled: g
- }
- });
- define("components/behaviors/animationBehaviorsRegistrar", ["core", "components/behaviors/animationBehaviorHandler"], function(a, b) {
- "use strict";
- a.behaviorHandlersFactory.registerHandler("animation", b)
- });
- define("components", ["fileUploader", "wixSkinOnly", "pinItPinWidget", "siteButton", "popupCloseTextButton", "image", "zoomedImage", "wPhoto", "clipArt", "displayer", "matrixGallery", "wRichText", "paginatedGridGallery", "container", "radioButton", "radioGroup", "headerContainer", "footerContainer", "screenWidthContainer", "documentMedia", "adminLoginButton", "backgroundCommon", "balataCommon", "datePicker", "contactForm", "subscribeForm", "textArea", "video", "loginButton", "googleMap", "mediaContainer", "soundCloudWidget", "paypalButton", "imageButton", "linkBar", "comboBoxInput", "spotifyPlayer", "spotifyFollow", "twitterFeed", "backToTopButton", "svgShape", "facebookLike", "facebookComments", "facebookLikeBox", "rssButton", "textInput", "tinyMenu", "groupContainer", "pinterestPinIt", "pinterestFollow", "wTwitterFollow", "audioPlayer", "column", "htmlComponent", "components/components/imageButtonWithText/imageButtonWithText", "components/components/verticalAnchorsMenu/verticalAnchorsMenu", "components/components/verticalAnchorsMenu/verticalAnchorsMenuItem", "components/components/imageZoom/imageZoom", "components/components/mobileMediaZoom/mobileMediaZoom", "components/components/mobileImageZoomDisplayer/mobileImageZoomDisplayer", "components/components/pageGroup/pageGroup", "components/components/deadComponent/deadComponent", "components/components/erasableTextInput/erasableTextInput", "components/components/galleries/masonry", "components/components/galleries/accordion", "components/components/galleries/impress", "components/components/galleries/freestyle", "components/components/touchMediaZoom/touchMediaZoomSlideshow", "components/components/touchMediaZoom/touchMediaZoomItem", "components/components/galleries/collage", "components/components/galleries/honeycomb", "components/components/galleries/stripShowcase", "components/components/galleries/stripSlideshow", "components/components/galleries/thumbnails", "components/components/galleries/tpa3DGallery", "components/components/galleries/tpa3DCarousel", "components/components/infoTip/infoTip", "components/components/singleAudioPlayer/singleAudioPlayer", "components/components/siteBackground/siteBackground", "components/components/videoBackground/videoBackground", "components/components/inputWithValidation/inputWithValidation", "components/components/flashComponent/flashComponent", "components/components/wixAppsImageButton/wixAppsImageButton", "components/components/messageView/messageView", "components/components/verticalMenu/verticalMenu", "components/components/bgImageStrip/bgImageStrip", "components/components/container/page", "components/components/container/popupContainer", "components/components/container/stripContainer", "components/components/container/stripColumnsContainer", "components/components/colorOption/colorOption", "components/components/mobileColorOption/mobileColorOption", "components/components/dropDownMenu/dropDownMenu", "components/components/facebookShare/facebookShare", "components/components/ebayItemsBySeller/ebayItemsBySeller", "components/components/icon/icon", "components/components/flickrBadgeWidget/flickrBadgeWidget", "components/components/mediaZoom/mediaZoom", "components/components/imageZoomDisplayer/imageZoomDisplayer", "components/components/menuButton/menuButton", "components/components/numericStepper/numericStepper", "components/components/optionsListInput/optionsListInput", "components/components/selectOptionsList/selectOptionsList", "components/components/dialogs/notificationDialog/notificationDialog", "components/components/dialogs/creditsDialog/creditsDialog", "components/components/dialogs/enterPasswordDialog/enterPasswordDialog", "components/components/dialogs/siteMemberDialogs/signUpDialog/signUpDialog", "components/components/dialogs/siteMemberDialogs/memberLoginDialog/memberLoginDialog", "components/components/dialogs/siteMemberDialogs/requestPasswordResetDialog/requestPasswordResetDialog", "components/components/dialogs/siteMemberDialogs/resetPasswordDialog/resetPasswordDialog", "components/components/itunesButton/itunesButton", "components/components/toggle/toggle", "components/components/skypeCallButton/skypeCallButton", "components/components/sliderGallery/sliderGallery", "components/components/slideShowGallery/slideShowGallery", "components/components/textOption/textOption", "components/components/mobileTextOption/mobileTextOption", "components/components/vKShareButton/vKShareButton", "components/components/wGooglePlusOne/wGooglePlusOne", "components/components/mediaRichText/mediaRichText", "components/components/youTubeSubscribeButton/youTubeSubscribeButton", "components/components/wixads/wixAdsDesktop", "components/components/wixads/wixAdsMobile", "components/components/mobileActionsMenu/mobileActionsMenu", "components/components/wTwitterTweet/wTwitterTweet", "components/components/exitMobileModeButton/exitMobileModeButton", "components/components/table/table", "components/components/disqusComments/disqusComments", "components/components/boxSlideShow/boxSlideShow/boxSlideShow", "components/components/boxSlideShowSlide/boxSlideShowSlide", "components/components/boxSlideShow/stripSlideShow/stripSlideShow", "components/components/boxSlideShowSlide/stripSlideShowSlide", "components/components/mobileAppBanner/mobileAppBanner", "components/components/checkbox/checkbox", "components/components/controller/controller", "components/components/grid/gridComponent", "core", "experiment", "components/core/svgShapeStylesCollector", "components/core/mediaRichTextStylesCollector", "components/core/dialogsStylesCollector", "components/core/appControllerStyleCollector", "components/behaviors/compBehaviorsRegistrar", "components/behaviors/animationBehaviorsRegistrar"], 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, R, S, T, U, V, W, X, Y, Z, $, _, aa, ba, ca, da, ea, fa, ga, ha, ia, ja, ka, la, ma, na, oa, pa, qa, ra, sa, ta, ua, va, wa, xa, ya, za, Aa, Ba, Ca, Da, Ea, Fa, Ga, Ha, Ia, Ja, Ka, La, Ma, Na, Oa, Pa, Qa, Ra, Sa, Ta, Ua, Va, Wa, Xa, Ya, Za, $a, _a, ab, bb, cb, db, eb, fb, gb, hb, ib, jb, kb, lb, mb, nb, ob, pb, qb, rb, sb, tb, ub, vb, wb, xb, yb, zb, Ab, Bb, Cb, Db) {
- "use strict";
- var Eb = Cb.compRegistrar.register("wysiwyg.common.components.verticalanchorsmenu.viewer.VerticalAnchorsMenu", ba).register("wysiwyg.common.components.verticalanchorsmenu.viewer.VerticalAnchorsMenuItem", ca).register("wysiwyg.components.imageZoom", da).register("wysiwyg.common.components.backtotopbutton.viewer.BackToTopButton", N).register("wysiwyg.common.components.subscribeform.viewer.SubscribeForm", z).register("wysiwyg.viewer.components.FiveGridLine", b).register("wysiwyg.viewer.components.MobileMediaZoom", ea).register("wysiwyg.components.MobileImageZoomDisplayer", fa).register("wysiwyg.viewer.components.VerticalLine", b).register("wysiwyg.common.components.anchor.viewer.Anchor", b).register("wysiwyg.viewer.components.PageGroup", ga).register("wysiwyg.viewer.components.DeadComponent", ha).register("wysiwyg.viewer.components.WFacebookLike", P).register("wysiwyg.viewer.components.WFacebookComment", Q).register("wysiwyg.viewer.components.inputs.ErasableTextInput", ia).register("tpa.viewer.components.Masonry", ja).register("tpa.viewer.components.Accordion", ka).register("tpa.viewer.components.Impress", la).register("tpa.viewer.components.Freestyle", ma).register("wysiwyg.viewer.components.TouchMediaZoomSlideshow", na).register("wysiwyg.viewer.components.TouchMediaZoomItem", oa).register("tpa.viewer.components.Collage", pa).register("tpa.viewer.components.Honeycomb", qa).register("tpa.viewer.components.StripShowcase", ra).register("tpa.viewer.components.StripSlideshow", sa).register("tpa.viewer.components.Thumbnails", ta).register("wysiwyg.viewer.components.tpapps.TPA3DGallery", ua).register("wysiwyg.viewer.components.tpapps.TPA3DCarousel", va).register("wysiwyg.viewer.components.TwitterFeed", M).register("wysiwyg.common.components.InfoTip", wa).register("core.components.Image", f).register("core.components.ZoomedImage", g).register("wysiwyg.common.components.singleaudioplayer.viewer.SingleAudioPlayer", xa).register("wysiwyg.viewer.components.AudioPlayer", Z).register("wysiwyg.viewer.components.SiteBackground", ya).register("wysiwyg.viewer.components.videoBackground", za).register("wysiwyg.components.viewer.inputs.InputWithValidation", Aa).register("wysiwyg.viewer.components.FlashComponent", Ba).register("wixapps.integration.components.ImageButton", Ca).register("wysiwyg.viewer.components.AdminLoginButton", u).register("wysiwyg.viewer.components.MessageView", Da).register("wysiwyg.common.components.verticalmenu.viewer.VerticalMenu", Ea).register("wysiwyg.common.components.imagebutton.viewer.ImageButton", H).register("wysiwyg.common.components.rssbutton.viewer.RSSButton", S).register("wysiwyg.viewer.components.BgImageStrip", Fa).register("wysiwyg.viewer.components.ContactForm", y).register("wixapps.integration.components.Area", n).register("wysiwyg.viewer.components.VerticalRepeater", n).register("wysiwyg.viewer.components.WSiteStructure", n).register("mobile.core.components.Container", n).register("wysiwyg.viewer.components.Group", V).register("wixapps.integration.components.AppPage", n).register("wysiwyg.viewer.components.HeaderContainer", q).register("wysiwyg.viewer.components.FooterContainer", r).register("wysiwyg.viewer.components.PagesContainer", s).register("wysiwyg.viewer.components.ScreenWidthContainer", s).register("wysiwyg.viewer.components.StripContainer", Ia).register("wysiwyg.viewer.components.StripColumnsContainer", Ja).register("wysiwyg.viewer.components.Column", $).register("wysiwyg.viewer.components.inputs.ColorOption", Ka).register("ecommerce.integration.components.MobileColorOption", La).register("wysiwyg.viewer.components.ClipArt", i).register("wysiwyg.viewer.components.Displayer", j).register("wysiwyg.viewer.components.menus.DropDownMenu", Ma).register("wysiwyg.common.components.facebooklikebox.viewer.FacebookLikeBox", R).register("wysiwyg.viewer.components.FacebookShare", Na).register("wysiwyg.viewer.components.GoogleMap", D).register("wysiwyg.viewer.components.EbayItemsBySeller", Oa).register("wysiwyg.viewer.components.HtmlComponent", _).register("wixapps.integration.components.Icon", Pa).register("wysiwyg.viewer.components.LinkBar", I.linkBar).register("wysiwyg.viewer.components.LinkBarItem", I.linkBarItem).register("wysiwyg.viewer.components.MatrixGallery", k).register("wysiwyg.viewer.components.FlickrBadgeWidget", Qa).register("wysiwyg.viewer.components.PaginatedGridGallery", m).register("wysiwyg.viewer.components.MediaZoom", Ra).register("wysiwyg.components.ImageZoomDisplayer", Sa).register("core.components.MenuButton", Ta).register("wysiwyg.common.components.NumericStepper", Ua).register("wysiwyg.common.components.inputs.OptionsListInput", Va).register("wysiwyg.common.components.inputs.SelectOptionsList", Wa).register("wysiwyg.common.components.pinitpinwidget.viewer.PinItPinWidget", c).register("wysiwyg.common.components.pinterestpinit.viewer.PinterestPinIt", W).register("wysiwyg.viewer.components.PayPalButton", G).register("wysiwyg.viewer.components.SiteButton", d).register("wysiwyg.viewer.components.LoginButton", C).register("wysiwyg.viewer.components.dialogs.NotificationDialog", Xa).register("wysiwyg.viewer.components.dialogs.CreditsDialog", Ya).register("wysiwyg.viewer.components.dialogs.EnterPasswordDialog", Za).register("wysiwyg.viewer.components.dialogs.siteMemberDialogs.SignUpDialog", $a).register("wysiwyg.viewer.components.dialogs.siteMemberDialogs.MemberLoginDialog", _a).register("wysiwyg.viewer.components.dialogs.siteMemberDialogs.RequestPasswordResetDialog", ab).register("wysiwyg.viewer.components.dialogs.siteMemberDialogs.ResetPasswordDialog", bb).register("wysiwyg.viewer.components.ItunesButton", cb).register("wixapps.integration.components.Toggle", db).register("wysiwyg.common.components.skypecallbutton.viewer.SkypeCallButton", eb).register("wysiwyg.viewer.components.SliderGallery", fb).register("wysiwyg.viewer.components.SlideShowGallery", gb).register("wysiwyg.viewer.components.svgshape.SvgShape", O.svgShape).register("wysiwyg.viewer.components.inputs.TextInput", T).register("wixapps.integration.components.inputs.TextArea", A).register("wysiwyg.viewer.components.inputs.TextAreaInput", A).register("wysiwyg.viewer.components.mobile.TinyMenu", U).register("wysiwyg.viewer.components.inputs.TextOption", hb).register("ecommerce.integration.components.MobileTextOption", ib).register("wysiwyg.viewer.components.Video", B).register("wysiwyg.viewer.components.VKShareButton", jb).register("wysiwyg.viewer.components.WGooglePlusOne", kb).register("wysiwyg.viewer.components.WPhoto", h).register("wysiwyg.viewer.components.documentmedia.DocumentMedia", t).register("wysiwyg.viewer.components.WRichText", l).register("wysiwyg.viewer.components.MediaRichText", lb).register("wysiwyg.viewer.components.WTwitterFollow", Y).register("wysiwyg.common.components.youtubesubscribebutton.viewer.YouTubeSubscribeButton", mb).register("wysiwyg.viewer.components.WixAdsDesktop", nb).register("wysiwyg.viewer.components.WixAdsMobile", ob).register("wysiwyg.viewer.components.MobileActionsMenu", pb).register("wysiwyg.common.components.spotifyfollow.viewer.SpotifyFollow", L).register("wysiwyg.common.components.spotifyplayer.viewer.SpotifyPlayer", K).register("wysiwyg.viewer.components.PinterestFollow", X).register("wysiwyg.viewer.components.SoundCloudWidget", F).register("wysiwyg.viewer.components.WTwitterTweet", qb).register("wysiwyg.viewer.components.inputs.ComboBoxInput", J).register("wysiwyg.common.components.exitmobilemode.viewer.ExitMobileMode", rb).register("wysiwyg.viewer.components.Table", sb).register("wysiwyg.common.components.disquscomments.viewer.DisqusComments", tb).register("wysiwyg.viewer.components.background.bgMedia", v.components.bgMedia).register("wysiwyg.viewer.components.background.bgImage", v.components.bgImage).register("wysiwyg.viewer.components.background.bgVideo", v.components.bgVideo).register("wysiwyg.viewer.components.background.bgOverlay", v.components.bgOverlay).register("wysiwyg.viewer.components.BoxSlideShow", ub).register("wysiwyg.viewer.components.BoxSlideShowSlide", vb).register("wysiwyg.viewer.components.StripContainerSlideShow", wb).register("wysiwyg.viewer.components.StripContainerSlideShowSlide", xb).register("wysiwyg.viewer.components.MobileAppBanner", yb).register("wysiwyg.viewer.components.HoverBox", E).register("wysiwyg.viewer.components.inputs.Checkbox", zb).register("wysiwyg.viewer.components.inputs.RadioButton", o).register("wysiwyg.viewer.components.inputs.DatePicker", x.datePicker).register("wysiwyg.viewer.components.Calendar", x.calendar).register("wysiwyg.viewer.components.Month", x.month).register("wysiwyg.viewer.components.Day", x.day).register("wysiwyg.viewer.components.inputs.RadioGroup", p).register("platform.components.AppController", Ab).register("wysiwyg.viewer.components.ImageButtonWithText", aa).register("wysiwyg.viewer.components.background.Balata", w.balata).register("wysiwyg.viewer.components.PopupCloseTextButton", e).register("wysiwyg.viewer.components.PopupCloseIconButton", O.popupCloseIconButton).register("mobile.core.components.Page", Ga).register("wysiwyg.viewer.components.PopupContainer", Ha);
- if (Db.isOpen("sv_grid")) {
- Eb.register("wysiwyg.viewer.components.Grid", Bb)
- }
- if (Db.isOpen("sv_fileUploader")) {
- Eb.register("wysiwyg.viewer.components.inputs.FileUploader", a.fileUploader);
- Eb.register("wysiwyg.viewer.components.inputs.uploadName", a.uploadName)
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement