@viswa-test/test-citation 0.0.296 → 0.0.298
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/features/SegmentReviewComponents/BoundaryCard.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +1 -1
- package/dist/features/SegmentReviewComponents/BoundaryCard.js +1 -1
- package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +1 -1
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +1 -1
- package/dist/features/SegmentReviewComponents/LabelCheck.js +1 -1
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("@mui/icons-material/ChevronRight"),r=require("@mui/icons-material/Close"),a=require("@mui/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),n=require("@mui/icons-material/ChevronRight"),r=require("@mui/icons-material/Close"),a=require("@mui/material/Box"),o=require("@mui/material/Button"),s=require("@mui/material/ButtonBase"),l=require("@mui/material/Divider"),d=require("@mui/material/IconButton"),u=require("@mui/material/Paper"),c=require("@mui/material/Radio"),g=require("@mui/material/Stack"),x=require("@mui/material/TextField"),m=require("@mui/material/Typography"),f=require("./CognitiveIcon.js"),p=require("./CognitiveScoreBadge.js"),h=require("../../assests/icons/InfoAlert.js");function _(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=_(n),b=_(r),j=_(a),y=_(o),C=_(s),E=_(l),S=_(d),w=_(u),I=_(c),R=_(g),q=_(x),A=_(m),M=function(t,i){return e.__spreadArray([t],Array.isArray(i)?i:null==i?[]:[i],!0)},N=function(e){return"KEEP"===e||"SPLIT_HERE"===e||"MERGE_NEXT"===e||"MERGE_PREVIOUS"===e||"SET_RANGE"===e},P=function(e){return e.user_actions.map(function(t){var i=e.focus_page;switch(t){case"KEEP":return{id:t,title:"Keep as is",description:"Keep the current document boundary unchanged."};case"SPLIT_HERE":return{id:t,title:"Create a separate document",description:i?"Start a new document at page ".concat(i,"."):"Create a new document at this boundary."};case"MERGE_NEXT":return{id:t,title:"Merge into next document",description:i?"Move page ".concat(i," onward into the next document."):"Merge this segment into the next document."};case"MERGE_PREVIOUS":return{id:t,title:"Merge into previous document",description:"Merge this segment into the previous document."};case"SET_RANGE":return{id:t,title:"Adjust page range",description:"Set the start and end pages manually."}}})};exports.createBoundaryCardOptions=P,exports.default=function(n){var r=n.headerName,a=void 0===r?"Boundary Check":r,o=n.title,s=n.pageNo,l=n.content,d=n.cognitiveScore,u=n.config,c=n.metadata,g=n.selectedIndex,x=n.defaultSelectedIndex,m=void 0===x?null:x,_=n.defaultStartPage,k=n.defaultEndPage,z=n.onSelectionChange,T=n.onConfirm,B=n.onActionConfirm,F=n.onCognitiveClick;n.onAdjustManually;var W=n.onClose,G=n.confirmLabel,D=void 0===G?"Confirm":G;n.manualPrompt,n.manualActionLabel;var H=n.cognitiveLabel,L=void 0===H?"Cognitive Integrity":H;n.showAdjustManually;var K=n.showCognitiveIntegrity,O=void 0===K||K,U=n.showCloseButton,V=void 0===U||U,X=n.confirmDisabled,J=void 0!==X&&X,Q=n.width,Y=void 0===Q?260:Q,Z=n.maxWidth,$=void 0===Z?260:Z,ee=n.className,te=n.styles,ie=i.useMemo(function(){return null!=u?u:c?P(c):[]},[u,c]),ne=i.useState(m),re=ne[0],ae=ne[1],oe=i.useState(null==_?"":String(_)),se=oe[0],le=oe[1],de=i.useState(null==k?"":String(k)),ue=de[0],ce=de[1],ge=void 0===g?re:g,xe=null==ge?void 0:ie[ge],me=Number(se),fe=Number(ue),pe="SET_RANGE"===(null==xe?void 0:xe.id),he=se.trim().length>0&&ue.trim().length>0&&Number.isInteger(me)&&Number.isInteger(fe)&&me>0&&fe>0&&me<=fe,_e=J||!xe||!0===xe.disabled||pe&&!he||!T&&!B;return t.jsx(w.default,e.__assign({className:ee,elevation:4,sx:M({width:Y,maxWidth:$,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==te?void 0:te.root)},{children:t.jsxs(R.default,e.__assign({spacing:.75,sx:{p:1}},{children:[t.jsxs(R.default,e.__assign({direction:"row",alignItems:"center",spacing:.75,sx:null==te?void 0:te.header},{children:[t.jsx(h.default,{color:"error",height:16,width:16}),t.jsx(A.default,e.__assign({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:a})),V&&t.jsx(S.default,e.__assign({size:"small",onClick:W,disabled:!W,"aria-label":"Close boundary check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:t.jsx(b.default,{sx:{fontSize:17}})}))]})),t.jsxs(j.default,{children:[t.jsx(A.default,e.__assign({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:o})),null!=s&&t.jsx(A.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:s})),t.jsx(E.default,{sx:{my:.625}}),null!=l&&t.jsx(A.default,e.__assign({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:l}))]}),t.jsxs(R.default,e.__assign({spacing:.625,role:"radiogroup","aria-label":"Boundary options"},{children:[ie.map(function(i,n){var r=ge===n;return t.jsxs(w.default,e.__assign({variant:"outlined",sx:M({borderColor:r?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==te?void 0:te.option)},{children:[t.jsxs(C.default,e.__assign({role:"radio","aria-checked":r,disabled:i.disabled,onClick:function(){return function(e,t){t.disabled||(void 0===g&&ae(e),null==z||z(e,t))}(n,i)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left"}},{children:[t.jsx(I.default,{checked:r,disabled:i.disabled,tabIndex:-1,size:"small",sx:{p:.25,mr:.5}}),t.jsxs(j.default,e.__assign({sx:{minWidth:0}},{children:[t.jsx(A.default,e.__assign({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:i.title})),null!=i.description&&t.jsx(A.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:i.description}))]}))]})),r&&"SET_RANGE"===i.id&&t.jsxs(R.default,e.__assign({direction:"row",spacing:1,sx:{px:1.75,pb:1.5,pl:5.75}},{children:[t.jsx(q.default,{fullWidth:!0,size:"small",type:"number",label:"Start page",value:se,onChange:function(e){return le(e.target.value)},inputProps:{min:1,step:1,inputMode:"numeric"},sx:null==te?void 0:te.rangeInput}),t.jsx(q.default,{fullWidth:!0,size:"small",type:"number",label:"End page",value:ue,error:se.trim().length>0&&ue.trim().length>0&&me>fe,onChange:function(e){return ce(e.target.value)},inputProps:{min:1,step:1,inputMode:"numeric"},sx:null==te?void 0:te.rangeInput})]}))]}),i.id)}),t.jsx(y.default,e.__assign({variant:"contained",fullWidth:!0,disabled:_e,onClick:function(){!_e&&null!=ge&&xe&&(null==T||T(ge,xe),B&&N(xe.id)&&B(xe.id,e.__assign({selectedIndex:ge,option:xe,metadata:c},"SET_RANGE"===xe.id&&he?{startPage:me,endPage:fe}:{})))},sx:M({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==te?void 0:te.confirmButton)},{children:D}))]})),t.jsx(R.default,e.__assign({spacing:.625,sx:null==te?void 0:te.footer},{children:O&&t.jsxs(t.Fragment,{children:[t.jsx(E.default,{}),t.jsxs(C.default,e.__assign({onClick:F,disabled:!F,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:F?"pointer":"not-allowed"}},{children:[t.jsxs(R.default,e.__assign({direction:"row",alignItems:"center",spacing:1},{children:[t.jsx(f.default,{sx:{color:"text.secondary"}}),t.jsx(A.default,e.__assign({sx:{color:"text.primary",fontSize:12}},{children:L}))]})),t.jsxs(R.default,e.__assign({direction:"row",alignItems:"center",spacing:.5},{children:[t.jsx(p.default,{score:d}),t.jsx(v.default,{sx:{color:"text.secondary"}})]}))]}))]})}))]}))}))},exports.isBoundaryReviewAction=N;
|
|
2
2
|
//# sourceMappingURL=BoundaryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("@mui/icons-material/ChevronLeft"),a=require("@mui/icons-material/Close"),s=require("@mui/material/Box"),n=require("@mui/material/Divider"),l=require("@mui/material/IconButton"),t=require("@mui/material/Paper"),o=require("@mui/material/Stack"),d=require("@mui/material/Typography"),u=require("../CitationRenderer/MarkdownRenderer.js"),c=require("./CognitiveIcon.js"),x=require("./CognitiveScoreBadge.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=g(r),m=g(a),h=g(s),v=g(n),_=g(l),p=g(t),j=g(o),b=g(d),y=function(i,r){return e.__spreadArray([i],Array.isArray(r)?r:null==r?[]:[r],!0)};exports.default=function(r){var a,s,n=r.reason,l=r.gap,t=r.score,o=r.headerName,d=void 0===o?"Cognitive Integrity":o,g=r.onBack,C=r.onClose,q=r.showCloseButton,w=void 0===q||q,k=r.width,S=void 0===k?260:k,z=r.maxWidth,W=void 0===z?260:z,R=r.className,A=r.styles,B=null!==(a=null==n?void 0:n.trim())&&void 0!==a?a:"",I=null!==(s=null==l?void 0:l.trim())&&void 0!==s?s:"";if(!B&&!I)return null;var M,N=(M=null==A?void 0:A.markdown,e.__assign(e.__assign({},M),{containerWrapper:e.__assign({display:"block",height:"auto"},null==M?void 0:M.containerWrapper),mainCard:e.__assign({height:"auto",padding:0,border:"none",borderRadius:0,boxShadow:"none",backgroundColor:"transparent"},null==M?void 0:M.mainCard),scrollArea:e.__assign({height:"auto",overflowY:"visible",paddingRight:0,color:"#475467",fontSize:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),r=require("@mui/icons-material/ChevronLeft"),a=require("@mui/icons-material/Close"),s=require("@mui/material/Box"),n=require("@mui/material/Divider"),l=require("@mui/material/IconButton"),t=require("@mui/material/Paper"),o=require("@mui/material/Stack"),d=require("@mui/material/Typography"),u=require("../CitationRenderer/MarkdownRenderer.js"),c=require("./CognitiveIcon.js"),x=require("./CognitiveScoreBadge.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=g(r),m=g(a),h=g(s),v=g(n),_=g(l),p=g(t),j=g(o),b=g(d),y=function(i,r){return e.__spreadArray([i],Array.isArray(r)?r:null==r?[]:[r],!0)};exports.default=function(r){var a,s,n=r.reason,l=r.gap,t=r.score,o=r.headerName,d=void 0===o?"Cognitive Integrity":o,g=r.onBack,C=r.onClose,q=r.showCloseButton,w=void 0===q||q,k=r.width,S=void 0===k?260:k,z=r.maxWidth,W=void 0===z?260:z,R=r.className,A=r.styles,B=null!==(a=null==n?void 0:n.trim())&&void 0!==a?a:"",I=null!==(s=null==l?void 0:l.trim())&&void 0!==s?s:"";if(!B&&!I)return null;var M,N=(M=null==A?void 0:A.markdown,e.__assign(e.__assign({},M),{containerWrapper:e.__assign({display:"block",height:"auto"},null==M?void 0:M.containerWrapper),mainCard:e.__assign({height:"auto",padding:0,border:"none",borderRadius:0,boxShadow:"none",backgroundColor:"transparent"},null==M?void 0:M.mainCard),scrollArea:e.__assign({height:"auto",overflowY:"visible",paddingRight:0,color:"#475467",fontSize:11.5,lineHeight:1.3},null==M?void 0:M.scrollArea)}));return i.jsx(p.default,e.__assign({className:R,elevation:4,sx:y({width:S,maxWidth:W,borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==A?void 0:A.root)},{children:i.jsxs(j.default,e.__assign({spacing:.75,sx:{p:1}},{children:[i.jsxs(j.default,e.__assign({direction:"row",alignItems:"center",spacing:.75,sx:null==A?void 0:A.header},{children:[g&&i.jsx(_.default,e.__assign({size:"small",onClick:g,"aria-label":"Return to review check",sx:{p:0,color:"#6941C6"}},{children:i.jsx(f.default,{sx:{fontSize:17}})})),i.jsx(c.default,{sx:{color:"#6941C6"}}),i.jsx(b.default,e.__assign({sx:{flex:1,color:"#6941C6",fontSize:12,fontWeight:600,alignItems:"center",display:"flex",lineHeight:1.25,textTransform:"capitalise"}},{children:d})),i.jsx(x.default,{score:t}),w&&i.jsx(_.default,e.__assign({size:"small",onClick:C,disabled:!C,"aria-label":"Close cognitive integrity",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(m.default,{sx:{fontSize:17}})}))]})),i.jsxs(j.default,e.__assign({spacing:.75,sx:null==A?void 0:A.content},{children:[B&&i.jsxs(h.default,e.__assign({sx:null==A?void 0:A.section},{children:[i.jsx(b.default,e.__assign({sx:{mb:.25,color:"text.primary",fontSize:12,fontWeight:600}},{children:"Decision Making Factors"})),i.jsx(u.default,{value:B,styles:N})]})),B&&I&&i.jsx(v.default,{}),I&&i.jsxs(h.default,e.__assign({sx:null==A?void 0:A.section},{children:[i.jsx(b.default,e.__assign({sx:{mb:.25,color:"text.primary",fontSize:12,fontWeight:600}},{children:"Gap"})),i.jsx(u.default,{value:I,styles:N})]}))]}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=CognitiveIntegrity.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("@mui/material/Box"));exports.default=function(t){var o=t.score;if(null==o||"string"==typeof o&&""===o.trim())return null;var i="number"==typeof o?"".concat(o,"%"):o;return r.jsx(n.default,e.__assign({component:"span",sx:{px
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(require("@mui/material/Box"));exports.default=function(t){var o=t.score;if(null==o||"string"==typeof o&&""===o.trim())return null;var i="number"==typeof o?"".concat(o,"%"):o;return r.jsx(n.default,e.__assign({component:"span",sx:{px:.625,py:0,border:"1.5px solid",borderColor:"secondary.main",borderRadius:10,color:"secondary.main",fontSize:11,lineHeight:1.25}},{children:i}))};
|
|
2
2
|
//# sourceMappingURL=CognitiveScoreBadge.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@mui/icons-material/ChevronRight"),r=require("@mui/icons-material/Close"),o=require("@mui/material/Box"),l=require("@mui/material/Button"),a=require("@mui/material/ButtonBase"),s=require("@mui/material/Divider"),d=require("@mui/material/IconButton"),u=require("@mui/material/Paper"),c=require("@mui/material/Radio"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("@mui/icons-material/ChevronRight"),r=require("@mui/icons-material/Close"),o=require("@mui/material/Box"),l=require("@mui/material/Button"),a=require("@mui/material/ButtonBase"),s=require("@mui/material/Divider"),d=require("@mui/material/IconButton"),u=require("@mui/material/Paper"),c=require("@mui/material/Radio"),f=require("@mui/material/Stack"),x=require("@mui/material/TextField"),m=require("@mui/material/Typography"),h=require("./CognitiveIcon.js"),g=require("./CognitiveScoreBadge.js"),p=require("../../assests/icons/InfoAlert.js");function b(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=b(n),_=b(r),j=b(o),C=b(l),y=b(a),w=b(s),S=b(d),q=b(u),L=b(c),A=b(f),I=b(x),k=b(m),z=function(i,t){return e.__spreadArray([i],Array.isArray(t)?t:null==t?[]:[t],!0)},B=function(e){return e.user_actions.map(function(i){switch(i){case"KEEP_LABEL":return{id:i,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:i,title:"Enter a custom label",description:"Create your own document label",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},E=function(e){return"KEEP_LABEL"===e||"SET_CUSTOM_LABEL"===e};exports.createLabelCheckOptions=B,exports.default=function(n){var r,o=n.headerName,l=void 0===o?"Title Check":o,a=n.title,s=n.pageNo,d=n.content,u=void 0===d?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":d,c=n.cognitiveScore,f=n.config,x=n.metadata,m=n.selectedIndex,b=n.defaultSelectedIndex,F=void 0===b?null:b,T=n.onSelectionChange,W=n.customLabel,M=n.defaultCustomLabel,P=n.onCustomLabelChange,R=n.onConfirm,D=n.onActionConfirm,K=n.onCognitiveClick;n.onAdjustManually;var N=n.onClose,O=n.confirmLabel,H=void 0===O?"Confirm":O,U=n.customInputAriaLabel,G=void 0===U?"Custom document label":U;n.manualPrompt,n.manualActionLabel;var J=n.cognitiveLabel,Q=void 0===J?"Cognitive Integrity":J;n.showAdjustManually;var V=n.showCognitiveIntegrity,X=void 0===V||V,Y=n.showCloseButton,Z=void 0===Y||Y,$=n.confirmDisabled,ee=void 0!==$&&$,ie=n.width,te=void 0===ie?260:ie,ne=n.maxWidth,re=void 0===ne?260:ne,oe=n.className,le=n.styles,ae=t.useMemo(function(){return null!=f?f:x?B(x):[]},[f,x]),se=t.useState(F),de=se[0],ue=se[1],ce=t.useState(null!==(r=null!=M?M:null==x?void 0:x.custom_label)&&void 0!==r?r:""),fe=ce[0],xe=ce[1],me=void 0===m?de:m,he=void 0===W?fe:W,ge=null==me?void 0:ae[me],pe=Boolean(null==ge?void 0:ge.requiresInput),be=ee||!R&&!D||!ge||!0===ge.disabled||pe&&0===he.trim().length,ve=function(){if(!be&&null!=me&&ge){var e=pe?he.trim():void 0;null==R||R(me,ge,e),D&&E(ge.id)&&D(ge.id,{selectedIndex:me,option:ge,customLabel:e,metadata:x})}};return i.jsx(q.default,e.__assign({className:oe,elevation:4,sx:z({width:te,maxWidth:re,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==le?void 0:le.root)},{children:i.jsxs(A.default,e.__assign({spacing:.75,sx:{p:1}},{children:[i.jsxs(A.default,e.__assign({direction:"row",alignItems:"center",spacing:.75,sx:null==le?void 0:le.header},{children:[i.jsx(p.default,{color:"error",height:16,width:16}),i.jsx(k.default,e.__assign({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:l})),Z&&i.jsx(S.default,e.__assign({size:"small",onClick:N,disabled:!N,"aria-label":"Close label check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i.jsx(_.default,{sx:{fontSize:17}})}))]})),i.jsxs(j.default,{children:[i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:a})),null!=s&&i.jsx(k.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:s})),i.jsx(w.default,{sx:{my:.625}}),null!=u&&i.jsx(k.default,e.__assign({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:u}))]}),i.jsxs(A.default,e.__assign({spacing:.625,role:"radiogroup","aria-label":"Label options"},{children:[ae.map(function(t,n){var r=me===n;return i.jsxs(q.default,e.__assign({variant:"outlined",sx:z({borderColor:r?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==le?void 0:le.option)},{children:[i.jsxs(y.default,e.__assign({role:"radio","aria-checked":r,disabled:t.disabled,onClick:function(){return function(e,i){i.disabled||(void 0===m&&ue(e),null==T||T(e,i))}(n,t)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left"}},{children:[i.jsx(L.default,{checked:r,disabled:t.disabled,tabIndex:-1,size:"small",sx:{p:.25,mr:.5}}),i.jsxs(j.default,e.__assign({sx:{minWidth:0}},{children:[i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:t.title})),null!=t.description&&i.jsx(k.default,e.__assign({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:t.description}))]}))]})),r&&t.requiresInput&&i.jsx(j.default,e.__assign({sx:{px:1.75,pb:1.5,pl:5.75}},{children:i.jsx(I.default,{autoFocus:!0,fullWidth:!0,size:"small",value:he,placeholder:t.inputPlaceholder,inputProps:{"aria-label":G},onChange:function(e){return i=e.target.value,void 0===W&&xe(i),void(null==P||P(i));var i},onKeyDown:function(e){"Enter"===e.key&&ve()},sx:null==le?void 0:le.customInput})}))]}),t.id)}),i.jsx(C.default,e.__assign({variant:"contained",fullWidth:!0,disabled:be,onClick:ve,sx:z({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==le?void 0:le.confirmButton)},{children:H}))]})),i.jsx(A.default,e.__assign({spacing:.625,sx:null==le?void 0:le.footer},{children:X&&i.jsxs(i.Fragment,{children:[i.jsx(w.default,{}),i.jsxs(y.default,e.__assign({onClick:K,disabled:!K,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:K?"pointer":"not-allowed"}},{children:[i.jsxs(A.default,e.__assign({direction:"row",alignItems:"center",spacing:1},{children:[i.jsx(h.default,{sx:{color:"text.secondary"}}),i.jsx(k.default,e.__assign({sx:{color:"text.primary",fontSize:12}},{children:Q}))]})),i.jsxs(A.default,e.__assign({direction:"row",alignItems:"center",spacing:.75},{children:[i.jsx(g.default,{score:c}),i.jsx(v.default,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))},exports.isLabelReviewAction=E;
|
|
2
2
|
//# sourceMappingURL=LabelCheck.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as i}from"tslib";import{jsx as t,jsxs as
|
|
1
|
+
import{__assign as e,__spreadArray as i}from"tslib";import{jsx as t,jsxs as r,Fragment as n}from"react/jsx-runtime";import{useMemo as o,useState as a}from"react";import l from"@mui/icons-material/ChevronRight";import d from"@mui/icons-material/Close";import c from"@mui/material/Box";import s from"@mui/material/Button";import u from"@mui/material/ButtonBase";import m from"@mui/material/Divider";import p from"@mui/material/IconButton";import h from"@mui/material/Paper";import g from"@mui/material/Radio";import f from"@mui/material/Stack";import x from"@mui/material/TextField";import v from"@mui/material/Typography";import b from"./CognitiveIcon.js";import E from"./CognitiveScoreBadge.js";import C from"../../assests/icons/InfoAlert.js";var y=function(e,t){return i([e],Array.isArray(t)?t:null==t?[]:[t],!0)},S=function(e){return"KEEP"===e||"SPLIT_HERE"===e||"MERGE_NEXT"===e||"MERGE_PREVIOUS"===e||"SET_RANGE"===e},w=function(e){return e.user_actions.map(function(i){var t=e.focus_page;switch(i){case"KEEP":return{id:i,title:"Keep as is",description:"Keep the current document boundary unchanged."};case"SPLIT_HERE":return{id:i,title:"Create a separate document",description:t?"Start a new document at page ".concat(t,"."):"Create a new document at this boundary."};case"MERGE_NEXT":return{id:i,title:"Merge into next document",description:t?"Move page ".concat(t," onward into the next document."):"Merge this segment into the next document."};case"MERGE_PREVIOUS":return{id:i,title:"Merge into previous document",description:"Merge this segment into the previous document."};case"SET_RANGE":return{id:i,title:"Adjust page range",description:"Set the start and end pages manually."}}})};function I(i){var I=i.headerName,R=void 0===I?"Boundary Check":I,A=i.title,M=i.pageNo,N=i.content,k=i.cognitiveScore,z=i.config,P=i.metadata,T=i.selectedIndex,_=i.defaultSelectedIndex,B=void 0===_?null:_,W=i.defaultStartPage,j=i.defaultEndPage,F=i.onSelectionChange,G=i.onConfirm,D=i.onActionConfirm,H=i.onCognitiveClick;i.onAdjustManually;var L=i.onClose,K=i.confirmLabel,O=void 0===K?"Confirm":K;i.manualPrompt,i.manualActionLabel;var U=i.cognitiveLabel,V=void 0===U?"Cognitive Integrity":U;i.showAdjustManually;var X=i.showCognitiveIntegrity,q=void 0===X||X,J=i.showCloseButton,Q=void 0===J||J,Y=i.confirmDisabled,Z=void 0!==Y&&Y,$=i.width,ee=void 0===$?260:$,ie=i.maxWidth,te=void 0===ie?260:ie,re=i.className,ne=i.styles,oe=o(function(){return null!=z?z:P?w(P):[]},[z,P]),ae=a(B),le=ae[0],de=ae[1],ce=a(null==W?"":String(W)),se=ce[0],ue=ce[1],me=a(null==j?"":String(j)),pe=me[0],he=me[1],ge=void 0===T?le:T,fe=null==ge?void 0:oe[ge],xe=Number(se),ve=Number(pe),be="SET_RANGE"===(null==fe?void 0:fe.id),Ee=se.trim().length>0&&pe.trim().length>0&&Number.isInteger(xe)&&Number.isInteger(ve)&&xe>0&&ve>0&&xe<=ve,Ce=Z||!fe||!0===fe.disabled||be&&!Ee||!G&&!D;return t(h,e({className:re,elevation:4,sx:y({width:ee,maxWidth:te,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==ne?void 0:ne.root)},{children:r(f,e({spacing:.75,sx:{p:1}},{children:[r(f,e({direction:"row",alignItems:"center",spacing:.75,sx:null==ne?void 0:ne.header},{children:[t(C,{color:"error",height:16,width:16}),t(v,e({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:R})),Q&&t(p,e({size:"small",onClick:L,disabled:!L,"aria-label":"Close boundary check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:t(d,{sx:{fontSize:17}})}))]})),r(c,{children:[t(v,e({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:A})),null!=M&&t(v,e({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:M})),t(m,{sx:{my:.625}}),null!=N&&t(v,e({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:N}))]}),r(f,e({spacing:.625,role:"radiogroup","aria-label":"Boundary options"},{children:[oe.map(function(i,n){var o=ge===n;return r(h,e({variant:"outlined",sx:y({borderColor:o?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==ne?void 0:ne.option)},{children:[r(u,e({role:"radio","aria-checked":o,disabled:i.disabled,onClick:function(){return function(e,i){i.disabled||(void 0===T&&de(e),null==F||F(e,i))}(n,i)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left"}},{children:[t(g,{checked:o,disabled:i.disabled,tabIndex:-1,size:"small",sx:{p:.25,mr:.5}}),r(c,e({sx:{minWidth:0}},{children:[t(v,e({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:i.title})),null!=i.description&&t(v,e({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:i.description}))]}))]})),o&&"SET_RANGE"===i.id&&r(f,e({direction:"row",spacing:1,sx:{px:1.75,pb:1.5,pl:5.75}},{children:[t(x,{fullWidth:!0,size:"small",type:"number",label:"Start page",value:se,onChange:function(e){return ue(e.target.value)},inputProps:{min:1,step:1,inputMode:"numeric"},sx:null==ne?void 0:ne.rangeInput}),t(x,{fullWidth:!0,size:"small",type:"number",label:"End page",value:pe,error:se.trim().length>0&&pe.trim().length>0&&xe>ve,onChange:function(e){return he(e.target.value)},inputProps:{min:1,step:1,inputMode:"numeric"},sx:null==ne?void 0:ne.rangeInput})]}))]}),i.id)}),t(s,e({variant:"contained",fullWidth:!0,disabled:Ce,onClick:function(){!Ce&&null!=ge&&fe&&(null==G||G(ge,fe),D&&S(fe.id)&&D(fe.id,e({selectedIndex:ge,option:fe,metadata:P},"SET_RANGE"===fe.id&&Ee?{startPage:xe,endPage:ve}:{})))},sx:y({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==ne?void 0:ne.confirmButton)},{children:O}))]})),t(f,e({spacing:.625,sx:null==ne?void 0:ne.footer},{children:q&&r(n,{children:[t(m,{}),r(u,e({onClick:H,disabled:!H,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:H?"pointer":"not-allowed"}},{children:[r(f,e({direction:"row",alignItems:"center",spacing:1},{children:[t(b,{sx:{color:"text.secondary"}}),t(v,e({sx:{color:"text.primary",fontSize:12}},{children:V}))]})),r(f,e({direction:"row",alignItems:"center",spacing:.5},{children:[t(E,{score:k}),t(l,{sx:{color:"text.secondary"}})]}))]}))]})}))]}))}))}export{w as createBoundaryCardOptions,I as default,S as isBoundaryReviewAction};
|
|
2
2
|
//# sourceMappingURL=BoundaryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i,__spreadArray as o}from"tslib";import{jsx as r,jsxs as e}from"react/jsx-runtime";import t from"@mui/icons-material/ChevronLeft";import n from"@mui/icons-material/Close";import l from"@mui/material/Box";import a from"@mui/material/Divider";import d from"@mui/material/IconButton";import s from"@mui/material/Paper";import m from"@mui/material/Stack";import c from"@mui/material/Typography";import u from"../CitationRenderer/MarkdownRenderer.js";import p from"./CognitiveIcon.js";import h from"./CognitiveScoreBadge.js";var v=function(i,r){return o([i],Array.isArray(r)?r:null==r?[]:[r],!0)};function f(o){var f,x,g=o.reason,b=o.gap,C=o.score,y=o.headerName,w=void 0===y?"Cognitive Integrity":y,k=o.onBack,S=o.onClose,z=o.showCloseButton,W=void 0===z||z,R=o.width,B=void 0===R?260:R,I=o.maxWidth,j=void 0===I?260:I,A=o.className,M=o.styles,N=null!==(f=null==g?void 0:g.trim())&&void 0!==f?f:"",D=null!==(x=null==b?void 0:b.trim())&&void 0!==x?x:"";if(!N&&!D)return null;var H,T=(H=null==M?void 0:M.markdown,i(i({},H),{containerWrapper:i({display:"block",height:"auto"},null==H?void 0:H.containerWrapper),mainCard:i({height:"auto",padding:0,border:"none",borderRadius:0,boxShadow:"none",backgroundColor:"transparent"},null==H?void 0:H.mainCard),scrollArea:i({height:"auto",overflowY:"visible",paddingRight:0,color:"#475467",fontSize:
|
|
1
|
+
import{__assign as i,__spreadArray as o}from"tslib";import{jsx as r,jsxs as e}from"react/jsx-runtime";import t from"@mui/icons-material/ChevronLeft";import n from"@mui/icons-material/Close";import l from"@mui/material/Box";import a from"@mui/material/Divider";import d from"@mui/material/IconButton";import s from"@mui/material/Paper";import m from"@mui/material/Stack";import c from"@mui/material/Typography";import u from"../CitationRenderer/MarkdownRenderer.js";import p from"./CognitiveIcon.js";import h from"./CognitiveScoreBadge.js";var v=function(i,r){return o([i],Array.isArray(r)?r:null==r?[]:[r],!0)};function f(o){var f,x,g=o.reason,b=o.gap,C=o.score,y=o.headerName,w=void 0===y?"Cognitive Integrity":y,k=o.onBack,S=o.onClose,z=o.showCloseButton,W=void 0===z||z,R=o.width,B=void 0===R?260:R,I=o.maxWidth,j=void 0===I?260:I,A=o.className,M=o.styles,N=null!==(f=null==g?void 0:g.trim())&&void 0!==f?f:"",D=null!==(x=null==b?void 0:b.trim())&&void 0!==x?x:"";if(!N&&!D)return null;var H,T=(H=null==M?void 0:M.markdown,i(i({},H),{containerWrapper:i({display:"block",height:"auto"},null==H?void 0:H.containerWrapper),mainCard:i({height:"auto",padding:0,border:"none",borderRadius:0,boxShadow:"none",backgroundColor:"transparent"},null==H?void 0:H.mainCard),scrollArea:i({height:"auto",overflowY:"visible",paddingRight:0,color:"#475467",fontSize:11.5,lineHeight:1.3},null==H?void 0:H.scrollArea)}));return r(s,i({className:A,elevation:4,sx:v({width:B,maxWidth:j,borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==M?void 0:M.root)},{children:e(m,i({spacing:.75,sx:{p:1}},{children:[e(m,i({direction:"row",alignItems:"center",spacing:.75,sx:null==M?void 0:M.header},{children:[k&&r(d,i({size:"small",onClick:k,"aria-label":"Return to review check",sx:{p:0,color:"#6941C6"}},{children:r(t,{sx:{fontSize:17}})})),r(p,{sx:{color:"#6941C6"}}),r(c,i({sx:{flex:1,color:"#6941C6",fontSize:12,fontWeight:600,alignItems:"center",display:"flex",lineHeight:1.25,textTransform:"capitalise"}},{children:w})),r(h,{score:C}),W&&r(d,i({size:"small",onClick:S,disabled:!S,"aria-label":"Close cognitive integrity",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:r(n,{sx:{fontSize:17}})}))]})),e(m,i({spacing:.75,sx:null==M?void 0:M.content},{children:[N&&e(l,i({sx:null==M?void 0:M.section},{children:[r(c,i({sx:{mb:.25,color:"text.primary",fontSize:12,fontWeight:600}},{children:"Decision Making Factors"})),r(u,{value:N,styles:T})]})),N&&D&&r(a,{}),D&&e(l,i({sx:null==M?void 0:M.section},{children:[r(c,i({sx:{mb:.25,color:"text.primary",fontSize:12,fontWeight:600}},{children:"Gap"})),r(u,{value:D,styles:T})]}))]}))]}))}))}export{f as default};
|
|
2
2
|
//# sourceMappingURL=CognitiveIntegrity.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import e from"@mui/material/Box";function n(n){var t=n.score;if(null==t||"string"==typeof t&&""===t.trim())return null;var i="number"==typeof t?"".concat(t,"%"):t;return o(e,r({component:"span",sx:{px
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import e from"@mui/material/Box";function n(n){var t=n.score;if(null==t||"string"==typeof t&&""===t.trim())return null;var i="number"==typeof t?"".concat(t,"%"):t;return o(e,r({component:"span",sx:{px:.625,py:0,border:"1.5px solid",borderColor:"secondary.main",borderRadius:10,color:"secondary.main",fontSize:11,lineHeight:1.25}},{children:i}))}export{n as default};
|
|
2
2
|
//# sourceMappingURL=CognitiveScoreBadge.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as o}from"tslib";import{jsx as i,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useMemo as n,useState as l}from"react";import a from"@mui/icons-material/ChevronRight";import d from"@mui/icons-material/Close";import c from"@mui/material/Box";import s from"@mui/material/Button";import u from"@mui/material/ButtonBase";import m from"@mui/material/Divider";import p from"@mui/material/IconButton";import f from"@mui/material/Paper";import h from"@mui/material/Radio";import b from"@mui/material/Stack";import x from"@mui/material/TextField";import v from"@mui/material/Typography";import g from"./CognitiveIcon.js";import C from"./CognitiveScoreBadge.js";import y from"../../assests/icons/InfoAlert.js";var w=function(e,i){return o([e],Array.isArray(i)?i:null==i?[]:[i],!0)},S=function(e){return e.user_actions.map(function(o){switch(o){case"KEEP_LABEL":return{id:o,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:o,title:"Enter a custom label",description:"Create your own document label",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},L=function(e){return"KEEP_LABEL"===e||"SET_CUSTOM_LABEL"===e};function I(o){var I,k=o.headerName,A=void 0===k?"Title Check":k,
|
|
1
|
+
import{__assign as e,__spreadArray as o}from"tslib";import{jsx as i,jsxs as r,Fragment as t}from"react/jsx-runtime";import{useMemo as n,useState as l}from"react";import a from"@mui/icons-material/ChevronRight";import d from"@mui/icons-material/Close";import c from"@mui/material/Box";import s from"@mui/material/Button";import u from"@mui/material/ButtonBase";import m from"@mui/material/Divider";import p from"@mui/material/IconButton";import f from"@mui/material/Paper";import h from"@mui/material/Radio";import b from"@mui/material/Stack";import x from"@mui/material/TextField";import v from"@mui/material/Typography";import g from"./CognitiveIcon.js";import C from"./CognitiveScoreBadge.js";import y from"../../assests/icons/InfoAlert.js";var w=function(e,i){return o([e],Array.isArray(i)?i:null==i?[]:[i],!0)},S=function(e){return e.user_actions.map(function(o){switch(o){case"KEEP_LABEL":return{id:o,title:"Keep as is",description:e.current_label?'Label stays "'.concat(e.current_label,'"'):"Keep the current document label"};case"SET_CUSTOM_LABEL":return{id:o,title:"Enter a custom label",description:"Create your own document label",requiresInput:!0,inputPlaceholder:e.current_label?"e.g. ".concat(e.current_label):"Enter a document label"}}})},L=function(e){return"KEEP_LABEL"===e||"SET_CUSTOM_LABEL"===e};function I(o){var I,k=o.headerName,A=void 0===k?"Title Check":k,z=o.title,B=o.pageNo,E=o.content,_=void 0===E?"We're not fully confident about this label. Confirm it, choose a different type, or add a new one.":E,F=o.cognitiveScore,T=o.config,W=o.metadata,j=o.selectedIndex,P=o.defaultSelectedIndex,D=void 0===P?null:P,M=o.onSelectionChange,R=o.customLabel,K=o.defaultCustomLabel,N=o.onCustomLabelChange,q=o.onConfirm,H=o.onActionConfirm,O=o.onCognitiveClick;o.onAdjustManually;var U=o.onClose,G=o.confirmLabel,J=void 0===G?"Confirm":G,Q=o.customInputAriaLabel,V=void 0===Q?"Custom document label":Q;o.manualPrompt,o.manualActionLabel;var X=o.cognitiveLabel,Y=void 0===X?"Cognitive Integrity":X;o.showAdjustManually;var Z=o.showCognitiveIntegrity,$=void 0===Z||Z,ee=o.showCloseButton,oe=void 0===ee||ee,ie=o.confirmDisabled,re=void 0!==ie&&ie,te=o.width,ne=void 0===te?260:te,le=o.maxWidth,ae=void 0===le?260:le,de=o.className,ce=o.styles,se=n(function(){return null!=T?T:W?S(W):[]},[T,W]),ue=l(D),me=ue[0],pe=ue[1],fe=l(null!==(I=null!=K?K:null==W?void 0:W.custom_label)&&void 0!==I?I:""),he=fe[0],be=fe[1],xe=void 0===j?me:j,ve=void 0===R?he:R,ge=null==xe?void 0:se[xe],Ce=Boolean(null==ge?void 0:ge.requiresInput),ye=re||!q&&!H||!ge||!0===ge.disabled||Ce&&0===ve.trim().length,we=function(){if(!ye&&null!=xe&&ge){var e=Ce?ve.trim():void 0;null==q||q(xe,ge,e),H&&L(ge.id)&&H(ge.id,{selectedIndex:xe,option:ge,customLabel:e,metadata:W})}};return i(f,e({className:de,elevation:4,sx:w({width:ne,maxWidth:ae,borderTop:"4px solid",borderColor:"error.main",borderRadius:2,bgcolor:"background.paper",overflow:"hidden",boxSizing:"border-box","@media (max-width: 372px)":{width:"calc(100vw - 32px)"}},null==ce?void 0:ce.root)},{children:r(b,e({spacing:.75,sx:{p:1}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:.75,sx:null==ce?void 0:ce.header},{children:[i(y,{color:"error",height:16,width:16}),i(v,e({sx:{flex:1,color:"error.main",fontSize:12,fontWeight:500,lineHeight:1.25,textTransform:"uppercase"}},{children:A})),oe&&i(p,e({size:"small",onClick:U,disabled:!U,"aria-label":"Close label check",sx:{p:0,"&.Mui-disabled":{color:"text.secondary"}}},{children:i(d,{sx:{fontSize:17}})}))]})),r(c,{children:[i(v,e({sx:{color:"text.primary",fontSize:14,fontWeight:500}},{children:z})),null!=B&&i(v,e({sx:{mt:.125,color:"text.secondary",fontSize:12}},{children:B})),i(m,{sx:{my:.625}}),null!=_&&i(v,e({component:"div",sx:{color:"text.secondary",fontSize:11.5,lineHeight:1.3}},{children:_}))]}),r(b,e({spacing:.625,role:"radiogroup","aria-label":"Label options"},{children:[se.map(function(o,t){var n=xe===t;return r(f,e({variant:"outlined",sx:w({borderColor:n?"secondary.main":"divider",borderRadius:2,overflow:"hidden"},null==ce?void 0:ce.option)},{children:[r(u,e({role:"radio","aria-checked":n,disabled:o.disabled,onClick:function(){return function(e,o){o.disabled||(void 0===j&&pe(e),null==M||M(e,o))}(t,o)},sx:{width:"100%",justifyContent:"flex-start",px:.75,py:.5,textAlign:"left"}},{children:[i(h,{checked:n,disabled:o.disabled,tabIndex:-1,size:"small",sx:{p:.25,mr:.5}}),r(c,e({sx:{minWidth:0}},{children:[i(v,e({sx:{color:"text.primary",fontSize:12.5,fontWeight:500}},{children:o.title})),null!=o.description&&i(v,e({sx:{mt:.125,color:"text.secondary",fontSize:11}},{children:o.description}))]}))]})),n&&o.requiresInput&&i(c,e({sx:{px:1.75,pb:1.5,pl:5.75}},{children:i(x,{autoFocus:!0,fullWidth:!0,size:"small",value:ve,placeholder:o.inputPlaceholder,inputProps:{"aria-label":V},onChange:function(e){return o=e.target.value,void 0===R&&be(o),void(null==N||N(o));var o},onKeyDown:function(e){"Enter"===e.key&&we()},sx:null==ce?void 0:ce.customInput})}))]}),o.id)}),i(s,e({variant:"contained",fullWidth:!0,disabled:ye,onClick:we,sx:w({minHeight:32,mt:.25,borderRadius:2,fontSize:13,fontWeight:600,textTransform:"none",backgroundColor:"#5925DC","&:hover":{backgroundColor:"#4A1FB8"},"&.Mui-disabled":{backgroundColor:"#D9D6FE",color:"#FFFFFF"}},null==ce?void 0:ce.confirmButton)},{children:J}))]})),i(b,e({spacing:.625,sx:null==ce?void 0:ce.footer},{children:$&&r(t,{children:[i(m,{}),r(u,e({onClick:O,disabled:!O,sx:{justifyContent:"space-between",borderRadius:1,textAlign:"left",cursor:O?"pointer":"not-allowed"}},{children:[r(b,e({direction:"row",alignItems:"center",spacing:1},{children:[i(g,{sx:{color:"text.secondary"}}),i(v,e({sx:{color:"text.primary",fontSize:12}},{children:Y}))]})),r(b,e({direction:"row",alignItems:"center",spacing:.75},{children:[i(C,{score:F}),i(a,{sx:{color:"text.secondary",fontSize:18}})]}))]}))]})}))]}))}))}export{S as createLabelCheckOptions,I as default,L as isLabelReviewAction};
|
|
2
2
|
//# sourceMappingURL=LabelCheck.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoundaryCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/BoundaryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAc1D,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EA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MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,UAA6B,EAC7B,KAAK,EACL,MAAM,EACN,OAAO,EACP,cAAc,EACd,MAAM,EACN,QAAQ,EACR,aAAa,EACb,oBAA2B,EAC3B,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,YAAwB,EACxB,YAA8C,EAC9C,iBAAqC,EACrC,cAAsC,EACtC,kBAAyB,EACzB,sBAA6B,EAC7B,eAAsB,EACtB,eAAuB,EACvB,KAAW,EACX,QAAc,EACd,SAAS,EACT,MAAM,GACP,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"BoundaryCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/SegmentReviewComponents/BoundaryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAc1D,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAa3D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,WAAW,CAAC;AAEhB,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,YAAY,EAAE,SAAS,oBAAoB,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EA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