"use strict";(self.webpackChunkmy_app=self.webpackChunkmy_app||[]).push([[578],{1578:(e,a,s)=>{s.r(a),s.d(a,{default:()=>A});var r=s(5043),l=s(9722),n=s(9607),t=s(2166),i=s(9397),c=s(8258),d=s(1072),o=s(8602),h=s(3722),x=(s(2450),s(8207)),m=s(3910),j=s(7929),p=s(3519),u=s(4282),g=s(579);const A=(0,t.Ng)((e=>{let{storeState:a}=e;return{props:a}}),null)((e=>{let{props:a}=e;const[t,A]=(0,r.useState)(),[f,N]=(0,r.useState)(!1);return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"mainContainer",children:[(0,g.jsxs)("div",{className:"headerfixedcontainer bg-darkgrey",children:[(0,g.jsx)(x.A,{isLoading:f}),(0,g.jsx)("div",{className:"headerfixedcontainer",children:(0,g.jsx)(p.A,{fluid:!0,children:(0,g.jsxs)("div",{className:"headerbarcontainer",children:[(0,g.jsx)("div",{className:"mr-2 pt-4 mt-1"}),(0,g.jsx)("div",{className:"daterangeholder mr-2",children:(0,g.jsxs)("p",{className:"mb-0 daterangeholder",children:[(0,g.jsx)("i",{className:"fa fa-calendar-alt color-white fs-12px"}),(0,g.jsx)("span",{className:"daterange color-white"})]})}),(0,g.jsx)("div",{className:"mr-2",children:(0,g.jsx)(i.A,{children:(0,g.jsxs)(i.A.Item,{href:"#",children:[(0,g.jsx)(m.g,{className:"color-white",icon:j.v02})," QR Code Generation"]})})})]})})})]}),(0,g.jsx)(p.A,{fluid:!0,className:"pl-1 pr-1 mt-110px",children:(0,g.jsxs)(c.A,{className:"fixHeight",children:[(0,g.jsx)(c.A.Header,{children:"QR Code Generation"}),(0,g.jsx)(c.A.Body,{children:(0,g.jsx)(c.A.Text,{children:(0,g.jsxs)(d.A,{children:[(0,g.jsx)(o.A,{lg:4,children:(0,g.jsx)(h.A,{children:(0,g.jsx)(h.A.Group,{controlId:"formBasicEmail",children:(0,g.jsx)(h.A.Control,{value:t,onChange:function(e){A(e.target.value)},style:{color:"black",backgroundColor:"white"},type:"number",placeholder:"Enter No of QR code to be generated"})})})}),(0,g.jsx)(o.A,{lg:8,children:(0,g.jsx)(u.A,{onClick:()=>(()=>{N(!0);let e=n.y0+"qrcode/generate?count="+t;(0,l.A)({url:e,method:"GET",responseType:"blob",headers:{Authorization:sessionStorage.getItem("Authorization")}}).then((e=>{var a=s(2450),r=new Blob([e.data],{type:"application/pdf"});a.saveAs(r,"QRCode_"+new Date),N(!1)}))})(),variant:"primary",children:"Generate"})})]})})})]})}),(0,g.jsxs)("footer",{className:"footer",children:[(0,g.jsx)("p",{children:"Powered By"}),(0,g.jsx)("img",{src:s(585),alt:"gallary",className:"ml-2"})]})]})})}))}}]);
//# sourceMappingURL=578.f2830e97.chunk.js.map