输出widget页面，注册相关JS代码。
495520
public function run()
    {

        $id = $this->hasModel() ? Html::getInputId($this->model, $this->attribute) : $this->id;

        $config = Json::encode($this->config);

        //ready部分代码，是为了缩略图管理。UEditor本身就很大，在后台直接加载大文件图片会很卡。
        $script = <<<UEDITOR
    var {$this->name} = UE.getEditor('{$id}',{$config});
    {$this->name}.ready(function(){
        this.addListener( "beforeInsertImage", function ( type, imgObjs ) {
            for(var i=0;i < imgObjs.length;i++){
                imgObjs[i].src = imgObjs[i].src.replace(".thumbnail","");
            }
        });
    });
UEDITOR;

        $this->getView()->registerJs($script);

        if ($this->hasModel()) {
            return Html::activeTextarea($this->model, $this->attribute);
        } else {
            return Html::textarea($this->name, $this->value, ['id' => $id]);
        }
    }
640518
function() {
		
		// Create the modules accordion DOM if not found
		if(!Dom.get('modulesAccordionView')) {
			Dom.get('left').appendChild( WireIt.cn('ul', {id: 'modulesAccordionView'}) );
			var li = WireIt.cn('li');
			li.appendChild(WireIt.cn('h2',null,null,"Main"));
			var d = WireIt.cn('div');
			d.appendChild( WireIt.cn('div', {id: "module-category-main"}) );
			li.appendChild(d);
			Dom.get('modulesAccordionView').appendChild(li);
		}
		
		this.modulesAccordionView = new YAHOO.widget.AccordionView('modulesAccordionView', this.options.modulesAccordionViewParams);
		
		// Open all panels
		for(var l = 1, n = this.modulesAccordionView.getPanels().length; l < n ; l++) {
			this.modulesAccordionView.openPanel(l);
		}
	}
1046296
function (e) {
    var posX = 0, posY = 0;
    e = e || window.event;
    if (typeof e.pageX !== "undefined") {
      posX = e.pageX;
      posY = e.pageY;
    } else if (typeof e.clientX !== "undefined") { // MSIE
      posX = e.clientX + scroll.x;
      posY = e.clientY + scroll.y;
    }
    return {
      left: posX,
      top: posY
    };
  }
271949
function(widget, options) {
      var manager = self.getWidgetManager(widget.type);
      if (!manager) {
        // Not configured in this project
        self.warnMissingWidgetType(widget.type);
        return '';
      }
      var partial;
      if (!manager.options.wrapperTemplate) {
        partial = _.partial(self.partial, 'widget');
      } else {
        partial = _.partial(manager.partial, manager.options.wrapperTemplate);
      }
      return partial({
        // The widget minus any properties that don't
        // absolutely need to be crammed into a JSON
        // attribute for the editor's benefit. Good filtering
        // here prevents megabytes of markup. -Tom and Sam
        dataFiltered: manager.filterForDataAttribute(widget),
        manager: manager,
        widget: widget,
        options: options,
        output: function() {
          return manager.output(widget, options);
        }
      });
    }
