var/cache/dev/twig/36/36db3fb83260f9452ba5404e1071cca2.php line 35

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* ./base.html.twig */
  14. class __TwigTemplate_5c1bbd8938843e75ed16234bb5aaeac3 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""./base.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""./base.html.twig"));
  35.         // line 1
  36.         echo "<!DOCTYPE html>
  37. <html>
  38.     <head>
  39.         <meta charset=\"UTF-8\">
  40.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  41.         <title>";
  42.         // line 6
  43.         $this->displayBlock('title'$context$blocks);
  44.         echo "</title>
  45.         <!-- Bootstrap 5 cdn -->
  46.         <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\">
  47.         
  48.         <!-- Font Awesome 5 cdn -->
  49.         <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.0.13/css/all.css\" integrity=\"sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp\" crossorigin=\"anonymous\">
  50.         <link rel=\"stylesheet\" href=\"";
  51.         // line 12
  52.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'12$this->source); })()), "request", [], "any"falsefalsefalse12), "schemeAndHttpHost", [], "any"falsefalsefalse12), "html"nulltrue);
  53.         echo "/css/style.css\">
  54.         
  55.         <!-- JQuery 3.3.1 cdn -->
  56.         <script src=\"https://code.jquery.com/jquery-3.3.1.min.js\" integrity=\"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\" crossorigin=\"anonymous\"></script>
  57.         <script src=\"https://getbootstrap.com/docs/5.0/dist/js/bootstrap.bundle.min.js\"></script>
  58.         
  59.       
  60.     </head>
  61.     <body>
  62.         ";
  63.         // line 22
  64.         $this->displayBlock('body'$context$blocks);
  65.         // line 23
  66.         echo "    </body>
  67.     <script>
  68.         \$(document).ready(function() {
  69.             \$('.js-decimal-mask').on('input', function() {
  70.                 // Remove caracteres que não são números ou ponto
  71.                 var sanitized = \$(this).val().replace(/[^0-9.]/g, '');
  72.         
  73.                 // Se houver mais de um ponto, remova os extras
  74.                 if ((sanitized.match(/\\./g) || []).length > 1) {
  75.                     sanitized = sanitized.replace(/\\.+\$/, \"\");
  76.                 }
  77.         
  78.                 // Limita a duas casas decimais
  79.                 var decimalCheck = sanitized.split('.');
  80.                 if (decimalCheck[1] && decimalCheck[1].length > 2) {
  81.                     decimalCheck[1] = decimalCheck[1].substring(0, 2);
  82.                     sanitized = decimalCheck.join('.');
  83.                 }
  84.         
  85.                 // Atualiza o valor no campo
  86.                 \$(this).val(sanitized);
  87.             });
  88.         });
  89.     </script>
  90. </html>
  91. ";
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.         
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  96.     }
  97.     // line 6
  98.     public function block_title($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  105.         echo "Welcome!";
  106.         
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  108.         
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  110.     }
  111.     // line 22
  112.     public function block_body($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  119.         
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  121.         
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123.     }
  124.     public function getTemplateName()
  125.     {
  126.         return "./base.html.twig";
  127.     }
  128.     public function isTraitable()
  129.     {
  130.         return false;
  131.     }
  132.     public function getDebugInfo()
  133.     {
  134.         return array (  130 => 22,  111 => 6,  76 => 23,  74 => 22,  61 => 12,  52 => 6,  45 => 1,);
  135.     }
  136.     public function getSourceContext()
  137.     {
  138.         return new Source("<!DOCTYPE html>
  139. <html>
  140.     <head>
  141.         <meta charset=\"UTF-8\">
  142.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  143.         <title>{% block title %}Welcome!{% endblock %}</title>
  144.         <!-- Bootstrap 5 cdn -->
  145.         <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC\" crossorigin=\"anonymous\">
  146.         
  147.         <!-- Font Awesome 5 cdn -->
  148.         <link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.0.13/css/all.css\" integrity=\"sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp\" crossorigin=\"anonymous\">
  149.         <link rel=\"stylesheet\" href=\"{{ app.request.schemeAndHttpHost }}/css/style.css\">
  150.         
  151.         <!-- JQuery 3.3.1 cdn -->
  152.         <script src=\"https://code.jquery.com/jquery-3.3.1.min.js\" integrity=\"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=\" crossorigin=\"anonymous\"></script>
  153.         <script src=\"https://getbootstrap.com/docs/5.0/dist/js/bootstrap.bundle.min.js\"></script>
  154.         
  155.       
  156.     </head>
  157.     <body>
  158.         {% block body %}{% endblock %}
  159.     </body>
  160.     <script>
  161.         \$(document).ready(function() {
  162.             \$('.js-decimal-mask').on('input', function() {
  163.                 // Remove caracteres que não são números ou ponto
  164.                 var sanitized = \$(this).val().replace(/[^0-9.]/g, '');
  165.         
  166.                 // Se houver mais de um ponto, remova os extras
  167.                 if ((sanitized.match(/\\./g) || []).length > 1) {
  168.                     sanitized = sanitized.replace(/\\.+\$/, \"\");
  169.                 }
  170.         
  171.                 // Limita a duas casas decimais
  172.                 var decimalCheck = sanitized.split('.');
  173.                 if (decimalCheck[1] && decimalCheck[1].length > 2) {
  174.                     decimalCheck[1] = decimalCheck[1].substring(0, 2);
  175.                     sanitized = decimalCheck.join('.');
  176.                 }
  177.         
  178.                 // Atualiza o valor no campo
  179.                 \$(this).val(sanitized);
  180.             });
  181.         });
  182.     </script>
  183. </html>
  184. ""./base.html.twig""/home/manager/simplexsms.com/templates/base.html.twig");
  185.     }
  186. }