{"product_id":"3907","title":"03907","description":"\u003cdiv class=\"bola-product-box\"\u003e\n\n  \u003cspan data-product-sku\u003eYamaha Mt10 2022\u003c\/span\u003e\n\n  \u003cp class=\"bola-op-title\"\u003eOPORTUNIDADES\u003c\/p\u003e\n\n  \u003cdiv class=\"bola-op-table-wrap\"\u003e\n    \u003ctable class=\"bola-op-table\"\u003e\n      \u003ctbody\u003e\n        \u003ctr\u003e\n          \u003ctd\u003e03907\u003c\/td\u003e\n          \u003ctd\u003e08907\u003c\/td\u003e\n        \u003c\/tr\u003e\n      \u003c\/tbody\u003e\n    \u003c\/table\u003e\n  \u003c\/div\u003e\n\n  \u003cdiv class=\"bola-form-wrap\"\u003e\n    \u003cdiv class=\"bola-field\"\u003e\n      \u003cinput placeholder=\"Nombre Completo\" value=\"\" name=\"ContactForm-name\" id=\"ContactForm-name\" type=\"text\" autocomplete=\"name\" class=\"bola-input\" required\u003e\n      \u003clabel for=\"ContactForm-name\" class=\"bola-label\"\u003eNombre Completo\u003c\/label\u003e\n    \u003c\/div\u003e\n\n    \u003cdiv class=\"bola-field\"\u003e\n      \u003cinput placeholder=\"Número de Celular\" value=\"\" pattern=\"[0-9\\-]*\" name=\"ContactForm-phone\" autocomplete=\"tel\" class=\"bola-input\" id=\"ContactForm-phone\" type=\"tel\" required\u003e\n      \u003clabel for=\"ContactForm-phone\" class=\"bola-label\"\u003eNúmero de Celular\u003c\/label\u003e\n    \u003c\/div\u003e\n  \u003c\/div\u003e\n\n  \u003cdiv class=\"buy-buttons-bar\"\u003e\n\n    \u003c!-- BOTÓN WHATSAPP --\u003e\n    \u003ca class=\"buy-btn buy-btn--wa js-whatsapp-btn\" data-phone=\"5215564202065\" role=\"button\"\u003e\n      \u003cdiv class=\"buy-btn__icon buy-btn__icon--wa\" aria-hidden=\"true\"\u003e\n        \u003csvg viewbox=\"0 0 32 32\"\u003e\n          \u003cpath d=\"M16 2.667c-7.364 0-13.333 5.97-13.333 13.334 0 2.354.627 4.65 1.82 6.667L2.667 29.333l6.89-1.777A13.26 13.26 0 0 0 16 29.333c7.364 0 13.333-5.97 13.333-13.333 0-3.556-1.382-6.897-3.897-9.417A13.24 13.24 0 0 0 16 2.667Zm7.873 19.18c-.333.94-1.94 1.787-2.7 1.827-.694.04-1.567.057-2.533-.16-.587-.133-1.34-.44-2.32-.913-4.087-2.007-6.74-6.693-6.947-7.007-.2-.307-1.653-2.2-1.653-4.2 0-2 .993-2.987 1.347-3.4.353-.413.767-.52 1.02-.52.253 0 .507 0 .733.013.24.013.547-.087.853.653.333.8 1.133 2.773 1.233 2.973.1.2.167.44.033.707-.127.273-.193.447-.38.693-.2.24-.413.54-.587.727-.193.193-.393.4-.173.8.22.4.973 1.6 2.087 2.587 1.433 1.28 2.587 1.693 2.953 1.887.367.193.587.173.8.113.247-.067 1.98-1.16 2.247-1.547.267-.387.513-.327.86-.2.353.133 2.207 1.04 2.587 1.233.38.193.633.287.727.447.093.167.093.973-.24 1.913Z\" fill=\"currentColor\"\u003e\u003c\/path\u003e\n        \u003c\/svg\u003e\n      \u003c\/div\u003e\n\n      \u003cdiv class=\"buy-btn__text buy-btn__text--wa\"\u003e\n        \u003cspan class=\"buy-btn__line-main\"\u003eComprar por WhatsApp\u003c\/span\u003e\n        \u003cspan class=\"buy-btn__line-sub\"\u003eRespuesta rápida\u003c\/span\u003e\n      \u003c\/div\u003e\n    \u003c\/a\u003e\n\n    \u003c!-- BOTÓN TELEGRAM --\u003e\n    \u003ca class=\"buy-btn buy-btn--tg js-telegram-btn\" data-telegram=\"OmarIzquierdo24\" role=\"button\"\u003e\n      \u003cdiv class=\"buy-btn__icon buy-btn__icon--tg\" aria-hidden=\"true\"\u003e\n        \u003csvg viewbox=\"0 0 32 32\"\u003e\n          \u003cpath d=\"M29.707 4.56c-.4-.34-.947-.4-1.547-.16L3.04 15.013c-.64.267-1.027.76-1.027 1.333.013.573.427 1.053 1.08 1.293l6.4 2.307c.733 2.387 1.787 5.333 2.054 6.027.133.36.44.8.867.8.4 0 .707-.28.933-.52l3.573-3.64 6.36 4.733c.307.227.667.347 1.027.347.16 0 .32-.027.467-.08.52-.187.893-.653 1-1.267l4.16-24.267c.133-.707-.093-1.347-.533-1.72ZM11.494 19.64l-.387 4.573-1.693-5.253 16.573-10.64-14.493 11.32Zm4.213 4.973-.893-2.747 2.933-2.987 2.533 1.893-4.573 3.84Zm9.106 1.307-6.053-4.507 9.68-12.053-3.627 16.56Z\" fill=\"currentColor\"\u003e\u003c\/path\u003e\n        \u003c\/svg\u003e\n      \u003c\/div\u003e\n\n      \u003cdiv class=\"buy-btn__text buy-btn__text--tg\"\u003e\n        \u003cspan class=\"buy-btn__line-main\"\u003eComprar por Telegram\u003c\/span\u003e\n        \u003cspan class=\"buy-btn__line-sub\"\u003e@OmarIzquierdo24\u003c\/span\u003e\n      \u003c\/div\u003e\n    \u003c\/a\u003e\n\n  \u003c\/div\u003e\n\u003c\/div\u003e\n\n\u003cscript\u003e\n  document.addEventListener('DOMContentLoaded', function () {\n    const whatsappBtn = document.querySelector('.js-whatsapp-btn');\n    const telegramBtn = document.querySelector('.js-telegram-btn');\n\n    function getName() {\n      return document.querySelector('#ContactForm-name')?.value.trim() || '';\n    }\n\n    function getPhone() {\n      return document.querySelector('#ContactForm-phone')?.value.trim() || '';\n    }\n\n    function getPrizeName() {\n      return document.querySelector('[data-product-sku]')?.innerText.trim() || '';\n    }\n\n    function getSelectedTicket() {\n      const firstCell = document.querySelector('.bola-op-table td');\n      return firstCell ? firstCell.innerText.trim() : '';\n    }\n\n    function getOpportunities() {\n      const cells = document.querySelectorAll('.bola-op-table td');\n\n      return Array.from(cells)\n        .map(function (td) {\n          const value = td.innerText.trim();\n          return value ? '[' + value + ']' : '';\n        })\n        .filter(Boolean)\n        .join(' ');\n    }\n\n    function buildMessage() {\n      const name = getName();\n      const phone = getPhone();\n      const prize = getPrizeName();\n      const selectedTicket = getSelectedTicket();\n      const opportunities = getOpportunities();\n\n      return 'SORTEOS EL BOLA. Hola, Aparte boletos' + '\\n\\n' +\n        '🍀 ' + prize + ' 🍀' + '\\n\\n' +\n        '🎟️ Cada boleto cuesta $150 pesos. Puedes comprar todos los boletos que tú quieras 🎟️' + '\\n\\n' +\n        'Mi boleto seleccionado es el: [' + selectedTicket + ']' + '\\n' +\n        'Mis oportunidades serían' + '\\n' +\n        opportunities + '\\n\\n' +\n        'Nombre: ' + name + '\\n\\n' +\n        '👇 CUENTAS DE PAGO AQUI:' + '\\n' +\n        'https:\/\/sorteoselbola.com\/pages\/pagos' + '\\n\\n' +\n        'Teléfono: ' + phone + '\\n\\n' +\n        'El siguiente paso es:' + '\\n\\n' +\n        'ENVIAR COMPROBANTE DE PAGO' + '\\n\\n' +\n        'FAVOR DE NO MANDAR MÁS MENSAJES *HASTA QUE SE CONFIRME TU PAGO*.' + '\\n' +\n        'PUEDE TARDAR DE 1 a 3 DÍAS.' + '\\n' +\n        'Puedes elegir otro boleto en caso de que ya no esté disponible.';\n    }\n\n    function validateForm() {\n      if (!getName() || !getPhone()) {\n        alert('Por favor ingresa tu nombre completo y número de celular.');\n        return false;\n      }\n\n      return true;\n    }\n\n    if (whatsappBtn) {\n      whatsappBtn.addEventListener('click', function (e) {\n        e.preventDefault();\n\n        if (!validateForm()) return;\n\n        const phoneNumber = whatsappBtn.getAttribute('data-phone');\n        const message = buildMessage();\n        const url = 'https:\/\/wa.me\/' + phoneNumber + '?text=' + encodeURIComponent(message);\n\n        window.open(url, '_blank');\n      });\n    }\n\n    if (telegramBtn) {\n      telegramBtn.addEventListener('click', function (e) {\n        e.preventDefault();\n\n        if (!validateForm()) return;\n\n        const telegramUser = telegramBtn.getAttribute('data-telegram');\n        const message = buildMessage();\n\n        navigator.clipboard.writeText(message).catch(function () {});\n        window.open('https:\/\/t.me\/' + telegramUser, '_blank');\n      });\n    }\n  });\n\u003c\/script\u003e","brand":"ElBola","offers":[{"title":"Default Title","offer_id":46861532856476,"sku":"Yamaha Mt10 2022","price":150.0,"currency_code":"MXN","in_stock":true}],"url":"https:\/\/sorteoselbola.com\/products\/3907","provider":"Sorteos el Bola","version":"1.0","type":"link"}