360929
@Override
    public Widget createWidget() {

        serverColumn = new FinderColumn<Server>(
                FinderColumn.FinderId.RUNTIME,
                "Server",
                new FinderColumn.Display<Server>() {

                    @Override
                    public boolean isFolder(Server data) {
                        return data.isStarted();
                    }

                    @Override
                    public SafeHtml render(String baseCss, Server server) {
                        String context = presenter.getFilter().equals(FilterType.HOST) ? server.getGroup() : server
                                .getHostName();
                        return SERVER_TEMPLATE.item(baseCss, "", server.getName(), context);
                    }

                    @Override
                    public String rowCss(Server server) {

                        String css = "";
                        // TODO: reload state
                        if (!server.isStarted()) {
                            css = "paused";
                        } else if (server.getServerState() == SrvState.RELOAD_REQUIRED) {
                            css = "warn";
                        } else if (server.getServerState() == SrvState.RESTART_REQUIRED) {
                            css = "warn";
                        } else if (server.getSuspendState() == SuspendState.SUSPENDED) {
                            css = "info";
                        } else if (server.isStarted()) {
                            css = "good";
                        }

                        return css;
                    }
                },
                new ProvidesKey<Server>() {
                    @Override
                    public Object getKey(Server item) {
                        return item.getName() + item.getHostName() + ":" + item.getServerState();
                    }
                }, presenter.getProxy().getNameToken());

        serverColumn.setShowSize(true);
        serverColumn.setFilter((item, token) -> {
            return item.getName().contains(token);
        });

        serverColumn.setValueProvider(new ValueProvider<Server>() {
            @Override
            public String get(Server item) {
                return item.getName();
            }
        });

        serverColumn.setTopMenuItems(
                new MenuDelegate<Server>(
                        Console.CONSTANTS.common_label_add(), new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {
                        presenter.launchNewConfigDialoge();
                    }
                }, MenuDelegate.Role.Operation),
                new MenuDelegate<Server>(
                        Console.CONSTANTS.common_label_refresh(), new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {
                        presenter.refreshServer();
                    }
                }, MenuDelegate.Role.Navigation)
        );

        serverColumn.setPreviewFactory(new PreviewFactory<Server>() {

            @Override
            public void createPreview(Server data, AsyncCallback<SafeHtml> callback) {
                SafeHtmlBuilder html = new SafeHtmlBuilder();
                html.appendHtmlConstant("<div class='preview-content'>");

                html.appendHtmlConstant("<h2>");
                html.appendEscaped("Server Configuration");
                html.appendHtmlConstant("</h2>");


                html.appendEscaped(Console.CONSTANTS.serverDescription());

                // TODO: reload state
                if (!data.isStarted()) {
                    PreviewState.paused(html, "Server is stopped");
                } else if (data.getServerState() == SrvState.RELOAD_REQUIRED) {
                    PreviewState.warn(html, Console.CONSTANTS.server_instance_reloadRequired());
                } else if (data.getServerState() == SrvState.RESTART_REQUIRED) {
                    PreviewState.warn(html, "Server needs to be restarted");
                } else if (data.getSuspendState() == SuspendState.SUSPENDED) {
                    PreviewState.info(html, "Server is suspended");
                } else if (data.getServerState() == SrvState.RUNNING) {
                    String id = "port-offset-" + data.getGroup() + "-" + data.getName();
                    html.appendHtmlConstant("<p>")
                            .appendEscaped("Port offset: ")
                            .appendHtmlConstant("<span id=\"" + id + "\">").appendHtmlConstant("</span>")
                            .appendHtmlConstant("</p>");
                    new ReadPortOffsetOp(dispatcher).execute(data, id);
                }

                html.appendHtmlConstant("</div>");
                callback.onSuccess(html.toSafeHtml());
            }

        });


        serverColumn.setMenuItems(
                new MenuDelegate<Server>(
                        "View", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(final Server server) {

                        placeManager.revealRelativePlace(
                                new PlaceRequest(NameTokens.ServerPresenter).with("action", "edit")
                        );

                    }
                }),
                new MenuDelegate<Server>(
                        "Remove", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(final Server server) {

                        Feedback.confirm(
                                "Remove server",
                                "Do you really want to remove server " + server.getName() + "?",
                                new Feedback.ConfirmationHandler() {

                                    @Override
                                    public void onConfirmation(boolean isConfirmed) {
                                        if (isConfirmed) { presenter.tryDelete(presenter.getSelectedServer()); } else {
                                            presenter.closeWindow();
                                        }
                                    }
                                });
                    }
                }, MenuDelegate.Role.Operation),
                new MenuDelegate<Server>(
                        "Copy", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {
                        presenter.onLaunchCopyWizard(server);
                    }
                }, MenuDelegate.Role.Operation),
                new MenuDelegate<Server>(
                        "Start/Stop", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {

                        LifecycleOperation op = (server.getRuntimeState() == RuntimeState.STOPPED
                            || server.getRuntimeState() == RuntimeState.DISABLED) ?
                                LifecycleOperation.START : LifecycleOperation.STOP;

                        if (LifecycleOperation.START == op) {
                            Feedback.confirm(
                                    "Server " + op.name(),
                                    "Do you really want to " + op.name() + " server " + server.getName() + "?",
                                    new Feedback.ConfirmationHandler() {

                                        @Override
                                        public void onConfirmation(boolean isConfirmed) {
                                            if (isConfirmed) {
                                                presenter.onServerInstanceLifecycle(server.getHostName(),
                                                        server.getName(), op);
                                            }
                                        }
                                    });


                        } else {
                            presenter.onLaunchStopDialogue(server);
                        }
                    }

                }, MenuDelegate.Role.Operation) {

                    @Override
                    public String render(Server server) {
                        return server.isStarted() ? "Stop" : "Start";
                    }
                }.setOperationAddress("/{implicit.host}/server-config=*", "start"),

                new MenuDelegate<Server>(
                        "Suspend or not", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {

                        LifecycleOperation op = server.getSuspendState() == SuspendState.SUSPENDED ?
                                LifecycleOperation.RESUME : LifecycleOperation.SUSPEND;

                        if (LifecycleOperation.RESUME == op) {
                            presenter.onServerInstanceLifecycle(server.getHostName(), server.getName(), op);
                        } else {
                            presenter.onLaunchSuspendDialogue(server);
                        }


                    }

                }, MenuDelegate.Role.Operation) {

                    @Override
                    public String render(Server server) {
                        return server.getSuspendState() == SuspendState.SUSPENDED ? "Resume" : "Suspend";
                    }
                }.setOperationAddress("/{implicit.host}/server-config=*", "resume"),

                new MenuDelegate<Server>(
                        "Reload", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {

                        Feedback.confirm(
                                "Reload Server",
                                "Do you really want to reload server " + server.getName() + "?",
                                new Feedback.ConfirmationHandler() {

                                    @Override
                                    public void onConfirmation(boolean isConfirmed) {
                                        if (isConfirmed) {
                                            presenter.onServerInstanceLifecycle(server.getHostName(), server.getName(),
                                                    LifecycleOperation.RELOAD);
                                        }
                                    }
                                });

                    }
                }, MenuDelegate.Role.Operation)
                        .setOperationAddress("/{implicit.host}/server-config=*", "reload"),

                new MenuDelegate<Server>(
                        "Restart", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {
                        Feedback.confirm(
                                "Restart Server",
                                "Do you really want to restart server " + server.getName() + "?",
                                new Feedback.ConfirmationHandler() {

                                    @Override
                                    public void onConfirmation(boolean isConfirmed) {
                                        if (isConfirmed) {
                                            presenter.onServerInstanceLifecycle(server.getHostName(), server.getName(),
                                                    LifecycleOperation.RESTART);
                                        }
                                    }
                                });


                    }
                }, MenuDelegate.Role.Operation)
                        .setOperationAddress("/{implicit.host}/server-config=*", "restart"),

                new MenuDelegate<Server>(
                        "Force Shutdown", new ContextualCommand<Server>() {
                    @Override
                    public void executeOn(Server server) {
                        Feedback.confirm(
                                "Shutdown Server",
                                "Do you really want to shutdown server " + server.getName() + "?",
                                new Feedback.ConfirmationHandler() {

                                    @Override
                                    public void onConfirmation(boolean isConfirmed) {
                                        if (isConfirmed) {
                                            presenter.onServerInstanceLifecycle(server.getHostName(), server.getName(),
                                                    LifecycleOperation.KILL);
                                        }
                                    }
                                });


                    }
                }, MenuDelegate.Role.Operation)
                        .setOperationAddress("/{implicit.host}/server-config=*", "kill")
        );

        serverColumn.setTooltipDisplay(new FinderColumn.TooltipDisplay<Server>() {
            @Override
            public SafeHtml render(Server server) {
                String message = server.isStarted() ? "running" : "not running";
                SafeHtmlBuilder sb = new SafeHtmlBuilder();
                /*if(data.isStarted())
                    sb.appendHtmlConstant("<i class=\"icon-ok\" style='color:#3F9C35'></i>&nbsp;");
                else
                    sb.appendHtmlConstant("<i class=\"icon-ban-circle\" style='color:#CC0000'></i>&nbsp;");*/
                sb.appendEscaped("Server is ").appendEscaped(message);

                if (server.getServerState() == SrvState.RELOAD_REQUIRED) {
                    sb.appendEscaped(". " + Console.CONSTANTS.server_instance_reloadRequired());
                } else if (server.getServerState() == SrvState.RESTART_REQUIRED) {
                    sb.appendEscaped(". " + Console.CONSTANTS.server_instance_servers_needRestart());
                } else if (server.getSuspendState() == SuspendState.SUSPENDED) { sb.appendEscaped(", but suspended"); }

                return sb.toSafeHtml();
            }
        });

        serverColWidget = serverColumn.asWidget();

        statusColumn = new FinderColumn<FinderItem>(
                FinderColumn.FinderId.RUNTIME,
                "Monitor",
                new FinderColumn.Display<FinderItem>() {

                    @Override
                    public boolean isFolder(FinderItem data) {
                        return data.isFolder();
                    }

                    @Override
                    public SafeHtml render(String baseCss, FinderItem data) {
                        String icon = data.isFolder() ? "icon-folder-close-alt" : "icon-file-alt";
                        return STATUS_TEMPLATE.item(baseCss, icon, data.getTitle());
                    }

                    @Override
                    public String rowCss(FinderItem data) {
                        return data.getTitle().equals("Subsystems") ? "no-menu" : "";
                    }
                },
                new ProvidesKey<FinderItem>() {
                    @Override
                    public Object getKey(FinderItem item) {
                        return item.getTitle();
                    }
                }, presenter.getProxy().getNameToken());

        statusColumn.setMenuItems(
                new MenuDelegate<FinderItem>("View", new ContextualCommand<FinderItem>() {
                    @Override
                    public void executeOn(FinderItem link) {
                        link.getCmd().execute();
                    }
                })
        );

        statusColWidget = statusColumn.asWidget();

        subsystemColumn = new FinderColumn<PlaceLink>(
                FinderColumn.FinderId.RUNTIME,
                "Subsystem",
                new FinderColumn.Display<PlaceLink>() {

                    @Override
                    public boolean isFolder(PlaceLink data) {
                        return false;
                    }

                    @Override
                    public SafeHtml render(String baseCss, PlaceLink data) {
                        return SUBSYSTEM_TEMPLATE.item(baseCss, "icon-file-alt", data.getTitle());
                    }

                    @Override
                    public String rowCss(PlaceLink data) {

                        return "";
                    }
                },
                new ProvidesKey<PlaceLink>() {
                    @Override
                    public Object getKey(PlaceLink item) {
                        return item.getTitle();
                    }
                }, presenter.getProxy().getNameToken());

        subsystemColumn.setPreviewFactory(new PreviewFactory<PlaceLink>() {
            @Override
            public void createPreview(PlaceLink data, AsyncCallback<SafeHtml> callback) {
                PreviewContent content = PreviewContent.INSTANCE;
                ExternalTextResource resource = (ExternalTextResource) content
                        .getResource("runtime_" + data.getToken().replace("-", "_"));
                if (resource != null) {
                    contentFactory.createContent(resource, callback);
                } else {
                    SafeHtmlBuilder builder = new SafeHtmlBuilder();
                    builder.appendHtmlConstant(
                            "<div class='preview-content'><span style='font-size:24px;'><i class='icon-bar-chart' style='font-size:48px;vertical-align:middle'></i>&nbsp;" + data
                                    .getTitle() + "</span></center>");
                    builder.appendHtmlConstant("</div>");
                    callback.onSuccess(builder.toSafeHtml());
                }
            }
        });

        subsystemColumn.setMenuItems(
                new MenuDelegate<PlaceLink>("View", new ContextualCommand<PlaceLink>() {
                    @Override
                    public void executeOn(PlaceLink link) {
                        link.getCmd().execute();
                    }
                })
        );


        subsysColWidget = subsystemColumn.asWidget();

        // server column is always present
        columnManager.addWest(serverColWidget);
        columnManager.addWest(statusColWidget);
        columnManager.addWest(subsysColWidget);
        columnManager.add(contentCanvas);

        columnManager.setInitialVisible(1);

        // selection handling

        serverColumn.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(SelectionChangeEvent event) {

                // column handling
                columnManager.reduceColumnsTo(1);

                if (serverColumn.hasSelectedItem()) {

                    // selection
                    columnManager.updateActiveSelection(serverColWidget);
                    final Server selectedServer = serverColumn.getSelectedItem();

                    // action
                    if (selectedServer.isStarted()) {
                        columnManager.appendColumn(statusColWidget);
                    }

                    Console.getCircuit().dispatch(
                            new SelectServer(selectedServer.getHostName(), selectedServer.getName())
                    );
                }
            }
        });

        statusColumn.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(SelectionChangeEvent event) {

                if (statusColumn.hasSelectedItem()) {

                    columnManager.updateActiveSelection(statusColWidget);

                    Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                        @Override
                        public void execute() {

                            if (statusColumn.getSelectedItem().getTitle().equals("Subsystems")) {
                                columnManager.appendColumn(subsysColWidget);
                                updateSubsystemColumn(subsystems);
                            } else {
                                columnManager.reduceColumnsTo(2);
                            }
                        }
                    });

                } else {
                    columnManager.reduceColumnsTo(2);
                }
            }
        });


        subsystemColumn.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(SelectionChangeEvent event) {

                if (subsystemColumn.hasSelectedItem()) {

                    columnManager.updateActiveSelection(subsysColWidget);
                }
            }
        });


        return splitlayout.asWidget();
    }
