All-Resources/[phone]/codem-phone/ui/dist/js/NotesApp.DWgo8vft.js
2026-04-14 17:41:39 +02:00

2 lines
19 KiB
JavaScript

var x=($,h,f)=>new Promise((B,v)=>{var N=u=>{try{C(f.next(u))}catch(p){v(p)}},s=u=>{try{C(f.throw(u))}catch(p){v(p)}},C=u=>u.done?B(u.value):Promise.resolve(u.value).then(N,s);C((f=f.apply($,h)).next())});import{s as V,p as X,r as d,o as ee,n as te,e as se,f as c,q as le,g as Z,v as R,i as t,k as a,x as ae,T as oe,V as I,h as r,A as M,W as L,t as g,l as ne,F as ie,m as re,C as ce,J as U}from"./vendor-vue.CmaRnji1.js";import{_ as ue,u as de,dv as fe,a as he,A as ve,ds as Ce,S as pe,i as T,f as S}from"./index.CjrDwa0W.js";import"./vendor.DSdF8huI.js";import"./swiper.tg5sgs8j.js";const me={class:"w-full h-full rounded-[44em] overflow-hidden pt-[16%] pb-[4%] bg-[#F2F2F7] dark:bg-black"},ge={class:"w-full h-full relative"},xe={key:"list",class:"w-full h-full relative"},_e={class:"w-full h-[5%] flex items-center justify-between px-[7%]"},we={style:{"letter-spacing":"-0.35px"},class:"text-[25em] font-['SFPRO'] text-black dark:text-white font-[400] leading-[100%]",delay:100},ke={class:"text-[11em] font-['SFPRO'] text-black dark:text-white font-[400] leading-[100%]"},ye={class:"w-full h-[calc(100%-18px)]"},be={key:0,class:"w-full h-full"},Fe={class:"w-full h-[46%] flex items-end justify-center"},Ee={xmlns:"http://www.w3.org/2000/svg",class:"h-[30%]",viewBox:"0 0 120 120",fill:"none"},Se=["fill"],Ne={class:"w-full h-[13%] flex items-center justify-center"},Me={class:"text-[13em] font-['SFPRO'] text-black/40 dark:text-white/40 font-[400] leading-[100%] mt-[1px] text-center"},Te={class:"w-full h-[23%] flex items-end justify-end"},De=["src"],Be=["onClick","enter"],Oe={class:"w-full h-full flex justify-between"},Pe={class:"w-[94%] h-full flex flex-col items-start"},He={style:{"letter-spacing":"-0.35px"},class:"text-[12em] font-['SFPRO'] text-black dark:text-white font-[400] leading-[100%] text-center mt-[0%] fixtext"},je={style:{"letter-spacing":"-0.35px"},class:"text-[8em] font-['SFPRO'] text-black/50 dark:text-white/50 font-[400] leading-[100%] text-center mt-[2%] fixtext"},Re={class:"w-[5%] h-full flex items-center justify-center"},Le=["src"],$e=["onClick","src"],Ae=["src"],Ve={key:"detail",class:"w-full h-full"},Ze={class:"w-full h-[8%] absolute bottom-[2%] px-[5%] flex z-[2] justify-between"},Ie={class:"w-[50%] h-full p-[8em] rounded-full flex overflow-hidden bg-white dark:bg-[#1E1E1E] shadow-[0px_0px_32.400001525878906px_0px_rgba(0,0,0,0.15)]"},Ue={xmlns:"http://www.w3.org/2000/svg",class:"h-[40%]",viewBox:"0 0 24 24",fill:"none"},qe=["stroke"],ze=["stroke"],Ge=["stroke"],Je={style:{"letter-spacing":"-0.35px"},class:"text-[10em] mt-[6%] font-['SFPRO'] text-black/70 dark:text-white font-[400] leading-[100%]"},We={xmlns:"http://www.w3.org/2000/svg",class:"h-[40%]",viewBox:"0 0 22 20",fill:"none"},Ye=["fill"],Ke=["fill"],Qe={style:{"letter-spacing":"-0.35px"},class:"text-[10em] mt-[7%] font-['SFPRO'] text-black/70 dark:text-white font-[400] leading-[100%]"},Xe=["src"],e1={class:"w-full h-[5%] flex items-center justify-between mt-[1%] px-[5%]"},t1={xmlns:"http://www.w3.org/2000/svg",style:{rotate:"180deg"},class:"h-[35%]",viewBox:"0 0 8 12",fill:"none"},s1={class:"text-[13em] font-['SFPRO'] ml-[0.7em] text-[#FFC700] font-[400] mt-[1px] leading-[100%]"},l1={class:"text-[11em] font-['SFPRO'] p-[1em] text-[#FFC700] font-[400] mt-[1px] leading-[100%]"},a1={class:"w-full mt-[2%] h-[5%] px-[6%] flex items-end"},o1=["placeholder"],n1={class:"w-full h-[calc(100%-7%)] px-[6%] mt-[-1.5%]"},i1=["placeholder"],r1={__name:"NotesApp",setup($){const h=de(),{DarkMode:f,PhoneData:B}=V(h),v=fe(),{ScrollPage:N}=V(v),{t:s}=he();X(()=>{f.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")});const C=d("top"),u=d(!1),p=d(!1),n=d(""),i=d(""),y=d(""),b=d(""),m=d(null),_=d(!1),A=()=>x(this,null,function*(){if(!n.value||n.value.trim().length===0){h.TriggerNotification({appname:"notes",header:s("notes.message"),message:s("notes.headerRequired")});return}if(_.value){if(!(n.value!==y.value||i.value!==b.value)){p.value=!1,n.value="",i.value="",y.value="",b.value="",m.value=null,_.value=!1;return}let e=yield S("NOTES_UPDATE",{id:m.value,header:n.value,content:i.value});e.success&&v.UpdateNote({id:m.value,header:n.value,content:i.value,date:e.date})}else{let l=yield S("NOTES_CREATE",{header:n.value,content:i.value});l&&l.success&&v.AddNote(l.note)}p.value=!1,n.value="",i.value="",y.value="",b.value="",m.value=null,_.value=!1});ee(()=>x(this,null,function*(){yield v.fetchNotes(),w.value&&(w.value.addEventListener("scroll",O),setTimeout(()=>x(this,null,function*(){yield te(),O()}),100))}));const w=d(null),q=d(0),O=()=>{if(!w.value)return;const l=w.value,e=l.scrollTop,E=l.scrollHeight,k=l.clientHeight,o=E-k;q.value=o>0?e/o:0,e<=5?C.value="top":e>=o-5?C.value="bottom":C.value="middle",e+k>=E-100&&v.LoadNotesMore()};se(()=>{w.value&&w.value.removeEventListener("scroll",O)});const z=l=>{const e=new Date(l),E=e.getDate().toString().padStart(2,"0"),k=(e.getMonth()+1).toString().padStart(2,"0"),o=e.getFullYear(),H=e.getHours().toString().padStart(2,"0"),j=e.getMinutes().toString().padStart(2,"0");return`${E}.${k}.${o} ${H}:${j}`},G=l=>{n.value=l.header,i.value=l.content,y.value=l.header,b.value=l.content,m.value=l.id,_.value=!0,p.value=!0},J=()=>{n.value="",i.value="",y.value="",b.value="",m.value=null,_.value=!1,u.value=!1,p.value=!0},W=()=>x(this,null,function*(){if(_.value&&m.value){let l=yield S("NOTES_DELETE",{id:m.value});l&&l.success&&v.DeleteNote(m.value)}p.value=!1,n.value="",i.value="",y.value="",b.value="",m.value=null,_.value=!1}),F=d(!1),Y=()=>x(this,null,function*(){let l=yield S("NOTES_DELETE",{id:F.value});l&&l.success&&(v.DeleteNote(F.value),F.value=!1)}),D=d(!1),K=l=>x(this,null,function*(){if(D.value=!1,!l||!l.target_phone)return;if(!n.value||n.value.trim().length===0){h.TriggerNotification({appname:"message",header:s("notes.message"),message:s("notes.cannotSendEmpty")});return}if(!i.value||i.value.trim().length===0){h.TriggerNotification({appname:"message",header:s("notes.message"),message:s("notes.cannotSendEmpty")});return}let e=yield S("SEND_MESSAGE",{recipients:[{target_phone:l.target_phone}],message:{type:"notes",content:{header:n.value,content:i.value}}});e.success||h.TriggerNotification({appname:"message",header:s("notes.message"),message:s(e.message)})}),P=d(!1),Q=l=>x(this,null,function*(){if(!l||!l.playerId)return;if(!n.value||n.value.trim().length===0){h.TriggerNotification({appname:"notes",header:s("notes.message"),message:s("notes.cannotSendEmpty")});return}if(!i.value||i.value.trim().length===0){h.TriggerNotification({appname:"notes",header:s("notes.message"),message:s("notes.cannotSendEmpty")});return}let e=yield S("SHARE_NOTE_FROM_MODAL",{header:n.value,content:i.value,target:l.playerId,playerName:B.value.settings.name});if(!e.success){h.TriggerNotification({appname:"notes",header:s("notes.message"),message:s(e.message)||e.message||s("photos.errors.shareFailed")});return}});return(l,e)=>{const E=I("motion-slide-left"),k=I("motion");return r(),c("div",me,[F.value?(r(),le(ve,{key:0,label:a(s)("notes.deleteConfirm"),buttons:{cancel:a(s)("general.cancel"),submit:a(s)("general.delete")},onCancel:e[0]||(e[0]=o=>F.value=!1),onSubmit:Y},null,8,["label","buttons"])):Z("",!0),R(Ce,{onCancel:e[1]||(e[1]=o=>D.value=!1),onSelectcontact:K,style:{"z-index":"1004"},title:a(s)("notes.sendNote"),show:D.value},null,8,["title","show"]),R(pe,{show:P.value,header:a(s)("photos.sharePhoto"),onPlayerSelected:Q,onCancel:e[2]||(e[2]=o=>P.value=!1)},null,8,["show","header"]),t("div",ge,[R(oe,{name:"slide-right"},{default:ae(()=>[p.value?(r(),c("div",Ve,[t("div",Ze,[t("div",Ie,[t("div",{onClick:e[5]||(e[5]=o=>P.value=!0),class:"w-[50%] h-full flex flex-col items-center cursor-pointer justify-center"},[(r(),c("svg",Ue,[e[11]||(e[11]=t("circle",{cx:"12",cy:"12",r:"2",fill:"black","fill-opacity":"0.7"},null,-1)),t("path",{d:"M9.80322 15.7366C8.97599 15.2502 8.33364 14.5028 7.97694 13.6119C7.62025 12.721 7.56939 11.7369 7.83235 10.8139C8.09531 9.891 8.6572 9.08146 9.42988 8.51231C10.2026 7.94316 11.1423 7.6466 12.1017 7.66917C13.0611 7.69173 13.9859 8.03213 14.731 8.63698C15.476 9.24182 15.9993 10.0769 16.2185 11.0112C16.4378 11.9455 16.3407 12.9261 15.9426 13.7993C15.5444 14.6724 14.8676 15.3887 14.0184 15.8358",stroke:a(f)?"#FFFFFFB2":"#000000B2","stroke-width":"2","stroke-linecap":"round"},null,8,qe),t("path",{d:"M8.11384 18.6073C6.65027 17.7467 5.51381 16.4245 4.88274 14.8483C4.25167 13.272 4.16169 11.5309 4.62691 9.89798C5.09214 8.26509 6.08626 6.83282 7.45331 5.82586C8.82037 4.8189 10.483 4.29423 12.1804 4.33415C13.8778 4.37407 15.514 4.97632 16.8322 6.04643C18.1504 7.11654 19.0761 8.59396 19.464 10.2469C19.852 11.8999 19.6802 13.6349 18.9758 15.1797C18.2713 16.7245 17.0739 17.9918 15.5715 18.7827",stroke:a(f)?"#FFFFFFB2":"#000000B2","stroke-width":"2","stroke-linecap":"round"},null,8,ze),t("path",{d:"M6.42397 21.482C4.32407 20.2471 2.69349 18.3501 1.78804 16.0885C0.88259 13.8269 0.753489 11.3288 1.42099 8.98593C2.0885 6.64308 3.51484 4.58808 5.47626 3.14332C7.43768 1.69855 9.82322 0.945764 12.2586 1.00304C14.694 1.06032 17.0416 1.92442 18.9329 3.4598C20.8242 4.99517 22.1524 7.11495 22.709 9.48659C23.2656 11.8582 23.0192 14.3476 22.0085 16.5641C20.9977 18.7806 19.2797 20.5988 17.1241 21.7336",stroke:a(f)?"#FFFFFFB2":"#000000B2","stroke-width":"2","stroke-linecap":"round"},null,8,Ge)])),t("span",Je,g(a(s)("general.share")),1)]),t("div",{onClick:e[6]||(e[6]=o=>D.value=!0),class:"w-[50%] h-full flex flex-col items-center cursor-pointer justify-center"},[(r(),c("svg",We,[t("path",{d:"M4.20988 20C4.64316 20 5.20254 19.8727 5.88801 19.6182C6.5735 19.3635 7.29455 19.0326 8.05116 18.6253C8.80778 18.2179 9.51267 17.782 10.1658 17.3174C11.5174 17.3556 12.7913 17.241 13.9876 16.9738C15.184 16.7064 16.2721 16.3134 17.2518 15.7947C18.2316 15.276 19.0755 14.6539 19.7836 13.9283C20.4916 13.2029 21.0381 12.3962 21.4229 11.5084C21.8076 10.6206 22 9.67703 22 8.6778C22 7.47493 21.7171 6.34844 21.1512 5.29832C20.5854 4.2482 19.7997 3.32696 18.7941 2.5346C17.7885 1.74224 16.6196 1.12172 15.2875 0.673031C13.9553 0.224344 12.5262 0 11 0C9.47385 0 8.04469 0.224344 6.71253 0.673031C5.38037 1.12172 4.2115 1.74224 3.20591 2.5346C2.20032 3.32696 1.41461 4.2482 0.848767 5.29832C0.282922 6.34844 0 7.47493 0 8.6778C0 9.72154 0.211787 10.7112 0.635362 11.6468C1.05894 12.5823 1.65388 13.4224 2.42019 14.1671C3.18651 14.9117 4.08055 15.5163 5.1023 15.9809C4.95357 16.2609 4.77573 16.56 4.56879 16.8782C4.36185 17.1965 4.15492 17.5004 3.94798 17.7899C3.74104 18.0795 3.5632 18.3166 3.41447 18.5012C3.24633 18.724 3.16549 18.9515 3.17196 19.1837C3.17843 19.4161 3.26896 19.6102 3.44357 19.7661C3.61817 19.922 3.87361 20 4.20988 20ZM5.2284 18.4153C5.1896 18.428 5.16374 18.4232 5.15081 18.4009C5.13787 18.3787 5.14434 18.3516 5.1702 18.3198C5.44181 17.9888 5.74251 17.6054 6.07232 17.1695C6.40213 16.7335 6.6511 16.3627 6.81923 16.0573C6.95504 15.8091 6.99707 15.5799 6.94534 15.37C6.8936 15.1599 6.71253 14.9817 6.40213 14.8353C5.38684 14.3707 4.52191 13.8218 3.80733 13.1885C3.09275 12.5553 2.54792 11.8568 2.17284 11.0931C1.79777 10.3294 1.61023 9.52427 1.61023 8.6778C1.61023 7.69769 1.85112 6.77963 2.33289 5.92362C2.81467 5.06762 3.48399 4.31344 4.34084 3.6611C5.19769 3.00875 6.19519 2.49801 7.33334 2.12887C8.4715 1.75974 9.69372 1.57518 11 1.57518C12.3063 1.57518 13.5285 1.75974 14.6667 2.12887C15.8049 2.49801 16.8024 3.00875 17.6592 3.6611C18.5161 4.31344 19.187 5.06762 19.672 5.92362C20.157 6.77963 20.3995 7.69769 20.3995 8.6778C20.3995 9.65155 20.157 10.568 19.672 11.4272C19.187 12.2864 18.5161 13.0406 17.6592 13.6897C16.8024 14.3389 15.8049 14.848 14.6667 15.2172C13.5285 15.5863 12.3063 15.7709 11 15.7709C10.903 15.7709 10.7801 15.7693 10.6314 15.7661C10.4827 15.7629 10.3113 15.7581 10.1173 15.7518C9.91681 15.7518 9.73091 15.7852 9.55954 15.852C9.38817 15.9189 9.21195 16.0223 9.03088 16.1623C8.6364 16.4423 8.19989 16.7335 7.72136 17.0358C7.24281 17.3381 6.78043 17.6133 6.33422 17.8616C5.88801 18.1097 5.51941 18.2943 5.2284 18.4153Z",fill:a(f)?"#FFFFFFB2":"#000000B2"},null,8,Ye),t("path",{d:"M5.2284 18.4153C5.1896 18.428 5.16374 18.4232 5.15081 18.4009C5.13787 18.3787 5.14434 18.3516 5.1702 18.3198C5.44181 17.9888 5.74251 17.6054 6.07232 17.1695C6.40213 16.7335 6.6511 16.3627 6.81923 16.0573C6.95504 15.8091 6.99707 15.5799 6.94534 15.37C6.8936 15.1599 6.71253 14.9817 6.40213 14.8353C5.38684 14.3707 4.52191 13.8218 3.80733 13.1885C3.09275 12.5553 2.54792 11.8568 2.17284 11.0931C1.79777 10.3294 1.61023 9.52427 1.61023 8.6778C1.61023 7.69769 1.85112 6.77963 2.33289 5.92362C2.81467 5.06762 3.48399 4.31344 4.34084 3.6611C5.19769 3.00875 6.19519 2.49801 7.33334 2.12887C8.4715 1.75974 9.69372 1.57518 11 1.57518C12.3063 1.57518 13.5285 1.75974 14.6667 2.12887C15.8049 2.49801 16.8024 3.00875 17.6592 3.6611C18.5161 4.31344 19.187 5.06762 19.672 5.92362C20.157 6.77963 20.3995 7.69769 20.3995 8.6778C20.3995 9.65155 20.157 10.568 19.672 11.4272C19.187 12.2864 18.5161 13.0406 17.6592 13.6897C16.8024 14.3389 15.8049 14.848 14.6667 15.2172C13.5285 15.5863 12.3063 15.7709 11 15.7709C10.903 15.7709 10.7801 15.7693 10.6314 15.7661C10.4827 15.7629 10.3113 15.7581 10.1173 15.7518C9.91681 15.7518 9.73091 15.7852 9.55954 15.852C9.38817 15.9189 9.21195 16.0223 9.03088 16.1623C8.6364 16.4423 8.19989 16.7335 7.72136 17.0358C7.24281 17.3381 6.78043 17.6133 6.33422 17.8616C5.88801 18.1097 5.51941 18.2943 5.2284 18.4153Z",fill:a(f)?"#FFFFFFB2":"#000000B2"},null,8,Ke)])),t("span",Qe,g(a(s)("notes.message")),1)])]),t("div",{onClick:W,class:"h-full aspect-square rounded-full bg-white dark:bg-[#1E1E1E] flex items-center justify-center shadow-[0px_0px_32.400001525878906px_0px_rgba(0,0,0,0.15)] cursor-pointer anim-hover-1"},[t("img",{src:a(T)["call/delete.svg"],class:"h-[35%]",alt:""},null,8,Xe)])]),t("div",e1,[t("div",{onClick:A,class:"inline-flex h-full px-[4%] border-1 border-black rounded-full items-center justify-center bg-white dark:bg-[#1E1E1E] cursor-pointer anim-hover-1"},[(r(),c("svg",t1,e[12]||(e[12]=[t("path",{d:"M1.50004 1L6.5 6L1.5 11",stroke:"#FFC700","stroke-width":"2","stroke-miterlimit":"16","stroke-linecap":"round"},null,-1)]))),t("span",s1,g(a(s)("notes.title")),1)]),t("div",{onClick:A,class:"flex items-center justify-center h-full rounded-full bg-white dark:bg-[#1E1E1E] cursor-pointer anim-hover-1"},[t("p",l1,g(a(s)("general.done")),1)])]),t("div",a1,[M(t("input",{"onUpdate:modelValue":e[7]||(e[7]=o=>n.value=o),placeholder:a(s)("notes.headerPlaceholder"),type:"text",maxlength:40,class:"w-[100%] h-full border-none outline-none font-[400] bg-transparent text-[17em] text-black dark:text-white placeholder:text-black/60 dark:placeholder:text-white/60"},null,8,o1),[[U,n.value]])]),t("div",n1,[M(t("textarea",{"onUpdate:modelValue":e[8]||(e[8]=o=>i.value=o),style:{resize:"none","white-space":"pre-wrap","word-wrap":"break-word","overflow-wrap":"break-word","letter-spacing":"-0.1px"},class:"w-full h-full bg-transparent text-[12em] mt-[1em] font-['SFPRO'] text-black dark:text-white no-scrollbar font-[400] leading-[200%] fixtext outline-none dark:placeholder:text-white/50 placeholder:text-black/60",placeholder:a(s)("notes.contentPlaceholder"),maxlength:1e3},null,8,i1),[[U,i.value]])])])):(r(),c("div",xe,[t("div",_e,[M((r(),c("span",we,[L(g(a(s)("notes.title")),1)])),[[E]]),a(N).notes.loadedData.length>0?(r(),c("div",{key:0,onClick:e[3]||(e[3]=o=>u.value=!u.value),class:"inline-flex h-full bg-white dark:bg-[#1E1E1E] px-[10em] items-center justify-center rounded-full cursor-pointer anim-hover-1"},[t("span",ke,g(u.value?a(s)("general.done"):a(s)("general.edit")),1)])):Z("",!0)]),t("div",ye,[a(N).notes.loadedData.length<=0?(r(),c("div",be,[t("div",Fe,[(r(),c("svg",Ee,[t("path",{d:"M18.9062 120H101.154C107.456 120 112.173 118.316 115.304 114.949C118.435 111.581 120 106.529 120 99.7938V20.2065C120 13.471 118.435 8.41935 115.304 5.05162C112.173 1.68387 107.456 0 101.154 0H18.9062C12.6041 0 7.87756 1.68387 4.72654 5.05162C1.57551 8.41935 0 13.471 0 20.2065V99.7938C0 106.529 1.57551 111.581 4.72654 114.949C7.87756 118.316 12.6041 120 18.9062 120ZM18.003 109.506C15.3537 109.506 13.3066 108.735 11.8615 107.192C10.4165 105.649 9.69395 103.379 9.69395 100.381V38.9137C9.69395 35.9154 10.4165 33.6448 11.8615 32.1022C13.3066 30.5595 15.3537 29.7882 18.003 29.7882H101.937C104.626 29.7882 106.693 30.5595 108.139 32.1022C109.583 33.6448 110.306 35.9154 110.306 38.9137V100.381C110.306 103.379 109.583 105.649 108.139 107.192C106.693 108.735 104.626 109.506 101.937 109.506H18.003ZM28.4797 54.036H91.7006C92.7845 54.036 93.6777 53.6449 94.3802 52.8627C95.0826 52.0805 95.4339 51.1028 95.4339 49.9295C95.4339 48.8432 95.0826 47.9197 94.3802 47.1593C93.6777 46.3988 92.7845 46.0186 91.7006 46.0186H28.4797C27.3959 46.0186 26.4927 46.3988 25.7702 47.1593C25.0477 47.9197 24.6864 48.8432 24.6864 49.9295C24.6864 51.1028 25.0477 52.0805 25.7702 52.8627C26.4927 53.6449 27.3959 54.036 28.4797 54.036ZM28.4797 73.6559H91.7006C92.7845 73.6559 93.6777 73.2757 94.3802 72.5152C95.0826 71.7547 95.4339 70.8314 95.4339 69.7452C95.4339 68.615 95.0826 67.648 94.3802 66.8444C93.6777 66.0404 92.7845 65.6384 91.7006 65.6384H28.4797C27.3959 65.6384 26.4927 66.0404 25.7702 66.8444C25.0477 67.648 24.6864 68.615 24.6864 69.7452C24.6864 70.8314 25.0477 71.7547 25.7702 72.5152C26.4927 73.2757 27.3959 73.6559 28.4797 73.6559ZM28.4797 93.3408H68.6401C69.724 93.3408 70.6172 92.9606 71.3197 92.2001C72.0222 91.4396 72.3734 90.4945 72.3734 89.3647C72.3734 88.2349 72.0222 87.2789 71.3197 86.4966C70.6172 85.7143 69.724 85.3232 68.6401 85.3232H28.4797C27.3959 85.3232 26.4927 85.7143 25.7702 86.4966C25.0477 87.2789 24.6864 88.2349 24.6864 89.3647C24.6864 90.4945 25.0477 91.4396 25.7702 92.2001C26.4927 92.9606 27.3959 93.3408 28.4797 93.3408Z",fill:a(f)?"#FFFFFF40":"#00000040"},null,8,Se)]))]),t("div",Ne,[t("span",Me,[L(g(a(s)("notes.emptyState.line1"))+" ",1),e[9]||(e[9]=t("br",null,null,-1)),L(" "+g(a(s)("notes.emptyState.line2")),1)])]),t("div",Te,[t("img",{src:a(T)["notes/line.svg"],class:"h-[90%] mr-[14.5%]",alt:""},null,8,De)])])):(r(),c("div",{key:1,ref_key:"scrollContainer",ref:w,class:ne([[C.value==="top"?"mask-bottom":"",C.value==="middle"?"mask-both":"",C.value==="bottom"?"mask-top":""],"w-full h-full overflow-auto mt-[2%] px-[6%] no-scrollbar"])},[(r(!0),c(ie,null,re(a(N).notes.loadedData,(o,H)=>M((r(),c("div",{onClick:j=>!u.value&&G(o),key:o.id,initial:{opacity:0,x:-20,scale:.97},enter:{opacity:1,x:0,scale:1,transition:{delay:Math.min(H*50,300),duration:280,ease:"easeOut"}},class:"w-full h-[9%] first:mt-[5%] mt-[2%] p-[5%] bg-white dark:bg-[#1E1E1E] cursor-pointer rounded-[15em] anim-hover-1"},[t("div",Oe,[t("div",Pe,[t("span",He,g(o.header),1),t("span",je,g(z(o.date)),1)]),t("div",Re,[u.value?(r(),c("img",{key:1,onClick:[e[4]||(e[4]=ce(()=>{},["stop"])),j=>F.value=o.id],src:a(T)["call/delete.svg"],class:"h-[60%] cursor-pointer anim-hover-1",alt:""},null,8,$e)):(r(),c("img",{key:0,src:a(T)["settings/leftarrow.svg"],class:"h-[45%]",alt:""},null,8,Le))])])],8,Be)),[[k]])),128)),e[10]||(e[10]=t("div",{class:"w-full h-[150px]"},null,-1))],2))]),M((r(),c("div",{onClick:J,initial:{opacity:0,scale:.5},enter:{opacity:1,scale:1,transition:{delay:200,duration:400,type:"spring",stiffness:200,damping:15}},class:"h-[10%] cursor-pointer anim-hover-1 rounded-full absolute bottom-[3em] aspect-square right-[15em] bg-white dark:bg-[#1E1E1E] shadow-[0px_0px_32.400001525878906px_0px_rgba(0,0,0,0.15)] flex items-center justify-center"},[t("img",{src:a(T)["notes/createnote.svg"],class:"h-[40%] ml-[2px]",alt:""},null,8,Ae)])),[[k]])]))]),_:1})])])}}},v1=ue(r1,[["__scopeId","data-v-4423f132"]]);export{v1 as default};