(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-aeffddca"],{"08af":function(e,t,i){"use strict";i("dc5f")},1133:function(e,t,i){e.exports=i.p+"img/video_gift.4e9a5c08.png"},3225:function(e,t,i){},"4d27":function(e,t,i){"use strict";var a=i("2e1b"),c=(i("22fa"),i("7a23")),o=i("85b1"),n=i("2332"),s="Expected a function";function r(e,t,i){var a=!0,c=!0;if("function"!=typeof e)throw new TypeError(s);return Object(n["a"])(i)&&(a="leading"in i?!!i.leading:a,c="trailing"in i?!!i.trailing:c),Object(o["a"])(e,t,{leading:a,maxWait:t,trailing:c})}var l=r,d={__name:"commonButton",props:{fixed:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const i=e,o=()=>{t("click")},n=l(o,1e3);return(e,t)=>{const o=a["a"];return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{class:Object(c["normalizeClass"])(["common-button",{fixed:i.fixed,bottom:i.bottom}])},[Object(c["createVNode"])(o,Object(c["mergeProps"])({color:"linear-gradient(90deg, #FD8141, #FB4724)",onClick:Object(c["unref"])(n),block:""},e.$attrs),{default:Object(c["withCtx"])(()=>[Object(c["renderSlot"])(e.$slots,"default")]),_:3},16,["onClick"])],2)}}},b=(i("f811"),i("6b0d")),f=i.n(b);const m=f()(d,[["__scopeId","data-v-0435a750"]]);t["a"]=m},"51ab":function(e,t,i){"use strict";i.r(t);var a=i("4d27"),c=i("a410"),o=i("7a23"),n=i("d1fd"),s=i.n(n),r=i("1133"),l=i.n(r),d=i("6605"),b=i("b199"),f=i("9911"),m=i("f286"),u=i("0530");const p=e=>(Object(o["pushScopeId"])("data-v-1d124dda"),e=e(),Object(o["popScopeId"])(),e),j={class:"ad-video"},O={class:"ad-video-container"},v=p(()=>Object(o["createElementVNode"])("div",{class:"ad-video-box"},[Object(o["createElementVNode"])("img",{src:s.a})],-1)),_={class:"ad-video-bar"},g={class:"gift-wrapper"},w=p(()=>Object(o["createElementVNode"])("img",{src:l.a},null,-1)),h=p(()=>Object(o["createElementVNode"])("div",{class:"tips"}," 提示：在任务过程中如果遇到频繁报错，请稍等20秒左右切换ip重试 ",-1));var k={__name:"adVideo",setup(e){const t=Object(m["a"])(),i=Object(d["c"])(),n=i.query.source,s=Object(d["d"])(),r=Object(o["reactive"])({item:{view_times:0,view_times_limit:10,name:"观看视频"}});Object(o["onMounted"])(()=>{l()});const l=async()=>{const e=await Object(b["b"])();let t=!1;for(const i of e.data.list)i.source===n&&(t=!0,r.item=i);t||s.go(-1)},p=async()=>{u["a"].videoAdData({source:n,scene_id:1001},async()=>{const e={task_id:r.item.task_id,source:n};if(1==r.item.view_times_limit){const t=await Object(b["l"])(e);return r.item.task_id=t.data.task_id,r.item.view_times=t.data.view_times,await Object(b["s"])({...e,task_id:r.item.task_id}),Object(f["t"])({amount:r.item.point,type:"point"}),void s.go(-1)}if(r.item.view_times<r.item.view_times_limit){const i=await Object(b["l"])(e);r.item.task_id=i.data.task_id,r.item.view_times=i.data.view_times,["多肉时光","蓝猫乐园"].includes(t.appConfig.appName)||Object(f["a"])({view_times:r.item.view_times,view_times_limit:r.item.view_times_limit})}r.item.view_times>=r.item.view_times_limit&&(await Object(b["s"])(e),Object(f["t"])({amount:r.item.point,type:"point"}),s.go(-1)),[2,4,6,8].includes(r.item.view_times)&&u["a"].fullScreenAd()})};return(e,t)=>{const i=c["a"],n=a["a"];return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",j,[Object(o["createVNode"])(i,{title:r.item.name},null,8,["title"]),Object(o["createElementVNode"])("div",O,[v,Object(o["createElementVNode"])("div",_,[Object(o["createElementVNode"])("div",{class:"inner-bar",style:Object(o["normalizeStyle"])({width:100*Math.min(r.item.view_times/r.item.view_times_limit,1)+"%"})},[Object(o["createElementVNode"])("div",g,[w,Object(o["createElementVNode"])("span",null,Object(o["toDisplayString"])(100*Math.min((r.item.view_times/r.item.view_times_limit).toFixed(2),1))+"%",1)])],4)]),Object(o["createVNode"])(n,{icon:"play-circle-o",onClick:p},{default:Object(o["withCtx"])(()=>[Object(o["createTextVNode"])(" 观看视频 ")]),_:1}),h])])}}},x=(i("e438"),i("6b0d")),N=i.n(x);const V=N()(k,[["__scopeId","data-v-1d124dda"]]);t["default"]=V},"8a0b":function(e,t,i){},a410:function(e,t,i){"use strict";var a=i("23f9"),c=i("7a23"),o=i("1fba"),n=i("e5f6"),s=i("5aa0"),r=i("d243"),l=i("fa8a"),d=i("9a1c");const[b,f]=Object(o["a"])("nav-bar"),m={title:String,fixed:Boolean,zIndex:n["f"],border:n["g"],leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:n["g"]};var u=Object(c["defineComponent"])({name:b,props:m,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:i}){const a=Object(c["ref"])(),o=Object(l["a"])(a,f),n=i=>{e.leftDisabled||t("clickLeft",i)},b=i=>{e.rightDisabled||t("clickRight",i)},m=()=>i.left?i.left():[e.leftArrow&&Object(c["createVNode"])(d["a"],{class:f("arrow"),name:"arrow-left"},null),e.leftText&&Object(c["createVNode"])("span",{class:f("text")},[e.leftText])],u=()=>i.right?i.right():Object(c["createVNode"])("span",{class:f("text")},[e.rightText]),p=()=>{const{title:t,fixed:o,border:l,zIndex:d}=e,p=Object(s["f"])(d),j=e.leftArrow||e.leftText||i.left,O=e.rightText||i.right;return Object(c["createVNode"])("div",{ref:a,style:p,class:[f({fixed:o}),{[r["a"]]:l,"van-safe-area-top":e.safeAreaInsetTop}]},[Object(c["createVNode"])("div",{class:f("content")},[j&&Object(c["createVNode"])("div",{class:[f("left",{disabled:e.leftDisabled}),e.clickable&&!e.leftDisabled?r["i"]:""],onClick:n},[m()]),Object(c["createVNode"])("div",{class:[f("title"),"van-ellipsis"]},[i.title?i.title():t]),O&&Object(c["createVNode"])("div",{class:[f("right",{disabled:e.rightDisabled}),e.clickable&&!e.rightDisabled?r["i"]:""],onClick:b},[u()])])])};return()=>e.fixed&&e.placeholder?o(p):p()}});const p=Object(a["a"])(u);i("68ef"),i("cb51"),i("3743"),i("8a0b"),i("14d9");var j=i("6605"),O={__name:"index",props:{title:{type:String},hideBackIcon:{type:Boolean,default:!1},to:{type:String,default:""},theme:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},setup(e){const t=e,i=Object(j["d"])(),a=()=>{t.to?i.push(t.to):i.go(-1)};return(i,o)=>{const n=p;return Object(c["openBlock"])(),Object(c["createBlock"])(n,Object(c["mergeProps"])({title:t.title,"left-arrow":!e.hideBackIcon,onClickLeft:a,"safe-area-inset-top":"",fixed:!e.transparent,placeholder:"",border:!e.transparent&&!e.theme,class:{theme:e.theme,transparent:e.transparent,dark:e.dark}},i.$attrs),{right:Object(c["withCtx"])(()=>[Object(c["renderSlot"])(i.$slots,"right")]),_:3},16,["title","left-arrow","fixed","border","class"])}}};i("08af");const v=O;t["a"]=v},d1fd:function(e,t,i){e.exports=i.p+"img/video.53aee08e.png"},dc5f:function(e,t,i){},e438:function(e,t,i){"use strict";i("e9d2")},e9d2:function(e,t,i){},f811:function(e,t,i){"use strict";i("3225")},fa8a:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var a=i("7a23"),c=i("450f"),o=i("8db7"),n=i("ee0b");const s=(e,t)=>{const i=Object(a["ref"])(),s=()=>{i.value=Object(c["useRect"])(e).height};return Object(a["onMounted"])(()=>{if(Object(a["nextTick"])(s),t)for(let e=1;e<=3;e++)setTimeout(s,100*e)}),Object(n["b"])(()=>Object(a["nextTick"])(s)),Object(a["watch"])([o["j"],o["i"]],s),i};function r(e,t){const i=s(e,!0);return e=>Object(a["createVNode"])("div",{class:t("placeholder"),style:{height:i.value?i.value+"px":void 0}},[e()])}}}]);