{"id":9,"date":"2021-03-10T08:31:08","date_gmt":"2021-03-10T08:31:08","guid":{"rendered":"https:\/\/apusthemes.com\/wp-demo\/superio\/checkout\/"},"modified":"2025-05-17T14:54:27","modified_gmt":"2025-05-17T18:54:27","slug":"checkout","status":"publish","type":"page","link":"https:\/\/syldreaguarding.ca\/fr\/checkout\/","title":{"rendered":"V\u00e9rifier"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"9\" class=\"elementor elementor-9\" data-elementor-post-type=\"page\">\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-28cd54c0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"28cd54c0\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f6ed5ec\" data-id=\"f6ed5ec\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-76e9aec1 elementor-widget elementor-widget-text-editor\" data-id=\"76e9aec1\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\"><p><div class=\"woocommerce\"><\/div><\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5cd62d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5cd62d4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5b35f76\" data-id=\"5b35f76\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3014257 elementor-widget elementor-widget-html\" data-id=\"3014257\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    \/\/ Verificar se \u00e9 a vers\u00e3o francesa\n    if (document.documentElement.lang === 'fr' || document.documentElement.lang === 'fr-FR') {\n        \/\/ Selecionar todos os inputs de arquivo\n        const fileInputs = document.querySelectorAll('.thwcfe-checkout-file');\n        \n        fileInputs.forEach(function(originalInput) {\n            \/\/ 1. Criar container principal\n            const container = document.createElement('div');\n            container.className = 'custom-file-container-fr';\n            \n            \/\/ 2. Criar bot\u00e3o personalizado\n            const customButton = document.createElement('button');\n            customButton.type = 'button';\n            customButton.className = 'custom-file-button-fr';\n            customButton.textContent = 'Choisir les fichiers';\n            \n            \/\/ 3. Criar display de status\n            const statusDisplay = document.createElement('span');\n            statusDisplay.className = 'custom-file-status-fr';\n            statusDisplay.textContent = 'Aucun fichier s\u00e9lectionn\u00e9';\n            \n            \/\/ 4. Configurar o input original\n            originalInput.style.display = 'none';\n            originalInput.className += ' hidden-file-input';\n            \n            \/\/ 5. Organizar a estrutura\n            container.appendChild(customButton);\n            container.appendChild(statusDisplay);\n            originalInput.parentNode.insertBefore(container, originalInput);\n            \n            \/\/ 6. Eventos\n            customButton.addEventListener('click', function() {\n                originalInput.click(); \/\/ Disparar o input file original\n            });\n            \n            originalInput.addEventListener('change', function() {\n                if (this.files && this.files.length > 0) {\n                    statusDisplay.textContent = `${this.files.length} fichier(s) s\u00e9lectionn\u00e9(s)`;\n                } else {\n                    statusDisplay.textContent = 'Aucun fichier s\u00e9lectionn\u00e9';\n                }\n            });\n        });\n    }\n});\n<\/script>\n\n\n<style>\n\/* Container principal *\/\n\/*.custom-file-container-fr {*\/\n    \/*display: inline-block;*\/\n    \/*margin-right: 15px;*\/\n    \/*vertical-align: middle;*\/\n\/*}*\/\n\n\/* Bot\u00e3o personalizado *\/\n\/*.custom-file-button-fr {*\/\n    \/*padding: 10px 20px;*\/\n    \/*background: #f8f8f8;*\/\n    \/*border: 1px solid #d6d6d6;*\/\n    \/*border-radius: 4px;*\/\n    \/*color: #333;*\/\n    \/*font-size: 14px;*\/\n    \/*cursor: pointer;*\/\n    \/*transition: all 0.3s;*\/\n\/*}*\/\n\n\/*.custom-file-button-fr:hover {*\/\n\/*    background: #e9e9e9;*\/\n\/*}*\/\n\n\/* Status do arquivo *\/\n.custom-file-status-fr {\n    margin-left: 10px;\n    color: #666;\n    font-size: 13px;\n}\n\n\/* Garantir que o input original est\u00e1 oculto *\/\n.hidden-file-input {\n    display: none !important;\n    visibility: hidden !important;\n    position: absolute !important;\n    left: -9999px !important;\n}\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\t\t<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":3454,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/pages\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/users\/3454"}],"replies":[{"embeddable":true,"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":37,"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/pages\/9\/revisions"}],"predecessor-version":[{"id":11423,"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/pages\/9\/revisions\/11423"}],"wp:attachment":[{"href":"https:\/\/syldreaguarding.ca\/fr\/wp-json\/wp\/v2\/media?parent=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}