PageSourceSearch

https://app.wifiattendance.com/static/js/1735.a2d89941.chunk.js

js wifiattendance.com collected 2026-10-01 23:43:45 UTC 8,237 bytes, 3 lines download raw bytes

1/*! For license information please see 1735.a2d89941.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkwifiattendance=globalThis.webpackChunkwifiattendance||[]).push([[1735],{10218(e,s,t){t.d(s,{A:()=>h});var a=t(65043),i=t(94802),n=t(36210),l=t(55731),o=t(39292),d=t(1580),r=t(56183),c=t(70579);const u=(0,a.forwardRef)(function({onClick:e,"aria-expanded":s},t){return(0,c.jsx)(r.K0,{ref:t,icon:(0,c.jsx)(l.A,{}),variant:"solid",tone:"primary",size:"sm",tooltip:"Domains","aria-label":"Select domain","aria-expanded":s,"aria-haspopup":"true",onClick:e})});const h=function(){const{permissions:e,domains:s,domainsMapWithProjects:t,selectedProjectName:l,selectedDomainId:r,setSelectedDomain:h,setDomainName:m}=(0,a.useContext)(d.B),[x,v]=(0,a.useState)(!1),[p,g]=(0,a.useState)(""),j=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!x)return;const e=setTimeout(()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.focus()},0);return()=>clearTimeout(e)},[x]),(0,a.useEffect)(()=>{x||g("")},[x]);const N=(0,a.useMemo)(()=>{const e=p.trim().toLowerCase();console.log(t,"assign");const s=t||[];return e?s.filter(s=>String((null===s||void 0===s?void 0:s.domain)||"").toLowerCase().includes(e)):s},[t,p]);return e&&e["Select ChatBot Domain"]?(0,c.jsxs)(i.A,{className:"sd-domain",show:x,onToggle:v,align:"end",children:[(0,c.jsx)(i.A.Toggle,{as:u}),(0,c.jsxs)(i.A.Menu,{className:"sd-menu",children:[(0,c.jsxs)("div",{className:"sd-search",onClick:e=>e.stopPropagation(),role:"presentation",children:[(0,c.jsx)(o.A,{size:14,className:"sd-search-icon"}),(0,c.jsx)("input",{ref:j,type:"text",className:"sd-search-input",placeholder:"Search Project...",value:p,onChange:e=>g(e.target.value),onKeyDown:e=>{"ArrowDown"!==e.key&&"ArrowUp"!==e.key||e.stopPropagation()}})]}),(0,c.jsx)("div",{className:"sd-list",children:0===N.length?(0,c.jsx)("div",{className:"sd-empty",children:"Project Not Assigned"}):N.map(e=>{const s=String(null===e||void 0===e?void 0:e.id)===String(r);return(0,c.jsxs)(i.A.Item,{className:s?"sd-item sd-item--active":"sd-item",onClick:()=>{h(null===e||void 0===e?void 0:e.id),m(null===e||void 0===e?void 0:e.projectName)},children:[(0,c.jsx)("span",{className:"sd-item-label",children:null===e||void 0===e?void 0:e.projectName}),s&&(0,c.jsx)(n.A,{size:14,strokeWidth:3,className:"sd-item-check"})]},null===e||void 0===e?void 0:e.id)})})]})]}):null}},72162(e,s,t){t.d(s,{A:()=>n});t(65043);const a=t.p+"static/media/Group 703.ef4aff4855fdebfa90fbf98378009f87.svg";var i=t(70579);const n=function(){return(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",children:(0,i.jsx)("img",{src:a,style:{scale:"0.57"}})})}},13887(e,s,t){t.d(s,{A:()=>l});t(65043);var a=t(92157),i=t.n(a),n=t(70579);const l=({totalPage:e,data:s,pageChangeHandler:t,usersPerPage:a,currentPage:l,searchValue:o,searchedDataPageCounts:d})=>{Math.ceil((null===s||void 0===s?void 0:s.length)/a),Math.ceil((null===d||void 0===d?void 0:d.length)/a);return(0,n.jsx)("div",{className:"row mt-4",children:(0,n.jsx)("div",{className:"col-lg-12",children:(0,n.jsx)(i(),{previousLabel:1!==l?"Previous":null,nextLabel:l!=e&&"Next",pageCount:e,onPageChange:e=>t(e.selected),containerClassName:"paginationBttns",previousLinkClassName:1!==l?"Previous":"hideBtn",nextLinkClassName:"nextBttn",disabledClassName:"paginationDisabled",activeClassName:"paginationActive",forcePage:l-1,renderOnZeroPageCount:null})})})}},36180(e,s,t){t(65043);t.p;t.p;t(83910),t(1580),t(70579)},69714(e,s,t){t.d(s,{A:()=>n});var a=t(27417),i=t(70579);const n=function(){return(0,i.jsx)("div",{className:"d-flex justify-content-center",children:(0,i.jsx)(a.A,{animation:"border",variant:"secoundry",style:{height:"21px",width:"21px"}})})}},1735(e,s,t){t.r(s),t.d(s,{default:()=>N});var a=t(65043),i=(t(36180),t(97929)),n=t(83910),l=t(88230),o=t(10615),d=t(73216),r=t(72162),c=t(13887),u=t(1580),h=t(17427),m=t(70493),x=t(83756),v=t(69714),p=t(10218),g=t(70579);const j=[{sender_id:"user1",last_message:"Hello, how can I help you?",timestamp:"2024-07-21T12:34:56.789Z"},{sender_id:"user2",last_message:"I need assistance with my order.",timestamp:"2024-07-21T12:35:56.789Z"},{sender_id:"user3",last_message:"Can you provide more details on your service?",timestamp:"2024-07-21T12:36:56.789Z"}],N=()=>{const[e,s]=(0,a.useState)(void 0),[t,N]=(0,a.useState)(void 0),[f,y]=(0,a.useState)([]),[A,
2w]=(0,a.useState)([]),[b,C]=(0,a.useState)(0),[S,k]=(0,a.useState)(1),[_,P]=(0,a.useState)(""),{sidebar:D,selectedDomainId:E,domainName:T,setBackTo:L}=(0,a.useContext)(u.B),[Q,B]=(0,a.useState)(!0),M=(0,d.Zp)(),[U,R]=(0,a.useState)(0);function z(){B(!0),(0,h.wQ)(m.Ay.GET_UN_ANSWERED_QUES+"?page="+S+"&page_limit=25&domain_id="+E+"&search="+_).then(e=>{console.log(e),e.success?(console.log(null===e||void 0===e?void 0:e.data),C(null===e||void 0===e?void 0:e.total_pages),w(e.data),R(10*(S-1))):w([]),B(!1)}).catch(e=>{console.log(e),B(!1)})}(0,a.useEffect)(()=>{y(j),z()},[E,S]);return(0,g.jsx)("div",{className:"main_container",children:(0,g.jsx)("div",{className:D?"taskMain ":"cx-active taskMain",id:"cx-main",children:(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"role-content",children:[(0,g.jsxs)("div",{className:"sub-header-role d-flex justify-content-between",children:[(0,g.jsx)("h6",{className:"mt-2",children:"Un-Answered Questions List"}),(0,g.jsxs)("div",{className:"d-flex",children:[(0,g.jsxs)("h6",{className:"mt-2 mr-2",children:["Domain Name : ",T]}),(0,g.jsx)(p.A,{})]})]}),(0,g.jsxs)("div",{className:"input_wraper d-flex mt-4",children:[(0,g.jsx)("input",{placeholder:"Search By Question",type:"text",className:"",style:{width:"250px",height:"38px"},value:_,onChange:e=>P(e.target.value)}),(0,g.jsx)("button",{className:"AddQuestion_submit_btn mx-3",onClick:z,children:"Search"})]}),(0,g.jsx)("div",{className:"table-wrapper table-wrapper-2",style:{height:"600px"},children:Q?(0,g.jsx)(v.A,{}):A.length>0?(0,g.jsxs)("table",{style:{marginBottom:"20px"},children:[(0,g.jsx)("thead",{className:"",children:(0,g.jsxs)("tr",{className:"firstTabelRow",children:[(0,g.jsx)("th",{children:"Sr. no"}),(0,g.jsx)("th",{children:"User Name"}),(0,g.jsx)("th",{children:"Question"}),(0,g.jsx)("th",{children:"Answer"}),(0,g.jsx)("th",{children:"Action"})]})}),A.map((e,s)=>(0,g.jsxs)("tr",{className:"table-row-custom",children:[(0,g.jsxs)("td",{children:[U+s+1," "]}),(0,g.jsx)("td",{children:null===e||void 0===e?void 0:e.sender_id}),(0,g.jsxs)("td",{children:[null===e||void 0===e?void 0:e.question_text," "]}),(0,g.jsx)("td",{children:"-"}),(0,g.jsxs)("td",{children:[(0,g.jsx)(l.A,{placement:"bottom",delay:{show:100,hide:300},overlay:e=>(0,g.jsx)(o.A,{id:"button-tooltip",...e,children:"Edit Question"}),children:(0,g.jsx)(n.g,{onClick:()=>{L("/unAnsweredListing"),M("/editQuestion/"+(null===e||void 0===e?void 0:e.id)+"?question="+(null===e||void 0===e?void 0:e.question_text))},icon:i.LFz,style:{width:"15px",height:"15px",marginRight:"10px"}})})," ",(0,g.jsx)(l.A,{placement:"bottom",delay:{show:100,hide:300},overlay:e=>(0,g.jsx)(o.A,{id:"button-tooltip",...e,children:"Delete Question"}),children:(0,g.jsx)(n.g,{icon:i.yLS,onClick:()=>{return s=null===e||void 0===e?void 0:e.id,void(0,h.Ur)(m.Ay.DELETE_UN_ANSWERED_QUES+s).then(e=>{null!==e&&void 0!==e&&e.success?((0,x.D)("success",null===e||void 0===e?void 0:e.message),z()):(0,x.D)("error",null===e||void 0===e?void 0:e.message)}).catch(e=>{(0,x.D)("error","Something Went Wrong Try Again")});var s},style:{width:"15px",height:"15px"}})})]})]},s))]}):(0,g.jsx)(r.A,{})}),(0,g.jsx)(c.A,{totalPage:b,currentPage:S,pageChangeHandler:e=>k(e+1)})]})})})})}},55731(e,s,t){t.d(s,{A:()=>a});const a=(0,t(77784).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},27417(e,s,t){t.d(s,{A:()=>r});var a=t(98139),i=t.n(a),n=t(65043),l=t(67852),o=t(70579);const d=n.forwardRef(({bsPrefix:e,variant:s,animation:t="border",size:a,as:n="div",className:d,...r},c)=>{const u=`${e=(0,l.oU)(e,"spinner")}-${t}`;return(0,o.jsx)(n,{ref:c,...r,className:i()(d,u,a&&`${u}-${a}`,s&&`text-${s}`)})});d.displayName="Spinner";const r=d}}]);
3//# sourceMappingURL=1735.a2d89941.chunk.js.map

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.