1import{R as re,cl as U,r as i,b7 as Ne,j as e,bQ as Pe,ah as _e,fc as Oe,fd as ve,fe as Fe,ff as Ae,fg as Me,fh as Be,fi as De,fj as He,d8 as ke,cc as Ve,cm as Le,a$ as ue,cn as Te,ac as pe,aE as Ue,a8 as Qe,b2 as Ye,b1 as qe,cZ as ze,az as $,am as $e,aC as We,aD as me,aG as Ge,d7 as Ke,an as Ze,cg as Xe,de as Je,dj as et}from"./vendor-ct_YKIP6_bundle.js";import{c as tt,q7 as at,q8 as nt,q9 as st,H as I,a4 as A,T as _,F as H,a6 as te,q4 as R,z as D,Y as je,aY as he,d as be,l as P,hV as it,q3 as ot,ep as rt,eg as lt,gY as W,qa as ct,p$ as dt,G as S,dP as M,A as O,dZ as ut,cZ as pt,a5 as fe,ag as ae,u as mt,a8 as ht,df as ft,t as gt,jt as ne,ab as yt,cl as G,dV as se,bb as xt,k1 as Ct,aj as _t,ax as Tt,pT as jt,b0 as bt,pU as St,dO as ie,dg as Et,k_ as It,a as Rt,ok as wt,dN as Nt,q6 as Pt,pY as Ot,an as vt}from"./registration-BfOA5mCx_bundle.js";import{u as Ft,C as At}from"./slackIntegration-mZcBTumD_bundle.js";import{s as Mt,H as Bt}from"./index-BU9eNVZx_bundle.js";import{ae as Dt,aw as Se,ag as Ht,ah as kt,ai as Vt,aj as Lt,ak as ge,al as Ut,am as Qt,ax as Yt,ay as qt,ap as zt,az as $t,aA as Wt,G as Gt,y as Kt,A as Zt,B as Xt,as as Jt,at as ea,T as ta,P as aa,au as na,aB as sa,O as ia}from"./index-BiagCLbs_bundle.js";import{a as oe}from"./moment-DyvZl3Ud_bundle.js";import{C as oa,t as ra,I as la,b as ye,P as ca,a as da}from"./ui-D5gyLrjI_bundle.js";import{I as ua}from"./index-BonzU-X0_bundle.js";import"./sentry-DLDmuXKN_bundle.js";import"./datadog-DxmyjtSX_bundle.js";import"./OpenSideFilterButton-DjD096f1_bundle.js";import"./index-DW1F7p96_bundle.js";import"./utils-BRznCe74_bundle.js";import"./ReportTypeHint-Cm6O5IIy_bundle.js";import"./hooks-B33YfpNS_bundle.js";import"./cta-button-export-Br72iRgF_bundle.js";import"./stripe-BA7RN6Z4_bundle.js";import"./speedboat-vendor-DBIVks5t_bundle.js";ve.register(Fe,Ae,Me,Be,De,He);const K=4,xe={position:{},data:{}},pa=re.memo(({data:c=[],dateRange:a={},handleTooltipPositionChange:t=je,normalizeDate:r})=>{const s=i.useContext(Pe),u=i.useMemo(()=>({normalized:!0,parsing:!1,plugins:{tooltip:{enabled:!1,external:t}},scales:{x:{type:"time",min:r(a.from).valueOf(),max:r(a.to).valueOf(),offset:!0,grid:{display:!1,drawBorder:!1},ticks:{color:s.text.neutral400,font:{family:"Poppins",size:12},callback:(j,h,g)=>h===0?oe(a.from).format("MMM DD"):h===g.length-1?oe(a.to).format("MMM DD"):null}},y:{type:"linear",grace:"10%",beginAtZero:!0,grid:{drawBorder:!1,drawTicks:!1},ticks:{color:s.text.neutral400,font:{family:"Poppins",size:10},maxTicksLimit:7,precision:0}}}}),[s,t,a,r]),{pointRadius:p,pointHoverRadius:T,pointHitRadius:w}=i.useMemo(()=>_e((j,{outsideVisibleRange:h})=>h?he({pointRadius:0,pointHoverRadius:0,pointHitRadius:0},j):he({pointRadius:1,pointHoverRadius:K,pointHitRadius:K+2},j),{pointRadius:[],pointHoverRadius:[],pointHitRadius:[]},c),[c]);return e.jsx(Oe,{data:{datasets:[{data:c,borderColor:s.brand,borderWidth:2,backgroundColor:s.brand,pointRadius:p,pointHoverRadius:T,pointHitRadius:w}]},options:u,type:"line"})}),ma=({data:c,dateRange:a,prettyUnit:t})=>{const{t:r}=U(),[s,u]=i.useState(xe),{dateFormat:p,timezone:T,is12HourTimeFormat:w}=tt({isUserTimezone:!0}),j=w?nt:st,h=i.useCallback(n=>oe(n).tz(T),[T]),g=i.useMemo(()=>{const n=at(a);return n==="month"?"MMMM YYYY":n==="hour"?`${p} ${j}`:p},[a,p,j]),f=i.useCallback(({chart:n,tooltip:y})=>{const v=Ne({},["dataPoints",0,"raw"],y);if(y.opacity===0||v.outsideVisibleRange)return u(xe);const x=n.canvas.offsetLeft+(y.caretX-K),m=n.canvas.offsetTop+(y.caretY-K);return u({position:{left:x,top:m},data:v})},[u]);return e.jsxs(I,{relative:!0,children:[e.jsx(pa,{data:c,dateRange:a,handleTooltipPositionChange:f,normalizeDate:h}),e.jsx(A,{when:D(s.data),children:e.jsx(oa,{forceVisible:!0,$left:s.position.left,$top:s.position.top,content:e.jsx(_,{white:!0,lineHeight:"16px",size:"12px",children:e.jsxs(H,{column:!0,children:[e.jsx(_,{inherit:!0,semibold:!0,children:h(s.data.x).format(g)}),e.jsx(I,{top:4,children:te(r("reporting.analytics_panel.item_tooltip.transactions",{count:s.data.transactionsCount}))}),e.jsx(I,{top:4,children:te(r("reporting.analytics_panel.item_tooltip.total_qty_delta",{count:R(s.data.qtyDelta,t,!0)}))}),e.jsx(I,{top:4,children:te(r("reporting.analytics_panel.item_tooltip.final_quantity",{count:R(s.data.y,t)}))})]})}),iconStyles:ra,maxWidth:"194px",offset:[0,10]})})]})},ha=re.memo(ma),fa=({bucket:c})=>{const a=c?.photos?.[0]?.versions?.[0]?.url;return ae(a)?e.jsx(ca,{children:e.jsx(zt,{height:25,viewBox:"0 0 59 59",width:25})}):e.jsx(da,{alt:"Item photo",src:a})},Ce=({testId:c,label:a,content:t,justify:r})=>e.jsxs(H,{justifyContent:r,children:[e.jsxs(_,{neutral500:!0,normalBreak:!0,lineHeight:"20px",offsets:{mr:6},size:"16px",children:[a,":"]}),typeof t=="string"?e.jsx(_,{neutral700:!0,"data-testid":c,lineHeight:"20px",size:"16px",children:t}):t]}),ga=({item:c={}})=>{const{t:a}=U(),{locationPush:t}=mt(),{itemDetails:r={}}=c,s=c.isItemHasClones?`/item-summary/${r.sid}`:`/item/${r.nodeId}`,u=i.useCallback(()=>{S.openItemDetail(M.qtyChangesByItem),t(s)},[t,s]),p=e.jsx(ht,{"data-testid":"open-item",disabled:c.isItemDeleted,disableStyleType:"semitransparentBrandCTA",offsetType:"compact",styleType:"brandCTA",type:"button",onClick:u,children:a("reporting.analytics_panel.open_item")});return c.isItemDeleted?e.jsx(ft,{content:a("reporting.analytics_panel.deleted_item"),children:p}):p},ya=({itemForAnalysis:c="",sortedQtyChanges:a,setPage:t,formValues:r})=>{const{t:s}=U(),u=be(),{showNotifications:p,notificationHeight:T}=Ft(),w=Dt(),j=(p?T:0)+w,{dateFormat:h}=P(d=>({dateFormat:it(d)})),{currentPage:g,perPage:f}=ot(),{scrollRef:n,isScrollable:y,isScrollingStarted:v,isScrollingFinished:x}=rt(),m=P(d=>d.reporting.consumption.itemsQtyAnalytics),Q=lt.name,{itemIndex:E,historicalData:l={}}=i.useMemo(()=>{const d=a.findIndex(F=>F.id===c);return{itemIndex:d,historicalData:a[d]}},[a,c]),{handleViewReportClick:V}=Se(l,r),b=P(W)?.[l.unitName]?.prettyUnit,{dateRange:B={}}=r,Z=i.useMemo(()=>{const d=ct.find(F=>F.label===h);return dt(B,d?d.value:void 0)},[B,h]),N=i.useCallback(()=>{S.closeItemPanelView(M.qtyChangesByItem),u({type:O.RESET_ITEM_FOR_ANALYSIS})},[u]);ke(()=>{const d=F=>{ut(F,"Escape")&&(F.target.blur(),N())};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)});const Y=P(d=>d.slidingModal.show);Ve(()=>Y?N():je(),[Y,N]);const X=i.useCallback(()=>{S.changePanelItem({direction:"previous",view:M.qtyChangesByItem}),E%f===0&&t(g-1),u({type:O.SELECT_ITEM_FOR_ANALYSIS,payload:a[E-1]?.id})},[u,E,a,f]),q=i.useCallback(()=>{S.changePanelItem({direction:"next",view:M.qtyChangesByItem}),E%f===f-1&&t(g+1),u({type:O.SELECT_ITEM_FOR_ANALYSIS,payload:a[E+1]?.id})},[u,E,a,f]);i.useEffect(()=>{D(l)?u({type:O.FETCH_ITEM_QTY_CHANGES_ANALYTICS_REQUEST,payload:{sid:l.sid,parentId:l.parentId,dateRange:B}}):N()},[u,l,B,N]);const J=i.useMemo(()=>[{id:"qty-change",label:s("reporting.analytics_panel.stats.total_change"),content:R(l.totalQtyChange,b,!0),offsets:{vertical:8}},{id:"start-qty",label:s("reporting.analytics_panel.stats.start_qty"),content:R(m.startQty,b),offsets:{left:20,vertical:8}},{id:"qty-increase",label:s("reporting.analytics_panel.stats.total_increase"),content:R(l.totalQtyIncrease,b,!0),offsets:{left:20,vertical:8}},{id:"qty-decrease",label:s("reporting.analytics_panel.stats.total_decrease"),content:R(l.totalQtyDecrease,b,!0),offsets:{left:20,vertical:8}},{id:"end-qty",label:s("reporting.analytics_panel.stats.end_qty"),content:R(m.endQty,b),offsets:{left:20,vertical:8}},{id:"transactions-count",label:s("reporting.analytics_panel.stats.total_transactions"),content:l.transactionsCount,offsets:{vertical:8}}],[l,m,b]),ee=i.useMemo(()=>[{id:"folder",label:s("reporting.analytics_panel.item_info.folder"),content:l.parentName||Q,offsets:{bottom:16}},{id:"tags",label:s("reporting.analytics_panel.item_info.tags"),content:e.jsx(Ht,{noTagsMark:!0,staticLayout:!0,tags:l.tags}),offsets:{bottom:16}},{id:"notes",label:s("reporting.analytics_panel.item_info.notes"),content:l.nodeNotes||"â",offsets:{bottom:16}}],[l,Q]);return e.jsxs(kt,{$topOffset:j,"data-testid":"analytics-panel",children:[e.jsx(Vt,{"data-testid":"close-button",onClick:N,children:e.jsx(pt,{height:"14",viewBox:"0 0 16 16",width:"14"})}),e.jsxs(Lt,{$isPinned:v,"data-testid":"panel-header",children:[e.jsx(_,{neutral700:!0,semibold:!0,lineHeight:"32px",size:"22px",children:l.name}),e.jsx(ge,{variantOptionValues:l.variantOptionValues}),e.jsx(_,{neutral500:!0,lineHeight:"24px",offsets:{mt:7},size:"16px",children:Z}),e.jsx(fe,{neutral200:!0,height:"1px",top:"16px",width:"100%"})]}),e.jsxs(Ut,{ref:n,"data-testid":"panel-content",children:[e.jsx(I,{vertical:16,children:e.jsx(ha,{data:m.chartData,dateRange:B,prettyUnit:b})}),e.jsxs(I,{vertical:8,children:[J.map(d=>i.createElement(I,{...d.offsets,key:d.id},e.jsx(Ce,{content:d.content,justify:"space-between",label:d.label,testId:d.id}))),e.jsx(_,{brand:!0,cursorPointer:!0,medium:!0,nowrap:!0,"data-testid":"view-report-link",offsets:{mt:8},size:"16px",onClick:V,children:s("reporting.analytics_panel.view_report")})]}),e.jsx(fe,{neutral200:!0,bottom:"32px",height:"1px",top:"16px",width:"100%"}),e.jsxs(la,{"data-testid":"item-details-wrapper",children:[e.jsx(fa,{bucket:m.itemDetails}
1),e.jsxs(H,{column:!0,hiddenOverflow:!0,children:[e.jsxs(_,{neutral500:!0,lineHeight:"16px",size:"12px",children:[e.jsx("span",{children:l.sid}),e.jsx(A,{when:m.isItemHasClones,children:e.jsx("span",{style:{marginLeft:6},children:s("reporting.analytics_panel.clones",{count:m.clonesAmount})})})]}),e.jsx(_,{medium:!0,neutral700:!0,trimLongString:!0,lineHeight:"24px",offsets:{mt:4,mb:4},size:"18px",children:l.name}),e.jsx(ge,{variantOptionValues:l.variantOptionValues})]})]}),e.jsx(H,{column:!0,children:ee.map(d=>i.createElement(I,{...d.offsets,key:d.id},e.jsx(Ce,{content:d.content,label:d.label,testId:d.id})))})]}),e.jsxs(Qt,{$isPinned:y&&!x,children:[e.jsx(ga,{item:m}),e.jsxs(H,{justifyContent:"space-between",width:"96px",children:[E>0?e.jsx(I,{right:16,children:e.jsx(ye,{"data-testid":"prev-item",onClick:X,children:e.jsx(Yt,{})})}):e.jsx("div",{}),e.jsx(A,{when:E<a.length-1,children:e.jsx(ye,{"data-testid":"next-item",onClick:q,children:e.jsx(qt,{})})})]})]})]})},xa=c=>[{Header:"Name",id:"name",accessor:"name",align:"left",letterSpacing:"-0.1px",padding:"0 8px 0 16px",sticky:"left",width:260,Cell:({row:a})=>{const t=i.useMemo(()=>({...a,original:{...a.original,includePhoto:!1}}),[a]);return e.jsx($t,{enableSidTooltip:!0,row:t})}},{Header:"Folder",id:"parentName",accessor:"parentName",align:"left",letterSpacing:"-0.1px",padding:"0 8px",width:180,Cell:({row:{original:a}})=>e.jsx(Wt,{original:a,width:160})},{Header:"Qty Decrease",id:"totalQtyDecrease",accessor:"totalQtyDecrease",justifyContent:"flex-end",letterSpacing:"-0.1px",padding:"0 8px",width:160,Cell:({row:{original:a}})=>{const r=P(W)?.[a.unitName]?.prettyUnit;return e.jsx(_,{neutral700:!0,nowrap:!0,textAlign:"right",children:R(a.totalQtyDecrease,r,!0)})}},{Header:"Qty Increase",id:"totalQtyIncrease",accessor:"totalQtyIncrease",justifyContent:"flex-end",letterSpacing:"-0.1px",padding:"0 8px",width:160,Cell:({row:{original:a}})=>{const r=P(W)?.[a.unitName]?.prettyUnit;return e.jsx(_,{neutral700:!0,nowrap:!0,textAlign:"right",children:R(a.totalQtyIncrease,r,!0)})}},{Header:"Total Qty Change",id:"totalQtyChange",accessor:"totalQtyChange",justifyContent:"center",letterSpacing:"-0.1px",padding:"0 8px",width:220,Cell:({row:{original:a}})=>{const r=P(W)?.[a.unitName]?.prettyUnit;return e.jsx(_,{neutral700:!0,nowrap:!0,textAlign:"center",children:R(a.totalQtyChange,r,!0)})}},{Header:"Total TXN",id:"transactionsCount",accessor:"transactionsCount",letterSpacing:"-0.1px",padding:"0 8px",width:140,Cell:({row:{original:a},isHovered:t})=>{const{handleViewReportClick:r}=Se(a,c);return e.jsxs(H,{justifyContent:"space-between",children:[e.jsx(_,{neutral700:!0,offsets:{mr:16},size:"14px",children:a.transactionsCount}),e.jsx(A,{when:t,children:e.jsx(_,{brand:!0,medium:!0,nowrap:!0,size:"14px",onClick:r,children:gt("reporting.analytics_panel.view_report")})})]})}}],Ca=(c,a,t,r,s)=>{a({type:O.EXPORT_ITEM_QTY_CHANGES_REPORT_REQUEST,payload:{...c,values:t,resolve:r,reject:s}})},_a=({setPage:c,setPerPage:a,...t})=>{const{t:r}=U(),s=be(),{control:u,setValue:p}=Le(),{id:T,metadata:w={}}=ue({},"customReport",t),{misc:{sortOptions:j={}}={}}=w||{},h=ne(T),g=D(T),{fetchConsumptionReport:f}=yt(),n=Te({control:u}),y=ne(n);i.useEffect(()=>{G(y,n)||s({type:O.SET_ACTIVE_REPORT_FORM_VALUES,payload:{initialValues:t.initialValues,formValues:n}})},[n,s,t.initialValues]);const v=!pe(t.defaultFiltersState,n.filters),x=re.useMemo(()=>h!==T?!1:!G(t.initialValues.filters,n.filters),[h,T,t.initialValues.filters,n.filters]),m=Gt(),{openSaveCustomReportModal:Q,openSubscribeReportModal:E}=Kt(t.customReport,t.title,se.QUANTITY_CHANGES_BY_ITEM);i.useEffect(()=>{const o=ue({},"filters",n),C=Object.keys(o),k=_e((L,z)=>pe(t.defaultFiltersState[z],o[z])?L:{...L,[z]:o[z]},{},C);m.current={isTableLayoutSaved:D(j),currentValues:{filters:k,sortOptions:{name:n.sortBy,direction:xt(n.direction)},dateRange:n.dateRange}}},[n,m,t.defaultFiltersState,j]);const{itemsQtyChanges:l,itemForAnalysis:V}=P(o=>({itemsQtyChanges:o.reporting.consumption.itemsQtyChanges,itemForAnalysis:o.reporting.consumption.itemForAnalysis})),le=i.useCallback(o=>{const C=Ue([0,"id"],o),k=n.direction==="descending"?"ascending":"descending",L=n.sortBy!==C;return S.sortTableByColumn({view:t.analyticsViewName,column:Qe.decamelize(C),direction:L?n.direction:k}),L?p("sortBy",C):p("direction",k)}
1,[n.sortBy,n.direction,t.analyticsViewName,p]),b=i.useMemo(()=>{const o=n.direction==="descending"?Ye:qe;if(["totalQtyDecrease","totalQtyIncrease","totalQtyChange"].includes(n.sortBy))return ze([o($("unitName")),o($(n.sortBy))],l);if(["name","parentName"].includes(n.sortBy)){const C=$e($(n.sortBy),String,We);return me(o(C))(l)}return me(o($(n.sortBy)))(l)},[n.sortBy,n.direction,l]),B=i.useMemo(()=>{const o=(t.page-1)*t.perPage;return Ge(o,o+t.perPage,b)},[t.page,t.perPage,b]),Z=P(o=>o.slidingModal.show),N=D(V),Y=N?[V]:[];Ke(()=>{t.showFoldersAccessWarning&&(S.reportFiltersAccessChanged(Ct.Consumption),_t({type:"info",message:r("reporting.custom_reports.notification.folder_filter_warning")}))});const X=i.useCallback(o=>{Tt({reportNodesPerPageLimit:o.perPage}),c(o.currentPage),a(o.perPage)},[c,a]),q=i.useMemo(()=>({meta:{totalCount:l.length},initialValues:{currentPage:t.page,perPage:t.perPage}}),[t.page,t.perPage,l]),J=i.useCallback(({id:o})=>{S.openItemPanelView({view:M.qtyChangesByItem}),s({type:O.SELECT_ITEM_FOR_ANALYSIS,payload:o})},[s]),ee=i.useCallback(o=>{const C=jt(o,t.defaultFiltersState);return S.filterReport(M.qtyChangesByItem,g,C),p("filters",o)},[g,t.defaultFiltersState,p]),d=i.useCallback(o=>{p("dateRange",o),S.modifyDateFilter(o,t.analyticsViewName)},[t.analyticsViewName,p]),F=i.useCallback(()=>{S.startReportExport(M.qtyChangesByItem,g&&!x),s(Mt({source:"itemQtyChangesReport",onExport:Ca,isCustomReport:g,areThereNewFilters:x,formValues:n}))},[g,x,s,n]),ce=i.useRef(null),{tableColumns:Ee,columnsWidth:de}=i.useMemo(()=>{const o=xa(n);return{tableColumns:o,columnsWidth:o.reduce((C,k)=>C+k.width,0)}},[n]),{tableWrapperRef:Ie,height:Re}=Zt({minTableWidth:de,minTableHeight:Xt,contentWrapperRef:ce}),we={sortBy:[{id:n.sortBy,desc:n.direction==="descending"}]};return i.useEffect(()=>{if(G(y,n))return;const{difference:o}=bt(n,y),C=Ze(o);C.length===1&&["sortBy","direction"].includes(C[0])||(c?.(1),s({type:O.FETCH_CONSUMPTION_REPORT_REQUEST,payload:{analyticsViewName:t.analyticsViewName,formValues:n}}))},[s,n,y,c,t.analyticsViewName]),Xe(()=>s({type:O.RESET_ITEM_FOR_ANALYSIS})),e.jsxs(At,{$greyBg:!0,children:[e.jsx(Jt,{isBulkModeDisabled:!0,isSelectModeEnabled:!0,selectedIds:Y,toggleEntitySelection:J,children:e.jsx(St,{customClearButtonName:r("advanced_search.clearAll"),data:n.filters,defaultState:t.defaultFiltersState,filterType:ie.CONSUMPTION,submitFilterValues:ee,children:e.jsx(ea,{children:e.jsxs(H,{ref:ce,column:!0,fullWidth:!0,children:[e.jsx(Bt,{disableSearchByScan:!0,includeDateRange:!0,areThereNewFilters:x,customReport:t.customReport,exportHandler:F,externalFilters:["names","folders"],formValues:n,hasAppliedFilters:v,includeSearchBox:!1,includeSummarize:!1,isExportDisabled:ae(l),loading:f,openSubscribeReportModal:E,saveReport:Q,title:t.title,type:se.QUANTITY_CHANGES_BY_ITEM,onDateRangeChange:d}),e.jsxs(I,{relative:!0,bottom:50,horizontal:40,children:[e.jsx(A,{when:!f&&ae(l),children:e.jsx(ua,{message:r("reporting.scenes.all_transactions.no_data_available"),promptText:r("reporting.scenes.inventory.enter_date_range_filters")})}),e.jsx(A,{when:f,children:e.jsx(Et,{absolute:!0,largeRed:!0,height:"100%",size:"74px",width:"100%",zIndex:11})}),e.jsxs(A,{when:f||D(l),children:[e.jsx("div",{ref:Ie,children:e.jsx(ta,{columns:Ee,data:B,height:Re,initialState:we,width:de,onSort:le})}),e.jsx(aa,{tableMode:!0,totalCount:q.meta.totalCount,values:q.initialValues,onChange:X})]})]})]})})})}),e.jsx(A,{when:N,children:e.jsx(It,{right:500,transition:".3s",unMountMovement:!Z,children:e.jsx(ya,{formValues:n,itemForAnalysis:V,setPage:c,sortedQtyChanges:b})})})]})},ka=()=>{const{t:c}=U(),a=Je(),{reset:t,control:r}=a,{planFeatures:{customReportsEnabled:s=!1}={}}=Rt(),[u,p]=i.useState(1),[T,w]=i.useState(wt),j=Nt(ie.CONSUMPTION),h=Te({control:r}),{defaultValues:g,persistedFormValues:f}=na({initialValues:sa,filterCategory:ie.CONSUMPTION,formValues:h,persistedFields:Pt,idbKey:Ot.QTY_CHANGES_BY_ITEM}),{initialValues:n,customReport:y,showFoldersAccessWarning:v}=ia(se.QUANTITY_CHANGES_BY_ITEM,g);vt({enterEvent:()=>S.viewReport(M.qtyChangesByItem,D(y?.id))});const x=i.useMemo(()=>s?n:f,[s,n,f]),m=ne(x);return i.useEffect(()=>{G(m,x)||t(x)},[x,t,m]),e.jsx(et,{...a,children:e.jsx(_a,{analyticsViewName:"quantity_changes_by_item",customReport:y,defaultFiltersState:j,initialValues:x,page:u,perPage:T,setPage:p,setPerPage:w,showFoldersAccessWarning:v,title:c("reporting.scenes.quantity_changes_by_item.title")})})};export{ka as default}; 2//# sourceMappingURL=consumption_report-YRF1AD5h_bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.