(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c1c8ab6"],{"08af":function(e,t,a){"use strict";a("dc5f")},"0952":function(e,t,a){"use strict";a("c78e")},3225:function(e,t,a){},"4d27":function(e,t,a){"use strict";var c=a("2e1b"),i=(a("22fa"),a("7a23")),n=a("85b1"),r=a("2332"),o="Expected a function";function l(e,t,a){var c=!0,i=!0;if("function"!=typeof e)throw new TypeError(o);return Object(r["a"])(a)&&(c="leading"in a?!!a.leading:c,i="trailing"in a?!!a.trailing:i),Object(n["a"])(e,t,{leading:c,maxWait:t,trailing:i})}var d=l,s={__name:"commonButton",props:{fixed:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const a=e,n=()=>{t("click")},r=d(n,1e3);return(e,t)=>{const n=c["a"];return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:Object(i["normalizeClass"])(["common-button",{fixed:a.fixed,bottom:a.bottom}])},[Object(i["createVNode"])(n,Object(i["mergeProps"])({color:"linear-gradient(90deg, #FD8141, #FB4724)",onClick:Object(i["unref"])(r),block:""},e.$attrs),{default:Object(i["withCtx"])(()=>[Object(i["renderSlot"])(e.$slots,"default")]),_:3},16,["onClick"])],2)}}},b=(a("f811"),a("6b0d")),f=a.n(b);const p=f()(s,[["__scopeId","data-v-0435a750"]]);t["a"]=p},"8a0b":function(e,t,a){},a410:function(e,t,a){"use strict";var c=a("23f9"),i=a("7a23"),n=a("1fba"),r=a("e5f6"),o=a("5aa0"),l=a("d243"),d=a("fa8a"),s=a("9a1c");const[b,f]=Object(n["a"])("nav-bar"),p={title:String,fixed:Boolean,zIndex:r["f"],border:r["g"],leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:r["g"]};var u=Object(i["defineComponent"])({name:b,props:p,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:a}){const c=Object(i["ref"])(),n=Object(d["a"])(c,f),r=a=>{e.leftDisabled||t("clickLeft",a)},b=a=>{e.rightDisabled||t("clickRight",a)},p=()=>a.left?a.left():[e.leftArrow&&Object(i["createVNode"])(s["a"],{class:f("arrow"),name:"arrow-left"},null),e.leftText&&Object(i["createVNode"])("span",{class:f("text")},[e.leftText])],u=()=>a.right?a.right():Object(i["createVNode"])("span",{class:f("text")},[e.rightText]),O=()=>{const{title:t,fixed:n,border:d,zIndex:s}=e,O=Object(o["f"])(s),j=e.leftArrow||e.leftText||a.left,m=e.rightText||a.right;return Object(i["createVNode"])("div",{ref:c,style:O,class:[f({fixed:n}),{[l["a"]]:d,"van-safe-area-top":e.safeAreaInsetTop}]},[Object(i["createVNode"])("div",{class:f("content")},[j&&Object(i["createVNode"])("div",{class:[f("left",{disabled:e.leftDisabled}),e.clickable&&!e.leftDisabled?l["i"]:""],onClick:r},[p()]),Object(i["createVNode"])("div",{class:[f("title"),"van-ellipsis"]},[a.title?a.title():t]),m&&Object(i["createVNode"])("div",{class:[f("right",{disabled:e.rightDisabled}),e.clickable&&!e.rightDisabled?l["i"]:""],onClick:b},[u()])])])};return()=>e.fixed&&e.placeholder?n(O):O()}});const O=Object(c["a"])(u);a("68ef"),a("cb51"),a("3743"),a("8a0b"),a("14d9");var j=a("6605"),m={__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,a=Object(j["d"])(),c=()=>{t.to?a.push(t.to):a.go(-1)};return(a,n)=>{const r=O;return Object(i["openBlock"])(),Object(i["createBlock"])(r,Object(i["mergeProps"])({title:t.title,"left-arrow":!e.hideBackIcon,onClickLeft:c,"safe-area-inset-top":"",fixed:!e.transparent,placeholder:"",border:!e.transparent&&!e.theme,class:{theme:e.theme,transparent:e.transparent,dark:e.dark}},a.$attrs),{right:Object(i["withCtx"])(()=>[Object(i["renderSlot"])(a.$slots,"right")]),_:3},16,["title","left-arrow","fixed","border","class"])}}};a("08af");const h=m;t["a"]=h},bbbd:function(e,t,a){"use strict";a.r(t);var c=a("4d27"),i=a("a410"),n=a("7a23"),r=a("5a0c"),o=a.n(r),l=a("6c43"),d=a("6605"),s=a("b199"),b=a("9911"),f=a("0530"),p=a("5d2d");const u=e=>(Object(n["pushScopeId"])("data-v-7cc9ffd1"),e=e(),Object(n["popScopeId"])(),e),O={class:"task-depth"},j={class:"fixed-date"},m={class:"task-depth-detail"},h={class:"logo"},g=["src"],k={class:"name"},v=u(()=>Object(n["createElementVNode"])("div",{class:"play-time"},"试玩2分钟领取奖励",-1));var x={__name:"taskDepth",setup(e){const t=()=>{const e=p["a"].getItem("depthStartTime")||{};return r.detail.depth_id===e.depth_id&&e.time||0},a=Object(d["d"])(),r=Object(n["reactive"])({detail:p["a"].getItem("depthItem"),startTime:0,isFirst:!1});Object(n["onMounted"])(()=>{r.startTime=t()});const u=()=>{if(!r.isFirst)return r.isFirst=!0,void Object(b["w"])({onConfirm(){x()}});x()},x=async()=>{const e=await f["a"].isInstallApp({linkUrl:r.detail.bundle});"0"!==e.data?r.startTime||(r.startTime=o()().valueOf(),p["a"].setItem("depthStartTime",{depth_id:r.detail.depth_id,time:r.startTime})):Object(b["l"])({icon:r.detail.icon,btnText:"前往下载",onConfirm(){f["a"].wakeUpApp({linkUrl:"https://dark-web.quzanmi.cn/appstore?type=appstore&id="+r.detail.appstore_id})}})},T=async()=>{if(!r.startTime)return void Object(l["c"])("请先开始试玩");const e=o()().valueOf()-r.startTime-12e4;e>=0?(await Object(s["q"])({depth_id:r.detail.depth_id,bundle:r.detail.bundle}),Object(l["c"])("恭喜，领奖成功"),p["a"].removeItem("depthStartTime"),a.go(-1)):Object(b["x"])({time:Math.abs(parseInt(e/1e3)),onConfirm:()=>{x()}})};return(e,t)=>{const a=i["a"],o=c["a"];return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",O,[Object(n["createVNode"])(a,{title:"",transparent:"",fixed:!1}),Object(n["createElementVNode"])("div",j,Object(n["toDisplayString"])(r.detail.dateStr+"打开"),1),Object(n["createElementVNode"])("div",m,[Object(n["createElementVNode"])("div",h,[Object(n["createElementVNode"])("img",{src:r.detail.icon},null,8,g)]),Object(n["createElementVNode"])("div",k,Object(n["toDisplayString"])(r.detail.name),1),v,Object(n["createVNode"])(o,{onClick:u,round:""},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])("开始试玩")]),_:1}),Object(n["createVNode"])(o,{onClick:T,round:"",disabled:r.startTime<=0},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(" 领取奖励 ")]),_:1},8,["disabled"])])])}}},T=(a("0952"),a("6b0d")),w=a.n(T);const B=w()(x,[["__scopeId","data-v-7cc9ffd1"]]);t["default"]=B},c78e:function(e,t,a){},dc5f:function(e,t,a){},f811:function(e,t,a){"use strict";a("3225")},fa8a:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var c=a("7a23"),i=a("450f"),n=a("8db7"),r=a("ee0b");const o=(e,t)=>{const a=Object(c["ref"])(),o=()=>{a.value=Object(i["useRect"])(e).height};return Object(c["onMounted"])(()=>{if(Object(c["nextTick"])(o),t)for(let e=1;e<=3;e++)setTimeout(o,100*e)}),Object(r["b"])(()=>Object(c["nextTick"])(o)),Object(c["watch"])([n["j"],n["i"]],o),a};function l(e,t){const a=o(e,!0);return e=>Object(c["createVNode"])("div",{class:t("placeholder"),style:{height:a.value?a.value+"px":void 0}},[e()])}}}]);