1var EditingModeController; 2(function(a){a.isPreviewMode=function(){return a.isPublishedMode()?!1:"Preview"==parent.window.Granite.author.layerManager.getCurrentLayer()};a.isEditMode=function(){return a.isPublishedMode()?!1:"Edit"==parent.window.Granite.author.layerManager.getCurrentLayer()};a.isPublishedMode=function(){try{return"undefined"==typeof parent.window.Granite.author.layerManager}catch(b){return!0}};a.attachFunctionOnPreviewButtonClick=function(b){var c=$(window.parent.document).find(".js-editor-GlobalBar-previewTrigger");a.attachFunctionToElementOnClick(c, 3b)};a.attachFunctionOnEditButtonClick=function(b){var c=$(window.parent.document).find(".editor-GlobalBar-layerCurrent");a.attachFunctionToElementOnClick(c,b)};a.attachFunctionOnLayerSwitcherClick=function(b){var c=$(window.parent.document).find(".editor-GlobalBar-layerSwitcher");a.attachFunctionToElementOnClick(c,b)};a.attachToEveryElementInDropdown=function(b){$(window.parent.document).find(".coral3-BasicList-item.coral3-ButtonList-item.js-editor-LayerSwitcherTrigger").each(function(){a.attachFunctionToElementOnClick($(this), 4b)})};a.attachFunctionToElementOnClick=function(a,c){if(!EventController.isEventBoundToElement(a,"click",c,!1))a.on("click",c)};a.refreshOnModeChange=function(){a.attachFunctionOnEditButtonClick(function(){return window.location.reload()});a.attachFunctionOnPreviewButtonClick(function(){return window.location.reload()})}})(EditingModeController||(EditingModeController={}));(function(){EditingModeController.refreshOnModeChange()})();
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.