PageSourceSearch

https://webapp.education.doctustech.com/_next/static/chunks/6411.6394bc10535aa031.js

js doctustech.com collected 2026-10-04 02:42:54 UTC 37,595 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7d2af067-5d58-47b6-87df-b10f97f47b1f",e._sentryDebugIdIdentifier="sentry-dbid-7d2af067-5d58-47b6-87df-b10f97f47b1f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6411],{46457:(e,t,o)=>{var n=o(24994);t.A=void 0;var i=n(o(44888)),r=o(74848);t.A=(0,i.default)((0,r.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark")},28590:(e,t,o)=>{o.d(t,{A:()=>v});var n,i=o(98587),r=o(58168),l=o(96540),a=o(34164),s=o(75659),d=o(97306),c=o(42413),p=o(20928),x=o(16620),u=o(3552),g=o(38413),h=o(31609);function m(e){return(0,h.Ay)("MuiInputAdornment",e)}let f=(0,g.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b=o(98301),A=o(74848);let C=["children","className","component","disablePointerEvents","disableTypography","position","variant"],k=e=>{let{classes:t,disablePointerEvents:o,hiddenLabel:n,position:i,size:r,variant:l}=e,a={root:["root",o&&"disablePointerEvents",i&&"position".concat((0,d.A)(i)),l,n&&"hiddenLabel",r&&"size".concat((0,d.A)(r))]};return(0,s.A)(a,m,t)},j=(0,u.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t["position".concat((0,d.A)(o.position))],!0===o.disablePointerEvents&&t.disablePointerEvents,t[o.variant]]}})(e=>{let{theme:t,ownerState:o}=e;return(0,r.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===o.variant&&{["&.".concat(f.positionStart,"&:not(.").concat(f.hiddenLabel,")")]:{marginTop:16}},"start"===o.position&&{marginRight:8},"end"===o.position&&{marginLeft:8},!0===o.disablePointerEvents&&{pointerEvents:"none"})}),v=l.forwardRef(function(e,t){let o=(0,b.b)({props:e,name:"MuiInputAdornment"}),{children:s,className:d,component:u="div",disablePointerEvents:g=!1,disableTypography:h=!1,position:m,variant:f}=o,v=(0,i.A)(o,C),w=(0,x.A)()||{},F=f;f&&w.variant,w&&!F&&(F=w.variant);let y=(0,r.A)({},o,{hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:g,position:m,variant:F}),S=k(y);return(0,A.jsx)(p.A.Provider,{value:null,children:(0,A.jsx)(j,(0,r.A)({as:u,ownerState:y,className:(0,a.A)(S.root,d),ref:t},v,{children:"string"!=typeof s||h?(0,A.jsxs)(l.Fragment,{children:["start"===m?n||(n=(0,A.jsx)("span",{className:"notranslate",children:"​"})):null,s]}):(0,A.jsx)(c.A,{color:"text.secondary",children:s})}))})})},96984:(e,t,o)=>{o.d(t,{A:()=>m});var n=o(74848),i=o(58349);o(96540);let r=()=>(0,n.jsx)("svg",{width:"36",height:"37",viewBox:"0 0 36 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M17.999 4.18701C15.1065 4.18701 12.2789 5.04475 9.87381 6.65177C7.46875 8.25878 5.59422 10.5429 4.48729 13.2153C3.38036 15.8876 3.09074 18.8282 3.65505 21.6652C4.21935 24.5022 5.61225 27.1081 7.65759 29.1534C9.70294 31.1988 12.3089 32.5917 15.1458 33.156C17.9828 33.7203 20.9234 33.4307 23.5958 32.3237C26.2681 31.2168 28.5523 29.3423 30.1593 26.9372C31.7663 24.5322 32.624 21.7046 32.624 18.812C32.6199 14.9345 31.0778 11.2169 28.3359 8.4751C25.5941 5.73326 21.8766 4.19111 17.999 4.18701ZM17.999 31.187C15.5515 31.187 13.1589 30.4612 11.1238 29.1014C9.08879 27.7417 7.50265 25.809 6.56602 23.5477C5.62939 21.2865 5.38432 18.7983 5.86181 16.3978C6.3393 13.9973 7.51791 11.7922 9.24858 10.0616C10.9793 8.33089 13.1843 7.15229 15.5848 6.67479C17.9853 6.1973 20.4735 6.44237 22.7347 7.379C24.996 8.31564 26.9287 9.90177 28.2885 11.9368C29.6482 13.9719 30.374 16.3645 30.374 18.812C30.3703 22.0929 29.0653 25.2384 26.7454 27.5583C24.4254 29.8783 21.2799 31.1833 17.999 31.187ZM20.249 25.562C20.249 25.8604 20.1305 26.1465 19.9195 26.3575C19.7085 26.5685 19.4224 26.687 19.124 26.687C18.5273 26.687 17.955 26.45 17.533 26.028C17.1111 25.606 16.874 25.0337 16.874 24.437V18.812C16.5757 18.812 16.2895 18.6935 16.0785 18.4825C15.8676 18.2715 15.749 17.9854 15.749 17.687C15.749 17.3886 15.8676 17.1025 16.0785 16.8915C16.2895 16.6805 16.5757 16.562 16.874 16.562C17.4708 16.562 18.0431 16.7991 18.465 17.221C18.887 17.643 19.124 18.2153 19.124 18.812V24.437C19.4224 24.437 19.7085 24.5555 19.9195 24.7665C20.1305 24.9775 20.249 25.2636 20.249 25.562ZM15.749 12.6245C15.749 12.2908 15.848 11.9645 16.0334 11.687C16.2188 11.4095 16.4824 11.1932 16.7908 11.0655C17.0991 10.9377 17.4384 10.9043 17.7657 10.9694C18.0931 11.0345 18.3938 11.1953 18.6298 11.4313C18.8658 11.6673 19.0265 11.968 19.0916 12.2953C19.1567 12.6226 19.1233 12.9619 18.9956 13.2703C18.8679 13.5786 18.6516 13.8422 18.3741 14.0276C18.0965 14.213 17.7703 14.312 17.4365 14.312C16.989 14.312 16.5598 14.1342 16.2433 13.8178C15.9268 13.5013 15.749 13.0721 15.749 12.6245Z",fill:"#969DA1"})});var l=o(3508),a=o(17319),s=o(2424),d=o(66903),c=o(37915),p=o(64543),x=o(18826),u=o(36277),g=o(8022);let h=(0,x.n9)()(e=>({dialogWrapper:{"& .MuiDialog-paper":{borderRadius:"12px",padding:"16px",minWidth:"300px",maxWidth:"400px",display:"flex",justifyContent:"center",alignItems:"center",gap:"16px",[e.breakpoints.down("sm")]:{minWidth:"300px",margin:"16px"}}},dialogIcon:{display:"flex",justifyContent:"center",alignItems:"center",width:"64px",height:"64px",borderRadius:"50%"},dialogTitle:{fontSize:"20px",fontWeight:600,textAlign:"center",color:"#242629",marginBottom:"8px"},dialogDesc:{fontSize:"16px",fontWeight:400,textAlign:"center",color:"#8392A5"},dialogActionsRow:{display:"flex",flexDirection:"row",gap:"12px",justifyContent:"center",padding:"0px"},bottomActionBtn:{minWidth:"120px",height:"44px",borderRadius:"3px",textTransform:"none",fontSize:"14px",fontWeight:600,border:"1px solid ",boxShadow:"none"},dialogContent:{padding:"0px"},bottomActionBtnNext:{backgroundColor:"#fff",color:"#5C6469","&:hover":{backgroundColor:"#fff"}}})),m=(0,u.PA)(function(e){let{open:t,onClose:o,onConfirm:x,confirmBtnLoading:u=!1}=e,{classes:m,cx:f}=h();return(0,n.jsxs)(l.A,{open:t,onClose:o,"aria-labelledby":"remove-bookmark-dialog-title",className:m.dialogWrapper,onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)(a.A,{id:"remove-bookmark-dialog-title",sx:{padding:"0px"},children:[(0,n.jsx)(s.A,{"aria-label":"close",onClick:e=>{e.stopPropagation(),o()},style:{position:"absolute",right:8,top:8},children:(0,n.jsx)(i.A,{})}),(0,n.jsx)("div",{className:m.dialogIcon,children:(0,n.jsx)(r,{})})]}),(0,n.jsxs)(d.A,{className:m.dialogContent,children:[(0,n.jsx)(c.A,{className:m.dialogTitle,children:"Are you sure, you want to remove bookmark?"}),(0,n.jsx)(c.A,{className:m.dialogDesc,children:"To removed this question from bookmarks, please click on below button."})]}),(0,n.jsx)(p.A,{className:m.dialogActionsRow,children:(0,n.jsx)(g.A,{loading:u,className:f(m.bottomActionBtn,m.bottomActionBtnNext),disabled:u,onClick:x,variant:"contained",children:"Remove Bookmark"})})]})})},48667:(e,t,o)=>{o.d(t,{A:()=>p});var n=o(74848),i=o(4743),r=o(41917),l=o(14818),a=o(96540);let s=e=>{if("string"==typeof e){let t=document.createElement("div");return t.innerHTML=e,t.innerText||""}return"number"==typeof e?String(e):null==e?"":Array.isArray(e)?e.map(s).join(""):a.isValidElement(e)?s(e.props.children):""},d=(e,t)=>{let o=document.createElement("div");o.innerHTML=e;let n=0,i=!1,r="";for(let e=0;e<o.childNodes.length&&!i;e++)r+=function e(o){if(i)return"";if(o.nodeType===Node.TEXT_NODE){let e=o.textContent||"";if(!e.trim())return e;let r=e.trim().split(/\s+/);if(n+r.length<=t)return n+=r.length,e;{let o=t-n;if(o>0){let r="",l=0;for(let t of e.split(/(\s+)/))if(t.trim()){if(l<o)r+=t,l++;else break}else r+=t;return n=t,i=!0,r+"..."}return i=!0,""}}
1if(o.nodeType===Node.ELEMENT_NODE){let t=o.tagName.toLowerCase(),n="<".concat(t);for(let e=0;e<o.attributes.length;e++){let t=o.attributes[e];n+=" ".concat(t.name,'="').concat(t.value,'"')}n+=">";let r="";for(let t=0;t<o.childNodes.length&&!i;t++)r+=e(o.childNodes[t]);return n+=r,n+="</".concat(t,">")}return""}(o.childNodes[e]);return r},c=(0,o(18826).n9)()(e=>({container:{wordBreak:"break-word",overflowWrap:"break-word"},content:{wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",display:"inline","& *":{wordBreak:"break-word",overflowWrap:"break-word"}},button:{color:"#2ABDF0",textTransform:"none",padding:0,minWidth:"auto",marginLeft:"4px",verticalAlign:"baseline",":hover":{backgroundColor:"transparent"}}})),p=e=>{let{text:t,maxWords:o,disableExpand:p=!1}=e,[x,u]=(0,a.useState)(!1),[g,h]=(0,a.useState)(0),m=(0,a.useRef)(null),{classes:f,cx:b}=c();(0,a.useEffect)(()=>{h(s(t).trim().split(/\s+/).filter(e=>e.length>0).length)},[t]);let A=(0,a.useMemo)(()=>!(g>o)||x?t:"string"==typeof t?d(t,o):s(t).trim().split(/\s+/).filter(e=>e.length>0).slice(0,o).join(" ")+"...",[t,o,x,g]),C=g>o,k="string"==typeof t&&t.includes("<");return(0,n.jsxs)(i.A,{className:f.container,children:[k&&"string"==typeof A?(0,n.jsx)(i.A,{ref:m,component:"span",className:f.content,dangerouslySetInnerHTML:{__html:A}}):(0,n.jsx)(i.A,{ref:m,component:"span",className:f.content,children:A}),C&&(0,n.jsx)(r.A,{disabled:p,variant:"text",type:"button",disableFocusRipple:!0,disableTouchRipple:!0,disableElevation:!0,className:f.button,onClick:p?void 0:e=>{e.stopPropagation(),u(!x)},children:x?"":l.P.general.readMore})]})}},18792:(e,t,o)=>{o.r(t),o.d(t,{default:()=>ei});var n=o(74848),i=o(4743),r=o(42413),l=o(68647),a=o(32608),s=o(36277),d=o(96540),c=o(85692),p=o(18826),x=o(42907),u=o(15327),g=o(53384),h=o(41917),m=o(58349),f=o(97416),b=o(80913),A=o(79219),C=o(62373),k=o(46968),j=o(35820),v=o(12515),w=o(97387),F=o(28590),y=o(2424),S=o(54798),E=o(82163),N=o(35596);let P=(0,N.A)((e,t)=>{e.getLearningPoints(t)},500),M=(0,p.n9)()(e=>({formRoot:{maxWidth:150,minWidth:150,width:"fit-content",color:"#5C6469","& .MuiFormControl-root":{borderRadius:"8px"},"& .MuiInputLabel-root":{color:"#5C6469 !important",fontWeight:600,fontSize:"14px",lineHeight:"16px"},[e.breakpoints.down("md")]:{width:"stretch",maxWidth:"unset",minWidth:"75px","& .MuiInputLabel-root":{color:"#5C6469 !important",fontWeight:600,fontSize:"12px",lineHeight:"14px"}}},root:{backgroundColor:"#FFFF",borderRadius:"8px",fontSize:"20px",lineHeight:"30px","& .MuiSelect-icon":{top:"calc(45% - 0.1em)"},"& .MuiFilledInput-input":{padding:"18px 6px 3px 9px"},"& .MuiSelect-filled":{fontSize:"16px",fontWeight:600,border:"1px solid #E1E1E1",color:"#242629",backgroundColor:"#FFFF",borderRadius:"8px",textTransform:"capitalize","&:hover":{backgroundColor:"#FFFF",color:"#242629"},"& .Mui-focused":{backgroundColor:"#FFFF",borderRadius:"8px",color:"#242629"},[e.breakpoints.down("md")]:{fontSize:"12px",lineHeight:"21px"}},"& .Mui-disabled":{backgroundColor:"#F5F7F6 !important"}},valueSelected:{color:"#E1E1E1",borderRadius:"8px","& .MuiInputLabel-root":{color:"#E1E1E1 !important"},"& .MuiSelect-iconFilled":{color:"#E1E1E1"},"& .MuiSelect-filled":{backgroundColor:"#0D426A",borderRadius:"8px",color:"#E1E1E1","&:hover":{backgroundColor:"#0D426A",color:"#E1E1E1"},"& .Mui-focused":{color:"#E1E1E1",backgroundColor:"#0D426A",borderRadius:"8px"},[e.breakpoints.down("md")]:{fontSize:"12px",lineHeight:"21px"}},"& .MuiSelect-focused":{backgroundColor:"#0D426A"},"& .Mui-focused":{color:"#E1E1E1",backgroundColor:"#0D426A",borderRadius:"8px"}},drawer:{width:"100%",height:"fit-content",borderRadius:"25px 25px 0px 0px",padding:"25px 25px 10px 25px",bottom:0},drawerTitle:{fontSize:"16px",fontWeight:700,color:"#000000"}})),z=(0,s.PA)(e=>{var t;let{selectedLearningPoint:o,onChange:s}=e,{classes:c,cx:p}=M(),{bookmarkStore:h}=(0,a.gy)(),[N,z]=(0,d.useState)(!1),[I,W]=(0,d.useState)(""),[R,L]=d.useState(null),D=(0,d.useRef)(null),H=(0,x.A)(),B=(0,u.A)(H.breakpoints.down("sm"));(0,d.useEffect)(()=>(P(h,I),P.cancel),[h,I]);let T=e=>{let{value:t}=e.target;s(o.includes(t)?o.filter(e=>e!==t):[...o,t])},q=()=>{z(!1),L(null),W(""),D.current&&(D.current.value="")},_=e=>{e.preventDefault(),W(e.target.value)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(A.A,{className:p(c.formRoot,{[c.valueSelected]:o.length>0}),variant:"filled",children:[(0,n.jsx)(C.A,{id:"program-select-label",sx:{fontSize:11},className:p({[c.valueSelected]:o.length>0}),children:"Learning Points"}),(0,n.jsxs)(k.A,{onOpen:e=>{L(e.currentTarget),z(!0),h.getLearningPoints(I||"")},open:!1,native:!1,labelId:"program-select-label",id:"program-select",value:o.length>0?o:["all"],multiple:!0,onChange:T,disableUnderline:!0,IconComponent:f.A,renderValue:e=>1===e.length&&"all"===e[0]?"All":"".concat(e.length," selected"),className:p(c.root,{[c.valueSelected]:o.length>0}),children:[(0,n.jsx)(j.A,{value:"all",sx:{},children:"All"}),null===(t=h.filterLearningPointsList)||void 0===t?void 0:t.map(e=>(0,n.jsx)(j.A,{value:e,children:e},e))]})]}),B?(0,n.jsx)(v.Ay,{PaperProps:{className:c.drawer},anchor:"bottom",open:N,onClose:q,children:(0,n.jsxs)(g.A,{direction:"column",gap:"8px",children:[(0,n.jsxs)(g.A,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(r.A,{className:c.drawerTitle,children:"Select Learning Points"}),(0,n.jsx)(m.A,{onClick:q})]}
1),(0,n.jsx)(w.A,{ref:D,color:"secondary",onChange:_,onClick:e=>e.stopPropagation(),placeholder:"Search Learning Points",endAdornment:(0,n.jsx)(F.A,{position:"end",children:(0,n.jsx)(y.A,{edge:"end",children:(0,n.jsx)(b.A,{})})})}),(0,n.jsx)(g.A,{direction:"column",sx:{overflowY:"auto",height:"fit-content",width:"stretch"},children:h.filterLearningPointsList.length>0?h.filterLearningPointsList.map(e=>(0,n.jsxs)(g.A,{justifyContent:"flex-start",alignItems:"center",direction:"row",gap:"6px",autoFocus:!1,onClick:()=>T({target:{value:e}}),children:[(0,n.jsx)(S.A,{color:"secondary",checked:o.includes(e)}),(0,n.jsx)(i.A,{children:e})]},e)):(0,n.jsx)(n.Fragment,{children:h.loadingStates.get("learningPoints")?(0,n.jsx)(l.A,{variant:"rectangular",height:50}):"No Learning Points Found"})})]})}):(0,n.jsx)(E.Ay,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},id:"program-select-menu",anchorEl:R,open:N,onClose:q,children:(0,n.jsxs)(g.A,{direction:"column",gap:"8px",p:"16px",children:[(0,n.jsx)(w.A,{ref:D,color:"secondary",onChange:_,onClick:e=>e.stopPropagation(),placeholder:"Search Learning Point",endAdornment:(0,n.jsx)(F.A,{position:"end",children:(0,n.jsx)(y.A,{edge:"end",children:(0,n.jsx)(b.A,{})})})}),(0,n.jsx)(g.A,{direction:"column",sx:{overflowY:"auto",maxHeight:"260px",width:"stretch"},children:h.filterLearningPointsList.length>0?h.filterLearningPointsList.map(e=>(0,n.jsxs)(g.A,{justifyContent:"flex-start",alignItems:"center",direction:"row",gap:"6px",autoFocus:!1,onClick:()=>T({target:{value:e}}),children:[(0,n.jsx)(S.A,{color:"secondary",checked:o.includes(e)}),(0,n.jsx)(i.A,{children:e})]},e)):(0,n.jsx)(n.Fragment,{children:h.loadingStates.get("learningPoints")?(0,n.jsx)(l.A,{variant:"rectangular",height:50}):"No Learning Points Found"})})]})})]})}),I=(0,N.A)((e,t)=>{e.listPrograms(t)},500),W=(0,p.n9)()(e=>({formRoot:{maxWidth:150,minWidth:150,width:"fit-content",color:"#5C6469","& .MuiFormControl-root":{borderRadius:"8px"},"& .MuiInputLabel-root":{color:"#5C6469 !important",fontWeight:600,fontSize:"14px",lineHeight:"16px"},[e.breakpoints.down("md")]:{width:"stretch",maxWidth:"unset",minWidth:"75px","& .MuiInputLabel-root":{color:"#5C6469 !important",fontWeight:600,fontSize:"12px",lineHeight:"14px"}}},root:{backgroundColor:"#FFFF",borderRadius:"8px",fontSize:"20px",lineHeight:"30px","& .MuiSelect-icon":{top:"calc(45% - 0.1em)"},"& .MuiFilledInput-input":{padding:"18px 6px 3px 9px"},"& .MuiSelect-filled":{fontSize:"16px",fontWeight:600,border:"1px solid #E1E1E1",color:"#242629",backgroundColor:"#FFFF",borderRadius:"8px",textTransform:"capitalize","&:hover":{backgroundColor:"#FFFF",color:"#242629"},"& .Mui-focused":{backgroundColor:"#FFFF",borderRadius:"8px",color:"#242629"},[e.breakpoints.down("md")]:{fontSize:"12px",lineHeight:"21px"}},"& .Mui-disabled":{backgroundColor:"#F5F7F6 !important"}},valueSelected:{color:"#E1E1E1",borderRadius:"8px",".MuiInputLabel-root":{color:"#E1E1E1 !important"},"& .MuiSelect-iconFilled":{color:"#E1E1E1"},"& .MuiSelect-filled":{backgroundColor:"#0D426A",borderRadius:"8px",color:"#E1E1E1","&:hover":{backgroundColor:"#0D426A",color:"#E1E1E1"},"& .Mui-focused":{color:"#E1E1E1",backgroundColor:"#0D426A",borderRadius:"8px"}},"& .Mui-focused":{color:"#E1E1E1 !important",backgroundColor:"#0D426A !important",borderRadius:"8px"},"& .MuiSelect-focused":{backgroundColor:"#0D426A"}},drawer:{width:"100%",height:"fit-content",borderRadius:"25px 25px 0px 0px",padding:"25px 25px 10px 25px",bottom:0},drawerTitle:{fontSize:"16px",fontWeight:700,color:"#000000"}})),R=(0,s.PA)(e=>{let{selectedProgram:t,onChange:o}=e,{classes:s,cx:c}=W(),{bookmarkStore:p}=(0,a.gy)(),[h,j]=(0,d.useState)(!1),[N,P]=(0,d.useState)(""),[M,z]=d.useState(null),R=(0,d.useRef)(null),L=(0,x.A)(),D=(0,u.A)(L.breakpoints.down("sm"));(0,d.useEffect)(()=>(I(p,N),I.cancel),[p,N]);let H=e=>{let{value:n}=e.target;o(t.includes(n)?t.filter(e=>e!==n):[...t,n])},B=()=>{j(!1),z(null),P(""),R.current&&(R.current.value="")},T=e=>{e.preventDefault(),P(e.target.value)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(A.A,{className:c(s.formRoot,{[s.valueSelected]:t.length>0}),variant:"filled",children:[(0,n.jsx)(C.A,{id:"program-select-label",sx:{fontSize:11},className:c({[s.valueSelected]:t.length>0}),children:"Program Name"}),(0,n.jsx)(k.A,{onOpen:e=>{z(e.currentTarget),j(!0),p.listPrograms(N||"")},open:!1,native:!1,labelId:"program-select-label",id:"program-select",value:t.length>0?t:["all"],multiple:!0,onChange:H,disableUnderline:!0,IconComponent:f.A,renderValue:e=>1===e.length&&"all"===e[0]?"All":"".concat(e.length," selected"),className:c(s.root,{[s.valueSelected]:t.length>0})})]}),D?(0,n.jsx)(v.Ay,{PaperProps:{className:s.drawer},anchor:"bottom",open:h,onClose:B,children:(0,n.jsxs)(g.A,{direction:"column",gap:"8px",children:[(0,n.jsxs)(g.A,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(r.A,{className:s.drawerTitle,children:"Select Programs"}),(0,n.jsx)(m.A,{onClick:B})]}),(0,n.jsx)(w.A,{ref:R,color:"secondary",onChange:T,onClick:e=>e.stopPropagation(),placeholder:"Search Programs",endAdornment:(0,n.jsx)(F.A,{position:"end",children:(0,n.jsx)(y.A,{edge:"end",children:(0,n.jsx)(b.A,{})})})}),(0,n.jsx)(g.A,{direction:"column",sx:{overflowY:"auto",height:"fit-content",width:"stretch"},children:p.filterProgramList.length>0?p.filterProgramList.map(e=>(0,n.jsxs)(g.A,{justifyContent:"flex-start",alignItems:"center",direction:"row",gap:"6px",autoF
1ocus:!1,onClick:()=>H({target:{value:e.program_id}}),children:[(0,n.jsx)(S.A,{color:"secondary",checked:t.includes(e.program_id)}),(0,n.jsx)(i.A,{children:e.title})]},e.program_id)):(0,n.jsx)(n.Fragment,{children:p.loadingStates.get("programs")?(0,n.jsx)(l.A,{variant:"rectangular",height:50}):"No Programs Found"})})]})}):(0,n.jsx)(E.Ay,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},id:"program-select-menu",anchorEl:M,open:h,onClose:B,children:(0,n.jsxs)(g.A,{direction:"column",gap:"8px",p:"16px",children:[(0,n.jsx)(w.A,{ref:R,color:"secondary",onChange:T,onClick:e=>e.stopPropagation(),placeholder:"Search Program",endAdornment:(0,n.jsx)(F.A,{position:"end",children:(0,n.jsx)(y.A,{edge:"end",children:(0,n.jsx)(b.A,{})})})}),(0,n.jsx)(g.A,{direction:"column",sx:{overflowY:"auto",maxHeight:"260px",width:"stretch"},children:p.filterProgramList.length>0?p.filterProgramList.map(e=>(0,n.jsxs)(g.A,{justifyContent:"flex-start",alignItems:"center",direction:"row",gap:"6px",autoFocus:!1,onClick:()=>H({target:{value:e.program_id}}),children:[(0,n.jsx)(S.A,{color:"secondary",checked:t.includes(e.program_id)}),(0,n.jsx)(i.A,{children:e.title})]},e.program_id)):(0,n.jsx)(n.Fragment,{children:p.loadingStates.get("programs")?(0,n.jsx)(l.A,{variant:"rectangular",height:50}):"No Programs Found"})})]})})]})}),L=[{value:"TM",label:"Training"},{value:"SM",label:"Self Assessment"},{value:"CM",label:"Certification"}],D=(0,p.n9)()(e=>({formRoot:{maxWidth:150,minWidth:150,width:"fit-content",color:"#5C6469","& .MuiFormControl-root":{borderRadius:"8px"},"& .MuiInputLabel-root":{color:"#5C6469 !important",fontWeight:600,fontSize:"14px",lineHeight:"16px"},[e.breakpoints.down("md")]:{width:"stretch",maxWidth:"unset",minWidth:"75px","& .MuiInputLabel-root":{color:"#5C6469 !important",fontWeight:600,fontSize:"12px",lineHeight:"14px"}}},root:{backgroundColor:"#FFFF",borderRadius:"8px",fontSize:"20px",lineHeight:"30px","& .MuiSelect-icon":{top:"calc(45% - 0.1em)"},"& .MuiFilledInput-input":{padding:"18px 6px 3px 9px"},"& .MuiSelect-filled":{fontSize:"16px",fontWeight:600,border:"1px solid #E1E1E1",color:"#242629",backgroundColor:"#FFFF",borderRadius:"8px",textTransform:"capitalize","&:hover":{backgroundColor:"#FFFF",color:"#242629"},"& .Mui-focused":{backgroundColor:"#FFFF",borderRadius:"8px",color:"#242629"},[e.breakpoints.down("md")]:{fontSize:"12px",lineHeight:"21px"}},"& .Mui-disabled":{backgroundColor:"#F5F7F6 !important"}},valueSelected:{color:"#E1E1E1",borderRadius:"8px",".MuiInputLabel-root":{color:"#E1E1E1 !important"},"& .MuiSelect-iconFilled":{color:"#E1E1E1"},"& .MuiSelect-filled":{backgroundColor:"#0D426A",borderRadius:"8px",color:"#E1E1E1","&:hover":{backgroundColor:"#0D426A",color:"#E1E1E1"},"& .Mui-focused":{color:"#E1E1E1",backgroundColor:"#0D426A",borderRadius:"8px"}},"& .Mui-focused":{color:"#E1E1E1 !important",backgroundColor:"#0D426A !important",borderRadius:"8px"},"& .MuiSelect-focused":{backgroundColor:"#0D426A"}},drawer:{width:"100%",height:"fit-content",borderRadius:"25px 25px 0px 0px",padding:"25px 25px 10px 25px",bottom:0},drawerTitle:{fontSize:"16px",fontWeight:700,color:"#000000"}})),H=(0,s.PA)(e=>{let{selectedPhases:t,onChange:o}=e,{classes:l,cx:a}=D(),[s,c]=(0,d.useState)(!1),[p,h]=(0,d.useState)(null),b=(0,x.A)(),w=(0,u.A)(b.breakpoints.down("sm")),F=e=>{o(t.includes(e)?t.filter(t=>t!==e):[...t,e])},y=()=>{c(!1),h(null)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(A.A,{className:a(l.formRoot,{[l.valueSelected]:t.length>0}),variant:"filled",children:[(0,n.jsx)(C.A,{id:"phases-select-label",sx:{fontSize:11},className:a({[l.valueSelected]:t.length>0}),children:"Phases"}),(0,n.jsxs)(k.A,{onOpen:e=>{h(e.currentTarget),c(!0)},open:!1,native:!1,labelId:"phases-select-label",id:"phases-select",value:t.length>0?t:["all"],multiple:!0,disableUnderline:!0,IconComponent:f.A,renderValue:e=>1===e.length&&"all"===e[0]?"All":"".concat(e.length," selected"),className:a(l.root,{[l.valueSelected]:t.length>0}),children:[(0,n.jsx)(j.A,{value:"all",children:"All"}),L.map(e=>(0,n.jsx)(j.A,{value:e.value,children:e.label},e.value))]})]}),w?(0,n.jsx)(v.Ay,{PaperProps:{className:l.drawer},anchor:"bottom",open:s,onClose:y,children:(0,n.jsxs)(g.A,{direction:"column",gap:"8px",children:[(0,n.jsxs)(g.A,{width:"100%",direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(r.A,{className:l.drawerTitle,children:"Select Phases"}),(0,n.jsx)(m.A,{onClick:y}
1)]}),(0,n.jsx)(g.A,{direction:"column",sx:{overflowY:"auto",height:"fit-content",width:"stretch"},children:L.map(e=>(0,n.jsxs)(g.A,{justifyContent:"flex-start",alignItems:"center",direction:"row",gap:"6px",autoFocus:!1,onClick:()=>F(e.value),children:[(0,n.jsx)(S.A,{color:"secondary",checked:t.includes(e.value)}),(0,n.jsx)(i.A,{children:e.label})]},e.value))})]})}):(0,n.jsx)(E.Ay,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},id:"phases-select-menu",anchorEl:p,open:s,onClose:y,children:(0,n.jsx)(g.A,{direction:"column",gap:"8px",p:"16px",children:(0,n.jsx)(g.A,{direction:"column",sx:{overflowY:"auto",maxHeight:"260px",width:"stretch"},children:L.map(e=>(0,n.jsxs)(g.A,{justifyContent:"flex-start",alignItems:"center",direction:"row",gap:"6px",autoFocus:!1,onClick:()=>F(e.value),children:[(0,n.jsx)(S.A,{color:"secondary",checked:t.includes(e.value)}),(0,n.jsx)(i.A,{children:e.label})]},e.value))})})})]})}),B=(0,s.PA)(()=>{let{bookmarkStore:e}=(0,a.gy)(),t=(0,x.A)();(0,u.A)(t.breakpoints.down("sm"));let o=[0!==e.programsNameFilter.length,0!==e.learningPointsFilter.length,0!==e.phasesFilter.length].some(e=>e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"stretch"},children:(0,n.jsxs)(i.A,{sx:{width:"stretch",display:"flex",gap:{xs:"4px",md:"8px"}},children:[(0,n.jsx)(R,{onChange:t=>e.setProgramsName(t||[]),selectedProgram:e.programsNameFilter}),(0,n.jsx)(z,{selectedLearningPoint:e.learningPointsFilter,onChange:t=>e.setLearningPointsFilter(t)}),(0,n.jsx)(H,{selectedPhases:e.phasesFilter,onChange:t=>e.setPhasesFilter(t)})]})}),(0,n.jsxs)(g.A,{direction:"row",alignItems:"center",children:[(0,n.jsxs)(r.A,{variant:"body2",sx:{fontSize:"12px",lineHeight:"13px",color:"rgba(5, 65, 104, 1)"},children:["Showing ",(0,n.jsx)("b",{children:e.bookmarkCount})," results"]}),o&&(0,n.jsx)(r.A,{sx:{marginLeft:"5px"},children:"|"}),o&&(0,n.jsx)(h.A,{onClick:()=>{e.resetFilters()},sx:{marginLeft:"5px",width:"fit-content",color:"#2ABDF0",fontSize:"12px",lineHeight:"13px",fontFamily:"Proxima Nova",textTransform:"none",padding:"0",minWidth:"31px"},children:"Reset"})]})]})}),T=()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M11.5 2.0005H4.5C4.23478 2.0005 3.98043 2.10586 3.79289 2.2934C3.60536 2.48093 3.5 2.73529 3.5 3.0005V14.0005C3.50004 14.0897 3.52397 14.1773 3.56929 14.2542C3.6146 14.3311 3.67967 14.3944 3.75772 14.4376C3.83578 14.4809 3.92399 14.5024 4.01319 14.5001C4.10239 14.4977 4.18933 14.4715 4.265 14.4243L8 12.0899L11.7356 14.4243C11.8113 14.4714 11.8982 14.4974 11.9873 14.4997C12.0764 14.502 12.1645 14.4804 12.2424 14.4372C12.3204 14.3939 12.3854 14.3307 12.4307 14.2539C12.4759 14.1771 12.4999 14.0896 12.5 14.0005V3.0005C12.5 2.73529 12.3946 2.48093 12.2071 2.2934C12.0196 2.10586 11.7652 2.0005 11.5 2.0005Z",fill:"black"})});var q=o(48667),_=o(29382),O=o(96984),V=o(23421),Q=o(17867);let Y=(0,p.n9)()(e=>({container:{width:"stretch",padding:"16px",gap:"10px",borderRadius:"8px",border:"1px solid #E1E1E1",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",cursor:"pointer",backgroundColor:"#FCFCFC"},titleContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"stretch",gap:"10px"},questionHeading:{fontSize:"18px",fontWeight:700,lineHeight:"26px",textAlign:"left",color:"#5C6469",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",flex:1,[e.breakpoints.down("md")]:{fontSize:"16px",lineHeight:"24px"}},bookmarkIcon:{cursor:"pointer",color:"#5C6469"},questionStats:{fontSize:"12px",fontWeight:600,lineHeight:"18px",textAlign:"left",textTransform:"uppercase",[e.breakpoints.down("md")]:{fontSize:"10px"}},questionDetailContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"flex-start",gap:"5px",flexWrap:"wrap"},questionType:{fontSize:"14px",fontWeight:600,lineHeight:"17px",textAlign:"left",padding:"4px 12px 4px 12px",borderRadius:"25px",color:"#D09C16",backgroundColor:"#FFF1CC",border:"1px solid #FFD363",whiteSpace:"nowrap",[e.breakpoints.down("md")]:{fontSize:"12px",padding:"4px 8px 4px 8px",lineHeight:"15px"}},learningPoint:{fontSize:"14px",fontWeight:600,lineHeight:"17px",textAlign:"left",padding:"4px 12px 4px 12px",borderRadius:"25px",color:"#2ABDF0",backgroundColor:"#E5F8FF",border:"1px solid #70DAFF",whiteSpace:"nowrap",[e.breakpoints.down("md")]:{fontSize:"12px",padding:"4px 8px 4px 8px",lineHeight:"15px"}},questionText:{fontSize:"16px",fontWeight:400,lineHeight:"24px",textAlign:"left",color:"#242629",[e.breakpoints.down("md")]:{fontSize:"14px",lineHeight:"21px"}},date:{fontSize:"14px",fontWeight:"400",lineHeight:"21px",textAlign:"left",color:"#8392A5",[e.breakpoints.down("md")]:{fontSize:"12px",lineHeight:"18px"}}})),Z=(0,s.PA)(e=>{let{question:t}=e,{classes:o,cx:r}=Y(),l=(0,x.A)(),s=(0,u.A)(l.breakpoints.down("sm")),[c,p]=(0,d.useState)(!1),[g,h]=(0,d.useState)(!1),{bookmarkStore:m}=(0,a.gy)(),{enqueueSnackbar:f}=(0,V.dh)(),b=t.title,A=async()=>{h(!0);try{await m.removeBookmark(t.question.question_id),p(!1),f("Question unbookmarked!",{variant:"success"})}catch(e){console.error("Error removing bookmark:",e)}finally{h(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.A,{className:r(o.container),children:[(0,n.jsxs)(i.A,{className:o.titleContainer,children:[(0,n.jsx)(i.A,{className:o.questionHeading,children:b}),(0,n.jsx)(y.A,{className:o.bookmarkIcon,onClick:e=>{e.stopPropagation(),p(!0)},size:"small",children:(0,n.jsx)(T,{})})]}),(0,n.jsxs)(i.A,{className:o.questionDetailContainer,children:[(0,n.jsx)(i.A,{className:o.questionType,children:"Program"}),t.question.learning_point.length>0&&(0,n.jsx)(i.A,{className:o.learningPoint,children:t.question.learning_point[0]})]}),(0,n.jsx)(i.A,{className:o.questionText,children:(0,n.jsx)(q.A,{text:(0,Q.W)(t.question.question),maxWords:s?20:40})}),(0,n.jsx)(i.A,{className:o.date,children:t.added_on?(0,_.GP)(new Date(t.added_on),"MMM d, yyyy h:mm aaa"):null})]}),(0,n.jsx)(O.A,{open:c,onClose:()=>{p(!1)},onConfirm:A,confirmBtnLoading:g})]})});var U=o(29965),$=o.n(U);let G=(0,p.n9)()(()=>({NoFiltersPlaceholderContainer:{textAlign:"center",border:"1px solid #E7E7E7",borderRadius:"8px",backgroundColor:"#FBFBFB",width:"stretch",color:"#5C6469"},description:{color:"#5C6469",textAlign:"center"}})),X=(0,s.PA)(e=>{let{}=e,{classes:t}=G(),{bookmarkStore:o}=(0,a.gy)(),l=[0!==o.programsNameFilter.length,0!==o.learningPointsFilter.length,0!==o.phasesFilter.length].some(e=>e);return(0,n.jsxs)(i.A,{py:9,className:t.NoFiltersPlaceholderContainer,children:[(0,n.jsx)($(),{src:l?"/images/no-data.svg":"/images/no-data-2.svg",alt:"No Data",height:187,width:233}),(0,n.jsx)(r.A,{component:"h6",gutterBottom:!0,fontWeight:"700",className:t.description,children:l?"No Results Found":"You haven’t Bookmarked a Question in Selected Learning Point"}),(0,n.jsx)(r.A,{sx:{width:{xs:"80%",md:"400px"},margin:"auto"},variant:"h5",fontWeight:"400",gutterBottom:!0,className:t.description,children:l?"Adjust your filters or try different criteria to find what you're looking for."
1:"It looks like you haven't bookmarked a question that matches selected filter.."})]})});var J=o(46457),K=o(61812),ee=o(87494);let et=(0,p.n9)()(e=>({root:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",gap:"16px",padding:"30px"},backtoQuestions:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",gap:"16px",fontWeight:700,fontSize:"16px",lineHeight:"24px"},titleContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"16px"},title:{fontSize:"24px",fontWeight:700,lineHeight:"29.23px",textAlign:"left",flex:1},bookmarkIcon:{cursor:"pointer",color:"#5C6469"},question:{width:"100%",fontSize:"16px",fontWeight:400,lineHeight:"24px",textAlign:"left",color:"#000000",wordWrap:"break-word"},optionsContainer:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",width:"50%",[e.breakpoints.down("md")]:{width:"stretch"}}})),eo=(0,s.PA)(()=>{let{classes:e}=et(),{bookmarkStore:t}=(0,a.gy)(),[o,r]=(0,d.useState)([]),[l,s]=(0,d.useState)(!1),[c,p]=(0,d.useState)(!1),{enqueueSnackbar:x}=(0,V.dh)(),u=t.selectedBookmark;if(!u)return null;let g=async()=>{p(!0);try{await t.removeBookmark(u.question.question_id),s(!1),t.setSelectedBookmark(null),x("Question unbookmarked!",{variant:"success"})}catch(e){console.error("Error removing bookmark:",e)}finally{p(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.A,{className:e.root,children:[(0,n.jsxs)(i.A,{className:e.backtoQuestions,children:[(0,n.jsx)($(),{style:{cursor:"pointer"},src:"/images/Icons/BackArrow.svg",alt:"back",width:16,height:16,onClick:()=>t.setSelectedBookmark(null)}),(0,n.jsx)(i.A,{children:"Back to questions"})]}),(0,n.jsxs)(i.A,{className:e.titleContainer,children:[(0,n.jsx)(i.A,{className:e.title,children:"Question Detail"}),(0,n.jsx)(y.A,{className:e.bookmarkIcon,onClick:e=>{e.stopPropagation(),s(!0)},size:"small",children:(0,n.jsx)(J.A,{})})]}),(0,n.jsx)(i.A,{className:e.question,children:(0,ee.W)(u.question.question)}),(0,n.jsx)(i.A,{className:e.optionsContainer,children:(0,n.jsx)(K.A,{choices:u.question.choices,explanations:u.question.explanation,correctAnswer:u.question.answer,multiple:u.question.isMultipleChoice,selected:o,onChange:()=>{},interactive:!1})})]}),(0,n.jsx)(O.A,{open:l,onClose:()=>{s(!1)},onConfirm:g,confirmBtnLoading:c})]})}),en=(0,p.n9)()(e=>({container:{padding:"30px",display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",gap:"16px",[e.breakpoints.down("md")]:{padding:"20px",gap:"12px"}},titleWrapper:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start"},title:{fontSize:"24px",fontWeight:700,lineHeight:"29.23px",textAlign:"left",color:"#0D426A",[e.breakpoints.down("md")]:{fontSize:"18px",lineHeight:"23px"}},subTitle:{fontSize:"14px",fontWeight:400,lineHeight:"21px",textAlign:"left",color:"#2A2A2A",[e.breakpoints.down("md")]:{fontSize:"12px",lineHeight:"18px"}},questionWrapper:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",gap:"10px",width:"stretch"}})),ei=(0,s.PA)(()=>{var e,t,o;let{classes:s}=en(),{bookmarkStore:p}=(0,a.gy)(),[x,u]=(0,c.Wx)();return((0,d.useEffect)(()=>{p.getBookmarks({page:1,page_size:10,learning_point:p.learningPointsFilter||[],programs:p.programsNameFilter||[],phases:p.phasesFilter||[]})},[p,null===(e=p.learningPointsFilter)||void 0===e?void 0:e.length,null===(t=p.programsNameFilter)||void 0===t?void 0:t.length,null===(o=p.phasesFilter)||void 0===o?void 0:o.length]),(0,d.useEffect)(()=>{u&&!p.loadingBookmarks&&(10*p.bookmarkPage>=p.bookmarkCount||p.getBookmarks({page:p.bookmarkPage+1,page_size:10,learning_point:p.learningPointsFilter||[],programs:p.programsNameFilter||[],phases:p.phasesFilter||[]}))},[u,p]),p.selectedBookmark)?(0,n.jsx)(eo,{}):(0,n.jsxs)(i.A,{className:s.container,children:[(0,n.jsxs)(i.A,{className:s.titleWrapper,children:[(0,n.jsx)(r.A,{variant:"h3",className:s.title,children:"Bookmarked Questions"}),(0,n.jsx)(r.A,{variant:"body1",className:s.subTitle,children:"Access and evaluate your bookmarked questions."})]}),(0,n.jsx)(B,{}),(0,n.jsxs)(i.A,{className:s.questionWrapper,children:[p.bookmarkList.map((e,t)=>(0,n.jsx)(i.A,{sx:{width:"stretch"},ref:t===p.bookmarkList.length-2&&!p.loadingBookmarks&&p.bookmarkList.length<p.bookmarkCount?x:void 0,onClick:()=>p.setSelectedBookmark(e),children:(0,n.jsx)(Z,{question:e})},e.question.question_id)),p.loadingBookmarks?(0,n.jsx)(n.Fragment,{children:[void 0,void 0,void 0].map((e,t)=>(0,n.jsx)(l.A,{variant:"rectangular",height:200,width:"100%"},t))}):(0,n.jsx)(n.Fragment,{children:0===p.bookmarkList.length&&(0,n.jsx)(X,{})})]})]})})},87494:(e,t,o)=>{o.d(t,{W:()=>l});var n=o(74848);o(96540);var i=o(10900);let r=e=>{let t=/(https?:\/\/[^\s]+)/g;return e.split(t).map((e,o)=>t.test(e)?(0,n.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"},children:e},o):e)},l=e=>/<\/?[a-z][\s\S]*>/i.test(e)?(0,i.Ay)(e,{replace:e=>"text"===e.type?(0,n.jsx)(n.Fragment,{children:r(e.data)}):e}):(0,n.jsx)(n.Fragment,{children:r(e)})},85692:(e,t,o)=>{o.d(t,{Wx:()=>d});var n=o(96540),i=Object.defineProperty,r=new Map,l=new WeakMap,a=0,s=void 0;function d({threshold:e,delay:t,trackVisibility:o,rootMargin:i,root:c,triggerOnce:p,skip:x,initialInView:u,fallbackInView:g,onChange:h}={}){var m;let[f,b]=n.useState(null),A=n.useRef(),[C,k]=n.useState({inView:!!u,entry:void 0});A.current=h,n.useEffect(()=>{let n;if(!x&&f)return n=function(e,t,o={},n=s){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof o.threshold?o.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:d,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var o;return`${t}
1_${"root"===t?(o=e.root)?(l.has(o)||(a+=1,l.set(o,a.toString())),l.get(o)):"0":e[t]}`}).toString(),o=r.get(t);if(!o){let n;let i=new Map,l=new IntersectionObserver(t=>{t.forEach(t=>{var o;let r=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(o=i.get(t.target))||o.forEach(e=>{e(r,t)})})},e);n=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),o={id:t,observer:l,elements:i},r.set(t,o)}return o}(o),p=c.get(e)||[];return c.has(e)||c.set(e,p),p.push(t),d.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(c.delete(e),d.unobserve(e)),0===c.size&&(d.disconnect(),r.delete(i))}}(f,(e,t)=>{k({inView:e,entry:t}),A.current&&A.current(e,t),t.isIntersecting&&p&&n&&(n(),n=void 0)},{root:c,rootMargin:i,threshold:e,trackVisibility:o,delay:t},g),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,f,c,i,p,x,o,g,t]);let j=null==(m=C.entry)?void 0:m.target,v=n.useRef();f||!j||p||x||v.current===j||(v.current=j,k({inView:!!u,entry:void 0}));let w=[b,C.inView,C.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}n.Component}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.