#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Disco.Web.Areas.Config.Views.JobPreferences.Parts
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Text;
    using System.Web;
    using System.Web.Helpers;
    using System.Web.Mvc;
    using System.Web.Mvc.Ajax;
    using System.Web.Mvc.Html;
    using System.Web.Routing;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.WebPages;
    using Disco;
    using Disco.Models.Repository;
    using Disco.Services;
    using Disco.Services.Authorization;
    using Disco.Services.Web;
    using Disco.Web;
    using Disco.Web.Extensions;
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/JobPreferences/Parts/Reports.cshtml")]
    public partial class Reports : Disco.Services.Web.WebViewPage<Disco.Web.Areas.Config.Models.JobPreferences.IndexModel>
    {
        public Reports()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
  
    Authorization.Require(Claims.Config.JobPreferences.Show);

    var canConfig = Authorization.Has(Claims.Config.JobPreferences.Configure);

            
            #line default
            #line hidden
WriteLiteral("\r\n<div");

WriteLiteral(" id=\"Config_ReportPrefs\"");

WriteLiteral(" class=\"form\"");

WriteLiteral(" style=\"width: 530px;\"");

WriteLiteral(">\r\n    <h2>Report Preferences</h2>\r\n    <table>\r\n        <tr>\r\n            <th");

WriteLiteral(" style=\"width: 140px\"");

WriteLiteral(">\r\n                Noticeboard<br />\r\n                Default Theme:\r\n           " +
" </th>\r\n            <td>\r\n");

            
            #line 16 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                
            
            #line default
            #line hidden
            
            #line 16 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                 if (canConfig)
                {
                    
            
            #line default
            #line hidden
            
            #line 18 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
               Write(Html.DropDownListFor(model => model.DefaultNoticeboardTheme, Model.DefaultNoticeboardThemeOptions().Select(o => new SelectListItem() { Value = o.Key, Text = o.Value })));

            
            #line default
            #line hidden
            
            #line 18 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                                                                                             
                    
            
            #line default
            #line hidden
            
            #line 19 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
               Write(AjaxHelpers.AjaxSave());

            
            #line default
            #line hidden
            
            #line 19 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                           
                    
            
            #line default
            #line hidden
            
            #line 20 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
               Write(AjaxHelpers.AjaxLoader());

            
            #line default
            #line hidden
            
            #line 20 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                             

            
            #line default
            #line hidden
WriteLiteral("                    <script");

WriteLiteral(" type=\"text/javascript\"");

WriteLiteral(@">
                    $(function () {
                        $element = $('#DefaultNoticeboardTheme');

                        document.DiscoFunctions.PropertyChangeHelper(
                            $element,
                            null,
                            '");

            
            #line 28 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                         Write(Url.Action(MVC.API.JobPreferences.UpdateDefaultNoticeboardTheme()));

            
            #line default
            #line hidden
WriteLiteral(@"',
                            'DefaultNoticeboardTheme');

                        $element.change(function () {
                            $('#Config_ReportPrefs_Preview').attr('class', 'theme-' + $(this).val());
                        });
                    });
                    </script>
");

            
            #line 36 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                }
                else
                {
                    
            
            #line default
            #line hidden
            
            #line 39 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
               Write(Model.DefaultNoticeboardThemeOptions().First(o => o.Key == Model.DefaultNoticeboardTheme).Value);

            
            #line default
            #line hidden
            
            #line 39 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                    
                }

            
            #line default
            #line hidden
WriteLiteral("                <div");

WriteLiteral(" id=\"Config_ReportPrefs_Preview\"");

WriteAttribute("class", Tuple.Create(" class=\"", 1777), Tuple.Create("\"", 1823)
, Tuple.Create(Tuple.Create("", 1785), Tuple.Create("theme-", 1785), true)
            
            #line 41 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
, Tuple.Create(Tuple.Create("", 1791), Tuple.Create<System.Object, System.Int32>(Model.DefaultNoticeboardTheme
            
            #line default
            #line hidden
, 1791), false)
);

WriteLiteral(">\r\n                    <div");

WriteLiteral(" class=\"heading\"");

WriteLiteral(">Noticeboard Heading</div>\r\n                    <div");

WriteLiteral(" class=\"column-heading\"");

WriteLiteral(">Column One</div>\r\n                    <div");

WriteLiteral(" class=\"column-heading\"");

WriteLiteral(">Column Two</div>\r\n                    <div");

WriteLiteral(" class=\"column-heading\"");

WriteLiteral(">Column Three</div>\r\n                    <div");

WriteLiteral(" class=\"column\"");

WriteLiteral("><span></span><span></span><span></span><span></span><span></span><span></span><s" +
"pan></span><span></span></div>\r\n                    <div");

WriteLiteral(" class=\"column\"");

WriteLiteral("><span></span><span");

WriteLiteral(" class=\"alert\"");

WriteLiteral("></span><span></span><span></span></div>\r\n                    <div");

WriteLiteral(" class=\"column\"");

WriteLiteral("><span></span><span></span><span");

WriteLiteral(" class=\"alert\"");

WriteLiteral("></span><span></span><span");

WriteLiteral(" class=\"alert\"");

WriteLiteral("></span><span></span><span></span><span></span><span></span><span></span></div>\r\n" +
"                </div>\r\n            </td>\r\n        </tr>\r\n        <tr>\r\n        " +
"    <th>&nbsp;</th>\r\n            <td>\r\n                <button");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_Button\"");

WriteLiteral(" class=\"button small\"");

WriteLiteral(">Link Builder</button>\r\n                <div");

WriteLiteral(" class=\"info-box\"");

WriteLiteral(">\r\n                    <p");

WriteLiteral(" class=\"fa-p\"");

WriteLiteral(">\r\n                        <i");

WriteLiteral(" class=\"fa fa-info-circle\"");

WriteLiteral("></i>Report Links can be created which override the default theme and filter the " +
"data shown.\r\n                    </p>\r\n                </div>\r\n                <" +
"div");

WriteLiteral(" id=\"Config_ReportPrefs_Builder\"");

WriteLiteral(" title=\"Report Link Builder\"");

WriteLiteral(" class=\"dialog\"");

WriteLiteral(">\r\n                    <form>\r\n                        <div");

WriteLiteral(" class=\"report\"");

WriteLiteral(">\r\n                            <h3>Report</h3>\r\n                            <ul");

WriteLiteral(" class=\"none\"");

WriteLiteral(">\r\n                                <li>\r\n                                    <inp" +
"ut");

WriteLiteral(" type=\"radio\"");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_NTHDU\"");

WriteLiteral(" name=\"Report\"");

WriteLiteral(" class=\"themeable componentable\"");

WriteLiteral(" data-url=\"");

            
            #line 67 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                                                  Write(Url.ActionAbsolute(MVC.Public.UserHeldDevices.Noticeboard()));

            
            #line default
            #line hidden
WriteLiteral("\"");

WriteLiteral(" checked=\"checked\"");

WriteLiteral(" /><label");

WriteLiteral(" for=\"Config_ReportPrefs_Builder_NTHDU\"");

WriteLiteral(">Technician Held Devices for Users (Noticeboard)</label>\r\n                       " +
"         </li>\r\n                                <li>\r\n                          " +
"          <input");

WriteLiteral(" type=\"radio\"");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_THDU\"");

WriteLiteral(" name=\"Report\"");

WriteLiteral(" data-url=\"");

            
            #line 70 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                 Write(Url.ActionAbsolute(MVC.Public.UserHeldDevices.Index()));

            
            #line default
            #line hidden
WriteLiteral("\"");

WriteLiteral(" /><label");

WriteLiteral(" for=\"Config_ReportPrefs_Builder_THDU\"");

WriteLiteral(">Technician Held Devices for Users (Report)</label>\r\n                            " +
"    </li>\r\n                                <li>\r\n                               " +
"     <input");

WriteLiteral(" type=\"radio\"");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_NTHD\"");

