-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-account-mystore-js-580c321afe78fd39e36f.js
2 lines (2 loc) · 2.07 KB
/
component---src-pages-account-mystore-js-580c321afe78fd39e36f.js
1
2
"use strict";(self.webpackChunkgatsby_starter_hello_world=self.webpackChunkgatsby_starter_hello_world||[]).push([[333],{7282:function(e,t,r){r.d(t,{i:function(){return o}});r(7294);var n=r(4278),o=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=1),(0,n.kp)("Store",{ascending:"createdAt",role:{c:"_Role",f:"containedIn",v:e,t:"pointer"}})}},6352:function(e,t,r){r.r(t),r.d(t,{default:function(){return d}});var n=r(7294),o=r(6386),a=r(9493),c=r(9638);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var i=function(e){return n.createElement(c.x,u({viewBox:"0 0 24 24",a11yTitle:"Cluster"},e),n.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"}))},l=(r(4278),r(7282)),s=r(8905),f=r(5444),p=[{property:"name",headerText:"Name"},{property:"description",headerText:"Info",type:"Textarea",render:function(e){return n.createElement(n.Fragment,null," ",(0,a.ZP)(e.description)," ")}},{property:"whatsapp",headerText:"Whatsapp",render:function(e){return n.createElement(n.Fragment,null," ",(0,a.ZP)(e.whatsapp)," ")}},{property:"objectId",headerText:"Product",render:function(e){return n.createElement(n.Fragment,null,n.createElement(i,{onClick:function(){(0,f.c4)("/account/store/manageproduct2/"+e.objectId)}}))}}],d=function(){var e=n.useContext(s.Z),t=(0,n.useState)([]),r=t[0],a=t[1];return(0,n.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&&(0,l.i)(t,999).then((function(e){a(e)}))}),[e]),n.createElement(n.Fragment,null,n.createElement(o.Z,{width:"100%",objectClass:"Store",columns:p,query:function(e){return e},datasource:r,afterAction:function(){return e.refresh()}}))}}}]);
//# sourceMappingURL=component---src-pages-account-mystore-js-580c321afe78fd39e36f.js.map