PageSourceSearch

https://leadsflyer.com/_next/static/chunks/pages/gym/poster-390fe60a7a42e11d.js

js leadsflyer.com collected 2026-10-02 01:35:25 UTC 7,749 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3802],{2681:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/gym/poster",function(){return s(401)}])},401:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return g}});var a=s(5893),l=s(645),n=s.n(l),c=s(9008),i=s.n(c),o=s(7294),f=s(1163),r=s(1508),d=s(610),m=s(7828);function g(){let e=(0,f.useRouter)(),[t,s]=(0,o.useState)(null),[l,c]=(0,o.useState)(!0);async function g(){try{let t=e.query.gym;if(t){let e=await fetch("".concat("https://api.leadsflyer.com","/gym/public/").concat(t)),a=await e.json();a.gym&&s({...a.gym,gym_slug:t})}else if((0,m.LP)()){let e=await (0,d.S)("/gym/settings");s(e.settings)}}catch(e){}c(!1)}(0,o.useRef)(null),(0,o.useEffect)(()=>{g()},[e.query.gym]);let x="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname?window.location.origin:"https://leadsflyer.com",y=(null==t?void 0:t.gym_slug)?"".concat(x,"/gym/checkin?gym=").concat(t.gym_slug):"".concat(x,"/gym/checkin");async function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gym-entrance-qr-canvas",s=document.getElementById(e);if(!s)return;let a=(null==t?void 0:t.gym_name)||"My Gym",l=document.createElement("canvas");l.width=1080,l.height=1500;let n=l.getContext("2d");n.fillStyle="#ffffff",n.fillRect(0,0,1080,1500),n.strokeStyle="#e2e8f0",n.lineWidth=6,n.strokeRect(16,16,1048,1468);let c=n.createLinearGradient(0,0,1080,0);if(c.addColorStop(0,"#0f766e"),c.addColorStop(1,"#0ea5e9"),n.fillStyle=c,n.fillRect(16,16,1048,16),null==t?void 0:t.logo_url)try{let e=new Image;e.crossOrigin="anonymous",await new Promise((s,a)=>{e.onload=s,e.onerror=a,e.src=t.logo_url}),n.drawImage(e,488,48,104,104)}catch(e){n.font="".concat(76,'px "Segoe UI", Tahoma, sans-serif'),n.textAlign="center",n.fillText("\uD83C\uDFCB️",540,130)}else n.font="".concat(76,'px "Segoe UI", Tahoma, sans-serif'),n.textAlign="center",n.fillText("\uD83C\uDFCB️",540,130);n.fillStyle="#0f172a",n.font="bold ".concat(56,'px "Segoe UI", Tahoma, sans-serif'),n.fillText(a,540,210),n.fillStyle="#0f766e",n.font="bold ".concat(26,'px "Segoe UI", Tahoma, sans-serif'),n.fillText("TOUCHLESS SELF CHECK-IN",540,260),n.fillStyle="#0f172a",n.font="bold ".concat(40,'px "Segoe UI", Tahoma, sans-serif'),n.fillText("SCAN TO CHECK IN / OUT",540,344),n.fillStyle="#64748b",n.font="".concat(26,'px "Segoe UI", Tahoma, sans-serif'),n.fillText("Use any smartphone camera — no app required",540,390);n.fillStyle="#f8fafc",n.fillRect(290,430,500,500),n.strokeStyle="#0f766e",n.lineWidth=4,n.strokeRect(290,430,500,500),n.drawImage(s,320,460,440,440);n.fillStyle="#f8fafc",n.fillRect(80,970,920,160),n.strokeStyle="#e2e8f0",n.lineWidth=3,n.strokeRect(80,970,920,160);let i=920/3,o=["1","2","3"],f=["Scan QR","Enter Mobile","Tap Check-In"],r=["Open camera","Your number","Or Check-out"];for(let e=0;e<3;e++){let t=80+(e+.5)*i;n.fillStyle="#0f766e",n.beginPath(),n.arc(t,1018,24,0,2*Math.PI),n.fill(),n.fillStyle="#ffffff",n.font="bold ".concat(22,'px "Segoe UI", Tahoma, sans-serif'),n.fillText(o[e],t,1026),n.fillStyle="#0f172a",n.font="bold ".concat(22,'px "Segoe UI", Tahoma, sans-serif'),n.fillText(f[e],t,1074),n.fillStyle="#64748b",n.font="".concat(18,'px "Segoe UI", Tahoma, sans-serif'),n.fillText(r[e],t,1104)}n.fillStyle="#94a3b8",n.font="".concat(22,'px "Segoe UI", Tahoma, sans-serif'),n.fillText("⚡ Powered by Leadsflyer",540,1200);let d=l.toDataURL("image/png"),m=document.createElement("a");m.download="".concat(a.toLowerCase().replace(/\s+/g,"-"),"-entrance-poster.png"),m.href=d,m.click()}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{children:(0,a.jsxs)("title",{className:"jsx-8bf396459cdcdff7",children:["Entrance QR Poster — ",(null==t?void 0:t.gym_name)||"Gym"]})}),(0,a.jsxs)("div",{style:{minHeight:"100vh",background:"#f8fafc",padding:"40px 20px"},className:"jsx-8bf396459cdcdff7",children:[(0,a.jsx)("div",{style:{maxWidth:480,margin:"0 auto 24px",display:"flex",flexDirection:"column",gap:10},className:"jsx-8bf396459cdcdff7 noPrint",children:(0,a.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"center"},className:"jsx-8bf396459cdcdff7",children:[(0,a.jsx)("button",{onClick:function(){window.print()},className:"jsx-8bf396459cdcdff7 gymBtn gymBtnPrimary",children:"\uD83D\uDDA8️ Print Poster"}),(0,a.jsx)("button",{onClick:()=>u("gym-entrance-qr-canvas"),className:"jsx-8bf396459cdcdff7 gymBtn gymBtnOutline",children:"⬇️ Download Full Poster 
1(PNG)"}),(0,a.jsx)("button",{onClick:()=>e.push("/gym"),className:"jsx-8bf396459cdcdff7 gymBtn gymBtnOutline",children:"← Dashboard"})]})}),(0,a.jsxs)("div",{className:"jsx-8bf396459cdcdff7 gymPosterCard printableGymPoster",children:[(0,a.jsxs)("div",{style:{marginBottom:12},className:"jsx-8bf396459cdcdff7",children:[(null==t?void 0:t.logo_url)?(0,a.jsx)("img",{src:t.logo_url,alt:"Gym Logo",style:{width:68,height:68,objectFit:"contain",borderRadius:14,margin:"0 auto 6px",display:"block"},className:"jsx-8bf396459cdcdff7"}):(0,a.jsx)("div",{style:{fontSize:36,marginBottom:4},className:"jsx-8bf396459cdcdff7",children:"\uD83C\uDFCB️"}),(0,a.jsx)("h1",{className:"jsx-8bf396459cdcdff7 gymPosterGymName",children:(null==t?void 0:t.gym_name)||"My Gym"}),(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterTagline",children:"Touchless Self Check-In"})]}),(0,a.jsxs)("div",{style:{margin:"14px 0 6px"},className:"jsx-8bf396459cdcdff7",children:[(0,a.jsx)("h2",{className:"jsx-8bf396459cdcdff7 gymPosterCallout",children:"SCAN TO CHECK IN / OUT"}),(0,a.jsx)("p",{className:"jsx-8bf396459cdcdff7 gymPosterSubCallout",children:"Use any smartphone camera — no app required!"})]}),(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterQrWrapper",children:(0,a.jsx)(r.Q,{id:"gym-entrance-qr-canvas",value:y,size:240,level:"H",includeMargin:!0,imageSettings:(null==t?void 0:t.logo_url)?{src:t.logo_url,height:48,width:48,excavate:!0}:void 0})}),(0,a.jsxs)("div",{className:"jsx-8bf396459cdcdff7 gymPosterSteps",children:[(0,a.jsxs)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStep",children:[(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStepNum",children:"1"}),(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStepText",children:"Open phone camera & scan"})]}),(0,a.jsxs)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStep",children:[(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStepNum",children:"2"}),(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStepText",children:"Enter mobile number"})]}),(0,a.jsxs)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStep",children:[(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStepNum",children:"3"}),(0,a.jsx)("div",{className:"jsx-8bf396459cdcdff7 gymPosterStepText",children:"Tap Check-in or Check-out"})]})]}),(0,a.jsxs)("div",{style:{marginTop:20,fontSize:11,color:"#94a3b8",display:"flex",justifyContent:"space-between",alignItems:"center"},className:"jsx-8bf396459cdcdff7",children:[(0,a.jsx)("span",{className:"jsx-8bf396459cdcdff7",children:(null==t?void 0:t.address)?t.address.slice(0,35):"Welcome to our Gym"}),(0,a.jsx)("span",{className:"jsx-8bf396459cdcdff7",children:"⚡ Powered by Leadsflyer"})]})]})]}),(0,a.jsx)(n(),{id:"8bf396459cdcdff7",children:"@page{size:portrait;margin:6mm}@media print{html,body{margin:0!important;padding:0!important;height:100%!important;overflow:hidden!important;background:#fff!important}.noPrint{display:none!important}.printableGymPoster{max-width:440px!important;margin:0 auto!important;padding:24px 20px!important;page-break-inside:avoid!important;-webkit-column-break-inside:avoid!important;break-inside:avoid!important}}"})]})}}},function(e){e.O(0,[1508,2888,9774,179],function(){return e(e.s=2681)}),_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.