@viswa-test/audit-log 0.0.4 → 0.0.5
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.
- package/dist/cjs/components/AuditLogPanel/AuditLogPanel.js +1 -1
- package/dist/cjs/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
- package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js +2 -0
- package/dist/cjs/components/AuditLogPanel/AuditLogPanelItem.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/AuditLogSandBox.js +1 -1
- package/dist/cjs/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
- package/dist/cjs/components/AuditLogPanel/FilterSection.js +1 -1
- package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +1 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +2 -0
- package/dist/cjs/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/components/AuditLogPanel/AuditLogPanel.js +1 -1
- package/dist/components/AuditLogPanel/AuditLogPanel.module.css.js +1 -1
- package/dist/components/AuditLogPanel/AuditLogPanelItem.js +2 -0
- package/dist/components/AuditLogPanel/AuditLogPanelItem.js.map +1 -0
- package/dist/components/AuditLogPanel/AuditLogSandBox.js +1 -1
- package/dist/components/AuditLogPanel/ComparisonSummaryCard.js +1 -1
- package/dist/components/AuditLogPanel/FilterSection.js +1 -1
- package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js +2 -0
- package/dist/components/AuditLogPanel/Services/AuditLogPanelAdapter.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelData.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelFilters.js.map +1 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js +2 -0
- package/dist/components/AuditLogPanel/Services/useAuditLogPanelScroll.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts +3 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanel.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/AuditLogPanel.types.d.ts +208 -0
- package/dist/types/components/AuditLogPanel/AuditLogPanel.types.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/AuditLogPanelItem.d.ts +18 -0
- package/dist/types/components/AuditLogPanel/AuditLogPanelItem.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/AuditLogSandBox.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/CommonUI.d.ts +2 -2
- package/dist/types/components/AuditLogPanel/CommonUI.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts +1 -1
- package/dist/types/components/AuditLogPanel/ComparisonSummaryCard.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/Constants/constants.d.ts +6 -0
- package/dist/types/components/AuditLogPanel/Constants/constants.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/FilterSection.d.ts +1 -1
- package/dist/types/components/AuditLogPanel/FilterSection.d.ts.map +1 -1
- package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts +4 -0
- package/dist/types/components/AuditLogPanel/Services/AuditLogPanelAdapter.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelData.d.ts +9 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelData.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts +9 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelDistinctValues.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts +37 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelFilters.d.ts.map +1 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts +3 -0
- package/dist/types/components/AuditLogPanel/Services/useAuditLogPanelScroll.d.ts.map +1 -0
- package/package.json +6 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),t=require("react"),s=require("lucide-react"),a=require("./AuditLogPanelItem.js"),l=require("./ComparisonSummaryCard.js"),n=require("./FilterSection.js"),r=require("./Services/useAuditLogPanelData.js"),o=require("./Services/useAuditLogPanelDistinctValues.js"),d=require("./Services/useAuditLogPanelFilters.js"),c=require("./Services/useAuditLogPanelScroll.js"),u=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 m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=m(t);exports.AuditLogPanel=function(m){var p=m.isOpen,v=m.onClose,h=m.title,x=void 0===h?"Redline History":h,j=m.subtitle,y=m.emptyState,_=void 0===y?"No history available.":y,L=m.logs,C=m.getData,A=m.distinctValuesApi,N=m.loading,S=void 0!==N&&N,q=m.loadingMore,I=void 0!==q&&q,b=m.hasMore,F=void 0!==b&&b,M=m.onLoadMore,k=m.comparisonContext,P=m.showComparisonCard,B=m.filters,w=void 0===B?[]:B,H=m.filterValues,D=m.onFilterChange,R=m.autoFilter,T=void 0!==R&&R,O=m.filterDisplayMode,V=void 0===O?"popup":O,E=m.showApplyButton,z=void 0===E||E,Q=m.onRowClick,W=m.itemConfig,X=m.renderCustomFilterSection,G=m.renderHeaderControls,J=m.renderCustomLogEntry,K=m.renderItemHeaderLeft,U=m.renderItemHeaderRight,Y=m.renderItemExpandedBody,Z=m.globalIcons,$=m.classNames,ee=m.styles,ie=m.labels,te=m.dataSourceMode,se=m.query,ae=m.truncationConfig,le="external"===te,ne=o.useAuditLogDistinctValues(A,null==C?void 0:C.configId,null==se?void 0:se.externalResourceId,p).dynamicOptionsMap,re=d.useAuditLogFilters(w,H,D,ne,se),oe=re.activeFilters,de=re.handleFilterChange,ce=re.enrichedFilters,ue=re.apiQuery,ge=re.showApplyButton,me=re.filterLabels,fe=r.useAuditLogsData(C,oe,p,le,ie,ue,ae),pe=fe.apiLogs,ve=fe.apiLoading,he=fe.apiLoadingMore,xe=fe.apiHasMore,je=fe.fetchLogs,ye=le?L||[]:pe,_e=le?S:ve,Le=le?I:he,Ce=le?F:xe,Ae=t.useMemo(function(){return T&&le&&0!==ce.length?ye.filter(function(e){return ce.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))})}):ye},[ye,oe,ce,T,le]),Ne=t.useMemo(function(){if(P){if(le&&((null==k?void 0:k.latestText)||(null==k?void 0:k.originalText)))return k;if(!le&&ye&&ye.length>0){var i=(null==k?void 0:k.truncation)||ae,t=u.extractComparisonContext(ye,ie,i);return t?e.__assign(e.__assign({},t),k):void 0}}},[k,le,L,ie,ae,ye]),Se=c.useAuditLogScroll(p,Ce,Le,function(){return le&&M?M():!le&&je(!1)},Ae.length),qe=void 0!==P?P:!!Ne,Ie=z||ge;return p?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(p?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})),j&&i.jsx("div",e.__assign({className:g.default.subtitle},{children:j}))]}),i.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[X?X():ce.length>0?i.jsx(n.FilterSection,{configs:ce,values:oe,onChange:de,displayMode:V,showApplyButton:Ie,filterLabels:me,classNames:$,styles:ee}):null,i.jsx("button",e.__assign({onClick:v,className:g.default.closeBtn},{children:(null==Z?void 0:Z.close)||i.jsx(s.X,{size:20})}))]}))]})),i.jsxs("div",e.__assign({ref:Se,className:g.default.scrollArea},{children:[G?G():qe&&Ne?i.jsx(l.ComparisonSummaryCard,{data:Ne,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(t){return i.jsx("div",e.__assign({className:g.default.itemWrapper},{children:i.jsxs("div",e.__assign({className:"".concat(g.default.itemHeader," ").concat(g.default.skeletonPulse)},{children:[i.jsx("div",e.__assign({className:g.default.itemLeft},{children:i.jsxs("div",{children:[i.jsx("div",{className:"".concat(g.default.skeletonBase," ").concat(g.default.skeletonLinePrimary)}),i.jsx("div",{className:"".concat(g.default.skeletonBase," ").concat(g.default.skeletonLineSecondary)})]})})),i.jsx("div",e.__assign({className:g.default.itemRight},{children:i.jsx("div",{className:"".concat(g.default.skeletonBase," ").concat(g.default.skeletonLineTimestamp)})}))]}))}),t)})})):0===Ae.length?i.jsx("div",e.__assign({className:g.default.emptyState},{children:_})):Ae.map(function(e,t){return i.jsx(f.default.Fragment,{children:J?J(e,t):i.jsx(a.AuditLogItem,{log:e,globalIcons:Z,onRowClick:Q,itemConfig:W,renderItemHeaderLeft:K,renderItemHeaderRight:U,renderItemExpandedBody:Y})},e.id)}),Le&&i.jsx("div",e.__assign({className:g.default.loadingText},{children:(null==ie?void 0:ie.loadingMore)||"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",
|
|
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",skeletonBase:"AuditLogPanel-module_skeletonBase__1JdeF",skeletonCircle:"AuditLogPanel-module_skeletonCircle__LHVyi",skeletonLinePrimary:"AuditLogPanel-module_skeletonLinePrimary__54f-f",skeletonLineSecondary:"AuditLogPanel-module_skeletonLineSecondary__stC65",skeletonLineTimestamp:"AuditLogPanel-module_skeletonLineTimestamp__E-9In",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"};
|
|
2
2
|
//# sourceMappingURL=AuditLogPanel.module.css.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),s=require("react"),i=require("lucide-react"),a=require("./CommonUI.js"),n=require("./AuditLogPanel.module.css.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(s),d={AI_SUGGESTED:{icon:t.jsx(i.Sparkles,{size:14,color:"#9333ea"}),bg:"#f3e8ff"},ITERATED:{icon:t.jsx(i.RefreshCcw,{size:14,color:"#2563eb"}),bg:"#dbeafe"},MODIFIED:{icon:t.jsx(i.PenLine,{size:14,color:"#f59e0b"}),bg:"#fef3c7"},APPROVED:{icon:t.jsx(i.CheckCircle2,{size:16,color:"#16a34a"}),bg:"#dcfce7"},ACCEPTED:{icon:t.jsx(i.CheckCircle2,{size:16,color:"#16a34a"}),bg:"#dcfce7"},REJECTED:{icon:t.jsx(i.XCircle,{size:16,color:"#dc2626"}),bg:"#fee2e2"},REVERTED:{icon:t.jsx(i.RotateCcw,{size:14,color:"#ea580c"}),bg:"#ffedd5"},REINSTATE:{icon:t.jsx(i.RotateCw,{size:14,color:"#059669"}),bg:"#d1fae5"},RESTORE:{icon:t.jsx(i.History,{size:14,color:"#4f46e5"}),bg:"#e0e7ff"}};exports.AuditLogItem=function(l){var o,r,u,g,m,f=l.log,p=l.globalIcons,x=l.globalClasses,v=l.globalStyles,h=l.renderItemHeaderLeft,_=l.renderItemHeaderRight,j=l.renderItemExpandedBody,b=l.onRowClick,C=l.itemConfig,E=s.useState(f.isInitiallyExpanded||!1),y=E[0],N=E[1],T={isExpanded:y,expand:function(){return N(!0)},collapse:function(){return N(!1)},toggle:function(){return N(!y)}},B=h?h(f):null,k=_?_(f,y,T):null,I=j?j(f,T):null,R=Boolean(f.renderExpandedBody||f.customExpandedContent),D=Boolean(f.tags&&f.tags.length>0||f.impact||f.contentBlocks&&f.contentBlocks.length>0),H=R||Boolean(I)||D,z=function(e){if(!e)return{icon:t.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"};var s=e.toUpperCase().trim();return d[s]||{icon:t.jsx("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"}}(f.actionType),S=(null===(o=null==C?void 0:C.getIcon)||void 0===o?void 0:o.call(C,f))||f.icon||(null===(r=null==p?void 0:p.actionTypes)||void 0===r?void 0:r[f.actionType])||z.icon,L=(null===(u=null==C?void 0:C.getIconBg)||void 0===u?void 0:u.call(C,f))||f.iconBgColor||z.bg,A=(null===(g=null==C?void 0:C.getStyle)||void 0===g?void 0:g.call(C,f))||{};return t.jsxs("div",e.__assign({className:"".concat(n.default.itemWrapper," ").concat((null==x?void 0:x.itemWrapper)||""," ").concat(f.className||""),style:e.__assign(e.__assign(e.__assign({},null==v?void 0:v.itemWrapper),f.style),A)},{children:[t.jsxs("div",e.__assign({onClick:function(e){e.target.closest("button, a, input, select")||(b&&b(f,T),H&&N(!y))},className:"".concat(n.default.itemHeader," ").concat(H?n.default.itemHeaderClickable:n.default.itemHeaderDefault)},{children:[t.jsx("div",e.__assign({className:n.default.itemLeft},{children:f.renderHeaderLeft?f.renderHeaderLeft():B||t.jsxs(t.Fragment,{children:[t.jsx("div",e.__assign({className:n.default.itemIconWrapper,style:{backgroundColor:L}},{children:S})),t.jsxs("div",{children:[t.jsx("div",e.__assign({className:n.default.itemTitle},{children:f.title})),t.jsx("div",e.__assign({className:n.default.itemSubtitle},{children:f.subtitle}))]})]})})),t.jsx("div",e.__assign({className:n.default.itemRight},{children:f.renderHeaderRight?f.renderHeaderRight(y,T):k||t.jsxs(t.Fragment,{children:[t.jsx("span",e.__assign({className:n.default.itemTimestamp},{children:f.timestamp})),H&&t.jsx("div",e.__assign({className:n.default.itemChevron},{children:y?(null==p?void 0:p.chevronUp)||t.jsx(i.ChevronUp,{size:16}):(null==p?void 0:p.chevronDown)||t.jsx(i.ChevronDown,{size:16})}))]})}))]})),y&&H&&t.jsx("div",e.__assign({className:n.default.itemExpanded},{children:f.renderExpandedBody?f.renderExpandedBody(T):I||(f.customExpandedContent?f.customExpandedContent:t.jsxs(t.Fragment,{children:[f.tags&&f.tags.length>0&&t.jsx("div",{children:t.jsx("div",e.__assign({className:n.default.tagsChip},{children:f.tags.map(function(s,i){return t.jsxs(c.default.Fragment,{children:[t.jsx("span",{children:s}),i<f.tags.length-1&&t.jsx("span",e.__assign({className:n.default.tagSeparator},{children:"•"}))]},i)})}))}),(f.impact||f.contentBlocks&&f.contentBlocks.length>0)&&t.jsxs("div",e.__assign({className:n.default.impactContainer},{children:[f.impact&&f.impact.severity&&f.impact.description&&t.jsxs("div",e.__assign({className:f.impact.className,style:f.impact.style},{children:[t.jsxs("div",e.__assign({className:n.default.impactHeader},{children:[t.jsx("span",e.__assign({className:n.default.impactLabel},{children:f.impact.label||"Impact"})),f.impact.severity&&t.jsx("span",e.__assign({className:"".concat(n.default.severityBadge," ").concat("High"===f.impact.severity?n.default.severityHigh:n.default.severityOther)},{children:f.impact.severity}))]})),t.jsx("div",e.__assign({className:n.default.impactDescription},{children:t.jsx(a.TruncatedText,{content:f.impact.description,config:f.impact.truncation})}))]})),f.impact&&f.impact.severity&&f.impact.description&&f.contentBlocks&&f.contentBlocks.length>0&&t.jsx("div",{className:n.default.divider}),null===(m=f.contentBlocks)||void 0===m?void 0:m.map(function(s,i){return t.jsxs("div",e.__assign({className:n.default.contentBlock},{children:[t.jsx("span",e.__assign({className:n.default.contentBlockLabel},{children:s.label})),t.jsx("div",e.__assign({className:n.default.contentBlockText},{children:t.jsx(a.TruncatedText,{content:s.content,config:s.truncation})}))]}),i)})]}))]}))}))]}))},exports.DEFAULT_ACTION_CONFIGS=d;
|
|
2
|
+
//# sourceMappingURL=AuditLogPanelItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogPanelItem.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"),
|
|
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,showComparisonCard:!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}})]}))};
|
|
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"),
|
|
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})}))]}))]})}))]}))};
|
|
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"),
|
|
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))};
|
|
2
2
|
//# sourceMappingURL=FilterSection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.extractComparisonContext=function(a,t,e){if(a&&0!==a.length){var r=a.map(function(a){return a.rawPayload?a.rawPayload:a}),n=r[0],o=r[r.length-1],i=function(a,t){var e,r,n,o=null===(e=null==a?void 0:a.changelog_metadata)||void 0===e?void 0:e[0];if(!o)return"N/A";var i=o.property_name||"Property",l=(null===(r=o.property_value)||void 0===r?void 0:r[t])||{};if(void 0!==l[i])return l[i];var d=Object.keys(l).find(function(a){return a.toLowerCase()===i.toLowerCase()});return d&&void 0!==l[d]?l[d]:null!==(n=Object.values(l)[0])&&void 0!==n?n:"N/A"},l=i(n,"current_value"),d=i(o,"previous_value");if("N/A"!==l||"N/A"!==d)return{title:(null==t?void 0:t.comparisonTitle)||"Final Approved Text Vs. Original",latestTextLabel:(null==t?void 0:t.comparisonLatestLabel)||"Final Approved:",originalTextLabel:(null==t?void 0:t.comparisonOriginalLabel)||"Original:",latestText:String(l),originalText:String(d),isInitiallyExpanded:!0,truncation:e,rawPayload:r}}},exports.transformBackendLogs=function(a,t,e){if(!a||!Array.isArray(a))return[];var r=(null==t?void 0:t.changedToSuffix)||"Changed To:",n=(null==t?void 0:t.fromSuffix)||"From:";return a.map(function(a){var t,o,i,l,d=new Set,u="",v=[];return a.changelog_metadata&&Array.isArray(a.changelog_metadata)&&a.changelog_metadata.forEach(function(a){var t,o,i,c;(null===(t=a.metadata)||void 0===t?void 0:t.tags)&&Array.isArray(a.metadata.tags)&&a.metadata.tags.forEach(function(a){return d.add(a)}),(null===(o=a.metadata)||void 0===o?void 0:o.severity)&&!u&&(u=a.metadata.severity,l=a.metadata.impact||l);var s=a.property_name||"Property",p=(null===(i=a.property_value)||void 0===i?void 0:i.previous_value)||{},g=(null===(c=a.property_value)||void 0===c?void 0:c.current_value)||{},m=function(a){var t;if(void 0!==a[s])return a[s];var e=Object.keys(a).find(function(a){return a.toLowerCase()===s.toLowerCase()});return e&&void 0!==a[e]?a[e]:null!==(t=Object.values(a)[0])&&void 0!==t?t:"None"},f=m(p),y=m(g);v.push({label:"".concat(r),content:String(y),truncation:e}),v.push({label:"".concat(n),content:String(f),truncation:e})}),{id:a.change_log_id,actionType:(null===(i=null===(o=null===(t=null==a?void 0:a.changelog_metadata)||void 0===t?void 0:t[0])||void 0===o?void 0:o.metadata)||void 0===i?void 0:i.action_type)||"UPDATE",title:a.changeTitle,subtitle:a.modifiedbyname,timestamp:a.created_at?new Date(a.created_at).toLocaleString():"",tags:Array.from(d),impact:{severity:u,description:l,truncation:e},contentBlocks:v,rawPayload:a}})};
|
|
2
|
+
//# sourceMappingURL=AuditLogPanelAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogPanelAdapter.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"),r=require("./AuditLogPanelAdapter.js");exports.useAuditLogsData=function(n,i,a,s,o,u,c){var d=t.useState([]),l=d[0],f=d[1],v=t.useState(!1),_=v[0],g=v[1],p=t.useState(!1),b=p[0],h=p[1],S=t.useState(!0),j=S[0],y=S[1],L=t.useState(),O=L[0],m=L[1],A=t.useRef(!1),x=t.useCallback(function(t,i){return void 0===t&&(t=!1),e.__awaiter(void 0,void 0,void 0,function(){var a,d,l,v,_,p,b,S,j,L,x,P,q;return e.__generator(this,function(z){switch(z.label){case 0:if(!n||s)return[2];if(A.current)return[2];A.current=!0,t?g(!0):h(!0),z.label=1;case 1:return z.trys.push([1,4,5,6]),d=(a=u||{}).pageSize,l=e.__rest(a,["pageSize"]),v=Object.fromEntries(Object.entries(l).filter(function(e){return e[0],void 0!==e[1]})),_={configId:n.configId,pageSize:d||10,cursor:t?void 0:null!=i?i:O,filters:e.__assign(e.__assign({},n.baseQuery),v)},p=Object.fromEntries(Object.entries(_).filter(function(e){return e[0],void 0!==e[1]})),[4,fetch("".concat(n.baseUrl).concat(n.endpoint),{method:n.method||"POST",headers:e.__assign({"Content-Type":"application/json"},n.headers),body:JSON.stringify(p)})];case 2:return[4,z.sent().json()];case 3:return b=z.sent(),S=(null===(x=null==b?void 0:b.data)||void 0===x?void 0:x.items)||[],j=r.transformBackendLogs(S,o,c),f(function(r){return t?j:e.__spreadArray(e.__spreadArray([],r,!0),j,!0)}),m(null===(P=null==b?void 0:b.data)||void 0===P?void 0:P.nextCursor),y(!!(null===(q=null==b?void 0:b.data)||void 0===q?void 0:q.hasNext)),[3,6];case 4:return L=z.sent(),console.error("AuditLogPanel: Failed to fetch logs",L),[3,6];case 5:return A.current=!1,t?g(!1):h(!1),[7];case 6:return[2]}})})},[n,i,O,s,o,u]);return t.useEffect(function(){a&&!s&&n&&x(!0)},[a,i,s]),{apiLogs:l,apiLoading:_,apiLoadingMore:b,apiHasMore:j,fetchLogs:x}};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelData.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.useAuditLogDistinctValues=function(n,a,r,i){void 0===r&&(r=[]);var s=t.useState({}),o=s[0],l=s[1],c=t.useState(!1),u=c[0],d=c[1],_=r.join(",");return t.useEffect(function(){var t=(null==n?void 0:n.configId)||a;if(i&&(null==n?void 0:n.baseUrl)&&(null==n?void 0:n.endpoint)&&t){e.__awaiter(void 0,void 0,void 0,function(){var a,r,i,s,o,c,u,p;return e.__generator(this,function(v){switch(v.label){case 0:d(!0),v.label=1;case 1:return v.trys.push([1,4,5,6]),a=n.baseUrl.replace(/\/$/,""),r=n.endpoint.replace(/^\/|\/$/g,""),i=new URL("".concat(a,"/").concat(r,"/").concat(t)),(s=_?_.split(","):[]).length>0&&s[0]&&i.searchParams.append("external_resource_id",s[0]),[4,fetch(i.toString(),{method:"GET",headers:e.__assign({"Content-Type":"application/json"},n.headers)})];case 2:return[4,v.sent().json()];case 3:return o=v.sent(),c=(null==o?void 0:o.data)||{},u={},Array.isArray(c.change_made_title)&&(u.changeTitles=c.change_made_title.map(function(e){return{label:e,value:e}})),c.change_made_by_user&&"object"==typeof c.change_made_by_user&&(u.analysts=Object.entries(c.change_made_by_user).map(function(e){return{label:e[0],value:e[1]}})),l(u),[3,6];case 4:return p=v.sent(),console.error("AuditLogPanel: Failed to fetch distinct values",p),[3,6];case 5:return d(!1),[7];case 6:return[2]}})})}},[i,null==n?void 0:n.baseUrl,null==n?void 0:n.endpoint,null==n?void 0:n.configId,a,_]),{dynamicOptionsMap:o,loading:u}};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelDistinctValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelDistinctValues.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"),i={latest:"latestFirst",oldest:"oldestFirst",impactHighToLow:"impactPercentageHighToLow",impactLowToHigh:"impactPercentageLowToHigh"};exports.useAuditLogFilters=function(l,a,o,n,s){var r,d=void 0!==a,c=t.useState({}),u=c[0],p=c[1],h=d?a:u,v=t.useMemo(function(){var t,i,a,o,s=!Array.isArray(l),r=s?null==l?void 0:l.config:void 0,d=s?null==l?void 0:l.items:l,c=s&&(null==l?void 0:l.labels)?l.labels:{},u=s&&(null==l?void 0:l.impactRangeLimits)?l.impactRangeLimits:{min:-100,max:100};if(d)return d.map(function(t){return t.dynamicOptionKey&&n[t.dynamicOptionKey]?e.__assign(e.__assign({},t),{options:n[t.dynamicOptionKey]}):t});var p=r||{},h=[];if(!1!==p.showSearch&&h.push({id:"search",type:"text",label:c.searchLabel||"Global Search",placeholder:c.searchPlaceholder,hint:c.searchHint}),!1!==p.showSort){var v=[];!1!==(null===(t=p.sortOptions)||void 0===t?void 0:t.latest)&&v.push({label:c.sortLatestFirst||"Latest First",value:"latest"}),!1!==(null===(i=p.sortOptions)||void 0===i?void 0:i.oldest)&&v.push({label:c.sortOldestFirst||"Oldest First",value:"oldest"}),!1!==(null===(a=p.sortOptions)||void 0===a?void 0:a.impactHighToLow)&&v.push({label:c.sortImpactHighToLow||"Impact: High to Low",value:"impactHighToLow"}),!1!==(null===(o=p.sortOptions)||void 0===o?void 0:o.impactLowToHigh)&&v.push({label:c.sortImpactLowToHigh||"Impact: Low to High",value:"impactLowToHigh"}),h.push({id:"sort",type:"select",label:c.sortLabel||"Sort Order",hint:c.sortHint,options:v})}return!1!==p.showAnalystFilter&&h.push({id:"analysts",type:"multi-select",label:c.multiSelectLabel||"Modified By",hint:c.analystsHint,dynamicOptionKey:"analysts",placeholder:c.searchPlaceholder}),!1!==p.showChangeTitleFilter&&h.push({id:"changeTitles",type:"multi-select",label:c.changeTitleLabel||"Change Title",hint:c.changeTitleHint,dynamicOptionKey:"changeTitles",placeholder:c.searchPlaceholder}),!1!==p.showDateFilter&&h.push({id:"dateFilter",type:"date-range",label:c.dateLabel||"Date Range",hint:c.dateHint}),!1!==p.showImpactPercentage&&h.push({id:"impactFilter",type:"impact-range",label:c.impactPercentageTitle||"Impact Score",min:u.min,max:u.max,hint:c.impactHintLabel}),h.map(function(t){return t.dynamicOptionKey&&n[t.dynamicOptionKey]?e.__assign(e.__assign({},t),{options:n[t.dynamicOptionKey]}):t})},[l,n]),m=t.useMemo(function(){var e,t,l,a,o,n,r,d,c,u,p,v;return{externalResourceId:null!==(e=null==s?void 0:s.externalResourceId)&&void 0!==e?e:[],pageSize:null!==(t=null==s?void 0:s.paginationLimit)&&void 0!==t?t:10,userEmails:(null===(l=h.analysts)||void 0===l?void 0:l.length)?h.analysts:void 0,changeTitle:(null===(a=h.changeTitles)||void 0===a?void 0:a.length)?h.changeTitles:void 0,content:h.search||void 0,modifiedDateStart:null!==(n=null===(o=h.dateFilter)||void 0===o?void 0:o.start)&&void 0!==n?n:void 0,modifiedDateEnd:null!==(d=null===(r=h.dateFilter)||void 0===r?void 0:r.end)&&void 0!==d?d:void 0,orderBy:h.sort?i[h.sort]:"latestFirst",impactPercentageStart:null!==(u=null===(c=h.impactFilter)||void 0===c?void 0:c.min)&&void 0!==u?u:void 0,impactPercentageEnd:null!==(v=null===(p=h.impactFilter)||void 0===p?void 0:p.max)&&void 0!==v?v:void 0}},[s,h]),g=!Array.isArray(l)&&(null===(r=null==l?void 0:l.config)||void 0===r?void 0:r.showApplyButton),y=Array.isArray(l)?{}:null==l?void 0:l.labels;return{activeFilters:h,handleFilterChange:function(e){d||p(e),o&&o(e)},enrichedFilters:v,apiQuery:m,showApplyButton:g,filterLabels:y}};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelFilters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelFilters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useAuditLogScroll=function(t,r,n,o,u){var c=e.useRef(null);return e.useEffect(function(){return document.body.style.overflow=t?"hidden":"unset",function(){document.body.style.overflow="unset"}},[t]),e.useEffect(function(){var e=c.current;if(e&&t){var u=function(){!n&&r&&e.scrollHeight-e.scrollTop-e.clientHeight<100&&o()};return e.addEventListener("scroll",u),u(),function(){return e.removeEventListener("scroll",u)}}},[r,n,o,u,t]),c};
|
|
2
|
+
//# sourceMappingURL=useAuditLogPanelScroll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuditLogPanelScroll.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/styles.css
CHANGED
|
@@ -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_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}
|
|
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_skeletonBase__1JdeF{background-color:#e2e8f0;border-radius:4px}.AuditLogPanel-module_skeletonCircle__LHVyi{border-radius:50%;flex-shrink:0;height:32px;width:32px}.AuditLogPanel-module_skeletonLinePrimary__54f-f{height:14px;margin-bottom:6px;width:140px}.AuditLogPanel-module_skeletonLineSecondary__stC65{height:12px;width:90px}.AuditLogPanel-module_skeletonLineTimestamp__E-9In{height:12px;width:60px}.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,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as i,Fragment as t,jsx as o}from"react/jsx-runtime";import r,{useMemo as n}from"react";import{X as l}from"lucide-react";import{AuditLogItem as a}from"./AuditLogPanelItem.js";import{ComparisonSummaryCard as s}from"./ComparisonSummaryCard.js";import{FilterSection as c}from"./FilterSection.js";import{useAuditLogsData as d}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 v}from"./Services/AuditLogPanelAdapter.js";import"primereact/resources/themes/lara-light-indigo/theme.css";import"primereact/resources/primereact.min.css";import g from"./AuditLogPanel.module.css.js";var h=function(h){var f=h.isOpen,y=h.onClose,L=h.title,C=void 0===L?"Redline History":L,N=h.subtitle,x=h.emptyState,A=void 0===x?"No history available.":x,S=h.logs,I=h.getData,b=h.distinctValuesApi,j=h.loading,k=void 0!==j&&j,F=h.loadingMore,M=void 0!==F&&F,B=h.hasMore,P=void 0!==B&&B,w=h.onLoadMore,H=h.comparisonContext,R=h.showComparisonCard,T=h.filters,D=void 0===T?[]:T,E=h.filterValues,O=h.onFilterChange,V=h.autoFilter,_=void 0!==V&&V,q=h.filterDisplayMode,z=void 0===q?"popup":q,Q=h.showApplyButton,W=void 0===Q||Q,G=h.onRowClick,J=h.itemConfig,K=h.renderCustomFilterSection,U=h.renderHeaderControls,X=h.renderCustomLogEntry,Y=h.renderItemHeaderLeft,Z=h.renderItemHeaderRight,$=h.renderItemExpandedBody,ee=h.globalIcons,ie=h.classNames,te=h.styles,oe=h.labels,re=h.dataSourceMode,ne=h.query,le=h.truncationConfig,ae="external"===re,se=m(b,null==I?void 0:I.configId,null==ne?void 0:ne.externalResourceId,f).dynamicOptionsMap,ce=u(D,E,O,se,ne),de=ce.activeFilters,me=ce.handleFilterChange,ue=ce.enrichedFilters,pe=ce.apiQuery,ve=ce.showApplyButton,ge=ce.filterLabels,he=d(I,de,f,ae,oe,pe,le),fe=he.apiLogs,ye=he.apiLoading,Le=he.apiLoadingMore,Ce=he.apiHasMore,Ne=he.fetchLogs,xe=ae?S||[]:fe,Ae=ae?k:ye,Se=ae?M:Le,Ie=ae?P:Ce,be=n(function(){return _&&ae&&0!==ue.length?xe.filter(function(e){return ue.every(function(i){var t=de[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))})}):xe},[xe,de,ue,_,ae]),je=n(function(){if(R){if(ae&&((null==H?void 0:H.latestText)||(null==H?void 0:H.originalText)))return H;if(!ae&&xe&&xe.length>0){var i=(null==H?void 0:H.truncation)||le,t=v(xe,oe,i);return t?e(e({},t),H):void 0}}},[H,ae,S,oe,le,xe]),ke=p(f,Ie,Se,function(){return ae&&w?w():!ae&&Ne(!1)},be.length),Fe=void 0!==R?R:!!je,Me=W||ve;return f?i(t,{children:[o("div",{className:"".concat(g.overlay," ").concat((null==ie?void 0:ie.overlay)||""),onClick:y}),i("div",e({className:"".concat(g.panel," ").concat(f?g.panelOpen:g.panelClosed," ").concat((null==ie?void 0:ie.panel)||"")},{children:[i("div",e({className:g.header},{children:[i("div",{children:[o("h2",e({className:g.title},{children:C})),N&&o("div",e({className:g.subtitle},{children:N}))]}),i("div",e({style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[K?K():ue.length>0?o(c,{configs:ue,values:de,onChange:me,displayMode:z,showApplyButton:Me,filterLabels:ge,classNames:ie,styles:te}):null,o("button",e({onClick:y,className:g.closeBtn},{children:(null==ee?void 0:ee.close)||o(l,{size:20})}))]}))]})),i("div",e({ref:ke,className:g.scrollArea},{children:[U?U():Fe&&je?o(s,{data:je,globalIcons:ee}):null,Ae&&0===be.length?o("div",e({style:{display:"flex",flexDirection:"column",gap:"16px"}},{children:[1,2,3,4,5].map(function(t){return o("div",e({className:g.itemWrapper},{children:i("div",e({className:"".concat(g.itemHeader," ").concat(g.skeletonPulse)},{children:[o("div",e({className:g.itemLeft},{children:i("div",{children:[o("div",{className:"".concat(g.skeletonBase," ").concat(g.skeletonLinePrimary)}),o("div",{className:"".concat(g.skeletonBase," ").concat(g.skeletonLineSecondary)})]})})),o("div",e({className:g.itemRight},{children:o("div",{className:"".concat(g.skeletonBase," ").concat(g.skeletonLineTimestamp)})}))]}))}),t)})})):0===be.length?o("div",e({className:g.emptyState},{children:A})):be.map(function(e,i){return o(r.Fragment,{children:X?X(e,i):o(a,{log:e,globalIcons:ee,onRowClick:G,itemConfig:J,renderItemHeaderLeft:Y,renderItemHeaderRight:Z,renderItemExpandedBody:$})},e.id)}),Se&&o("div",e({className:g.loadingText},{children:(null==oe?void 0:oe.loadingMore)||"Fetching older history..."}))]}))]}))]}):null};export{h 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",
|
|
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",skeletonBase:"AuditLogPanel-module_skeletonBase__1JdeF",skeletonCircle:"AuditLogPanel-module_skeletonCircle__LHVyi",skeletonLinePrimary:"AuditLogPanel-module_skeletonLinePrimary__54f-f",skeletonLineSecondary:"AuditLogPanel-module_skeletonLineSecondary__stC65",skeletonLineTimestamp:"AuditLogPanel-module_skeletonLineTimestamp__E-9In",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};
|
|
2
2
|
//# sourceMappingURL=AuditLogPanel.module.css.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as i,jsxs as t,Fragment as n}from"react/jsx-runtime";import c,{useState as a}from"react";import{Sparkles as o,RefreshCcw as l,PenLine as r,CheckCircle2 as d,XCircle as s,RotateCcw as m,RotateCw as p,History as g,ChevronUp as v,ChevronDown as u}from"lucide-react";import{TruncatedText as h}from"./CommonUI.js";import f from"./AuditLogPanel.module.css.js";var b={AI_SUGGESTED:{icon:i(o,{size:14,color:"#9333ea"}),bg:"#f3e8ff"},ITERATED:{icon:i(l,{size:14,color:"#2563eb"}),bg:"#dbeafe"},MODIFIED:{icon:i(r,{size:14,color:"#f59e0b"}),bg:"#fef3c7"},APPROVED:{icon:i(d,{size:16,color:"#16a34a"}),bg:"#dcfce7"},ACCEPTED:{icon:i(d,{size:16,color:"#16a34a"}),bg:"#dcfce7"},REJECTED:{icon:i(s,{size:16,color:"#dc2626"}),bg:"#fee2e2"},REVERTED:{icon:i(m,{size:14,color:"#ea580c"}),bg:"#ffedd5"},REINSTATE:{icon:i(p,{size:14,color:"#059669"}),bg:"#d1fae5"},RESTORE:{icon:i(g,{size:14,color:"#4f46e5"}),bg:"#e0e7ff"}},E=function(o){var l,r,d,s,m,p=o.log,g=o.globalIcons,E=o.globalClasses,y=o.globalStyles,N=o.renderItemHeaderLeft,B=o.renderItemHeaderRight,C=o.renderItemExpandedBody,k=o.onRowClick,I=o.itemConfig,R=a(p.isInitiallyExpanded||!1),T=R[0],x=R[1],H={isExpanded:T,expand:function(){return x(!0)},collapse:function(){return x(!1)},toggle:function(){return x(!T)}},z=N?N(p):null,D=B?B(p,T,H):null,S=C?C(p,H):null,L=Boolean(p.renderExpandedBody||p.customExpandedContent),A=Boolean(p.tags&&p.tags.length>0||p.impact||p.contentBlocks&&p.contentBlocks.length>0),j=L||Boolean(S)||A,w=function(e){if(!e)return{icon:i("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"};var t=e.toUpperCase().trim();return b[t]||{icon:i("div",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:"#64748b"}}),bg:"#f1f5f9"}}(p.actionType),O=(null===(l=null==I?void 0:I.getIcon)||void 0===l?void 0:l.call(I,p))||p.icon||(null===(r=null==g?void 0:g.actionTypes)||void 0===r?void 0:r[p.actionType])||w.icon,P=(null===(d=null==I?void 0:I.getIconBg)||void 0===d?void 0:d.call(I,p))||p.iconBgColor||w.bg,U=(null===(s=null==I?void 0:I.getStyle)||void 0===s?void 0:s.call(I,p))||{};return t("div",e({className:"".concat(f.itemWrapper," ").concat((null==E?void 0:E.itemWrapper)||""," ").concat(p.className||""),style:e(e(e({},null==y?void 0:y.itemWrapper),p.style),U)},{children:[t("div",e({onClick:function(e){e.target.closest("button, a, input, select")||(k&&k(p,H),j&&x(!T))},className:"".concat(f.itemHeader," ").concat(j?f.itemHeaderClickable:f.itemHeaderDefault)},{children:[i("div",e({className:f.itemLeft},{children:p.renderHeaderLeft?p.renderHeaderLeft():z||t(n,{children:[i("div",e({className:f.itemIconWrapper,style:{backgroundColor:P}},{children:O})),t("div",{children:[i("div",e({className:f.itemTitle},{children:p.title})),i("div",e({className:f.itemSubtitle},{children:p.subtitle}))]})]})})),i("div",e({className:f.itemRight},{children:p.renderHeaderRight?p.renderHeaderRight(T,H):D||t(n,{children:[i("span",e({className:f.itemTimestamp},{children:p.timestamp})),j&&i("div",e({className:f.itemChevron},{children:T?(null==g?void 0:g.chevronUp)||i(v,{size:16}):(null==g?void 0:g.chevronDown)||i(u,{size:16})}))]})}))]})),T&&j&&i("div",e({className:f.itemExpanded},{children:p.renderExpandedBody?p.renderExpandedBody(H):S||(p.customExpandedContent?p.customExpandedContent:t(n,{children:[p.tags&&p.tags.length>0&&i("div",{children:i("div",e({className:f.tagsChip},{children:p.tags.map(function(n,a){return t(c.Fragment,{children:[i("span",{children:n}),a<p.tags.length-1&&i("span",e({className:f.tagSeparator},{children:"•"}))]},a)})}))}),(p.impact||p.contentBlocks&&p.contentBlocks.length>0)&&t("div",e({className:f.impactContainer},{children:[p.impact&&p.impact.severity&&p.impact.description&&t("div",e({className:p.impact.className,style:p.impact.style},{children:[t("div",e({className:f.impactHeader},{children:[i("span",e({className:f.impactLabel},{children:p.impact.label||"Impact"})),p.impact.severity&&i("span",e({className:"".concat(f.severityBadge," ").concat("High"===p.impact.severity?f.severityHigh:f.severityOther)},{children:p.impact.severity}))]})),i("div",e({className:f.impactDescription},{children:i(h,{content:p.impact.description,config:p.impact.truncation})}))]})),p.impact&&p.impact.severity&&p.impact.description&&p.contentBlocks&&p.contentBlocks.length>0&&i("div",{className:f.divider}),null===(m=p.contentBlocks)||void 0===m?void 0:m.map(function(n,c){return t("div",e({className:f.contentBlock},{children:[i("span",e({className:f.contentBlockLabel},{children:n.label})),i("div",e({className:f.contentBlockText},{children:i(h,{content:n.content,config:n.truncation})}))]}),c)})]}))]}))}))]}))};export{E as AuditLogItem,b as DEFAULT_ACTION_CONFIGS};
|
|
2
|
+
//# sourceMappingURL=AuditLogPanelItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuditLogPanelItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as
|
|
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 a}from"react";import{AuditLogPanel as n}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 a(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(n,{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,showComparisonCard:!0,globalIcons:{actionTypes:{REJECTED:t(d,{size:16,color:"#dc2626"})}},renderItemHeaderLeft:function(o){var a;return"ITERATED"===(null===(a=o.rawPayload)||void 0===a?void 0:a.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,a,n){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:a?"▲":"▼"}))]})):null},renderItemExpandedBody:function(o,a){var n;return"ITERATED"===(null===(n=o.rawPayload)||void 0===n?void 0:n.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:a.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};
|
|
2
2
|
//# sourceMappingURL=AuditLogSandBox.js.map
|