WriteLiteral(" name=\"Report\"");

WriteLiteral(" class=\"themeable componentable\"");

WriteLiteral(" data-url=\"");

            
            #line 73 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                                                 Write(Url.ActionAbsolute(MVC.Public.HeldDevices.Noticeboard()));

            
            #line default
            #line hidden
WriteLiteral("\"");

WriteLiteral(" /><label");

WriteLiteral(" for=\"Config_ReportPrefs_Builder_NTHD\"");

WriteLiteral(">Technician Held Devices (Noticeboard)</label>\r\n                                <" +
"/li>\r\n                                <li>\r\n                                    " +
"<input");

WriteLiteral(" type=\"radio\"");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_THD\"");

WriteLiteral(" name=\"Report\"");

WriteLiteral(" data-url=\"");

            
            #line 76 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                Write(Url.ActionAbsolute(MVC.Public.HeldDevices.Index()));

            
            #line default
            #line hidden
WriteLiteral("\"");

WriteLiteral(" /><label");

WriteLiteral(" for=\"Config_ReportPrefs_Builder_THD\"");

WriteLiteral(">Technician Held Devices (Report)</label>\r\n                                </li>\r" +
"\n                            </ul>\r\n                        </div>\r\n            " +
"            <div");

WriteLiteral(" class=\"components\"");

