var/cache/dev/twig/a4/a4ca07dec6016ddd510271e7ee01b584.php line 42

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @admin/ui/component/input_text.html.twig */
  16. class __TwigTemplate_dc09b397778b05cc4e41755a4c249187 extends Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. 'content' => [$this, 'block_content'],
  30. 'actions' => [$this, 'block_actions'],
  31. 'right_side_label' => [$this, 'block_right_side_label'],
  32. 'extra_content' => [$this, 'block_extra_content'],
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/component/input_text.html.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/component/input_text.html.twig"));
  42. // line 1
  43. $macros["html"] = $this->macros["html"] = $this->load("@ibexadesign/ui/component/macros.html.twig", 1)->unwrap();
  44. // line 2
  45. yield "
  46. ";
  47. // line 3
  48. $context["is_password_type"] = (((array_key_exists("type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 3, $this->source); })()), "")) : ("")) == "password");
  49. // line 4
  50. $context["is_password_input"] = ((array_key_exists("is_password_input", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["is_password_input"]) || array_key_exists("is_password_input", $context) ? $context["is_password_input"] : (function () { throw new RuntimeError('Variable "is_password_input" does not exist.', 4, $this->source); })()), (isset($context["is_password_type"]) || array_key_exists("is_password_type", $context) ? $context["is_password_type"] : (function () { throw new RuntimeError('Variable "is_password_type" does not exist.', 4, $this->source); })()))) : ((isset($context["is_password_type"]) || array_key_exists("is_password_type", $context) ? $context["is_password_type"] : (function () { throw new RuntimeError('Variable "is_password_type" does not exist.', 4, $this->source); })())));
  51. // line 5
  52. $context["has_search"] = ((array_key_exists("has_search", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["has_search"]) || array_key_exists("has_search", $context) ? $context["has_search"] : (function () { throw new RuntimeError('Variable "has_search" does not exist.', 5, $this->source); })()), false)) : (false));
  53. // line 6
  54. $context["is_multiline"] = ((array_key_exists("is_multiline", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["is_multiline"]) || array_key_exists("is_multiline", $context) ? $context["is_multiline"] : (function () { throw new RuntimeError('Variable "is_multiline" does not exist.', 6, $this->source); })()), false)) : (false));
  55. // line 7
  56. $context["is_disabled"] = ((array_key_exists("is_disabled", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["is_disabled"]) || array_key_exists("is_disabled", $context) ? $context["is_disabled"] : (function () { throw new RuntimeError('Variable "is_disabled" does not exist.', 7, $this->source); })()), false)) : (false));
  57. // line 8
  58. $context["extra_btn"] = Twig\Extension\CoreExtension::merge(((array_key_exists("extra_btn", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 8, $this->source); })()), [])) : ([])), ["label" => ((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 9
  59. ($context["extra_btn"] ?? null), "label", [], "any", true, true, false, 9)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 9, $this->source); })()), "label", [], "any", false, false, false, 9), "")) : ("")), "attr" => Twig\Extension\CoreExtension::merge(((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 10
  60. ($context["extra_btn"] ?? null), "attr", [], "any", true, true, false, 10)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 10, $this->source); })()), "attr", [], "any", false, false, false, 10), [])) : ([])), ["type" => ((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 11
  61. ($context["extra_btn"] ?? null), "type", [], "any", true, true, false, 11)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 11, $this->source); })()), "type", [], "any", false, false, false, 11), "button")) : ("button")), "class" => Twig\Extension\CoreExtension::trim((((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 12
  62. ($context["extra_btn"] ?? null), "attr", [], "any", false, true, false, 12), "class", [], "any", true, true, false, 12)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 12, $this->source); })()), "attr", [], "any", false, false, false, 12), "class", [], "any", false, false, false, 12), "")) : ("")) . " btn ibexa-btn ibexa-btn--info ibexa-input-text-wrapper__action-btn--extra-btn"))])]);
  63. // line 17
  64. $context["should_clear_button_send_form"] = ((array_key_exists("should_clear_button_send_form", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["should_clear_button_send_form"]) || array_key_exists("should_clear_button_send_form", $context) ? $context["should_clear_button_send_form"] : (function () { throw new RuntimeError('Variable "should_clear_button_send_form" does not exist.', 17, $this->source); })()), false)) : (false));
  65. // line 18
  66. $context["wrapper_attr"] = Twig\Extension\CoreExtension::merge(((array_key_exists("wrapper_attr", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["wrapper_attr"]) || array_key_exists("wrapper_attr", $context) ? $context["wrapper_attr"] : (function () { throw new RuntimeError('Variable "wrapper_attr" does not exist.', 18, $this->source); })()), [])) : ([])), ["class" => Twig\Extension\CoreExtension::trim((((((((((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 19
  67. ($context["wrapper_attr"] ?? null), "class", [], "any", true, true, false, 19)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["wrapper_attr"]) || array_key_exists("wrapper_attr", $context) ? $context["wrapper_attr"] : (function () { throw new RuntimeError('Variable "wrapper_attr" does not exist.', 19, $this->source); })()), "class", [], "any", false, false, false, 19), "")) : ("")) . " ibexa-input-text-wrapper") . (((($tmp = // line 21
  68. (isset($context["has_search"]) || array_key_exists("has_search", $context) ? $context["has_search"] : (function () { throw new RuntimeError('Variable "has_search" does not exist.', 21, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" ibexa-input-text-wrapper--search") : (""))) . (((($tmp = // line 22
  69. (isset($context["is_password_input"]) || array_key_exists("is_password_input", $context) ? $context["is_password_input"] : (function () { throw new RuntimeError('Variable "is_password_input" does not exist.', 22, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" ibexa-input-text-wrapper--password") : (""))) . (( // line 23
  70. array_key_exists("type", $context)) ? ((" ibexa-input-text-wrapper--type-" . (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 23, $this->source); })()))) : (""))) . (((($tmp = Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 24
  71. (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 24, $this->source); })()), "label", [], "any", false, false, false, 24)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" ibexa-input-text-wrapper--extra-btn") : (""))) . (((($tmp = // line 25
  72. (isset($context["is_multiline"]) || array_key_exists("is_multiline", $context) ? $context["is_multiline"] : (function () { throw new RuntimeError('Variable "is_multiline" does not exist.', 25, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (" ibexa-input-text-wrapper--multiline") : (""))) . (( // line 26
  73. array_key_exists("right_side_label", $context)) ? (" ibexa-input-text-wrapper--has-right-side-label") : (""))))]);
  74. // line 29
  75. yield "
  76. <div ";
  77. // line 30
  78. yield $macros["html"]->getTemplateForMacro("macro_attributes", $context, 30, $this->getSourceContext())->macro_attributes(...[(isset($context["wrapper_attr"]) || array_key_exists("wrapper_attr", $context) ? $context["wrapper_attr"] : (function () { throw new RuntimeError('Variable "wrapper_attr" does not exist.', 30, $this->source); })())]);
  79. yield ">
  80. <div class=\"ibexa-input-text-wrapper__input-wrapper\">
  81. ";
  82. // line 32
  83. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  84. // line 33
  85. yield " <div class=\"ibexa-input-text-wrapper__actions\">
  86. ";
  87. // line 34
  88. yield from $this->unwrap()->yieldBlock('actions', $context, $blocks);
  89. // line 77
  90. yield " </div>
  91. </div>
  92. ";
  93. // line 79
  94. yield from $this->unwrap()->yieldBlock('right_side_label', $context, $blocks);
  95. // line 88
  96. yield " ";
  97. yield from $this->unwrap()->yieldBlock('extra_content', $context, $blocks);
  98. // line 89
  99. yield "</div>
  100. ";
  101. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  102. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103. yield from [];
  104. }
  105. // line 32
  106. /**
  107. * @return iterable<null|scalar|\Stringable>
  108. */
  109. public function block_content(array $context, array $blocks = []): iterable
  110. {
  111. $macros = $this->macros;
  112. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  114. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  116. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118. yield from [];
  119. }
  120. // line 34
  121. /**
  122. * @return iterable<null|scalar|\Stringable>
  123. */
  124. public function block_actions(array $context, array $blocks = []): iterable
  125. {
  126. $macros = $this->macros;
  127. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
  129. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  130. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
  131. // line 35
  132. yield " <button
  133. type=\"button\"
  134. class=\"btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text ibexa-input-text-wrapper__action-btn ibexa-input-text-wrapper__action-btn--clear\"
  135. tabindex=\"-1\"
  136. ";
  137. // line 39
  138. yield (((($tmp = (isset($context["is_disabled"]) || array_key_exists("is_disabled", $context) ? $context["is_disabled"] : (function () { throw new RuntimeError('Variable "is_disabled" does not exist.', 39, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("disabled") : (""));
  139. yield "
  140. ";
  141. // line 40
  142. if ((($tmp = (isset($context["should_clear_button_send_form"]) || array_key_exists("should_clear_button_send_form", $context) ? $context["should_clear_button_send_form"] : (function () { throw new RuntimeError('Variable "should_clear_button_send_form" does not exist.', 40, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  143. yield "data-send-form-after-clearing";
  144. }
  145. // line 41
  146. yield " >
  147. <svg class=\"ibexa-icon ibexa-icon--tiny-small\">
  148. <use xlink:href=\"";
  149. // line 43
  150. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("discard");
  151. yield "\"></use>
  152. </svg>
  153. </button>
  154. ";
  155. // line 46
  156. if ((($tmp = (isset($context["is_password_input"]) || array_key_exists("is_password_input", $context) ? $context["is_password_input"] : (function () { throw new RuntimeError('Variable "is_password_input" does not exist.', 46, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  157. // line 47
  158. yield " <button
  159. type=\"button\"
  160. class=\"btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text ibexa-input-text-wrapper__action-btn ibexa-input-text-wrapper__action-btn--password-toggler\"
  161. tabindex=\"5\"
  162. ";
  163. // line 51
  164. yield (((($tmp = (isset($context["is_disabled"]) || array_key_exists("is_disabled", $context) ? $context["is_disabled"] : (function () { throw new RuntimeError('Variable "is_disabled" does not exist.', 51, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("disabled") : (""));
  165. yield "
  166. >
  167. <svg class=\"ibexa-icon ibexa-icon--small ibexa-input-text-wrapper__password-show\">
  168. <use xlink:href=\"";
  169. // line 54
  170. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("view");
  171. yield "\"></use>
  172. </svg>
  173. <svg class=\"ibexa-icon ibexa-icon--small ibexa-input-text-wrapper__password-hide d-none\">
  174. <use xlink:href=\"";
  175. // line 57
  176. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("view-hide");
  177. yield "\"></use>
  178. </svg>
  179. </button>
  180. ";
  181. } elseif ((($tmp = // line 60
  182. (isset($context["has_search"]) || array_key_exists("has_search", $context) ? $context["has_search"] : (function () { throw new RuntimeError('Variable "has_search" does not exist.', 60, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  183. // line 61
  184. yield " <button
  185. type=\"";
  186. // line 62
  187. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("search_button_type", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["search_button_type"]) || array_key_exists("search_button_type", $context) ? $context["search_button_type"] : (function () { throw new RuntimeError('Variable "search_button_type" does not exist.', 62, $this->source); })()), "submit")) : ("submit")), "html", null, true);
  188. yield "\"
  189. class=\"btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text ibexa-input-text-wrapper__action-btn ibexa-input-text-wrapper__action-btn--search\"
  190. tabindex=\"-1\"
  191. ";
  192. // line 65
  193. yield (((($tmp = (isset($context["is_disabled"]) || array_key_exists("is_disabled", $context) ? $context["is_disabled"] : (function () { throw new RuntimeError('Variable "is_disabled" does not exist.', 65, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("disabled") : (""));
  194. yield "
  195. >
  196. <svg class=\"ibexa-icon ibexa-icon--small\">
  197. <use xlink:href=\"";
  198. // line 68
  199. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("search");
  200. yield "\"></use>
  201. </svg>
  202. </button>
  203. ";
  204. } elseif ((($tmp = !Twig\Extension\CoreExtension::testEmpty(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 71
  205. (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 71, $this->source); })()), "label", [], "any", false, false, false, 71))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  206. // line 72
  207. yield " <button ";
  208. yield $macros["html"]->getTemplateForMacro("macro_attributes", $context, 72, $this->getSourceContext())->macro_attributes(...[Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 72, $this->source); })()), "attr", [], "any", false, false, false, 72)]);
  209. yield ">";
  210. // line 73
  211. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["extra_btn"]) || array_key_exists("extra_btn", $context) ? $context["extra_btn"] : (function () { throw new RuntimeError('Variable "extra_btn" does not exist.', 73, $this->source); })()), "label", [], "any", false, false, false, 73), "html", null, true);
  212. // line 74
  213. yield "</button>
  214. ";
  215. }
  216. // line 76
  217. yield " ";
  218. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  219. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  220. yield from [];
  221. }
  222. // line 79
  223. /**
  224. * @return iterable<null|scalar|\Stringable>
  225. */
  226. public function block_right_side_label(array $context, array $blocks = []): iterable
  227. {
  228. $macros = $this->macros;
  229. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  230. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "right_side_label"));
  231. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  232. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "right_side_label"));
  233. // line 80
  234. yield " ";
  235. if (array_key_exists("right_side_label", $context)) {
  236. // line 81
  237. yield " <div class=\"ibexa-input-text-wrapper__right-side-label-wrapper\">
  238. <div class=\"ibexa-input-text-wrapper__right-side-label\">
  239. ";
  240. // line 83
  241. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["right_side_label"]) || array_key_exists("right_side_label", $context) ? $context["right_side_label"] : (function () { throw new RuntimeError('Variable "right_side_label" does not exist.', 83, $this->source); })()), "html", null, true);
  242. yield "
  243. </div>
  244. </div>
  245. ";
  246. }
  247. // line 87
  248. yield " ";
  249. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  250. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  251. yield from [];
  252. }
  253. // line 88
  254. /**
  255. * @return iterable<null|scalar|\Stringable>
  256. */
  257. public function block_extra_content(array $context, array $blocks = []): iterable
  258. {
  259. $macros = $this->macros;
  260. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  261. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extra_content"));
  262. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  263. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extra_content"));
  264. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  265. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  266. yield from [];
  267. }
  268. /**
  269. * @codeCoverageIgnore
  270. */
  271. public function getTemplateName(): string
  272. {
  273. return "@admin/ui/component/input_text.html.twig";
  274. }
  275. /**
  276. * @codeCoverageIgnore
  277. */
  278. public function isTraitable(): bool
  279. {
  280. return false;
  281. }
  282. /**
  283. * @codeCoverageIgnore
  284. */
  285. public function getDebugInfo(): array
  286. {
  287. return array ( 289 => 88, 278 => 87, 271 => 83, 267 => 81, 264 => 80, 251 => 79, 240 => 76, 236 => 74, 234 => 73, 230 => 72, 228 => 71, 222 => 68, 216 => 65, 210 => 62, 207 => 61, 205 => 60, 199 => 57, 193 => 54, 187 => 51, 181 => 47, 179 => 46, 173 => 43, 169 => 41, 165 => 40, 161 => 39, 155 => 35, 142 => 34, 120 => 32, 108 => 89, 105 => 88, 103 => 79, 99 => 77, 97 => 34, 94 => 33, 92 => 32, 87 => 30, 84 => 29, 82 => 26, 81 => 25, 80 => 24, 79 => 23, 78 => 22, 77 => 21, 76 => 19, 75 => 18, 73 => 17, 71 => 12, 70 => 11, 69 => 10, 68 => 9, 67 => 8, 65 => 7, 63 => 6, 61 => 5, 59 => 4, 57 => 3, 54 => 2, 52 => 1,);
  288. }
  289. public function getSourceContext(): Source
  290. {
  291. return new Source("{% import '@ibexadesign/ui/component/macros.html.twig' as html %}
  292. {% set is_password_type = type|default('') == 'password' %}
  293. {% set is_password_input = is_password_input|default(is_password_type) %}
  294. {% set has_search = has_search|default(false) %}
  295. {% set is_multiline = is_multiline|default(false) %}
  296. {% set is_disabled = is_disabled|default(false) %}
  297. {% set extra_btn = extra_btn|default({})|merge({
  298. label: extra_btn.label|default(''),
  299. attr: extra_btn.attr|default({})|merge({
  300. type: extra_btn.type|default('button'),
  301. class: (extra_btn.attr.class|default('')
  302. ~ ' btn ibexa-btn ibexa-btn--info ibexa-input-text-wrapper__action-btn--extra-btn'
  303. )|trim
  304. })
  305. }) %}
  306. {% set should_clear_button_send_form = should_clear_button_send_form|default(false) %}
  307. {% set wrapper_attr = wrapper_attr|default({})|merge({
  308. class: (wrapper_attr.class|default('')
  309. ~ ' ibexa-input-text-wrapper'
  310. ~ (has_search ? ' ibexa-input-text-wrapper--search')
  311. ~ (is_password_input ? ' ibexa-input-text-wrapper--password')
  312. ~ (type is defined ? \" ibexa-input-text-wrapper--type-#{type}\")
  313. ~ (extra_btn.label ? ' ibexa-input-text-wrapper--extra-btn')
  314. ~ (is_multiline ? ' ibexa-input-text-wrapper--multiline')
  315. ~ (right_side_label is defined ? ' ibexa-input-text-wrapper--has-right-side-label')
  316. )|trim
  317. }) %}
  318. <div {{ html.attributes(wrapper_attr) }}>
  319. <div class=\"ibexa-input-text-wrapper__input-wrapper\">
  320. {% block content %}{% endblock %}
  321. <div class=\"ibexa-input-text-wrapper__actions\">
  322. {% block actions %}
  323. <button
  324. type=\"button\"
  325. class=\"btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text ibexa-input-text-wrapper__action-btn ibexa-input-text-wrapper__action-btn--clear\"
  326. tabindex=\"-1\"
  327. {{ is_disabled ? 'disabled' }}
  328. {% if should_clear_button_send_form %}data-send-form-after-clearing{% endif %}
  329. >
  330. <svg class=\"ibexa-icon ibexa-icon--tiny-small\">
  331. <use xlink:href=\"{{ ibexa_icon_path('discard') }}\"></use>
  332. </svg>
  333. </button>
  334. {% if is_password_input %}
  335. <button
  336. type=\"button\"
  337. class=\"btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text ibexa-input-text-wrapper__action-btn ibexa-input-text-wrapper__action-btn--password-toggler\"
  338. tabindex=\"5\"
  339. {{ is_disabled ? 'disabled' }}
  340. >
  341. <svg class=\"ibexa-icon ibexa-icon--small ibexa-input-text-wrapper__password-show\">
  342. <use xlink:href=\"{{ ibexa_icon_path('view') }}\"></use>
  343. </svg>
  344. <svg class=\"ibexa-icon ibexa-icon--small ibexa-input-text-wrapper__password-hide d-none\">
  345. <use xlink:href=\"{{ ibexa_icon_path('view-hide') }}\"></use>
  346. </svg>
  347. </button>
  348. {% elseif has_search %}
  349. <button
  350. type=\"{{ search_button_type|default('submit') }}\"
  351. class=\"btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text ibexa-input-text-wrapper__action-btn ibexa-input-text-wrapper__action-btn--search\"
  352. tabindex=\"-1\"
  353. {{ is_disabled ? 'disabled' }}
  354. >
  355. <svg class=\"ibexa-icon ibexa-icon--small\">
  356. <use xlink:href=\"{{ ibexa_icon_path('search') }}\"></use>
  357. </svg>
  358. </button>
  359. {% elseif extra_btn.label is not empty %}
  360. <button {{html.attributes(extra_btn.attr)}}>
  361. {{- extra_btn.label -}}
  362. </button>
  363. {% endif %}
  364. {% endblock %}
  365. </div>
  366. </div>
  367. {% block right_side_label %}
  368. {% if right_side_label is defined %}
  369. <div class=\"ibexa-input-text-wrapper__right-side-label-wrapper\">
  370. <div class=\"ibexa-input-text-wrapper__right-side-label\">
  371. {{ right_side_label }}
  372. </div>
  373. </div>
  374. {% endif %}
  375. {% endblock %}
  376. {% block extra_content %}{% endblock %}
  377. </div>
  378. ", "@admin/ui/component/input_text.html.twig", "/var/www/vhosts/platformv4.alpha.se7enx.com/httpdocs/platformvlegacy4.alpha.se7enx.com/vendor/se7enxweb/admin-ui/src/bundle/Resources/views/themes/admin/ui/component/input_text.html.twig");
  379. }
  380. }