"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs38.js"),k=require("./index.cjs40.js"),g=require("./index.cjs58.js"),e=require("./index.cjs399.js");function S(l){return`polygon(${l.map(([d,s])=>`${d*100}% ${s*100}%`).join(", ")})`}function j({cell:l,colors:o}){const d=o[l.bgColorIndex]??o[0],s=o[l.shapeColorIndex]??o[1],a=Math.min(l.width,l.height),{x:f,y,width:C,height:E,shapeType:i,triangleIndex:c,stripeDirection:u,stripeCount:r=4,stripeMask:b,animationDelay:v,animationDuration:N,animationScaleFrom:R=.9,dotScale:m=.45,animationType:p,animationPhase:$=0}=l,h=u===1?a:a/(r*2-1),x=u===1?a/(r*2-1):a,P=b??Array(r).fill(!0),T={position:"absolute",left:f,top:y,width:C,height:E,"--cell-delay":`${v}ms`,"--cell-duration":`${N}ms`,"--cell-scale-from":R,"--cell-animation-phase":`${$}ms`};return t.jsxRuntimeExports.jsx("div",{className:e.default.cell,style:T,"aria-hidden":!0,children:t.jsxRuntimeExports.jsxs("div",{className:k(e.default.cellInner,p==="breathe"&&e.default.cellBreathes,p==="pulse"&&e.default.cellPulses,p==="opacity"&&e.default.cellOpacity),children:[t.jsxRuntimeExports.jsx("div",{className:e.default.bg,style:{backgroundColor:d}}),i==="circle"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeCircle,style:{backgroundColor:s}}),i==="dot"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeDot,style:{backgroundColor:s,width:`${m*100}%`,height:`${m*100}%`}}),i==="triangle"&&c!==void 0&&g.TRIANGLE_TEMPLATES[c]&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeTriangle,style:{backgroundColor:s,clipPath:S(g.TRIANGLE_TEMPLATES[c])}}),i==="diamond"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeDiamond,style:{backgroundColor:s}}),i==="cross"&&t.jsxRuntimeExports.jsxs("div",{className:e.default.shapeCross,children:[t.jsxRuntimeExports.jsx("div",{className:e.default.crossBar,style:{backgroundColor:s}}),t.jsxRuntimeExports.jsx("div",{className:e.default.crossBarVertical,style:{backgroundColor:s}})]}),i==="stripes"&&t.jsxRuntimeExports.jsx("div",{className:e.default.stripes,children:Array.from({length:r},(w,n)=>P[n]?t.jsxRuntimeExports.jsx("div",{className:e.default.stripe,style:{backgroundColor:s,...u===1?{top:`${2*n*x/a*100}%`,left:0,width:"100%",height:`${x/a*100}%`}:{left:`${2*n*h/a*100}%`,top:0,width:`${h/a*100}%`,height:"100%"}}},n):null)})]})})}j.displayName="PatternCell";exports.PatternCell=j;
//# sourceMappingURL=index.cjs60.js.map