570385
function render() {
  var content = $($.parseHTML(template));
  var compiler = Handlebars.compile(content.filter("#layout").html());

  Handlebars.registerPartial({
    leftPanel: content.filter("#left-panel").html(),
    rightPanel: content.filter("#right-panel").html(),
    transactionList: content.filter("#transaction-list").html(),
    transactionDetails: content.filter("#transaction-details").html(),
    transactionOther: content.filter("#transaction-other").html(),
  });

  // Adds selected class to selected transaction item.
  Handlebars.registerHelper('isSelected', function(options) {
    var resp =
      (this.business === dataView.selectedTransaction.business) ?
      "selected" : "";
    return options.fn(resp);
  });

  // Returns fake detail monthly total.
  Handlebars.registerHelper('monthlyTotal', function(options) {
    var total = toCurrency(parseFloat(this.selectedTransaction.amount) * 12);
    return options.fn(total);
  });

  // Returns fake detail yearly total.
  Handlebars.registerHelper('yearlyTotal', function(options) {
    var total = toCurrency(parseFloat(this.selectedTransaction.amount) * 40);
    return options.fn(total);
  });

  var html = compiler(dataView);
  $("#demo-app").html(html);

  addClickHandler();
}
942283
def render_widget(self, request, widget_id):
        ''''''

        widget = get_widget_from_id(widget_id)

        response = widget.render(**{'request': request})

        return JsonResponse({'result': response, 'id': widget_id})
