var/cache/dev_h94b6c5d2d84092cf319e762d211cfdb3/twig/e8/e8b3e234c0d113bfd0fdf5115a481597d54c7ba67888e9c6d195ed20d68d94c1.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
  4. use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
  5. use Twig\Error\LoaderError;
  6. use Twig\Error\RuntimeError;
  7. use Twig\Extension\SandboxExtension;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. /* @EnderecoShopware6ClientStore/storefront/layout/meta.html.twig */
  16. class __TwigTemplate_a453829c348ef5139a5ad4db65520160df2d322100959d19b1b7c52152429b60 extends Template
  17. {
  18.     private $source;
  19.     private $macros = [];
  20.     public function __construct(Environment $env)
  21.     {
  22.         parent::__construct($env);
  23.         $this->source $this->getSourceContext();
  24.         $this->blocks = [
  25.             'layout_head_meta_tags' => [$this'block_layout_head_meta_tags'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 2
  31.         return "@WbmTagManagerEcomm/storefront/layout/meta.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EnderecoShopware6ClientStore/storefront/layout/meta.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EnderecoShopware6ClientStore/storefront/layout/meta.html.twig"));
  40.         $this->parent $this->loadTemplate("@WbmTagManagerEcomm/storefront/layout/meta.html.twig""@EnderecoShopware6ClientStore/storefront/layout/meta.html.twig"2);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_layout_head_meta_tags($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta_tags"));
  55.         // line 4
  56.         echo "  <script>
  57.     if (undefined === window.EnderecoIntegrator) {
  58.       window.EnderecoIntegrator = {};
  59.     }
  60.     if (!window.EnderecoIntegrator.onLoad) {
  61.       window.EnderecoIntegrator.onLoad = [];
  62.     }
  63.     window.EnderecoIntegrator.countryCodeToNameMapping = JSON.parse('";
  64.         // line 12
  65.         echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse12), "countryCodeToNameMapping", [], "any"falsefalsefalse12);
  66.         echo "');
  67.     window.EnderecoIntegrator.countryMapping = JSON.parse('";
  68.         // line 13
  69.         echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse13), "countryMapping", [], "any"falsefalsefalse13);
  70.         echo "');
  71.     window.EnderecoIntegrator.countryMappingReverse = JSON.parse('";
  72.         // line 14
  73.         echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse14), "countryMappingReverse", [], "any"falsefalsefalse14);
  74.         echo "');
  75.     window.EnderecoIntegrator.subdivisionCodeToNameMapping = JSON.parse('";
  76.         // line 16
  77.         echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse16), "subdivisionCodeToNameMapping", [], "any"falsefalsefalse16);
  78.         echo "');
  79.     window.EnderecoIntegrator.subdivisionMapping = JSON.parse('";
  80.         // line 17
  81.         echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse17), "subdivisionMapping", [], "any"falsefalsefalse17);
  82.         echo "');
  83.     window.EnderecoIntegrator.subdivisionMappingReverse = JSON.parse('";
  84.         // line 18
  85.         echo sw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse18), "subdivisionMappingReverse", [], "any"falsefalsefalse18);
  86.         echo "');
  87.     function enderecoInitAMS(prefix, config, cb) {
  88.       if (undefined !== window.EnderecoIntegrator.initAMS) {
  89.         var EAO = window.EnderecoIntegrator.initAMS(prefix, config);
  90.         if (cb) {
  91.           cb(EAO);
  92.         }
  93.       } else {
  94.         window.EnderecoIntegrator.onLoad.push(function () {
  95.           var EAO = window.EnderecoIntegrator.initAMS(prefix, config);
  96.           if (cb) {
  97.             cb(EAO);
  98.           }
  99.         });
  100.       }
  101.     }
  102.     function enderecoInitES(prefix, config) {
  103.       if (undefined !== window.EnderecoIntegrator.initEmailServices) {
  104.         window.EnderecoIntegrator.initEmailServices(prefix, config);
  105.       } else {
  106.         window.EnderecoIntegrator.onLoad.push(function () {
  107.           window.EnderecoIntegrator.initEmailServices(prefix, config);
  108.         });
  109.       }
  110.     }
  111.     function enderecoInitPS(prefix, config) {
  112.       if (undefined !== window.EnderecoIntegrator.initEmailServices) {
  113.         window.EnderecoIntegrator.initPersonServices(prefix, config);
  114.       } else {
  115.         window.EnderecoIntegrator.onLoad.push(function () {
  116.           window.EnderecoIntegrator.initPersonServices(prefix, config);
  117.         });
  118.       }
  119.     }
  120.     function enderecoSetConfigValues() {
  121.       window.EnderecoIntegrator.themeName = '';
  122.       window.EnderecoIntegrator.defaultCountrySelect = !!('";
  123.         // line 58
  124.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse58), "defaultCountrySelect", [], "any"falsefalsefalse58), "html"nulltrue);
  125.         echo "');
  126.       window.EnderecoIntegrator.defaultCountry = '";
  127.         // line 59
  128.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse59), "defaultCountry", [], "any"falsefalsefalse59), "html"nulltrue);
  129.         echo "';
  130.       window.EnderecoIntegrator.config.agentName = '";
  131.         // line 60
  132.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse60), "enderecoAgentInfo", [], "any"falsefalsefalse60), "html"nulltrue);
  133.         echo "';
  134.       window.EnderecoIntegrator.config.apiUrl = '";
  135.         // line 61
  136.         echo sw_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/enderecoshopware6clientstore/io.php"), "html"nulltrue);
  137.         echo "';
  138.       window.EnderecoIntegrator.config.apiKey = '";
  139.         // line 62
  140.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse62), "enderecoApiKey", [], "any"falsefalsefalse62), "html"nulltrue);
  141.         echo "';
  142.       window.EnderecoIntegrator.config.showDebugInfo = false;
  143.       window.EnderecoIntegrator.config.remoteApiUrl = '";
  144.         // line 64
  145.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse64), "enderecoRemoteUrl", [], "any"falsefalsefalse64), "html"nulltrue);
  146.         echo "';
  147.       window.EnderecoIntegrator.config.trigger.onblur = !!('";
  148.         // line 65
  149.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse65), "enderecoTriggerOnBlur", [], "any"falsefalsefalse65), "html"nulltrue);
  150.         echo "');
  151.       window.EnderecoIntegrator.config.trigger.onsubmit = !!('";
  152.         // line 66
  153.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse66), "enderecoTriggerOnSubmit", [], "any"falsefalsefalse66), "html"nulltrue);
  154.         echo "');
  155.       window.EnderecoIntegrator.config.ux.smartFill = false;
  156.       window.EnderecoIntegrator.config.ux.checkExisting = false;
  157.       window.EnderecoIntegrator.config.ux.resumeSubmit = !!('";
  158.         // line 69
  159.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse69), "enderecoContinueSubmit", [], "any"falsefalsefalse69), "html"nulltrue);
  160.         echo "');
  161.       window.EnderecoIntegrator.config.ux.useStandardCss = true;
  162.       window.EnderecoIntegrator.config.ux.showEmailStatus = false;
  163.       window.EnderecoIntegrator.config.ux.allowCloseModal = !!('";
  164.         // line 72
  165.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse72), "enderecoAllowCloseIcon", [], "any"falsefalsefalse72), "html"nulltrue);
  166.         echo "');
  167.       window.EnderecoIntegrator.config.ux.confirmWithCheckbox = !!('";
  168.         // line 73
  169.         echo sw_escape_filter($this->envsw_get_attribute($this->env$this->sourcesw_get_attribute($this->env$this->source, ($context["page"] ?? null), "endereco_config", [], "any"falsefalsefalse73), "enderecoConfirmWithCheckbox", [], "any"falsefalsefalse73), "html"nulltrue);
  170.         echo "');
  171.       window.EnderecoIntegrator.config.ux.changeFieldsOrder = true;
  172.       window.EnderecoIntegrator.config.splitStreet = false;
  173.       window.EnderecoIntegrator.countryMappingUrl = '';
  174.       window.EnderecoIntegrator.config.templates.primaryButtonClasses = 'btn btn-primary btn-lg';
  175.       window.EnderecoIntegrator.config.templates.secondaryButtonClasses = 'btn btn-secondary btn-lg';
  176.       window.EnderecoIntegrator.config.texts = {
  177.         popUpHeadline: '";
  178.         // line 80
  179.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.popUpHeadline")));
  180.         echo "',
  181.         popUpSubline: '";
  182.         // line 81
  183.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.popUpSubline")));
  184.         echo "',
  185.         mistakeNoPredictionSubline: '";
  186.         // line 82
  187.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.mistakeNoPredictionSubline")));
  188.         echo "',
  189.         confirmMyAddressCheckbox: '";
  190.         // line 83
  191.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.confirmMyAddressCheckbox")));
  192.         echo "',
  193.         notFoundSubline: '";
  194.         // line 84
  195.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.notFoundSubline")));
  196.         echo "',
  197.         yourInput: '";
  198.         // line 85
  199.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.yourInput")));
  200.         echo "',
  201.         editYourInput: '";
  202.         // line 86
  203.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.editYourInput")));
  204.         echo "',
  205.         ourSuggestions: '";
  206.         // line 87
  207.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.ourSuggestions")));
  208.         echo "',
  209.         useSelected: '";
  210.         // line 88
  211.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.useSelected")));
  212.         echo "',
  213.         confirmAddress: '";
  214.         // line 89
  215.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.confirmAddress")));
  216.         echo "',
  217.         editAddress: '";
  218.         // line 90
  219.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.editAddress")));
  220.         echo "',
  221.         warningText: '";
  222.         // line 91
  223.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.warningText")));
  224.         echo "',
  225.         popupHeadlines: {
  226.           general_address: '";
  227.         // line 93
  228.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.general_address")));
  229.         echo "',
  230.           billing_address: '";
  231.         // line 94
  232.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.billing_address")));
  233.         echo "',
  234.           shipping_address: '";
  235.         // line 95
  236.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.texts.shipping_address")));
  237.         echo "',
  238.         },
  239.         statuses: {
  240.           email_not_correct: '";
  241.         // line 98
  242.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.email_not_correct")));
  243.         echo "',
  244.           email_cant_receive: '";
  245.         // line 99
  246.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.email_cant_receive")));
  247.         echo "',
  248.           email_syntax_error: '";
  249.         // line 100
  250.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.email_syntax_error")));
  251.         echo "',
  252.           email_no_mx: '";
  253.         // line 101
  254.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.email_no_mx")));
  255.         echo "',
  256.           building_number_is_missing: '";
  257.         // line 102
  258.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.building_number_is_missing")));
  259.         echo "',
  260.           building_number_not_found: '";
  261.         // line 103
  262.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.building_number_not_found")));
  263.         echo "',
  264.           street_name_needs_correction: '";
  265.         // line 104
  266.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.street_name_needs_correction")));
  267.         echo "',
  268.           locality_needs_correction: '";
  269.         // line 105
  270.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.locality_needs_correction")));
  271.         echo "',
  272.           postal_code_needs_correction: '";
  273.         // line 106
  274.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.postal_code_needs_correction")));
  275.         echo "',
  276.           country_code_needs_correction: '";
  277.         // line 107
  278.         echo sw_escape_filter($this->env$this->extensions['Shopware\Core\Framework\Adapter\Twig\Extension\SwSanitizeTwigFilter']->sanitize($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("enderecoshopware6clientstore.statuses.country_code_needs_correction")));
  279.         echo "',
  280.         }
  281.       };
  282.       window.EnderecoIntegrator.activeServices = {
  283.         ams: true,
  284.         emailService: false,
  285.         personService: false
  286.       }
  287.       // Execute all function that have been called throughout the page.
  288.       window.EnderecoIntegrator.onLoad.forEach(function (callback) {
  289.         callback();
  290.       });
  291.       window.EnderecoIntegrator.ready = true;
  292.       (function() {
  293.         window.EnderecoIntegrator.\$formScanner = {
  294.           loop: null,
  295.           start: function() {
  296.             this.loop = setInterval( function() {
  297.               document.querySelectorAll('[name=\"endereco_data_marker\"][data-has-object=\"no\"]').forEach( function(MarkerElement) {
  298.                 var formElement = MarkerElement.closest('form');
  299.                 var formId = '';
  300.                 if (formElement.getAttribute('data-endereco-ams-form-id')) {
  301.                   formId = formElement.getAttribute('data-endereco-ams-form-id');
  302.                 } else {
  303.                   formId = (Math.floor(Math.random() * 100) * Date.now()).toString(16);
  304.                   formElement.setAttribute('data-endereco-ams-form-id', formId);
  305.                 }
  306.                 if ('ams' === MarkerElement.value) {
  307.                   var prefix = MarkerElement.getAttribute('data-used-prefix');
  308.                   var countryCodeSelector = MarkerElement.getAttribute('data-country-code-selector');
  309.                   var postalCodeSelector = MarkerElement.getAttribute('data-postal-code-selector');
  310.                   var localitySelector = MarkerElement.getAttribute('data-locality-selector');
  311.                   var streetFullSelector = MarkerElement.getAttribute('data-street-full-selector');
  312.                   var subdivisionCodeSelector = MarkerElement.getAttribute('data-subdivision-code-selector');
  313.                   var isAjax = false;
  314.                   var EAO = window.EnderecoIntegrator.initAMS(
  315.                           {
  316.                             countryCode: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${countryCodeSelector}\"]`,
  317.                             subdivisionCode:  `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${subdivisionCodeSelector}\"]`,
  318.                             postalCode: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${postalCodeSelector}\"]`,
  319.                             locality: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${localitySelector}\"]`,
  320.                             streetFull: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${streetFullSelector}\"]`,
  321.                           }, {
  322.                             name: `ams_\${prefix}_\${formId}`,
  323.                             addressType: 'general_address'
  324.                           }
  325.                   );
  326.                   // If ajax, add click listener.
  327.                   isAjax = 'true' === formElement.getAttribute('data-form-ajax-submit');
  328.                   if (isAjax) {
  329.                     formElement.querySelector('[type=\"submit\"]').addEventListener('click', function(e) {
  330.                       if (EAO.util.shouldBeChecked()) {
  331.                         e.preventDefault();
  332.                         // Resume click after ac is done.
  333.                         window.EnderecoIntegrator.submitResume = function() {
  334.                           EAO.waitUntilReady().then( function() {
  335.                             if(e.target.dispatchEvent(
  336.                                     new EAO.util.CustomEvent(
  337.                                             'click',
  338.                                             {
  339.                                               'bubbles': true,
  340.                                               'cancelable': true
  341.                                             }
  342.                                     )
  343.                             )) {
  344.                               e.target.click();
  345.                             }
  346.                           }).catch();
  347.                         }
  348.                         EAO.util.checkAddress().then().catch(function() {
  349.                           EAO.waitUntilReady().then( function() {
  350.                             if(e.target.dispatchEvent(
  351.                                     new EAO.util.CustomEvent(
  352.                                             'click',
  353.                                             {
  354.                                               'bubbles': true,
  355.                                               'cancelable': true
  356.                                             }
  357.                                     )
  358.                             )) {
  359.                               e.target.click();
  360.                             }
  361.                           }).catch();
  362.                         });
  363.                         return false;
  364.                       }
  365.                     });
  366.                   }
  367.                 }
  368.                 MarkerElement.setAttribute('data-has-object', 'yes');
  369.               });
  370.             }, 1);
  371.           },
  372.           stop: function() {
  373.           }
  374.         }
  375.         window.EnderecoIntegrator.\$formScanner.start();
  376.       })();
  377.     }
  378.     function enderecoLoadAMSConfig() {
  379.       var \$interval = setInterval( function() {
  380.         if (!!window.EnderecoIntegrator.config) {
  381.           enderecoSetConfigValues();
  382.           clearInterval(\$interval);
  383.         }
  384.       }, 1);
  385.     }
  386.   </script>
  387.   ";
  388.         // line 221
  389.         $this->displayParentBlock("layout_head_meta_tags"$context$blocks);
  390.         echo "
  391. ";
  392.         
  393.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  394.         
  395.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  396.     }
  397.     public function getTemplateName()
  398.     {
  399.         return "@EnderecoShopware6ClientStore/storefront/layout/meta.html.twig";
  400.     }
  401.     public function isTraitable()
  402.     {
  403.         return false;
  404.     }
  405.     public function getDebugInfo()
  406.     {
  407.         return array (  413 => 221,  296 => 107,  292 => 106,  288 => 105,  284 => 104,  280 => 103,  276 => 102,  272 => 101,  268 => 100,  264 => 99,  260 => 98,  254 => 95,  250 => 94,  246 => 93,  241 => 91,  237 => 90,  233 => 89,  229 => 88,  225 => 87,  221 => 86,  217 => 85,  213 => 84,  209 => 83,  205 => 82,  201 => 81,  197 => 80,  187 => 73,  183 => 72,  177 => 69,  171 => 66,  167 => 65,  163 => 64,  158 => 62,  154 => 61,  150 => 60,  146 => 59,  142 => 58,  99 => 18,  95 => 17,  91 => 16,  86 => 14,  82 => 13,  78 => 12,  68 => 4,  58 => 3,  35 => 2,);
  408.     }
  409.     public function getSourceContext()
  410.     {
  411.         return new Source("{% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  412. {% block layout_head_meta_tags %}
  413.   <script>
  414.     if (undefined === window.EnderecoIntegrator) {
  415.       window.EnderecoIntegrator = {};
  416.     }
  417.     if (!window.EnderecoIntegrator.onLoad) {
  418.       window.EnderecoIntegrator.onLoad = [];
  419.     }
  420.     window.EnderecoIntegrator.countryCodeToNameMapping = JSON.parse('{{ page.endereco_config.countryCodeToNameMapping|raw }}');
  421.     window.EnderecoIntegrator.countryMapping = JSON.parse('{{ page.endereco_config.countryMapping|raw }}');
  422.     window.EnderecoIntegrator.countryMappingReverse = JSON.parse('{{ page.endereco_config.countryMappingReverse|raw }}');
  423.     window.EnderecoIntegrator.subdivisionCodeToNameMapping = JSON.parse('{{ page.endereco_config.subdivisionCodeToNameMapping|raw }}');
  424.     window.EnderecoIntegrator.subdivisionMapping = JSON.parse('{{ page.endereco_config.subdivisionMapping|raw }}');
  425.     window.EnderecoIntegrator.subdivisionMappingReverse = JSON.parse('{{ page.endereco_config.subdivisionMappingReverse|raw }}');
  426.     function enderecoInitAMS(prefix, config, cb) {
  427.       if (undefined !== window.EnderecoIntegrator.initAMS) {
  428.         var EAO = window.EnderecoIntegrator.initAMS(prefix, config);
  429.         if (cb) {
  430.           cb(EAO);
  431.         }
  432.       } else {
  433.         window.EnderecoIntegrator.onLoad.push(function () {
  434.           var EAO = window.EnderecoIntegrator.initAMS(prefix, config);
  435.           if (cb) {
  436.             cb(EAO);
  437.           }
  438.         });
  439.       }
  440.     }
  441.     function enderecoInitES(prefix, config) {
  442.       if (undefined !== window.EnderecoIntegrator.initEmailServices) {
  443.         window.EnderecoIntegrator.initEmailServices(prefix, config);
  444.       } else {
  445.         window.EnderecoIntegrator.onLoad.push(function () {
  446.           window.EnderecoIntegrator.initEmailServices(prefix, config);
  447.         });
  448.       }
  449.     }
  450.     function enderecoInitPS(prefix, config) {
  451.       if (undefined !== window.EnderecoIntegrator.initEmailServices) {
  452.         window.EnderecoIntegrator.initPersonServices(prefix, config);
  453.       } else {
  454.         window.EnderecoIntegrator.onLoad.push(function () {
  455.           window.EnderecoIntegrator.initPersonServices(prefix, config);
  456.         });
  457.       }
  458.     }
  459.     function enderecoSetConfigValues() {
  460.       window.EnderecoIntegrator.themeName = '';
  461.       window.EnderecoIntegrator.defaultCountrySelect = !!('{{ page.endereco_config.defaultCountrySelect }}');
  462.       window.EnderecoIntegrator.defaultCountry = '{{ page.endereco_config.defaultCountry }}';
  463.       window.EnderecoIntegrator.config.agentName = '{{ page.endereco_config.enderecoAgentInfo }}';
  464.       window.EnderecoIntegrator.config.apiUrl = '{{ asset('bundles/enderecoshopware6clientstore/io.php') }}';
  465.       window.EnderecoIntegrator.config.apiKey = '{{ page.endereco_config.enderecoApiKey }}';
  466.       window.EnderecoIntegrator.config.showDebugInfo = false;
  467.       window.EnderecoIntegrator.config.remoteApiUrl = '{{ page.endereco_config.enderecoRemoteUrl }}';
  468.       window.EnderecoIntegrator.config.trigger.onblur = !!('{{ page.endereco_config.enderecoTriggerOnBlur }}');
  469.       window.EnderecoIntegrator.config.trigger.onsubmit = !!('{{ page.endereco_config.enderecoTriggerOnSubmit }}');
  470.       window.EnderecoIntegrator.config.ux.smartFill = false;
  471.       window.EnderecoIntegrator.config.ux.checkExisting = false;
  472.       window.EnderecoIntegrator.config.ux.resumeSubmit = !!('{{ page.endereco_config.enderecoContinueSubmit }}');
  473.       window.EnderecoIntegrator.config.ux.useStandardCss = true;
  474.       window.EnderecoIntegrator.config.ux.showEmailStatus = false;
  475.       window.EnderecoIntegrator.config.ux.allowCloseModal = !!('{{ page.endereco_config.enderecoAllowCloseIcon }}');
  476.       window.EnderecoIntegrator.config.ux.confirmWithCheckbox = !!('{{ page.endereco_config.enderecoConfirmWithCheckbox }}');
  477.       window.EnderecoIntegrator.config.ux.changeFieldsOrder = true;
  478.       window.EnderecoIntegrator.config.splitStreet = false;
  479.       window.EnderecoIntegrator.countryMappingUrl = '';
  480.       window.EnderecoIntegrator.config.templates.primaryButtonClasses = 'btn btn-primary btn-lg';
  481.       window.EnderecoIntegrator.config.templates.secondaryButtonClasses = 'btn btn-secondary btn-lg';
  482.       window.EnderecoIntegrator.config.texts = {
  483.         popUpHeadline: '{{ \"enderecoshopware6clientstore.texts.popUpHeadline\"|trans|sw_sanitize|escape }}',
  484.         popUpSubline: '{{ \"enderecoshopware6clientstore.texts.popUpSubline\"|trans|sw_sanitize|escape }}',
  485.         mistakeNoPredictionSubline: '{{ \"enderecoshopware6clientstore.texts.mistakeNoPredictionSubline\"|trans|sw_sanitize|escape }}',
  486.         confirmMyAddressCheckbox: '{{ \"enderecoshopware6clientstore.texts.confirmMyAddressCheckbox\"|trans|sw_sanitize|escape }}',
  487.         notFoundSubline: '{{ \"enderecoshopware6clientstore.texts.notFoundSubline\"|trans|sw_sanitize|escape }}',
  488.         yourInput: '{{ \"enderecoshopware6clientstore.texts.yourInput\"|trans|sw_sanitize|escape }}',
  489.         editYourInput: '{{ \"enderecoshopware6clientstore.texts.editYourInput\"|trans|sw_sanitize|escape }}',
  490.         ourSuggestions: '{{ \"enderecoshopware6clientstore.texts.ourSuggestions\"|trans|sw_sanitize|escape }}',
  491.         useSelected: '{{ \"enderecoshopware6clientstore.texts.useSelected\"|trans|sw_sanitize|escape }}',
  492.         confirmAddress: '{{ \"enderecoshopware6clientstore.texts.confirmAddress\"|trans|sw_sanitize|escape }}',
  493.         editAddress: '{{ \"enderecoshopware6clientstore.texts.editAddress\"|trans|sw_sanitize|escape }}',
  494.         warningText: '{{ \"enderecoshopware6clientstore.texts.warningText\"|trans|sw_sanitize|escape }}',
  495.         popupHeadlines: {
  496.           general_address: '{{ \"enderecoshopware6clientstore.texts.general_address\"|trans|sw_sanitize|escape }}',
  497.           billing_address: '{{ \"enderecoshopware6clientstore.texts.billing_address\"|trans|sw_sanitize|escape }}',
  498.           shipping_address: '{{ \"enderecoshopware6clientstore.texts.shipping_address\"|trans|sw_sanitize|escape }}',
  499.         },
  500.         statuses: {
  501.           email_not_correct: '{{ \"enderecoshopware6clientstore.statuses.email_not_correct\"|trans|sw_sanitize|escape }}',
  502.           email_cant_receive: '{{ \"enderecoshopware6clientstore.statuses.email_cant_receive\"|trans|sw_sanitize|escape }}',
  503.           email_syntax_error: '{{ \"enderecoshopware6clientstore.statuses.email_syntax_error\"|trans|sw_sanitize|escape }}',
  504.           email_no_mx: '{{ \"enderecoshopware6clientstore.statuses.email_no_mx\"|trans|sw_sanitize|escape }}',
  505.           building_number_is_missing: '{{ \"enderecoshopware6clientstore.statuses.building_number_is_missing\"|trans|sw_sanitize|escape }}',
  506.           building_number_not_found: '{{ \"enderecoshopware6clientstore.statuses.building_number_not_found\"|trans|sw_sanitize|escape }}',
  507.           street_name_needs_correction: '{{ \"enderecoshopware6clientstore.statuses.street_name_needs_correction\"|trans|sw_sanitize|escape }}',
  508.           locality_needs_correction: '{{ \"enderecoshopware6clientstore.statuses.locality_needs_correction\"|trans|sw_sanitize|escape }}',
  509.           postal_code_needs_correction: '{{ \"enderecoshopware6clientstore.statuses.postal_code_needs_correction\"|trans|sw_sanitize|escape }}',
  510.           country_code_needs_correction: '{{ \"enderecoshopware6clientstore.statuses.country_code_needs_correction\"|trans|sw_sanitize|escape }}',
  511.         }
  512.       };
  513.       window.EnderecoIntegrator.activeServices = {
  514.         ams: true,
  515.         emailService: false,
  516.         personService: false
  517.       }
  518.       // Execute all function that have been called throughout the page.
  519.       window.EnderecoIntegrator.onLoad.forEach(function (callback) {
  520.         callback();
  521.       });
  522.       window.EnderecoIntegrator.ready = true;
  523.       (function() {
  524.         window.EnderecoIntegrator.\$formScanner = {
  525.           loop: null,
  526.           start: function() {
  527.             this.loop = setInterval( function() {
  528.               document.querySelectorAll('[name=\"endereco_data_marker\"][data-has-object=\"no\"]').forEach( function(MarkerElement) {
  529.                 var formElement = MarkerElement.closest('form');
  530.                 var formId = '';
  531.                 if (formElement.getAttribute('data-endereco-ams-form-id')) {
  532.                   formId = formElement.getAttribute('data-endereco-ams-form-id');
  533.                 } else {
  534.                   formId = (Math.floor(Math.random() * 100) * Date.now()).toString(16);
  535.                   formElement.setAttribute('data-endereco-ams-form-id', formId);
  536.                 }
  537.                 if ('ams' === MarkerElement.value) {
  538.                   var prefix = MarkerElement.getAttribute('data-used-prefix');
  539.                   var countryCodeSelector = MarkerElement.getAttribute('data-country-code-selector');
  540.                   var postalCodeSelector = MarkerElement.getAttribute('data-postal-code-selector');
  541.                   var localitySelector = MarkerElement.getAttribute('data-locality-selector');
  542.                   var streetFullSelector = MarkerElement.getAttribute('data-street-full-selector');
  543.                   var subdivisionCodeSelector = MarkerElement.getAttribute('data-subdivision-code-selector');
  544.                   var isAjax = false;
  545.                   var EAO = window.EnderecoIntegrator.initAMS(
  546.                           {
  547.                             countryCode: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${countryCodeSelector}\"]`,
  548.                             subdivisionCode:  `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${subdivisionCodeSelector}\"]`,
  549.                             postalCode: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${postalCodeSelector}\"]`,
  550.                             locality: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${localitySelector}\"]`,
  551.                             streetFull: `[data-endereco-ams-form-id=\"\${formId}\"] [name=\"\${streetFullSelector}\"]`,
  552.                           }, {
  553.                             name: `ams_\${prefix}_\${formId}`,
  554.                             addressType: 'general_address'
  555.                           }
  556.                   );
  557.                   // If ajax, add click listener.
  558.                   isAjax = 'true' === formElement.getAttribute('data-form-ajax-submit');
  559.                   if (isAjax) {
  560.                     formElement.querySelector('[type=\"submit\"]').addEventListener('click', function(e) {
  561.                       if (EAO.util.shouldBeChecked()) {
  562.                         e.preventDefault();
  563.                         // Resume click after ac is done.
  564.                         window.EnderecoIntegrator.submitResume = function() {
  565.                           EAO.waitUntilReady().then( function() {
  566.                             if(e.target.dispatchEvent(
  567.                                     new EAO.util.CustomEvent(
  568.                                             'click',
  569.                                             {
  570.                                               'bubbles': true,
  571.                                               'cancelable': true
  572.                                             }
  573.                                     )
  574.                             )) {
  575.                               e.target.click();
  576.                             }
  577.                           }).catch();
  578.                         }
  579.                         EAO.util.checkAddress().then().catch(function() {
  580.                           EAO.waitUntilReady().then( function() {
  581.                             if(e.target.dispatchEvent(
  582.                                     new EAO.util.CustomEvent(
  583.                                             'click',
  584.                                             {
  585.                                               'bubbles': true,
  586.                                               'cancelable': true
  587.                                             }
  588.                                     )
  589.                             )) {
  590.                               e.target.click();
  591.                             }
  592.                           }).catch();
  593.                         });
  594.                         return false;
  595.                       }
  596.                     });
  597.                   }
  598.                 }
  599.                 MarkerElement.setAttribute('data-has-object', 'yes');
  600.               });
  601.             }, 1);
  602.           },
  603.           stop: function() {
  604.           }
  605.         }
  606.         window.EnderecoIntegrator.\$formScanner.start();
  607.       })();
  608.     }
  609.     function enderecoLoadAMSConfig() {
  610.       var \$interval = setInterval( function() {
  611.         if (!!window.EnderecoIntegrator.config) {
  612.           enderecoSetConfigValues();
  613.           clearInterval(\$interval);
  614.         }
  615.       }, 1);
  616.     }
  617.   </script>
  618.   {{ parent() }}
  619. {% endblock %}
  620. ""@EnderecoShopware6ClientStore/storefront/layout/meta.html.twig""/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/EnderecoShopware6ClientStore/src/Resources/views/storefront/layout/meta.html.twig");
  621.     }
  622. }