PageSourceSearch

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

js dvdfab.cn collected 2026-10-01 11:47:29 UTC 10,807 bytes, 1 lines download raw bytes

1import rt from"./CetlwuBU.js";import{l as lt,c as T,r,U as Se,v as ut,t as pt,B,y as mt,m as X,R as dt,I as Ce,F as j,S as gt,u as c,s as w,P as Te,O as ft,H as ze,o as D}from"./CQFj2rK5.js";import{D as _t}from"./DPlMJVdI.js";import{b as _,d as V,x as vt,r as Pe,k as ht,y as $e,aU as R,aV as Be,A as xt,u as yt,S as wt,j as W,_ as bt}from"./CCBpn2jN.js";import"./_DaKjOLS.js";import"./C-PlcRpI.js";const kt=["innerHTML"],It={class:"lucky-head"},St=["innerHTML"],Ct=!0,Tt=lt({__name:"index",props:{pageType:{type:String,default:""},userTypeTag:{type:String,default:""},promotionInfo:{type:Object,default:()=>{}}},emits:["complete","close"],setup(De,{emit:Ae}){var me,de,ge,fe,_e,ve;const A=Ae,v=De,h=_.common().locale,Z=V().value.common;_.product().currency[h];const{$trace:M}=vt(),I=_.product().optionPids,Me=T(()=>{var t;return(t=I==null?void 0:I.streamfab)==null?void 0:t.aio[W().value||"win"]}),Ee=T(()=>{var t;return(t=I==null?void 0:I.musicfab)==null?void 0:t.aio[W().value||"win"]}),b=_.promotion().productLine,Fe=T(()=>b==="musicfab"),ee=r(V().value.luckyWheelInfo.btn_text),k=r("lg"),z=r(Ct),E={musicfab:{aioPid:Ee.value,promotionId:77,tag:"mf_school_season_25",discout:"mf_school_season_25",ext_params_str_param1:"promotion_musicfab",aioName:"Musicfab All-In-One",imgDir:`${Pe().value}/musicfab/promotion/mf_school_season_25`},streamfab:{aioPid:Me.value,promotionId:76,tag:"sf_school_season_25",discount:"sf_school_season_25",ext_params_str_param1:"promotion_streamfab",aioName:"StreamFab All-In-One",imgDir:`${Pe().value}/musicfab/promotion/mf_anniversary_25`}},a=Se({});a.value=E[b]||(E==null?void 0:E.musicfab);const x=(me=a.value)==null?void 0:me.imgDir,J={smile:{top:"20%",width:"40%",height:"40%"},coupon:{top:"22%",width:"75%",height:"40%"},bg:{top:"0",width:"100%",height:"100%"}},F={src:`${x}/smile.png`,...J.smile},d={src:`${x}/coupon.png`,...J.coupon},u={src:`${x}/prize_normal.png`,...J.bg,activeSrc:`${x}/prize_hover.png`},te={fontSize:"14px",lineHeight:"1.1",fontColor:"#934D00"},g={text:Z.coupons,top:"80%",...te},H={text:Z.thanks,top:"80%",...te},He={top:"45%",fontSize:"18px",lineHeight:"1.1",fontColor:"#ffffff"},Ne=[25,30,35,40,45],Le={25:"3630",30:"4230",35:"4950",40:"5680",45:"6400"},m={};Ne.forEach(t=>{let e="$"+t;["de","fr"].includes(h)?e=t+"\u20AC":h=="ja"&&(e="\xA5"+Le[t]),m[t]={text:e,...He}}),ut(()=>k,t=>{z.value=!1,B(()=>{z.value=!0})},{immediate:!0});const oe=r([{x:0,y:0,imgs:[u,d],fonts:[g,m[25]]},{x:1,y:0,imgs:[u,d],fonts:[g,m[45]]},{x:2,y:0,imgs:[u,F],fonts:[H]},{x:2,y:1,imgs:[u,d],fonts:[g,m[35]]},{x:2,y:2,imgs:[u,d],fonts:[g,m[40]]},{x:1,y:2,imgs:[u,d],fonts:[g,m[25]]},{x:0,y:2,imgs:[u,d],fonts:[g,m[30]]},{x:0,y:1,imgs:[u,F],fonts:[H]}]),Oe=[{x:0,y:0,imgs:[u,d],fonts:[g,m[25]]},{x:1,y:0,imgs:[u,d],fonts:[g,m[45]]},{x:2,y:0,imgs:[u,F],fonts:[H]},{x:2,y:1,imgs:[u,d],fonts:[g,m[35]]},{x:2,y:2,imgs:[u,d],fonts:[g,m[40]]},{x:1,y:2,imgs:[u,d],fonts:[g,m[25]]},{x:0,y:2,imgs:[u,d],fonts:[g,m[30]]},{x:0,y:1,imgs:[u,F],fonts:[H]}],se={width:"402px",height:"372px"},ne={width:"402px",height:"372px"},N=r({width:"402px",height:"372px"}),ae=r({width:"402px",height:"372px"}),Ue=[{padding:"32px",imgs:[{src:`${x}/lucky_border.png`,width:"402px",height:"372px"}]}],ie=r([{padding:"32px",imgs:[{src:`${x}/lucky_border.png`,width:"402px",height:"372px"}]}]),ce=r(),je=[{radius:"35%",x:1,y:1,imgs:[{top:"0",src:`${x}/go_normal.png`,width:"110px",height:"100px"}],fonts:[{text:ee,top:"20%",fontSize:"30px",fontWeight:"600",fontColor:"#9C1921"}]}],re=r({width:"110px",height:"100px",top:"calc(50% - 50px)",fontSize:["de","fr","zh","ja"].includes(h)?"30px":"48px"}),q={},le=t=>{let e,o;t==="musicfab"?e=["MFBS25","MFBT25","MFBC25","MFBH25"]:e=["SFBS25","SFBT25","SFBC25","SFBH25"],o=[30,35,40,45];const n=["\xA54230","\xA54950","\xA55680","\xA56400"],i=[4230,4950,5680,6400],s=["deg-30","deg-35","deg-40","deg-45"],l=[[6],[3],[4],[1]],f={};for(let p=0;p<e.length;p++)f[e[p]]={coupon:e[p],discount:`$${o[p]}`,discount_ja:n[p],price:o[p],price_ja:i[p],class:s[p],index:l[p]};return f},Ve=Fe.value?le("musicfab"):le("streamfab"),P=r(!1);Se({info:{}});const Re=r(""),ue=r("");ue.value=V().value.musicfabPromotion.pick_win;const We=r(V().value.luckyWheelInfo.lucky_main_title),Je=t=>{var i,s;if(!t)return"";const e=(s=(i=_.product())==null?void 0:i.currency)==null?void 0:s[h],o=wt(h,e[1],t)+"";let n=o.replace(e[1],`<span>${e[1]}</span>`);
1if(o.includes(",")){const l=o.split(",");n=l[0]+l[1].substr(l[1].length-1)}else n=o.split(".")[0];return n.replace(e[1],`<span>${e[1]}</span>`)},qe=r(`${x}/go_normal.png`),S=r({}),G=r(null),Ge=r(""),Ye=r(""),$=r(!1),Ke=t=>{W().value,Ye.value="",B(()=>{setTimeout(()=>{var o,n,i,s;P.value=!0;const e=(o=a.value)==null?void 0:o.aioPid;M.traceCustomEvent({event:"show",event_category:"congrats",event_value:S.value.coupon,promotion_id:[(n=a.value)==null?void 0:n.promotionId],ext_params_str_param1:(i=a.value)==null?void 0:i.ext_params_str_param1,ext_params_str_param5:R((s=L[e])==null?void 0:s.user_tag_type,b)})},2e3)})},y=T(()=>(v==null?void 0:v.pageType)=="pop"),Y=(t,e)=>{setTimeout(()=>{G.value.stop(t)},200)},K=()=>{const t=document.documentElement.clientWidth,e=.8;let o=1;t>1024?(o=1,k.value="lg"):t>900&&t<=1024?(k.value="nml",o=e):t>768&&t<=900?(k.value="md",o=Math.pow(e,2)):t>640&&t<=768||t>475&&t<=640?(k.value="sm",o=e):(k.value="xs",o=Math.pow(e,1)),Qe(o)},Qe=t=>{for(const e in se){const n=parseInt(se[e])*t;N.value[e]=n+"px"}for(const e in ne){const n=parseInt(ne[e])*t;ae.value[e]=n+"px"}ie.value=[...Ue].map(e=>{const o={...e},n=parseInt("32")*t+"px",i=parseInt(e.imgs[0].width)*t,s=parseInt(e.imgs[0].height)*t,l=[...e.imgs].map(f=>({...f}));return l[0].width=i+"px",l[0].height=s+"px",o.imgs=l,o.padding=n,o}),oe.value=[...Oe].map(e=>{const o={...e},n=[...e.fonts].map(i=>{const s={...i};return s.fontSize=parseInt(s.fontSize)*t+"px",s});return o.fonts=n,o.imgs=e.imgs,o}),ce.value=je.map(e=>{const o={...e},n=e.imgs.map(i=>{const s={...i};s.width=parseInt(s.width)*t+"px",s.height=parseInt(s.height)*t+"px";const l=parseInt(s.height)/2;s.top=`calc(50% - ${l}px)`;const f=parseInt(s.height)-parseInt(s.width);(parseInt(N.value.height)-parseInt(s.height))/2-f;const p=["de","fr"].includes(h)?42*t:48*t;return re.value={width:s.width,height:s.height,top:`calc(50% - ${l}px)`,fontSize:p+"px"},s});return o.imgs=n,o}),z.value=!1,B(()=>{z.value=!0})},Xe=T(()=>{var o;const t=sessionStorage.getItem((o=a==null?void 0:a.value)==null?void 0:o.tag),e=t?JSON.parse(t):null;return e?{canUse:!0,info:e}:{canUse:!1,info:null}}),L=_.common().userProductTagsRes,Ze=()=>{var i,s,l,f;const t=(i=a.value)==null?void 0:i.aioPid,e={event:"click",event_category:"go_draw",promotion_id:[(s=a.value)==null?void 0:s.promotionId],ext_params_str_param1:(l=a.value)==null?void 0:l.ext_params_str_param1,ext_params_str_param5:R((f=L[t])==null?void 0:f.user_tag_type,b)};y.value?e.event_label="popup_close":e.event_label="close",M.traceCustomEvent(e);const o=`pop_${_.promotion().productLine}_${_.promotion().cookieSuffix}`;Be(o,"click",7);const n=`close_${_.promotion().productLine}_${_.promotion().cookieSuffix}`;Be(n,"close",2),document.body.style.overflow="",A("close")},Q=()=>{var n,i,s;if($.value)return!1;$.value=!0;const t=Xe.value,e=$e();B(()=>{G.value.play()});const{apiPromotion:o}=xt();o.getLottery({lang:h,type:(n=a==null?void 0:a.value)==null?void 0:n.tag,ip:_.common().ip,domain:(s=(i=yt())==null?void 0:i.web_domain)==null?void 0:s[h],email:e,product_line:b}).then(l=>{var p,he,xe,ye,we,be,ke;const f=l.data.value||{};if(f.cscode===0){const O=f.data.coupon_code;if(O){S.value=Ve[O];const C=((p=q==null?void 0:q.locale)==null?void 0:p.selectInfo.value.discount)||S.value.discount;Ge.value=S.value.coupon;const at=C.substring(1);let Ie=Je(at);C.includes("%")&&(Ie=C),Re.value=Ie;const it={expireTime:new Date().getTime()+900*1e3,strText:C,code:O},ct=(he=a.value)==null?void 0:he.aioPid,U={event:"click",event_category:"go_draw",promotion_id:[(xe=a.value)==null?void 0:xe.promotionId],event_value:O,ext_params_str_param1:(ye=a.value)==null?void 0:ye.ext_params_str_param1,ext_params_str_param5:R((we=L[ct])==null?void 0:we.user_tag_type,b)};y.value?U.event_label="popup":t.info?U.event_label="again":U.event_label="first",M.traceCustomEvent(U),sessionStorage.setItem((be=a==null?void 0:a.value)==null?void 0:be.tag,JSON.stringify(it)),A("complete"),setTimeout(()=>{$.value=!1,Y(S.value.index)},2e3)}else{const C={expireTime:new Date().getTime()-6e4,text:"thanks",code:"thanks"};sessionStorage.setItem((ke=a==null?void 0:a.value)==null?void 0:ke.tag,JSON.stringify(C)),A("complete")}}else Y(35),$.value=!1}
1).catch(l=>{setTimeout(()=>{$.value=!1},3e3),Y(35)})},pe=ht(),et=((de=pe.query)==null?void 0:de.start)==="1",tt=(ge=$e())==null?void 0:ge.trim().replace(/\s+/g,"+"),ot=((fe=v.promotionInfo)==null?void 0:fe.musicfab_aio_price)&&!!((_e=v.promotionInfo)!=null&&_e.musicfab_aio_price.email)||!!((ve=pe.query)!=null&&ve.email)||!!tt,st=T(()=>{const t=v.promotionInfo?v.promotionInfo.user_type_win:1,e=v.promotionInfo?v.promotionInfo.user_type_mac:1,o=W().value==="win"?t:e;return ot?[1,2,5].includes(o):!0});pt(()=>{var o,n,i,s;const t=(o=a.value)==null?void 0:o.aioPid,e={event:"show",event_category:"go_draw",promotion_id:[(n=a.value)==null?void 0:n.promotionId],ext_params_str_param1:(i=a.value)==null?void 0:i.ext_params_str_param1,ext_params_str_param5:R((s=L[t])==null?void 0:s.user_tag_type,b)};y.value&&(e.event_label="popup"),M.traceCustomEvent(e),window.addEventListener("resize",K),K(),B(()=>{(y.value||st.value&&et)&&(Q(),document.body.style.overflow="hidden")})}),mt(()=>{window.removeEventListener("resize",K),document.body.style.overflow=""});const nt=()=>{document.body.style.overflow="",P.value=!1,A("close")};return(t,e)=>{const o=rt;return D(),X("div",{class:ze([c(y)?"lucky-wheel":""])},[dt(w("div",{class:ze([c(y)?"lucky-wheel-content-pop":""])},[c(y)?(D(),X("div",{key:0,class:"main-title",innerHTML:c(We)},null,8,kt)):j("",!0),w("div",It,[w("span",{class:"lh-title",innerHTML:c(ue)},null,8,St),e[1]||(e[1]=w("div",{class:"left-bar"},null,-1)),e[2]||(e[2]=w("div",{class:"right-bar"},null,-1))]),w("div",{class:"lucky-content",style:Te(c(ae))},[w("div",{style:Te({...c(re),backgroundImage:`url(${c(qe)})`}),class:"lucky-btn",onClick:Q},[w("span",null,ft(c(ee)),1)],4),c(z)?(D(),Ce(c(_t),{key:0,ref_key:"myLucky",ref:G,width:c(N).width,height:c(N).height,prizes:c(oe),blocks:c(ie),buttons:c(ce),onEnd:Ke,onStart:Q},null,8,["width","height","prizes","blocks","buttons"])):j("",!0)],4),c(y)?(D(),X("div",{key:1,class:"close-btn",title:"close-btn",onClick:e[0]||(e[0]=n=>Ze())})):j("",!0)],2),[[gt,!c(P)]]),c(P)?(D(),Ce(o,{key:0,"select-info":c(S),"show-success-dlg":c(P),onClose:nt},null,8,["select-info","show-success-dlg"])):j("",!0)],2)}}}),Et=bt(Tt,[["__scopeId","data-v-2bc55e85"]]);export{Et 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.