<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* pages/setup/general/general_setup.html.twig */
class __TwigTemplate_26ebacabe3f4b44e97826dc83fcbeed1 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'config_fields' => [$this, 'block_config_fields'],
        ];
    }

    protected function doGetParent(array $context)/*: bool|string|Template|TemplateWrapper*/
    {
        // line 33
        return "pages/setup/general/base_form.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 34
        $macros["fields"] = $this->macros["fields"] = $this->load("components/form/fields_macros.html.twig", 34)->unwrap();
        // line 38
        $context["field_options"] = ["field_class" => "col-12 col-xxl-6 col-sm-6", "label_class" => "col-xxl-8", "input_class" => "col-xxl-4"];
        // line 44
        $context["field_options"] = ["field_class" => "col-12 col-xxl-6 col-sm-6", "full_width" => true];
        // line 49
        $context["inline_field_options"] = Twig\Extension\CoreExtension::merge(($context["field_options"] ?? null), ["input_addclass" => "w-auto"]);
        // line 33
        $this->parent = $this->load("pages/setup/general/base_form.html.twig", 33);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 53
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_config_fields(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 54
        yield "
<div class=\"row ps-4\">

    ";
        // line 57
        yield $macros["fields"]->getTemplateForMacro("macro_textField", $context, 57, $this->getSourceContext())->macro_textField(...["url_base", (($_v0 =         // line 59
($context["config"] ?? null)) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0["url_base"] ?? null) : null), __("URL of the application"),         // line 61
($context["field_options"] ?? null)]);
        // line 62
        yield "

    ";
        // line 64
        yield $macros["fields"]->getTemplateForMacro("macro_textareaField", $context, 64, $this->getSourceContext())->macro_textareaField(...["text_login", (($_v1 =         // line 66
($context["config"] ?? null)) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1["text_login"] ?? null) : null), __("Text in the login box"), Twig\Extension\CoreExtension::merge(        // line 68
($context["field_options"] ?? null), ["enable_richtext" => true, "enable_images" => false])]);
        // line 72
        yield "

    ";
        // line 74
        yield $macros["fields"]->getTemplateForMacro("macro_textField", $context, 74, $this->getSourceContext())->macro_textField(...["helpdesk_doc_url", (($_v2 =         // line 76
($context["config"] ?? null)) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2["helpdesk_doc_url"] ?? null) : null), __("Simplified interface help link"),         // line 78
($context["field_options"] ?? null)]);
        // line 79
        yield "

    ";
        // line 81
        yield $macros["fields"]->getTemplateForMacro("macro_textField", $context, 81, $this->getSourceContext())->macro_textField(...["central_doc_url", (($_v3 =         // line 83
($context["config"] ?? null)) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3["central_doc_url"] ?? null) : null), __("Standard interface help link"),         // line 85
($context["field_options"] ?? null)]);
        // line 86
        yield "

    ";
        // line 88
        yield $macros["fields"]->getTemplateForMacro("macro_numberField", $context, 88, $this->getSourceContext())->macro_numberField(...["decimal_number", (($_v4 =         // line 90
($context["config"] ?? null)) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4["decimal_number"] ?? null) : null), __("Default decimals limit"), Twig\Extension\CoreExtension::merge(        // line 92
($context["inline_field_options"] ?? null), ["min" => 1, "max" => 4, "required" => true])]);
        // line 97
        yield "

    ";
        // line 99
        yield $macros["fields"]->getTemplateForMacro("macro_checkboxField", $context, 99, $this->getSourceContext())->macro_checkboxField(...["use_public_faq", (($_v5 =         // line 101
($context["config"] ?? null)) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5["use_public_faq"] ?? null) : null), __("Allow FAQ anonymous access"),         // line 103
($context["field_options"] ?? null)]);
        // line 104
        yield "

</div>

<div class=\"hr-text\">
    <i class=\"ti ti-language\"></i>
    <span>";
        // line 110
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Translations"), "html", null, true);
        yield "</span>
</div>

