(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6832],{36832:function(t,r,n){"use strict";n.r(r),n.d(r,{default:function(){return c}});var i=n(26042),e=n(828),o=n(29815),a=n(97997),s=n(11720),d=n(53552),g=n.n(d),l=n(45697),f=n(49611),u=function(t){var r=(0,f.z)(g(),t.classes),n=t.appearance,d=t.isSameWidth,l=t.textAlign,u=t.border,c=t.borderColor,p=t.borderWidth,b=t.borderRadius,h=t.marginTop,m=t.marginRight,_=t.marginBottom,x=t.marginLeft,y=t.paddingTop,v=t.paddingRight,R=t.paddingBottom,k=t.paddingLeft,C=t.children,L=t.cssClasses,T=void 0===L?[]:L,W=r["".concat(n)],B=(0,s.useRef)(null),S=(0,e.Z)(s.default.useState(0),2),w=S[0],A=S[1],Z={"--buttonMinWidth":w?w+"px":null},j=(0,i.Z)({border:u,borderColor:c,borderWidth:p,borderRadius:b,marginTop:h,marginRight:m,marginBottom:_,marginLeft:x,paddingTop:y,paddingRight:v,paddingBottom:R,paddingLeft:k},Z);(0,s.useLayoutEffect)((function(){if(d){var t=B.current,r=0,n=!0,i=!1,e=void 0;try{for(var o,a=t.querySelectorAll("button")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value.offsetWidth;s>r&&(r=s)}}catch(g){i=!0,e=g}finally{try{n||null==a.return||a.return()}finally{if(i)throw e}}A(r)}}),[d]);return j.justifyContent="flex-start",l&&(j.justifyContent={left:"flex-start",center:"center",right:"flex-end"}[l]||"flex-start",j.textAlign=l),(0,a.tZ)("div",{ref:B,style:j,className:[r.root,W].concat((0,o.Z)(T)).join(" "),children:C})};u.propTypes={appearance:(0,l.oneOf)(["inline","stacked"]),classes:(0,l.shape)({root:l.string,stacked:l.string,inline:l.string}),isSameWidth:l.bool,textAlign:l.string,border:l.string,borderColor:l.string,borderWidth:l.string,borderRadius:l.string,marginTop:l.string,marginRight:l.string,marginBottom:l.string,marginLeft:l.string,paddingTop:l.string,paddingRight:l.string,paddingBottom:l.string,paddingLeft:l.string,cssClasses:(0,l.arrayOf)(l.string)};var c=u},53552:function(t){t.exports={root:"buttons_root___xxnk",stacked:"buttons_stacked__ccxlf",inline:"buttons_inline__ewb9K"}}}]);