text: (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{SO6N:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),a=n.n(r),c=n("VwWJ"),o=n("fhwx"),u=n.n(o),i=n("jCe7");function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e){return a.a.createElement(i.a,l({viewBox:"0 0 24 24",a11yTitle:"Cluster"},e),a.a.createElement("path",{fill:"none",stroke:"#000",strokeWidth:"2",d:"M8,9 L16,9 L16,1 L8,1 L8,9 Z M1,23 L9,23 L9,15 L1,15 L1,23 Z M15,23 L23,23 L23,15 L15,15 L15,23 Z M5,15 L8,9 L5,15 Z M10,19 L14,19 L10,19 Z M16,9 L19,15 L16,9 Z"}))},s=(n("LXcg"),n("ZaGI")),f=n("xtVq"),d=n("Wbzz"),L=[{property:"name",headerText:"Name"},{property:"description",headerText:"Info",type:"Textarea",render:function(e){return a.a.createElement(a.a.Fragment,null," ",u()(e.description)," ")}},{property:"whatsapp",headerText:"Whatsapp",render:function(e){return a.a.createElement(a.a.Fragment,null," ",u()(e.whatsapp)," ")}},{property:"objectId",headerText:"Product",render:function(e){return a.a.createElement(a.a.Fragment,null,a.a.createElement(p,{onClick:function(){Object(d.b)("/account/store/manageproduct2/"+e.objectId)}}))}}];t.default=function(){var e=a.a.useContext(f.a),t=Object(r.useState)([]),n=t[0],o=t[1];return Object(r.useEffect)((function(){var t=e&&e.roleObjects.filter((function(e){return e.get("name").includes("Store-")})).map((function(e){return e.id}))||[];t&&t.length&&Object(s.a)(t,999).then((function(e){o(e)}))}),[e]),a.a.createElement(a.a.Fragment,null,a.a.createElement(c.a,{width:"100%",objectClass:"Store",columns:L,query:function(e){return e},datasource:n,afterAction:function(){return e.refresh()}}))}},ZaGI:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("q1tI");var r=n("LXcg"),a=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=1),Object(r.z)("Store",{ascending:"createdAt",role:{c:"_Role",f:"containedIn",v:e,t:"pointer"}})}}}]);
  //# sourceMappingURL=component---src-pages-account-mystore-js-8a1b200200f48a2c214c.js.map