1(function () { 2 'use strict'; 3 var config = window.TotobiDiscountConfig; 4 if (!config || !config.endpoint) return; 5 config.send = async function (payload) { 6 var controller = new AbortController(); 7 var timeout = setTimeout(function () { controller.abort(); }, 25000); 8 try { 9 var nonceResponse = await fetch(config.nonceUrl, {credentials: 'same-origin', cache: 'no-store', signal: controller.signal}); 10 var token = await nonceResponse.json(); 11 if (!nonceResponse.ok || !token.success || !token.data.nonce) throw new Error('Nonce unavailable'); 12 var data = new FormData(); 13 Object.keys(payload).forEach(function (key) { data.append(key, payload[key]); }); 14 data.append('totobi_discount', '1'); 15 data.append('_td_nonce', token.data.nonce); 16 var response = await fetch(config.endpoint, {method: 'POST', body: data, credentials: 'same-origin', signal: controller.signal}); 17 var result = await response.json(); 18 if (!response.ok || !result.success || !result.data || result.data.accepted !== true) throw new Error('Lead not accepted'); 19 return result.data; 20 } finally { clearTimeout(timeout); } 21 }; 22})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.