PageSourceSearch

https://ng-app.pulsepro.ai/static/js/5537.29c3de3c.chunk.js

js pulsepro.ai collected 2026-10-04 15:26:21 UTC 5,370 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkpulse=globalThis.webpackChunkpulse||[]).push([[5537],{35537(e,t,s){s.r(t),s.d(t,{default:()=>f});var l=s(9950),r=s(83452),i=s(84084),a=s(88156),n=s(14209),o=s(25045),c=s.n(o),d=s(67818),h=s(17504),u=s(61295),p=s(14171),m=s(44874),x=s(44414);const f=()=>{var e;const{t:t}=(0,d.Bd)(),[s,o]=(0,l.useState)(!1),[f,g]=(0,l.useState)(!1),[b,_]=(0,l.useState)(null),[y,v]=(0,l.useState)({}),[k,j]=(0,l.useState)(0),Y=(null===b||void 0===b||null===(e=b.checklistIds)||void 0===e?void 0:e.length)>0&&(null===b||void 0===b?void 0:b.fromDate)&&(null===b||void 0===b?void 0:b.toDate);(0,l.useEffect)(()=>{f||(async()=>{try{const e=await(0,p.Tcg)();null!==e&&void 0!==e&&e.checklist_id&&(v({checklists:[e.checklist_id],dates:["Last 30 days"]}),j(e=>e+1))}catch(e){console.error("Error fetching latest checklist:",e)}finally{g(!0)}})()},[f]);const N=(0,l.useCallback)(e=>{_(e)},[]);return(0,x.jsx)("div",{className:"page-content",children:(0,x.jsxs)("div",{className:"container-fluid",children:[(0,x.jsxs)(i.A,{className:"mb-3",children:[(0,x.jsxs)("div",{style:{padding:"1rem 2rem",borderBottom:"1px solid #e5e7eb",backgroundColor:"#ffffff",position:"relative"},children:[(0,x.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"1rem"},children:[(0,x.jsx)(m.A,{}),(0,x.jsx)("h4",{style:{margin:0,padding:0,fontSize:"1.5rem",fontWeight:"600",color:"#111827"},children:t("checklist_export_title")||"Checklist Export"})]}),(0,x.jsx)("p",{style:{display:"block",margin:0,marginLeft:"calc(36px + 1rem)",padding:0,fontSize:"0.95rem",color:"#6b7280"},children:t("checklist_export_description")||"Export checklist reports based on selected filters in Excel format"})]}),(0,x.jsx)(a.A,{style:{padding:"1rem 2rem"},children:(0,x.jsx)(h.A,{type:"analytics",onFilterChange:N,initialFilters:y},k)})]}),(0,x.jsx)(i.A,{children:(0,x.jsx)(a.A,{className:"text-center py-5",children:s?(0,x.jsxs)("div",{className:"d-flex flex-column align-items-center",children:[(0,x.jsx)(n.A,{color:"success",style:{width:"3rem",height:"3rem"}}),(0,x.jsx)("h5",{className:"mt-3",children:t("sending_report")||"Sending report..."})]}):(0,x.jsxs)("div",{className:"text-muted",children:[(0,x.jsx)("i",{className:"ri-file-excel-2-line display-4 text-success"}),(0,x.jsx)("h5",{className:"mt-3",children:t("checklist_export_title")}),(0,x.jsx)("p",{className:"mb-4",children:t("checklist_export_description")}),Y?(0,x.jsxs)(r.A,{color:"success",size:"lg",className:"px-5",onClick:async()=>{const e=(null===b||void 0===b?void 0:b.checklistIds)||[],s=(null===b||void 0===b?void 0:b.regionIds)||[],l=(null===b||void 0===b?void 0:b.locationIds)||[],r=null===b||void 0===b?void 0:b.fromDate,i=null===b||void 0===b?void 0:b.toDate;if(!r||!i)return void(0,u.A)(t("please_select_date_range_first")||"Please select a date range first");
1if(!e.length)return void(0,u.A)(t("please_select_at_least_one_checklist")||"Please select at least one checklist");const a=c()(r,"DD/MM/YYYY"),n=c()(i,"DD/MM/YYYY");if(a.isAfter(n))(0,u.A)(t("from_date_cannot_be_greater_than_to_date")||"From date cannot be greater than to date");else try{o(!0);const a={checklists:e.map(e=>Number(e)),regionIds:s.length?s.map(e=>Number(e)):[],location:l.length?l.map(e=>Number(e)):[],from_date:c()(r,"DD/MM/YYYY").format("D/MM/YYYY"),to_date:c()(i,"DD/MM/YYYY").format("DD/MM/YYYY")};await(0,p.uPK)(a),(0,u.A)(t("report_will_be_sent_to_email")||"An email will be sent to you with the report shortly.","success")}catch(h){var d;console.error("Export Error Detail:",(null===(d=h.response)||void 0===d?void 0:d.data)||h),(0,u.A)(t("report_will_be_sent_to_email")||"An email will be sent to you with the report shortly.","success")}finally{o(!1)}},disabled:s,children:[(0,x.jsx)("i",{className:"ri-mail-send-line me-2"}),t("export_checklist")||"Export Checklist"]}):(0,x.jsxs)("p",{className:"text-warning",children:[(0,x.jsx)("i",{className:"ri-information-line me-1"}),t("please_select_filters_and_apply")||"Please select filters and click Apply Filters to enable export."]})]})})})]})})}},44874(e,t,s){s.d(t,{A:()=>a});var l=s(9950),r=s(16673),i=s(44414);const a=e=>{let{fallbackPath:t="/analytics-library",className:s=""}=e;const a=(0,r.W6)(),n=l.useRef(null);l.useEffect(()=>{if(n.current){const e=n.current;Object.assign(e.style,{width:"36px",height:"36px",minWidth:"36px",maxWidth:"36px",minHeight:"36px",maxHeight:"36px",display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#374151",cursor:"pointer",padding:"0",margin:"0",fontSize:"14px",fontWeight:"400",lineHeight:"1",textDecoration:"none",textAlign:"center",boxShadow:"none",outline:"none",appearance:"none",transition:"border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease"})}},[]);return(0,i.jsx)("button",{ref:n,type:"button",className:`al-back-button ${s}`,onClick:()=>{a.length>1?a.goBack():a.push(t)},onMouseEnter:()=>{n.current&&(n.current.style.borderColor="var(--vz-primary, #405189)",n.current.style.backgroundColor="rgba(64, 81, 137, 0.06)",n.current.style.color="var(--vz-primary, #405189)")},onMouseLeave:()=>{n.current&&(n.current.style.borderColor="#e5e7eb",n.current.style.backgroundColor="#ffffff",n.current.style.color="#374151")},"aria-label":"Back",title:"Back",children:(0,i.jsx)("i",{className:"ri-arrow-left-line"})})}}}]);

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.