Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var getComponentsContext = require("../ComponentsContext")
.___getComponentsContext;
var componentsUtil = require("../util");
var componentLookup = componentsUtil.___componentLookup;
var registry = require("../registry");
var modernRenderer = require("../renderer");
var resolveComponentKey = modernRenderer.___resolveComponentKey;
var trackAsyncComponents = modernRenderer.___trackAsyncComponents;
var beginComponent = require("../beginComponent");
var endComponent = require("../endComponent");
var w10NOOP = require("warp10/constants").NOOP;
function createRendererFunc(templateRenderFunc, componentProps) {
var typeName = componentProps.___type;
//var assignedId = componentProps.id;
var isSplit = componentProps.___split === true;
return function renderer(input, out, assignedId, renderingLogic) {
trackAsyncComponents(out);
var widgetBody = input.renderBody;
var widgetState = input.widgetState;
var widgetConfig = input.widgetConfig;
var componentsContext = getComponentsContext(out);
var globalComponentsContext = componentsContext.___globalContext;
var w10NOOP = require("warp10/constants").NOOP;
var RENDER_BODY_TO_JSON = function() {
return w10NOOP;
};
var FLAG_WILL_RERENDER_IN_BROWSER = 1;
var IS_SERVER = typeof window === "undefined";
function doInclude(input, out, throwError) {
var target = input._target;
var arg = input._arg || input;
var renderBody = (target && target.renderBody) || target;
if (target) {
if (target.renderer) {
return target.renderer(arg, out), true;
} else if (target.render) {
"use strict";
var complain = "MARKO_DEBUG" && require("complain");
var removeDashes = require("../compiler/util/removeDashes");
var ComponentsContext = require("./components/ComponentsContext");
var getComponentsContext = ComponentsContext.___getComponentsContext;
var ComponentDef = require("./components/ComponentDef");
var w10NOOP = require("warp10/constants").NOOP;
var isArray = Array.isArray;
var RENDER_BODY_TO_JSON = function() {
return w10NOOP;
};
var FLAG_WILL_RERENDER_IN_BROWSER = 1;
var IS_SERVER = typeof window === "undefined";
function isFunction(arg) {
return typeof arg == "function";
}
function classList(arg, classNames) {
var len;
if (arg) {
if (typeof arg == "string") {