PageSourceSearch

https://app.mostlovedworkplace.com/_next/static/chunks/pages/dashboard/surveys-3946658951f7069d.js

js mostlovedworkplace.com collected 2026-09-24 17:12:24 UTC 8,406 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6245],{14839:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/surveys",function(){return s(90474)}])},90474:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return f}});var n=s(52322),r=s(2784),o=s(62929),a=s(30523),l=s(38035),i=s(28535),c=s(81540),u=s(77533),h=s(62614),d=s(77245),p=s(69996),y=s(30990),x=s(5115),m=s(73419),v=s(5632),b=s(85249);function f(){let{action:e}=(0,p.Ou)(),{pathname:t,push:s,query:f}=(0,v.useRouter)(),[g,w]=(0,r.useState)(!1),A=(0,r.useMemo)(()=>(0,y.Ez)({status:f.status,preset:f.preset,page:f.page,tenantId:f.tenantId,tutorial:f.tutorial}),[f.status,f.preset,f.page,f.tenantId,f.tutorial]),{surveysData:T,loading:E,error:_,isSessionExpired:j,isBackgroundRetrying:N}=(0,y.it)(A),S=T.total>0,C="string"==typeof f.status?f.status:"all",O="string"==typeof f.preset?f.preset:"all",k=(0,r.useMemo)(()=>[{title:"Managing Assessments",text:["Welcome to the assessment page. Here you can view all your assessments, draft, active, and closed.","<br><b>Note:</b> The assessments currently shown do not exist."],scrollTo:!1,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Assessment Status",text:["Active assessments are those that are currently open for responses."],attachTo:{element:"tbody>tr:nth-of-type(1)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Active Assessment Actions",text:["For active assessments, you can: Send Invitation, Change Expiry Date and Archive it."],attachTo:{element:"tbody>tr:nth-of-type(1)>td:nth-of-type(7)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Assessment Status",text:["Closed assessments are those that have ended and are no longer open for responses."],attachTo:{element:"tbody>tr:nth-of-type(2)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Closed Assessment Actions",text:["For closed assessments, you can: View Report, Export Data and Archive it."],attachTo:{element:"tbody>tr:nth-of-type(2)>td:nth-of-type(7)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Assessment Status",text:["Draft assessments are those that have not been sent out yet, and are still in the editing phase."],attachTo:{element:"tbody>tr:nth-of-type(3)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Draft Assessment Actions",text:["For draft assessments, you can: Edit Assessment and Archive it."],attachTo:{element:"tbody>tr:nth-of-type(3)>td:nth-of-type(7)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Assessment Status",text:["Archived assessments are those that have been closed and are no longer active."],attachTo:{element:"tbody>tr:nth-of-type(4)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Archived Assessment Action",text:["For archived assessments, you can: Restore."],attachTo:{element:"tbody>tr:nth-of-type(4)>td:nth-of-type(7)",on:"bottom"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}]},{title:"Assessment Filtering",text:["You can filter the assessments by their status using the dropdown menu."],attachTo:{element:"input[name=survey-status]",on:"left"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}],when:{show:()=>{var e;null===(e=document.querySelector("input[name=survey-status]"))||void 0===e||e.click()}}},{title:"Assessment Filtering",text:["You can filter the assessments by their type using the dropdown menu."],attachTo:{element:"input[name=survey-preset]",on:"left"},scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}],when:{show:()=>{var e;null===(e=document.querySelector("input[name=survey-preset]"))||void 0===e||e.click()}}},{title:"Conclusion",text:["That concludes the tour of the assessment page. You now should be able to manage your assessments with ease."],scrollTo:!0,arrow:!0,buttons:[{classes:"shepherd-button-secondary",text:"Exit",type:"cancel"},{classes:"shepherd-button-primary",text:"Next",type:"next"}],when:{show:()=>{window.location="/dashboard/surveys"}}}],[]),z=(0,b.kd)({tourOptions:{defaultStepOptions:{cancelIcon:{enabled:!0}},useModalOverlay:!0},steps:k});return(0,r.useEffect)(()=>{(null==f?void 0:f.tutorial)!=="true"||g||(null==z||z.start(),w(!0))},[f]),(0,n.jsxs)(m.$0,{icon:d._xN,crumbs:[{children:"Dashboard",path:"/dashboard"},{children:"All Assessments",isCurrentPage:!0}],action:e,actionAlt:{leftIcon:(0,n.jsx)(o.J,{as:d.x_Z,fontSize:"1.2rem"}),children:"View Archive",path:"/dashboard/surveys/archive"},children:[(0,n.jsx)(x.L9,{}),(0,n.jsxs)(m.Zb,{children:[(0,n.jsx)(a.P,{pb:4,children:(0,n.jsxs)(l.k,{justifyContent:"flex-end",gap:2,flexWrap:"wrap",children:[(0,n.jsx)(x.yS,{prefix:"Status: ",icon:d.lOx,name:"survey-status",defaultValue:C,options:[{value:"all",children:"All"},{value:"active",children:"Active"},{value:"draft",children:"Draft"},{value:"closed",children:"Closed"},{value:"archived",children:"Archived"}],maxW:"200px",h:8,textProps:{fontSize:"sm"},onValue:e=>s({pathname:t,query:{...f,status:e,page:void 0}})},"survey-status-".concat(C)),(0,n.jsx)(x.yS,{prefix:"Assessment Type: ",icon:d.lOx,name:"survey-preset",defaultValue:O,options:[{value:"all",children:"All"},{value:"after_action_review",children:"After Action Review"},{value:"career_advancement",children:"Career Advancement"},{value:"customer_love_of_company",children:"Customer Love Of Company"},{value:"diversity",children:"Diversity"},{value:"employee_experience",children:"Employee Experience"},{value:"leader_effectiveness",children:"Leader Effectiveness"},{value:"lgbtq+",children:"LGBTQ+"},{value:"manager_effectiveness",children:"Manager Effectiveness"},{value:"parents_caregivers",children:"Parents & Caregivers"},{value:"pulse_validation",children:"LOWI"},{value:"transformation",children:"Transformation"},{value:"volunteering",children:"Volunteering"},{value:"women",children:"Women"},{value:"young_professionals",children:"Young Professionals"}],maxW:"250px",h:8,textProps:{fontSize:"sm"},onValue:e=>s({pathname:t,query:{...f,preset:e,page:void 0}})},"survey-preset-".concat(O))]})}),E&&!S&&!_&&(0,n.jsx)(i.xu,{display:"flex",justifyContent:"center",alignItems:"center",py:8,children:(0,n.jsx)(c.$,{size:"lg"})}),j&&(0,n.jsxs)(i.xu,{textAlign:"center",py:8,children:[(0,n.jsx)(u.x,{mb:4,children:"Your session has expired. Please log in again."}),(0,n.jsx)(h.z,{onClick:()=>
1s("/login"),colorScheme:"blue",children:"Log in"})]}),N&&!j&&(0,n.jsxs)(i.xu,{display:"flex",justifyContent:"center",alignItems:"center",gap:2,py:2,color:"gray.500",children:[(0,n.jsx)(c.$,{size:"sm"}),(0,n.jsx)(u.x,{fontSize:"sm",children:"Updating results…"})]}),_&&!j&&(0,n.jsxs)(i.xu,{color:"red.500",textAlign:"center",py:4,children:["Error: ",_]}),!E&&!_&&0===T.total&&(0,n.jsx)(m.Sn,{icon:d.BNt,action:e,children:"No Assessments"}),!_&&0!==T.total&&(0,n.jsx)(m.R5,{name:"lowi-surveys",surveys:T.surveys,surveyOwners:T.surveyOwners,isFiltering:T.isFiltering,pagination:{current:T.surveys.length,total:T.total,pageSize:15},filter:!0})]})]})}f.title="All Assessments",f.getLayout=e=>(0,n.jsx)(m.cl,{children:e})}},function(e){e.O(0,[4424,8917,5789,6525,2123,8898,2445,1541,8278,4540,2812,5417,9410,6659,8257,9316,5249,7029,9996,9774,2888,179],function(){return e(e.s=14839)}),_N_E=e.O()}]);

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.