<div class=\"row ps-4\">

    ";
        // line 115
        yield $macros["fields"]->getTemplateForMacro("macro_checkboxField", $context, 115, $this->getSourceContext())->macro_checkboxField(...["translate_dropdowns", (($_v6 =         // line 117
($context["config"] ?? null)) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6["translate_dropdowns"] ?? null) : null), __("Translation of dropdowns"),         // line 119
($context["field_options"] ?? null)]);
        // line 120
        yield "

    ";
        // line 122
        yield $macros["fields"]->getTemplateForMacro("macro_checkboxField", $context, 122, $this->getSourceContext())->macro_checkboxField(...["translate_kb", (($_v7 =         // line 124
($context["config"] ?? null)) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7["translate_kb"] ?? null) : null), __("Knowledge base translation"),         // line 126
($context["field_options"] ?? null)]);
        // line 127
        yield "

    ";
        // line 129
        yield $macros["fields"]->getTemplateForMacro("macro_checkboxField", $context, 129, $this->getSourceContext())->macro_checkboxField(...["translate_reminders", (($_v8 =         // line 131
($context["config"] ?? null)) && is_array($_v8) || $_v8 instanceof ArrayAccess ? ($_v8["translate_reminders"] ?? null) : null), __("Translation of reminders"),         // line 133
($context["field_options"] ?? null)]);
        // line 134
        yield "

</div>

<div class=\"hr-text\">
    <i class=\"ti ti-list\"></i>
    <span>";
        // line 140
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Dynamic display"), "html", null, true);
        yield "</span>
</div>

<div class=\"row ps-4\">

    ";
        // line 145
        yield $macros["fields"]->getTemplateForMacro("macro_numberField", $context, 145, $this->getSourceContext())->macro_numberField(...["dropdown_max", (($_v9 =         // line 147
($context["config"] ?? null)) && is_array($_v9) || $_v9 instanceof ArrayAccess ? ($_v9["dropdown_max"] ?? null) : null), __("Page size for dropdown (paging using scroll)"), Twig\Extension\CoreExtension::merge(        // line 149
($context["inline_field_options"] ?? null), ["min" => 1, "max" => 200, "required" => true])]);
        // line 154
        yield "

    ";
        // line 156
        yield $macros["fields"]->getTemplateForMacro("macro_dropdownNumberField", $context, 156, $this->getSourceContext())->macro_dropdownNumberField(...["ajax_limit_count", (($_v10 =         // line 158
($context["config"] ?? null)) && is_array($_v10) || $_v10 instanceof ArrayAccess ? ($_v10["ajax_limit_count"] ?? null) : null), __("Don\x27t show search engine in dropdowns if the number of items is less than"), Twig\Extension\CoreExtension::merge(        // line 160
($context["inline_field_options"] ?? null), ["min" => 1, "max" => 200, "toadd" => ["0" => __("Never")], "width" => "auto", "required" => true])]);
        // line 167
        yield "
</div>

<div class=\"hr-text\">
    <i class=\"ti ti-search\"></i>
    <span>";
        // line 172
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Search engine"), "html", null, true);
        yield "</span>
</div>

