PageSourceSearch

https://donito.me/_nuxt/ca1546180d22/CP5zJr4h.js

js donito.me collected 2026-10-02 07:44:11 UTC 5,955 bytes, 1 lines download raw bytes

1import{u as g}from"./IyP0z1E8.js";import{_ as R,r as _,w as E,c as v,J as U,o as s,b as n,j as l,F as S,d as k,e as u,t as o,z as h,i as y,A as q,B as G}from"./DsBqIO5m.js";import{s as Q}from"./x_rD_Ya3.js";const X={key:0},Y={__name:"ListOfConstance",props:{data:{type:Object},initData:{type:Array},initListsFirstData:{type:Object,defauly:null},typeOfLabel:{type:String}},setup(M){const i=M,O=_(!1),a=_({}),r=_([]),P={tool_list_highest_donations_horizontal:"highest_donations",tool_list_highest_donations_vertical:"highest_donations",tool_list_highest_donations_static:"highest_donations",tool_list_latest_donations_horizontal:"latest_donations",tool_list_latest_donations_vertical:"latest_donations",tool_list_latest_donations_static:"latest_donations",tool_list_best_donators_horizontal:"top_donators",tool_list_best_donators_vertical:"top_donators",tool_list_best_donators_static:"top_donators"},D=_(null),m=_({name:"",amount:""}),z=i.typeOfLabel.split("_"),b=_(z[z.length-1]);let x=null,d=null;E(()=>i.initData,()=>K(),{immediate:!0,deep:!0}),E(()=>i.initListsFirstData,()=>{if(!i.initListsFirstData)return;const t=i.typeOfLabel.split("_");b.value=t[t.length-1];const c=P[i.typeOfLabel],e=i.initListsFirstData[c];O.value=!0,e&&(r.value=e,b.value==="static"&&(clearInterval(x),A()))},{immediate:!0,deep:!0});const p=v(()=>({color:a.value.donator_color,fontFamily:a.value.donator_font_family||"vazir-normal",fontSize:a.value.donator_font_size+"px",fontWeight:a.value.donator_font_weight})),f=v(()=>({color:a.value.price_color,fontFamily:a.value.price_font_family||"vazir-normal",fontSize:a.value.price_font_size+"px",fontWeight:a.value.price_font_weight})),N=v(()=>{const t={background:`linear-gradient(${a.value.background_gradient_angel}deg,${a.value.background_primary_color}, ${a.value.background_secondary_color})`,borderRadius:a.value.border_radius+"px",overFlow:"hidden",margin:a.value.item_margin+"px"};return b.value==="vertical"&&(t.height="99vh"),t}),w=v(()=>({width:a.value.item_width+"px",height:a.value.item_height+"px",padding:a.value.item_padding+"px",boxSizing:"border-box",flex:"0 0 auto"})),J=v(()=>({width:a.value.item_width+"px",height:a.value.item_height+"px",padding:a.value.item_padding+"px",boxSizing:"border-box",animationDuration:`${Math.max(Number(a.value.change_speed)||1,1)/2}s`})),F=v(()=>({animationDuration:` ${a.value.change_speed}s`})),j=v(()=>({animationDuration:` ${a.value.change_speed}s `})),L=v(()=>{const t=i.typeOfLabel.split("_");return t[t.length-1]});function K(){const t={};Array.isArray(i.initData)&&(i.initData.forEach(c=>{const e=c.key.replace(`${i.typeOfLabel}_`,"");t[e]=c.value}),a.value=t,b.value==="static"&&r.value.length>0&&A())}function A(){B();let t=0;$(t),x=Q(()=>{t===r.value.length-1?t=0:t++,$(t)},Math.max(Number(a.value.change_speed)||1,1)*1e3)}function $(t){var c,e,I,T,H,V,W;d&&clearTimeout(d),(c=D.value)==null||c.classList.remove("startAnime"),m.value={name:(I=(e=r.value)==null?void 0:e[t])==null?void 0:I.name,amount:(H=(T=r.value)==null?void 0:T[t])==null?void 0:H.amount,currency_title:(W=(V=r.value)==null?void 0:V[t])==null?void 0:W.currency_title},d=setTimeout(()=>{var C;(C=D.value)==null||C.classList.add("startAnime"),d=null},10)}function B(){clearInterval(x),d&&clearTimeout(d),x=null,d=null}return U(()=>{B()}),(t,c)=>O.value?(s(),n("div",X,[L.value==="horizontal"?(s(),n("div",{key:0,class:"logos logosH",style:l(N.value)},[r.value.length>0?(s(),n("div",{key:0,class:"logos-slide flex",style:l(F.value)},[(s(!0),n(S,null,k(r.value,e=>(s(),n("div",{class:"flex flex-row mx-4 justify-between items-center",style:l(w.value)},[u("div",{class:"ml-8 w-max",style:l(p.value)},o(e==null?void 0:e.name),5),u("div",{class:"",style:l(f.value)},o(("useSeperateNumber"in t?t.useSeperateNumber:h(g))(e==null?void 0:e.amount))+" "+o((e==null?void 0:e.currency_title)||"تومان"),5)],4))),256))],4)):y("",!0),r.value.length>0?(s(),n("div",{key:1,class:"logos-slide flex",style:l(F.value)},[(s(!0),n(S,null,k(r.value,e=>(s(),n("div",{class:"flex flex-row mx-4 justify-between items-center",style:l(w.value)},[u("div",{class:"ml-8 w-max",style:l(p.value)},o(e==null?void 0:e.name),5),u("div",{class:"",style:l(f.value)}
1,o(("useSeperateNumber"in t?t.useSeperateNumber:h(g))(e==null?void 0:e.amount))+" "+o((e==null?void 0:e.currency_title)||"تومان"),5)],4))),256))],4)):y("",!0)],4)):y("",!0),L.value==="vertical"?(s(),n("div",{key:1,class:"logos logosV",style:l(N.value)},[r.value.length>0?(s(),n("div",{key:0,class:"logos-slide flex flex-col",style:l(j.value)},[(s(!0),n(S,null,k(r.value,e=>(s(),n("div",{class:"flex flex-row mx-4 justify-between items-center",style:l(w.value)},[u("div",{class:"ml-8 w-max textOverflow",style:l(p.value)},o(e==null?void 0:e.name),5),u("div",{class:"",style:l(f.value)},o(("useSeperateNumber"in t?t.useSeperateNumber:h(g))(e==null?void 0:e.amount))+" "+o((e==null?void 0:e.currency_title)||"تومان"),5)],4))),256))],4)):y("",!0),r.value.length>0?(s(),n("div",{key:1,class:"logos-slide flex flex-col",style:l(j.value)},[(s(!0),n(S,null,k(r.value,e=>(s(),n("div",{class:"flex flex-row mx-4 justify-between items-center",style:l(w.value)},[u("div",{class:"ml-8 w-max textOverflow",style:l(p.value)},o(e==null?void 0:e.name),5),u("div",{class:"",style:l(f.value)},o(("useSeperateNumber"in t?t.useSeperateNumber:h(g))(e==null?void 0:e.amount))+" "+o((e==null?void 0:e.currency_title)||"تومان"),5)],4))),256))],4)):y("",!0)],4)):y("",!0),q(u("div",{class:"",style:l(N.value)},[u("div",{class:"flex flex-row mx-4 justify-between items-center staticWrapper",style:l(J.value),ref_key:"staticHtml",ref:D},[u("div",{class:"ml-8 w-max textOverflow",style:l(p.value)},o(m.value.name),5),u("div",{class:"",style:l(f.value)},o(("useSeperateNumber"in t?t.useSeperateNumber:h(g))(m.value.amount))+" "+o(m.value.currency_title||"تومان"),5)],4)],4),[[G,L.value==="static"]])])):y("",!0)}},ae=R(Y,[["__scopeId","data-v-b98205dc"]]);export{ae 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.