2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
var I=Object.defineProperty,P=Object.defineProperties;var S=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var M=(o,t,e)=>t in o?I(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,j=(o,t)=>{for(var e in t||(t={}))T.call(t,e)&&M(o,e,t[e]);if(L)for(var e of L(t))$.call(t,e)&&M(o,e,t[e]);return o},B=(o,t)=>P(o,S(t));var g=(o,t,e)=>new Promise((y,v)=>{var x=s=>{try{n(e.next(s))}catch(p){v(p)}},_=s=>{try{n(e.throw(s))}catch(p){v(p)}},n=s=>s.done?y(s.value):Promise.resolve(s.value).then(x,_);n((e=e.apply(o,t)).next())});import{J as z,r as h,bp as A,o as a,h as i,i as c,F as k,aD as b,t as w,p as C,x as F,k as N,cE as J,bo as R,l as V}from"./index.8a8c9d5e.js";import{l as H}from"./other.6add2676.js";import U from"./LinkModal.6f3150d6.js";import{u as X}from"./useVContext.c78e6cd0.js";import"./model-close-icon.706a0490.js";const Y={class:"bg min-w-392px h-30px absolute bottom-0 left-1/2 z-999 footer flex items-end"},q={class:"h-27px w-full flex text-white text-12px font-bold px-18px"},G={class:"flex-1 flex"},K=["onClick"],O={class:"h-full flex items-center cursor-pointer justify-center"},Q={class:"text-white"},W={class:"bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE]"},Z={class:"flex -mr-10px flex-wrap"},ee=["onClick"],te={class:"h-500px overflow-auto h-full"},oe=["innerHTML"],ne={key:1,class:"h-full"},se=["src"],le={__name:"Footer",setup(o){const{rootEmitter:t}=X(),e=l=>l.parentElement,y=[{type:1,value:"\u94FE\u63A5"},{type:2,value:"\u89C6\u9891"},{type:3,value:"\u6587\u7AE0"}],v=h([]),x=h([]),_=h(!1),n=h({});function s(){return g(this,null,function*(){const l=yield H({recommend:1,show:1});x.value=l})}function p(){return g(this,null,function*(){const l=yield H();v.value=l.reduce((f,r)=>{var m,d;const u=y.find(D=>D.type==r.type);return B(j({},f),{[(m=u==null?void 0:u.value)!=null?m:"\u5176\u4ED6"]:[...(d=f[u.value])!=null?d:[],r]})},{})})}function E(l){n.value=l,l.type==1?window.open(l.content):_.value=!0}return A(()=>{s(),p(),t.on("interval:auto",()=>{s(),p()})}),(l,f)=>(a(),i("div",Y,[c("div",q,[c("div",G,[(a(!0),i(k,null,b(x.value,r=>(a(),i("div",{class:"h-full flex items-center cursor-pointer justify-center px-10px flex-none",key:r.id,onClick:u=>E(r)},w(r.name),9,K))),128))]),c("div",O,[C(N(R),{placement:"topRight",trigger:"click",overlayClassName:"fotter-popover",color:"rgba(28, 44, 52, .8)",align:{overflow:{adjustX:!0,adjustY:!0}},"get-popup-container":e},{content:F(()=>[c("div",Q,[(a(!0),i(k,null,b(v.value,(r,u,m)=>(a(),i("div",{key:m,class:"mb-10px"},[c("div",W,w(u),1),c("div",Z,[(a(!0),i(k,null,b(r,d=>(a(),i("div",{onClick:D=>E(d),class:"text-12px mr-10px py-4px cursor-pointer",key:d.id},w(d.name),9,ee))),128))])]))),128))])]),default:F(()=>[C(N(J),{name:"more-icon"})]),_:1})])]),C(U,{visible:_.value,"onUpdate:visible":f[0]||(f[0]=r=>_.value=r),footer:null,title1:n.value.name},{content:F(()=>[c("div",te,[n.value.type==3?(a(),i("div",{key:0,innerHTML:n.value.content},null,8,oe)):V("",!0),n.value.type==2?(a(),i("div",ne,[c("video",{muted:"",autoplay:"",controls:"",src:n.value.content,class:"w-full h-full"},null,8,se)])):V("",!0)])]),_:1},8,["visible","title1"])]))}};var de=z(le,[["__scopeId","data-v-021b5d14"]]);export{de as default};
|