WriteLiteral(">\r\n                            <h3>Show Components</h3>\r\n                        " +
"    <div");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_Components\"");

WriteLiteral(">\r\n                                <label><input");

WriteLiteral(" type=\"checkbox\"");

WriteLiteral(" value=\"inProcess\"");

WriteLiteral(" checked /> In Process</label>\r\n                                <label><input");

WriteLiteral(" type=\"checkbox\"");

WriteLiteral(" value=\"readyForReturn\"");

WriteLiteral(" checked /> Ready For Return</label>\r\n                                <label><inp" +
"ut");

WriteLiteral(" type=\"checkbox\"");

WriteLiteral(" value=\"waitingForUserAction\"");

WriteLiteral(" checked /> Waiting For User Action</label>\r\n                            </div>\r\n" +
"                        </div>\r\n                        <div");

WriteLiteral(" class=\"theme\"");

WriteLiteral(">\r\n                            <h3>Noticeboard Theme</h3>\r\n");

WriteLiteral("                            ");

            
            #line 90 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                       Write(Html.DropDownList("Config_ReportPrefs_Builder_Theme", new SelectListItem[] { new SelectListItem() { Value = "", Text = "<Default>", Selected = true } }.Concat(Model.DefaultNoticeboardThemeOptions().Select(o => new SelectListItem() { Value = o.Key, Text = o.Value }))));

            
            #line default
            #line hidden
WriteLiteral("\r\n                        </div>\r\n                        <div");

WriteLiteral(" class=\"filter\"");

WriteLiteral(">\r\n                            <h3>Filter</h3>\r\n                            <sele" +
"ct");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_Filter\"");

WriteLiteral(">\r\n                                <option");

WriteLiteral(" value=\"\"");

WriteLiteral(">&lt;None&gt;</option>\r\n                                <option");

WriteLiteral(" value=\"DeviceProfile\"");

WriteLiteral(">Device Profile</option>\r\n                                <option");

WriteLiteral(" value=\"DeviceAddress\"");

WriteLiteral(">Device Profile Address</option>\r\n                            </select>\r\n        " +
"                    <div");

WriteLiteral(" class=\"options\"");

WriteLiteral(">\r\n                                <div");

WriteLiteral(" class=\"method\"");

WriteLiteral(">\r\n                                    <input");

WriteLiteral(" type=\"radio\"");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_I\"");

WriteLiteral(" name=\"FilterAction\"");

WriteLiteral(" value=\"Include\"");

WriteLiteral(" checked=\"checked\"");

WriteLiteral(" /><label");

WriteLiteral(" for=\"Config_ReportPrefs_Builder_I\"");

WriteLiteral(">Include</label>\r\n                                    <input");

WriteLiteral(" type=\"radio\"");

WriteLiteral(" id=\"Config_ReportPrefs_Builder_E\"");

WriteLiteral(" name=\"FilterAction\"");

WriteLiteral(" value=\"Exclude\"");

WriteLiteral(" /><label");

WriteLiteral(" for=\"Config_ReportPrefs_Builder_E\"");

