2 lines
3.4 KiB
JavaScript
2 lines
3.4 KiB
JavaScript
import{d as h,G as p,y as r,J as t,z as e,u as g,ai as v,a7 as m,a5 as u,R as l,F as w,A as c,a0 as _,cQ as x,a2 as y,bR as k}from"./Cbt2tPBc.js";import{e as n}from"./DGFRw2HL.js";import{_ as b}from"./DlAUqK2U.js";const S="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",B="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",z={key:0,src:S,alt:"comment","cursor-pointer":""},C={key:1,src:B,alt:"comment","cursor-pointer":""},P=h({__name:"add2",setup(a){const d=p();return(s,i)=>t(d).isNightStore?(e(),r("img",z)):(e(),r("img",C))}}),M={alt:"instagram",class:"story_img object-cover"},N={key:0,viewBox:"0 0 100 100"},V=["width","height"],$=h({__name:"UserProfilePic",props:{width:{default:80},src:{default:n},seenStory:{type:Boolean,default:!1},justShowProfile:{type:Boolean},showAdd:{type:Boolean,default:!1}},setup(a){const d=g(),s=a,i=p();return(j,o)=>{const f=v("lazy");return e(),r("div",{class:"circle",style:m({width:s.width+"px",height:s.width+"px"})},[u(c("img",M,null,512),[[f,{src:t(i).useDataStorage(s.src),loading:t(n),error:t(n)}]]),a.justShowProfile?l("",!0):(e(),r(_,{key:0},[a.seenStory?(e(),r("svg",N,[...o[1]||(o[1]=[c("defs",null,[c("linearGradient",{id:"gradient-id",gradientTransform:"rotate(45)"},[c("stop",{offset:"0%","stop-color":"lightgray"})])],-1),c("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]=[x('<defs data-v-c61670c3><linearGradient id="gradient-id" gradientTransform="rotate(45)" data-v-c61670c3><stop offset="0%" stop-color="#f09433" data-v-c61670c3></stop><stop offset="25%" stop-color="#e6683c" data-v-c61670c3></stop><stop offset="50%" stop-color="#dc2743" data-v-c61670c3></stop><stop offset="75%" stop-color="#cc2366" data-v-c61670c3></stop><stop offset="100%" stop-color="#bc1888" data-v-c61670c3></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-c61670c3></circle>',2)])],8,V))],64)),a.showAdd?(e(),w(P,{key:1,onClick:o[0]||(o[0]=k(G=>t(d).push({name:"add-story"}),["stop"])),class:y(["absolute top-50px border-1 border-solid rounded-full",[t(i).isNightStore?"bg-black border-black":"bg-white border-white",t(i).isRTL?"-left-5px":"-right-5px"]])},null,8,["class"])):l("",!0)],4)}}}),D=Object.assign(b($,[["__scopeId","data-v-c61670c3"]]),{__name:"UserProfilePic"});export{D as U};
|