PageSourceSearch

https://www.ton.com.br/_frsh/js/e2c5cd12ab519c70980458e550cd58923ed9af3b/island-showdiscountmodal.js

js ton.com.br collected 2026-10-02 05:49:12 UTC 1,636 bytes, 1 lines download raw bytes

1import{a as f}from"./chunk-NWDC3PX3.js";import{a as h}from"./chunk-Y2OOQAXB.js";import{a as m}from"./chunk-RRKXINO3.js";import"./chunk-CQSGVNCK.js";import{a as u}from"./chunk-4NQTLQKP.js";import"./chunk-WQTFFUKH.js";import"./chunk-SAJBHPHX.js";import"./chunk-2KVD4UKK.js";import"./chunk-ROYWX6SW.js";import"./chunk-OE55ZPVY.js";import"./chunk-GFJAYSX6.js";import"./chunk-6C64D6RK.js";import"./chunk-GZHO57QK.js";import"./chunk-HHMMNO2X.js";import{a as r}from"./chunk-EPCRLBXB.js";import{a as l,c as p}from"./chunk-HALDJ3CA.js";import{e as i}from"./chunk-6S7XKKFT.js";import"./chunk-ONOOT4BC.js";function M(o){let e=new URL(globalThis.location.href);e.searchParams.set("coupon",o),globalThis.history.replaceState({},"",e.toString());let t=f()||{};t.coupon=o,sessionStorage.setItem("searchParams",JSON.stringify(t))}function P({couponCode:o,offer:e,label:t}){let[d,s]=l(!1),[S,a]=l(!1);p(()=>{function n(){let c=new URLSearchParams(globalThis.location.search),b=!!c.get("referrer")||!!c.get("coupon");!(localStorage.getItem("IsModalShown")==="true")&&!b&&(s(!0),globalThis.removeEventListener("scroll",n))}return globalThis.addEventListener("scroll",n,{passive:!0}),()=>{globalThis.removeEventListener("scroll",n)}},[]);let g=()=>{M(o),u.value={custom_offer:o,offer:{value:e.percent.toString(),value_type:"percent"}},localStorage.setItem("IsModalShown","true"),s(!1),a(!0)},w=()=>{localStorage.setItem("IsModalShown","true"),s(!1)},v=()=>{a(!1)};return e?.percent?r(i,{children:[r(m,{open:d,percent:Number(e.percent),label:t,onActivate:g,onClose:w}),r(h,{open:S,percent:Number(e.percent),label:t,onClose:v})]}):null}export{P as default};

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.