WriteLiteral(">Exclude</label>\r\n                                </div>\r\n                       " +
"         <div");

WriteLiteral(" class=\"filter-option filter-DeviceProfile\"");

WriteLiteral(">\r\n                                    <ul");

WriteLiteral(" class=\"none\"");

WriteLiteral(">\r\n");

            
            #line 106 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 106 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                         foreach (var deviceProfile in Model.DeviceProfiles.Value)
                                        {

            
            #line default
            #line hidden
WriteLiteral("                                            <li>\r\n                               " +
"                 <input");

WriteAttribute("id", Tuple.Create(" id=\"", 7313), Tuple.Create("\"", 7367)
, Tuple.Create(Tuple.Create("", 7318), Tuple.Create("Config_ReportPrefs_Builder_DP_", 7318), true)
            
            #line 109 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
          , Tuple.Create(Tuple.Create("", 7348), Tuple.Create<System.Object, System.Int32>(deviceProfile.Id
            
            #line default
            #line hidden
, 7348), false)
);

WriteLiteral(" type=\"checkbox\"");

WriteAttribute("value", Tuple.Create(" value=\"", 7384), Tuple.Create("\"", 7409)
            
            #line 109 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                     , Tuple.Create(Tuple.Create("", 7392), Tuple.Create<System.Object, System.Int32>(deviceProfile.Id
            
            #line default
            #line hidden
, 7392), false)
);

WriteLiteral(" /><label");

WriteAttribute("for", Tuple.Create(" for=\"", 7419), Tuple.Create("\"", 7474)
, Tuple.Create(Tuple.Create("", 7425), Tuple.Create("Config_ReportPrefs_Builder_DP_", 7425), true)
            
            #line 109 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                     , Tuple.Create(Tuple.Create("", 7455), Tuple.Create<System.Object, System.Int32>(deviceProfile.Id
            
            #line default
            #line hidden
, 7455), false)
);

WriteLiteral(">");

            
            #line 109 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                                                                                                                    Write(deviceProfile.Description);

            
            #line default
            #line hidden
WriteLiteral("</label>\r\n                                            </li>\r\n");

            
            #line 111 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                        }

            
            #line default
            #line hidden
WriteLiteral("                                    </ul>\r\n                                </div>" +
"\r\n                                <div");

WriteLiteral(" class=\"filter-option filter-DeviceAddress\"");

WriteLiteral(">\r\n                                    <ul");

WriteLiteral(" class=\"none\"");

WriteLiteral(">\r\n");

            
            #line 116 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                        
            
            #line default
            #line hidden
            
            #line 116 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                         foreach (var address in Model.OrganisationAddresses.Value)
                                        {

            
            #line default
            #line hidden
WriteLiteral("                                            <li>\r\n                               " +
"                 <input");

WriteAttribute("id", Tuple.Create(" id=\"", 8074), Tuple.Create("\"", 8122)
, Tuple.Create(Tuple.Create("", 8079), Tuple.Create("Config_ReportPrefs_Builder_OA_", 8079), true)
            
            #line 119 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
          , Tuple.Create(Tuple.Create("", 8109), Tuple.Create<System.Object, System.Int32>(address.Id
            
            #line default
            #line hidden
, 8109), false)
);

WriteLiteral(" type=\"checkbox\"");

WriteAttribute("value", Tuple.Create(" value=\"", 8139), Tuple.Create("\"", 8165)
            
            #line 119 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                               , Tuple.Create(Tuple.Create("", 8147), Tuple.Create<System.Object, System.Int32>(address.ShortName
            
            #line default
            #line hidden
, 8147), false)
);

WriteLiteral(" /><label");

WriteAttribute("for", Tuple.Create(" for=\"", 8175), Tuple.Create("\"", 8224)
, Tuple.Create(Tuple.Create("", 8181), Tuple.Create("Config_ReportPrefs_Builder_OA_", 8181), true)
            
            #line 119 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                , Tuple.Create(Tuple.Create("", 8211), Tuple.Create<System.Object, System.Int32>(address.Id
            
            #line default
            #line hidden
, 8211), false)
);

WriteLiteral(">");

            
            #line 119 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                                                                                                         Write(address.Name);

            
            #line default
            #line hidden
