OCDevManageDigiGoodsInventoryItemsTableSimple.react",["fbt","GeoDropdownMenu.react","GeoMenuItem.react","GeoTable.react","GeoTableRowAction.react","GeoTableWidth","OCDevManageDigiGoodsInventoryItemUpsertModal.react","OCDevManageDigiGoodsInventoryItemsTableSimpleDeleteMutation.graphql","OCDevManageDigiGoodsInventoryItemsTableSimple_application.graphql","OCDevManageEmptyState.react","RelayHooks","asyncToGeneratorRuntime","createGeoTableDataSource","react","useOCDevUICommitMutation","useOCDevUIModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||c("react"),n=(k||(k=d("react"))).useMemo;function a(a){a=a.application;var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageDigiGoodsInventoryItemsTableSimple_application.graphql"),a),f=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageDigiGoodsInventoryItemsTableSimpleDeleteMutation.graphql"));a=(a=(a=e.platform_services)==null||(a=a.inventory_items)==null?void 0:a.nodes)!=null?a:[];var g=c("useOCDevUIModal")(),k=g.openModal;g=n(function(){return[{cell:function(a){a=a.item.name;return m.jsx(c("GeoTableRowAction.react"),{children:a})},header:h._(/*BTDS*/"Name"),key:"name",width:d("GeoTableWidth").proportional(1,{minWidth:120})},{cell:function(a){a=a.item.sku;return a},header:"SKU",key:"SKU",width:d("GeoTableWidth").proportional(1,{minWidth:120})},{cell:function(a){var d=a.item;return m.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",useEllipsisIcon:!0,children:[m.jsx(c("GeoMenuItem.react"),{label:h._(/*BTDS*/"Edit Item"),onClick:function(){return k(m.jsx(c("OCDevManageDigiGoodsInventoryItemUpsertModal.react"),{application:e,inventoryItem:d}))}}),m.jsx(c("GeoMenuItem.react"),{label:h._(/*BTDS*/"Delete Item"),onClick:b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(d.id!=null){var a;yield f({input:{creatable_id:d.id,entry_point:"ROCKSTEADY",org_id:(a=e.organization)==null?void 0:a.id}},{refetchOnSuccess:!0})}})})]})},header:null,key:"context_menu",width:d("GeoTableWidth").proportional(1,{minWidth:120})}]},[e,k,f]);return a!=null&&a.length>0?m.jsx(c("GeoTable.react"),{columns:g,"data-testid":void 0,dataSource:c("createGeoTableDataSource")(a,{getStableUniqueID:function(a){a=a.sku;return a}}),label:h._(/*BTDS*/"Inventory Items"),xstyle:o.scrollable}):m.jsx(c("OCDevManageEmptyState.react"),{"data-testid":void 0,heading:h._(/*BTDS*/"No inventory items found.")})}a.displayName=a.name+" [from "+f.id+"]";var o={scrollable:{height:"x4k3uqp",overflowX:"xw2csxc",overflowY:"x1odjw0f",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageDigiGoodsInventoryItemsTableSimpleDeleteMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBDigiGoodsCreatableDeleteResponse",kind:"LinkedField",name:"xfb_digigoods_creatable_delete",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBDigiGoodsCreatableResponseObject",kind:"LinkedField",name:"creatable",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageDigiGoodsInventoryItemsTableSimpleDeleteMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageDigiGoodsInventoryItemsTableSimpleDeleteMutation",selections:b},params:{id:"24315002681456896",metadata:{},name:"OCDevManageDigiGoodsInventoryItemsTableSimpleDeleteMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----