PageSourceSearch

https://www.excelrs.dev/_next/static/chunks/app/certificate/hackathon/%5Bid%5D/page-0270653ad9217bdd.js

js excelrs.dev collected 2026-10-02 01:54:49 UTC 24,750 bytes, 26 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6551],{33400:function(e,t,r){Promise.resolve().then(r.bind(r,42028))},22640:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2265),a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},l=r(61331);/**
2 * @license lucide-react v0.469.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let i=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:u,...m}=e;return(0,n.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:r,strokeWidth:o?24*Number(s)/Number(i):s,className:(0,l.z)("lucide",c),...m},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(d)?d:[d]])})},38170:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(2265),a=r(61331),l=r(22640);/**
7 * @license lucide-react v0.469.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */let i=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:s,...o}=r;return(0,n.createElement)(l.Z,{ref:i,iconNode:t,className:(0,a.z)("lucide-".concat((0,a.m)(e)),s),...o})});return r.displayName="".concat(e),r}},48281:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
12 * @license lucide-react v0.469.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let n=(0,r(38170).Z)("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},37164:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});/**
17 * @license lucide-react v0.469.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let n=(0,r(38170).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},61331:function(e,t,r){"use strict";r.d(t,{m:function(){return n},z:function(){return a}});/**
22 * @license lucide-react v0.469.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()}},16463:function(e,t,r){"use strict";var n=r(71169);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},20357:function(e,t,r){"use strict";var n,a;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(a=r.g.process)?void 0:a.env)?r.g.process:r(88081)},88081:function(e){!function(){var t={229:function(e){var t,r,n,a=e.exports={};function l(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===l||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:l}catch(e){t=l}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var o=[],c=!1,d=-1;function u(){c&&n&&(c=!1,n.length?o=n.concat(o):d=-1,o.length&&m())}function m(){if(!c){var e=s(u);c=!0;for(var t=o.length;t;){for(n=o,o=[];++d<t;)n&&n[d].run();d=-1,t=o.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new f(e,t)),1!==o.length||c||s(m)},f.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var l=r[e]={exports:{}},i=!0;try{t[e](l,l.exports,n),i=!1}finally{i&&delete r[e]}return l.exports}n.ab="//";var a=n(229);e.exports=a}()},42028:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r(57437),a=r(58357),l=r(2265),i=r(16463),s=r(37164),o=r(48281),c=r(89733),d=r(47586),u=r(46549);let m=a.CT,f=e=>{switch(e){case"winner_1st":return"/2.png";case"winner_2nd":return"/3.png";case"winner_3rd":return"/4.png";default:return"/1.png"}},h=e=>{switch(e){case"winner_1st":return"1st Place Winner";case"winner_2nd":return"2nd Place Winner";case"winner_3rd":return"3rd Place Winner";default:return"Participation"}},x=e=>{switch(e){case"participation":return{userNameTop:"26%",userNameLeft:"40%",teamNameTop:"48%",teamNameLeft:"40%"};case"winner_1st":default:return{userNameTop:"29%",userNameLeft:"40%",teamNameTop:"54%",teamNameLeft:"40%"};case"winner_2nd":return{userNameTop:"29%",userNameLeft:"40%",teamNameTop:"52%",teamNameLeft:"40%"};case"winner_3rd":return{userNameTop:"29%",userNameLeft:"40%",teamNameTop:"51%",teamNameLeft:"40%"}}};function p(){let e=(0,i.useParams)(),t=(0,i.useRouter)(),a=null==e?void 0:e.id,[p,g]=(0,l.useState)(!0),[v,b]=(0,l.useState)(null),[w,y]=(0,l.useState)(null),[N,j]=(0,l.useState)(null),[k,T]=(0,l.useState)(null);if((0,l.useEffect)(()=>{(async()=>
26{if(!a){T("Certificate ID is required"),g(!1);return}try{g(!0);let e=await fetch("".concat(m,"/hackathon-certificates/").concat(a));if(!e.ok){404===e.status?T("Certificate not found"):T("Failed to load certificate"),g(!1);return}let t=await e.json();b(t.certificate),y(t.hackathon),j(t.user)}catch(e){console.error("Error fetching certificate:",e),T("Failed to load certificate")}finally{g(!1)}})()},[a]),p)return(0,n.jsx)("div",{className:"flex flex-col items-center min-h-screen bg-gradient-to-br from-blue-100 to-purple-100 py-8",children:(0,n.jsx)("div",{className:"bg-white/80 backdrop-blur-lg shadow-xl border-0 rounded-xl w-full max-w-7xl overflow-hidden flex flex-col items-center justify-center p-6",children:(0,n.jsx)(u.Z,{type:"certificate"})})});if(k||!v||!w)return(0,n.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-gradient-to-br from-blue-100 to-purple-100",children:(0,n.jsxs)("div",{className:"bg-white rounded-lg shadow-xl p-8 max-w-md text-center",children:[(0,n.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-red-100 flex items-center justify-center",children:(0,n.jsx)("svg",{className:"w-8 h-8 text-red-600",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01M21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9 9 4.03 9 9z"})})}),(0,n.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-2",children:"Certificate Not Found"}),(0,n.jsx)("p",{className:"text-gray-600 mb-6",children:k||"The certificate you are looking for does not exist."}),(0,n.jsx)(c.z,{onClick:()=>t.push("/hackathons"),className:"bg-purple-600 hover:bg-purple-700",children:"Browse Hackathons"})]})});let C=f(v.certificateType),S=h(v.certificateType),L=x(v.certificateType),_=window.location.href,R=((null==N?void 0:N.fullName)||v.userName||"").toUpperCase(),E=async()=>{try{let e=document.createElement("canvas");e.width=1200,e.height=825;let t=e.getContext("2d");if(!t)return;let n=new Image;n.crossOrigin="anonymous",await new Promise((e,t)=>{n.onload=()=>e(),n.onerror=t,n.src=C}),t.drawImage(n,0,0,1200,825);let a=document.getElementById("certificate-display"),l=null==a?void 0:a.getBoundingClientRect();null==l||l.width,null==l||l.height;let i=x(v.certificateType),s=null==a?void 0:a.querySelector("[data-user-name]"),o=null==a?void 0:a.querySelector("[data-team-name]");t.textAlign="center",t.textBaseline="middle";let c=((null==N?void 0:N.fullName)||v.userName||"").toUpperCase();t.fillStyle="#1f2937",t.font="bold 44px Georgia, serif";let d=parseFloat(i.userNameLeft)/100*1200,u=parseFloat(i.userNameTop)/100*825;if(s){let e=s.getBoundingClientRect(),t=null==a?void 0:a.getBoundingClientRect();if(t){let r=(e.left+e.width/2-t.left)/t.width,n=(e.top+e.height/2-t.top)/t.height;d=1200*r,u=825*n}}if(t.fillText(c,d,u),v.teamName){t.fillStyle="#1f2937",t.font="600 32px Georgia, serif";let e=parseFloat(i.teamNameLeft)/100*1200,r=parseFloat(i.teamNameTop)/100*825;if(o){let t=o.getBoundingClientRect(),n=null==a?void 0:a.getBoundingClientRect();if(n){let a=(t.left+t.width/2-n.left)/n.width,l=(t.top+t.height/2-n.top)/n.height;e=1200*a,r=825*l}}t.fillText(v.teamName,e,r)}let m=new Date(v.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});t.fillStyle="#374151",t.font="200 14px sans-serif",t.textAlign="left",t.textBaseline="top",t.fillText(m,24,16.5);let f=document.querySelector("[data-qr-code]"),h="";if(f){let e=(await r.e(7337).then(r.t.bind(r,81173,23))).default;h=(await e(f,{width:80,height:80,backgroundColor:"#ffffff",scale:2,useCORS:!0})).toDataURL("image/png")}else{let e=document.createElement("canvas");e.width=80,e.height=80;let t=e.getContext("2d");t&&(t.fillStyle="white",t.fillRect(0,0,80,80),t.strokeStyle="#000",t.lineWidth=1,t.strokeRect(0,0,80,80)),h=e.toDataURL("image/png")}await new Promise(r=>{let n=new Image;n.onload=()=>{t.fillStyle="white",t.fillRect(32,716.25,88,88),t.drawImage(n,36,720.25,80,80),t.fillStyle="#4b5563",t.font="5px sans-serif",t.textAlign="center",t.textBaseline="top",t.fillText("Scan to verify",76,804.25);let a=document.createElement("a");a.download="hackathon-certificate-".concat(v._id,".png"),a.href=e.toDataURL("image/png"),document.body.appendChild(a),a.click(),document.body.removeChild(a),r()},n.onerror=()=>{let t=document.createElement("a");t.download="hackathon-certificate-".concat(v._id,".png"),t.href=e.toDataURL("image/png"),document.body.appendChild(t),t.click(),document.body.removeChild(t),r()},n.src=h})}catch(e){console.error("Error downloading certificate:",e),alert("Failed to download certificate. Please try again.")}};return(0,n.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-blue-100 via-purple-100 to-pink-100 py-8 px-4",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,n.jsx)("div",{id:"certificate-display",className:"bg-white rounded-xl shadow-2xl overflow-hidden mb-12",style:{width:"100%",maxWidth:"1200px",margin:"0 auto"},children:(0,n.jsxs)("div",{className:"relative",style:{width:"100%",paddingBottom:"68.75%",position:"relative"},children:[(0,n.jsx)("img",{src:C,alt:"Hackathon Certificate",className:"absolute inset-0 w-full h-full object-contain",style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}}),(0,n.jsx)("div",{className:"absolute text-center","data-user-name":!0,style:{to
26p:L.userNameTop,left:L.userNameLeft,transform:"translate(-50%, -50%)",width:"60%",textAlign:"center"},children:(0,n.jsx)("p",{className:"font-bold text-gray-800 break-words",style:{fontFamily:'Georgia, "Times New Roman", serif',fontSize:"clamp(0.95rem, 2.8vw, 1.9rem)",fontWeight:"700",color:"#1f2937"},children:R})}),v.teamName&&(0,n.jsx)("div",{className:"absolute text-center","data-team-name":!0,style:{top:L.teamNameTop,left:L.teamNameLeft,transform:"translate(-50%, -50%)",width:"60%",textAlign:"center"},children:(0,n.jsx)("p",{className:"font-semibold text-gray-800 break-words",style:{fontFamily:'Georgia, "Times New Roman", serif',fontSize:"clamp(0.75rem, 2vw, 1.25rem)",fontWeight:"400",color:"#1f2937"},children:v.teamName})}),(0,n.jsx)("div",{className:"absolute",style:{top:"2%",left:"2%"},children:(0,n.jsx)("p",{className:"font-medium text-gray-700",style:{fontSize:"clamp(0.5rem, 1.5vw, 0.875rem)",fontWeight:"200",color:"#374151"},children:new Date(v.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})}),(0,n.jsxs)("div",{className:"absolute flex flex-col items-center",style:{bottom:"3%",left:"3%"},"data-qr-code":!0,children:[(0,n.jsx)("div",{className:"bg-white rounded shadow-md flex items-center justify-center",style:{padding:"4px",width:"clamp(40px, 8vw, 80px)",height:"clamp(40px, 8vw, 80px)",minWidth:"40px",minHeight:"40px"},children:(0,n.jsx)(d.t,{value:_,size:80,level:"L",includeMargin:!1,style:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%"}})}),(0,n.jsx)("p",{className:"text-gray-600 text-center whitespace-nowrap mt-1",style:{fontSize:"clamp(8px, 1.5vw, 10px)",color:"#4b5563"},children:"Scan to verify"})]})]})}),(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-12 mt-8",children:[(0,n.jsxs)(c.z,{onClick:E,className:"bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700",children:[(0,n.jsx)(s.Z,{className:"mr-2 h-4 w-4"}),"Download Certificate"]}),(0,n.jsx)(c.z,{onClick:()=>{navigator.clipboard.writeText(_),alert("Certificate link copied to clipboard!")},className:"bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700",children:"Share Certificate"})]}),(0,n.jsx)("div",{className:"bg-white rounded-xl shadow-xl p-6 md:p-8 mb-12",children:(0,n.jsxs)("div",{className:"flex flex-col md:flex-row gap-6 md:gap-8",children:[(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsxs)("h3",{className:"text-2xl font-bold text-gray-800 mb-4 flex items-center gap-2",children:[(0,n.jsx)(o.Z,{className:"w-6 h-6 text-purple-600"}),"Certificate Details"]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Participant Name"}),(0,n.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:R})]}),v.teamName&&(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Team Name"}),(0,n.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:v.teamName})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Certificate Type"}),(0,n.jsx)("p",{className:"text-lg font-semibold text-purple-700",children:S})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Issued On"}),(0,n.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:new Date(v.createdAt).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})})]})]})]}),(0,n.jsxs)("div",{className:"flex-1",children:[(0,n.jsx)("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:"Hackathon Information"}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Hackathon Title"}),(0,n.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:w.title})]}),w.theme&&(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Theme"}),(0,n.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:w.theme})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Venue"}),(0,n.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:w.venue})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-gray-500 mb-1",children:"Date"}),(0,n.jsxs)("p",{className:"text-lg font-semibold text-gray-800",children:[new Date(w.startDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})," - ",new Date(w.endDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]})]})]})]})]})})]})})}},46549:function(e,t,r){"use strict";var n=r(57437);r(2265),t.Z=e=>{let{type:t="certificate"}=e;return"certificate"===t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"animate-pulse flex flex-col items-center justify-center w-full p-6 bg-blue-100 backdrop-blur-lg shadow-xl border-0 rounded-xl",children:(0,n.jsx)("div",{className:"h-[300px] sm:h-[750px] w-full max-w-[1000px] bg-blue-100 rounded-lg"})}),(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 mt-6",children:[(0,n.jsx)("div",{className:"h-10 w-48 bg-purple-100 rounded"}),(0,n.jsx)("div",{className:"h-10 w-48 bg-blue-100 rounded"})]})]}):"text"===t?(0,n.jsxs)("div",{className:"animate-pulse flex flex-col items-center",children:[(0,n.jsx)("div",{className:"h-6 w-1/2 bg-blue-100 rounded mb-2"}),(0,n.jsx)("div",{className:"h-4 w-1/3 bg-purple-100 rounded"})]}):(0,n.jsxs)("div",{className:"animate-pulse flex flex-col gap-8 w-full bg-gradient-to-br from-blue-100 to-purple-100 min-h-screen py-8 px-2",children:[(0,n.jsx)("div",{className:"bg-white/80 backdrop-blur-lg shadow-xl border-0 rounded-xl p-4 sm:p-6 md:p-10 flex flex-col gap-4 md:gap-6 w-full",children:(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-4 sm:gap-6",children:[(0,n.jsx)("div",{className:"w-20 h-20 sm:w-24 sm:h-24 bg-blue-100 rounded-full"}),(0,n.jsxs)("div",{className:"flex flex-col gap-2 sm:gap-3 items-center sm:items-start text-center sm:text-left w-full",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:"h-6 w-40 bg-purple-100 rounded"}),(0,n.jsx)("div",{className:"h-5 w-5 bg-blue-100 rounded-full"})]}),(0,n.jsx)("div",{className:"h-5 w-32 bg-blue-100 rounded mt-1"}),(0,n.jsx)("div",{className:"h-5 w-20 bg-purple-100 rounded"}),(0,n.jsx)("div",{className:"h-5 w-3/4 bg-blue-100 rounded mt-2"})]})]})}),(0,n.jsx)("div",{className:"bg-white/80 backdrop-blur-lg shadow-xl border-0 rounded-xl p-4 sm:p-6 md:p-10 flex flex-col gap-4 md:gap-6 w-full",children:(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-4 sm:gap-6",children:[(0,n.jsx)("div",{className:"w-28 h-20 sm:w-48 sm:h-28 md:w-72 md:h-42 bg-blue-100 rounded"}),(0,n.jsxs)("div",{className:"flex flex-col items-center sm:items-start text-center sm:text-left w-full",children:[(0,n.jsx)("div",{className:"h-7 w-40 sm:w-56 md:w-72 bg-purple-100 rounded mb-2"}),(0,n.jsx)("div",{className:"h-5 w-20 bg-blue-100 rounded mb-2"}),(0,n.jsx)("div",{className:"h-5 w-3/4 bg-purple-100 rounded mt-2"}),(0,n.jsxs)("div",{className:"flex items-center justify-center sm:justify-start mt-2 gap-2",children:[(0,n.jsx)("div",{className:"h-6 w-24 bg-blue-100 rounded"}),(0,n.jsx)("div",{className:"h-6 w-10 bg-purple-100 rounded"})]})]})]})})]})}},89733:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(57437),a=r(2265),l=r(71538),i=r(13027),s=r(49354);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-950 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-neutral-300",{variants:{variant:{default:"bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 shadow-sm hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white shadow-sm hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dar
26k:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:c=!1,...d}=e,u=c?l.g7:"button";return(0,n.jsx)(u,{className:(0,s.cn)(o({variant:a,size:i,className:r})),ref:t,...d})});c.displayName="Button"},58357:function(e,t,r){"use strict";r.d(t,{CT:function(){return n},bz:function(){return l},nL:function(){return a}});let n=(r(20357).env.NEXT_PUBLIC_CLOUD_API_URL||"https://excelrs-cloud-new-1069037816864.asia-south1.run.app").replace(/\/+$/,""),a="https://powr-api.lawazia.tech";function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(e||"").replace(/^\/+/,"");return t?"".concat(a,"/").concat(t):a}},49354:function(e,t,r){"use strict";r.d(t,{cn:function(){return l}});var n=r(44839),a=r(96164);function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.m6)((0,n.W)(t))}},1584:function(e,t,r){"use strict";r.d(t,{F:function(){return l},e:function(){return i}});var n=r(2265);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():a(e[t],null)}}}}function i(...e){return n.useCallback(l(...e),e)}},71538:function(e,t,r){"use strict";r.d(t,{Z8:function(){return d},g7:function(){return u}});var n,a=r(2265),l=r(1584),i=r(57437),s=Symbol.for("react.lazy"),o=(n||(n=r.t(a,2)))[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function d(e){let t=function(e){let t=a.forwardRef((e,t)=>{let{children:r,...n}=e;if(c(r)&&"function"==typeof o&&(r=o(r._payload)),a.isValidElement(r)){var i;let e,s;let o=(i=r,(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref),c=function(e,t){let r={...t};for(let n in t){let a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...e)=>{let t=l(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...l}:"className"===n&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(c.ref=t?(0,l.F)(t,o):o),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=a.forwardRef((e,r)=>{let{children:n,...l}=e;c(n)&&"function"==typeof o&&(n=o(n._payload));let s=a.Children.toArray(n),d=s.find(f);if(d){let e=d.props.children,n=s.map(t=>
26t!==d?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,i.jsx)(t,{...l,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var u=d("Slot"),m=Symbol("radix.slottable");function f(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m}},13027:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n=r(44839);let a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=n.W,i=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return l(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let l=a(t)||a(n);return i[e][l]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return l(e,o,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...c}[t]):({...s,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[4868,7586,2971,7023,1744],function(){return e(e.s=33400)}),_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.