PageSourceSearch

https://s.dvdfab.cn/dist/202603/_nuxt3/QV8JoOha.js

js dvdfab.cn collected 2026-10-01 11:45:38 UTC 4,418 bytes, 1 lines download raw bytes

1import{l as Y,c as i,r as n,v as R,t as j,B as O,y as Z,I as ee,J as te,T as ne,o as r,m as w,F as W,s as o,O as y,P as ae,H as oe,G as se,as as ue}from"./CAlMLsb9.js";import{q as P,v as ie,aF as le,aG as ce,aH as re,aI as de,aJ as ve,_ as fe}from"./BJcqSMT3.js";import"./DrKiPQJy.js";import"./sYKhRYzv.js";const me={class:"coupon-banner-container"},pe={class:"coupon-banner-time"},he={class:"time-block"},_e={class:"time-block"},Ce={class:"time-block"},we={class:"time-block"},ye=["innerHTML"],be=["innerHTML"],xe="\u3010GW\u9650\u5B9A\u30FB\u305F\u307E\u3054\u5272\u308A\u7279\u5178\u3011<span>{discount}</span>\u9069\u7528\u4E2D\uFF01\u30DA\u30FC\u30B8\u5185\u306E\u5168\u88FD\u54C1\u304C\u3055\u3089\u306B\u304A\u5F97\u306B\u3002\u30AB\u30A6\u30F3\u30C8\u30C0\u30A6\u30F3\u7D42\u4E86\u307E\u3067\u306B\u30C1\u30A7\u30C3\u30AF\uFF01",Te=50,ke=Y({__name:"index",props:{visible:{type:Boolean},blockData:{},couponCode:{},expireTime:{},discountText:{}},emits:["update:visible"],setup(U,{emit:G}){const t=U,g=G,z=typeof P=="function"?P():{query:{}},s=i(()=>{var e;return typeof window>"u"?!1:((e=z.query)==null?void 0:e.debugBanner)==="1"}),V=n("DEBUG_COUPON"),K=n("2,200\u5186OFF"),D=n(0),d=i(()=>s.value||!!t.visible),b=n(0),v=n(null),B=n(null),x=i(()=>s.value?D.value:t.expireTime&&t.expireTime>0?t.expireTime:v.value?v.value:b.value||Date.now()+(t.blockData.durationMs??15*6e4)),F=i(()=>s.value?V.value:t.couponCode||B.value||""),N=i(()=>s.value?K.value:t.discountText||""),f=i(()=>{let e=t.blockData.htmlText;return!e&&s.value&&(e=xe),e?e.replaceAll("{discount}",N.value||""):""});function J(){if(typeof document>"u")return;const e=document.getElementById("discount1")||document.getElementById("aio");if(!e)return;const a=e.getBoundingClientRect(),u=window.pageYOffset||document.documentElement.scrollTop,C=a.top+u;window.scrollTo({top:C-190,behavior:"smooth"})}const M=n(null),L=n(null),l=n(!1),T=n(0),k=n(0),A=n(0);function m(){const e=M.value,a=L.value;if(!e||!a){l.value=!1;return}const u=a.scrollWidth,C=e.clientWidth;if(u>C?l.value=!0:l.value=!1,!l.value){T.value=0,k.value=0;return}k.value=u;const X=Math.ceil(C/u)+1;T.value=Math.max(1,X-1),A.value=Math.max(2,u/Te)}const $=i(()=>l.value?{"--marquee-shift":`-${k.value}px`,"--marquee-duration":`${A.value}s`}:void 0),p=n(d.value?Math.max(0,x.value-Date.now()):0);let h=null;const c=()=>{h&&(clearInterval(h),h=null)},q=()=>{const e=x.value-Date.now();if(e<=0){p.value=0,c(),s.value||(S(),g("update:visible",!1));return}p.value=e};function Q(){if(s.value)return;const e=t.blockData.storageKey;if(e){const a=ce(e);a&&(!t.expireTime||t.expireTime<=0)&&(v.value=a.expireTime,B.value=a.couponCode)}!t.expireTime&&!v.value&&!b.value&&(b.value=Date.now()+(t.blockData.durationMs??15*6e4)),e&&re
1(e,{expireTime:x.value,couponCode:F.value})}function S(){const e=t.blockData.storageKey;e&&de(e)}const H=()=>{c(),Q(),q(),!(p.value<=0)&&(h=ie(q,1e3))},_=i(()=>ve(p.value)),E=async()=>{if(s.value)return;const e=F.value;if(e)try{await le(e)&&(c(),S(),g("update:visible",!1))}catch{}},I=()=>{typeof document<"u"&&document.visibilityState==="visible"&&E()};return R(d,e=>{e?H():c()},{immediate:!1}),R(f,()=>{O(()=>m())}),j(()=>{s.value&&(D.value=Date.now()+15*6e4),d.value&&H(),typeof window<"u"&&(window.addEventListener("pageshow",E),document.addEventListener("visibilitychange",I),window.addEventListener("resize",m)),O(()=>m())}),Z(()=>{c(),typeof window<"u"&&(window.removeEventListener("pageshow",E),document.removeEventListener("visibilitychange",I),window.removeEventListener("resize",m))}),(e,a)=>(r(),ee(ne,{name:"coupon-banner"},{default:te(()=>[d.value?(r(),w("div",{key:0,class:"coupon-banner",onClick:J},[o("div",me,[o("div",pe,[o("span",he,y(_.value.m[0]),1),o("span",_e,y(_.value.m[1]),1),a[0]||(a[0]=o("span",{class:"separator"},[o("i",{class:"separator-dot"}),o("i",{class:"separator-dot"})],-1)),o("span",Ce,y(_.value.s[0]),1),o("span",we,y(_.value.s[1]),1)]),f.value?(r(),w("div",{key:0,ref_key:"descWrapRef",ref:M,class:"font-desc-wrap"},[o("div",{class:oe(["font-desc",{"is-marquee":l.value}]),style:ae($.value)},[o("span",{ref_key:"descItemRef",ref:L,class:"font-desc-item",innerHTML:f.value},null,8,ye),(r(!0),w(se,null,ue(T.value,u=>(r(),w("span",{key:u,class:"font-desc-item","aria-hidden":"true",innerHTML:f.value},null,8,be))),128))],6)],512)):W("",!0)])])):W("",!0)]),_:1}))}}),Fe=fe(ke,[["__scopeId","data-v-41354425"]]);export{Fe 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.