WriteLiteral(" (");

            
            #line 119 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                                                                                                                                                                                                        Write(address.ShortName);

            
            #line default
            #line hidden
WriteLiteral(")</label>\r\n                                            </li>\r\n");

            
            #line 121 "..\..\Areas\Config\Views\JobPreferences\Parts\Reports.cshtml"
                                        }

            
            #line default
            #line hidden
WriteLiteral("                                    </ul>\r\n                                </div>" +
"\r\n                            </div>\r\n                        </div>\r\n          " +
"          </form>\r\n                    <div");

WriteLiteral(" class=\"output\"");

WriteLiteral(">\r\n                        <textarea readonly></textarea>\r\n                      " +
"  <a");

WriteLiteral(" href=\"#\"");

WriteLiteral(" target=\"_blank\"");

WriteLiteral("><i");

WriteLiteral(" class=\"fa fa-external-link\"");

WriteLiteral(" title=\"Open Link\"");

WriteLiteral("></i></a>\r\n                        <i");

WriteLiteral(" class=\"fa fa-clipboard\"");

WriteLiteral(" title=\"Copy Link to Clipboard\"");

WriteLiteral("></i>\r\n                    </div>\r\n                </div>\r\n                <scrip" +
"t>\r\n                    $(function () {\r\n                        var dialog, url" +
";\r\n\r\n                        function updateUrl() {\r\n                           " +
" var theme = null;\r\n                            var filter = null;\r\n            " +
"                var filterMethod = null;\r\n                            var filter" +
"Value = null;\r\n                            let components = null;\r\n\r\n           " +
"                 var report = dialog.find(\'.report input:checked\');\r\n           " +
"                 if (report.length > 0) {\r\n                                url =" +
" report.attr(\'data-url\');\r\n\r\n                                if (report.hasClass" +
"(\'componentable\')) {\r\n                                    const checkedComponent" +
"s = dialog.find(\'#Config_ReportPrefs_Builder_Components input:checked\');\r\n      " +
"                              if (checkedComponents.length > 0 && checkedCompone" +
"nts.length < 3) {\r\n                                        components = checkedC" +
"omponents.map(function () {\r\n                                            return " +
"this.value;\r\n                                        }).get().join(\',\');\r\n      " +
"                              }\r\n                                }\r\n\r\n          " +
"                      if (report.hasClass(\'themeable\')) {\r\n                     " +
"               theme = dialog.find(\'.theme > select\').val();\r\n                  " +
"              }\r\n\r\n                                filter = dialog.find(\'.filter" +
" > select\').val();\r\n\r\n                                if (!!filter) {\r\n         " +
"                           filterMethod = dialog.find(\'.filter .method input:che" +
"cked\').val();\r\n\r\n                                    filterValue = dialog\r\n     " +
"                                   .find(\'.filter .filter-\' + filter)\r\n         " +
"                               .find(\'input:checked\')\r\n                         " +
"               .map(function (index, element) { return $(element).val(); })\r\n   " +
"                                     .toArray().join(\',\');\r\n                    " +
"            }\r\n\r\n                                if (!!components || !!theme || " +
"!!filter) {\r\n                                    url += \'?\';\r\n\r\n                " +
"                    if (!!components)\r\n                                        u" +
"rl += \'components=\' + components;\r\n\r\n                                    if (!!t" +
"heme) {\r\n                                        if (!url.endsWith(\'?\'))\r\n      " +
"                                      url += \'&\';\r\n                             " +
"           url += \'theme=\' + theme;\r\n                                    }\r\n\r\n  " +
"                                  if (!!filter) {\r\n                             " +
"           if (!url.endsWith(\'?\'))\r\n                                            " +
"url += \'&\';\r\n                                        url += filter + filterMetho" +
"d + \'=\' + filterValue;\r\n                                    }\r\n                 " +
"               }\r\n                            }\r\n\r\n                            $" +
"(\'#Config_ReportPrefs_Builder_Buttonpane\').find(\'textarea\').val(url);\r\n         " +
"                   $(\'#Config_ReportPrefs_Builder_Buttonpane\').find(\'.fa-externa" +
"l-link\').closest(\'a\').attr(\'href\', url);\r\n                        }\r\n\r\n         " +
"               $(\'#Config_ReportPrefs_Builder_Button\').click(function () {\r\n\r\n  " +
"                          if (!dialog) {\r\n                                dialog" +
" = $(\'#Config_ReportPrefs_Builder\').dialog({\r\n                                  " +
"  resizable: false,\r\n                                    modal: true,\r\n         " +
"                           autoOpen: false,\r\n                                   " +
" width: 550,\r\n                                    maxHeight: 520,\r\n             " +
"                       buttons: {\r\n                                        Close" +
": function () {\r\n                                            dialog.dialog(\'clos" +
"e\');\r\n                                        }\r\n                               " +
"     }\r\n                                });\r\n\r\n                                d" +
"ialog.find(\'.report\').on(\'change\', \'input\', function () {\r\n                     " +
"               const $this = $(this);\r\n                                    const" +
" $components = dialog.find(\'.components\');\r\n                                    " +
"const $theme = dialog.find(\'.theme\');\r\n\r\n                                    if " +
"($this.hasClass(\'componentable\'))\r\n                                        $comp" +
"onents.slideDown();\r\n                                    else\r\n                 " +
"                       $components.slideUp();\r\n\r\n                               " +
"     if ($this.hasClass(\'themeable\'))\r\n                                        $" +
"theme.slideDown();\r\n                                    else\r\n                  " +
"                      $theme.slideUp();\r\n\r\n                                    u" +
"pdateUrl();\r\n                                });\r\n\r\n                            " +
"    dialog.find(\'#Config_ReportPrefs_Builder_Components\').on(\'change\', \'input\', " +
"updateUrl);\r\n\r\n                                dialog.find(\'#Config_ReportPrefs_" +
"Builder_Theme\').change(updateUrl);\r\n\r\n                                dialog.fin" +
"d(\'#Config_ReportPrefs_Builder_Filter\').change(function () {\r\n                  " +
"                  var $this = $(this);\r\n                                    var " +
"$filter = dialog.find(\'.options\');\r\n\r\n                                    if (!$" +
"this.val())\r\n                                        $filter.slideUp();\r\n       " +
"                             else {\r\n                                        $fi" +
"lter.find(\'.filter-option\').hide();\r\n                                        $fi" +
"lter.show();\r\n                                        $filter.find(\'.filter-\' + " +
"$this.val()).slideDown();\r\n                                    }\r\n\r\n            " +
"                        updateUrl();\r\n                                });\r\n\r\n   " +
"                             dialog.find(\'.filter .options\').on(\'click\', \'input\'" +
", updateUrl);\r\n\r\n                                var $buttonpane = dialog.closes" +
"t(\'.ui-dialog\').children(\'.ui-dialog-buttonpane\');\r\n                            " +
"    $buttonpane.attr(\'id\', \'Config_ReportPrefs_Builder_Buttonpane\').append(dialo" +
"g.children(\'.output\'));\r\n\r\n                                $buttonpane.find(\'tex" +
"tarea\').focus(function () {\r\n                                    $(this).select(" +
");\r\n                                });\r\n\r\n\r\n                                var" +
" $clipboard = $buttonpane.find(\'.fa-clipboard\');\r\n\r\n                            " +
"    if (!!window.clipboardData) {\r\n                                    $clipboar" +
"d.click(function () {\r\n                                        window.clipboardD" +
"ata.setData(\'Text\', url);\r\n                                        alert(\'Link c" +
"opied to Clipboard\');\r\n                                        return false;\r\n  " +
"                                  });\r\n                                } else {\r" +
"\n                                    $clipboard.hide();\r\n                       " +
"         }\r\n\r\n                            }\r\n\r\n                            dialo" +
"g.dialog(\'open\');\r\n\r\n                            updateUrl();\r\n\r\n               " +
"             return false;\r\n                        });\r\n\r\n                    }" +
");\r\n                </script>\r\n            </td>\r\n        </tr>\r\n    </table>\r\n<" +
"/div>\r\n");

        }
    }
}
#pragma warning restore 1591
