Files
appco_dist/.output/public/_nuxt/wt3vyHO9.js
T

2 lines
3.3 KiB
JavaScript

import{d as h,G as f,y as r,H as e,z as t,u as m,al as v,at as u,a7 as w,S as p,F as _,am as y,A as a,a2 as b,cT as k,a4 as x,bY as S}from"./G_17LgpR.js";import{e as n}from"./DWEdiVkG.js";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(l){const i=f();return(s,c)=>e(i).isNightStore?(t(),r("img",P)):(t(),r("img",M))}}),U={alt:"instagram",class:"story_img object-cover"},V={key:0,viewBox:"0 0 100 100"},$=["width","height"],j=h({__name:"UserProfilePic",props:{width:{default:80},src:{default:n},seenStory:{type:Boolean,default:!1},justShowProfile:{type:Boolean},showAdd:{type:Boolean,default:!1}},setup(l){const i=m(),s=l,c=f();return(d,o)=>{const g=v("lazy");return t(),r("div",{class:"circle",style:u({width:s.width+"px",height:s.width+"px"})},[w(a("img",U,null,512),[[g,{src:e(y)(s.src),loading:e(n),error:e(n)}]]),d.justShowProfile?p("",!0):(t(),r(b,{key:0},[d.seenStory?(t(),r("svg",V,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)]))):(t(),r("svg",{key:1,class:"non-select",width:`${s.width}`,height:s.width,viewBox:"0 0 100 100"},o[2]||(o[2]=[k('<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,$))],64)),d.showAdd?(t(),_(N,{key:1,onClick:o[0]||(o[0]=S(G=>e(i).push({name:"add-story"}),["stop"])),class:x(["absolute top-50px border-1 border-solid rounded-full",[e(c).isNightStore?"bg-black border-black":"bg-white border-white",e(c).isRTL?"-left-5px":"-right-5px"]])},null,8,["class"])):p("",!0)],4)}}}),D=Object.assign(B(j,[["__scopeId","data-v-ba3140c5"]]),{__name:"UserProfilePic"});export{D as U};