@viswa-test/audit-log 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/cjs/components/AuditLogPanel/AuditLogItem.js +2 -0
  2. package/dist/cjs/components/AuditLogPanel/AuditLogItem.js.map +1 -0
  3. package/dist/cjs/components/AuditLogPanel/AuditLogPanel.js +1 -1
  4. package/dist/cjs/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
  5. package/dist/cjs/components/AuditLogPanel/AuditLogSandBox.js +1 -1
  6. package/dist/cjs/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
  7. package/dist/cjs/components/AuditLogPanel/FilterSection.js +1 -1
  8. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogDistinctValues.js +2 -0
  9. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogDistinctValues.js.map +1 -0
  10. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogsData.js +2 -0
  11. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogsData.js.map +1 -0
  12. package/dist/cjs/styles.css +1 -1
  13. package/dist/components/AuditLogPanel/AuditLogItem.js +2 -0
  14. package/dist/components/AuditLogPanel/AuditLogItem.js.map +1 -0
  15. package/dist/components/AuditLogPanel/AuditLogPanel.js +1 -1
  16. package/dist/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
  17. package/dist/components/AuditLogPanel/AuditLogSandBox.js +1 -1
  18. package/dist/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
  19. package/dist/components/AuditLogPanel/FilterSection.js +1 -1
  20. package/dist/components/AuditLogPanel/Services/useAuditLogDistinctValues.js +2 -0
  21. package/dist/components/AuditLogPanel/Services/useAuditLogDistinctValues.js.map +1 -0
  22. package/dist/components/AuditLogPanel/Services/useAuditLogsData.js +2 -0
  23. package/dist/components/AuditLogPanel/Services/useAuditLogsData.js.map +1 -0
  24. package/dist/styles.css +1 -1
  25. package/dist/types/components/AuditLogPanel/{AuditLogPanel.types.d.ts → AuditLog.types.d.ts} +37 -75
  26. package/dist/types/components/AuditLogPanel/AuditLog.types.d.ts.map +1 -0
  27. package/dist/types/components/AuditLogPanel/{AuditLogPanelItem.d.ts → AuditLogItem.d.ts} +2 -6
  28. package/dist/types/components/AuditLogPanel/AuditLogItem.d.ts.map +1 -0
  29. package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts +1 -3
  30. package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts.map +1 -1
  31. package/dist/types/components/AuditLogPanel/AuditLogSandBox.d.ts.map +1 -1
  32. package/dist/types/components/AuditLogPanel/CommonUI.d.ts +2 -2
  33. package/dist/types/components/AuditLogPanel/CommonUI.d.ts.map +1 -1
  34. package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts +1 -1
  35. package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts.map +1 -1
  36. package/dist/types/components/AuditLogPanel/FilterSection.d.ts +1 -1
  37. package/dist/types/components/AuditLogPanel/FilterSection.d.ts.map +1 -1
  38. package/dist/types/components/AuditLogPanel/Services/useAuditLogDistinctValues.d.ts +8 -0
  39. package/dist/types/components/AuditLogPanel/Services/useAuditLogDistinctValues.d.ts.map +1 -0
  40. package/dist/types/components/AuditLogPanel/Services/{useAuditLogPanelData.d.ts → useAuditLogsData.d.ts} +3 -3
  41. package/dist/types/components/AuditLogPanel/Services/useAuditLogsData.d.ts.map +1 -0
  42. package/package.json +1 -1
  43. package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js +0 -2
  44. package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js.map +0 -1
  45. package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +0 -2
  46. package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +0 -1
  47. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js +0 -2
  48. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +0 -1
  49. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +0 -2
  50. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +0 -1
  51. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +0 -2
  52. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +0 -1
  53. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +0 -2
  54. package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +0 -1
  55. package/dist/components/AuditLogPanel/AuditLogPanelItem.js +0 -2
  56. package/dist/components/AuditLogPanel/AuditLogPanelItem.js.map +0 -1
  57. package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +0 -2
  58. package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +0 -1
  59. package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js +0 -2
  60. package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +0 -1
  61. package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +0 -2
  62. package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +0 -1
  63. package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +0 -2
  64. package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +0 -1
  65. package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +0 -2
  66. package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +0 -1
  67. package/dist/types/components/AuditLogPanel/AuditLogPanel.types.d.ts.map +0 -1
  68. package/dist/types/components/AuditLogPanel/AuditLogPanelItem.d.ts.map +0 -1
  69. package/dist/types/components/AuditLogPanel/Constants/constants.d.ts +0 -6
  70. package/dist/types/components/AuditLogPanel/Constants/constants.d.ts.map +0 -1
  71. package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts +0 -4
  72. package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts.map +0 -1
  73. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelData.d.ts.map +0 -1
  74. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts +0 -9
  75. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts.map +0 -1
  76. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts +0 -37
  77. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts.map +0 -1
  78. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts +0 -3
  79. package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),a=require("react"),s=require("lucide-react"),n=require("./CommonUI.js"),i=require("./AuditLogPanel.module.css.js");exports.AuditLogItem=function(l){var c,d,r,o,u,m=l.log,g=l.globalIcons,p=l.globalClasses,v=l.globalStyles,f=l.renderItemHeaderLeft,x=l.renderItemHeaderRight,_=l.renderItemExpandedBody,h=l.onRowClick,j=l.itemConfig,b=a.useState(m.isInitiallyExpanded||!1),y=b[0],N=b[1],B={isExpanded:y,expand:function(){return N(!0)},collapse:function(){return N(!1)},toggle:function(){return N(!y)}},C=f?f(m):null,k=x?x(m,y,B):null,H=_?_(m,B):null,I=Boolean(m.renderExpandedBody||m.customExpandedContent),E=Boolean(m.tags&&m.tags.length>0||m.impact||m.contentBlocks&&m.contentBlocks.length>0),T=I||Boolean(H)||E,L=function(e){switch(e){case"approved":return{icon:t.jsx(s.CheckCircle2,{size:16,color:"#16a34a"}),bg:"#dcfce7"};case"iterated":return{icon:t.jsx(s.PenLine,{size:14,color:"#2563eb"}),bg:"#dbeafe"};case"ai_suggested":return{icon:t.jsx(s.Sparkles,{size:14,color:"#9333ea"}),bg:"#f3e8ff"};case"rejected":return{icon:t.jsx(s.XCircle,{size:16,color:"#dc2626"}),bg:"#fee2e2"};default:return{icon:t.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"}}}(m.actionType),R=(null===(c=null==j?void 0:j.getIcon)||void 0===c?void 0:c.call(j,m))||m.icon||(null===(d=null==g?void 0:g.actionTypes)||void 0===d?void 0:d[m.actionType])||L.icon,q=(null===(r=null==j?void 0:j.getIconBg)||void 0===r?void 0:r.call(j,m))||m.iconBgColor||L.bg,w=(null===(o=null==j?void 0:j.getStyle)||void 0===o?void 0:o.call(j,m))||{};return t.jsxs("div",e.__assign({className:"".concat(i.default.itemWrapper," ").concat((null==p?void 0:p.itemWrapper)||""," ").concat(m.className||""),style:e.__assign(e.__assign(e.__assign({},null==v?void 0:v.itemWrapper),m.style),w)},{children:[t.jsxs("div",e.__assign({onClick:function(e){e.target.closest("button, a, input, select")||(h&&h(m,B),T&&N(!y))},className:"".concat(i.default.itemHeader," ").concat(T?i.default.itemHeaderClickable:i.default.itemHeaderDefault)},{children:[t.jsx("div",e.__assign({className:i.default.itemLeft},{children:m.renderHeaderLeft?m.renderHeaderLeft():C||t.jsxs(t.Fragment,{children:[t.jsx("div",e.__assign({className:i.default.itemIconWrapper,style:{backgroundColor:q}},{children:R})),t.jsxs("div",{children:[t.jsx("div",e.__assign({className:i.default.itemTitle},{children:m.title})),t.jsx("div",e.__assign({className:i.default.itemSubtitle},{children:m.subtitle}))]})]})})),t.jsx("div",e.__assign({className:i.default.itemRight},{children:m.renderHeaderRight?m.renderHeaderRight(y,B):k||t.jsxs(t.Fragment,{children:[t.jsx("span",e.__assign({className:i.default.itemTimestamp},{children:m.timestamp})),T&&t.jsx("div",e.__assign({className:i.default.itemChevron},{children:y?(null==g?void 0:g.chevronUp)||t.jsx(s.ChevronUp,{size:16}):(null==g?void 0:g.chevronDown)||t.jsx(s.ChevronDown,{size:16})}))]})}))]})),y&&T&&t.jsx("div",e.__assign({className:i.default.itemExpanded},{children:m.renderExpandedBody?m.renderExpandedBody(B):H||(m.customExpandedContent?m.customExpandedContent:t.jsxs(t.Fragment,{children:[m.tags&&m.tags.length>0&&t.jsx("div",e.__assign({className:i.default.tagsRow},{children:m.tags.map(function(a,s){return t.jsx("span",e.__assign({className:i.default.tagPill},{children:a}),s)})})),(m.impact||m.contentBlocks&&m.contentBlocks.length>0)&&t.jsxs("div",e.__assign({className:i.default.impactContainer},{children:[m.impact&&t.jsxs("div",e.__assign({className:m.impact.className,style:m.impact.style},{children:[t.jsxs("div",e.__assign({className:i.default.impactHeader},{children:[t.jsx("span",e.__assign({className:i.default.impactLabel},{children:m.impact.label||"Impact"})),m.impact.severity&&t.jsx("span",e.__assign({className:"".concat(i.default.severityBadge," ").concat("High"===m.impact.severity?i.default.severityHigh:i.default.severityOther)},{children:m.impact.severity}))]})),t.jsx(n.TruncatedText,{content:m.impact.description,config:m.impact.truncation})]})),m.impact&&m.contentBlocks&&t.jsx("div",{className:i.default.divider}),null===(u=m.contentBlocks)||void 0===u?void 0:u.map(function(a,s){return t.jsxs("div",e.__assign({className:i.default.contentBlock},{children:[t.jsx("span",e.__assign({className:i.default.contentBlockLabel},{children:a.label})),t.jsx("div",e.__assign({className:i.default.contentBlockText},{children:t.jsx(n.TruncatedText,{content:a.content,config:a.truncation})}))]}),s)})]}))]}))}))]}))};
2
+ //# sourceMappingURL=AuditLogItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditLogItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),t=require("react"),r=require("lucide-react"),s=require("./AuditLogPanelItem.js"),a=require("./ComparisonSummaryCard.js"),l=require("./FilterSection.js"),n=require("./Services/useAuditLogPanelData.js"),o=require("./Services/useAuditLogPanelDistinctValues.js"),d=require("./Services/useAuditLogPanelFilters.js"),u=require("./Services/useAuditLogPanelScroll.js"),c=require("./Services/AuditLogPanelAdapter.js");require("primereact/resources/themes/lara-light-indigo/theme.css"),require("primereact/resources/primereact.min.css");var g=require("./AuditLogPanel.module.css.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(t);exports.AuditLogPanel=function(p){var f=p.isOpen,v=p.onClose,h=p.title,x=void 0===h?"Redline History":h,y=p.subtitle,j=p.emptyState,_=void 0===j?"No history available.":j,C=p.logs,L=p.getData,A=p.distinctValuesApi,S=p.loading,q=void 0!==S&&S,b=p.loadingMore,I=void 0!==b&&b,F=p.hasMore,M=void 0!==F&&F,N=p.onLoadMore,P=p.comparisonContext,w=p.showComparisonCard,D=p.filters,H=void 0===D?[]:D,k=p.filterValues,B=p.onFilterChange,R=p.autoFilter,T=void 0!==R&&R,O=p.filterDisplayMode,V=void 0===O?"popup":O,E=p.showApplyButton,z=void 0===E||E,Q=p.onRowClick,W=p.itemConfig,X=p.renderCustomFilterSection,G=p.renderHeaderControls,J=p.renderCustomLogEntry,K=p.renderItemHeaderLeft,U=p.renderItemHeaderRight,Y=p.renderItemExpandedBody,Z=p.globalIcons,$=p.classNames,ee=p.styles,ie=p.labels,te=p.dataSourceMode,re=p.query,se=p.truncationConfig,ae="external"===te,le=o.useAuditLogDistinctValues(A,null==L?void 0:L.configId,null==re?void 0:re.externalResourceId,f).dynamicOptionsMap,ne=d.useAuditLogFilters(H,k,B,le,re),oe=ne.activeFilters,de=ne.handleFilterChange,ue=ne.enrichedFilters,ce=ne.apiQuery,ge=ne.showApplyButton,pe=ne.filterLabels,me=n.useAuditLogsData(L,oe,f,ae,ie,ce,se),fe=me.apiLogs,ve=me.apiLoading,he=me.apiLoadingMore,xe=me.apiHasMore,ye=me.fetchLogs,je=ae?C||[]:fe,_e=ae?q:ve,Ce=ae?I:he,Le=ae?M:xe,Ae=t.useMemo(function(){return T&&ae&&0!==ue.length?je.filter(function(e){return ue.every(function(i){var t=oe[i.id];return!t||""===t||("text"===i.type?String(e.title||"").toLowerCase().includes(String(t).toLowerCase()):"select"===i.type?e.actionType===t:"multi-select"!==i.type||Array.isArray(t)&&t.includes(e.actionType))})}):je},[je,oe,ue,T,ae]),Se=t.useMemo(function(){if((null==P?void 0:P.latestText)||(null==P?void 0:P.originalText))return P;if(!ae&&C&&C.length>0){var i=(null==P?void 0:P.truncation)||se,t=c.extractComparisonContext(C,ie,i);return t?e.__assign(e.__assign({},t),P):void 0}},[P,ae,C,ie,se]),qe=u.useAuditLogScroll(f,Le,Ce,function(){return ae&&N?N():!ae&&ye(!1)},Ae.length),be=void 0!==w?w:!!Se,Ie=z||ge;return f?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"".concat(g.default.overlay," ").concat((null==$?void 0:$.overlay)||""),onClick:v}),i.jsxs("div",e.__assign({className:"".concat(g.default.panel," ").concat(f?g.default.panelOpen:g.default.panelClosed," ").concat((null==$?void 0:$.panel)||"")},{children:[i.jsxs("div",e.__assign({className:g.default.header},{children:[i.jsxs("div",{children:[i.jsx("h2",e.__assign({className:g.default.title},{children:x})),y&&i.jsx("div",e.__assign({className:g.default.subtitle},{children:y}))]}),i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[X?X():ue.length>0?i.jsx(l.FilterSection,{configs:ue,values:oe,onChange:de,displayMode:V,showApplyButton:Ie,filterLabels:pe,classNames:$,styles:ee}):null,i.jsx("button",e.__assign({onClick:v,className:g.default.closeBtn},{children:(null==Z?void 0:Z.close)||i.jsx(r.X,{size:20})}))]}))]})),i.jsxs("div",e.__assign({ref:qe,className:g.default.scrollArea},{children:[G?G():be&&Se?i.jsx(a.ComparisonSummaryCard,{data:Se,globalIcons:Z}):null,_e&&0===Ae.length?i.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[1,2,3,4,5].map(function(e){return i.jsx("div",{className:"".concat(g.default.itemWrapper," ").concat(g.default.skeletonPulse),style:{height:"70px",background:"#f8fafc"}},e)})})):0===Ae.length?i.jsx("div",e.__assign({className:g.default.emptyState},{children:_})):Ae.map(function(e,t){return i.jsx(m.default.Fragment,{children:J?J(e,t):i.jsx(s.AuditLogItem,{log:e,globalIcons:Z,onRowClick:Q,itemConfig:W,renderItemHeaderLeft:K,renderItemHeaderRight:U,renderItemExpandedBody:Y})},e.id)}),Ce&&i.jsx("div",e.__assign({className:g.default.loadingText},{children:(null==ie?void 0:ie.loadingMore)||"Fetching older history..."}))]}))]}))]}):null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),n=require("react"),i=require("lucide-react"),s=require("./AuditLogItem.js"),r=require("./ComparisonSummaryCard.js"),a=require("./FilterSection.js"),o=require("./Services/useAuditLogsData.js"),l=require("./Services/useAuditLogDistinctValues.js"),d=require("./AuditLogPanel.module.css.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(n);exports.AuditLogPanel=function(u){var f=u.isOpen,g=u.onClose,m=u.title,p=void 0===m?"Redline History":m,v=u.subtitle,y=u.emptyState,h=void 0===y?"No history available.":y,x=u.logs,j=u.getData,_=u.distinctValuesApi,L=u.loading,C=void 0!==L&&L,b=u.loadingMore,A=void 0!==b&&b,N=u.hasMore,S=void 0!==N&&N,M=u.onLoadMore,I=u.comparisonContext,q=u.filters,H=void 0===q?[]:q,w=u.filterValues,F=u.onFilterChange,D=u.autoFilter,E=void 0!==D&&D,O=u.filterDisplayMode,k=void 0===O?"accordion":O,R=u.showApplyButton,B=void 0!==R&&R,P=u.onRowClick,T=u.itemConfig,V=u.renderCustomFilterSection,K=u.renderHeaderControls,z=u.renderCustomLogEntry,W=u.renderItemHeaderLeft,X=u.renderItemHeaderRight,G=u.renderItemExpandedBody,J=u.globalIcons,Q=u.classNames,U=u.styles,Y=u.filterLabels,Z=u.dataSourceMode,$=n.useRef(null),ee="external"===Z,te=void 0!==w,ne=n.useState({}),ie=ne[0],se=ne[1],re=te?w:ie,ae=o.useAuditLogsData(j,re,f,ee),oe=ae.apiLogs,le=ae.apiLoading,de=ae.apiLoadingMore,ue=ae.apiHasMore,ce=ae.fetchLogs,fe=l.useAuditLogDistinctValues(_,f).dynamicOptionsMap,ge=n.useMemo(function(){return H.map(function(t){return t.dynamicOptionKey&&fe[t.dynamicOptionKey]?e.__assign(e.__assign({},t),{options:fe[t.dynamicOptionKey]}):t})},[H,fe]),me=ee?x||[]:oe,pe=ee?C:le,ve=ee?A:de,ye=ee?S:ue,he=function(){ee&&M?M():ee||ce(!1)},xe=n.useMemo(function(){return E&&ee&&0!==ge.length?me.filter(function(e){return ge.every(function(t){var n=re[t.id];return!n||""===n||("text"===t.type?String(e.title||"").toLowerCase().includes(String(n).toLowerCase()):"select"===t.type?e.actionType===n:"multi-select"!==t.type||Array.isArray(n)&&n.includes(e.actionType))})}):me},[me,re,ge,E,ee]);return n.useEffect(function(){return document.body.style.overflow=f?"hidden":"unset",function(){document.body.style.overflow="unset"}},[f]),n.useEffect(function(){var e=$.current;if(e&&f){var t=function(){!ve&&ye&&e.scrollHeight-e.scrollTop-e.clientHeight<100&&he()};return e.addEventListener("scroll",t),t(),function(){return e.removeEventListener("scroll",t)}}},[ye,ve,he,xe.length,f]),f?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"".concat(d.default.overlay," ").concat((null==Q?void 0:Q.overlay)||""),onClick:g}),t.jsxs("div",e.__assign({className:"".concat(d.default.panel," ").concat(f?d.default.panelOpen:d.default.panelClosed," ").concat((null==Q?void 0:Q.panel)||"")},{children:[t.jsxs("div",e.__assign({className:d.default.header},{children:[t.jsxs("div",{children:[t.jsx("h2",e.__assign({className:d.default.title},{children:p})),v&&t.jsx("div",e.__assign({className:d.default.subtitle},{children:v}))]}),t.jsx("button",e.__assign({onClick:g,className:d.default.closeBtn},{children:(null==J?void 0:J.close)||t.jsx(i.X,{size:20})}))]})),t.jsxs("div",e.__assign({ref:$,className:d.default.scrollArea},{children:[K?K():I?t.jsx(r.ComparisonSummaryCard,{data:I,globalIcons:J}):null,V?V():ge.length>0?t.jsx(a.FilterSection,{configs:ge,values:re,onChange:function(e){te||se(e),F&&F(e)},displayMode:k,showApplyButton:B,filterLabels:Y,classNames:Q,styles:U}):null,pe&&0===xe.length?t.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[1,2,3,4,5].map(function(e){return t.jsx("div",{className:"".concat(d.default.itemWrapper," ").concat(d.default.skeletonPulse),style:{height:"70px",background:"#f8fafc"}},e)})})):0===xe.length?t.jsx("div",e.__assign({className:d.default.emptyState},{children:h})):xe.map(function(e,n){return t.jsx(c.default.Fragment,{children:z?z(e,n):t.jsx(s.AuditLogItem,{log:e,globalIcons:J,onRowClick:P,itemConfig:T,renderItemHeaderLeft:W,renderItemHeaderRight:X,renderItemExpandedBody:G})},e.id)}),ve&&t.jsx("div",e.__assign({className:d.default.loadingText},{children:"Fetching older history..."}))]}))]}))]}):null};
2
2
  //# sourceMappingURL=AuditLogPanel.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default={overlay:"AuditLogPanel-module_overlay__mnfs5",panel:"AuditLogPanel-module_panel__btKWo",panelOpen:"AuditLogPanel-module_panelOpen__Tj0EH",panelClosed:"AuditLogPanel-module_panelClosed__2nUTn",header:"AuditLogPanel-module_header__4Ld8n",title:"AuditLogPanel-module_title__YkOer",subtitle:"AuditLogPanel-module_subtitle__NHQxF",closeBtn:"AuditLogPanel-module_closeBtn__9Raqs",scrollArea:"AuditLogPanel-module_scrollArea__QVsJl",emptyState:"AuditLogPanel-module_emptyState__ZqwuX",compCard:"AuditLogPanel-module_compCard__KiH-p",compHeader:"AuditLogPanel-module_compHeader__R5tvd",compTitle:"AuditLogPanel-module_compTitle__Y4FIG",compIcon:"AuditLogPanel-module_compIcon__gYnr7",compBody:"AuditLogPanel-module_compBody__hEdrH",compSectionLabel:"AuditLogPanel-module_compSectionLabel__2Lm4E",compLatestText:"AuditLogPanel-module_compLatestText__jpMml",compOriginalText:"AuditLogPanel-module_compOriginalText__FcXep",itemWrapper:"AuditLogPanel-module_itemWrapper__uucps",itemHeader:"AuditLogPanel-module_itemHeader__JueVB",itemHeaderClickable:"AuditLogPanel-module_itemHeaderClickable__wzqVP",itemHeaderDefault:"AuditLogPanel-module_itemHeaderDefault__SH2oI",itemLeft:"AuditLogPanel-module_itemLeft__2LBs1",itemIconWrapper:"AuditLogPanel-module_itemIconWrapper__LE0QA",itemTitle:"AuditLogPanel-module_itemTitle__sDycO",itemSubtitle:"AuditLogPanel-module_itemSubtitle__Y7fME",itemRight:"AuditLogPanel-module_itemRight__AalDS",itemTimestamp:"AuditLogPanel-module_itemTimestamp__ooTn5",itemChevron:"AuditLogPanel-module_itemChevron__-wnQo",itemExpanded:"AuditLogPanel-module_itemExpanded__ZUp8c",tagsChip:"AuditLogPanel-module_tagsChip__m3AM5",tagSeparator:"AuditLogPanel-module_tagSeparator__Kxa4w",impactContainer:"AuditLogPanel-module_impactContainer__v16Y0",impactHeader:"AuditLogPanel-module_impactHeader__ggNw-",impactLabel:"AuditLogPanel-module_impactLabel__FOmPT",impactDescription:"AuditLogPanel-module_impactDescription__5wja1",severityBadge:"AuditLogPanel-module_severityBadge__-sPO7",severityHigh:"AuditLogPanel-module_severityHigh__e--68",severityOther:"AuditLogPanel-module_severityOther__m-OrS",divider:"AuditLogPanel-module_divider__td5ot",contentBlock:"AuditLogPanel-module_contentBlock__7sjMa",contentBlockLabel:"AuditLogPanel-module_contentBlockLabel__v8g5e",contentBlockText:"AuditLogPanel-module_contentBlockText__dfcpm",markdown:"AuditLogPanel-module_markdown__7r3Qt",truncateContainer:"AuditLogPanel-module_truncateContainer__ajjKt",truncateText:"AuditLogPanel-module_truncateText__1F-7K",truncateExpandedScrollable:"AuditLogPanel-module_truncateExpandedScrollable__txaww",toggleBtn:"AuditLogPanel-module_toggleBtn__rfU8F",filterSection:"AuditLogPanel-module_filterSection__b-3av",filterGrid:"AuditLogPanel-module_filterGrid__IGB8-",filterItem:"AuditLogPanel-module_filterItem__rg6ci",filterLabel:"AuditLogPanel-module_filterLabel__5V4QY",filterInput:"AuditLogPanel-module_filterInput__CvuQ5",filterSelect:"AuditLogPanel-module_filterSelect__1mD44",dateRangeGroup:"AuditLogPanel-module_dateRangeGroup__TGqpn",filterHeader:"AuditLogPanel-module_filterHeader__YpEH-",filterHeaderLeft:"AuditLogPanel-module_filterHeaderLeft__2IvKC",activeBadge:"AuditLogPanel-module_activeBadge__irk0W",clearBtn:"AuditLogPanel-module_clearBtn__sRfO0",filterPopupWrapper:"AuditLogPanel-module_filterPopupWrapper__jBPyK",filterTriggerBtn:"AuditLogPanel-module_filterTriggerBtn__yL7ko",filterPopupContent:"AuditLogPanel-module_filterPopupContent__inbJs",filterHint:"AuditLogPanel-module_filterHint__n0Udq",multiSelectGroup:"AuditLogPanel-module_multiSelectGroup__ZQU0e",checkboxItem:"AuditLogPanel-module_checkboxItem__-Rwa1",rangeGroup:"AuditLogPanel-module_rangeGroup__x-K5-",rangeInput:"AuditLogPanel-module_rangeInput__hydGj",filterFooter:"AuditLogPanel-module_filterFooter__21RHT",applyBtn:"AuditLogPanel-module_applyBtn__SsGu2",skeletonPulse:"AuditLogPanel-module_skeletonPulse__Jqdac",pulse:"AuditLogPanel-module_pulse__SFUMS",loadingText:"AuditLogPanel-module_loadingText__M41Xb",iconTriggerBtn:"AuditLogPanel-module_iconTriggerBtn__Cu-XV",iconTriggerBadge:"AuditLogPanel-module_iconTriggerBadge__rokhX",modalBackdrop:"AuditLogPanel-module_modalBackdrop__IJAuf",modalContainer:"AuditLogPanel-module_modalContainer__zRPuE",modalHeader:"AuditLogPanel-module_modalHeader__CR8rf",modalTitle:"AuditLogPanel-module_modalTitle__EwALY",modalClose:"AuditLogPanel-module_modalClose__3XGih",modalBody:"AuditLogPanel-module_modalBody__Fn2Xb",modalFooter:"AuditLogPanel-module_modalFooter__1vn3I",accordionContainer:"AuditLogPanel-module_accordionContainer__92rQR",accordionHeader:"AuditLogPanel-module_accordionHeader__fBYZr",accordionHeaderExpanded:"AuditLogPanel-module_accordionHeaderExpanded__R82zY",accordionTitle:"AuditLogPanel-module_accordionTitle__SfXdv",accordionContentWrapper:"AuditLogPanel-module_accordionContentWrapper__WJ6ZE",accordionBody:"AuditLogPanel-module_accordionBody__MBU1x",accordionFooter:"AuditLogPanel-module_accordionFooter__jBIof",filterFormGrid:"AuditLogPanel-module_filterFormGrid__QoLKp",filterField:"AuditLogPanel-module_filterField__-UAtF",inputWrapper:"AuditLogPanel-module_inputWrapper__WrBnR",inputIcon:"AuditLogPanel-module_inputIcon__cOOa8",filterInputWithIcon:"AuditLogPanel-module_filterInputWithIcon__o5dTT",btnSecondary:"AuditLogPanel-module_btnSecondary__s9Ts7",btnPrimary:"AuditLogPanel-module_btnPrimary__l1zRY"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default={overlay:"AuditLogPanel-module_overlay__mnfs5",panel:"AuditLogPanel-module_panel__btKWo",panelOpen:"AuditLogPanel-module_panelOpen__Tj0EH",panelClosed:"AuditLogPanel-module_panelClosed__2nUTn",header:"AuditLogPanel-module_header__4Ld8n",title:"AuditLogPanel-module_title__YkOer",subtitle:"AuditLogPanel-module_subtitle__NHQxF",closeBtn:"AuditLogPanel-module_closeBtn__9Raqs",scrollArea:"AuditLogPanel-module_scrollArea__QVsJl",emptyState:"AuditLogPanel-module_emptyState__ZqwuX",compCard:"AuditLogPanel-module_compCard__KiH-p",compHeader:"AuditLogPanel-module_compHeader__R5tvd",compTitle:"AuditLogPanel-module_compTitle__Y4FIG",compIcon:"AuditLogPanel-module_compIcon__gYnr7",compBody:"AuditLogPanel-module_compBody__hEdrH",compSectionLabel:"AuditLogPanel-module_compSectionLabel__2Lm4E",compLatestText:"AuditLogPanel-module_compLatestText__jpMml",compOriginalText:"AuditLogPanel-module_compOriginalText__FcXep",itemWrapper:"AuditLogPanel-module_itemWrapper__uucps",itemHeader:"AuditLogPanel-module_itemHeader__JueVB",itemHeaderClickable:"AuditLogPanel-module_itemHeaderClickable__wzqVP",itemHeaderDefault:"AuditLogPanel-module_itemHeaderDefault__SH2oI",itemLeft:"AuditLogPanel-module_itemLeft__2LBs1",itemIconWrapper:"AuditLogPanel-module_itemIconWrapper__LE0QA",itemTitle:"AuditLogPanel-module_itemTitle__sDycO",itemSubtitle:"AuditLogPanel-module_itemSubtitle__Y7fME",itemRight:"AuditLogPanel-module_itemRight__AalDS",itemTimestamp:"AuditLogPanel-module_itemTimestamp__ooTn5",itemChevron:"AuditLogPanel-module_itemChevron__-wnQo",itemExpanded:"AuditLogPanel-module_itemExpanded__ZUp8c",tagsRow:"AuditLogPanel-module_tagsRow__49-Ga",tagPill:"AuditLogPanel-module_tagPill__HI0Ax",impactContainer:"AuditLogPanel-module_impactContainer__v16Y0",impactHeader:"AuditLogPanel-module_impactHeader__ggNw-",impactLabel:"AuditLogPanel-module_impactLabel__FOmPT",severityBadge:"AuditLogPanel-module_severityBadge__-sPO7",severityHigh:"AuditLogPanel-module_severityHigh__e--68",severityOther:"AuditLogPanel-module_severityOther__m-OrS",divider:"AuditLogPanel-module_divider__td5ot",contentBlock:"AuditLogPanel-module_contentBlock__7sjMa",contentBlockLabel:"AuditLogPanel-module_contentBlockLabel__v8g5e",contentBlockText:"AuditLogPanel-module_contentBlockText__dfcpm",markdown:"AuditLogPanel-module_markdown__7r3Qt",truncateContainer:"AuditLogPanel-module_truncateContainer__ajjKt",truncateText:"AuditLogPanel-module_truncateText__1F-7K",truncateExpandedScrollable:"AuditLogPanel-module_truncateExpandedScrollable__txaww",toggleBtn:"AuditLogPanel-module_toggleBtn__rfU8F",filterSection:"AuditLogPanel-module_filterSection__b-3av",filterGrid:"AuditLogPanel-module_filterGrid__IGB8-",filterItem:"AuditLogPanel-module_filterItem__rg6ci",filterLabel:"AuditLogPanel-module_filterLabel__5V4QY",filterInput:"AuditLogPanel-module_filterInput__CvuQ5",filterSelect:"AuditLogPanel-module_filterSelect__1mD44",dateRangeGroup:"AuditLogPanel-module_dateRangeGroup__TGqpn",filterHeader:"AuditLogPanel-module_filterHeader__YpEH-",filterHeaderLeft:"AuditLogPanel-module_filterHeaderLeft__2IvKC",activeBadge:"AuditLogPanel-module_activeBadge__irk0W",clearBtn:"AuditLogPanel-module_clearBtn__sRfO0",filterPopupWrapper:"AuditLogPanel-module_filterPopupWrapper__jBPyK",filterTriggerBtn:"AuditLogPanel-module_filterTriggerBtn__yL7ko",filterPopupContent:"AuditLogPanel-module_filterPopupContent__inbJs",filterHint:"AuditLogPanel-module_filterHint__n0Udq",multiSelectGroup:"AuditLogPanel-module_multiSelectGroup__ZQU0e",checkboxItem:"AuditLogPanel-module_checkboxItem__-Rwa1",rangeGroup:"AuditLogPanel-module_rangeGroup__x-K5-",rangeInput:"AuditLogPanel-module_rangeInput__hydGj",filterFooter:"AuditLogPanel-module_filterFooter__21RHT",applyBtn:"AuditLogPanel-module_applyBtn__SsGu2",skeletonPulse:"AuditLogPanel-module_skeletonPulse__Jqdac",pulse:"AuditLogPanel-module_pulse__SFUMS",loadingText:"AuditLogPanel-module_loadingText__M41Xb"};
2
2
  //# sourceMappingURL=AuditLogPanel.module.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),t=require("react"),a=require("./AuditLogPanel.js"),n=require("./Services/AuditLogPanelAdapter.js"),o=require("lucide-react"),r={enabled:!0,lines:2,viewMoreLabel:"...View More",viewLessLabel:"View Less"},s={items:[{change_log_id:"log-1",changeTitle:"REVERTED",modifiedbyname:"Load Test",created_at:"2026-06-18T18:03:04.442613Z",actionType:"REVERTED",isLive:!0,changelog_metadata:[{property_name:"Union",property_value:{previous_value:{Union:"Contract redlining can significantly impact the outcome of a contract by identifying and modifying risky, unclear, or unfavorable terms. It helps reduce legal and financial exposure, improves clarity of obligations, and ensures compliance with company policies."},current_value:{Union:"latest value"}},metadata:{impact:"High priority union status change. High priority union status change. High priority union status change.",severity:"high",tags:["Linent","Grounded"]}}]},{change_log_id:"log-2",changeTitle:"ITERATED",actionType:"ITERATED",modifiedbyname:"AI Agent",created_at:"2026-06-19T10:00:00Z",ai_summary:"Shifted the risk to the vendor.",changelog_metadata:[]},{change_log_id:"log-3",changeTitle:"AI_SUGGESTED",actionType:"AI_SUGGESTED",modifiedbyname:"System Engine",created_at:"2026-06-20T14:30:00Z",changelog_metadata:[]},{change_log_id:"log-4",changeTitle:"REJECTED",modifiedbyname:"Hitesh",created_at:"2026-06-21T09:15:00Z",changelog_metadata:[]}],nextCursor:"eyJ0cyI6IjIwMjYtMDUtMjBUMTU6MTU6NDMuNTEzODM1KzAwOjAwIiwiY2lkIjoiMjA2NDI4YmItYTMzOS00NjkxLWI4ZjEtY2YwMGU4ZDA3YmY1Iiwib3JkZXIiOiJsYXRlc3RGaXJzdCJ9",hasNext:!0};exports.AuditLogSandbox=function(){var l=t.useState(!0),d=l[0],c=l[1],g=t.useState([]);g[0];var p=g[1],u=t.useState();u[0];var h=u[1],x=t.useState(!0),f=x[0],m=x[1],y={emptyState:"No history found for this claim.",impactSectionTitle:"System Impact Score",changedToSuffix:"Changed To:",fromSuffix:"Before:"};return t.useEffect(function(){setTimeout(function(){var e=s.items,i=n.transformBackendLogs(e,y,r),t=n.extractComparisonContext(e,{comparisonTitle:"Final Approved Text Vs. Original",comparisonLatestLabel:"Latest text",comparisonOriginalLabel:"Original text"},r);p(i),h(t),m(!1)},800)},[]),i.jsxs("div",e.__assign({style:{padding:"40px",fontFamily:"system-ui",backgroundColor:"#f1f5f9",minHeight:"100vh"}},{children:[i.jsx("button",e.__assign({onClick:function(){return c(!0)},style:{padding:"12px 24px",background:"#0f172a",color:"white",borderRadius:"8px",cursor:"pointer",border:"none",fontWeight:"bold"}},{children:"Open Redline Sandbox"})),i.jsx(a.AuditLogPanel,{getData:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/fetch",configId:"6a3e5ddeb4d25cd1bfe68c56",method:"POST"},distinctValuesApi:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/distinct-values"},query:{externalResourceId:["173a1acc-3266-48c2-85b3-5c45d006945b"],paginationLimit:10},filters:{config:{showFilterButton:!0,showSort:!0,showDateFilter:!0,showSearch:!0,showAnalystFilter:!0,showChangeTitleFilter:!0,showImpactPercentage:!0,sortOptions:{latest:!1,oldest:!0},showApplyButton:!0},labels:{impactHintLabel:"This is hint for impact label"},impactRangeLimits:{min:-100,max:100}},truncationConfig:r,isOpen:d,onClose:function(){return c(!1)},title:"Redline Master History",subtitle:"Tracking all modifications and AI iterations",dataSourceMode:"internal",loading:f,labels:y,filterDisplayMode:"popup",comparisonContext:void 0,globalIcons:{actionTypes:{REJECTED:i.jsx(o.Trash2,{size:16,color:"#dc2626"})}},renderItemHeaderLeft:function(t){var a;return"ITERATED"===(null===(a=t.rawPayload)||void 0===a?void 0:a.changeTitle)?i.jsxs("div",e.__assign({style:{display:"flex",gap:"12px",alignItems:"center"}},{children:[i.jsx("div",e.__assign({style:{padding:"8px",background:"#fdf4ff",borderRadius:"8px",border:"1px solid #f0abfc"}},{children:i.jsx(o.Bot,{size:20,color:"#c026d3"})})),i.jsxs("div",{children:[i.jsx("div",e.__assign({style:{color:"#c026d3",fontWeight:"bold",fontSize:"14px"}},{children:"AI Agent Suggestion"})),i.jsx("div",e.__assign({style:{fontSize:"11px",color:"#64748b"}},{children:"Awaiting your approval..."}))]})]})):null},renderItemHeaderRight:function(t,a,n){var r;return"REJECTED"===(null===(r=t.rawPayload)||void 0===r?void 0:r.changeTitle)?i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[i.jsxs("button",e.__assign({onClick:function(e){e.stopPropagation(),alert("Restoring Redline...")},style:{display:"flex",gap:"4px",alignItems:"center",padding:"4px 8px",borderRadius:"4px",border:"1px solid #cbd5e1",cursor:"pointer",background:"white",fontSize:"11px",fontWeight:600,color:"#334155"}},{children:[i.jsx(o.RotateCcw,{size:12})," Restore"]})),i.jsx("span",e.__assign({style:{fontSize:"11px",color:"#94a3b8"}},{children:t.timestamp})),i.jsx("span",e.__assign({style:{color:"#94a3b8"}},{children:a?"▲":"▼"}))]})):null},renderItemExpandedBody:function(t,a){var n;return"ITERATED"===(null===(n=t.rawPayload)||void 0===n?void 0:n.changeTitle)?i.jsxs("div",e.__assign({style:{padding:"16px",background:"#f8fafc",borderRadius:"8px",border:"1px dashed #cbd5e1",display:"flex",flexDirection:"column",gap:"12px"}},{children:[i.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"center",color:"#0f172a",fontWeight:"bold"}},{children:[i.jsx(o.ShieldAlert,{size:16,color:"#eab308"}),"Custom Iteration Review"]})),i.jsxs("div",e.__assign({style:{fontSize:"13px",color:"#475569"}},{children:[i.jsx("strong",{children:"AI Summary: "})," ",t.rawPayload.ai_summary]})),i.jsxs("div",e.__assign({style:{display:"flex",gap:"8px"}},{children:[i.jsx("button",e.__assign({onClick:a.collapse,style:{padding:"6px 12px",background:"#e2e8f0",border:"none",borderRadius:"4px",fontSize:"12px",cursor:"pointer",fontWeight:600}},{children:"Close View"})),i.jsx("button",e.__assign({style:{padding:"6px 12px",background:"#2563eb",color:"white",border:"none",borderRadius:"4px",fontSize:"12px",cursor:"pointer",fontWeight:600}},{children:"Approve Changes"}))]}))]})):null}})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),t=require("react"),n=require("./AuditLogPanel.js"),o=require("lucide-react"),a=function(t){var n=t.data,o=t.onClose;return i.jsxs("div",e.__assign({style:{padding:"16px",backgroundColor:"#1e293b",borderRadius:"8px",color:"#f8fafc"}},{children:[i.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",marginBottom:"12px"}},{children:[i.jsx("h3",e.__assign({style:{margin:0,color:"#38bdf8",fontSize:"14px"}},{children:"Advanced Payload Diff Viewer"})),i.jsx("button",e.__assign({onClick:o,style:{background:"#ef4444",color:"white",border:"none",borderRadius:"4px",padding:"4px 12px",cursor:"pointer",fontSize:"12px",fontWeight:"bold"}},{children:"Close View"}))]})),i.jsxs("div",e.__assign({style:{display:"flex",gap:"16px"}},{children:[i.jsxs("div",e.__assign({style:{flex:1,padding:"12px",background:"#0f172a",borderRadius:"6px"}},{children:[i.jsx("span",e.__assign({style:{color:"#ef4444",fontWeight:"bold",fontSize:"12px"}},{children:"- Removed:"})),i.jsx("pre",e.__assign({style:{margin:"8px 0 0 0",fontSize:"11px",whiteSpace:"pre-wrap"}},{children:JSON.stringify(null==n?void 0:n.previousPayload,null,2)}))]})),i.jsxs("div",e.__assign({style:{flex:1,padding:"12px",background:"#0f172a",borderRadius:"6px"}},{children:[i.jsx("span",e.__assign({style:{color:"#22c55e",fontWeight:"bold",fontSize:"12px"}},{children:"+ Added:"})),i.jsx("pre",e.__assign({style:{margin:"8px 0 0 0",fontSize:"11px",whiteSpace:"pre-wrap"}},{children:JSON.stringify(null==n?void 0:n.newPayload,null,2)}))]}))]}))]}))},s=[{id:"search",type:"text",label:"Global Search",hint:"Searches titles and subtitles"},{id:"analysts",type:"multi-select",label:"Modified By",options:[{label:"Nicoletta",value:"nicoletta"},{label:"System Admin",value:"admin"}]},{id:"impact",type:"range",label:"Impact Percentage",min:-100,max:100}];exports.AuditLogSandbox=function(){var l=t.useState(!0),r=l[0],d=l[1],c=t.useState([]),p=c[0],u=c[1],g=t.useState({}),x=g[0],f=g[1];t.useEffect(function(){u([{change_log_id:"15d271bf-9d0d-4596-9025-fd44ef7db86d",external_resource_id:"12345678910",change:"external summary2",changeTitle:"Claim done2",modifiedbyemail:"example1@techolution.com",modifiedbyname:"Hitesh",created_at:"2026-05-20T12:49:18.144000Z",isLive:!1,metadata:{property_value:"2"},change_log_impact:0,change_log_impact_percentage:-100,parent_changelog_id:null,root_changelog_id:null,level:1,change_log_metrics:null},{id:"log-2",actionType:"approved",title:"[Scenario 2] Simple Approved Row",subtitle:"System",timestamp:"09:15 AM"},{id:"log-3",actionType:"ai_suggested",title:"Hidden Title",timestamp:"11:00 AM"},{id:"log-4",actionType:"document_edited",title:"[Scenario 4] Custom RHS Action",subtitle:"Look at the right side!",timestamp:"Yesterday"},{id:"log-5",actionType:"simple_code_diff",title:"[Scenario 5] Simple Body Override",subtitle:"System Webhook",timestamp:"June 19"},{id:"log-6",actionType:"frankenstein",title:"Hidden",timestamp:"Hidden",renderHeaderLeft:function(){return i.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",color:"#4338ca",fontWeight:"bold",alignItems:"center"}},{children:[i.jsx(o.History,{size:18})," ",i.jsx("span",{children:"[Scenario 6] Frankenstein Row"})]}))},renderHeaderRight:function(){return i.jsx("span",e.__assign({style:{fontSize:"11px",background:"#e0e7ff",color:"#3730a3",padding:"2px 8px",borderRadius:"12px"}},{children:"System Auto"}))},renderExpandedBody:function(){return i.jsx("div",e.__assign({style:{borderLeft:"3px solid #4338ca",paddingLeft:"12px",color:"#475569",fontSize:"13px"}},{children:"Batch sync completed across all shards successfully."}))}},{id:"log-7",actionType:"CRITICAL",title:"[Scenario 7] Dynamic Styling Target",subtitle:"Risk Engine",timestamp:"June 18",impact:{severity:"High",description:"This row was styled red globally because actionType === CRITICAL."}},{id:"log-8",actionType:"component_injection",title:"[Scenario 8] Component Injection",subtitle:"Passing helpers down",timestamp:"2:30 PM",apiData:{previousPayload:{url:"v1.api.com"},newPayload:{url:"v2.api.com"}}},{id:"log-9",actionType:"dynamic_fetch",title:"[Scenario 9] Dynamic API Fetch",subtitle:"Click to simulate a live API call!",timestamp:"Just now"}])},[]);return i.jsxs("div",e.__assign({style:{padding:"40px",fontFamily:"system-ui",backgroundColor:"#f1f5f9",minHeight:"100vh"}},{children:[i.jsx("button",e.__assign({onClick:function(){return d(!0)},style:{padding:"12px 24px",background:"#0f172a",color:"white",borderRadius:"8px",cursor:"pointer",border:"none",fontWeight:"bold"}},{children:"Open Master Panel"})),i.jsx(n.AuditLogPanel,{isOpen:r,onClose:function(){return d(!1)},title:"The Master Sandbox",logs:p,dataSourceMode:"external",filters:s,autoFilter:!0,showApplyButton:!0,labels:{emptyState:"No logs found.",loadingMore:"Fetching..."},filterLabels:{title:"Super Search",applyBtn:"Apply Now",clearBtn:"Reset"},styles:{filterSection:{border:"2px solid #e2e8f0",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},filterApplyBtn:{backgroundColor:"#3b82f6"}},onRowClick:function(i,t){console.log("this is row click"),"dynamic_fetch"!==i.actionType||t.isExpanded||x[i.id]||(f(function(t){var n;return e.__assign(e.__assign({},t),((n={})[i.id]={loading:!0},n))}),setTimeout(function(){f(function(t){var n;return e.__assign(e.__assign({},t),((n={})[i.id]={loading:!1,data:{newPayload:{message:"Fetched from Server!"}}},n))})},1500))},itemConfig:{getStyle:function(e){return"CRITICAL"===e.actionType?{borderLeft:"4px solid #dc2626",backgroundColor:"#fef2f2"}:{}},getIconBg:function(e){return"CRITICAL"===e.actionType?"#dc2626":void 0},getIcon:function(e){return"CRITICAL"===e.actionType?i.jsx(o.ShieldAlert,{size:16,color:"white"}):void 0}},renderItemHeaderLeft:function(t){return"15d271bf-9d0d-4596-9025-fd44ef7db86d"===t.change_log_id?i.jsxs(i.Fragment,{children:[i.jsx("div",e.__assign({style:{backgroundColor:"blue"}},{children:i.jsx(o.History,{})})),i.jsxs("div",{children:[i.jsx("div",{children:t.title}),i.jsx("div",{children:t.changeTitle})]})]}):null},renderItemHeaderRight:function(t,n,a){return i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"16px"}},{children:[i.jsx("span",e.__assign({style:{fontSize:"12px",color:"#64748b"}},{children:t.timestamp})),i.jsx("button",e.__assign({onClick:function(e){e.stopPropagation(),a.toggle()},style:{background:"transparent",border:"none",cursor:"pointer",padding:0,display:"flex"}},{children:n?i.jsx(o.MinusSquare,{size:20,color:"#ef4444"}):i.jsx(o.PlusSquare,{size:20,color:"#22c55e"})}))]}))},renderItemExpandedBody:function(t,n){switch(t.actionType){case"simple_code_diff":return i.jsxs("div",e.__assign({style:{backgroundColor:"#1e293b",padding:"16px",borderRadius:"8px",color:"#e2e8f0",fontFamily:"monospace",fontSize:"12px"}},{children:[i.jsx("div",e.__assign({style:{color:"#ef4444",textDecoration:"line-through"}},{children:'- "status": "draft"'})),i.jsx("div",e.__assign({style:{color:"#22c55e"}},{children:'+ "status": "published"'}))]}));case"component_injection":return i.jsx(a,{data:t.apiData,onClose:n.collapse});case"dynamic_fetch":var s=x[t.id];return!s||s.loading?i.jsxs("div",e.__assign({style:{padding:"24px",textAlign:"center",color:"#64748b",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},{children:[i.jsx(o.Loader2,{size:24,className:"skeletonPulse"}),i.jsx("span",e.__assign({style:{fontSize:"12px"}},{children:"Fetching live data..."}))]})):i.jsx(a,{data:s.data,onClose:n.collapse});default:return null}}})]}))};
2
2
  //# sourceMappingURL=AuditLogSandBox.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),a=require("react/jsx-runtime"),s=require("react"),n=require("lucide-react"),l=require("./CommonUI.js"),t=require("./AuditLogPanel.module.css.js");exports.ComparisonSummaryCard=function(i){var r=i.data,d=i.globalClasses,o=i.globalStyles,c=i.globalIcons,u=s.useState(r.isInitiallyExpanded||!1),x=u[0],g=u[1],m={isExpanded:x,expand:function(){return g(!0)},collapse:function(){return g(!1)},toggle:function(){return g(!x)}},_=(null==c?void 0:c.chevronUp)||a.jsx(n.ChevronUp,{size:18}),p=(null==c?void 0:c.chevronDown)||a.jsx(n.ChevronDown,{size:18});return a.jsxs("div",e.__assign({className:"".concat(t.default.compCard," ").concat((null==d?void 0:d.compCard)||""," ").concat(r.className||""),style:e.__assign(e.__assign({},null==o?void 0:o.compCard),r.style)},{children:[a.jsxs("div",e.__assign({onClick:m.toggle,className:t.default.compHeader},{children:[a.jsx("div",e.__assign({className:t.default.compTitle},{children:r.renderHeaderLeft?r.renderHeaderLeft():r.title||"Deviation Summary"})),a.jsx("div",e.__assign({className:t.default.compIcon},{children:r.renderHeaderRight?r.renderHeaderRight(x,m):x?_:p}))]})),x&&a.jsx("div",e.__assign({className:t.default.compBody},{children:r.renderExpandedBody?r.renderExpandedBody(m):a.jsxs(a.Fragment,{children:[r.latestText&&a.jsxs("div",{children:[a.jsx("div",e.__assign({className:t.default.compSectionLabel},{children:r.latestTextLabel||"Latest Text"})),a.jsx("div",e.__assign({className:t.default.compLatestText},{children:a.jsx(l.TruncatedText,{content:r.latestText,config:r.truncation,globalClasses:d,globalStyles:o})}))]}),r.originalText&&a.jsxs("div",e.__assign({style:{marginTop:"12px"}},{children:[a.jsx("div",e.__assign({className:t.default.compSectionLabel},{children:r.originalTextLabel||"Original Text"})),a.jsx("div",e.__assign({className:t.default.compOriginalText},{children:a.jsx(l.TruncatedText,{content:r.originalText,config:r.truncation,globalClasses:d,globalStyles:o})}))]}))]})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),a=require("react"),l=require("lucide-react"),i=require("./CommonUI.js"),t=require("./AuditLogPanel.module.css.js");exports.ComparisonSummaryCard=function(n){var c=n.data,r=n.globalClasses,o=n.globalStyles,d=n.globalIcons,u=a.useState(c.isInitiallyExpanded||!1),m=u[0],x=u[1],_=(null==d?void 0:d.chevronUp)||s.jsx(l.ChevronUp,{size:18}),g=(null==d?void 0:d.chevronDown)||s.jsx(l.ChevronDown,{size:18});return s.jsxs("div",e.__assign({className:"".concat(t.default.compCard," ").concat((null==r?void 0:r.compCard)||""," ").concat(c.className||""),style:e.__assign(e.__assign({},null==o?void 0:o.compCard),c.style)},{children:[s.jsxs("div",e.__assign({onClick:function(){return x(!m)},className:t.default.compHeader},{children:[s.jsx("div",e.__assign({className:t.default.compTitle},{children:c.title||"Deviation Summary"})),s.jsx("div",e.__assign({className:t.default.compIcon},{children:m?_:g}))]})),m&&s.jsxs("div",e.__assign({className:t.default.compBody},{children:[s.jsxs("div",{children:[s.jsx("div",e.__assign({className:t.default.compSectionLabel},{children:c.latestTextLabel||"Latest Text"})),s.jsx("div",e.__assign({className:t.default.compLatestText},{children:s.jsx(i.TruncatedText,{content:c.latestText,config:c.truncation,globalClasses:r,globalStyles:o})}))]}),s.jsxs("div",{children:[s.jsx("div",e.__assign({className:t.default.compSectionLabel},{children:c.originalTextLabel||"Original Text"})),s.jsx("div",e.__assign({className:t.default.compOriginalText},{children:s.jsx(i.TruncatedText,{content:c.originalText,config:c.truncation,globalClasses:r,globalStyles:o})}))]})]}))]}))};
2
2
  //# sourceMappingURL=ComparisonSummaryCard.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),a=require("../DateRangeSelector.js"),i=require("../ImpactRangeSelector.js"),t=require("../CustomMultiSelect.js"),r=require("./AuditLogPanel.module.css.js"),c=function(n){var c=n.configs,o=n.draftValues,d=n.handleValueChange,u=n.filterLabels,v=n.classNames,f=n.styles,p=function(n){var c,p,_,g,x,h,m=o[n.id],j="".concat(r.default.filterInput," ").concat((null==v?void 0:v.filterInput)||"");switch(n.type){case"text":return l.jsxs("div",e.__assign({className:r.default.inputWrapper},{children:[l.jsx(s.Search,{size:14,className:r.default.inputIcon}),l.jsx("input",{type:"text",className:"".concat(j," ").concat(r.default.filterInputWithIcon),placeholder:n.placeholder||"Type here...",value:m||"",onChange:function(e){return d(n.id,e.target.value)},style:null==f?void 0:f.filterInput})]}));case"select":return l.jsxs("select",e.__assign({className:"".concat(r.default.filterSelect," ").concat((null==v?void 0:v.filterInput)||""),value:m||"",onChange:function(e){return d(n.id,e.target.value)},style:null==f?void 0:f.filterInput},{children:[l.jsx("option",e.__assign({value:""},{children:(null==u?void 0:u.selectAll)||"All"})),null===(c=n.options)||void 0===c?void 0:c.map(function(n){return l.jsx("option",e.__assign({value:n.value},{children:n.label}),n.value)})]}));case"multi-select":var y=Array.isArray(m)?m:[];return l.jsx("div",e.__assign({className:null==v?void 0:v.filterMultiSelectWrapper,style:null==f?void 0:f.filterMultiSelectWrapper},{children:l.jsx(t.default,{options:n.options||[],value:y,onChange:function(e){return d(n.id,e)},placeholder:n.placeholder||"Select...",searchPlaceholder:n.placeholder||"Search...",showSelectAll:null===(p=n.showSelectAll)||void 0===p||p})}));case"date-range":var N=m||{start:null,end:null},C=new Date;return C.setHours(0,0,0,0),l.jsx(a.default,{value:N,onChange:function(e){return d(n.id,e)},maxDate:C,endIcon:!0});case"impact-range":var b=m||{min:null!==(_=n.min)&&void 0!==_?_:-100,max:null!==(g=n.max)&&void 0!==g?g:100};return l.jsx(i.default,{value:b,onChange:function(e){return d(n.id,e)},min:null!==(x=n.min)&&void 0!==x?x:-100,max:null!==(h=n.max)&&void 0!==h?h:100});case"custom":return n.renderCustomFilter?n.renderCustomFilter(m,function(e){return d(n.id,e)}):null;default:return null}};return l.jsx("div",e.__assign({className:r.default.filterFormGrid},{children:c.filter(function(e){return!1!==e.visible}).map(function(n){return l.jsxs("div",e.__assign({className:r.default.filterField},{children:[l.jsx("label",e.__assign({className:"".concat(r.default.filterLabel," ").concat((null==v?void 0:v.filterLabel)||""),style:null==f?void 0:f.filterLabel},{children:n.label||n.id})),n.hint&&l.jsx("span",e.__assign({className:"".concat(r.default.filterHint," ").concat((null==v?void 0:v.filterHint)||""),style:null==f?void 0:f.filterHint},{children:n.hint})),p(n)]}),n.id)})}))},o=function(n){var s=n.handleApply,a=n.handleClearAll,i=n.showApplyButton,t=n.filterLabels,c=n.classNames,o=n.styles;return i?l.jsxs(l.Fragment,{children:[l.jsx("button",e.__assign({className:"".concat(r.default.btnSecondary," ").concat((null==c?void 0:c.filterClearBtn)||""),onClick:a,style:null==o?void 0:o.filterClearBtn},{children:(null==t?void 0:t.clearBtn)||"Clear All"})),l.jsx("button",e.__assign({className:"".concat(r.default.btnPrimary," ").concat((null==c?void 0:c.filterApplyBtn)||""),onClick:s,style:null==o?void 0:o.filterApplyBtn},{children:(null==t?void 0:t.applyBtn)||"Apply Filters"}))]}):null},d=function(n){var a,i,t;return l.jsxs("div",e.__assign({className:null===(a=n.classNames)||void 0===a?void 0:a.filterSection,style:null===(i=n.styles)||void 0===i?void 0:i.filterSection},{children:[l.jsxs("button",e.__assign({onClick:function(){return n.setIsExpanded(!0)},className:r.default.iconTriggerBtn},{children:[l.jsx(s.Filter,{size:18}),n.activeCount>0&&l.jsx("span",e.__assign({className:r.default.iconTriggerBadge},{children:n.activeCount}))]})),n.isExpanded&&l.jsx("div",e.__assign({className:r.default.modalBackdrop,onClick:function(e){e.target===e.currentTarget&&n.setIsExpanded(!1)}},{children:l.jsxs("div",e.__assign({className:r.default.modalContainer},{children:[l.jsxs("div",e.__assign({className:r.default.modalHeader},{children:[l.jsxs("h3",e.__assign({className:r.default.modalTitle},{children:[l.jsx(s.Filter,{size:16,color:"#2563eb"})," ",(null===(t=n.filterLabels)||void 0===t?void 0:t.title)||"Advanced Filters"]})),l.jsx("button",e.__assign({onClick:function(){return n.setIsExpanded(!1)},className:r.default.modalClose},{children:l.jsx(s.X,{size:18})}))]})),l.jsx("div",e.__assign({className:r.default.modalBody},{children:l.jsx(c,e.__assign({},n))})),n.showApplyButton&&l.jsx("div",e.__assign({className:r.default.modalFooter},{children:l.jsx(o,e.__assign({},n))}))]}))}))]}))},u=function(n){var a,i,t;return l.jsxs("div",e.__assign({className:"".concat(r.default.accordionContainer," ").concat((null===(a=n.classNames)||void 0===a?void 0:a.filterSection)||""),style:null===(i=n.styles)||void 0===i?void 0:i.filterSection},{children:[l.jsxs("div",e.__assign({onClick:function(){return n.setIsExpanded(!n.isExpanded)},className:"".concat(r.default.accordionHeader," ").concat(n.isExpanded?r.default.accordionHeaderExpanded:"")},{children:[l.jsxs("div",e.__assign({className:r.default.accordionTitle},{children:[l.jsx(s.Filter,{size:14,color:"#2563eb"})," ",(null===(t=n.filterLabels)||void 0===t?void 0:t.title)||"Advanced Filters",n.activeCount>0&&l.jsx("span",e.__assign({className:r.default.iconTriggerBadge,style:{position:"relative",top:0,right:0}},{children:n.activeCount}))]})),n.isExpanded?l.jsx(s.ChevronUp,{size:16,color:"#64748b"}):l.jsx(s.ChevronDown,{size:16,color:"#64748b"})]})),n.isExpanded&&l.jsxs("div",e.__assign({className:r.default.accordionContentWrapper},{children:[l.jsx("div",e.__assign({className:r.default.accordionBody},{children:l.jsx(c,e.__assign({},n))})),n.showApplyButton&&l.jsx("div",e.__assign({className:r.default.accordionFooter},{children:l.jsx(o,e.__assign({},n))}))]}))]}))},v=function(n){var s,a;return l.jsxs("div",e.__assign({className:"".concat(r.default.accordionContainer," ").concat((null===(s=n.classNames)||void 0===s?void 0:s.filterSection)||""),style:null===(a=n.styles)||void 0===a?void 0:a.filterSection},{children:[l.jsx("div",e.__assign({className:r.default.accordionBody},{children:l.jsx(c,e.__assign({},n))})),n.showApplyButton&&l.jsx("div",e.__assign({className:r.default.accordionFooter},{children:l.jsx(o,e.__assign({},n))}))]}))};exports.FilterSection=function(s){var a=s.displayMode,i=void 0===a?"popup":a,t=s.values,r=s.onChange,c=s.showApplyButton,o=void 0===c||c,f=n.useState("inline"===i),p=f[0],_=f[1],g=n.useState(t),x=g[0],h=g[1];n.useEffect(function(){h(t)},[t]);var m=e.__assign(e.__assign({},s),{displayMode:i,isExpanded:p,setIsExpanded:_,draftValues:x,handleValueChange:function(l,n){var s,a=e.__assign(e.__assign({},x),((s={})[l]=n,s));(""===n||null===n||Array.isArray(n)&&0===n.length||null===(null==n?void 0:n.start)&&null===(null==n?void 0:n.end))&&delete a[l],h(a),o||r(a)},handleApply:function(){r(x),"popup"===i&&_(!1)},handleClearAll:function(){h({}),r({}),"popup"===i&&_(!1)},activeCount:Object.keys(t).length});return"popup"===i?l.jsx(d,e.__assign({},m)):"accordion"===i?l.jsx(u,e.__assign({},m)):l.jsx(v,e.__assign({},m))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),l=require("react"),i=require("lucide-react"),s={width:"100%",padding:"8px 12px",borderRadius:"6px",border:"1px solid #cbd5e1",fontSize:"13px",color:"#0f172a",background:"#ffffff",outline:"none",boxSizing:"border-box"};exports.FilterSection=function(r){var t=r.configs,a=r.values,o=r.onChange,d=r.displayMode,u=void 0===d?"accordion":d,c=r.showApplyButton,p=void 0!==c&&c,f=r.filterLabels,x=r.classNames,g=r.styles,_=l.useState("inline"===u),v=_[0],h=_[1],y=l.useState(a),m=y[0],b=y[1];l.useEffect(function(){return b(a)},[a]);var j=function(n,l){var i,s=e.__assign(e.__assign({},m),((i={})[n]=l,i));(""===l||null===l||Array.isArray(l)&&0===l.length)&&delete s[n],b(s),p||o(s)},C=e.__assign(e.__assign({},s),null==g?void 0:g.filterInput),S=function(l){var i,s,r=m[l.id],t=(null==x?void 0:x.filterInput)||"";switch(l.type){case"text":return n.jsx("input",{type:"text",className:t,placeholder:l.placeholder||(null==f?void 0:f.searchPlaceholder)||"Type here...",value:r||"",onChange:function(e){return j(l.id,e.target.value)},style:C});case"select":return n.jsxs("select",e.__assign({className:t,value:r||"",onChange:function(e){return j(l.id,e.target.value)},style:C},{children:[n.jsx("option",e.__assign({value:""},{children:(null==f?void 0:f.selectAll)||"All"})),null===(i=l.options)||void 0===i?void 0:i.map(function(l){return n.jsx("option",e.__assign({value:l.value},{children:l.label}),l.value)})]}));case"multi-select":var a=Array.isArray(r)?r:[];return n.jsx("div",e.__assign({className:null==x?void 0:x.filterMultiSelectWrapper,style:e.__assign({display:"flex",flexDirection:"column",gap:"8px",maxHeight:"120px",overflowY:"auto",padding:"4px",background:"#f8fafc",border:"1px solid #e2e8f0",borderRadius:"6px"},null==g?void 0:g.filterMultiSelectWrapper)},{children:null===(s=l.options)||void 0===s?void 0:s.map(function(i){return n.jsxs("label",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"13px",cursor:"pointer",color:"#334155"}},{children:[n.jsx("input",{type:"checkbox",checked:a.includes(i.value),onChange:function(n){var s=n.target.checked?e.__spreadArray(e.__spreadArray([],a,!0),[i.value],!1):a.filter(function(e){return e!==i.value});j(l.id,s)},style:{cursor:"pointer"}}),i.label]}),i.value)})}));case"range":var o=r||{min:"",max:""};return n.jsxs("div",e.__assign({style:{display:"flex",gap:"8px",alignItems:"center"}},{children:[n.jsx("input",{className:t,type:"number",placeholder:(null==f?void 0:f.minPlaceholder)||"Min",value:o.min,min:l.min,max:l.max,onChange:function(n){return j(l.id,e.__assign(e.__assign({},o),{min:n.target.value}))},style:e.__assign(e.__assign({},C),{flex:1})}),n.jsx("span",e.__assign({style:{color:"#64748b"}},{children:"-"})),n.jsx("input",{className:t,type:"number",placeholder:(null==f?void 0:f.maxPlaceholder)||"Max",value:o.max,min:l.min,max:l.max,onChange:function(n){return j(l.id,e.__assign(e.__assign({},o),{max:n.target.value}))},style:e.__assign(e.__assign({},C),{flex:1})})]}));case"custom":return l.renderCustomFilter?l.renderCustomFilter(r,function(e){return j(l.id,e)}):null;default:return null}},k=Object.keys(a).length;return n.jsxs("div",e.__assign({className:null==x?void 0:x.filterSection,style:e.__assign({margin:"0 16px 16px 16px",background:"#ffffff",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},null==g?void 0:g.filterSection)},{children:["inline"!==u&&n.jsxs("div",e.__assign({className:null==x?void 0:x.filterHeader,onClick:function(){return h(!v)},style:e.__assign({display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 16px",background:"#f8fafc",cursor:"pointer",borderBottom:v?"1px solid #e2e8f0":"none"},null==g?void 0:g.filterHeader)},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px",fontWeight:600,color:"#0f172a",fontSize:"13px"}},{children:[n.jsx(i.Filter,{size:14,color:"#64748b"}),(null==f?void 0:f.title)||"Filters",k>0&&n.jsx("span",e.__assign({style:{background:"#3b82f6",color:"white",padding:"2px 6px",borderRadius:"12px",fontSize:"11px",fontWeight:"bold"}},{children:k}))]})),v?n.jsx(i.ChevronUp,{size:16,color:"#64748b"}):n.jsx(i.ChevronDown,{size:16,color:"#64748b"})]})),v&&n.jsxs("div",e.__assign({className:null==x?void 0:x.filterBody,style:e.__assign({padding:"16px"},null==g?void 0:g.filterBody)},{children:[n.jsx("div",e.__assign({style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"16px"}},{children:t.filter(function(e){return!1!==e.visible}).map(function(l){return n.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"6px"}},{children:[n.jsx("label",e.__assign({className:null==x?void 0:x.filterLabel,style:e.__assign({fontSize:"12px",fontWeight:600,color:"#334155"},null==g?void 0:g.filterLabel)},{children:l.label||l.id})),S(l),l.hint&&n.jsx("span",e.__assign({className:null==x?void 0:x.filterHint,style:e.__assign({fontSize:"11px",color:"#94a3b8"},null==g?void 0:g.filterHint)},{children:l.hint}))]}),l.id)})})),p&&n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"20px",paddingTop:"16px",borderTop:"1px solid #f1f5f9"}},{children:[n.jsx("button",e.__assign({className:null==x?void 0:x.filterClearBtn,onClick:function(){b({}),o({})},style:e.__assign({background:"transparent",border:"none",color:"#64748b",fontSize:"12px",fontWeight:600,cursor:"pointer"},null==g?void 0:g.filterClearBtn)},{children:(null==f?void 0:f.clearBtn)||"Clear All"})),n.jsx("button",e.__assign({className:null==x?void 0:x.filterApplyBtn,onClick:function(){o(m),"popup"===u&&h(!1)},style:e.__assign({background:"#0f172a",color:"#ffffff",border:"none",padding:"6px 16px",borderRadius:"6px",fontSize:"12px",fontWeight:600,cursor:"pointer"},null==g?void 0:g.filterApplyBtn)},{children:(null==f?void 0:f.applyBtn)||"Apply Filters"}))]}))]}))]}))};
2
2
  //# sourceMappingURL=FilterSection.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react");exports.useAuditLogDistinctValues=function(a,n){var r=t.useState({}),i=r[0],s=r[1];return t.useEffect(function(){if(a&&n){e.__awaiter(void 0,void 0,void 0,function(){var t,n,r,i,c,o;return e.__generator(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),t=new URL("".concat(a.baseUrl).concat(a.endpoint)),a.configId&&t.searchParams.append("configId",a.configId),[4,fetch(t.toString(),{method:a.method||"GET",headers:e.__assign({Accept:"application/json"},a.headers)})];case 1:return[4,u.sent().json()];case 2:return n=u.sent(),r={},(null===(c=null==n?void 0:n.data)||void 0===c?void 0:c.change_made_title)&&(r.change_made_title=n.data.change_made_title.map(function(e){return{label:e,value:e}})),(null===(o=null==n?void 0:n.data)||void 0===o?void 0:o.change_made_by_user)&&(r.change_made_by_user=Object.entries(n.data.change_made_by_user).map(function(e){return{label:e[0],value:e[1]}})),s(r),[3,4];case 3:return i=u.sent(),console.error("AuditLogPanel: Failed to fetch distinct values",i),[3,4];case 4:return[2]}})})}},[a,n]),{dynamicOptionsMap:i}};
2
+ //# sourceMappingURL=useAuditLogDistinctValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuditLogDistinctValues.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react");exports.useAuditLogsData=function(a,i,n,r){var o=t.useState([]),s=o[0],u=o[1],d=t.useState(!1),c=d[0],l=d[1],_=t.useState(!1),f=_[0],g=_[1],p=t.useState(!0),v=p[0],h=p[1],y=t.useState(),b=y[0],m=y[1],S=t.useCallback(function(t,n){return void 0===t&&(t=!1),e.__awaiter(void 0,void 0,void 0,function(){var o,s,d,c,_,f,p,v;return e.__generator(this,function(y){switch(y.label){case 0:if(!a||r)return[2];t?l(!0):g(!0),y.label=1;case 1:return y.trys.push([1,4,5,6]),o=e.__assign({configId:a.configId,filters:i,cursor:t?void 0:null!=n?n:b},a.baseQuery),[4,fetch("".concat(a.baseUrl).concat(a.endpoint),{method:a.method||"POST",headers:e.__assign({"Content-Type":"application/json"},a.headers),body:JSON.stringify(o)})];case 2:return[4,y.sent().json()];case 3:return s=y.sent(),d=(null===(f=null==s?void 0:s.data)||void 0===f?void 0:f.items)||[],c=d.map(function(t,a){return e.__assign({id:t.change_log_id||"api-log-".concat(a),actionType:t.changeTitle||"modified",title:t.changeTitle||"System Update",subtitle:t.modifiedbyname,timestamp:t.created_at},t)}),u(function(a){return t?c:e.__spreadArray(e.__spreadArray([],a,!0),c,!0)}),m(null===(p=null==s?void 0:s.data)||void 0===p?void 0:p.nextCursor),h(!!(null===(v=null==s?void 0:s.data)||void 0===v?void 0:v.hasNext)),[3,6];case 4:return _=y.sent(),console.error("AuditLogPanel: Failed to fetch logs",_),[3,6];case 5:return t?l(!1):g(!1),[7];case 6:return[2]}})})},[a,i,b,r]);return t.useEffect(function(){n&&!r&&a&&S(!0)},[n,i,r]),{apiLogs:s,apiLoading:c,apiLoadingMore:f,apiHasMore:v,fetchLogs:S}};
2
+ //# sourceMappingURL=useAuditLogsData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuditLogsData.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +1 @@
1
- .App{height:100vh;overflow-y:auto;width:100vw}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:center}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;height:92px;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.log-toolbar{align-items:center;display:flex;gap:16px;width:100%}.log-filterFooter{border-top:1px solid #eee;padding:16px 20px}.log-toolbar__search{flex:1;position:relative}.log-toolbar__search input{border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;font-family:Inter;font-size:14px;font-weight:500;height:40px;padding:0 14px 0 42px;width:100%}.log-toolbar__search input:focus{border-color:#cbd5e1;outline:none}.log-toolbar__search-icon{color:#6b7280;left:14px;position:absolute;top:50%;transform:translateY(-50%)}.log-toolbar__actions{display:flex;gap:12px}.log-toolbar__btn{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;cursor:pointer;display:flex;font-size:14px;gap:8px;height:40px;padding:0 18px;transition:.2s ease}.log-toolbar__btn:hover{background:#f8fafc;border-color:#dbe3ef}.log-toolbar__sort{position:relative}.log-toolbar__dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 24px #0000001f;min-width:260px;overflow:hidden;padding:6px;position:absolute;right:0;top:52px;z-index:99}.log-toolbar__dropdown button{background:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;margin:2px;padding:5px 15px;text-align:left;width:100%}.log-toolbar__dropdown button:hover{background:#f3f4f6}.log-toolbar__dropdown--active{background:#f5f3ff!important;color:#7c3aed}.log-toolbar_list:hover{background:#f5f5f5}.log-toolbar__btn--active{border:1px solid #6d28d9;color:#6d28d9}.log-toolbar__btn--active svg{color:#6d28d9}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl{width:100%}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#2563eb;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.cms-root{position:relative;width:100%}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#2563eb;border-color:#2563eb}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.AuditLogPanel-module_overlay__mnfs5{background-color:#0003;bottom:0;left:0;position:fixed;right:0;top:0;z-index:9998}.AuditLogPanel-module_panel__btKWo{background-color:#fff;box-shadow:-4px 0 20px #0000001a;display:flex;flex-direction:column;height:100vh;max-width:100vw;position:fixed;right:0;top:0;transition:transform .3s ease;width:480px;z-index:9999}.AuditLogPanel-module_panelOpen__Tj0EH{transform:translateX(0)}.AuditLogPanel-module_panelClosed__2nUTn{transform:translateX(100%)}.AuditLogPanel-module_header__4Ld8n{align-items:flex-start;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px 24px}.AuditLogPanel-module_title__YkOer{color:#0f172a;font-size:18px;font-weight:600;margin:0}.AuditLogPanel-module_subtitle__NHQxF{color:#64748b;font-size:13px;margin:4px 0 0}.AuditLogPanel-module_closeBtn__9Raqs{align-items:center;background:none;border:none;color:#64748b;cursor:pointer;display:flex;justify-content:center;padding:4px}.AuditLogPanel-module_scrollArea__QVsJl{flex:1;overflow-y:auto;padding:24px}.AuditLogPanel-module_emptyState__ZqwuX{color:#64748b;margin-top:40px;text-align:center}.AuditLogPanel-module_compCard__KiH-p{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px}.AuditLogPanel-module_compHeader__R5tvd{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none}.AuditLogPanel-module_compTitle__Y4FIG{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_compIcon__gYnr7{align-items:center;color:#475569;display:flex}.AuditLogPanel-module_compBody__hEdrH{border-top:1px solid #f1f5f9;display:flex;flex-direction:column;gap:12px;padding:16px}.AuditLogPanel-module_compSectionLabel__2Lm4E{color:#475569;font-size:12px;font-weight:600;margin-bottom:6px}.AuditLogPanel-module_compLatestText__jpMml{background-color:#f0fdf4;border:1px solid #dcfce7;border-radius:6px;color:#166534;font-size:13px;padding:12px}.AuditLogPanel-module_compOriginalText__FcXep{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#64748b;font-size:13px;padding:12px}.AuditLogPanel-module_itemWrapper__uucps{border-bottom:1px solid #e2e8f0}.AuditLogPanel-module_itemHeader__JueVB{align-items:center;background-color:initial;display:flex;justify-content:space-between;padding:16px 0}.AuditLogPanel-module_itemHeaderClickable__wzqVP{cursor:pointer}.AuditLogPanel-module_itemHeaderDefault__SH2oI{cursor:default}.AuditLogPanel-module_itemLeft__2LBs1{align-items:flex-start;display:flex;gap:12px}.AuditLogPanel-module_itemIconWrapper__LE0QA{align-items:center;border-radius:50%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.AuditLogPanel-module_itemTitle__sDycO{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_itemSubtitle__Y7fME{color:#64748b;font-size:12px;margin-top:2px}.AuditLogPanel-module_itemRight__AalDS{align-items:center;display:flex;gap:12px}.AuditLogPanel-module_itemTimestamp__ooTn5{color:#64748b;font-size:12px}.AuditLogPanel-module_itemChevron__-wnQo{align-items:center;border-radius:50%;display:flex;padding:4px;transition:background-color .2s ease}.AuditLogPanel-module_itemExpanded__ZUp8c{display:flex;flex-direction:column;gap:16px;padding-bottom:20px;padding-left:44px}.AuditLogPanel-module_tagsChip__m3AM5{align-items:center;background-color:#f1f5f9;border-radius:12px;color:#475569;display:inline-flex;flex-wrap:wrap;font-size:12px;font-weight:500;gap:6px;padding:4px 12px}.AuditLogPanel-module_tagSeparator__Kxa4w{color:#94a3b8;font-size:14px}.AuditLogPanel-module_impactContainer__v16Y0{border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:16px;padding:16px}.AuditLogPanel-module_impactHeader__ggNw-{align-items:center;display:flex;gap:8px;margin-bottom:8px}.AuditLogPanel-module_impactLabel__FOmPT{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_impactDescription__5wja1{color:#475569;font-size:13px;line-height:1.5;margin-top:8px}.AuditLogPanel-module_severityBadge__-sPO7{border-radius:12px;font-size:11px;font-weight:500;padding:2px 8px}.AuditLogPanel-module_severityHigh__e--68{background-color:#fee2e2;color:#991b1b}.AuditLogPanel-module_severityOther__m-OrS{background-color:#f1f5f9;color:#475569}.AuditLogPanel-module_divider__td5ot{background-color:#e2e8f0;height:1px}.AuditLogPanel-module_contentBlock__7sjMa{display:flex;flex-direction:column;gap:6px}.AuditLogPanel-module_contentBlockLabel__v8g5e{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_contentBlockText__dfcpm{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#475569;font-size:13px;padding:12px}.AuditLogPanel-module_markdown__7r3Qt{margin:0;white-space:pre-wrap;word-break:break-word}.AuditLogPanel-module_markdown__7r3Qt p{display:inline;margin:0}.AuditLogPanel-module_truncateContainer__ajjKt{align-items:flex-start;display:flex;flex-direction:column;position:relative;width:100%}.AuditLogPanel-module_truncateText__1F-7K{-webkit-box-orient:vertical;color:inherit;display:-webkit-box;line-height:1.5;overflow:hidden;width:100%}.AuditLogPanel-module_truncateExpandedScrollable__txaww{display:block!important;overflow-y:auto;padding-right:6px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar{width:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb:hover{background:#94a3b8}.AuditLogPanel-module_toggleBtn__rfU8F{background:none;border:none;color:#2563eb;cursor:pointer;font-size:13px;font-style:italic;font-weight:500;margin-top:6px;padding:0}.AuditLogPanel-module_filterSection__b-3av{border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;gap:12px;margin-bottom:16px;padding:16px 0}.AuditLogPanel-module_filterGrid__IGB8-{align-items:flex-end;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.AuditLogPanel-module_filterItem__rg6ci{display:flex;flex-direction:column;gap:4px}.AuditLogPanel-module_filterLabel__5V4QY{color:#475569}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background-color:#fff}.AuditLogPanel-module_dateRangeGroup__TGqpn{align-items:center;display:flex;gap:6px}.AuditLogPanel-module_filterHeader__YpEH-{align-items:center;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:8px;user-select:none}.AuditLogPanel-module_filterHeaderLeft__2IvKC{align-items:center;color:#475569;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_activeBadge__irk0W{background-color:#2563eb;border-radius:12px;color:#fff;font-size:11px;font-weight:700;padding:2px 8px}.AuditLogPanel-module_clearBtn__sRfO0{background:none;border:none;color:#dc2626;cursor:pointer;font-size:11px;margin-left:8px;padding:0 4px;text-decoration:underline}.AuditLogPanel-module_filterPopupWrapper__jBPyK{display:flex;justify-content:flex-end;margin-bottom:16px;position:relative}.AuditLogPanel-module_filterTriggerBtn__yL7ko{align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #0000000d;color:#0f172a;cursor:pointer;display:flex;font-size:13px;font-weight:600;gap:8px;padding:8px 16px;transition:all .2s}.AuditLogPanel-module_filterTriggerBtn__yL7ko:hover{background:#f8fafc;border-color:#94a3b8}.AuditLogPanel-module_filterPopupContent__inbJs{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 10px 25px -5px #0000001a;margin-top:8px;max-height:70vh;overflow-y:auto;padding:16px;position:absolute;right:0;top:100%;width:340px;z-index:100}.AuditLogPanel-module_filterHint__n0Udq{color:#64748b;line-height:1.3;margin-bottom:4px}.AuditLogPanel-module_multiSelectGroup__ZQU0e{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;gap:8px;max-height:120px;overflow-y:auto;padding:10px}.AuditLogPanel-module_checkboxItem__-Rwa1{align-items:center;color:#334155;cursor:pointer;display:flex;font-size:13px;gap:8px}.AuditLogPanel-module_rangeGroup__x-K5-{align-items:center;display:flex;gap:8px}.AuditLogPanel-module_rangeInput__hydGj{border:1px solid #cbd5e1;border-radius:6px;font-size:13px;padding:8px 10px;width:100%}.AuditLogPanel-module_filterFooter__21RHT{align-items:center;border-top:1px dashed #e2e8f0;display:flex;gap:12px;justify-content:flex-end;margin-top:16px;padding-top:12px}.AuditLogPanel-module_applyBtn__SsGu2{background-color:#2563eb;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 16px;transition:background-color .2s}.AuditLogPanel-module_applyBtn__SsGu2:hover{background-color:#1d4ed8}.AuditLogPanel-module_skeletonPulse__Jqdac{animation:AuditLogPanel-module_pulse__SFUMS 1.5s cubic-bezier(.4,0,.6,1) infinite}@keyframes AuditLogPanel-module_pulse__SFUMS{0%,to{opacity:1}50%{opacity:.5}}.AuditLogPanel-module_loadingText__M41Xb{color:#64748b;font-size:13px;font-style:italic;padding:16px;text-align:center}.AuditLogPanel-module_iconTriggerBtn__Cu-XV{align-items:center;background:#0000;border:none;border-radius:6px;color:#64748b;cursor:pointer;display:flex;height:32px;justify-content:center;position:relative;transition:all .2s;width:32px}.AuditLogPanel-module_iconTriggerBtn__Cu-XV:hover{background:#f1f5f9;color:#0f172a}.AuditLogPanel-module_iconTriggerBadge__rokhX{align-items:center;background:#2563eb;border:2px solid #fff;border-radius:12px;color:#fff;display:flex;font-size:10px;font-weight:700;height:16px;justify-content:center;min-width:16px;padding:0 4px;position:absolute;right:-4px;top:-4px}.AuditLogPanel-module_modalBackdrop__IJAuf{align-items:center;backdrop-filter:blur(3px);background-color:#0f172a80;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:9999}.AuditLogPanel-module_modalContainer__zRPuE{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;max-height:90vh;max-width:600px;overflow:hidden;width:100%}.AuditLogPanel-module_modalHeader__CR8rf{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:16px 20px}.AuditLogPanel-module_modalTitle__EwALY{align-items:center;color:#0f172a;display:flex;font-size:15px;font-weight:600;gap:8px;margin:0}.AuditLogPanel-module_modalClose__3XGih{background:#0000;border:none;border-radius:4px;color:#64748b;cursor:pointer;display:flex;padding:4px;transition:background .2s}.AuditLogPanel-module_modalClose__3XGih:hover{background:#f1f5f9;color:#0f172a}.AuditLogPanel-module_modalBody__Fn2Xb{flex:1;overflow-y:auto;padding:20px}.AuditLogPanel-module_modalFooter__1vn3I{background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:16px 20px}.AuditLogPanel-module_accordionContainer__92rQR{background:#fff;border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;margin:0 16px 16px;max-height:60vh;overflow:hidden}.AuditLogPanel-module_accordionHeader__fBYZr{align-items:center;background:#fff;border-bottom:1px solid #0000;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none;z-index:45}.AuditLogPanel-module_accordionHeaderExpanded__R82zY{border-bottom-color:#e2e8f0}.AuditLogPanel-module_accordionTitle__SfXdv{align-items:center;color:#0f172a;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_accordionContentWrapper__WJ6ZE{display:flex;flex:1;flex-direction:column;overflow:hidden}.AuditLogPanel-module_accordionBody__MBU1x{flex:1;overflow-y:auto;padding:16px}.AuditLogPanel-module_accordionFooter__jBIof{background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:12px 16px}.AuditLogPanel-module_filterFormGrid__QoLKp{display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.AuditLogPanel-module_filterField__-UAtF{display:flex;flex-direction:column;gap:8px}.AuditLogPanel-module_filterLabel__5V4QY{color:#334155;font-size:12px;font-weight:600;letter-spacing:.5px}.AuditLogPanel-module_filterHint__n0Udq{color:#94a3b8;font-size:11px}.AuditLogPanel-module_inputWrapper__WrBnR{position:relative}.AuditLogPanel-module_inputIcon__cOOa8{color:#94a3b8;left:10px;position:absolute;top:50%;transform:translateY(-50%)}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #00000005;box-sizing:border-box;color:#0f172a;font-size:13px;outline:none;padding:8px 12px;transition:border-color .2s;width:100%}.AuditLogPanel-module_filterInput__CvuQ5:focus,.AuditLogPanel-module_filterSelect__1mD44:focus{border-color:#2563eb}.AuditLogPanel-module_filterInputWithIcon__o5dTT{padding-left:32px}.AuditLogPanel-module_btnSecondary__s9Ts7{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#475569;cursor:pointer;font-size:13px;font-weight:600;padding:8px 20px;transition:background .2s}.AuditLogPanel-module_btnSecondary__s9Ts7:hover{background:#f1f5f9}.AuditLogPanel-module_btnPrimary__l1zRY{background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:8px;box-shadow:0 4px 12px #2563eb40;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 24px;transition:opacity .2s}.AuditLogPanel-module_btnPrimary__l1zRY:hover{opacity:.9}.lgfd__overlay{background:#0000;border:none;cursor:default;inset:0;padding:0;position:fixed;z-index:999}.lgfd__panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px #0000001f;display:flex;flex-direction:column;max-height:520px;overflow:hidden;position:fixed;width:400px;z-index:1000}.lgfd__header{align-items:center;border-bottom:1px solid #f3f4f6;display:flex;flex-shrink:0;justify-content:space-between;padding:14px 16px 12px}.lgfd__title{color:#111827;font-size:14px;font-weight:600}.lgfd__closeBtn{background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;font-size:13px;line-height:1;padding:2px 6px;transition:background .1s,color .1s}.lgfd__closeBtn:hover{background:#f3f4f6;color:#374151}.lgfd__body{flex:1;overflow-y:auto}.lgfd__block{border-bottom:1px solid #f3f4f6;padding:14px 16px}.lgfd__block:last-child{border-bottom:none}.lgfd__label{color:#374151;font-size:13px;font-weight:600;margin-bottom:4px}.lgfd__hint{line-height:1.4}.lgfd__empty,.lgfd__hint{color:#9ca3af;font-size:12px}.lgfd__empty{padding:6px 0}.lgfd__footer{border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;gap:8px;padding:12px 16px}.lgfd__resetBtn{background:#fff;border:1px solid #d1d5db;border-radius:6px;color:#374151;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__resetBtn:hover{background:#f9fafb}.lgfd__applyBtn{background:#7c3aed;border:none;border-radius:6px;color:#fff;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__applyBtn:hover{background:#6d28d9}.lgfd__actorSearch{align-items:center;display:flex;margin-bottom:6px;position:relative}.lgfd__actorInput{border:1px solid #d1d5db;border-radius:6px;box-sizing:border-box;color:#374151;font-size:13px;outline:none;padding:7px 32px 7px 10px;width:100%}.lgfd__actorInput:focus{border-color:#6b7280}.lgfd__actorSpinner{animation:lgfd-spin .6s linear infinite;border:2px solid #e5e7eb;border-radius:50%;border-top-color:#6b7280;height:14px;position:absolute;right:10px;width:14px}@keyframes lgfd-spin{to{transform:rotate(1turn)}}.lgfd__actorList{display:flex;flex-direction:column;gap:1px;max-height:128px;overflow-y:auto}.lgfd__actorItem{align-items:center;border-radius:5px;cursor:pointer;display:flex;gap:8px;padding:6px;user-select:none}.lgfd__actorItem:hover{background:#f9fafb}.lgfd__actorItem--checked{background:#f5f3ff}.lgfd__actorCheckbox{align-items:center;background:#fff;border:1.5px solid #d1d5db;border-radius:3px;color:#fff;display:flex;flex-shrink:0;font-size:10px;height:15px;justify-content:center;width:15px}.lgfd__actorCheckbox--checked{background:#7c3aed;border-color:#7c3aed}.lgfd__actorLabel{color:#374151;font-size:13px}
1
+ .App{height:100vh;overflow-y:auto;width:100vw}.audit-tableWrap{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.audit-table .p-datatable-tbody>tr:nth-child(odd){background:#f8fafc}.audit-table .p-datatable-tbody>tr:hover{background:#eff5ff!important}.audit-table .p-datatable-thead>tr>th{background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#6b7280;font-family:Inter;font-size:12px;font-weight:600;height:54px;padding:8px 16px}.audit-table .p-datatable-thead>tr>th .p-column-header-content{align-items:center;justify-content:center}.audit-table .p-datatable-tbody>tr>td{border-bottom:1px solid #eef2f7;color:#101828;font-family:Inter;font-size:14px;font-weight:400;height:92px;padding:16px}.audit-modifiedBy{align-items:center;display:flex;justify-content:center}.audit-actionCell{display:flex;flex-direction:column;gap:6px}.audit-chip{border-radius:6px;font-family:Inter;font-size:9px;font-weight:500;gap:5px;padding:4px 7px;width:fit-content}.audit-chip,.audit-chip__icon{align-items:center;display:inline-flex}.audit-chip__icon{justify-content:center}.audit-chip--purple{background:#ede9fe;color:#6d28d9}.audit-chip--orange{background:#ffedd5;color:#c2410c}.audit-actionText{color:#111827;font-size:12px;line-height:1.35}.audit-seeMore{background:#0000;border:0;color:#6d28d9;cursor:pointer;font-size:12px;font-weight:400;margin-left:4px;padding:0}.audit-dateCell{color:#101828;font-family:Inter;text-align:center}.audit-emptyState{align-items:center;color:#64748b;display:flex;flex-direction:column;height:300px;justify-content:center;text-align:center}.audit-emptyTitle{font-size:16px;font-weight:600;margin-top:8px}.audit-emptyDesc{font-size:13px;margin-top:4px}.audit-skeletonRow{display:flex;gap:16px;padding:12px 0}.audit-operation-body{align-items:center;display:flex;justify-content:center}.audit-logIdBody{margin:0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-table .p-datatable-tbody>tr.audit-row--clickable{cursor:pointer}.audit-table .p-datatable-tbody>tr.p-datatable-row-expansion>td{background:#fff;padding:0}.audit-rowDetail{background:#fff;border-top:1px solid #eef2f7;padding:16px 20px}.log-toolbar{align-items:center;display:flex;gap:16px;width:100%}.log-filterFooter{border-top:1px solid #eee;padding:16px 20px}.log-toolbar__search{flex:1;position:relative}.log-toolbar__search input{border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;font-family:Inter;font-size:14px;font-weight:500;height:40px;padding:0 14px 0 42px;width:100%}.log-toolbar__search input:focus{border-color:#cbd5e1;outline:none}.log-toolbar__search-icon{color:#6b7280;left:14px;position:absolute;top:50%;transform:translateY(-50%)}.log-toolbar__actions{display:flex;gap:12px}.log-toolbar__btn{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#6b7280;cursor:pointer;display:flex;font-size:14px;gap:8px;height:40px;padding:0 18px;transition:.2s ease}.log-toolbar__btn:hover{background:#f8fafc;border-color:#dbe3ef}.log-toolbar__sort{position:relative}.log-toolbar__dropdown{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 12px 24px #0000001f;min-width:260px;overflow:hidden;padding:6px;position:absolute;right:0;top:52px;z-index:99}.log-toolbar__dropdown button{background:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;margin:2px;padding:5px 15px;text-align:left;width:100%}.log-toolbar__dropdown button:hover{background:#f3f4f6}.log-toolbar__dropdown--active{background:#f5f3ff!important;color:#7c3aed}.log-toolbar_list:hover{background:#f5f5f5}.log-toolbar__btn--active{border:1px solid #6d28d9;color:#6d28d9}.log-toolbar__btn--active svg{color:#6d28d9}.drs{position:relative}.drs__trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#475569;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;height:40px;padding:0 18px;transition:.2s ease}.drs__trigger:hover{background:#f8fafc;border-color:#dbe3ef}.drs__label{color:#6b7280;font-family:Inter;font-size:14px}.drs__popover{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 16px 40px #00000024;position:absolute;right:0;top:60px;width:340px;z-index:9999}.drs__header{align-items:center;display:flex;justify-content:space-between;padding:16px 16px 10px}.drs__month{color:#1e293b;display:flex;font-family:Inter,sans-serif;font-size:17px;font-weight:700;gap:5px}.drs__month-click,.drs__year-click{border-radius:4px;cursor:pointer;padding:1px 4px;transition:background-color .15s ease}.drs__month-click:hover,.drs__year-click:hover{background:#f1f5f9;color:#635ae3}.drs__nav{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#64748b;cursor:pointer;display:inline-flex;height:34px;justify-content:center;width:34px}.drs__nav:hover{background:#f8fafc;color:#1e293b}.drs__inputs{gap:8px;padding:0 16px 12px}.drs__input-box,.drs__inputs{align-items:center;display:flex}.drs__input-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#1e293b;flex:1;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:36px;padding:0 10px;transition:border-color .15s ease}.drs__input-box.is-active{background:#fff;border-color:#635ae3}.drs__input-placeholder{color:#94a3b8;font-weight:400}.drs__input-sep{color:#94a3b8;font-size:16px}.drs__week{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 4px}.drs__weekday{color:#94a3b8;font-family:Inter,sans-serif;font-size:12px;font-weight:600;padding:4px 0;text-align:center}.drs__grid{display:grid;grid-template-columns:repeat(7,1fr);padding:0 8px 12px;row-gap:2px}.drs__day{align-items:center;background:#0000;border:none;color:#0f172a;cursor:pointer;display:flex;font-family:Inter,sans-serif;font-size:14px;font-weight:400;height:36px;justify-content:center;padding:0;position:relative;width:100%}.drs__day.is-disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.drs__day-inner{align-items:center;border-radius:50%;display:flex;height:34px;justify-content:center;position:relative;transition:background-color .12s ease;width:34px;z-index:1}.drs__day:hover:not(.is-start):not(.is-end) .drs__day-inner{background:#f1f5f9}.drs__day.is-out{color:#cbd5e1}.drs__day.is-range-start:before,.drs__day.is-range:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;z-index:0}.drs__day.is-range-start:before{left:50%}.drs__day.is-range-end:before{background:#635ae30f;content:"";inset:1px 0;position:absolute;right:50%;z-index:0}.drs__day.is-row-first:before{border-radius:50% 0 0 50%}.drs__day.is-row-last:before{border-radius:0 50% 50% 0}.drs__day.is-end .drs__day-inner,.drs__day.is-start .drs__day-inner{background:#635ae3;color:#fff;font-weight:600}.drs__day.is-end:hover .drs__day-inner,.drs__day.is-start:hover .drs__day-inner{background:#4f46d8}.drs__month-grid{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:8px 16px 16px}.drs__month-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:500;height:44px}.drs__month-cell:hover{background:#f1f5f9}.drs__month-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__year-grid{display:grid;gap:8px;grid-template-columns:repeat(4,1fr);padding:8px 16px 16px}.drs__year-cell{background:#fff;border:1px solid #e5e7eb;border-radius:8px;color:#1e293b;cursor:pointer;font-family:Inter,sans-serif;font-size:13px;font-weight:500;height:44px;transition:background-color .15s ease}.drs__year-cell:hover{background:#f1f5f9}.drs__year-cell.is-selected{background:#635ae3;border-color:#635ae3;color:#fff}.drs__footer{border-top:1px solid #eef2f7;display:flex;gap:10px;justify-content:flex-end;padding:12px 16px}.drs__btn{border:1px solid #0000;border-radius:10px;cursor:pointer;font-family:Inter,sans-serif;font-size:14px;font-weight:600;height:40px;padding:0 20px}.drs__btn--ghost{background:#fff;border-color:#e5e7eb;color:#475569}.drs__btn--ghost:hover{background:#f8fafc}.drs__btn--primary{background:#635ae3;color:#fff}.drs__btn--primary:hover{background:#4f46d8}.drs__btn--primary:disabled{cursor:not-allowed;opacity:.45}.audit-filterBlock .date-range-wrapper,.audit-filterControl{width:100%}.log-filterSidebar{width:400px}.log-filterTitle{color:#334155;font-family:Inter;font-size:18px;font-weight:600}.log-filterBody{display:flex;flex-direction:column;gap:16px}.log-filterBlock .log-filterLabel{color:#334155;font-family:Inter;font-size:14px;font-weight:600}.log-filterHint{color:#64748b;font-family:Inter;font-size:12px;font-weight:500;line-height:130%;margin-top:4px}.log-filterFooter{background:#fff;bottom:0;display:flex;gap:10px;justify-content:flex-end;left:0;padding:12px 16px;position:absolute;right:0}.log-btnReset{background:#fff;border:1px solid #e2e8f0;color:#64748b}.log-btnApply,.log-btnReset{border-radius:6px;font-family:Inter;font-size:14px;font-weight:500;padding:8px 11px}.log-btnApply{background:#2563eb;color:#fff}.log-filter-date .drs__trigger{margin-top:12px;width:100%}.log-filterEmpty{background:#f8fafc;border:1px dashed #e2e8f0;border-radius:6px;color:#94a3b8;font-family:Inter;font-size:13px;font-weight:500;padding:10px 12px;text-align:center}.cms-root{position:relative;width:100%}.cms-trigger{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:0 18px;width:100%}.cms-trigger:hover{background:#f8fafc;border-color:#dbe3ef}.cms-triggerText{color:#6b7280;font-family:Inter;font-size:14px}.cms-hasValue{color:#334155}.cms-chevron{color:#64748b}.cms-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 8px 24px #1018281f;left:0;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:9999}.cms-searchRow{align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;display:flex;gap:10px;height:40px;padding:0 12px}.cms-searchInput{border:none;color:#334155;font-family:Inter;font-size:14px;outline:none;width:100%}.cms-divider{background:#e2e8f0;height:1px;margin:10px 0}.cms-list{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}.cms-item{align-items:center;border-radius:8px;cursor:pointer;display:flex;gap:10px;min-height:30px;padding:0 8px}.cms-item:hover{background:#f8fafc}.cms-checkbox{align-items:center;border:1px solid #cbd5e1;border-radius:4px;color:#fff;display:inline-flex;font-size:13px;height:16px;justify-content:center;width:16px}.cms-checked{background:#2563eb;border-color:#2563eb}.cms-itemText{color:#334155;font-family:Inter;font-size:14px}.AuditLogPanel-module_overlay__mnfs5{background-color:#0003;bottom:0;left:0;position:fixed;right:0;top:0;z-index:9998}.AuditLogPanel-module_panel__btKWo{background-color:#fff;box-shadow:-4px 0 20px #0000001a;display:flex;flex-direction:column;height:100vh;max-width:100vw;position:fixed;right:0;top:0;transition:transform .3s ease;width:480px;z-index:9999}.AuditLogPanel-module_panelOpen__Tj0EH{transform:translateX(0)}.AuditLogPanel-module_panelClosed__2nUTn{transform:translateX(100%)}.AuditLogPanel-module_header__4Ld8n{align-items:flex-start;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px 24px}.AuditLogPanel-module_title__YkOer{color:#0f172a;font-size:18px;font-weight:600;margin:0}.AuditLogPanel-module_subtitle__NHQxF{color:#64748b;font-size:13px;margin:4px 0 0}.AuditLogPanel-module_closeBtn__9Raqs{align-items:center;background:none;border:none;color:#64748b;cursor:pointer;display:flex;justify-content:center;padding:4px}.AuditLogPanel-module_scrollArea__QVsJl{flex:1;overflow-y:auto;padding:24px}.AuditLogPanel-module_emptyState__ZqwuX{color:#64748b;margin-top:40px;text-align:center}.AuditLogPanel-module_compCard__KiH-p{background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px}.AuditLogPanel-module_compHeader__R5tvd{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 16px;user-select:none}.AuditLogPanel-module_compTitle__Y4FIG{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_compIcon__gYnr7{align-items:center;color:#475569;display:flex}.AuditLogPanel-module_compBody__hEdrH{border-top:1px solid #f1f5f9;display:flex;flex-direction:column;gap:12px;padding:16px}.AuditLogPanel-module_compSectionLabel__2Lm4E{color:#475569;font-size:12px;font-weight:600;margin-bottom:6px}.AuditLogPanel-module_compLatestText__jpMml{background-color:#f0fdf4;border:1px solid #dcfce7;border-radius:6px;color:#166534;font-size:13px;padding:12px}.AuditLogPanel-module_compOriginalText__FcXep{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#64748b;font-size:13px;padding:12px}.AuditLogPanel-module_itemWrapper__uucps{border-bottom:1px solid #e2e8f0}.AuditLogPanel-module_itemHeader__JueVB{align-items:center;background-color:initial;display:flex;justify-content:space-between;padding:16px 0}.AuditLogPanel-module_itemHeaderClickable__wzqVP{cursor:pointer}.AuditLogPanel-module_itemHeaderDefault__SH2oI{cursor:default}.AuditLogPanel-module_itemLeft__2LBs1{align-items:flex-start;display:flex;gap:12px}.AuditLogPanel-module_itemIconWrapper__LE0QA{align-items:center;border-radius:50%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.AuditLogPanel-module_itemTitle__sDycO{color:#0f172a;font-size:14px;font-weight:600}.AuditLogPanel-module_itemSubtitle__Y7fME{color:#64748b;font-size:12px;margin-top:2px}.AuditLogPanel-module_itemRight__AalDS{align-items:center;display:flex;gap:12px}.AuditLogPanel-module_itemTimestamp__ooTn5{color:#64748b;font-size:12px}.AuditLogPanel-module_itemChevron__-wnQo{align-items:center;border-radius:50%;display:flex;padding:4px;transition:background-color .2s ease}.AuditLogPanel-module_itemExpanded__ZUp8c{display:flex;flex-direction:column;gap:16px;padding-bottom:20px;padding-left:44px}.AuditLogPanel-module_tagsRow__49-Ga{display:flex;flex-wrap:wrap;gap:8px}.AuditLogPanel-module_tagPill__HI0Ax{background-color:#f1f5f9;border-radius:12px;color:#475569;font-size:12px;padding:4px 10px}.AuditLogPanel-module_impactContainer__v16Y0{border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:16px;padding:16px}.AuditLogPanel-module_impactHeader__ggNw-{align-items:center;display:flex;gap:8px;margin-bottom:8px}.AuditLogPanel-module_impactLabel__FOmPT{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_severityBadge__-sPO7{border-radius:12px;font-size:11px;font-weight:500;padding:2px 8px}.AuditLogPanel-module_severityHigh__e--68{background-color:#fee2e2;color:#991b1b}.AuditLogPanel-module_severityOther__m-OrS{background-color:#f1f5f9;color:#475569}.AuditLogPanel-module_divider__td5ot{background-color:#e2e8f0;height:1px}.AuditLogPanel-module_contentBlock__7sjMa{display:flex;flex-direction:column;gap:6px}.AuditLogPanel-module_contentBlockLabel__v8g5e{color:#0f172a;font-size:13px;font-weight:600}.AuditLogPanel-module_contentBlockText__dfcpm{background-color:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;color:#475569;font-size:13px;padding:12px}.AuditLogPanel-module_markdown__7r3Qt{font-style:italic;margin:0;white-space:pre-wrap;word-break:break-word}.AuditLogPanel-module_markdown__7r3Qt p{display:inline;margin:0}.AuditLogPanel-module_truncateContainer__ajjKt{align-items:flex-start;display:flex;flex-direction:column;position:relative;width:100%}.AuditLogPanel-module_truncateText__1F-7K{-webkit-box-orient:vertical;color:inherit;display:-webkit-box;font-size:inherit;line-height:1.5;overflow:hidden;width:100%}.AuditLogPanel-module_truncateExpandedScrollable__txaww{display:block!important;overflow-y:auto;padding-right:6px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar{width:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.AuditLogPanel-module_truncateExpandedScrollable__txaww::-webkit-scrollbar-thumb:hover{background:#94a3b8}.AuditLogPanel-module_toggleBtn__rfU8F{background:none;border:none;color:#2563eb;cursor:pointer;font-size:13px;font-style:italic;font-weight:500;margin-top:6px;padding:0}.AuditLogPanel-module_filterSection__b-3av{border-bottom:1px solid #e2e8f0;display:flex;flex-direction:column;gap:12px;margin-bottom:16px;padding:16px 0}.AuditLogPanel-module_filterGrid__IGB8-{align-items:flex-end;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.AuditLogPanel-module_filterItem__rg6ci{display:flex;flex-direction:column;gap:4px}.AuditLogPanel-module_filterLabel__5V4QY{color:#475569;font-size:12px;font-weight:600}.AuditLogPanel-module_filterInput__CvuQ5,.AuditLogPanel-module_filterSelect__1mD44{background-color:#fff;border:1px solid #cbd5e1;border-radius:6px;box-sizing:border-box;color:#0f172a;font-size:13px;outline:none;padding:8px 12px;transition:border-color .2s;width:100%}.AuditLogPanel-module_filterInput__CvuQ5:focus,.AuditLogPanel-module_filterSelect__1mD44:focus{border-color:#2563eb}.AuditLogPanel-module_dateRangeGroup__TGqpn{align-items:center;display:flex;gap:6px}.AuditLogPanel-module_filterHeader__YpEH-{align-items:center;cursor:pointer;display:flex;justify-content:space-between;margin-bottom:8px;user-select:none}.AuditLogPanel-module_filterHeaderLeft__2IvKC{align-items:center;color:#475569;display:flex;font-size:13px;font-weight:600;gap:8px}.AuditLogPanel-module_activeBadge__irk0W{background-color:#2563eb;border-radius:12px;color:#fff;font-size:11px;font-weight:700;padding:2px 8px}.AuditLogPanel-module_clearBtn__sRfO0{background:none;border:none;color:#dc2626;cursor:pointer;font-size:11px;margin-left:8px;padding:0 4px;text-decoration:underline}.AuditLogPanel-module_filterPopupWrapper__jBPyK{display:flex;justify-content:flex-end;margin-bottom:16px;position:relative}.AuditLogPanel-module_filterTriggerBtn__yL7ko{align-items:center;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 1px 2px #0000000d;color:#0f172a;cursor:pointer;display:flex;font-size:13px;font-weight:600;gap:8px;padding:8px 16px;transition:all .2s}.AuditLogPanel-module_filterTriggerBtn__yL7ko:hover{background:#f8fafc;border-color:#94a3b8}.AuditLogPanel-module_filterPopupContent__inbJs{background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 10px 25px -5px #0000001a;margin-top:8px;max-height:70vh;overflow-y:auto;padding:16px;position:absolute;right:0;top:100%;width:340px;z-index:100}.AuditLogPanel-module_filterHint__n0Udq{color:#64748b;font-size:11px;line-height:1.3;margin-bottom:4px}.AuditLogPanel-module_multiSelectGroup__ZQU0e{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;display:flex;flex-direction:column;gap:8px;max-height:120px;overflow-y:auto;padding:10px}.AuditLogPanel-module_checkboxItem__-Rwa1{align-items:center;color:#334155;cursor:pointer;display:flex;font-size:13px;gap:8px}.AuditLogPanel-module_rangeGroup__x-K5-{align-items:center;display:flex;gap:8px}.AuditLogPanel-module_rangeInput__hydGj{border:1px solid #cbd5e1;border-radius:6px;font-size:13px;padding:8px 10px;width:100%}.AuditLogPanel-module_filterFooter__21RHT{align-items:center;border-top:1px dashed #e2e8f0;display:flex;gap:12px;justify-content:flex-end;margin-top:16px;padding-top:12px}.AuditLogPanel-module_applyBtn__SsGu2{background-color:#2563eb;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:13px;font-weight:600;padding:8px 16px;transition:background-color .2s}.AuditLogPanel-module_applyBtn__SsGu2:hover{background-color:#1d4ed8}.AuditLogPanel-module_skeletonPulse__Jqdac{animation:AuditLogPanel-module_pulse__SFUMS 1.5s cubic-bezier(.4,0,.6,1) infinite}@keyframes AuditLogPanel-module_pulse__SFUMS{0%,to{opacity:1}50%{opacity:.5}}.AuditLogPanel-module_loadingText__M41Xb{color:#64748b;font-size:13px;font-style:italic;padding:16px;text-align:center}.lgfd__overlay{background:#0000;border:none;cursor:default;inset:0;padding:0;position:fixed;z-index:999}.lgfd__panel{background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px #0000001f;display:flex;flex-direction:column;max-height:520px;overflow:hidden;position:fixed;width:400px;z-index:1000}.lgfd__header{align-items:center;border-bottom:1px solid #f3f4f6;display:flex;flex-shrink:0;justify-content:space-between;padding:14px 16px 12px}.lgfd__title{color:#111827;font-size:14px;font-weight:600}.lgfd__closeBtn{background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;font-size:13px;line-height:1;padding:2px 6px;transition:background .1s,color .1s}.lgfd__closeBtn:hover{background:#f3f4f6;color:#374151}.lgfd__body{flex:1;overflow-y:auto}.lgfd__block{border-bottom:1px solid #f3f4f6;padding:14px 16px}.lgfd__block:last-child{border-bottom:none}.lgfd__label{color:#374151;font-size:13px;font-weight:600;margin-bottom:4px}.lgfd__hint{line-height:1.4}.lgfd__empty,.lgfd__hint{color:#9ca3af;font-size:12px}.lgfd__empty{padding:6px 0}.lgfd__footer{border-top:1px solid #e5e7eb;display:flex;flex-shrink:0;gap:8px;padding:12px 16px}.lgfd__resetBtn{background:#fff;border:1px solid #d1d5db;border-radius:6px;color:#374151;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__resetBtn:hover{background:#f9fafb}.lgfd__applyBtn{background:#7c3aed;border:none;border-radius:6px;color:#fff;cursor:pointer;flex:1;font-size:13px;font-weight:500;padding:8px 12px;transition:background .1s}.lgfd__applyBtn:hover{background:#6d28d9}.lgfd__actorSearch{align-items:center;display:flex;margin-bottom:6px;position:relative}.lgfd__actorInput{border:1px solid #d1d5db;border-radius:6px;box-sizing:border-box;color:#374151;font-size:13px;outline:none;padding:7px 32px 7px 10px;width:100%}.lgfd__actorInput:focus{border-color:#6b7280}.lgfd__actorSpinner{animation:lgfd-spin .6s linear infinite;border:2px solid #e5e7eb;border-radius:50%;border-top-color:#6b7280;height:14px;position:absolute;right:10px;width:14px}@keyframes lgfd-spin{to{transform:rotate(1turn)}}.lgfd__actorList{display:flex;flex-direction:column;gap:1px;max-height:128px;overflow-y:auto}.lgfd__actorItem{align-items:center;border-radius:5px;cursor:pointer;display:flex;gap:8px;padding:6px;user-select:none}.lgfd__actorItem:hover{background:#f9fafb}.lgfd__actorItem--checked{background:#f5f3ff}.lgfd__actorCheckbox{align-items:center;background:#fff;border:1.5px solid #d1d5db;border-radius:3px;color:#fff;display:flex;flex-shrink:0;font-size:10px;height:15px;justify-content:center;width:15px}.lgfd__actorCheckbox--checked{background:#7c3aed;border-color:#7c3aed}.lgfd__actorLabel{color:#374151;font-size:13px}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as c}from"react";import{ChevronUp as a,ChevronDown as l,XCircle as o,Sparkles as r,PenLine as d,CheckCircle2 as s}from"lucide-react";import{TruncatedText as m}from"./CommonUI.js";import p from"./AuditLogPanel.module.css.js";var u=function(u){var v,g,h,f,b,N=u.log,y=u.globalIcons,B=u.globalClasses,k=u.globalStyles,x=u.renderItemHeaderLeft,C=u.renderItemHeaderRight,H=u.renderItemExpandedBody,E=u.onRowClick,I=u.itemConfig,L=c(N.isInitiallyExpanded||!1),R=L[0],z=L[1],T={isExpanded:R,expand:function(){return z(!0)},collapse:function(){return z(!1)},toggle:function(){return z(!R)}},j=x?x(N):null,w=C?C(N,R,T):null,W=H?H(N,T):null,S=Boolean(N.renderExpandedBody||N.customExpandedContent),_=Boolean(N.tags&&N.tags.length>0||N.impact||N.contentBlocks&&N.contentBlocks.length>0),D=S||Boolean(W)||_,P=function(e){switch(e){case"approved":return{icon:n(s,{size:16,color:"#16a34a"}),bg:"#dcfce7"};case"iterated":return{icon:n(d,{size:14,color:"#2563eb"}),bg:"#dbeafe"};case"ai_suggested":return{icon:n(r,{size:14,color:"#9333ea"}),bg:"#f3e8ff"};case"rejected":return{icon:n(o,{size:16,color:"#dc2626"}),bg:"#fee2e2"};default:return{icon:n("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"}}}(N.actionType),U=(null===(v=null==I?void 0:I.getIcon)||void 0===v?void 0:v.call(I,N))||N.icon||(null===(g=null==y?void 0:y.actionTypes)||void 0===g?void 0:g[N.actionType])||P.icon,A=(null===(h=null==I?void 0:I.getIconBg)||void 0===h?void 0:h.call(I,N))||N.iconBgColor||P.bg,O=(null===(f=null==I?void 0:I.getStyle)||void 0===f?void 0:f.call(I,N))||{};return t("div",e({className:"".concat(p.itemWrapper," ").concat((null==B?void 0:B.itemWrapper)||""," ").concat(N.className||""),style:e(e(e({},null==k?void 0:k.itemWrapper),N.style),O)},{children:[t("div",e({onClick:function(e){e.target.closest("button, a, input, select")||(E&&E(N,T),D&&z(!R))},className:"".concat(p.itemHeader," ").concat(D?p.itemHeaderClickable:p.itemHeaderDefault)},{children:[n("div",e({className:p.itemLeft},{children:N.renderHeaderLeft?N.renderHeaderLeft():j||t(i,{children:[n("div",e({className:p.itemIconWrapper,style:{backgroundColor:A}},{children:U})),t("div",{children:[n("div",e({className:p.itemTitle},{children:N.title})),n("div",e({className:p.itemSubtitle},{children:N.subtitle}))]})]})})),n("div",e({className:p.itemRight},{children:N.renderHeaderRight?N.renderHeaderRight(R,T):w||t(i,{children:[n("span",e({className:p.itemTimestamp},{children:N.timestamp})),D&&n("div",e({className:p.itemChevron},{children:R?(null==y?void 0:y.chevronUp)||n(a,{size:16}):(null==y?void 0:y.chevronDown)||n(l,{size:16})}))]})}))]})),R&&D&&n("div",e({className:p.itemExpanded},{children:N.renderExpandedBody?N.renderExpandedBody(T):W||(N.customExpandedContent?N.customExpandedContent:t(i,{children:[N.tags&&N.tags.length>0&&n("div",e({className:p.tagsRow},{children:N.tags.map(function(t,i){return n("span",e({className:p.tagPill},{children:t}),i)})})),(N.impact||N.contentBlocks&&N.contentBlocks.length>0)&&t("div",e({className:p.impactContainer},{children:[N.impact&&t("div",e({className:N.impact.className,style:N.impact.style},{children:[t("div",e({className:p.impactHeader},{children:[n("span",e({className:p.impactLabel},{children:N.impact.label||"Impact"})),N.impact.severity&&n("span",e({className:"".concat(p.severityBadge," ").concat("High"===N.impact.severity?p.severityHigh:p.severityOther)},{children:N.impact.severity}))]})),n(m,{content:N.impact.description,config:N.impact.truncation})]})),N.impact&&N.contentBlocks&&n("div",{className:p.divider}),null===(b=N.contentBlocks)||void 0===b?void 0:b.map(function(i,c){return t("div",e({className:p.contentBlock},{children:[n("span",e({className:p.contentBlockLabel},{children:i.label})),n("div",e({className:p.contentBlockText},{children:n(m,{content:i.content,config:i.truncation})}))]}),c)})]}))]}))}))]}))};export{u as AuditLogItem};
2
+ //# sourceMappingURL=AuditLogItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuditLogItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as i,Fragment as t,jsx as r}from"react/jsx-runtime";import o,{useMemo as l}from"react";import{X as n}from"lucide-react";import{AuditLogItem as a}from"./AuditLogPanelItem.js";import{ComparisonSummaryCard as s}from"./ComparisonSummaryCard.js";import{FilterSection as d}from"./FilterSection.js";import{useAuditLogsData as c}from"./Services/useAuditLogPanelData.js";import{useAuditLogDistinctValues as m}from"./Services/useAuditLogPanelDistinctValues.js";import{useAuditLogFilters as u}from"./Services/useAuditLogPanelFilters.js";import{useAuditLogScroll as p}from"./Services/useAuditLogPanelScroll.js";import{extractComparisonContext as g}from"./Services/AuditLogPanelAdapter.js";import"primereact/resources/themes/lara-light-indigo/theme.css";import"primereact/resources/primereact.min.css";import v from"./AuditLogPanel.module.css.js";var f=function(f){var h=f.isOpen,y=f.onClose,C=f.title,L=void 0===C?"Redline History":C,x=f.subtitle,A=f.emptyState,S=void 0===A?"No history available.":A,I=f.logs,N=f.getData,b=f.distinctValuesApi,j=f.loading,F=void 0!==j&&j,M=f.loadingMore,w=void 0!==M&&M,P=f.hasMore,H=void 0!==P&&P,k=f.onLoadMore,B=f.comparisonContext,R=f.showComparisonCard,D=f.filters,T=void 0===D?[]:D,E=f.filterValues,O=f.onFilterChange,V=f.autoFilter,_=void 0!==V&&V,q=f.filterDisplayMode,z=void 0===q?"popup":q,Q=f.showApplyButton,W=void 0===Q||Q,G=f.onRowClick,J=f.itemConfig,K=f.renderCustomFilterSection,U=f.renderHeaderControls,X=f.renderCustomLogEntry,Y=f.renderItemHeaderLeft,Z=f.renderItemHeaderRight,$=f.renderItemExpandedBody,ee=f.globalIcons,ie=f.classNames,te=f.styles,re=f.labels,oe=f.dataSourceMode,le=f.query,ne=f.truncationConfig,ae="external"===oe,se=m(b,null==N?void 0:N.configId,null==le?void 0:le.externalResourceId,h).dynamicOptionsMap,de=u(T,E,O,se,le),ce=de.activeFilters,me=de.handleFilterChange,ue=de.enrichedFilters,pe=de.apiQuery,ge=de.showApplyButton,ve=de.filterLabels,fe=c(N,ce,h,ae,re,pe,ne),he=fe.apiLogs,ye=fe.apiLoading,Ce=fe.apiLoadingMore,Le=fe.apiHasMore,xe=fe.fetchLogs,Ae=ae?I||[]:he,Se=ae?F:ye,Ie=ae?w:Ce,Ne=ae?H:Le,be=l(function(){return _&&ae&&0!==ue.length?Ae.filter(function(e){return ue.every(function(i){var t=ce[i.id];return!t||""===t||("text"===i.type?String(e.title||"").toLowerCase().includes(String(t).toLowerCase()):"select"===i.type?e.actionType===t:"multi-select"!==i.type||Array.isArray(t)&&t.includes(e.actionType))})}):Ae},[Ae,ce,ue,_,ae]),je=l(function(){if((null==B?void 0:B.latestText)||(null==B?void 0:B.originalText))return B;if(!ae&&I&&I.length>0){var i=(null==B?void 0:B.truncation)||ne,t=g(I,re,i);return t?e(e({},t),B):void 0}},[B,ae,I,re,ne]),Fe=p(h,Ne,Ie,function(){return ae&&k?k():!ae&&xe(!1)},be.length),Me=void 0!==R?R:!!je,we=W||ge;return h?i(t,{children:[r("div",{className:"".concat(v.overlay," ").concat((null==ie?void 0:ie.overlay)||""),onClick:y}),i("div",e({className:"".concat(v.panel," ").concat(h?v.panelOpen:v.panelClosed," ").concat((null==ie?void 0:ie.panel)||"")},{children:[i("div",e({className:v.header},{children:[i("div",{children:[r("h2",e({className:v.title},{children:L})),x&&r("div",e({className:v.subtitle},{children:x}))]}),i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[K?K():ue.length>0?r(d,{configs:ue,values:ce,onChange:me,displayMode:z,showApplyButton:we,filterLabels:ve,classNames:ie,styles:te}):null,r("button",e({onClick:y,className:v.closeBtn},{children:(null==ee?void 0:ee.close)||r(n,{size:20})}))]}))]})),i("div",e({ref:Fe,className:v.scrollArea},{children:[U?U():Me&&je?r(s,{data:je,globalIcons:ee}):null,Se&&0===be.length?r("div",e({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[1,2,3,4,5].map(function(e){return r("div",{className:"".concat(v.itemWrapper," ").concat(v.skeletonPulse),style:{height:"70px",background:"#f8fafc"}},e)})})):0===be.length?r("div",e({className:v.emptyState},{children:S})):be.map(function(e,i){return r(o.Fragment,{children:X?X(e,i):r(a,{log:e,globalIcons:ee,onRowClick:G,itemConfig:J,renderItemHeaderLeft:Y,renderItemHeaderRight:Z,renderItemExpandedBody:$})},e.id)}),Ie&&r("div",e({className:v.loadingText},{children:(null==re?void 0:re.loadingMore)||"Fetching older history..."}))]}))]}))]}):null};export{f as AuditLogPanel};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,Fragment as o,jsx as n}from"react/jsx-runtime";import i,{useRef as r,useState as l,useMemo as a,useEffect as s}from"react";import{X as c}from"lucide-react";import{AuditLogItem as d}from"./AuditLogItem.js";import{ComparisonSummaryCard as u}from"./ComparisonSummaryCard.js";import{FilterSection as m}from"./FilterSection.js";import{useAuditLogsData as p}from"./Services/useAuditLogsData.js";import{useAuditLogDistinctValues as f}from"./Services/useAuditLogDistinctValues.js";import v from"./AuditLogPanel.module.css.js";var g=function(g){var y=g.isOpen,h=g.onClose,C=g.title,L=void 0===C?"Redline History":C,b=g.subtitle,N=g.emptyState,x=void 0===N?"No history available.":N,A=g.logs,I=g.getData,S=g.distinctValuesApi,H=g.loading,M=void 0!==H&&H,j=g.loadingMore,w=void 0!==j&&j,k=g.hasMore,F=void 0!==k&&k,O=g.onLoadMore,B=g.comparisonContext,D=g.filters,E=void 0===D?[]:D,R=g.filterValues,T=g.onFilterChange,K=g.autoFilter,V=void 0!==K&&K,P=g.filterDisplayMode,_=void 0===P?"accordion":P,z=g.showApplyButton,W=void 0!==z&&z,q=g.onRowClick,G=g.itemConfig,J=g.renderCustomFilterSection,Q=g.renderHeaderControls,U=g.renderCustomLogEntry,X=g.renderItemHeaderLeft,Y=g.renderItemHeaderRight,Z=g.renderItemExpandedBody,$=g.globalIcons,ee=g.classNames,te=g.styles,oe=g.filterLabels,ne=g.dataSourceMode,ie=r(null),re="external"===ne,le=void 0!==R,ae=l({}),se=ae[0],ce=ae[1],de=le?R:se,ue=p(I,de,y,re),me=ue.apiLogs,pe=ue.apiLoading,fe=ue.apiLoadingMore,ve=ue.apiHasMore,ge=ue.fetchLogs,ye=f(S,y).dynamicOptionsMap,he=a(function(){return E.map(function(t){return t.dynamicOptionKey&&ye[t.dynamicOptionKey]?e(e({},t),{options:ye[t.dynamicOptionKey]}):t})},[E,ye]),Ce=re?A||[]:me,Le=re?M:pe,be=re?w:fe,Ne=re?F:ve,xe=function(){re&&O?O():re||ge(!1)},Ae=a(function(){return V&&re&&0!==he.length?Ce.filter(function(e){return he.every(function(t){var o=de[t.id];return!o||""===o||("text"===t.type?String(e.title||"").toLowerCase().includes(String(o).toLowerCase()):"select"===t.type?e.actionType===o:"multi-select"!==t.type||Array.isArray(o)&&o.includes(e.actionType))})}):Ce},[Ce,de,he,V,re]);return s(function(){return document.body.style.overflow=y?"hidden":"unset",function(){document.body.style.overflow="unset"}},[y]),s(function(){var e=ie.current;if(e&&y){var t=function(){!be&&Ne&&e.scrollHeight-e.scrollTop-e.clientHeight<100&&xe()};return e.addEventListener("scroll",t),t(),function(){return e.removeEventListener("scroll",t)}}},[Ne,be,xe,Ae.length,y]),y?t(o,{children:[n("div",{className:"".concat(v.overlay," ").concat((null==ee?void 0:ee.overlay)||""),onClick:h}),t("div",e({className:"".concat(v.panel," ").concat(y?v.panelOpen:v.panelClosed," ").concat((null==ee?void 0:ee.panel)||"")},{children:[t("div",e({className:v.header},{children:[t("div",{children:[n("h2",e({className:v.title},{children:L})),b&&n("div",e({className:v.subtitle},{children:b}))]}),n("button",e({onClick:h,className:v.closeBtn},{children:(null==$?void 0:$.close)||n(c,{size:20})}))]})),t("div",e({ref:ie,className:v.scrollArea},{children:[Q?Q():B?n(u,{data:B,globalIcons:$}):null,J?J():he.length>0?n(m,{configs:he,values:de,onChange:function(e){le||ce(e),T&&T(e)},displayMode:_,showApplyButton:W,filterLabels:oe,classNames:ee,styles:te}):null,Le&&0===Ae.length?n("div",e({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[1,2,3,4,5].map(function(e){return n("div",{className:"".concat(v.itemWrapper," ").concat(v.skeletonPulse),style:{height:"70px",background:"#f8fafc"}},e)})})):0===Ae.length?n("div",e({className:v.emptyState},{children:x})):Ae.map(function(e,t){return n(i.Fragment,{children:U?U(e,t):n(d,{log:e,globalIcons:$,onRowClick:q,itemConfig:G,renderItemHeaderLeft:X,renderItemHeaderRight:Y,renderItemExpandedBody:Z})},e.id)}),be&&n("div",e({className:v.loadingText},{children:"Fetching older history..."}))]}))]}))]}):null};export{g as AuditLogPanel};
2
2
  //# sourceMappingURL=AuditLogPanel.js.map
@@ -1,2 +1,2 @@
1
- var e={overlay:"AuditLogPanel-module_overlay__mnfs5",panel:"AuditLogPanel-module_panel__btKWo",panelOpen:"AuditLogPanel-module_panelOpen__Tj0EH",panelClosed:"AuditLogPanel-module_panelClosed__2nUTn",header:"AuditLogPanel-module_header__4Ld8n",title:"AuditLogPanel-module_title__YkOer",subtitle:"AuditLogPanel-module_subtitle__NHQxF",closeBtn:"AuditLogPanel-module_closeBtn__9Raqs",scrollArea:"AuditLogPanel-module_scrollArea__QVsJl",emptyState:"AuditLogPanel-module_emptyState__ZqwuX",compCard:"AuditLogPanel-module_compCard__KiH-p",compHeader:"AuditLogPanel-module_compHeader__R5tvd",compTitle:"AuditLogPanel-module_compTitle__Y4FIG",compIcon:"AuditLogPanel-module_compIcon__gYnr7",compBody:"AuditLogPanel-module_compBody__hEdrH",compSectionLabel:"AuditLogPanel-module_compSectionLabel__2Lm4E",compLatestText:"AuditLogPanel-module_compLatestText__jpMml",compOriginalText:"AuditLogPanel-module_compOriginalText__FcXep",itemWrapper:"AuditLogPanel-module_itemWrapper__uucps",itemHeader:"AuditLogPanel-module_itemHeader__JueVB",itemHeaderClickable:"AuditLogPanel-module_itemHeaderClickable__wzqVP",itemHeaderDefault:"AuditLogPanel-module_itemHeaderDefault__SH2oI",itemLeft:"AuditLogPanel-module_itemLeft__2LBs1",itemIconWrapper:"AuditLogPanel-module_itemIconWrapper__LE0QA",itemTitle:"AuditLogPanel-module_itemTitle__sDycO",itemSubtitle:"AuditLogPanel-module_itemSubtitle__Y7fME",itemRight:"AuditLogPanel-module_itemRight__AalDS",itemTimestamp:"AuditLogPanel-module_itemTimestamp__ooTn5",itemChevron:"AuditLogPanel-module_itemChevron__-wnQo",itemExpanded:"AuditLogPanel-module_itemExpanded__ZUp8c",tagsChip:"AuditLogPanel-module_tagsChip__m3AM5",tagSeparator:"AuditLogPanel-module_tagSeparator__Kxa4w",impactContainer:"AuditLogPanel-module_impactContainer__v16Y0",impactHeader:"AuditLogPanel-module_impactHeader__ggNw-",impactLabel:"AuditLogPanel-module_impactLabel__FOmPT",impactDescription:"AuditLogPanel-module_impactDescription__5wja1",severityBadge:"AuditLogPanel-module_severityBadge__-sPO7",severityHigh:"AuditLogPanel-module_severityHigh__e--68",severityOther:"AuditLogPanel-module_severityOther__m-OrS",divider:"AuditLogPanel-module_divider__td5ot",contentBlock:"AuditLogPanel-module_contentBlock__7sjMa",contentBlockLabel:"AuditLogPanel-module_contentBlockLabel__v8g5e",contentBlockText:"AuditLogPanel-module_contentBlockText__dfcpm",markdown:"AuditLogPanel-module_markdown__7r3Qt",truncateContainer:"AuditLogPanel-module_truncateContainer__ajjKt",truncateText:"AuditLogPanel-module_truncateText__1F-7K",truncateExpandedScrollable:"AuditLogPanel-module_truncateExpandedScrollable__txaww",toggleBtn:"AuditLogPanel-module_toggleBtn__rfU8F",filterSection:"AuditLogPanel-module_filterSection__b-3av",filterGrid:"AuditLogPanel-module_filterGrid__IGB8-",filterItem:"AuditLogPanel-module_filterItem__rg6ci",filterLabel:"AuditLogPanel-module_filterLabel__5V4QY",filterInput:"AuditLogPanel-module_filterInput__CvuQ5",filterSelect:"AuditLogPanel-module_filterSelect__1mD44",dateRangeGroup:"AuditLogPanel-module_dateRangeGroup__TGqpn",filterHeader:"AuditLogPanel-module_filterHeader__YpEH-",filterHeaderLeft:"AuditLogPanel-module_filterHeaderLeft__2IvKC",activeBadge:"AuditLogPanel-module_activeBadge__irk0W",clearBtn:"AuditLogPanel-module_clearBtn__sRfO0",filterPopupWrapper:"AuditLogPanel-module_filterPopupWrapper__jBPyK",filterTriggerBtn:"AuditLogPanel-module_filterTriggerBtn__yL7ko",filterPopupContent:"AuditLogPanel-module_filterPopupContent__inbJs",filterHint:"AuditLogPanel-module_filterHint__n0Udq",multiSelectGroup:"AuditLogPanel-module_multiSelectGroup__ZQU0e",checkboxItem:"AuditLogPanel-module_checkboxItem__-Rwa1",rangeGroup:"AuditLogPanel-module_rangeGroup__x-K5-",rangeInput:"AuditLogPanel-module_rangeInput__hydGj",filterFooter:"AuditLogPanel-module_filterFooter__21RHT",applyBtn:"AuditLogPanel-module_applyBtn__SsGu2",skeletonPulse:"AuditLogPanel-module_skeletonPulse__Jqdac",pulse:"AuditLogPanel-module_pulse__SFUMS",loadingText:"AuditLogPanel-module_loadingText__M41Xb",iconTriggerBtn:"AuditLogPanel-module_iconTriggerBtn__Cu-XV",iconTriggerBadge:"AuditLogPanel-module_iconTriggerBadge__rokhX",modalBackdrop:"AuditLogPanel-module_modalBackdrop__IJAuf",modalContainer:"AuditLogPanel-module_modalContainer__zRPuE",modalHeader:"AuditLogPanel-module_modalHeader__CR8rf",modalTitle:"AuditLogPanel-module_modalTitle__EwALY",modalClose:"AuditLogPanel-module_modalClose__3XGih",modalBody:"AuditLogPanel-module_modalBody__Fn2Xb",modalFooter:"AuditLogPanel-module_modalFooter__1vn3I",accordionContainer:"AuditLogPanel-module_accordionContainer__92rQR",accordionHeader:"AuditLogPanel-module_accordionHeader__fBYZr",accordionHeaderExpanded:"AuditLogPanel-module_accordionHeaderExpanded__R82zY",accordionTitle:"AuditLogPanel-module_accordionTitle__SfXdv",accordionContentWrapper:"AuditLogPanel-module_accordionContentWrapper__WJ6ZE",accordionBody:"AuditLogPanel-module_accordionBody__MBU1x",accordionFooter:"AuditLogPanel-module_accordionFooter__jBIof",filterFormGrid:"AuditLogPanel-module_filterFormGrid__QoLKp",filterField:"AuditLogPanel-module_filterField__-UAtF",inputWrapper:"AuditLogPanel-module_inputWrapper__WrBnR",inputIcon:"AuditLogPanel-module_inputIcon__cOOa8",filterInputWithIcon:"AuditLogPanel-module_filterInputWithIcon__o5dTT",btnSecondary:"AuditLogPanel-module_btnSecondary__s9Ts7",btnPrimary:"AuditLogPanel-module_btnPrimary__l1zRY"};export{e as default};
1
+ var e={overlay:"AuditLogPanel-module_overlay__mnfs5",panel:"AuditLogPanel-module_panel__btKWo",panelOpen:"AuditLogPanel-module_panelOpen__Tj0EH",panelClosed:"AuditLogPanel-module_panelClosed__2nUTn",header:"AuditLogPanel-module_header__4Ld8n",title:"AuditLogPanel-module_title__YkOer",subtitle:"AuditLogPanel-module_subtitle__NHQxF",closeBtn:"AuditLogPanel-module_closeBtn__9Raqs",scrollArea:"AuditLogPanel-module_scrollArea__QVsJl",emptyState:"AuditLogPanel-module_emptyState__ZqwuX",compCard:"AuditLogPanel-module_compCard__KiH-p",compHeader:"AuditLogPanel-module_compHeader__R5tvd",compTitle:"AuditLogPanel-module_compTitle__Y4FIG",compIcon:"AuditLogPanel-module_compIcon__gYnr7",compBody:"AuditLogPanel-module_compBody__hEdrH",compSectionLabel:"AuditLogPanel-module_compSectionLabel__2Lm4E",compLatestText:"AuditLogPanel-module_compLatestText__jpMml",compOriginalText:"AuditLogPanel-module_compOriginalText__FcXep",itemWrapper:"AuditLogPanel-module_itemWrapper__uucps",itemHeader:"AuditLogPanel-module_itemHeader__JueVB",itemHeaderClickable:"AuditLogPanel-module_itemHeaderClickable__wzqVP",itemHeaderDefault:"AuditLogPanel-module_itemHeaderDefault__SH2oI",itemLeft:"AuditLogPanel-module_itemLeft__2LBs1",itemIconWrapper:"AuditLogPanel-module_itemIconWrapper__LE0QA",itemTitle:"AuditLogPanel-module_itemTitle__sDycO",itemSubtitle:"AuditLogPanel-module_itemSubtitle__Y7fME",itemRight:"AuditLogPanel-module_itemRight__AalDS",itemTimestamp:"AuditLogPanel-module_itemTimestamp__ooTn5",itemChevron:"AuditLogPanel-module_itemChevron__-wnQo",itemExpanded:"AuditLogPanel-module_itemExpanded__ZUp8c",tagsRow:"AuditLogPanel-module_tagsRow__49-Ga",tagPill:"AuditLogPanel-module_tagPill__HI0Ax",impactContainer:"AuditLogPanel-module_impactContainer__v16Y0",impactHeader:"AuditLogPanel-module_impactHeader__ggNw-",impactLabel:"AuditLogPanel-module_impactLabel__FOmPT",severityBadge:"AuditLogPanel-module_severityBadge__-sPO7",severityHigh:"AuditLogPanel-module_severityHigh__e--68",severityOther:"AuditLogPanel-module_severityOther__m-OrS",divider:"AuditLogPanel-module_divider__td5ot",contentBlock:"AuditLogPanel-module_contentBlock__7sjMa",contentBlockLabel:"AuditLogPanel-module_contentBlockLabel__v8g5e",contentBlockText:"AuditLogPanel-module_contentBlockText__dfcpm",markdown:"AuditLogPanel-module_markdown__7r3Qt",truncateContainer:"AuditLogPanel-module_truncateContainer__ajjKt",truncateText:"AuditLogPanel-module_truncateText__1F-7K",truncateExpandedScrollable:"AuditLogPanel-module_truncateExpandedScrollable__txaww",toggleBtn:"AuditLogPanel-module_toggleBtn__rfU8F",filterSection:"AuditLogPanel-module_filterSection__b-3av",filterGrid:"AuditLogPanel-module_filterGrid__IGB8-",filterItem:"AuditLogPanel-module_filterItem__rg6ci",filterLabel:"AuditLogPanel-module_filterLabel__5V4QY",filterInput:"AuditLogPanel-module_filterInput__CvuQ5",filterSelect:"AuditLogPanel-module_filterSelect__1mD44",dateRangeGroup:"AuditLogPanel-module_dateRangeGroup__TGqpn",filterHeader:"AuditLogPanel-module_filterHeader__YpEH-",filterHeaderLeft:"AuditLogPanel-module_filterHeaderLeft__2IvKC",activeBadge:"AuditLogPanel-module_activeBadge__irk0W",clearBtn:"AuditLogPanel-module_clearBtn__sRfO0",filterPopupWrapper:"AuditLogPanel-module_filterPopupWrapper__jBPyK",filterTriggerBtn:"AuditLogPanel-module_filterTriggerBtn__yL7ko",filterPopupContent:"AuditLogPanel-module_filterPopupContent__inbJs",filterHint:"AuditLogPanel-module_filterHint__n0Udq",multiSelectGroup:"AuditLogPanel-module_multiSelectGroup__ZQU0e",checkboxItem:"AuditLogPanel-module_checkboxItem__-Rwa1",rangeGroup:"AuditLogPanel-module_rangeGroup__x-K5-",rangeInput:"AuditLogPanel-module_rangeInput__hydGj",filterFooter:"AuditLogPanel-module_filterFooter__21RHT",applyBtn:"AuditLogPanel-module_applyBtn__SsGu2",skeletonPulse:"AuditLogPanel-module_skeletonPulse__Jqdac",pulse:"AuditLogPanel-module_pulse__SFUMS",loadingText:"AuditLogPanel-module_loadingText__M41Xb"};export{e as default};
2
2
  //# sourceMappingURL=AuditLogPanel.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as i,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as n}from"react";import{AuditLogPanel as a}from"./AuditLogPanel.js";import{transformBackendLogs as r,extractComparisonContext as l}from"./Services/AuditLogPanelAdapter.js";import{Trash2 as d,Bot as c,RotateCcw as s,ShieldAlert as p}from"lucide-react";var g={enabled:!0,lines:2,viewMoreLabel:"...View More",viewLessLabel:"View Less"},u={items:[{change_log_id:"log-1",changeTitle:"REVERTED",modifiedbyname:"Load Test",created_at:"2026-06-18T18:03:04.442613Z",actionType:"REVERTED",isLive:!0,changelog_metadata:[{property_name:"Union",property_value:{previous_value:{Union:"Contract redlining can significantly impact the outcome of a contract by identifying and modifying risky, unclear, or unfavorable terms. It helps reduce legal and financial exposure, improves clarity of obligations, and ensures compliance with company policies."},current_value:{Union:"latest value"}},metadata:{impact:"High priority union status change. High priority union status change. High priority union status change.",severity:"high",tags:["Linent","Grounded"]}}]},{change_log_id:"log-2",changeTitle:"ITERATED",actionType:"ITERATED",modifiedbyname:"AI Agent",created_at:"2026-06-19T10:00:00Z",ai_summary:"Shifted the risk to the vendor.",changelog_metadata:[]},{change_log_id:"log-3",changeTitle:"AI_SUGGESTED",actionType:"AI_SUGGESTED",modifiedbyname:"System Engine",created_at:"2026-06-20T14:30:00Z",changelog_metadata:[]},{change_log_id:"log-4",changeTitle:"REJECTED",modifiedbyname:"Hitesh",created_at:"2026-06-21T09:15:00Z",changelog_metadata:[]}],nextCursor:"eyJ0cyI6IjIwMjYtMDUtMjBUMTU6MTU6NDMuNTEzODM1KzAwOjAwIiwiY2lkIjoiMjA2NDI4YmItYTMzOS00NjkxLWI4ZjEtY2YwMGU4ZDA3YmY1Iiwib3JkZXIiOiJsYXRlc3RGaXJzdCJ9",hasNext:!0},h=function(){var h=o(!0),m=h[0],f=h[1],y=o([]);y[0];var b=y[1],x=o();x[0];var v=x[1],T=o(!0),I=T[0],E=T[1],w={emptyState:"No history found for this claim.",impactSectionTitle:"System Impact Score",changedToSuffix:"Changed To:",fromSuffix:"Before:"};return n(function(){setTimeout(function(){var e=u.items,i=r(e,w,g),t=l(e,{comparisonTitle:"Final Approved Text Vs. Original",comparisonLatestLabel:"Latest text",comparisonOriginalLabel:"Original text"},g);b(i),v(t),E(!1)},800)},[]),i("div",e({style:{padding:"40px",fontFamily:"system-ui",backgroundColor:"#f1f5f9",minHeight:"100vh"}},{children:[t("button",e({onClick:function(){return f(!0)},style:{padding:"12px 24px",background:"#0f172a",color:"white",borderRadius:"8px",cursor:"pointer",border:"none",fontWeight:"bold"}},{children:"Open Redline Sandbox"})),t(a,{getData:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/fetch",configId:"6a3e5ddeb4d25cd1bfe68c56",method:"POST"},distinctValuesApi:{baseUrl:"https://dev.appmod.ai",endpoint:"/changelog/audit-log/distinct-values"},query:{externalResourceId:["173a1acc-3266-48c2-85b3-5c45d006945b"],paginationLimit:10},filters:{config:{showFilterButton:!0,showSort:!0,showDateFilter:!0,showSearch:!0,showAnalystFilter:!0,showChangeTitleFilter:!0,showImpactPercentage:!0,sortOptions:{latest:!1,oldest:!0},showApplyButton:!0},labels:{impactHintLabel:"This is hint for impact label"},impactRangeLimits:{min:-100,max:100}},truncationConfig:g,isOpen:m,onClose:function(){return f(!1)},title:"Redline Master History",subtitle:"Tracking all modifications and AI iterations",dataSourceMode:"internal",loading:I,labels:w,filterDisplayMode:"popup",comparisonContext:void 0,globalIcons:{actionTypes:{REJECTED:t(d,{size:16,color:"#dc2626"})}},renderItemHeaderLeft:function(o){var n;return"ITERATED"===(null===(n=o.rawPayload)||void 0===n?void 0:n.changeTitle)?i("div",e({style:{display:"flex",gap:"12px",alignItems:"center"}},{children:[t("div",e({style:{padding:"8px",background:"#fdf4ff",borderRadius:"8px",border:"1px solid #f0abfc"}},{children:t(c,{size:20,color:"#c026d3"})})),i("div",{children:[t("div",e({style:{color:"#c026d3",fontWeight:"bold",fontSize:"14px"}},{children:"AI Agent Suggestion"})),t("div",e({style:{fontSize:"11px",color:"#64748b"}},{children:"Awaiting your approval..."}))]})]})):null},renderItemHeaderRight:function(o,n,a){var r;return"REJECTED"===(null===(r=o.rawPayload)||void 0===r?void 0:r.changeTitle)?i("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[i("button",e({onClick:function(e){e.stopPropagation(),alert("Restoring Redline...")},style:{display:"flex",gap:"4px",alignItems:"center",padding:"4px 8px",borderRadius:"4px",border:"1px solid #cbd5e1",cursor:"pointer",background:"white",fontSize:"11px",fontWeight:600,color:"#334155"}},{children:[t(s,{size:12})," Restore"]})),t("span",e({style:{fontSize:"11px",color:"#94a3b8"}},{children:o.timestamp})),t("span",e({style:{color:"#94a3b8"}},{children:n?"▲":"▼"}))]})):null},renderItemExpandedBody:function(o,n){var a;return"ITERATED"===(null===(a=o.rawPayload)||void 0===a?void 0:a.changeTitle)?i("div",e({style:{padding:"16px",background:"#f8fafc",borderRadius:"8px",border:"1px dashed #cbd5e1",display:"flex",flexDirection:"column",gap:"12px"}},{children:[i("div",e({style:{display:"flex",gap:"8px",alignItems:"center",color:"#0f172a",fontWeight:"bold"}},{children:[t(p,{size:16,color:"#eab308"}),"Custom Iteration Review"]})),i("div",e({style:{fontSize:"13px",color:"#475569"}},{children:[t("strong",{children:"AI Summary: "})," ",o.rawPayload.ai_summary]})),i("div",e({style:{display:"flex",gap:"8px"}},{children:[t("button",e({onClick:n.collapse,style:{padding:"6px 12px",background:"#e2e8f0",border:"none",borderRadius:"4px",fontSize:"12px",cursor:"pointer",fontWeight:600}},{children:"Close View"})),t("button",e({style:{padding:"6px 12px",background:"#2563eb",color:"white",border:"none",borderRadius:"4px",fontSize:"12px",cursor:"pointer",fontWeight:600}},{children:"Approve Changes"}))]}))]})):null}})]}))};export{h as AuditLogSandbox};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as i,Fragment as n}from"react/jsx-runtime";import{useState as o,useEffect as l}from"react";import{AuditLogPanel as r}from"./AuditLogPanel.js";import{ShieldAlert as a,History as d,MinusSquare as c,PlusSquare as s,Loader2 as p}from"lucide-react";var u=function(n){var o=n.data,l=n.onClose;return t("div",e({style:{padding:"16px",backgroundColor:"#1e293b",borderRadius:"8px",color:"#f8fafc"}},{children:[t("div",e({style:{display:"flex",justifyContent:"space-between",marginBottom:"12px"}},{children:[i("h3",e({style:{margin:0,color:"#38bdf8",fontSize:"14px"}},{children:"Advanced Payload Diff Viewer"})),i("button",e({onClick:l,style:{background:"#ef4444",color:"white",border:"none",borderRadius:"4px",padding:"4px 12px",cursor:"pointer",fontSize:"12px",fontWeight:"bold"}},{children:"Close View"}))]})),t("div",e({style:{display:"flex",gap:"16px"}},{children:[t("div",e({style:{flex:1,padding:"12px",background:"#0f172a",borderRadius:"6px"}},{children:[i("span",e({style:{color:"#ef4444",fontWeight:"bold",fontSize:"12px"}},{children:"- Removed:"})),i("pre",e({style:{margin:"8px 0 0 0",fontSize:"11px",whiteSpace:"pre-wrap"}},{children:JSON.stringify(null==o?void 0:o.previousPayload,null,2)}))]})),t("div",e({style:{flex:1,padding:"12px",background:"#0f172a",borderRadius:"6px"}},{children:[i("span",e({style:{color:"#22c55e",fontWeight:"bold",fontSize:"12px"}},{children:"+ Added:"})),i("pre",e({style:{margin:"8px 0 0 0",fontSize:"11px",whiteSpace:"pre-wrap"}},{children:JSON.stringify(null==o?void 0:o.newPayload,null,2)}))]}))]}))]}))},f=[{id:"search",type:"text",label:"Global Search",hint:"Searches titles and subtitles"},{id:"analysts",type:"multi-select",label:"Modified By",options:[{label:"Nicoletta",value:"nicoletta"},{label:"System Admin",value:"admin"}]},{id:"impact",type:"range",label:"Impact Percentage",min:-100,max:100}],g=function(){var g=o(!0),m=g[0],y=g[1],h=o([]),b=h[0],x=h[1],v=o({}),S=v[0],_=v[1];l(function(){x([{change_log_id:"15d271bf-9d0d-4596-9025-fd44ef7db86d",external_resource_id:"12345678910",change:"external summary2",changeTitle:"Claim done2",modifiedbyemail:"example1@techolution.com",modifiedbyname:"Hitesh",created_at:"2026-05-20T12:49:18.144000Z",isLive:!1,metadata:{property_value:"2"},change_log_impact:0,change_log_impact_percentage:-100,parent_changelog_id:null,root_changelog_id:null,level:1,change_log_metrics:null},{id:"log-2",actionType:"approved",title:"[Scenario 2] Simple Approved Row",subtitle:"System",timestamp:"09:15 AM"},{id:"log-3",actionType:"ai_suggested",title:"Hidden Title",timestamp:"11:00 AM"},{id:"log-4",actionType:"document_edited",title:"[Scenario 4] Custom RHS Action",subtitle:"Look at the right side!",timestamp:"Yesterday"},{id:"log-5",actionType:"simple_code_diff",title:"[Scenario 5] Simple Body Override",subtitle:"System Webhook",timestamp:"June 19"},{id:"log-6",actionType:"frankenstein",title:"Hidden",timestamp:"Hidden",renderHeaderLeft:function(){return t("div",e({style:{display:"flex",gap:"8px",color:"#4338ca",fontWeight:"bold",alignItems:"center"}},{children:[i(d,{size:18})," ",i("span",{children:"[Scenario 6] Frankenstein Row"})]}))},renderHeaderRight:function(){return i("span",e({style:{fontSize:"11px",background:"#e0e7ff",color:"#3730a3",padding:"2px 8px",borderRadius:"12px"}},{children:"System Auto"}))},renderExpandedBody:function(){return i("div",e({style:{borderLeft:"3px solid #4338ca",paddingLeft:"12px",color:"#475569",fontSize:"13px"}},{children:"Batch sync completed across all shards successfully."}))}},{id:"log-7",actionType:"CRITICAL",title:"[Scenario 7] Dynamic Styling Target",subtitle:"Risk Engine",timestamp:"June 18",impact:{severity:"High",description:"This row was styled red globally because actionType === CRITICAL."}},{id:"log-8",actionType:"component_injection",title:"[Scenario 8] Component Injection",subtitle:"Passing helpers down",timestamp:"2:30 PM",apiData:{previousPayload:{url:"v1.api.com"},newPayload:{url:"v2.api.com"}}},{id:"log-9",actionType:"dynamic_fetch",title:"[Scenario 9] Dynamic API Fetch",subtitle:"Click to simulate a live API call!",timestamp:"Just now"}])},[]);return t("div",e({style:{padding:"40px",fontFamily:"system-ui",backgroundColor:"#f1f5f9",minHeight:"100vh"}},{children:[i("button",e({onClick:function(){return y(!0)},style:{padding:"12px 24px",background:"#0f172a",color:"white",borderRadius:"8px",cursor:"pointer",border:"none",fontWeight:"bold"}},{children:"Open Master Panel"})),i(r,{isOpen:m,onClose:function(){return y(!1)},title:"The Master Sandbox",logs:b,dataSourceMode:"external",filters:f,autoFilter:!0,showApplyButton:!0,labels:{emptyState:"No logs found.",loadingMore:"Fetching..."},filterLabels:{title:"Super Search",applyBtn:"Apply Now",clearBtn:"Reset"},styles:{filterSection:{border:"2px solid #e2e8f0",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},filterApplyBtn:{backgroundColor:"#3b82f6"}},onRowClick:function(t,i){console.log("this is row click"),"dynamic_fetch"!==t.actionType||i.isExpanded||S[t.id]||(_(function(i){var n;return e(e({},i),((n={})[t.id]={loading:!0},n))}),setTimeout(function(){_(function(i){var n;return e(e({},i),((n={})[t.id]={loading:!1,data:{newPayload:{message:"Fetched from Server!"}}},n))})},1500))},itemConfig:{getStyle:function(e){return"CRITICAL"===e.actionType?{borderLeft:"4px solid #dc2626",backgroundColor:"#fef2f2"}:{}},getIconBg:function(e){return"CRITICAL"===e.actionType?"#dc2626":void 0},getIcon:function(e){return"CRITICAL"===e.actionType?i(a,{size:16,color:"white"}):void 0}},renderItemHeaderLeft:function(o){return"15d271bf-9d0d-4596-9025-fd44ef7db86d"===o.change_log_id?t(n,{children:[i("div",e({style:{backgroundColor:"blue"}},{children:i(d,{})})),t("div",{children:[i("div",{children:o.title}),i("div",{children:o.changeTitle})]})]}):null},renderItemHeaderRight:function(n,o,l){return t("div",e({style:{display:"flex",alignItems:"center",gap:"16px"}},{children:[i("span",e({style:{fontSize:"12px",color:"#64748b"}},{children:n.timestamp})),i("button",e({onClick:function(e){e.stopPropagation(),l.toggle()},style:{background:"transparent",border:"none",cursor:"pointer",padding:0,display:"flex"}},{children:o?i(c,{size:20,color:"#ef4444"}):i(s,{size:20,color:"#22c55e"})}))]}))},renderItemExpandedBody:function(n,o){switch(n.actionType){case"simple_code_diff":return t("div",e({style:{backgroundColor:"#1e293b",padding:"16px",borderRadius:"8px",color:"#e2e8f0",fontFamily:"monospace",fontSize:"12px"}},{children:[i("div",e({style:{color:"#ef4444",textDecoration:"line-through"}},{children:'- "status": "draft"'})),i("div",e({style:{color:"#22c55e"}},{children:'+ "status": "published"'}))]}));case"component_injection":return i(u,{data:n.apiData,onClose:o.collapse});case"dynamic_fetch":var l=S[n.id];return!l||l.loading?t("div",e({style:{padding:"24px",textAlign:"center",color:"#64748b",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},{children:[i(p,{size:24,className:"skeletonPulse"}),i("span",e({style:{fontSize:"12px"}},{children:"Fetching live data..."}))]})):i(u,{data:l.data,onClose:o.collapse});default:return null}}})]}))};export{g as AuditLogSandbox};
2
2
  //# sourceMappingURL=AuditLogSandBox.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as l,jsxs as a,Fragment as t}from"react/jsx-runtime";import{useState as i}from"react";import{ChevronUp as n,ChevronDown as o}from"lucide-react";import{TruncatedText as r}from"./CommonUI.js";import c from"./AuditLogPanel.module.css.js";var d=function(d){var s=d.data,m=d.globalClasses,p=d.globalStyles,g=d.globalIcons,v=i(s.isInitiallyExpanded||!1),u=v[0],x=v[1],h={isExpanded:u,expand:function(){return x(!0)},collapse:function(){return x(!1)},toggle:function(){return x(!u)}},f=(null==g?void 0:g.chevronUp)||l(n,{size:18}),b=(null==g?void 0:g.chevronDown)||l(o,{size:18});return a("div",e({className:"".concat(c.compCard," ").concat((null==m?void 0:m.compCard)||""," ").concat(s.className||""),style:e(e({},null==p?void 0:p.compCard),s.style)},{children:[a("div",e({onClick:h.toggle,className:c.compHeader},{children:[l("div",e({className:c.compTitle},{children:s.renderHeaderLeft?s.renderHeaderLeft():s.title||"Deviation Summary"})),l("div",e({className:c.compIcon},{children:s.renderHeaderRight?s.renderHeaderRight(u,h):u?f:b}))]})),u&&l("div",e({className:c.compBody},{children:s.renderExpandedBody?s.renderExpandedBody(h):a(t,{children:[s.latestText&&a("div",{children:[l("div",e({className:c.compSectionLabel},{children:s.latestTextLabel||"Latest Text"})),l("div",e({className:c.compLatestText},{children:l(r,{content:s.latestText,config:s.truncation,globalClasses:m,globalStyles:p})}))]}),s.originalText&&a("div",e({style:{marginTop:"12px"}},{children:[l("div",e({className:c.compSectionLabel},{children:s.originalTextLabel||"Original Text"})),l("div",e({className:c.compOriginalText},{children:l(r,{content:s.originalText,config:s.truncation,globalClasses:m,globalStyles:p})}))]}))]})}))]}))};export{d as ComparisonSummaryCard};
1
+ import{__assign as l}from"../../_virtual/_tslib.js";import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useState as i}from"react";import{ChevronUp as o,ChevronDown as c}from"lucide-react";import{TruncatedText as t}from"./CommonUI.js";import n from"./AuditLogPanel.module.css.js";var s=function(s){var r=s.data,m=s.globalClasses,d=s.globalStyles,v=s.globalIcons,p=i(r.isInitiallyExpanded||!1),u=p[0],g=p[1],h=(null==v?void 0:v.chevronUp)||e(o,{size:18}),b=(null==v?void 0:v.chevronDown)||e(c,{size:18});return a("div",l({className:"".concat(n.compCard," ").concat((null==m?void 0:m.compCard)||""," ").concat(r.className||""),style:l(l({},null==d?void 0:d.compCard),r.style)},{children:[a("div",l({onClick:function(){return g(!u)},className:n.compHeader},{children:[e("div",l({className:n.compTitle},{children:r.title||"Deviation Summary"})),e("div",l({className:n.compIcon},{children:u?h:b}))]})),u&&a("div",l({className:n.compBody},{children:[a("div",{children:[e("div",l({className:n.compSectionLabel},{children:r.latestTextLabel||"Latest Text"})),e("div",l({className:n.compLatestText},{children:e(t,{content:r.latestText,config:r.truncation,globalClasses:m,globalStyles:d})}))]}),a("div",{children:[e("div",l({className:n.compSectionLabel},{children:r.originalTextLabel||"Original Text"})),e("div",l({className:n.compOriginalText},{children:e(t,{content:r.originalText,config:r.truncation,globalClasses:m,globalStyles:d})}))]})]}))]}))};export{s as ComparisonSummaryCard};
2
2
  //# sourceMappingURL=ComparisonSummaryCard.js.map