PageSourceSearch

https://floky.com/assets/PromoBanner-RkfWUuZO.js

js floky.com collected 2026-10-07 16:55:46 UTC 2,502 bytes, 1 lines download raw bytes

1import{i as e,t}from"./jsx-runtime-DUAcabCT.js";import{t as n}from"./react-6OGjdfot.js";import{t as r}from"./sparkles-Ck_ofKIb.js";import{r as i}from"./tracker-DngANo7t.js";var a=`floky-promo-override`,o=`auto`;function s(){if(typeof window>`u`)return!1;let e=window.location.hostname;return e===`localhost`||e===`127.0.0.1`||e.endsWith(`.lovable.app`)||e.endsWith(`.lovableproject.com`)}function c(){if(!s())return null;let e=window.localStorage.getItem(a);return e===`auto`||e===`on`||e===`off`?e:null}function l(){return c()??`auto`}var u=`ripartenza-agosto-2026`,d=2,f=Date.UTC(2026,7,24,0-d,0,0),p=Date.UTC(2026,7,31,23-d,59,59),m=`31 agosto`;function h(e=Date.now()){let t=l();return t===`on`?!0:t===`off`?!1:e>=f&&e<=p}function g(e=Date.now()){let t=h(e);return{threshold:t?2:3,pct:15,promo:t}}var _=e(n(),1),v=t();function y({variant:e=`band`,placement:t=`generic`,className:n=``}){let[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(()=>({threshold:g(0).threshold,pct:g(0).pct}));(0,_.useEffect)(()=>{o(h());let e=g();c({threshold:e.threshold,pct:e.pct})},[]);let{threshold:l,pct:d}=s;return(0,_.useEffect)(()=>{a&&i(`promo_seen`,`promo_seen_${t}`,{campaign:u,placement:t,threshold:l,pct:d})},[a,t,l,d]),a?e===`inline`?(0,v.jsxs)(`div`,{className:`flex items-start gap-2 rounded-lg border border-[#d4ff00] bg-[#d4ff00]/15 px-3 py-2 ${n}`,children:[(0,v.jsx)(r,{className:`mt-0.5 h-4 w-4 shrink-0 text-black`,strokeWidth:2}),(0,v.jsxs)(`p`,{className:`text-[13px] leading-snug text-black`,children:[(0,v.jsx)(`span`,{className:`font-bold uppercase`,children:`Promo ripartenza`}),` `,`— aggiungi almeno `,(0,v.jsxs)(`b`,{children:[l,` prodotti`]}),` e ottieni`,` `,(0,v.jsxs)(`b`,{children:[`−`,d,`%`]}),` sull'intero ordine. Nessun codice, sconto automatico al checkout fino al `,m,`.`]})]}):(0,v.jsx)(`section`,{className:`bg-[#d4ff00] text-black ${n}`,children:(0,v.jsx)(`div`,{className:`container mx-auto max-w-[1400px] px-4 md:px-8 py-4 md:py-5`,children:(0,v.jsxs)(`div`,{className:`flex flex-col items-center gap-1 text-center md:flex-row md:justify-center md:gap-4`,children:[(0,v.jsxs)(`p`,{className:`text-sm font-bold uppercase tracking-[0.18em] md:text-base`,children:[`Riapertura della stagione — −`,d,`%`]}),(0,v.jsxs)(`p`,{className:`text-[13px] md:text-sm`,children:[`Aggiungi almeno `,(0,v.jsxs)(`b`,{children:[l,` prodotti`]}),` al carrello: lo sconto si applica in automatico al checkout, fino al `,m,`.`]})]})})}):null}export{g as a,a as i,m as n,h as o,o as r,y as t};

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.