1import{j as x,V as C,L as I,X as w,Y as N,o as f,c as m,F as A,m as k}from"./B_VJXJcG.js";import{s as g}from"./D9SfQS8j.js";import"./B-O2HJLL.js";import"./PisweG1x.js";import"./H3L0I2Uo.js";import"./CaXrynAP.js";import"./DbUMFFzn.js";import"./Jh_THGys.js";import"./mehJiBSG.js";const B={class:"contribution-wall","aria-hidden":"true"},F=["data-niveau"],R={__name:"FxContributionWall",props:{colonnes:{type:Number,default:7},lignes:{type:Number,default:7},niveaux:{type:Number,default:5},intervalleRemplissage:{type:Number,default:1e3},intervalleMatrice:{type:Number,default:150},pause:{type:Boolean,default:!1}},setup(_){C(l=>({v73c8b8c2:e.colonnes,v291d3212:e.lignes}));const e=_;function o(l,t){return l*e.lignes+t}function p(){return Math.floor(Math.random()*e.niveaux)}const r=I(Array(e.colonnes*e.lignes).fill(0)),d=Math.floor(e.colonnes*.6);let a=null,v=null,s=d*e.lignes;function h(){for(let l=0;l<d;l++)for(let t=0;t<e.lignes;t++)r.value[o(l,t)]=p()}function M(){if(e.pause)return;const l=Math.floor(s/e.lignes),t=s%e.lignes;r.value[o(l,t)]=p(),s++,s>=e.colonnes*e.lignes&&(clearInterval(a),a=null,y())}const i=Array.from({length:e.colonnes},(l,t)=>-(t+Math.floor(Math.random()*3)));function b(){const l=new Array(e.colonnes*e.lignes).fill(0);for(let t=0;t<e.colonnes;t++){const u=i[t];for(let n=0;n<e.lignes;n++){const c=u-n;c===0?l[o(t,n)]=4:c===1?l[o(t,n)]=3:c===2?l[o(t,n)]=2:c===3&&(l[o(t,n)]=1)}i[t]++,i[t]>e.lignes+3&&(i[t]=-(1+Math.floor(Math.random()*4)))}r.value=l}function y(){v=g(b,e.intervalleMatrice)}return w(()=>{h(),a=g(M,e.intervalleRemplissage)}),N(()=>{clearInterval(a),clearInterval(v)}),(l,t)=>(f(),m("div",B,[(f(!0),m(A,null,k(r.value,(u,n)=>(f(),m("div",{key:n,class:"contribution-cell","data-niveau":u},null,8,F))),128))]))}},q=x(R,[["__scopeId","data-v-ee30be2c"]]);export{q 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.