PageSourceSearch

https://www.smm-world.es/_next/static/chunks/4239.ef1a36aa706b9a4a.js

js smm-world.es collected 2026-10-05 09:35:55 UTC 3,995 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{74239:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var n=s(65542),a=s(86790),i=s(58445);function r(e){let{code:t,percent:s,expiresAt:r,maxUses:l,scopeNextOrderText:o,scopeNextOrdersText:c,limitedTimeText:d,offerTextTemplate:m,endsInTextTemplate:u}=e,h=(0,a.useMemo)(()=>new Date(r).getTime(),[r]),[x,p]=(0,a.useState)(()=>Date.now()),[w,f]=(0,a.useState)(!1),[b,g]=(0,a.useState)(!1),[v,y]=(0,a.useState)(!1),[j,N]=(0,a.useState)(0),k=`couponBannerDismissed:${t}`,S=h-x<=0;(0,a.useEffect)(()=>{if(b||S)return;let e=setInterval(()=>p(Date.now()),1e3);return()=>clearInterval(e)},[b,S]),(0,a.useEffect)(()=>{try{"1"===sessionStorage.getItem(k)&&g(!0)}catch{}},[k]),(0,a.useEffect)(()=>{if(b||S)return;let e=!1,t=()=>{e||(e=!0,requestAnimationFrame(()=>{f(window.scrollY>0);let t=document.querySelector("[data-sticky-cta]");N(t?t.offsetHeight:0),e=!1}))};return t(),window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),window.addEventListener("sticky-cta-change",t),()=>{window.removeEventListener("scroll",t),window.removeEventListener("resize",t),window.removeEventListener("sticky-cta-change",t)}},[b,S]);let E=(0,a.useCallback)(()=>{g(!0);try{sessionStorage.setItem(k,"1")}catch{}},[k]),C=(0,a.useCallback)(async()=>{try{await navigator.clipboard.writeText(t),y(!0),setTimeout(()=>y(!1),2e3)}catch{}},[t]),M=Math.max(0,h-x),_=function(e){if(e<=0)return"00:00:00";let t=Math.floor(e/1e3),s=Math.floor(t/3600),n=Math.floor(t%3600/60),a=e=>e.toString().padStart(2,"0");return`${a(s)}:${a(n)}:${a(t%60)}`}(M),I=M<=0,L=(0,a.useMemo)(()=>{let e="number"==typeof l&&l>0?l:1;return 1===e?o:c.replace("{num}",String(e))},[l,o,c]),$=(0,a.useMemo)(()=>m.replace("{percent}",String(s)).replace("{code}",t),[m,s,t]),D=(0,a.useMemo)(()=>u.replace("{time}",_),[u,_]),z=!I&&w&&!b;return(0,n.jsxs)("div",{"data-coupon-banner":!0,className:`fixed left-0 right-0 p-2 sm:p-3 shadow-lg bg-gradient-to-r from-blue-500 via-blue-500 to-blue-600 text-white transform transition-all duration-500 ease-in-out ${z?"translate-y-0 opacity-100":"translate-y-full opacity-0 pointer-events-none"}`,style:{zIndex:1e4,bottom:j},"aria-hidden":!z,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 pr-8 sm:pr-10",children:[(0,n.jsxs)("div",{className:"min-w-0 text-white/95 font-semibold sm:font-bold text-sm sm:text-base tracking-wide drop-shadow-[0_1px_1px_rgba(0,0,0,0.25)]",children:[(0,n.jsx)(i.wJQ,{className:"hidden sm:inline-block opacity-95 align-[-2px] mr-2"}),(0,n.jsxs)("span",{className:"hidden sm:inline whitespace-normal",children:[d," "]}),(0,n.jsx)("span",{className:"font-extrabold whitespace-normal",children:$}),L?(0,n.jsxs)("span",{className:"hidden sm:inline font-medium text-white/90 whitespace-normal",children:[" "," ",L]}):null]}),(0,n.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,n.jsxs)("button",{type:"button",onClick:C,tabIndex:z?0:-1,className:"inline-flex items-center gap-1.5 font-mono bg-white/15 hover:bg-white/25 text-white px-2.5 py-1 rounded-3xl border border-white/50 transition-colors","aria-label":`Copy coupon code ${t}`,children:[v?(0,n.jsx)(i.CMH,{className:"text-xs","aria-hidden":"true"}):(0,n.jsx)(i.zU_,{className:"text-xs","aria-hidden":"true"}),(0,n.jsx)("span",{className:"font-semibold tracking-wider text-sm",children:t})]}),(0,n.jsxs)("div",{className:"hidden sm:inline-flex items-center gap-2 font-mono bg-white text-blue-700 px-3 py-1 rounded-3xl border border-white/70 shadow-md",children:[(0,n.jsx)("span",{className:"w-2 h-2 rounded-full bg-blue-600 animate-pulse"}),(0,n.jsx)("span",{className:"font-semibold tracking-wider",children:D})]})]})]}),(0,n.jsx)("button",{type:"button",onClick:E,tabIndex:z?0:-1,className:"absolute right-0 top-0 flex h-full min-h-[44px] w-9 sm:w-10 items-center justify-center text-white/80 hover:text-white","aria-label":"Dismiss offer banner",children:(0,n.jsx)(i.QCr,{})})]})}}}]);

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.