1154886
function (widgetId, lang) {
                    var instance = instances[widgetId];

                    if (instance) {
                        var iframe = instance.querySelector('iframe');
                        if (lang) {
                            // Setter
                            if (iframe && iframe.src) {
                                var s = iframe.src;
                                if (/[?&]hl=/.test(s)) {
                                    s = s.replace(/([?&]hl=)\w+/, '$1' + lang);
                                } else {
                                    s += ((s.indexOf('?') === -1) ? '?' : '&') + 'hl=' + lang;
                                }

                                iframe.src = s;
                            }
                        } else {
                            // Getter
                            if (iframe && iframe.src && /[?&]hl=\w+/.test(iframe.src)) {
                                return iframe.src.replace(/.+[?&]hl=(\w+)([^\w].+)?/, '$1');
                            } else {
                                return null;
                            }
                        }
                    } else {
                        throw new Error('reCaptcha Widget ID not exists', widgetId);
                    }
                }
210448
function (res, args) {
            var tplcfg = this._tplcfg;
            if (!tplcfg) {
                // the template may be ready after the widget has been disposed
                // do nothing in this case
                // except disposing the module which has just been created
                if (args.autoDispose) {
                    res.moduleCtrlPrivate.$dispose();
                }
                return;
            }

            var tplDiv = this._subTplDiv; // may be null at this time

            tplcfg.tplDiv = tplDiv;

            tplcfg.data = this._cfg.data;

            // if a module controller was created, inject it in template initialization
            if (res.moduleCtrl) {
                tplcfg.moduleCtrl = res.moduleCtrl;
            } else {
                tplcfg.context = this._context;
            }
            if (args.autoDispose) {
                if (tplcfg.toDispose == null) {
                    tplcfg.toDispose = [res.moduleCtrlPrivate];
                } else {
                    tplcfg.toDispose.push(res.moduleCtrlPrivate);
                }
            }
            /*
             * var tplCtxt = new aria.templates.TemplateCtxt(); this.subTplCtxt = tplCtxt;
             */
            var tplCtxt = this.subTplCtxt;
            tplCtxt.parent = this._context;

            res = tplCtxt.initTemplate(tplcfg);
            this._initCtxDone = true;

            if (res) {
                tplCtxt.dataReady(); // data successfully loaded: signal to template through TemplateContext
                // check that tplCtxt was not disposed
                if (tplDiv && tplCtxt._cfg) {
                    // Load the CSS dependencies, the style should be added before the html
                    tplDiv.className = tplDiv.className + " " + tplCtxt.getCSSClassNames(true);
                    tplCtxt.$onOnce({
                        "Ready" : this.__innerTplReadyCb,
                        scope : this
                    });
                    tplCtxt.$refresh();
                }
                // don't clean this object, as the template context will do it. Just break reference
                this.tplcfg = null;

            } else {
                tplCtxt.$dispose();
                this.subTplCtxt = null;
            }

            tplDiv = null;
        }