<div class=\"row ps-4\">

    ";
        // line 177
        yield $macros["fields"]->getTemplateForMacro("macro_dropdownArrayField", $context, 177, $this->getSourceContext())->macro_dropdownArrayField(...["allow_search_view", (($_v11 =         // line 179
($context["config"] ?? null)) && is_array($_v11) || $_v11 instanceof ArrayAccess ? ($_v11["allow_search_view"] ?? null) : null), [__("No"), Twig\Extension\CoreExtension::sprintf(__("%1\$s (%2\$s)"), __("Yes"), __("last criterion")), Twig\Extension\CoreExtension::sprintf(__("%1\$s (%2\$s)"), __("Yes"), __("default criterion"))], __("Items seen"), Twig\Extension\CoreExtension::merge(        // line 186
($context["inline_field_options"] ?? null), ["width" => "auto"])]);
        // line 189
        yield "

    ";
        // line 191
        yield $macros["fields"]->getTemplateForMacro("macro_dropdownYesNo", $context, 191, $this->getSourceContext())->macro_dropdownYesNo(...["allow_search_global", (($_v12 =         // line 193
($context["config"] ?? null)) && is_array($_v12) || $_v12 instanceof ArrayAccess ? ($_v12["allow_search_global"] ?? null) : null), __("Global search"), Twig\Extension\CoreExtension::merge(        // line 195
($context["inline_field_options"] ?? null), ["width" => "auto"])]);
        // line 198
        yield "

    ";
        // line 200
        yield $macros["fields"]->getTemplateForMacro("macro_dropdownArrayField", $context, 200, $this->getSourceContext())->macro_dropdownArrayField(...["allow_search_all", (($_v13 =         // line 202
($context["config"] ?? null)) && is_array($_v13) || $_v13 instanceof ArrayAccess ? ($_v13["allow_search_all"] ?? null) : null), [__("No"), Twig\Extension\CoreExtension::sprintf(__("%1\$s (%2\$s)"), __("Yes"), __("last criterion"))], __("All"), Twig\Extension\CoreExtension::merge(        // line 208
($context["inline_field_options"] ?? null), ["width" => "auto"])]);
        // line 211
        yield "

    ";
        // line 213
        yield $macros["fields"]->getTemplateForMacro("macro_numberField", $context, 213, $this->getSourceContext())->macro_numberField(...["list_limit_max", (($_v14 =         // line 215
($context["config"] ?? null)) && is_array($_v14) || $_v14 instanceof ArrayAccess ? ($_v14["list_limit_max"] ?? null) : null), __("Default search results limit (page)"), Twig\Extension\CoreExtension::merge(        // line 217
($context["inline_field_options"] ?? null), ["min" => 5, "max" => 200, "step" => 5, "required" => true])]);
        // line 223
        yield "

    ";
        // line 225
        yield $macros["fields"]->getTemplateForMacro("macro_numberField", $context, 225, $this->getSourceContext())->macro_numberField(...["cut", (($_v15 =         // line 227
($context["config"] ?? null)) && is_array($_v15) || $_v15 instanceof ArrayAccess ? ($_v15["cut"] ?? null) : null), __("Default characters limit (summary text boxes)"), Twig\Extension\CoreExtension::merge(        // line 229
($context["inline_field_options"] ?? null), ["step" => 50, "required" => true])]);
        // line 233
        yield "

    ";
        // line 235
        yield $macros["fields"]->getTemplateForMacro("macro_numberField", $context, 235, $this->getSourceContext())->macro_numberField(...["url_maxlength", (($_v16 =         // line 237
($context["config"] ?? null)) && is_array($_v16) || $_v16 instanceof ArrayAccess ? ($_v16["url_maxlength"] ?? null) : null), __("Default url length limit"), Twig\Extension\CoreExtension::merge(        // line 239
($context["inline_field_options"] ?? null), ["min" => 20, "max" => 80, "step" => 5, "required" => true])]);
        // line 245
        yield "

</div>

<div class=\"hr-text\">
    <i class=\"ti ti-lock\"></i>
    <span>";
        // line 251
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Item locks"), "html", null, true);
        yield "</span>
</div>

