1"use strict";(self.webpackChunkieltsing_components=self.webpackChunkieltsing_components||[]).push([[113],{97113:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var i=n(61237),r=n(26990),a=n(37474),o=n(17838),d=n(37185),l=(n(76995),n(57053)),s=n(33629),p=(n(57703),n(61420)),c=n(83512),x=n(73681);const g=(0,r.A)(e=>({"@global":{body:{[e.breakpoints.down("sm")]:{backgroundColor:"#fff"}}},root:{flexGrow:1},containerBlock:{maxWidth:"900px",backgroundColor:"#fff",margin:"0 auto",padding:"30px",borderRadius:"5px",boxShadow:"0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%)",[e.breakpoints.down("sm")]:{padding:"0",boxShadow:"none"}},heading:{fontSize:e.typography.pxToRem(15),fontWeight:"bold"},headingPremium:{fontSize:e.typography.pxToRem(15),fontWeight:"bold",color:"#f50057"},accordionContainer:{maxWidth:"600px",margin:"0 auto"},containerHeader:{margin:"55px auto 10px"},container:{},stepContainer:{paddingLeft:"45px",position:"relative",paddingRight:"30px"},stepNumber:{fontSize:"42px",lineHeight:"42px",fontWeight:"bold",position:"absolute",top:"-1px",left:"0"},stepHeader:{fontSize:"20px",lineHeight:"22px",fontWeight:"bold",paddingBottom:"3px"},tabsContainer:{display:"flex",flexDirection:"column",alignItems:"center","& > *":{margin:e.spacing(1)}},accordionDetails:{flexDirection:"column"},selectPlan:{textAlign:"center",borderRadius:"10px",padding:"20px 10px",margin:"0 10px",boxShadow:"0 0 0 1px rgb(0 0 0 / 5%), 0 1px 8px rgb(0 0 0 / 15%)",[e.breakpoints.down("sm")]:{width:"270px",margin:"0 auto 20px"}},title1:{fontSize:"24px",fontWeight:"500",padding:"5px 10px",textTransform:"capitalize",textAlign:"center"},title2:{fontSize:"60px",fontWeight:"700",textAlign:"center"},title3:{fontSize:"16px",fontWeight:"normal",textAlign:"center"}}));function h(e,t){const n=new Date(e),i=new Date(t).getTime()-n.getTime();return Math.floor(i/864e5)}function m(){const[e,t]=(0,i.useContext)(o.BR),n=((0,d.W6)(),g()),{domain:r,user:m,isMobile:f}=e,[b,u]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async()=>{const e=await s.A.get("/api/users/ieltsing-purchase-events");if(e.data){const t=e.data;u(t)}})(),t({isDrawerOpen:!1})},[]),b?(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:n.containerBlock,children:[(0,x.jsx)(a.A,{variant:"h4",gutterBottom:!0,align:"center",children:"Purchase Events"}),(0,x.jsx)("div",{}),(0,x.jsx)("style",{children:"\n table {\n border-spacing: 1px;\n border-collapse: separate;\n }\n table thead td {\n padding: 5px;\n background-color: #000 !important;\n color: #fff;\n font-weight: bold;\n vertical-align: middle;\n }\n table td {\n padding: 5px;\n }\n\n table tr.view td {\n background-color: #eee;\n }\n table tr.click td{\n background-color: #dadada;\n }\n\n "}),(0,x.jsx)("div",{style:{textAlign:"center",marginTop:"40px"},children:(0,x.jsxs)("table",{width:"100%",cellSpacing:"1",cellPadding:"1",children:[(0,x.jsx)("style",{children:"\n .vertical {\n writing-mode: vertical-lr;\n transform: rotate(180deg);\n text-align: left;\n }\n tbody tr:hover td {\n background-color: #eee;\n }\n "}),(0,x.jsx)("thead",{children:(0,x.jsxs)("tr",{children:[(0,x.jsx)("td",{children:"TimeStamp"}),(0,x.jsx)("td",{children:"Days Registered"}),(0,x.jsx)("td",{children:"Country"}),(0,x.jsx)("td",{children:"UserId"}),(0,x.jsx)("td",{children:"Path"})]})}),(0,x.jsx)("tbody",{children:b.map(e=>{var t,n;e.isView;const i=null===(t=(0,l.Pg)(e.pathType))||void 0===t?void 0:t.path;(0,c.Y)(i,e.pathParam1,e.pathParam2);return(0,x.jsxs)("tr",{children:[(0,x.jsx)("td",{children:(0,p.Ey)(e.timestamp)}),(0,x.jsx)("td",{children:h(e.registeredAt,e.timestamp)}),(0,x.jsx)("td",{children:null!==(n=c.O[e.location])&&void 0!==n?n:e.location}),(0,x.jsx)("td",{children:(0,x.jsx)("a",{href:"/nikitaz/user/".concat(e.userId),children:e.userId})}),(0,x.jsx)("td",{children:i})]},e.id)})})]})})]})}):(0,x.jsx)(x.Fragment,{children:"Loading..."})}}}]);
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.