322612
function() {
		/**
	     * @property helpPanel
	     * @type {YAHOO.widget.Panel}
	     */
	    this.helpPanel = new widget.Panel('helpPanel', {
	        fixedcenter: true,
	        draggable: true,
	        visible: false,
	        modal: true
	     });
	     this.helpPanel.render();
	}
295675
function(widget, target_name, view, template_arguments, callback_arguments) {

		return widget.handleEvent(
			callback_arguments.event_name,
			callback_arguments.event_object,
			target_name,
			view,
			template_arguments
		);

	}
951199
function () {


/*Line 40 - 'AtomWizard.js' */                var vs = this._viewPresenter;

/*Line 42 - 'AtomWizard.js' */                this.disposeChildren(vs);

/*Line 44 - 'AtomWizard.js' */                var vt = this._viewTemplate;

/*Line 46 - 'AtomWizard.js' */                var i = 0;

/*Line 48 - 'AtomWizard.js' */                var ae = new ChildEnumerator(vt);
/*Line 49 - 'AtomWizard.js' */                while (ae.next()) {
/*Line 50 - 'AtomWizard.js' */                    i++;
/*Line 51 - 'AtomWizard.js' */                    var item = AtomUI.cloneNode(ae.current());
/*Line 52 - 'AtomWizard.js' */                    //$(vs).append(item);
/*Line 53 - 'AtomWizard.js' */                    vs.appendChild(item);
/*Line 54 - 'AtomWizard.js' */                    var type = AtomUI.getAtomType(item);
/*Line 55 - 'AtomWizard.js' */                    if (!type) {
/*Line 56 - 'AtomWizard.js' */                        type = "AtomViewBox";
/*Line 57 - 'AtomWizard.js' */                        AtomUI.attr(item, "data-atom-type", type);
/*Line 58 - 'AtomWizard.js' */                    }

/*Line 60 - 'AtomWizard.js' */                    //var s = new AtomScope(this, this.get_scope(), atomApplication);

/*Line 62 - 'AtomWizard.js' */                    var ct = AtomUI.getAtomType(item) || WebAtoms.AtomControl;
/*Line 63 - 'AtomWizard.js' */                    var cc = AtomUI.createControl(item, ct);
/*Line 64 - 'AtomWizard.js' */                    cc.init();
/*Line 65 - 'AtomWizard.js' */                }
/*Line 66 - 'AtomWizard.js' */                AtomBinder.setValue(this, "steps", i);

/*Line 68 - 'AtomWizard.js' */                if (i) {
/*Line 69 - 'AtomWizard.js' */                    AtomBinder.setValue(this, "currentStep", 0);
/*Line 70 - 'AtomWizard.js' */                }
/*Line 71 - 'AtomWizard.js' */            }
623739
function WidgetSliderGUI() {
        this.addOutput("", "number");
        this.properties = {
            value: 0.5,
            min: 0,
            max: 1,
            text: "V"
        };
        var that = this;
        this.size = [140, 40];
        this.slider = this.addWidget(
            "slider",
            "V",
            this.properties.value,
            function(v) {
                that.properties.value = v;
            },
            this.properties
        );
        this.widgets_up = true;
    }
