1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2653],{83458:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>d});var r=o(18153),i=o(14232),l=o(89099),n=o(63773),s=o(62753);let a="https://butler.unitag.io",d=()=>{let e=(0,l.useRouter)(),t=e.query.session_id,[o,d]=i.useState(0);function c(t){localStorage.removeItem("stripe_session_id"),localStorage.removeItem("qrcode_uuid"),localStorage.removeItem("unitag_client_email"),"default"!==t&&""!==t?e.replace(`/qrcode?info=${t}`).then(()=>{}):e.replace("/qrcode").then(()=>{})}return i.useEffect(()=>{if(void 0!==t)if(localStorage.getItem("stripe_session_id")&&localStorage.getItem("qrcode_uuid")&&localStorage.getItem("unitag_client_email")){d(20);let e=localStorage.getItem("stripe_session_id"),o=localStorage.getItem("qrcode_uuid"),r=localStorage.getItem("unitag_client_email");e===t?(d(50),(0,n.t)(a+"/v2/session").then(()=>{(0,n.G3)(a+"/v2/download_hd",{qrcode_id:o,session_id:e,user_email:r}).then(e=>{if(200===e.status){d(80);let t=window.URL.createObjectURL(e.rawBlob),o=document.createElement("a");o.href=t,o.download="unitag_qrcode_HD.png",o.click()}else c("error"),console.log(`%cError ${e.status} while downloading your QR Code !`,"color: red;")}),d(100),c("hd_success")})):(console.log("Error: invalid ID provided. Redirecting..."),c("error"))}else console.log("Error: no session id was provided. Redirecting..."),c("error")},[t]),(0,r.Y)(r.FK,{children:(0,r.Y)("div",{style:{minHeight:"50vh",display:"flex",justifyContent:"center",padding:"25vh"},children:(0,r.Y)(s.A,{variant:"determinate",value:o})})})}},88924:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/billing/success",function(){return o(83458)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=88924)),_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.