2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
import{d as h,G as f,y as r,H as t,z as e,u as v,ak as m,as as u,a7 as w,S as p,F as _,al as y,A as a,a2 as k,cO as b,a4 as x,bZ as S}from"./vNwORUzZ.js";import{e as l}from"./DWEdiVkG.js";/* empty css */import{_ as B}from"./DlAUqK2U.js";const z="data:image/svg+xml,%3csvg%20fill='white'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24px'%20height='24px'%3e%3cpath%20d='M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z%20M16,13h-3v3c0,0.552-0.448,1-1,1h0%20c-0.552,0-1-0.448-1-1v-3H8c-0.552,0-1-0.448-1-1v0c0-0.552,0.448-1,1-1h3V8c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v3h3%20c0.552,0,1,0.448,1,1v0C17,12.552,16.552,13,16,13z'/%3e%3c/svg%3e",C="data:image/svg+xml,%3c?xml%20version='1.0'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24px'%20height='24px'%3e%3cpath%20d='M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10S17.523,2,12,2z%20M16,13h-3v3c0,0.552-0.448,1-1,1h0%20c-0.552,0-1-0.448-1-1v-3H8c-0.552,0-1-0.448-1-1v0c0-0.552,0.448-1,1-1h3V8c0-0.552,0.448-1,1-1h0c0.552,0,1,0.448,1,1v3h3%20c0.552,0,1,0.448,1,1v0C17,12.552,16.552,13,16,13z'/%3e%3c/svg%3e",P={key:0,src:z,alt:"comment","cursor-pointer":""},M={key:1,src:C,alt:"comment","cursor-pointer":""},N=h({__name:"add2",setup(n){const i=f();return(s,c)=>t(i).isNightStore?(e(),r("img",P)):(e(),r("img",M))}}),V={alt:"instagram",class:"story_img object-cover"},$={key:0,viewBox:"0 0 100 100"},G=["width","height"],U=h({__name:"UserProfilePic",props:{width:{default:80},src:{default:l},seenStory:{type:Boolean,default:!1},justShowProfile:{type:Boolean},showAdd:{type:Boolean,default:!1}},setup(n){const i=v(),s=n,c=f();return(d,o)=>{const g=m("lazy");return e(),r("div",{class:"circle",style:u({width:s.width+"px",height:s.width+"px"})},[w(a("img",V,null,512),[[g,{src:t(y)(s.src),loading:t(l),error:t(l)}]]),d.justShowProfile?p("",!0):(e(),r(k,{key:0},[d.seenStory?(e(),r("svg",$,o[1]||(o[1]=[a("defs",null,[a("linearGradient",{id:"gradient-id",gradientTransform:"rotate(45)"},[a("stop",{offset:"0%","stop-color":"lightgray"})])],-1),a("circle",{cx:"50",cy:"50",r:"48",fill:"none",stroke:"url(#gradient-id)","stroke-width":"4","stroke-linecap":"round","stroke-dasharray":"300","stroke-dashoffset":"0"},null,-1)]))):(e(),r("svg",{key:1,class:"non-select",width:`${s.width}`,height:s.width,viewBox:"0 0 100 100"},o[2]||(o[2]=[b('<defs data-v-ba3140c5><linearGradient id="gradient-id" gradientTransform="rotate(45)" data-v-ba3140c5><stop offset="0%" stop-color="#f09433" data-v-ba3140c5></stop><stop offset="25%" stop-color="#e6683c" data-v-ba3140c5></stop><stop offset="50%" stop-color="#dc2743" data-v-ba3140c5></stop><stop offset="75%" stop-color="#cc2366" data-v-ba3140c5></stop><stop offset="100%" stop-color="#bc1888" data-v-ba3140c5></stop> 88/88 </linearGradient></defs><circle cx="50" cy="50" r="48" fill="none" stroke="url(#gradient-id)" stroke-width="4" stroke-linecap="round" stroke-dasharray="300" stroke-dashoffset="0" data-v-ba3140c5></circle>',2)]),8,G))],64)),d.showAdd?(e(),_(N,{key:1,onClick:o[0]||(o[0]=S(j=>t(i).push({name:"add-story"}),["stop"])),class:x(["absolute top-50px border-1 border-solid rounded-full",[t(c).isNightStore?"bg-black border-black":"bg-white border-white",t(c).isRTL?"-left-5px":"-right-5px"]])},null,8,["class"])):p("",!0)],4)}}}),F=B(U,[["__scopeId","data-v-ba3140c5"]]);export{F as U};
|