<div class=\"row ps-4\">

    ";
        // line 256
        $context["locks_rand"] = Twig\Extension\CoreExtension::random($this->env->getCharset());
        // line 257
        yield "    ";
        $context["id_lock_use_lock_item"] = ("lock_use_lock_item_" . ($context["locks_rand"] ?? null));
        // line 258
        yield "    ";
        $context["id_lock_lockprofile_id"] = ("dropdown_lock_lockprofile_id" . ($context["locks_rand"] ?? null));
        // line 259
        yield "    ";
        $context["id_lock_item_list_id"] = ("dropdown_lock_item_list" . ($context["locks_rand"] ?? null));
        // line 260
        yield "    ";
        yield $macros["fields"]->getTemplateForMacro("macro_checkboxField", $context, 260, $this->getSourceContext())->macro_checkboxField(...["lock_use_lock_item", (($_v17 =         // line 262
($context["config"] ?? null)) && is_array($_v17) || $_v17 instanceof ArrayAccess ? ($_v17["lock_use_lock_item"] ?? null) : null), __("Use locks"), Twig\Extension\CoreExtension::merge(        // line 264
($context["field_options"] ?? null), ["id" =>         // line 265
($context["id_lock_use_lock_item"] ?? null)])]);
        // line 267
        yield "

    ";
        // line 269
        $context["lock_options"] = ($context["field_options"] ?? null);
        // line 270
        yield "    ";
        if ((($tmp =  !(($_v18 = ($context["config"] ?? null)) && is_array($_v18) || $_v18 instanceof ArrayAccess ? ($_v18["lock_use_lock_item"] ?? null) : null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 271
            yield "        ";
            $context["lock_options"] = Twig\Extension\CoreExtension::merge(($context["lock_options"] ?? null), ["disabled" => true]);
            // line 274
            yield "    ";
        }
        // line 275
        yield "
    ";
        // line 276
        yield $macros["fields"]->getTemplateForMacro("macro_dropdownField", $context, 276, $this->getSourceContext())->macro_dropdownField(...["Profile", "lock_lockprofile_id", (($_v19 =         // line 279
($context["config"] ?? null)) && is_array($_v19) || $_v19 instanceof ArrayAccess ? ($_v19["lock_lockprofile_id"] ?? null) : null), __("Profile to be used when locking items"), Twig\Extension\CoreExtension::merge(Twig\Extension\CoreExtension::merge(        // line 281
($context["inline_field_options"] ?? null), ($context["lock_options"] ?? null)), ["width" => "auto", "rand" =>         // line 283
($context["locks_rand"] ?? null), "condition" => ["interface" => "central"]])]);
        // line 288
        yield "

    ";
        // line 290
        yield $macros["fields"]->getTemplateForMacro("macro_dropdownArrayField", $context, 290, $this->getSourceContext())->macro_dropdownArrayField(...["lock_item_list", "", $this->extensions['Glpi\Application\View\Extension\PhpExtension']->call("ObjectLock::getLockableObjects"), __("List of items to lock"), Twig\Extension\CoreExtension::merge(        // line 295
($context["lock_options"] ?? null), ["multiple" => true, "values" => (($_v20 =         // line 297
($context["config"] ?? null)) && is_array($_v20) || $_v20 instanceof ArrayAccess ? ($_v20["lock_item_list"] ?? null) : null), "rand" =>         // line 298
($context["locks_rand"] ?? null)])]);
        // line 300
        yield "

    <script>
    \$(function(ready){
        \$(\x27#";
        // line 304
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id_lock_use_lock_item"] ?? null), "html", null, true);
        yield "\x27).change(function(){
            var enabled = this.checked;
            \$(\x27#";
        // line 306
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id_lock_lockprofile_id"] ?? null), "html", null, true);
        yield "\x27).prop(\x27disabled\x27, !enabled);
            \$(\x27#";
        // line 307
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["id_lock_item_list_id"] ?? null), "html", null, true);
        yield "\x27).prop(\x27disabled\x27, !enabled);
        });
    });
    </script>
</div>

<div class=\"hr-text\">
    <i class=\"ti ti-login\"></i>
    <span>";
        // line 315
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(__("Auto Login"), "html", null, true);
        yield "</span>
</div>

<div class=\"row ps-4\">

    ";
        // line 320
        yield $macros["fields"]->getTemplateForMacro("macro_dropdownTimestampField", $context, 320, $this->getSourceContext())->macro_dropdownTimestampField(...["login_remember_time", (($_v21 =         // line 322
($context["config"] ?? null)) && is_array($_v21) || $_v21 instanceof ArrayAccess ? ($_v21["login_remember_time"] ?? null) : null), __("Time to allow \"Remember Me\""), Twig\Extension\CoreExtension::merge(        // line 324
($context["inline_field_options"] ?? null), ["emptylabel" => __("Disabled"), "min" => 0, "max" => (Twig\Extension\CoreExtension::constant("MONTH_TIMESTAMP") * 2), "step" => Twig\Extension\CoreExtension::constant("DAY_TIMESTAMP"), "toadd" => [Twig\Extension\CoreExtension::constant("HOUR_TIMESTAMP"), (Twig\Extension\CoreExtension::constant("HOUR_TIMESTAMP") * 2), (Twig\Extension\CoreExtension::constant("HOUR_TIMESTAMP") * 6), (Twig\Extension\CoreExtension::constant("HOUR_TIMESTAMP") * 12)], "width" => "auto"])]);
        // line 337
        yield "

    ";
        // line 339
        yield $macros["fields"]->getTemplateForMacro("macro_checkboxField", $context, 339, $this->getSourceContext())->macro_checkboxField(...["login_remember_default", (($_v22 =         // line 341
($context["config"] ?? null)) && is_array($_v22) || $_v22 instanceof ArrayAccess ? ($_v22["login_remember_default"] ?? null) : null), __("Default state of checkbox"),         // line 343
($context["field_options"] ?? null)]);
        // line 344
        yield "

    ";
        // line 346
        yield $macros["fields"]->getTemplateForMacro("macro_checkboxField", $context, 346, $this->getSourceContext())->macro_checkboxField(...["display_login_source", (($_v23 =         // line 348
($context["config"] ?? null)) && is_array($_v23) || $_v23 instanceof ArrayAccess ? ($_v23["display_login_source"] ?? null) : null), __("Display source dropdown on login page"),         // line 350
($context["field_options"] ?? null)]);
        // line 351
        yield "
</div>

";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "pages/setup/general/general_setup.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  358 => 351,  356 => 350,  355 => 348,  354 => 346,  350 => 344,  348 => 343,  347 => 341,  346 => 339,  342 => 337,  340 => 324,  339 => 322,  338 => 320,  330 => 315,  319 => 307,  315 => 306,  310 => 304,  304 => 300,  302 => 298,  301 => 297,  300 => 295,  299 => 290,  295 => 288,  293 => 283,  292 => 281,  291 => 279,  290 => 276,  287 => 275,  284 => 274,  281 => 271,  278 => 270,  276 => 269,  272 => 267,  270 => 265,  269 => 264,  268 => 262,  266 => 260,  263 => 259,  260 => 258,  257 => 257,  255 => 256,  247 => 251,  239 => 245,  237 => 239,  236 => 237,  235 => 235,  231 => 233,  229 => 229,  228 => 227,  227 => 225,  223 => 223,  221 => 217,  220 => 215,  219 => 213,  215 => 211,  213 => 208,  212 => 202,  211 => 200,  207 => 198,  205 => 195,  204 => 193,  203 => 191,  199 => 189,  197 => 186,  196 => 179,  195 => 177,  187 => 172,  180 => 167,  178 => 160,  177 => 158,  176 => 156,  172 => 154,  170 => 149,  169 => 147,  168 => 145,  160 => 140,  152 => 134,  150 => 133,  149 => 131,  148 => 129,  144 => 127,  142 => 126,  141 => 124,  140 => 122,  136 => 120,  134 => 119,  133 => 117,  132 => 115,  124 => 110,  116 => 104,  114 => 103,  113 => 101,  112 => 99,  108 => 97,  106 => 92,  105 => 90,  104 => 88,  100 => 86,  98 => 85,  97 => 83,  96 => 81,  92 => 79,  90 => 78,  89 => 76,  88 => 74,  84 => 72,  82 => 68,  81 => 66,  80 => 64,  76 => 62,  74 => 61,  73 => 59,  72 => 57,  67 => 54,  60 => 53,  55 => 33,  53 => 49,  51 => 44,  49 => 38,  47 => 34,  40 => 33,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "pages/setup/general/general_setup.html.twig", "C:\\xampp\\htdocs\\itsm\\templates\\pages\\setup\\general\\general_setup.html.twig");
    }
}
