(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("prop-types"), require("lodash"), require("santa-components"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "prop-types", "lodash", "santa-components", "reactDOM"], factory); else if(typeof exports === 'object') exports["viewerComponentService"] = factory(require("react"), require("prop-types"), require("lodash"), require("santa-components"), require("react-dom")); else root["viewerComponentService"] = factory(root["React"], root["prop-types"], root["_"], root["santaComponents"], root["ReactDOM"]); })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__11__, __WEBPACK_EXTERNAL_MODULE__14__) { return /******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ /******/ /******/ // add "moreModules" to the modules object, /******/ // then flag all "chunkIds" as loaded and fire callback /******/ var moduleId, chunkId, i = 0, resolves = []; /******/ for(;i < chunkIds.length; i++) { /******/ chunkId = chunkIds[i]; /******/ if(installedChunks[chunkId]) { /******/ resolves.push(installedChunks[chunkId][0]); /******/ } /******/ installedChunks[chunkId] = 0; /******/ } /******/ for(moduleId in moreModules) { /******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { /******/ modules[moduleId] = moreModules[moduleId]; /******/ } /******/ } /******/ if(parentJsonpFunction) parentJsonpFunction(data); /******/ /******/ while(resolves.length) { /******/ resolves.shift()(); /******/ } /******/ /******/ }; /******/ /******/ /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // object to store loaded and loading chunks /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched /******/ // Promise = chunk loading, 0 = chunk loaded /******/ var installedChunks = { /******/ 42: 0, /******/ 39: 0 /******/ }; /******/ /******/ /******/ /******/ // script path function /******/ function jsonpScriptSrc(chunkId) { /******/ return __webpack_require__.p + "" + ({"44":"wixui.AddressInput","45":"wixui.BarChart","46":"wixui.Captcha","47":"wixui.CustomElement","48":"wixui.Dropdown","49":"wixui.FileUploaderNew","50":"wixui.ImageX","51":"wixui.LineShareButton","52":"wixui.MusicPlayer","53":"wixui.Pagination","54":"wixui.ProgressBar","55":"wixui.RatingsDisplay","56":"wixui.RatingsInput","57":"wixui.RichTextBox","58":"wixui.SearchBox","59":"wixui.SelectionTagsList","60":"wixui.SignatureInput","61":"wixui.Slider","62":"wixui.StylableButton","63":"wixui.StylableHorizontalMenu","64":"wixui.StylableLine","65":"wixui.Tags","66":"wixui.TimePicker","67":"wixui.ToggleSwitch","68":"wixui.VideoPlayer"}[chunkId]||chunkId) + ".chunk.js" /******/ } /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ // This file contains only the entry chunk. /******/ // The chunk loading function for additional chunks /******/ __webpack_require__.e = function requireEnsure(chunkId) { /******/ var promises = []; /******/ /******/ /******/ // JSONP chunk loading for javascript /******/ /******/ var installedChunkData = installedChunks[chunkId]; /******/ if(installedChunkData !== 0) { // 0 means "already installed". /******/ /******/ // a Promise means "currently loading". /******/ if(installedChunkData) { /******/ promises.push(installedChunkData[2]); /******/ } else { /******/ // setup Promise in chunk cache /******/ var promise = new Promise(function(resolve, reject) { /******/ installedChunkData = installedChunks[chunkId] = [resolve, reject]; /******/ }); /******/ promises.push(installedChunkData[2] = promise); /******/ /******/ // start chunk loading /******/ var script = document.createElement('script'); /******/ var onScriptComplete; /******/ /******/ script.charset = 'utf-8'; /******/ script.timeout = 120; /******/ if (__webpack_require__.nc) { /******/ script.setAttribute("nonce", __webpack_require__.nc); /******/ } /******/ script.src = jsonpScriptSrc(chunkId); /******/ /******/ onScriptComplete = function (event) { /******/ // avoid mem leaks in IE. /******/ script.onerror = script.onload = null; /******/ clearTimeout(timeout); /******/ var chunk = installedChunks[chunkId]; /******/ if(chunk !== 0) { /******/ if(chunk) { /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); /******/ var realSrc = event && event.target && event.target.src; /******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); /******/ error.type = errorType; /******/ error.request = realSrc; /******/ chunk[1](error); /******/ } /******/ installedChunks[chunkId] = undefined; /******/ } /******/ }; /******/ var timeout = setTimeout(function(){ /******/ onScriptComplete({ type: 'timeout', target: script }); /******/ }, 120000); /******/ script.onerror = script.onload = onScriptComplete; /******/ document.head.appendChild(script); /******/ } /******/ } /******/ return Promise.all(promises); /******/ }; /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "https://static.parastorage.com/services/wix-ui-santa/1.849.0/"; /******/ /******/ // on error function for async loading /******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; /******/ /******/ /* runtime version: 1.3.1 */ /******/ function StylableRuntime(exports){ /******/ exports = exports || {}; /******/ function require(){return exports;}; /******/ /******/ (function(){/* source: cached-node-renderer.ts */ /******/ var CacheStyleNodeRenderer = /** @class */ (function () { /******/ function CacheStyleNodeRenderer(options) { /******/ var _this = this; /******/ this.options = options; /******/ this.create = function (stylesheet, key) { /******/ var node = _this.options.createElement('style'); /******/ node.textContent = stylesheet.$css || ''; /******/ node.setAttribute(_this.options.attrKey, key); /******/ node.setAttribute('st-depth', stylesheet.$depth + ''); /******/ return node; /******/ }; /******/ this.hasKey = function (node) { return node.hasAttribute(_this.options.attrKey); }; /******/ this.update = function (stylesheet, node) { /******/ if (node.textContent !== stylesheet.$css) { /******/ node.textContent = stylesheet.$css || ''; /******/ } /******/ return node; /******/ }; /******/ this.renderKey = function (stylesheet) { return stylesheet.$id; }; /******/ } /******/ return CacheStyleNodeRenderer; /******/ }()); /******/ exports.CacheStyleNodeRenderer = CacheStyleNodeRenderer; /******/ }()); /******/ (function(){/* source: keyed-list-renderer.ts */ /******/ function createDOMListRenderer(nodeRenderer) { /******/ var first; /******/ var nodes = {}; /******/ var setNode = function (dataItem, node) { /******/ return (nodes[nodeRenderer.renderKey(dataItem)] = node); /******/ }; /******/ var renderNode = function (dataItem) { /******/ var key = nodeRenderer.renderKey(dataItem); /******/ var node = nodes[key]; /******/ return node /******/ ? nodeRenderer.update(dataItem, node) /******/ : setNode(dataItem, nodeRenderer.create(dataItem, key)); /******/ }; /******/ var render = function (container, data) { /******/ if (data === void 0) { data = []; } /******/ var node; /******/ if (data.length) { /******/ var next = first; /******/ // tslint:disable-next-line:prefer-for-of /******/ for (var i = 0; i < data.length; i++) { /******/ node = renderNode(data[i]); /******/ if (node !== next) { /******/ container.insertBefore(node, next || null); /******/ } /******/ else { /******/ next = node.nextElementSibling; /******/ } /******/ } /******/ first = nodes[nodeRenderer.renderKey(data[0])]; /******/ while (node.nextElementSibling) { /******/ if (nodeRenderer.hasKey(node.nextElementSibling)) { /******/ container.removeChild(node.nextElementSibling); /******/ } /******/ else { /******/ break; /******/ } /******/ } /******/ } /******/ else { /******/ while (first) { /******/ var next = first.nextElementSibling; /******/ container.removeChild(first); /******/ first = next && nodeRenderer.hasKey(next) ? next : undefined; /******/ } /******/ } /******/ }; /******/ return { render: render, nodes: nodes }; /******/ } /******/ exports.createDOMListRenderer = createDOMListRenderer; /******/ }()); /******/ (function(){/* source: css-runtime-renderer.ts */ /******/ var cached_node_renderer_1 = require("./cached-node-renderer"); /******/ var keyed_list_renderer_1 = require("./keyed-list-renderer"); /******/ var RuntimeRenderer = /** @class */ (function () { /******/ function RuntimeRenderer() { /******/ var _this = this; /******/ this.styles = []; /******/ this.stylesMap = {}; /******/ this.renderer = null; /******/ this.window = null; /******/ this.id = null; /******/ this.update = function () { /******/ if (_this.renderer) { /******/ _this.renderer.render(_this.window.document.head, _this.styles); /******/ } /******/ }; /******/ } /******/ RuntimeRenderer.prototype.init = function (_window) { /******/ if (this.window || !_window) { /******/ return; /******/ } /******/ _window.__stylable_renderer_global_counter = /******/ _window.__stylable_renderer_global_counter || 0; /******/ this.id = _window.__stylable_renderer_global_counter++; /******/ this.window = _window; /******/ this.renderer = keyed_list_renderer_1.createDOMListRenderer(new cached_node_renderer_1.CacheStyleNodeRenderer({ /******/ attrKey: 'st-id' + (this.id ? '-' + this.id : ''), /******/ createElement: _window.document.createElement.bind(_window.document) /******/ })); /******/ this.update(); /******/ }; /******/ RuntimeRenderer.prototype.onRegister = function () { /******/ if (this.window) { /******/ this.window.requestAnimationFrame(this.update); /******/ } /******/ }; /******/ RuntimeRenderer.prototype.register = function (stylesheet) { /******/ var registered = this.stylesMap[stylesheet.$id]; /******/ if (registered) { /******/ this.removeStyle(registered); /******/ } /******/ var i = this.findDepthIndex(stylesheet.$depth); /******/ this.styles.splice(i + 1, 0, stylesheet); /******/ this.stylesMap[stylesheet.$id] = stylesheet; /******/ this.onRegister(); /******/ }; /******/ RuntimeRenderer.prototype.removeStyle = function (stylesheet) { /******/ var i = this.styles.indexOf(stylesheet); /******/ if (~i) { /******/ this.styles.splice(i, 1); /******/ } /******/ delete this.stylesMap[stylesheet.$id]; /******/ }; /******/ RuntimeRenderer.prototype.findDepthIndex = function (depth) { /******/ var index = this.styles.length; /******/ while (index--) { /******/ var stylesheet = this.styles[index]; /******/ if (stylesheet.$depth <= depth) { /******/ return index; /******/ } /******/ } /******/ return index; /******/ }; /******/ RuntimeRenderer.prototype.getStyles = function (ids, sortIndexes) { /******/ var _this = this; /******/ return this.sortStyles(ids.map(function (id) { return _this.stylesMap[id]; }), sortIndexes); /******/ }; /******/ RuntimeRenderer.prototype.sortStyles = function (styles, sortIndexes) { /******/ var _this = this; /******/ if (sortIndexes === void 0) { sortIndexes = false; } /******/ var s = styles.slice(); /******/ if (sortIndexes) { /******/ s.sort(function (a, b) { /******/ return _this.styles.indexOf(a) - _this.styles.indexOf(b); /******/ }); /******/ } /******/ s.sort(function (a, b) { /******/ return a.$depth - b.$depth; /******/ }); /******/ return s; /******/ }; /******/ return RuntimeRenderer; /******/ }()); /******/ exports.RuntimeRenderer = RuntimeRenderer; /******/ // The $ export is a convention with the webpack plugin if changed both needs a change /******/ exports.$ = new RuntimeRenderer(); /******/ }()); /******/ (function(){/* source: css-runtime-stylesheet.ts */ /******/ function create(root, namespace, locals, css, depth, id) { /******/ var dataNamespace = 'data-' + namespace.toLowerCase() + '-'; /******/ function cssStates(stateMapping) { /******/ return stateMapping /******/ ? Object.keys(stateMapping).reduce(function (states, key) { /******/ var stateValue = stateMapping[key]; /******/ if (stateValue === undefined || /******/ stateValue === null || /******/ stateValue === false) { /******/ return states; /******/ } /******/ states[dataNamespace + key.toLowerCase()] = stateValue; /******/ return states; /******/ }, {}) /******/ : {}; /******/ } /******/ function get(localName) { /******/ return locals[localName]; /******/ } /******/ function mapClasses(className) { /******/ return className /******/ .split(/\s+/g) /******/ .map(function (className) { return get(className) || className; }) /******/ .join(' '); /******/ } /******/ locals.$root = root; /******/ locals.$namespace = namespace; /******/ locals.$depth = depth; /******/ locals.$id = id; /******/ locals.$css = css; /******/ locals.$get = get; /******/ locals.$cssStates = cssStates; /******/ function stylable_runtime_stylesheet(className, states, inheritedAttributes) { /******/ className = className ? mapClasses(className) : ''; /******/ var base = cssStates(states); /******/ if (inheritedAttributes) { /******/ for (var k in inheritedAttributes) { /******/ if (k.match(/^data-/)) { /******/ base[k] = inheritedAttributes[k]; /******/ } /******/ } /******/ if (inheritedAttributes.className) { /******/ className += ' ' + inheritedAttributes.className; /******/ } /******/ } /******/ if (className) { /******/ base.className = className; /******/ } /******/ return base; /******/ } /******/ Object.setPrototypeOf(stylable_runtime_stylesheet, locals); /******/ // EDGE CACHE BUG FIX /******/ stylable_runtime_stylesheet[locals.$root] = locals[locals.$root]; /******/ return stylable_runtime_stylesheet; /******/ } /******/ exports.create = create; /******/ function createTheme(css, depth, id) { /******/ return { $css: css, $depth: depth, $id: id, $theme: true }; /******/ } /******/ exports.createTheme = createTheme; /******/ }());; /******/ return exports; /******/ }; /******/ (typeof self !== 'undefined' ? self : this)["__stylable_yoshi__"] = __webpack_require__.stylable = (typeof self !== 'undefined' ? self : this)["__stylable_yoshi__"] || StylableRuntime(); /******/ var jsonpArray = (typeof self !== 'undefined' ? self : this)["webpackJsonp_wix_ui_santa"] = (typeof self !== 'undefined' ? self : this)["webpackJsonp_wix_ui_santa"] || []; /******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); /******/ jsonpArray.push = webpackJsonpCallback; /******/ jsonpArray = jsonpArray.slice(); /******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); /******/ var parentJsonpFunction = oldJsonpFunction; /******/ /******/ /******/ __webpack_require__.p = typeof window !== 'undefined' && window.__STATICS_BASE_URL__ || __webpack_require__.p; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 1369); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /*!**************************************************************************************!*\ !*** external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React"} ***! \**************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__0__; /***/ }), /***/ 1: /*!**********************************************************************************************************!*\ !*** external {"amd":"prop-types","commonjs":"prop-types","commonjs2":"prop-types","root":"prop-types"} ***! \**********************************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__1__; /***/ }), /***/ 11: /*!*********************************************************************************************************************************!*\ !*** external {"amd":"santa-components","commonjs":"santa-components","commonjs2":"santa-components","root":"santaComponents"} ***! \*********************************************************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__11__; /***/ }), /***/ 1369: /*!**************************************!*\ !*** ./components-service/viewer.js ***! \**************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _baseService = __webpack_require__(/*! ./base-service */ 91); var _baseService2 = _interopRequireDefault(_baseService); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var compsToPackages = { 'wixui.RichTextBox': function wixuiRichTextBox() { return Promise.all([__webpack_require__.e(/*! import() | wixui.RichTextBox */ 57).then(__webpack_require__.t.bind(null, /*! ../legacy/components/RichTextBox */ 469, 7))]); }, 'wixui.ToggleSwitch': function wixuiToggleSwitch() { return Promise.all([__webpack_require__.e(/*! import() | wixui.ToggleSwitch */ 67).then(__webpack_require__.t.bind(null, /*! ../legacy/components/ToggleSwitch */ 468, 7))]); }, 'wixui.Slider': function wixuiSlider() { return Promise.all([__webpack_require__.e(/*! import() | wixui.Slider */ 61).then(__webpack_require__.t.bind(null, /*! ../components/Slider */ 498, 7))]); }, 'wixui.SearchBox': function wixuiSearchBox() { return Promise.all([__webpack_require__.e(/*! import() | wixui.SearchBox */ 58).then(__webpack_require__.t.bind(null, /*! ../components/SearchBox */ 501, 7))]); }, 'wixui.Captcha': function wixuiCaptcha() { return Promise.all([__webpack_require__.e(/*! import() | wixui.Captcha */ 46).then(__webpack_require__.t.bind(null, /*! ../components/Captcha */ 495, 7))]); }, 'wixui.Pagination': function wixuiPagination() { return Promise.all([__webpack_require__.e(/*! import() | wixui.Pagination */ 53).then(__webpack_require__.t.bind(null, /*! ../components/Pagination */ 492, 7))]); }, 'wixui.AddressInput': function wixuiAddressInput() { return Promise.all([__webpack_require__.e(/*! import() | wixui.AddressInput */ 44).then(__webpack_require__.t.bind(null, /*! ../components/AddressInput */ 502, 7))]); }, 'wixui.StylableLine': function wixuiStylableLine() { return Promise.all([__webpack_require__.e(/*! import() | wixui.StylableLine */ 64).then(__webpack_require__.t.bind(null, /*! ../components/StylableLine */ 505, 7))]); }, 'wixui.Tags': function wixuiTags() { return Promise.all([__webpack_require__.e(/*! import() | wixui.Tags */ 65).then(__webpack_require__.t.bind(null, /*! ../components/Tags */ 493, 7))]); }, 'wixui.RatingsInput': function wixuiRatingsInput() { return Promise.all([__webpack_require__.e(/*! import() | wixui.RatingsInput */ 56).then(__webpack_require__.t.bind(null, /*! ../components/RatingsInput */ 494, 7))]); }, 'wixui.TimePicker': function wixuiTimePicker() { return Promise.all([__webpack_require__.e(/*! import() | wixui.TimePicker */ 66).then(__webpack_require__.t.bind(null, /*! ../components/TimePicker */ 503, 7))]); }, 'wixui.RatingsDisplay': function wixuiRatingsDisplay() { return Promise.all([__webpack_require__.e(/*! import() | wixui.RatingsDisplay */ 55).then(__webpack_require__.t.bind(null, /*! ../components/RatingsDisplay */ 496, 7))]); }, 'wixui.VideoPlayer': function wixuiVideoPlayer() { return Promise.all([__webpack_require__.e(/*! import() | wixui.VideoPlayer */ 68).then(__webpack_require__.t.bind(null, /*! ../components/VideoPlayer */ 491, 7))]); }, 'wixui.LineShareButton': function wixuiLineShareButton() { return Promise.all([__webpack_require__.e(/*! import() | wixui.LineShareButton */ 51).then(__webpack_require__.t.bind(null, /*! ../components/LineShareButton */ 504, 7))]); }, 'wixui.MusicPlayer': function wixuiMusicPlayer() { return Promise.all([__webpack_require__.e(/*! import() | wixui.MusicPlayer */ 52).then(__webpack_require__.t.bind(null, /*! ../components/MusicPlayer */ 458, 7))]); }, 'wixui.StylableButton': function wixuiStylableButton() { return Promise.all([__webpack_require__.e(/*! import() | wixui.StylableButton */ 62).then(__webpack_require__.t.bind(null, /*! ../components/StylableButton */ 506, 7))]); }, 'wixui.ProgressBar': function wixuiProgressBar() { return Promise.all([__webpack_require__.e(/*! import() | wixui.ProgressBar */ 54).then(__webpack_require__.t.bind(null, /*! ../components/ProgressBar */ 499, 7))]); }, 'wixui.Dropdown': function wixuiDropdown() { return Promise.all([__webpack_require__.e(/*! import() | wixui.Dropdown */ 48).then(__webpack_require__.t.bind(null, /*! ../components/Dropdown */ 500, 7))]); }, 'wixui.BarChart': function wixuiBarChart() { return Promise.all([__webpack_require__.e(/*! import() | wixui.BarChart */ 45).then(__webpack_require__.t.bind(null, /*! ../components/BarChart */ 497, 7))]); }, 'wixui.CustomElementComponent': function wixuiCustomElementComponent() { return Promise.all([__webpack_require__.e(/*! import() | wixui.CustomElement */ 47).then(__webpack_require__.t.bind(null, /*! ../components/CustomElement */ 509, 7))]); }, 'wixui.SignatureInput': function wixuiSignatureInput() { return Promise.all([__webpack_require__.e(/*! import() | wixui.SignatureInput */ 60).then(__webpack_require__.t.bind(null, /*! ../components/SignatureInput */ 508, 7))]); }, 'wixui.FileUploaderNew': function wixuiFileUploaderNew() { return Promise.all([__webpack_require__.e(/*! import() | wixui.FileUploaderNew */ 49).then(__webpack_require__.t.bind(null, /*! ../components/FileUploaderNew */ 510, 7))]); }, 'wixui.SelectionTagsList': function wixuiSelectionTagsList() { return Promise.all([__webpack_require__.e(/*! import() | wixui.SelectionTagsList */ 59).then(__webpack_require__.t.bind(null, /*! ../components/SelectionTagsList */ 511, 7))]); }, 'wixui.StylableHorizontalMenu': function wixuiStylableHorizontalMenu() { return Promise.all([__webpack_require__.e(/*! import() | wixui.StylableHorizontalMenu */ 63).then(__webpack_require__.t.bind(null, /*! ../components/StylableHorizontalMenu */ 512, 7))]); }, 'wixui.ImageX': function wixuiImageX() { return Promise.all([__webpack_require__.e(/*! import() | wixui.ImageX */ 50).then(__webpack_require__.t.bind(null, /*! ../components/ImageX */ 513, 7))]); } }; module.exports = new _baseService2.default(compsToPackages); /***/ }), /***/ 14: /*!****************************************************************************************************!*\ !*** external {"amd":"reactDOM","commonjs":"react-dom","commonjs2":"react-dom","root":"ReactDOM"} ***! \****************************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__14__; /***/ }), /***/ 2: /*!*************************************************************************************!*\ !*** external {"amd":"lodash","commonjs":"lodash","commonjs2":"lodash","root":"_"} ***! \*************************************************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE__2__; /***/ }), /***/ 25: /*!**************************************************!*\ !*** ./components/Dropdown/componentOverride.js ***! \**************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { overrideViewerType: 'wysiwyg.viewer.components.inputs.ComboBoxInput', overrideDisplayName: 'ComboBoxInput', overrideComponentSkin: 'ComboBoxInputSkin', // viewerExperimentKey: 'useNewWUSDropdown', editorExperimentKey: 'specs.wus.useNewDropdown', // newComponentViewerType: 'wixui.Dropdown', newDisplayName: 'Dropdown', newComponentSkin: 'ComboBoxInputSkinNew' }; /***/ }), /***/ 28: /*!*********************************************************!*\ !*** ./components/FileUploaderNew/componentOverride.js ***! \*********************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var fileUploaderNewOverrideDefinition = { overrideViewerType: 'wysiwyg.viewer.components.inputs.FileUploader', overrideDisplayName: 'FileUploader', overrideComponentSkin: 'wysiwyg.viewer.skins.FileUploaderDefaultSkin', viewerExperimentKey: 'useNewWUSUploadButton', editorExperimentKey: 'specs.wus.useNewUploadButton', newComponentViewerType: 'wixui.FileUploaderNew', newDisplayName: 'FileUploaderNew', newComponentSkin: 'wixui.skins.FileUploaderNew' }; module.exports = fileUploaderNewOverrideDefinition; /***/ }), /***/ 62: /*!**********************!*\ !*** ./overrides.js ***! \**********************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var createOverrideMap = function createOverrideMap(requireFn) { return requireFn.keys().map(requireFn).reduce(function (overridesMap, compOverrideMetadata) { overridesMap[compOverrideMetadata.overrideViewerType] = compOverrideMetadata; return overridesMap; }, {}); }; var componentOverrides = createOverrideMap(__webpack_require__(63)); function getOverrides() { return componentOverrides; } module.exports = { getOverrides: getOverrides }; /***/ }), /***/ 63: /*!************************************************!*\ !*** ./components sync componentOverride\.js$ ***! \************************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { var map = { "./Dropdown/componentOverride.js": 25, "./FileUploaderNew/componentOverride.js": 28 }; function webpackContext(req) { var id = webpackContextResolve(req); return __webpack_require__(id); } function webpackContextResolve(req) { var id = map[req]; if(!(id + 1)) { // check for number or string var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; } return id; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = 63; /***/ }), /***/ 91: /*!********************************************!*\ !*** ./components-service/base-service.js ***! \********************************************/ /*! no static exports found */ /*! all exports used */ /*! ModuleConcatenation bailout: Module is not an ECMAScript module */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var _require = __webpack_require__(/*! ../overrides */ 62), getOverrides = _require.getOverrides; function BaseService(_compsToPackages) { var compsToPackages = _compsToPackages; var overrides = getOverrides(); function setWebpackPublicPath(baseUrl) { __webpack_require__.p = baseUrl + '/'; // eslint-disable-line } function loadComponent(componentType) { if (overrides[componentType]) { componentType = overrides[componentType].newComponentViewerType; } if (!exists(componentType)) { return Promise.reject(new Error('no such component ' + componentType)); } return compsToPackages[componentType]().catch(function (e) { //fix for ie11, doesn't load components console.error('coudn\'t load ' + componentType, e); return [{ default: { componentType: componentType, component: function component() { return null; }, santaComponent: function santaComponent() { return null; }, skin: {} } }]; }); } function exists(componentType, runningExperiments) { return !!compsToPackages[componentType] || overrides[componentType] && runningExperiments && runningExperiments[overrides[componentType].viewerExperimentKey] === 'new'; } function loadAll(baseUrl) { setWebpackPublicPath(baseUrl); return Promise.all(Object.keys(compsToPackages).map(loadComponent)); } function load(componentType, baseUrl) { setWebpackPublicPath(baseUrl); return loadComponent(componentType); } return { exists: exists, loadAll: loadAll, load: load }; } module.exports = BaseService; /***/ }) /******/ }); }); //# sourceMappingURL=viewerComponentService.bundle.js.map