vendor: 1,521 bytes, lines 1-32
1"use strict"; 2(() => { 3 var __create = Object.create; 4 var __defProp = Object.defineProperty; 5 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 6 var __getOwnPropNames = Object.getOwnPropertyNames; 7 var __getProtoOf = Object.getPrototypeOf; 8 var __hasOwnProp = Object.prototype.hasOwnProperty; 9 var __esm = (fn, res) => function __init() { 10 return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; 11 }; 12 var __commonJS = (cb, mod) => function __require() { 13 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 14 }; 15 var __copyProps = (to, from, except, desc) => { 16 if (from && typeof from === "object" || typeof from === "function") { 17 for (let key of __getOwnPropNames(from)) 18 if (!__hasOwnProp.call(to, key) && key !== except) 19 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 20 } 21 return to; 22 }; 23 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( 24 // If the importer is in node compatibility mode or this is not an ESM 25 // file that has been converted to a CommonJS file using a Babel- 26 // compatible transform (i.e. "__esModule" has not been set), then set 27 // "default" to the CommonJS "module.exports" for node compatibility. 28 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, 29 mod 30 )); 31 32
vendor: 5,648 bytes, lines 32-239
32// ../node_modules/@esbuild-plugins/node-globals-polyfill/process.js 33 function defaultSetTimout() { 34 throw new Error("setTimeout has not been defined"); 35 } 36 function defaultClearTimeout() { 37 throw new Error("clearTimeout has not been defined"); 38 } 39 function runTimeout(fun) { 40 if (cachedSetTimeout === setTimeout) { 41 return setTimeout(fun, 0); 42 } 43 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { 44 cachedSetTimeout = setTimeout; 45 return setTimeout(fun, 0); 46 } 47 try { 48 return cachedSetTimeout(fun, 0); 49 } catch (e) { 50 try { 51 return cachedSetTimeout.call(null, fun, 0); 52 } catch (e2) { 53 return cachedSetTimeout.call(this, fun, 0); 54 } 55 } 56 } 57 function runClearTimeout(marker) { 58 if (cachedClearTimeout === clearTimeout) { 59 return clearTimeout(marker); 60 } 61 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { 62 cachedClearTimeout = clearTimeout; 63 return clearTimeout(marker); 64 } 65 try { 66 return cachedClearTimeout(marker); 67 } catch (e) { 68 try { 69 return cachedClearTimeout.call(null, marker); 70 } catch (e2) { 71 return cachedClearTimeout.call(this, marker); 72 } 73 } 74 } 75 function cleanUpNextTick() { 76 if (!draining || !currentQueue) { 77 return; 78 } 79 draining = false; 80 if (currentQueue.length) { 81 queue = currentQueue.concat(queue); 82 } else { 83 queueIndex = -1; 84 } 85 if (queue.length) { 86 drainQueue(); 87 } 88 } 89 function drainQueue() { 90 if (draining) { 91 return; 92 } 93 var timeout = runTimeout(cleanUpNextTick); 94 draining = true; 95 var len = queue.length; 96 while (len) { 97 currentQueue = queue; 98 queue = []; 99 while (++queueIndex < len) { 100 if (currentQueue) { 101 currentQueue[queueIndex].run(); 102 } 103 } 104 queueIndex = -1; 105 len = queue.length; 106 } 107 currentQueue = null; 108 draining = false; 109 runClearTimeout(timeout); 110 } 111 function nextTick(fun) { 112 var args = new Array(arguments.length - 1); 113 if (arguments.length > 1) { 114 for (var i = 1; i < arguments.length; i++) { 115 args[i - 1] = arguments[i]; 116 } 117 } 118 queue.push(new Item(fun, args)); 119 if (queue.length === 1 && !draining) { 120 runTimeout(drainQueue); 121 } 122 } 123 function Item(fun, array) { 124 this.fun = fun; 125 this.array = array; 126 } 127 function noop() { 128 } 129 function binding(name) { 130 throw new Error("process.binding is not supported"); 131 } 132 function cwd() { 133 return "/"; 134 } 135 function chdir(dir) { 136 throw new Error("process.chdir is not supported"); 137 } 138 function umask() { 139 return 0; 140 } 141 function hrtime(previousTimestamp) { 142 var clocktime = performanceNow.call(performance) * 1e-3; 143 var seconds = Math.floor(clocktime); 144 var nanoseconds = Math.floor(clocktime % 1 * 1e9); 145 if (previousTimestamp) { 146 seconds = seconds - previousTimestamp[0]; 147 nanoseconds = nanoseconds - previousTimestamp[1]; 148 if (nanoseconds < 0) { 149 seconds--; 150 nanoseconds += 1e9; 151 } 152 } 153 return [seconds, nanoseconds]; 154 } 155 function uptime() { 156 var currentTime = /* @__PURE__ */ new Date(); 157 var dif = currentTime - startTime; 158 return dif / 1e3; 159 } 160 var cachedSetTimeout, cachedClearTimeout, queue, draining, currentQueue, queueIndex, title, platform, browser, env, argv, version, versions, release, config, on, addListener, once, off, removeListener, removeAllListeners, emit, performance, performanceNow, startTime, process, defines; 161 var init_process = __esm({ 162 "../node_modules/@esbuild-plugins/node-globals-polyfill/process.js"() { 163 cachedSetTimeout = defaultSetTimout; 164 cachedClearTimeout = defaultClearTimeout; 165 if (typeof globalThis.setTimeout === "function") { 166 cachedSetTimeout = setTimeout; 167 } 168 if (typeof globalThis.clearTimeout === "function") { 169 cachedClearTimeout = clearTimeout; 170 } 171 queue = []; 172 draining = false; 173 queueIndex = -1; 174 Item.prototype.run = function() { 175 this.fun.apply(null, this.array); 176 }; 177 title = "browser"; 178 platform = "browser"; 179 browser = true; 180 env = {}; 181 argv = []; 182 version = ""; 183 versions = {}; 184 release = {}; 185 config = {}; 186 on = noop; 187 addListener = noop; 188 once = noop; 189 off = noop; 190 removeListener = noop; 191 removeAllListeners = noop; 192 emit = noop; 193 performance = globalThis.performance || {}; 194 performanceNow = performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow || function() { 195 return (/* @__PURE__ */ new Date()).getTime(); 196 }; 197 startTime = /* @__PURE__ */ new Date(); 198 process = { 199 nextTick, 200 title, 201 browser, 202 env, 203 argv, 204 version, 205 versions, 206 on, 207 addListener, 208 once, 209 off, 210 removeListener, 211 removeAllListeners, 212 emit, 213 binding, 214 cwd, 215 chdir, 216 umask, 217 hrtime, 218 platform, 219 release, 220 config, 221 uptime 222 }; 223 defines = {}; 224 Object.keys(defines).forEach((key) => { 225 const segs = key.split("."); 226 let target = process; 227 for (let i = 0; i < segs.length; i++) { 228 const seg = segs[i]; 229 if (i === segs.length - 1) { 230 target[seg] = defines[key]; 231 } else { 232 target = target[seg] || (target[seg] = {}); 233 } 234 } 235 }); 236 } 237 }); 238 239
vendor: 1,858 bytes, lines 239-282
239// ../node_modules/@wix/santa-main-r/lib/lib/common/experiment.js 240 var require_experiment = __commonJS({ 241 "../node_modules/@wix/santa-main-r/lib/lib/common/experiment.js"(exports, module) { 242 "use strict"; 243 init_process(); 244 var transformedExperimentsCache = /* @__PURE__ */ new WeakMap(); 245 function getRunningExperiments(context) { 246 var model = context && (context.rendererModel || context.editorModel) || {}; 247 var _model$runningExperim = model.runningExperiments, runningExperiments = _model$runningExperim === void 0 ? {} : _model$runningExperim; 248 return runningExperiments; 249 } 250 function transformRunningExperiments(runningExperiments) { 251 return Object.keys(runningExperiments).reduce(function(acc, key) { 252 acc[key.toLowerCase()] = runningExperiments[key]; 253 return acc; 254 }, /* @__PURE__ */ Object.create(null)); 255 } 256 function getValue(name, context) { 257 var runningExperiments = getRunningExperiments(context); 258 var value = runningExperiments[name]; 259 if (value !== void 0) { 260 return value; 261 } 262 var transformedExperiments = transformedExperimentsCache.get(runningExperiments); 263 if (!transformedExperiments) { 264 transformedExperiments = transformRunningExperiments(runningExperiments); 265 transformedExperimentsCache.set(runningExperiments, transformedExperiments); 266 } 267 return transformedExperiments[name.toLowerCase()]; 268 } 269 function isMultiValueExperimentOpen(name, context) { 270 var value = getValue(name, context); 271 return !!(value && value !== "old" && value !== "false"); 272 } 273 module.exports = { 274 getRunningExperiments, 275 isMultiValueExperimentOpen, 276 isOpen: isMultiValueExperimentOpen, 277 getValue 278 }; 279 } 280 }); 281 282
vendor: 1,016 bytes, lines 282-310
282// ../node_modules/@wix/santa-main-r/lib/lib/common/experimentFactory.js 283 var require_experimentFactory = __commonJS({ 284 "../node_modules/@wix/santa-main-r/lib/lib/common/experimentFactory.js"(exports, module) { 285 "use strict"; 286 init_process(); 287 var exp = require_experiment(); 288 function build(context) { 289 return { 290 getRunningExperiments: function getRunningExperiments(override) { 291 return exp.getRunningExperiments(override || context); 292 }, 293 isOpen: function isOpen(name, override) { 294 return exp.isOpen(name, override || context); 295 }, 296 getValue: function getValue(name, override) { 297 return exp.getValue(name, override || context); 298 }, 299 isMultiValueExperimentOpen: function isMultiValueExperimentOpen(name, override) { 300 return exp.isMultiValueExperimentOpen(name, override || context); 301 } 302 }; 303 } 304 module.exports = { 305 build 306 }; 307 } 308 }); 309 310
310// src/tb-main.ts 311 init_process(); 312 var import_experimentFactory = __toESM(require_experimentFactory()); 313 314
314// src/main-r/index.ts 315 init_process(); 316 317
317// src/main-r/addExperimentsFromQuery.ts 318 init_process(); 319 320
320// src/main-r/getQueryUtils.ts 321 init_process(); 322 function getParameterFromQuery(query, name) { 323 name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); 324 const regex = new RegExp(`[\\?&]${name}=([^&#]*)`); 325 const results = regex.exec(query); 326 return results?.[1] ? decodeURIComponent(results[1]).replace(/\+/g, " ") : ""; 327 } 328 function isParameterTrueInQuery(query, name) { 329 return getParameterFromQuery(query, name) === "true"; 330 } 331 function getQueryUtils(window2) { 332 return { 333 getParameterFromQuery, 334 isParameterTrueInQuery, 335 getParameterByName: getParameterFromQuery.bind(null, window2.location.search), 336 isParameterTrue: isParameterTrueInQuery.bind(null, window2.location.search) 337 }; 338 } 339 340
340// src/main-r/get-rjs-config.ts 341 init_process(); 342 343
343// src/main-r/rjs-config-utils.ts 344 init_process(); 345 346
346// src/main-r/joinURL.ts 347 init_process(); 348 var safe = (a) => typeof a === "undefined" ? "undefined" : a; 349 function safeReplace(a, search, replaceValue) { 350 return safe(a).replace(search, replaceValue); 351 } 352 function joinURL(...args) { 353 let url = args[0]; 354 for (let i = 1; i < args.length; ++i) { 355 url = safeReplace(url, /\/$/, "") + "/" + safeReplace(args[i], /^\//, ""); 356 } 357 return url; 358 } 359 360
360// src/main-r/rjs-config-utils.ts 361 function unpkg(pkg, v, p) { 362 return `https://static.parastorage.com/unpkg/${pkg}@${v}/${p}`; 363 } 364 function unpkgObj(pkg, v, min, debug) { 365 return { 366 min: unpkg(pkg, v, min), 367 source: unpkg(pkg, v, debug) 368 }; 369 } 370 var node = (m, p) => `node_modules/${m}/${p}`; 371 function unpkgOrNode(versions2, local, m, p) { 372 const actualLocal = isLocal(versions2, local, m); 373 return actualLocal ? node(m, p) : unpkg(m, versions2[m], p); 374 } 375 function isLocal(versions2, local, m) { 376 return local || versions2[m] === "link"; 377 } 378 function unpkgOrNodeObj(versions2, local, m, min, debug) { 379 const actualLocal = isLocal(versions2, local, m); 380 return actualLocal ? nodeObj(m, min, debug) : unpkgObj(m, versions2[m], min, debug); 381 } 382 function nodeObj(m, min, debug) { 383 return { min: node(m, min), source: node(m, debug) }; 384 } 385 function mergeInto(dst, src) { 386 Object.keys(src).forEach((k) => { 387 dst[k] = dst[k] || src[k]; 388 }); 389 } 390 function scriptLocation(serviceTopology, name, fallback) { 391 return serviceTopology?.scriptsLocationMap[name] || fallback; 392 } 393 function isExperimentOpen(experimentInstance, name) { 394 return experimentInstance && typeof experimentInstance.isOpen === "function" && experimentInstance.isOpen(name); 395 } 396 397
397// src/main-r/get-rjs-config.ts 398 var defaults = { 399 "@wix/santa-core-utils": "1.307.0", 400 "@wix/santa-skin-utils": "1.1.0", 401 "image-client-api": "1.40.0", 402 imageClientLib: "1.40.0", 403 zepto: "1.2.0", 404 xss: "0.2.12", 405 "react-dom-factories": "1.0.2", 406 lodash: "4.7.0", 407 "pm-rpc": "1.0.7", 408 hammerjs: "2.0.8", 409 // jsVendor: { 410 mobx: "3.3.3", 411 "mobx-react": "4.2.2", 412 tweenmax: "1.19.0", 413 "@wix/fedops-logger": "3.0.5", 414 "dm-ajv": "8.1.3" 415 }; 416 var wixUiSantaStaticOverrideExp = "allowWixUiSantaStaticOverride"; 417 function getRjsConfig(versions2, serviceTopology, local, experiment) { 418 const platformSdkRoot = scriptLocation(serviceTopology, "js-platform-editor-sdk"); 419 const platformAppConfigurationUrl = scriptLocation( 420 serviceTopology, 421 "js-platform-apps-configuration", 422 "https://static.parastorage.com/services/js-platform-apps-configuration/1.7.0" 423 ); 424 const promoteAnalyticsAdapterUrl = scriptLocation(serviceTopology, "promote-analytics-adapter"); 425 const santaSiteAuthUrl = scriptLocation(serviceTopology, "santa-site-auth-module"); 426 mergeInto(versions2, defaults); 427 const _unpkg = unpkgOrNode.bind(null, versions2, local); 428 const _unpkgObj = unpkgOrNodeObj.bind(null, versions2, local); 429 const promoteAnalyticsAdapterPath = local ? node("@wix/promote-analytics-adapter", "dist/statics/analytics-event-adapter.bundle.min") : joinURL(promoteAnalyticsAdapterUrl, "analytics-event-adapter.bundle.min"); 430 const santaSiteAuthPath = local ? node("@wix/santa-site-auth-module", "dist/statics/santa-site-auth-module.bundle.min") : joinURL(santaSiteAuthUrl, "santa-site-auth-module.bundle.min"); 431 const paths = { 432 // -------------- RUNTIME -------------------------------------------------------------- 433 wixImmutable: _unpkg("@wix/santa-core-utils", "dist/wixImmutable"), 434 lodash: _unpkg("lodash", "lodash.min"), 435 vendor: _unpkgObj("@wix/santa-bundle", "dist/bundle.min", "dist/bundle"), 436 react: _unpkgObj("react", "umd/react.production.min", "umd/react.development"), 437 reactDOM: _unpkgObj("react-dom", "umd/react-dom.production.min", "umd/react-dom.development"), 438 reactDOMServer: _unpkgObj( 439 "react-dom", 440 "umd/react-dom-server.browser.production.min", 441 "umd/react-dom-server.browser.development" 442 ), 443 reactTestUtils: _unpkg("react-dom", "umd/react-dom-test-utils.development"), 444 "prop-types": _unpkgObj("prop-types", "prop-types.min", "prop-types"), 445 "create-react-class": _unpkgObj("create-react-class", "create-react-class.min", "create-react-class"), 446 "react-dom-factories": _unpkg("react-dom-factories", "index"), 447 mobx: _unpkgObj("mobx", "lib/mobx.umd.min", "lib/mobx.umd"), 448 "mobx-react": _unpkgObj("mobx-react", "index.min", "index"), 449 zepto: _unpkgObj("zepto", "dist/zepto.min", "dist/zepto"), 450 immutable: _unpkgObj("immutable", "dist/immutable.min", "dist/immutable"), 451 TweenMax: _unpkgObj("gsap", "src/minified/TweenMax.min", "src/uncompressed/TweenMax"), 452 //bundle 453 TweenLite: _unpkgObj("gsap", "src/minified/TweenMax.min", "src/uncompressed/TweenMax"), 454 TimelineMax: _unpkgObj("gsap", "src/minified/TweenMax.min", "src/uncompressed/TweenMax"), 455 ScrollToPlugin: _unpkgObj( 456 "gsap", 457 "src/minified/plugins/ScrollToPlugin.min", 458 "src/uncompressed/plugins/ScrollToPlugin" 459 ), 460 //bundle 461 Draggable: _unpkgObj("gsap", "src/minified/utils/Draggable.min", "src/uncompressed/utils/Draggable"), 462 DrawSVGPlugin: _unpkgObj( 463 "@wix/santa-external-modules", 464 "tweenmax-plugins/1.19.0/DrawSVGPlugin.min", 465 "tweenmax-plugins/1.19.0/DrawSVGPlugin" 466 ), 467 MorphSVGPlugin: _unpkgObj( 468 "@wix/santa-external-modules", 469 "tweenmax-plugins/1.19.0/MorphSVGPlugin.min", 470 "tweenmax-plugins/1.19.0/MorphSVGPlugin" 471 ), 472 //gsap3 - upgrade GSAP - temporary path for the transition phase 473 gsap3: _unpkgObj( 474 "@wix/santa-external-modules", 475 "tweenmax-plugins/3.1.1-transition-phase/gsap.min", 476 "tweenmax-plugins/3.1.1-transition-phase/gsap" 477 ), 478 ScrollToPlugin3: _unpkgObj( 479 "@wix/santa-external-modules", 480 "tweenmax-plugins/3.1.1-transition-phase/ScrollToPlugin.min", 481 "tweenmax-plugins/3.1.1-transition-phase/ScrollToPlugin" 482 ), 483 color: _unpkg("@wix/santa-external-modules", "color-convert/0.2.0/color.min"), 484 speakingurl: _unpkg("@wix/santa-external-modules", "speakingurl/7.0.0/speakingurl.min"), 485 "date-fns": _unpkgObj("@wix/santa-external-modules", "date-fns/1.3.0/date_fns.min", "date-fns/1.3.0/date_fns"), 486 xss: _unpkg("xss", "dist/xss.min"), 487 //shim 488 immutableDiff: _unpkg("@wix/santa-external-modules", "immutableDiff/immutablejsdiff.min"),
489 pmrpc: _unpkg("pm-rpc", "build/pm-rpc.min"), 490 "ag-grid": _unpkgObj("ag-grid", "dist/ag-grid.min", "dist/ag-grid"), 491 SoundManager: _unpkg("soundmanager2", "script/soundmanager2-nodebug-jsmin"), 492 hammer: _unpkg("hammerjs", "hammer.min"), 493 mousetrap: _unpkg("mousetrap", "mousetrap.min"), 494 swfobject: _unpkg("@wix/santa-external-modules", "swfobject/2.3.20130521/swfobject.min"), 495 "fedops-logger": _unpkg("@wix/fedops-logger", "dist/statics/fedops-logger-module.bundle.min"), 496 "fast-json-stable-stringify": _unpkg("@wix/santa-external-modules", "dist/fast-json-stable-stringify"), 497 // ------------- internal ------------------------------------------------------------------- 498 platformEvents: _unpkgObj("@wix/platform-editor-sdk", "lib/platformEvents.min", "lib/platformEvents"), 499 "document-services": _unpkgObj( 500 "@wix/document-services", 501 "dist/document-services.min", 502 "dist/document-services" 503 ), 504 documentServices: _unpkg("@wix/document-services-implementation", "dist/document-services-implementation"), 505 "document-services-implementation": _unpkgObj( 506 "@wix/document-services-implementation", 507 "dist/document-services-implementation.min", 508 "dist/document-services-implementation" 509 ), 510 mobileCore: _unpkgObj("@wix/santa-mobile-core", "dist/mobileCore.min", "dist/mobileCore"), 511 platformUtils: _unpkg("@wix/santa-platform-utils", "dist/platformUtils-bundle"), 512 "santa-shared-schemas": _unpkg("@wix/santa-shared-schemas", "dist/santa-shared-schemas"), 513 "santa-components": _unpkgObj( 514 "@wix/santa-components", 515 "dist/santa-components.prod", 516 "dist/santa-components.devel" 517 ), 518 "santa-components-layout": _unpkgObj( 519 "@wix/santa-components", 520 "dist/santa-components-layout.prod", 521 "dist/santa-components-layout.devel" 522 ), 523 "santa-components/popover": _unpkgObj( 524 "@wix/santa-components", 525 "dist/santa-component-popover.prod", 526 "dist/santa-component-popover.devel" 527 ), 528 "santa-renderer": _unpkg("santa-renderer", "dist/santa-renderer"), 529 mobileLayoutUtils: _unpkgObj("@wix/santa-mobile-core", "dist/mobileLayoutUtils.min", "dist/mobileLayoutUtils"), 530 skinUtils: _unpkg("@wix/santa-skin-utils", "dist/skin-utils"), 531 "mesh-migrator": _unpkg("@wix/mesh-migrator", "dist/mesh-migrator"), 532 "santa-core-utils": _unpkg("@wix/santa-core-utils", "dist/coreUtils"), 533 warmupUtilsLib: _unpkg("@wix/santa-core-utils", "dist/warmupUtils"), 534 tweenEngine: _unpkg("@wix/santa-core-utils", "dist/tweenEngine"), 535 "image-client-api": _unpkg("image-client-api", "dist/imageClientApi"), 536 imageClientSDK: _unpkg("image-client-api", "dist/imageClientSDK"), 537 "santa-site-auth-module": santaSiteAuthPath, 538 wixDomSanitizer: _unpkg("@wix/wix-dom-sanitizer", "dist/wix-dom-sanitizer"), 539 "santa-data-fixer": _unpkgObj("@wix/santa-data-fixer", "dist/santa-data-fixer.min", "dist/santa-data-fixer"), 540 "santa-animations": _unpkg("@wix/santa-animations", "dist/santa-animations"), 541 "media-resize-map": _unpkg("@wix/santa-animations", "dist/mediaResizeMap"), 542 "host-platform-api": _unpkg("@wix/santa-host-platform-services", "dist/host-platform-api"), 543 "host-worker-init": _unpkg("@wix/santa-host-platform-services", "dist/host-worker-init"), 544 wixFullstoryLoader: _unpkg("@wix/wix-fullstory-loader", "dist/statics/app.bundle"), 545 "data-capsule": _unpkg("data-capsule", "dist/statics/frame-listener.bundle.min"), 546 coreMultilingual: _unpkg("@wix/santa-multilingual", "dist/languages"), 547 "hls-light": _unpkg("hls.js", "dist/hls.light.min"), 548 //lazy 549 hls: _unpkg("hls.js", "dist/hls.min"), 550 //lazy 551 "promote-analytics-adapter": promoteAnalyticsAdapterPath, 552 "js-platform-apps-configuration-editor": joinURL(platformAppConfigurationUrl, "platform-apps-editor.min"), 553 wixUiRichTextArea: _unpkg("@wix/wix-ui-santa", "dist/statics/RichTextArea.bundle.min"), 554 wixUiRichTextBox: _unpkg("@wix/wix-ui-santa", "dist/statics/RichTextBox.bundle.min"), 555 wixUiToggleSwitch: _unpkg("@wix/wix-ui-santa", "dist/statics/ToggleSwitch.bundle.min"), 556 wixUiTimePicker: _unpkg("@wix/wix-ui-santa", "dist/statics/TimePicker.bundle.min"), 557 wixUiVideoPlayer: _unpkg("@wix/wix-ui-santa", "dist/statics/VideoPlayer.bundle.min"), 558 wixUiPagination: _unpkg("@wix/wix-ui-santa", "dist/statics/Pagination.bundle.min"), 559 "wix-json-schema-utils": _unpkg("@wix/wix-json-schema-utils", "dist/wix-json-schema-utils"), 560 wixUiRating: _unpkg("@wix/wix-ui-santa", "dist/statics/Rating.bundle.min"), 561 wixUiSlider: _unpkg("@wix/wix-ui-santa", "dist/statics/Slider.bundle.min"), 562 wixUiTags: _unpkg("@wix/wix-ui-santa", "dist/statics/Tags.bundle.min"), 563 wixUiCompsToPackages: _unpkg("@wix/wix-ui-santa", "dist/statics/compsToPackages.bundle.min"), 564 wixUiSsrViewerCompsService: node("@wix/wix-ui-santa", "dist/src/components-service/viewer-ssr"), 565 "wix-ui-santa": isExperimentOpen(experiment, wixUiSantaStaticOverrideExp) ? scriptLocation(serviceTopology, "wix-ui-santa") : _unpkg("@wix/wix-ui-santa", "dist/statics"), 566 "stylable-panel": _unpkg("@wixc3/stylable-panel", "dist/stylable-panel"), 567 "stylable-panel-drivers": _unpkg("@wixc3/stylable-panel-drivers", "dist/stylable-panel-drivers"), 568 "stylable-santa-flatten": _unpkg("@wix/stylable-santa-flatten", "dist/main"), 569 "wix-base-ui": _unpkg("@wix/wix-base-ui", "dist/base-ui"), 570 "io-client": _unpkg("socket.io-client", "dist/socket.io"), 571 "@wix/wix-code-backend-testkit": _unpkg("@wix/wix-code-backend-testkit", "dist/bundle"), 572 // ------------- TESTING ------------------------------------------------------------------- 573 fake: "js/plugins/fake/src/main/fake", 574 definition: "js/plugins/definition/src/main/definition", 575 ReactProxy: _unpkg("@wix/santa-external-modules", "react-proxy/ReactProxy"), 576 Squire: _unpkg("@wix/santa-external-modules", "squire/Squire"), 577 jasmine: _unpkg("@wix/santa-external-modules", "jasmine/2.1.3/jasmine"), 578 "jasmine-html": _unpkg("@wix/santa-external-modules", "jasmine/2.1.3/jasmine-html"), 579 "jasmine-boot": _unpkg("@wix/santa-external-modules", "jasmine/2.1.3/jasmine-boot"), 580 // ------------- DEVELOPMENT --------------------------------------------------------------- 581 io: "https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.0/socket.io.min", 582 patcher: node("@wix/santa-utils", "common/hot/patcher"), 583 hot: node("@wix/santa-utils", "common/hot/listener"), 584 "@wix/dm-ajv": `https://static.parastorage.com/services/dm-ajv/${versions2["dm-ajv"]}/browser/index` 585 }; 586 if (platformSdkRoot) { 587 paths.platformAPI = { 588 min: joinURL(platformSdkRoot, "lib", "platform-api.min"), 589 source: joinURL(platformSdkRoot, "lib", "platform-api") 590 }; 591 paths.platformEvents = { 592 min: joinURL(platformSdkRoot, "lib", "platformEvents.min"), 593 source: joinURL(platformSdkRoot, "lib", "platformEvents") 594 }; 595 } 596 const wixCodePlatformBaseUrl = scriptLocation(serviceTopology, "wix-code-platform"); 597 if (wixCodePlatformBaseUrl) { 598 const getPathToWixCodePlatformFile = (filename) => local ? node("@wix/wix-code-platform", `dist/${filename}
598`) : joinURL(wixCodePlatformBaseUrl, filename); 599 paths["elementory-browser-support"] = getPathToWixCodePlatformFile("elementory-browser-support.min"); 600 paths["wix-data-schemas-creator"] = { 601 min: getPathToWixCodePlatformFile("wix-data-schemas-creator.min"), 602 source: getPathToWixCodePlatformFile("wix-data-schemas-creator") 603 }; 604 } 605 return { 606 //By default load any module IDs from js/lib 607 baseUrl: "/", 608 //except, if the module ID starts with "app", 609 //load it from the js/app directory. paths 610 //config is relative to the baseUrl, and 611 //never includes a ".js" extension since 612 //the paths config could be for a directory. 613 paths, 614 bundles: { 615 vendor: ["prop-types", "create-react-class", "mobx"] 616 }, 617 map: { 618 "*": { 619 imageClientLib: "image-client-api", 620 "react-dom": "reactDOM", 621 coreUtilsLib: "santa-core-utils", 622 "@wix/santa-core-utils": "santa-core-utils", 623 "@wix/js-platform-apps-configuration/build/platform-apps-editor": "js-platform-apps-configuration-editor", 624 "@wix/platform-editor-sdk/lib/platformEvents.min": "platformEvents", 625 "@wix/platform-editor-sdk/lib/platform-api.min": "platformAPI", 626 "@wix/santa-components": "santa-components" 627 } 628 }, 629 shim: { 630 color: { exports: "Color" }, 631 "jasmine-html": { 632 deps: ["jasmine"] 633 }, 634 "jasmine-boot": { 635 deps: ["jasmine", "jasmine-html"] 636 }, 637 SoundManager: { exports: "soundManager" }, 638 ReactProxy: { 639 deps: ["react"], 640 exports: "ReactProxy" 641 }, 642 xss: { exports: "filterXSS" } 643 }, 644 waitSeconds: 0 645 }; 646 } 647 648
648// src/main-r/PackagesUtil.ts 649 init_process(); 650 651
651// src/main-r/reduceQueryToObject.ts 652 init_process(); 653 function reduceQueryToObject(str, separator = "&", equalizer = "=") { 654 return (str || "").replace(/^\?/, "").split(separator).reduce((o, pairString) => { 655 const pair = pairString.split(equalizer); 656 o[pair[0]] = pair[1]; 657 return o; 658 }, {}); 659 } 660 661
661// src/main-r/PackagesUtil.ts 662 var PackagesUtil = class { 663 constructor(packagesStructure, query, bundles = []) { 664 this.packagesStructure = packagesStructure; 665 this.query = query; 666 this.bundles = bundles; 667 } 668 /** 669 * changes the config to load packages correctly, accounting the query 670 */ 671 buildConfig(config2) { 672 const queryParamsObject = reduceQueryToObject(this.query.replace(/^\?/, "")); 673 let debug = (decodeURIComponent(queryParamsObject.debug) || "").split(",").filter(Boolean); 674 if (debug.indexOf("all") !== -1) { 675 const debuggableExternals = Object.keys(config2.paths).filter((path) => config2.paths[path]?.source); 676 debug = this.packagesStructure.concat(debuggableExternals); 677 } 678 const isInDebug = (i) => debug.indexOf(i) !== -1; 679 Object.keys(config2.paths).filter((k) => typeof config2.paths[k] === "object" && !Array.isArray(config2.paths[k])).forEach((k) => { 680 config2.paths[k] = config2.paths[k][isInDebug(k) ? "source" : "min"]; 681 }); 682 config2.bundles = config2.bundles || {}; 683 this.packagesStructure.filter((p) => !isInDebug(p)).filter((p) => this.bundles.indexOf(p) === -1).forEach((pkg) => { 684 config2.bundles[pkg] = pkg; 685 config2.paths[pkg] = `dist/packages-bin/${pkg}/${pkg}.min`; 686 }); 687 if (this.bundles && this.bundles.length > 0) { 688 const bundleName = "first-load"; 689 config2.bundles[bundleName] = this.bundles; 690 config2.paths[bundleName] = `dist/packages-bin/${bundleName}/${bundleName}.min`; 691 } 692 config2.packages = config2.packages || []; 693 const projectPackages = this.packagesStructure.filter(isInDebug).map((name) => ({ 694 name, 695 location: `packages/${name}/src/main`, 696 main: name 697 })); 698 config2.packages = config2.packages.concat(projectPackages); 699 return config2; 700 } 701 }; 702 703
703// ../santa-ds-libs/src/santa/index.ts 704 init_process(); 705 706
706// ../santa-ds-libs/src/santa/options.json 707 var options_default = { 708 versions: { 709 "@sentry/browser": "4.6.6", 710 "@wix/bi-logger-sanitizer": "1.1.3", 711 "@wix/fedops-logger": "3.0.125", 712 "@wix/fed-sec-utils": "1.0.492", 713 "@wix/js-platform-apps-configuration": "1.0.526", 714 "@wix/platform-editor-sdk": "^1.3978.0", 715 "@wix/promote-analytics-adapter": "1.0.484", 716 "@wix/santa-animations": "1.496.0", 717 "@wix/santa-browser-detection": "1.448.0", 718 "@wix/santa-bundle": "1.1062.0", 719 "@wix/santa-components": "1.1984.0", 720 "@wix/santa-core-utils": "1.2722.0", 721 "@wix/santa-ds-libs": "^1.0.0", 722 "@wix/santa-data-fixer": "1.1640.0", 723 "@wix/santa-external-modules": "1.644.0", 724 "@wix/santa-galleries": "1.1191.0", 725 "@wix/santa-host-platform-services": "1.737.0", 726 "@wix/santa-image-utils": "1.969.0", 727 "@wix/santa-main-r": "1.1643.0", 728 "@wix/santa-mobile-core": "1.1270.0", 729 "@wix/santa-multilingual": "1.1157.0", 730 "@wix/santa-platform-utils": "1.1429.0", 731 "@wix/santa-shared-schemas": "1.594.0", 732 "@wix/santa-site-auth-module": "1.0.16", 733 "@wix/santa-skin-utils": "1.1686.0", 734 "@wix/stylable-santa-flatten": "3.0.56", 735 "@wix/viewer-platform-worker": "1.0.3667", 736 "@wix/wix-base-ui": "2.778.0", 737 "@wix/wix-code-backend-testkit": "1.17.0", 738 "@wix/wix-code-platform": "1.1097.69", 739 "@wix/wix-dom-sanitizer": "1.786.0", 740 "@wix/wix-fullstory-loader": "1.404.0", 741 "@wix/wix-json-schema-utils": "1.429.0", 742 "@wix/wix-ui-santa": "2.0.358", 743 "@wixc3/stylable-panel-drivers": "2.3.2", 744 "ag-grid": "6.4.2", 745 atob: "2.1.2", 746 "blueimp-md5": "2.18.0", 747 color: "0.11.4", 748 "create-react-class": "15.7.0", 749 "data-capsule": "1.0.83", 750 "date-fns": "1.30.1", 751 gsap: "2.1.3", 752 hammerjs: "2.0.8", 753 "hls.js": "0.8.9", 754 "image-client-api": "1.4060.0", 755 immutable: "3.8.2", 756 jsdom: "9.12.0", 757 lodash: "4.17.21", 758 mobx: "3.3.3", 759 "mobx-react": "4.2.2", 760 mousetrap: "1.6.5", 761 "node-fetch": "2.6.1", 762 "pm-rpc": "3.2.7", 763 "prop-types": "15.7.2", 764 "raven-js": "3.27.2", 765 react: "16.14.0", 766 "react-dom": "16.14.0", 767 "react-dom-factories": "1.0.2", 768 seedrandom: "3.0.5", 769 "socket.io-client": "2.4.0", 770 soundmanager2: "2.97.20150601-a", 771 speakingurl: "7.0.0", 772 swfobject: "2.2.1", 773 wspy: "3.0.19", 774 xss: "0.2.18", 775 zepto: "1.2.0", 776 tweenmax: "1.19.0" 777 }, 778 bundles: [ 779 "displayer", 780 "backgroundCommon", 781 "site-widgets", 782 "formCommon", 783 "textCommon", 784 "socialCommon", 785 "thirdPartyAnalytics", 786 "galleriesCommon", 787 "buttonCommon", 788 "compDesignUtils", 789 "imageZoom", 790 "render", 791 "skinExports", 792 "compUtils", 793 "hostLibs", 794 "dataFixer" 795 ], 796 manifest: {} 797 }; 798 799
799// ../santa-ds-libs/src/santa/index.ts 800 var version2 = "1.13803.0"; 801 802
802// src/checkConfig.ts 803 init_process(); 804 function checkConfig(paths) { 805 const map = /* @__PURE__ */ new Map(); 806 for (const v of Object.values(paths)) { 807 map.set(v, (map.get(v) ?? 0) + 1); 808 } 809 const result = { ...paths }; 810 Object.entries(paths).forEach((v, k) => { 811 if (map.get(v) !== 1) { 812 delete result[k]; 813 } 814 }); 815 return result; 816 } 817 818
818// src/utils.ts 819 init_process(); 820 var loadScript = (src, name, async = false) => new Promise((resolve, reject) => { 821 const element = document.createElement("script"); 822 element.async = async; 823 element.src = src; 824 element.onload = () => resolve(); 825 element.onerror = reject; 826 document.head.appendChild(element); 827 }).catch((err) => { 828 throw new Error(`Failed to load script ${name}: ${err.message}`); 829 }); 830 831 // externals.mjs 832 init_process(); 833 var externals = { 834 react: "React", 835 "react-dom": "ReactDOM", 836 lodash: "_", 837 zepto: "zepto", 838 experiment: "experiment", 839 // The value doesn't matter in this case, we just need requirejs to treat experiment-amd as "already loaded", 840 // Otherwise, it will throw an error upon usage 841 "experiment-amd": "experimentAmd", 842 color: "color", 843 "@wix/santa-components": "santa-components", 844 "create-react-class": "create-react-class", 845 "prop-types": "prop-types", 846 "pm-rpc": "pmrpc", 847 xss: "xss", 848 SoundManager: "SoundManager", 849 "data-capsule": "data-capsule", 850 "@wix/santa-core-utils": "santa-core-utils", 851 immutable: "immutable", 852 "@wix/js-platform-apps-configuration/build/platform-apps-editor": "js-platform-apps-configuration-editor", 853 "@wix/platform-editor-sdk/lib/platformEvents.min": "platformEvents", 854 "@wix/platform-editor-sdk/lib/platform-api.min": "platformAPI", 855 "@wix/santa-browser-detection": null, 856 "@wix/santa-image-utils": null, 857 "@wix/wix-dom-sanitizer": null, 858 requirejs: null, 859 runExp: null, 860 "@wix/dm-ajv": "@wix/dm-ajv" 861 }; 862 function externalsForRjsMapping() { 863 const relevantEntries = Object.entries(externals).filter(([, v]) => !!v); 864 return Object.fromEntries(relevantEntries); 865 } 866 867
867// src/tb-main.ts 868 function genUnpkgUrl(packageName, version3, path) { 869 return `https://static.parastorage.com/unpkg/${packageName}@${version3}/${path}`; 870 } 871 var loadRequireJs = async () => { 872 if (!window.requirejs) { 873 await loadScript( 874 "https://static.parastorage.com/services/third-party/requirejs/2.1.15/require.min.js", 875 "requirejs" 876 ); 877 } 878 }; 879 var santaUnpkg = (p) => genUnpkgUrl("@wix/wix-santa", version2, p); 880 var fixSantaPaths = (paths, packages) => { 881 packages.forEach((p) => { 882 p.location = santaUnpkg(p.location); 883 }); 884 const fixedPaths = checkConfig(paths); 885 return fixedPaths; 886 }; 887 var defineExperimentInstance = () => { 888 const experiments = window.queryUtils.getParameterByName("experiments"); 889 experiments.split(",").forEach((name) => { 890 window.rendererModel.runningExperiments[name] = "new"; 891 }); 892 const experimentInst = import_experimentFactory.default.build(window); 893 window.define("experiment", () => experimentInst); 894 window.define("experiment-amd", () => experimentInst); 895 return experimentInst; 896 }; 897 var main = async () => { 898 await loadRequireJs(); 899 const queryUtils = getQueryUtils(window); 900 window.queryUtils = queryUtils; 901 const isDebug = !!queryUtils.getParameterByName("debug"); 902 const experimentInstance = defineExperimentInstance(); 903 const versions2 = { ...options_default.versions }; 904 const isBuilderCompModel = window.rendererModel?.siteMetaData?.builderComponentModel; 905 if (experimentInstance.isOpen("dm_react18") && isBuilderCompModel) { 906 versions2.react = "18.3.1"; 907 versions2["react-dom"] = "18.3.1"; 908 } 909 const rjsConfig = getRjsConfig(versions2, window.serviceTopology, false, {}); 910 rjsConfig.paths.mainScript = `${window.dmBase}/tb-main/dist/tb-main-internal${isDebug ? "" : ".min"}`; 911 const packagesUtil = new PackagesUtil([], window.location.search); 912 const { paths, packages, map, shim, bundles } = packagesUtil.buildConfig(rjsConfig); 913 const fixedPaths = fixSantaPaths(paths, packages); 914 map["*"]["pm-rpc"] = "pmrpc"; 915 window.requirejs.config({ 916 paths: fixedPaths, 917 packages, 918 map, 919 shim, 920 waitSeconds: 60, 921 bundles 922 }); 923 const externals2 = externalsForRjsMapping(); 924 const packageNames = Object.keys(externals2); 925 window.requirejs(packageNames, (...values) => { 926 for (let i = 0; i < packageNames.length; i++) { 927 const packageName = packageNames[i]; 928 const pkg = values[i]; 929 const alias = externals2[packageName]; 930 window[alias] = pkg; 931 } 932 window.requirejs(["mainScript"], () => { 933 }); 934 }); 935 }; 936 main(); 937})(); 938//# sourceMappingURL=tb-main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.