PageSourceSearch

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

js dvdfab.cn collected 2026-10-01 11:45:56 UTC 11,002 bytes, 1 lines download raw bytes

1import{u as We,d as U,q as Be,bs as le,N as Re,P as Ge,c as qe,bt as Ve,f as Je,p as Ue,_ as Ke}from"./BJcqSMT3.js";import Ze from"./CAGD1Vdx.js";import Qe from"./D_n6JH7o.js";import{l as Xe,c as z,r as f,t as Ye,B as et,y as tt,m as r,I as K,F as d,s as I,G as Z,as as ve,P as se,H as ie,O as H,L as ot,J as nt,T as at,a1 as lt,u as i,o as s,ae as he,M as ye}from"./CAlMLsb9.js";import"./DrKiPQJy.js";import"./sYKhRYzv.js";const st={class:"lng2-container"},it={class:"lng2-grid"},rt=["aria-disabled","onKeydown"],ct={key:0,class:"lng2-go-label"},ut=["data-index","data-highlight"],dt={class:"lng2-cell-value"},mt={class:"lng2-cell-label"},gt={class:"lng2-cell-desc"},ft={class:"lng2-tips-dlg"},pt=["innerHTML"],vt=["innerHTML"],ht=["innerHTML"],p={30:{en:"$30",de:"30\u20AC",fr:"30\u20AC",ja:"\xA54,280",zh:"$30"},35:{en:"$35",de:"35\u20AC",fr:"35\u20AC",ja:"\xA55,050",zh:"$35"},40:{en:"$40",de:"40\u20AC",fr:"40\u20AC",ja:"\xA55,830",zh:"$40"},45:{en:"$45",de:"45\u20AC",fr:"45\u20AC",ja:"\xA56,600",zh:"$45"},50:{en:"$50",de:"50\u20AC",fr:"50\u20AC",ja:"\xA57,380",zh:"$50"}},yt=[{index:0,value:p[30],label:"",desc:"",highlight:!1},{index:1,value:p[50],label:"",desc:"",highlight:!0},{index:2,value:p[45],label:"",desc:"",highlight:!1},{index:3,value:p[40],label:"",desc:"",highlight:!1},{index:4,value:p[35],label:"",desc:"",highlight:!1},{index:5,value:p[40],label:"",desc:"",highlight:!1},{index:6,value:p[30],label:"",desc:"",highlight:!1},{index:7,value:p[35],label:"",desc:"",highlight:!1}],_e={SF8C26:{coupon:"SF8C26",discount:"$30",discount_ja:"\xA54,280",price:30,price_ja:4280,couponAmount:5,couponAmount_ja:780,index:0},SF8A26:{coupon:"SF8A26",discount:"$35",discount_ja:"\xA55,050",price:35,price_ja:5050,couponAmount:10,couponAmount_ja:1550,index:4},SF8G26:{coupon:"SF8G26",discount:"$40",discount_ja:"\xA55,830",price:40,price_ja:5830,couponAmount:15,couponAmount_ja:2330,index:3},SF8W26:{coupon:"SF8W26",discount:"$45",discount_ja:"\xA56,600",price:45,price_ja:6600,couponAmount:20,couponAmount_ja:3100,index:2},SF8L26:{coupon:"SF8L26",discount:"$50",discount_ja:"\xA57,380",price:50,price_ja:7380,couponAmount:25,couponAmount_ja:3880,index:1}},_t=Xe({__name:"index",props:{frameImg:{type:String,default:""},prizeNormalImg:{type:String,default:""},prizeHighlightImg:{type:String,default:""},goNormalImg:{type:String,default:""},goHoverImg:{type:String,default:""},goDisabledImg:{type:String,default:""},prizes:{type:Array,default:()=>yt},buttonText:{type:String,default:"GO"},pageType:{type:String,default:""},promotionInfo:{type:Object,default:()=>({})},lotteryConfig:{type:Object,default:()=>({promotionId:137,tag:"sf_8th_anniv_26",productLine:"streamfab",elkparams:{}})},mockWinIndex:{type:Number,default:void 0}},emits:["start","spin-end","complete","close"],setup(o,{emit:Ie}){var me,ge,fe;const v=Ie,n=o,{$trace:x}=We(),w=U.common().locale,h=((me=n.lotteryConfig)==null?void 0:me.productLine)||"streamfab",Q=U.product().optionPids,re=z(()=>{var e,t;return(t=(e=Q==null?void 0:Q[h])==null?void 0:e.aio)==null?void 0:t[Ue().value||"win"]}),X=U.common().userProductTagsRes,Y=`promotion_${h}`,A=z(()=>n.pageType==="pop"),m=f(!1),ee=f(!1),S=f(null),T=f(null),O=f(!1),W=f(!1),B=f(!1),b=f({}),xe=[[0,1,2],[7,-1,3],[6,5,4]],R=z(()=>{const e=new Map;for(const t of n.prizes)e.set(t.index,t);return e}),ce=z(()=>{var e;return((e=Je().value)==null?void 0:e.luckyWheelInfo)||{}}),be=e=>{const t=R.value.get(e);return w==="fr"?"":(t==null?void 0:t.label)||ce.value.coupon_off_label||""},Ce=e=>{const t=R.value.get(e);return(t==null?void 0:t.desc)||ce.value.coupon_desc||""},we=e=>{const t=R.value.get(e);if(!t)return"";const a=t.value,l=typeof a=="string"?a:(a==null?void 0:a[w])||(a==null?void 0:a.en)||"";return w==="fr"&&l?"-"+l:l},Ae=e=>{const a=te(e)==="true"&&n.prizeHighlightImg?n.prizeHighlightImg:n.prizeNormalImg;return a?{backgroundImage:`url(${a})`}:{}};function te(e){var t;return T.value===e||S.value===e?"true":m.value||T.value!==null?"false":(t=R.value.get(e))!=null&&t.highlight?"true":"false"}const G=z(()=>m.value?n.goDisabledImg||n.goNormalImg:ee.value&&n.goHoverImg||n.goNormalImg),Se=3,Te=80,oe=8,ue=80,ke=320,Me=200,Ee=e=>1-Math.pow(1-e,3),De=e=>{const t=e/(oe-1);return ue+(ke-ue)*Ee(t)},ne=e=>new Promise(t=>setTimeout(t,e)),Le=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;async function k(e){if(Le()){T.value=e;return}const t=Se*8,a=t+oe,l=((e-(a-1))%8+8)%8;for(const c of Array(t).keys())S.value=(l+c)%8,await ne(Te);for(const c of Array(oe).keys())S.value=(l+t+c)%8,await ne(De(c));S.value=null,T.value=e,await ne(Me)}async function q(){var M,E,D,L,$,j,P;if(m.value)return;if(m.value=!0,T.value=null,S.value=null,v("start"),typeof n.mockWinIndex=="number"){await k(n.mockWinIndex),m.value=!1,v("spin-end",n.mockWinIndex);return}const e=(M=n.lotteryConfig)==null?void 0:M.tag,t=(E=n.lotteryConfig)==null?void 0:E.promotionId,a=re.value,{apiPromotion:l}=Ge(),c=Re();try{const C=(await l.getLottery({lang:w,type:e,ip:U.common().ip,domain:(L=(D=qe())==null?void 0:D.web_domain)==null?void 0:L[w],email:c,product_line:h})).data.value||{};
1if(C.cscode===0){const g=($=C.data)==null?void 0:$.coupon_code,y=g&&_e[g];if(y){b.value=y;const F=y.index,J={expireTime:new Date().getTime()+900*1e3,strText:y.discount,code:g,level:(j=C.data)==null?void 0:j.level,floaterReady:!1};sessionStorage.setItem(e,JSON.stringify(J)),x.traceCustomEvent({event:"click",event_category:"go_draw",promotion_id:[t],event_value:g,ext_params_str_param1:Y,ext_params_str_param5:le((P=X[a])==null?void 0:P.user_tag_type,h),event_label:A.value?"popup":"first"}),v("complete"),await k(F),v("spin-end",F),setTimeout(()=>{var _;O.value=!0,x.traceCustomEvent({event:"show",event_category:"congrats",event_value:g,promotion_id:[t],ext_params_str_param1:Y,ext_params_str_param5:le((_=X[a])==null?void 0:_.user_tag_type,h)})},800)}else sessionStorage.setItem(e,JSON.stringify({expireTime:new Date().getTime()-6e4,text:"thanks",code:"thanks"})),v("complete"),await k(Math.floor(Math.random()*8)),v("spin-end",-1)}else await k(Math.floor(Math.random()*8))}catch{await k(Math.floor(Math.random()*8))}finally{m.value=!1}}const $e=()=>{var e;O.value=!1,document.body.style.overflow="",!A.value&&((e=b.value)!=null&&e.coupon)&&(W.value=!0),v("close")},je=()=>{W.value=!1},Pe=()=>{var e;B.value=!0,x.traceCustomEvent({event:"click",event_category:"go_draw",event_label:"rule",promotion_id:[(e=n.lotteryConfig)==null?void 0:e.promotionId]})},Fe=()=>{var e;B.value=!1,x.traceCustomEvent({event:"click",event_category:"go_draw",event_label:"rule_close",promotion_id:[(e=n.lotteryConfig)==null?void 0:e.promotionId]})},Ne=()=>{var e;x.traceCustomEvent({event:"show",event_category:"go_draw",event_label:"rule",promotion_id:[(e=n.lotteryConfig)==null?void 0:e.promotionId]})},de=Be(),ze=((ge=de.query)==null?void 0:ge.start)==="1"||((fe=de.query)==null?void 0:fe.r_sence)==="lottery_grid",He=()=>{var e;try{const t=(e=n.lotteryConfig)==null?void 0:e.tag;if(!t)return;const a=sessionStorage.getItem(t);if(!a)return;const l=JSON.parse(a);if(!l||!l.code||l.code==="thanks")return;if(!l.expireTime||l.expireTime<=Date.now()){sessionStorage.removeItem(t);return}const c=_e[l.code];c&&(b.value=c,W.value=!0)}catch{}};return Ye(()=>{var e,t;He(),x.traceCustomEvent({event:"show",event_category:"go_draw",promotion_id:[(e=n.lotteryConfig)==null?void 0:e.promotionId],event_label:A.value?"popup":void 0,ext_params_str_param1:Y,ext_params_str_param5:le((t=X[re.value])==null?void 0:t.user_tag_type,h)}),(A.value||ze)&&et(()=>{q(),A.value&&(document.body.style.overflow="hidden")})}),tt(()=>{document.body.style.overflow=""}),(e,t)=>{var M,E,D,L,$,j,P,V,C,g,y,F,ae,J;const a=Ve,l=Ze,c=Qe;return s(),r("div",st,[(E=(M=o.promotionInfo)==null?void 0:M.names)!=null&&E.length&&((D=o.promotionInfo)!=null&&D.rollDesc)?(s(),K(a,{key:0,class:"lng2-marquee",variant:"anniv",names:o.promotionInfo.names,"roll-desc":o.promotionInfo.rollDesc},null,8,["names","roll-desc"])):d("",!0),I("div",{class:ie(["lng2-frame",{"lng2-frame--has-bg":!!o.frameImg}]),style:se(o.frameImg?{backgroundImage:`url(${o.frameImg})`}:{})},[I("div",it,[(s(),r(Z,null,ve(xe,(_,N)=>(s(),r(Z,{key:N},[(s(!0),r(Z,null,ve(_,(u,pe)=>(s(),r(Z,{key:`${N}-${pe}`},[u===-1?(s(),r("div",{key:0,"data-cell":"go",class:ie(["lng2-go",{"lng2-go--disabled":i(m),"lng2-go--has-bg":!!i(G)}]),role:"button",tabindex:"0","aria-disabled":i(m)?"true":"false",style:se(i(G)?{backgroundImage:`url(${i(G)})`}:{}),onClick:q,onKeydown:[he(q,["enter"]),he(ye(q,["prevent"]),["space"])],onMouseenter:t[0]||(t[0]=Oe=>ee.value=!0),onMouseleave:t[1]||(t[1]=Oe=>ee.value=!1)},[i(G)?d("",!0):(s(),r("span",ct,H(o.buttonText),1))],46,rt)):(s(),r("div",{key:1,"data-cell":"prize","data-index":u,"data-highlight":te(u),class:ie(["lng2-cell",{"lng2-cell--has-bg":!!(te(u)==="true"?o.prizeHighlightImg:o.prizeNormalImg)}]),style:se(Ae(u))},[I("div",dt,H(we(u)),1),I("div",mt,H(be(u)),1),I("div",gt,H(Ce(u)),1)],14,ut))],64))),128))],64))),64))])],6),(L=o.promotionInfo)!=null&&L.tips?(s(),r("div",{key:1,class:"lng2-tips-trigger",onClick:Pe},H(o.promotionInfo.tips),1)):d("",!0),(s(),K(lt,{to:"body"},[ot(at,{name:"lng2-tips-fade",onAfterEnter:Ne},{default:nt(()=>{var _,N,u;return[i(B)?(s(),r("div",{key:0,class:"lng2-tips-overlay",onClick:t[2]||(t[2]=ye(pe=>B.value=!1,["self"]))},[I("div",ft,[I("button",{class:"lng2-tips-close",onClick:Fe},"\xD7"),(_=o.promotionInfo)!=null&&_.tipTitle?(s(),r("h3",{key:0,class:"lng2-tips-title",innerHTML:o.promotionInfo.tipTitle},null,8,pt)):d("",!0),(N=o.promotionInfo)!=null&&N.tipDesc?(s(),r("ul",{key:1,class:"lng2-tips-desc",innerHTML:o.promotionInfo.tipDesc},null,8,vt)):d("",!0),(u=o.promotionInfo)!=null&&u.tipExtra?(s(),r("p",{key:2,class:"lng2-tips-extra",innerHTML:o.promotionInfo.tipExtra},null,8,ht)):d("",!0)])])):d("",!0)]}),_:1})])),i(O)?(s(),K(l,{key:2,"select-info":i(b),"show-success-dlg":i(O),names:(($=o.promotionInfo)==null?void 0:$.names)||[],"roll-desc":((j=o.promotionInfo)==null?void 0:j.rollDesc)||"","coupon-desc":((P=o.promotionInfo)==null?void 0:P.selectCouponDesc)||"","btn-label":((V=o.promotionInfo)==null?void 0:V.selectBtnLabel)||"","footer-text":((C=o.promotionInfo)==null?void 0:C.footerText)||"","coupon-dlg-bg":((g=o.promotionInfo)==null?void 0:g.couponDlgBg)||"","lottery-tag":(y=o.lotteryConfig)==null?void 0:y.tag,elkparams:((F=o.lotteryConfig)==null?void 0:F.elkparams)||{},"promotion-id":(ae=o.lotteryConfig)==null?void 0:ae.promotionId,"product-line":i(h),onClose:$e},null,8,["select-info","show-success-dlg","names","roll-desc","coupon-desc","btn-label","footer-text","coupon-dlg-bg","lottery-tag","elkparams","promotion-id","product-line"])):d("",!0),i(W)&&((J=i(b))!=null&&J.coupon)?(s(),K(c,{key:3,"select-info":i(b),"lottery-config":o.lotteryConfig,"promotion-info":o.promotionInfo,onClose:je},null,8,["select-info","lottery-config","promotion-info"])):d("",!0)])}}}),St=Ke(_t,[["__scopeId","data-v-206d7205"]]);export{St 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.