PageSourceSearch

https://client.lipyum.com/assets/MoneyTransactionsPanel-B99vyQut.js

js lipyum.com collected 2026-10-02 00:52:27 UTC 4,094 bytes, 1 lines download raw bytes

1import{u as b}from"./index-DvXfJsH2.js";import{a1 as w,r as u,A as g,_ as k,p as C,k as M,o as T,c as d,b as i,f as t,e as f,u as r,n as y,g as m,F as D,d as S,h as v,t as p,ap as j,i as z,s as h,C as _}from"./index-BAF_Jm8G.js";import{C as A}from"./chevron-left-y7-pIwY_.js";import{A as B,a as L}from"./arrow-up-right-DeoV3lFx.js";const V=w("money-transactions",()=>{const n=u(!1),a=u([]),c=u({}),o=u({size:30,number:1});return{loading:n,data:a,meta:c,page:o,get:async(e=null)=>{n.value=!0,e!==null&&typeof e=="number"&&(o.value.number=e);try{const{data:s}=await g.get("/transactions",{params:{page:o.value,filter:{type:"money"}}});a.value=s.data,c.value=s.meta}catch(s){console.error(s)}finally{n.value=!1}},more:async()=>{if(!n.value){o.value.number+=1,n.value=!0;try{const{data:e}=await g.get("/transactions",{params:{page:o.value,filter:{type:"money"}}});a.value.push(...e.data),c.value=e.meta}catch(e){console.error(e)}finally{n.value=!1}}}}}),I={class:"bg-base-100 h-16 relative border-b border-gray-300"},K={class:"text-base-content flex flex-row justify-center items-center py-4 relative"},W=["onClick"],$={class:"flex items-center gap-2 min-w-0"},F={class:"min-w-0"},N={class:"text-xs text-gray-800 truncate"},P={class:"text-xs text-gray-400"},R={class:"text-center"},q={class:"text-right flex items-center justify-end gap-1 pe-1"},E={class:"text-sm text-gray-500"},H={key:0,class:"py-8 text-center text-sm text-gray-400"},U={key:1,class:"flex justify-center py-4 bg-white"},G={__name:"MoneyTransactionsPanel",props:{type:{type:String,required:!1,default:"money"}},setup(n){const a=V(),c=C("transactionsWrapper"),{openModal:o}=M();b(c,()=>{a.more()},{distance:10,canLoadMore:()=>{var l,e;return!(a.loading||((l=a.meta)==null?void 0:l.current_page)>=((e=a.meta)==null?void 0:e.last_page))}});const x=l=>{o("Transactions/DetailModal",{transaction:l})};return T(()=>{a.get(1)}),(l,e)=>(i(),d("div",null,[t("div",I,[t("div",K,[t("button",{class:"absolute top-1/2 -translate-y-1/2 left-4 border border-gray-300 rounded-box w-8 h-8",onClick:e[0]||(e[0]=s=>l.$emit("close"))},[f(r(A),{class:"w-5 h-5 absolute cep-center text-base-content"})]),e[1]||(e[1]=t("h1",{class:"text-lg font-medium"},"Kredi Hareketleri",-1))])]),t("main",{class:"pb-4 h-[calc(100dvh-var(--flutter-safe-bottom)-4rem)] overflow-x-hidden overflow-y-auto scroll-hidden",ref_key:"transactionsWrapper",ref:c},[t("div",{class:y(["w-full flex flex-col text-xs",{"bg-gray-200 ":r(a).data.length>0}])},[e[3]||(e[3]=t("div",{class:"bg-[#0f5332] text-white py-1 px-2 flex flex-row items-center sticky top-0 z-10"},[t("span",{class:"py-3 px-4 min-w-[160px] font-normal flex-1 shrink-0 relative htitle"},"İşlem Tipi"),t("span",{class:"py-3 px-6 min-w-[120px] font-normal flex-1 shrink-0 relative htitle"},"Tutar"),t("span",{class:"py-3 px-6 min-w-[120px] font-normal flex-1 shrink-0 relative htitle"},"Kalan")],-1)),(i(!0),d(D,null,S(r(a).data,s=>(i(),d("div",{class:"bg-white py-2 px-4 grid grid-cols-[1.4fr_1fr_1fr] items-center border-b last:border-b-0 border-gray-100",key:s.id,onClick:J=>x(s)},[t("div",$,[t("div",{class:y(["w-5 h-5 rounded-full flex items-center justify-center shrink-0",s.direction==="in"?"bg-emerald-100":"bg-red-100"])},[s.direction==="in"?(i(),v(r(B),{key:0,class:"w-3.5 h-3.5 text-emerald-600"})):m("",!0),s.direction==="out"?(i(),v(r(L),{key:1,class:"w-3.5 h-3.5 text-red-500"})):m("",!0)],2),t("div",F,[t("p",N,p(s.type_text),1),t("p",P,p(r(j)(s.created_at)),1)])]),t("div",R,[t("span",{class:y(["text-sm font-medium flex items-center justify-center gap-1",s.direction==="in"?"text-emerald-500":"text-red-500"])},[z(p(s.direction==="in"?"+":"-")+p(r(h)(s.amount))+" ",1),f(_,{size:14,class:"shrink-0 opacity-90"})],2)]),t("div",q,[t("span",E,p(r(h)(s.after)),1),f(_,{size:14,class:"shrink-0 opacity-90"})])],8,W))),128)),!r(a).loading&&r(a).data.length===0?(i(),d("div",H," Kredi hareketi bulunamadı. ")):m("",!0),r(a).loading?(i(),d("div",U,e[2]||(e[2]=[t("div",{class:"loading loading-spinner"},null,-1)]))):m("",!0)],2)],512)]))}},Z=k(G,[["__scopeId","data-v-47555404"]]);export{Z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.