1033972
function widgetCell({
  col,
  row,
  width,
  height,
}) {
  return css({
    gridColumnStart: col + 1,
    gridColumnEnd: col + width + 1,
    gridRowStart: row + 1,
    gridRowEnd: row + height + 1,
  }).toString();
}
1286877
function (element) {
/*Line 271 - 'AtomUI.js' */        while (element.hasChildNodes()) {
/*Line 272 - 'AtomUI.js' */            var lc = element.lastChild;
/*Line 273 - 'AtomUI.js' */            if (!lc)
/*Line 274 - 'AtomUI.js' */                break;
/*Line 275 - 'AtomUI.js' */            //element.removeChild(lc);
/*Line 276 - 'AtomUI.js' */            if (lc.atomControl) {
/*Line 277 - 'AtomUI.js' */                lc.atomControl.dispose();
/*Line 278 - 'AtomUI.js' */                delete lc.atomControl;
/*Line 279 - 'AtomUI.js' */            }
/*Line 280 - 'AtomUI.js' */            $(lc).remove();
/*Line 281 - 'AtomUI.js' */            //delete lc;
/*Line 282 - 'AtomUI.js' */        }
/*Line 283 - 'AtomUI.js' */    }
880880
public static function end(){
		$script = ob_get_clean();
		$widget = parent::end();
		
		if(preg_match("/^\\s*\\<script\\>(.*)\\<\\/script\\>\\s*$/s", $script, $matches)){
			$script = $matches[1];
		}
		
		$widget->view->registerJs($script, $widget->position, $widget->key);
		
	}
461922
function (widget, msgArgs) {
        if (widget._context) {
            if (!msgArgs) {
                msgArgs = [];
            }
            msgArgs.unshift("Template: " + widget._context.tplClasspath + ", Line: " + widget._lineNumber + "\n");
        }
        return msgArgs;
    }