(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97004],{43256:(s,e,t)=>{"use strict";t.d(e,{A:()=>l});let l=(0,t(31928).I)("button")({name:"DefaultButton",class:"dj4vswd",propsAsIs:!1});t(25551)},97004:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>p});var l=t(87687),n=t(52751),r=t(31928),c=t(43256);let i=(s,e)=>Math.floor(Math.random()*(e-s))+s,a=function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hsl(50deg, 100%, 50%)";return{id:String(i(1e4,99999)),createdAt:Date.now(),color:s,size:200}};function o(s){let{color:e,size:t,style:n}=s;return(0,l.jsx)(d,{width:t,height:t,viewBox:"0 0 160 160",fill:"none",style:n,children:(0,l.jsx)("path",{d:"M80 0C80 0 84.2846 41.2925 101.496 58.504C118.707 75.7154 160 80 160 80C160 80 118.707 84.2846 101.496 101.496C84.2846 118.707 80 160 80 160C80 160 75.7154 118.707 58.504 101.496C41.2925 84.2846 0 80 0 80C0 80 41.2925 75.7154 58.504 58.504C75.7154 41.2925 80 0 80 0Z",fill:e})})}let d=(0,r.I)("svg")({name:"Svg",class:"s10vj4cy",propsAsIs:!1}),h=(0,r.I)("span")({name:"Wrapper",class:"wchvb39",propsAsIs:!1}),p=function(s){let{children:e}=s,[t,r]=n.useState(a);return(0,l.jsxs)(h,{children:[(0,l.jsx)(o,{color:t.color,size:t.size,style:t.style},t.id),(0,l.jsx)(c.A,{onClick:()=>r(a()),children:"Click me"})]})};t(80506)},25551:s=>{s.exports={dj4vswd:"dj4vswd"}},80506:s=>{s.exports={s10vj4cy:"s10vj4cy","sparkleAnimation-s10vj4cy":"sparkleAnimation-s10vj4cy",wchvb39:"wchvb39"}}}]); //# sourceMappingURL=97004.ed1a09ef9b1aa3f5.js.map