PageSourceSearch

https://static-v1.mydramawave.com/frontend_static/assets/store-page-CNL9BSXX.js

js mydramawave.com collected 2026-09-24 19:42:55 UTC 12,185 bytes, 1 lines download raw bytes

1import{h as Z,u as de,g as fe,bd as ue,j as M,bB as he,ag as ve,n as me,s as Y,_ as xe}from"./index-clKWBUrY.js";import{L as _e}from"./index-vKmLz_s0.js";/* empty css              */import{B as pe}from"./back-B_jA49l5.js";import{h,w as ge,p as ee,n as we,d as be,f as J,b as K,V as x,X as t,m as I,u as n,a1 as z,F as R,a0 as O,Y as v,Q as ye,$ as V,_ as ke,Z as X,W as _}from"./v-deps-D54qY0Ks.js";import{a as Ae}from"./track-CxuEyE8B.js";import{u as Ce}from"./coins-store-4D1mCcBC.js";import{a as Be}from"./index-CDGkhBfV.js";import"./use-tab-status-CbgsgWEi.js";import"./back-light-CjGIYL1M.js";import"./back-D304ezgz.js";import"./coins-api-ByB7M_rS.js";const Ne="https://static-v1.mydramawave.com/frontend_static/assets/background-D5icwnad.webp",De="https://static-v1.mydramawave.com/frontend_static/assets/back-right-BDiCxD5j.webp",P="https://static-v1.mydramawave.com/frontend_static/assets/diamonds-CBCz3N5a.webp",Le="https://static-v1.mydramawave.com/frontend_static/assets/no-data-Bb9saTGw.webp",Te="https://static-v1.mydramawave.com/frontend_static/assets/off-down-icon-DEhzJhvs.webp",Se="https://static-v1.mydramawave.com/frontend_static/assets/off-down-bg-BUQbGoYD.webp",je="https://static-v1.mydramawave.com/frontend_static/assets/no-ad-icon-BxaKd6up.webp",Ee="https://static-v1.mydramawave.com/frontend_static/assets/no-ad-bg-_B8gf_Hl.webp",Fe="https://static-v1.mydramawave.com/frontend_static/assets/close-icon-BrcDgFw1.webp",Ie=u=>Z.get("/frv2-api/welfare/v2/shop/product_list",u),ze=u=>Z.post("/frv2-api/welfare/v2/shop/exchange",u);var g=(u=>(u[u.NoAds=1]="NoAds",u[u.Download=2]="Download",u))(g||{});function Re(u={}){const{containerRef:C,threshold:i=0,fallbackSelectors:F=[],autoWatch:w}=u,T=h(!1),m=r=>{const y=r.target.scrollTop;T.value=y>i},b=()=>{if(C!=null&&C.value)return C.value;for(const r of F){const a=document.querySelector(r);if(a instanceof HTMLElement)return a}return null},B=()=>{const r=b();return r?(r.hasAttribute("data-scroll-listener-added")||(r.addEventListener("scroll",m),r.setAttribute("data-scroll-listener-added","true")),!0):!1},D=()=>{const r=b();r&&(r.removeEventListener("scroll",m),r.removeAttribute("data-scroll-listener-added"),p=!1)};let p=!1;return w&&ge(w.deps,async()=>{const r=w.deps.map(a=>a.value);w.condition(...r)&&!p&&(await we(),setTimeout(()=>{B()&&(p=!0)},w.delay??100))},{immediate:!0}),ee(()=>{D()}),{scrolledBeyondThreshold:T,addScrollListener:B,removeScrollListener:D}}const Ve={class:"pc:max-w-[var(--pc-page-max-width)] relative mx-auto flex min-h-screen flex-col overflow-hidden bg-[#f7f4f7]"},Ue=["src"],qe={class:"flex items-center gap-x-2"},Ge=["src"],Me={class:"relative z-10 flex flex-1 flex-col rounded-TAuto-2xl pb-4"},Pe={key:0,class:"flex flex-col gap-y-3 p-3"},We={key:1,class:"flex flex-1 flex-col items-center justify-center py-12"},Qe=["src"],$e={class:"mt-4 text-center text-[#a1a2a3]"},He={class:"z-up relative flex w-full items-center justify-between px-5"},Ye={class:"flex flex-1 flex-col items-start gap-y-2 truncate text-white"},Je={class:"truncate line-clamp-2 text-lg font-bold"},Ke=["src"],Oe={class:"text-3xl font-bold line-clamp-2"},Xe=["src"],Ze={class:"flex-shrink-0"},et=["src","alt"],tt={class:"flex flex-1 flex-col min-w-0"},st={class:"font-medium text-sm leading-tight text-[#090609]"},at={class:"self-stretch text-[color:var(--text-Icon-text-3,#A1A0A3)] text-xs font-normal"},ot={class:"flex items-center gap-x-[2px]"},nt=["src"],lt={class:"flex flex-shrink-0 items-center max-w-[80px]"},rt=["onClick"],ct={class:"line-clamp-2 leading-tight"},it={key:0,class:"flex flex-col items-center"},dt={class:"relative h-[97px] overflow-hidden rounded-TAuto-2xl"},ft=["src"],ut={class:"relative text-center bg-[#fff] mt-[-1px] mb-[80px] rounded-bl-xl rounded-br-xl w-[295px]"},ht={class:"px-4 pt-4 pb-6"},vt={class:"text-lg font-medium text-[#0B080B] leading-[160%] break-words min-h-[3rem]"},mt={class:"inline-block text-base font-medium line-height-44px text-white line-clamp-2"},xt={class:"absolute bottom-[-60px] left-1/2 -translate-x-1/2"},_t=["src","alt"],pt=be({__name:"store-page",setup(u){const C=h({}),{t:i}=de(["free.reward.store1","free.reward.sto","coins.earnings.noRecords","free.reward.balance","free.more.items.coming.soon","free.loading","free.load.failed.retry","free.redeem.ads","free.confirm.ads.purchase","free.confirm.offline.purchase","free.reward.shop.sure"]),F=ye();fe("from","");const{coins:w,getCoinsV2:T}=Ce(),m=h([]),b=h(!1),B=h(!1),D=h(void 0),p=h(!1),r=h(!1),a=h(null),y=h(!0),W=h(null),U=h(null),q=J(()=>U.value&&ue(U.value,"2.2.20")),{scrolledBeyondThreshold:Q}=Re({containerRef:W,threshold:77,fallbackSelectors:[".van-list-container",".van-list"],autoWatch:{deps:[m,y],condition:(e,o)=>!o&&(Array.isArray(e)?((e==null?void 0:e.length)??0)>0:!1),delay:100}}),te=J(()=>{var e;return!y.value&&(((e=m.value)==null?void 0:e.length)??0)===0&&!b.value}),L=(e,o,c,f)=>{try{Ae(e,o,c,f)}catch{}},se=(e,o)=>{var c,f;return{product_id:(e==null?void 0:e.id)??"",value:(e==null?void 0:e.value)??"",no_ads_duration:((c=e==null?void 0:e.benifite)==null?void 0:c.no_ads_duration)??"",no_ads_duration_unit:((f=e==null?void 0:e.benifite)==null?void 0:f.no_ads_duration_unit)??"",position:o}},$=(e,o,c)=>
1{try{if((e==null?void 0:e.type)!==g.NoAds)return;L("store","product",o,se(e,c))}catch{}};async function G(e=!1){var o,c,f;if(!B.value)try{b.value=!0,p.value=!1;const l=await Ie({last_id:D.value,page_size:10});if((l==null?void 0:l.code)===200&&(l!=null&&l.data)){const s=((o=l==null?void 0:l.data)==null?void 0:o.list)||[];m.value.push(...s),e&&s.forEach((k,N)=>{$(k,"show",m.value.length-s.length+N+1)}),((s==null?void 0:s.length)??0)>0&&(D.value=(c=l==null?void 0:l.data)==null?void 0:c.last_id),(f=l==null?void 0:l.data)!=null&&f.has_more||(B.value=!0)}else p.value=!0}catch{p.value=!0}finally{b.value=!1,y.value&&(y.value=!1)}}const ae=async()=>{try{B.value=!1,D.value=0,m.value=[],y.value=!0,await G()}catch{}},oe=e=>(e==null?void 0:e.type)===g.NoAds?je:Te,ne=e=>(e==null?void 0:e.type)===1?Ee:Se,le=()=>{var e,o;try{F.push({path:`${ve?"/free-app":""}/coins/my-earnings/up`,query:{...(o=(e=F.currentRoute)==null?void 0:e.value)==null?void 0:o.query,from:"store"}})}catch{}},re=async e=>{$(e,"click",m.value.findIndex(o=>o.id===e.id)+1),a.value=e,r.value=!0,(e==null?void 0:e.type)===g.NoAds&&L("store","exchangeconfirm","show")},ce=async()=>{var e,o,c,f,l,s,k,N,S,j,E;if(a!=null&&a.value){a.value.type===g.NoAds&&L("store","exchangeconfirm","click",{type:"ok"});try{C.value[((e=a.value)==null?void 0:e.id)??0]=!0;const d=await ze({product_id:((o=a.value)==null?void 0:o.id)??0});(c=d==null?void 0:d.data)!=null&&c.message&&(Y({message:d.data.message??"",position:"middle"}),((f=a.value)==null?void 0:f.type)===g.NoAds&&L("store","exchange","success_show"),r.value=!1);try{T()}catch{}try{ae()}catch{}if((l=M)!=null&&l.inDramawaveApp&&((s=a.value)==null?void 0:s.type)===g.NoAds)try{M("refreshAdFreeCountdown")}catch{}}catch(d){const A=((N=(k=d==null?void 0:d.response)==null?void 0:k.data)==null?void 0:N.err_msg)||((j=(S=d==null?void 0:d.response)==null?void 0:S.data)==null?void 0:j.message);A&&(Y({message:A,position:"middle"}),r.value=!1)}finally{a.value&&(C.value[((E=a.value)==null?void 0:E.id)??0]=!1),a.value=null}}},ie=()=>{var e;((e=a.value)==null?void 0:e.type)===g.NoAds&&L("store","exchangeconfirm","click",{type:"close"}),r.value=!1,a.value=null};return K(()=>{var e;document.title=i("free.reward.store1","Store")??"",L("store","page","show"),(e=document.body)!=null&&e.style&&(document.body.style.overflow="hidden");try{T()}catch{}try{G(!0)}catch{}}),K(async()=>{setTimeout(async()=>{try{U.value=await M("getDeviceInfo")}catch{}},300)}),ee(()=>{var e;(e=document.body)!=null&&e.style&&(document.body.style.overflow="")}),(e,o)=>{const c=Be,f=_e,l=he;return _(),x("x-store-page",Ve,[t("img",{src:n(Ne),class:"absolute left-0 top-0 z-0 h-auto w-full"},null,8,Ue),I(n(pe),{title:n(Q)?"":n(i)("free.reward.sto","Store"),"is-close-webview":!0,"is-white":!0,"center-title":!0,scrolled:n(Q),class:"shrink-0 bg-transparent text-white text-center"},{scrolled:z(()=>[t("div",qe,[t("img",{src:n(P),class:"z-up-up absolute left-9 bottom-[22px] translate-y-1/2 w-5 h-4 shrink-0 object-cover"},null,8,Ge),t("x-title-scrolled",{class:V(n(me)("text-4 z-up flex flex-1 items-center justify-start truncate font-medium ml-12"))},v(n(w)||0),3)])]),_:1},8,["title","scrolled"]),t("x-products",Me,[y.value?(_(),x("div",Pe,[(_(),x(R,null,O(5,s=>I(c,{key:s,row:3,loading:!0,class:"rounded-xl bg-white p-3"},{template:z(()=>[...o[3]||(o[3]=[t("div",{class:"flex items-center gap-x-3"},[t("div",{class:"h-[24px] w-[20px] rounded bg-[#f2f3f5]"}),t("div",{class:"flex flex-1 flex-col gap-y-2"},[t("div",{class:"h-4 w-3/4 rounded bg-[#f2f3f5]"}),t("div",{class:"h-3 w-full rounded bg-[#f2f3f5]"}),t("div",{class:"h-4 w-1/4 rounded bg-[#f2f3f5]"})]),t("div",{class:"h-9 w-20 rounded-lg bg-[#f2f3f5]"})],-1)])]),_:1})),64))])):te.value?(_(),x("div",We,[t("img",{src:n(Le),width:"152",height:"121",class:"h-auto w-40"},null,8,Qe),t("div",$e,v(n(i)("coins.earnings.noRecords","")),1)])):(_(),x("div",{key:2,ref_key:"listContainerRef",ref:W,class:"van-list-container"},[t("div",He,[t("x-balance",Ye,[t("div",Je,v(n(i)("free.reward.balance","")),1),t("div",{class:"flex items-center align-middle",onClick:le},[t("img",{src:n(P),width:"18",height:"18",class:"size-6 object-contain mr-1"},null,8,Ke),t("span",Oe,v(n(w)||"0"),1),t("img",{src:n(De),width:"21",height:"18",class:"w-[21px] h-[18px] curs
1or-pointer object-contain"},null,8,Xe)])])]),I(f,{loading:b.value,"onUpdate:loading":o[0]||(o[0]=s=>b.value=s),error:p.value,"onUpdate:error":o[1]||(o[1]=s=>p.value=s),finished:B.value,"finished-text":n(i)("free.more.items.coming.soon"),"loading-text":n(i)("free.loading"),"error-text":n(i)("free.load.failed.retry"),offset:500,"immediate-check":!1,onLoad:G},{default:z(()=>[(_(!0),x(R,null,O(m.value,s=>(_(),x("x-product-card",{key:s==null?void 0:s.id,class:"mt-[12px] flex align-middle items-center mx-[12px] gap-x-3 rounded-xl bg-[#f7f4f7] p-3 shadow-[0px_0px_12px_0px_rgba(0,0,0,0.10)]"},[t("div",Ze,[t("img",{src:oe(s),alt:s==null?void 0:s.title,loading:"lazy",class:"h-[24px] w-[20px] object-contain"},null,8,et)]),t("div",tt,[t("x-title",st,v(s==null?void 0:s.title),1),t("x-subtitle",at,v(s==null?void 0:s.sub_title),1),t("div",ot,[t("img",{src:n(P),class:"h-4 w-4 object-contain"},null,8,nt),t("span",{class:V(["text-base font-bold",q.value?"text-[#FF4C38]":"text-[#FC2763]"])},v(s==null?void 0:s.value),3)])]),t("div",lt,[t("x-button",{class:V(["rounded-lg px-[12px] py-[9px] font-bold transition-all text-white text-xs",q.value?"bg-[#FF4C38]":"bg-[#fc2763]"]),onClick:k=>re(s)},[t("div",ct,v(n(i)("free.redeem.ads")),1)],10,rt)])]))),128))]),_:1},8,["loading","error","finished","finished-text","loading-text","error-text"])],512))]),I(l,{show:r.value,"onUpdate:show":o[2]||(o[2]=s=>r.value=s),"show-confirm-button":!1,"show-cancel-button":!1,"class-name":"exchange-dialog","close-on-click-overlay":!1},{default:z(()=>{var s,k,N,S,j,E,d,A,H;return[a.value?(_(),x("div",it,[t("div",dt,[t("img",{src:ne(a.value),class:"object-cover w-full h-full"},null,8,ft)]),t("div",ut,[t("div",ht,[t("x-content",vt,[((s=a.value)==null?void 0:s.type)===n(g).NoAds?(_(),x(R,{key:0},[X(v(n(i)("free.confirm.ads.purchase",{a:(k=a.value)==null?void 0:k.value,b:((S=(N=a.value)==null?void 0:N.benifite)==null?void 0:S.no_ads_duration)||"-",c:((E=(j=a.value)==null?void 0:j.benifite)==null?void 0:E.no_ads_duration_unit)||"-"})),1)],64)):(_(),x(R,{key:1},[X(v(n(i)("free.confirm.offline.purchase",{a:(d=a.value)==null?void 0:d.value,b:((H=(A=a.value)==null?void 0:A.benifite)==null?void 0:H.download_num)||""})),1)],64))]),t("x-button",{class:V(["block w-full h-44px overflow-hidden mt-5 rounded-[8px] text-base font-bold text-white",q.value?"bg-[#FF4C38] active:bg-[#6B3A34]":"bg-[#fc2763] active:bg-[#e01d56]"]),onClick:ce},[t("span",mt,v(n(i)("free.reward.shop.sure")),1)],2),t("div",xt,[t("img",{src:n(Fe),class:"mt-3 w-12 h-12",alt:n(i)("free.reward.shop.sure"),onClick:ie},null,8,_t)])])])])):ke("",!0)]}),_:1},8,["show"])])}}}),St=xe(pt,[["__scopeId","data-v-81348f2a"]]);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.