drill.define(async e=>{e("./splitSlide.css"),await e("./splitBlock","components/qrcode -pack");let[t,a,p]=await e("common/data","common/urlData","util/PPTModeUtil"),{splitAddress:o,pptData:i}=t,{code:n}=await e("./splitSlide.dcode"),l=$(n),{slideContainer:d}=l.marks,c=l.que("qrcode");return t.splits.sync(d,null,!0),t.project.mainPage.sync(l.que(".modeSelector"),{type:"value"},!0),c.url=t.splitAddress+`?type=outer&kid=after&i=${a.i}`,l.que(".pptModeCon input").on("change",e=>{t.pptData.cid=parseInt(l.que(".pptModeCon input").ele.value)-1}),t.project.mainPage.watch("type",(e,t)=>{l.que(".pptModeCon").display="ppt"!==t?"none":""},!0),t.project.mainPage.watch("[selected=1]",(e,a)=>{let[o]=a,i=p.getCidBySelected();i>-1&&(t.pptData.cid=i)}),t.pptData.watch("cid",(e,t)=>{l.que(".pptModeCon input").ele.value=parseInt(t)+1},!0),t.pptData.watch("count",(e,t)=>{l.que(".ppt_all_count").text=t,l.que(".pptModeCon input").attr("max",t)},!0),l});