(this["webpackJsonpdraggable-list"]=this["webpackJsonpdraggable-list"]||[]).push([[0],{52:function(e,t,r){"use strict";r.r(t);var n=r(4),a=r(2),c=r.n(a),o=r(33),i=r.n(o),d=r(30),s=r(5),l=r(0),u=r(19),j=r(31),b=r(68),m=r(66),h=r(8);function O(e,t){return Object(h.jsx)(b.a,{sx:{width:e.width,backgroundColor:e.theme.backgroundColor,padding:1,border:"1px solid "+e.theme.textColor},children:Object(h.jsx)(m.a,{color:e.theme.textColor,fontFamily:e.theme.font,children:t.name})})}var f=function(e){return Object(h.jsx)(j.Container,{onDrop:function(t){var r;return e.setItems(function(e,t,r){var a=t.removedIndex,c=t.addedIndex,o=t.payload;if(null===a&&null===c)return e;var i=Object(l.a)(e),d=o;return null!==a&&(d=i.splice(a,1)[0]),null!==c&&i.splice(c,0,d),r?i.sort((function(e,t){return e.order-t.order})):i.map((function(e,t){return Object(n.a)(Object(n.a)({},e),{},{order:t})}))}(e.items,t,null!==(r=e.initSort)&&void 0!==r&&r))},children:e.items.map((function(t){var r={theme:e.theme,width:e.width};return Object(h.jsx)(j.Draggable,{children:e.renderItem?e.renderItem(r,t):O(r,t)},t.id)}))})},x=function(e){var t=c.a.useState(e.items),r=Object(s.a)(t,2),a=r[0],o=r[1];return c.a.useEffect((function(){u.Streamlit.setComponentValue(a)}),[a]),Object(h.jsx)(f,Object(n.a)({},Object(n.a)(Object(n.a)({},e),{},{items:a,setItems:o})))},p=function(){var e=Object(d.useRenderData)();return Object(h.jsx)(x,Object(n.a)({},Object(n.a)(Object(n.a)({},e.args),{},{theme:e.theme})))};i.a.render(Object(h.jsx)(c.a.StrictMode,{children:Object(h.jsx)(d.StreamlitProvider,{children:Object(h.jsx)(p,{})})}),document.getElementById("root"))}},[[52,1,2]]]);
//# sourceMappingURL=main.a1adb3d1.chunk.js.map