(window["webpackJsonppurple-react-free"]=window["webpackJsonppurple-react-free"]||[]).push([[45],{711:function(e,a,i){"use strict";i.r(a);var r=i(1),n=i.n(r),t=i(168),l=i.n(t),c=i(169),d=i.n(c),m=i(170),o=i.n(m),s=i(157),p=i(11),u=m.Search.SearchBar,h=(m.Search.ClearSearchButton,m.CSVExport.ExportCSVButton,[{dataField:"id",text:"Id"},{dataField:"name",text:"Owner"},{dataField:"animal",text:"Store"}]),S=[{id:1,name:"Beef - Bones, Marrow",price:1991,stores:[{id:1,name:"George",animal:"Regrant"},{id:2,name:"Jeffrey",animal:"Prodder"},{id:3,name:"Alice",animal:"Holdlamis"},{id:4,name:"Alice",animal:"Fixflex"}]},{id:2,name:"Lamb - Whole, Frozen",price:2012},{id:3,name:"V8 Splash Strawberry Kiwi",price:2011},{id:4,name:"Ice Cream - Turtles Stick Bar",price:2011},{id:5,name:"Peas - Pigeon, Dry",price:2012},{id:6,name:"Schnappes - Peach, Walkers",price:1997},{id:7,name:"Jerusalem Artichoke",price:1996},{id:8,name:"Dried Peach",price:2006},{id:9,name:"Mangostein",price:1993},{id:10,name:"Samosa - Veg",price:2003},{id:11,name:"Broom - Angled",price:1998},{id:12,name:"Asparagus - Green, Fresh",price:2011},{id:13,name:"Nut - Hazelnut, Whole",price:2011},{id:14,name:"Beef - Cow Feet Split",price:2011},{id:15,name:"Tea - Mint",price:1993},{id:16,name:"Water, Tap",price:1997},{id:17,name:"Island Oasis - Strawberry",price:2006},{id:18,name:"Water - Spring Water, 355 Ml",price:2006},{id:19,name:"Vinegar - Cider",price:1990},{id:20,name:"Calypso - Pineapple Passion",price:2009},{id:21,name:"Coffee Caramel Biscotti",price:1996},{id:22,name:"Nut - Macadamia",price:2003},{id:23,name:"Ice Cream Bar - Oreo Sandwich",price:2001},{id:24,name:"Mushroom - King Eryingii",price:2011},{id:25,name:"Sauce - Hp",price:1995},{id:26,name:"Wine - Piper Heidsieck Brut",price:2002},{id:27,name:"Plaintain",price:2e3},{id:28,name:"Oyster - In Shell",price:2009},{id:29,name:"Paper Cocktail Umberlla 80 - 180",price:1986},{id:30,name:"Cheese - Shred Cheddar / Mozza",price:1993},{id:31,name:"Rootbeer",price:1992},{id:32,name:"Chicken - Whole",price:2004},{id:33,name:"Squid Ink",price:1997},{id:34,name:"Lamb Rack Frenched Australian",price:2004},{id:35,name:"Oil - Food, Lacquer Spray",price:2012},{id:36,name:"Cheese - Fontina",price:1999},{id:37,name:"Broom And Broom Rack White",price:1997},{id:38,name:"Cheese - Parmesan Cubes",price:2008},{id:39,name:"Pastry - Plain Baked Croissant",price:1985},{id:40,name:"Sansho Powder",price:2012},{id:41,name:"Fennel",price:2007},{id:42,name:"Halibut - Steaks",price:2006},{id:43,name:"Steel Wool S.o.s",price:2010},{id:44,name:"Apple - Delicious, Golden",price:2008},{id:45,name:"Pastry - Butterscotch Baked",price:1993},{id:46,name:"Chicken - Wieners",price:2010},{id:47,name:"Wine - Sake",price:1992},{id:48,name:"Uniform Linen Charge",price:2001},{id:49,name:"Truffle Shells - Semi - Sweet",price:1997},{id:50,name:"Kellogs All Bran Bars",price:1999}];a.default=function(){var e=[{dataField:"id",text:"Product ID",sort:!0},{dataField:"name",text:"Product Name",sort:!0},{dataField:"price",text:"Product Price",sort:!0},{dataField:"follow",text:"Follow",formatter:function(e,a,i,r){return n.a.createElement(p.b,{to:"/userdetails"},n.a.createElement("button",{className:"btn btn-primary px-4 py-2",onClick:function(){return console.log("row: ",a)}},"View Report"))},sort:!0}],a={mode:"checkbox",clickToSelect:!0};function i(){return n.a.createElement("p",null,"No Store Available ")}var r={renderer:function(e){var a=e.stores;return a?n.a.createElement(l.a,{data:a,columns:h,keyField:"id",noDataIndication:"Table is Empty"}):n.a.createElement(l.a,{keyField:"id",data:[],columns:h,noDataIndication:i})},showExpandColumn:!0,expandColumnPosition:"right",expandHeaderColumnRenderer:function(e){return e.isAnyExpands?n.a.createElement("b",null,"-"):n.a.createElement("b",null,"+")},expandColumnRenderer:function(e){return e.expanded?n.a.createElement(s.d,null):n.a.createElement(s.a,null)}};return n.a.createElement("div",{className:"table-responsive"},n.a.createElement(o.a,{keyField:"id",data:S,columns:e,search:!0},(function(e){return n.a.createElement("div",null,n.a.createElement("div",{className:"d-flex justify-content-between align-items-center"},n.a.createElement("div",null,n.a.createElement("h4",{className:"page-title"},"Users List"),n.a.createElement("div",{className:"page-title-small mb-4"},n.a.createElement("small",null,"You can see users here"))),n.a.createElement("div",null,n.a.createElement(u,Object.assign({},e.searchProps,{className:"rounded-pill "})),n.a.createElement("button",{type:"button",className:"btn px-3 py-2 font-weight-normal text-white ml-2",style:{backgroundColor:"#25C454"}},"Add User"))),n.a.createElement("hr",null),n.a.createElement(l.a,Object.assign({hover:!0,headerWrapperClasses:"sample"},e.baseProps,{bootstrap4:!0,expandRow:r,selectRow:a,pagination:d()(),bordered:!1,rowStyle:{margin:20,padding:20}})))})))}}}]);
//# sourceMappingURL=45.9b844c16.chunk.js.map