5 lines
5.7 KiB
JavaScript
5 lines
5.7 KiB
JavaScript
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="512da726-dcd7-105c-0f02-d68d92a07401")}catch(e){}}();
|
|
module.exports=[140027,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ImageResponse",{enumerable:!0,get:function(){return d}});class d extends Response{static #a=this.displayName="ImageResponse";constructor(...b){const c=new ReadableStream({async start(c){let d=new(await a.A(791227)).ImageResponse(...b);if(!d.body)return c.close();let e=d.body.getReader();for(;;){let{done:a,value:b}=await e.read();if(a)return c.close();c.enqueue(b)}}}),d=b[1]||{},e=new Headers({"content-type":"image/png","cache-control":"public, max-age=0, must-revalidate"});d.headers&&new Headers(d.headers).forEach((a,b)=>e.set(b,a)),super(c,{headers:e,status:d.status,statusText:d.statusText})}}},149312,(a,b,c)=>{b.exports=a.r(140027)},534406,446524,a=>{"use strict";var b=a.i(998511);function c({title:a,description:c,label:d,image:e,mode:f="dark"}){let g="#82ed20";return(0,b.jsxs)("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",backgroundColor:"light"===f?"#ffffff":"#001a4d",padding:"80px",position:"relative",fontFamily:"Inter"},children:[e&&(0,b.jsxs)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex"},children:[(0,b.jsx)("img",{src:e,alt:"",width:"1200",height:"630",style:{width:"100%",height:"100%",objectFit:"cover"}}),(0,b.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, rgba(0,26,77,0.95), rgba(0,26,77,0.6))"}})]}),(0,b.jsx)("div",{style:{position:"absolute",top:"-150px",right:"-150px",width:"600px",height:"600px",borderRadius:"300px",backgroundColor:`${g}15`,display:"flex"}}),(0,b.jsxs)("div",{style:{display:"flex",flexDirection:"column",position:"relative",zIndex:10},children:[d&&(0,b.jsx)("div",{style:{fontSize:"24px",fontWeight:700,color:g,textTransform:"uppercase",letterSpacing:"0.3em",marginBottom:"32px",display:"flex"},children:d}),(0,b.jsx)("div",{style:{fontSize:a.length>40?"64px":"82px",fontWeight:700,color:"white",lineHeight:"1.05",maxWidth:"950px",marginBottom:"40px",display:"flex",letterSpacing:"-0.02em"},children:a}),c&&(0,b.jsx)("div",{style:{fontSize:"32px",color:"rgba(255,255,255,0.7)",maxWidth:"850px",lineHeight:"1.4",display:"flex",fontWeight:400},children:c.length>160?c.substring(0,157)+"...":c})]}),(0,b.jsxs)("div",{style:{position:"absolute",bottom:"80px",left:"80px",display:"flex",alignItems:"center"},children:[(0,b.jsx)("div",{style:{width:"80px",height:"6px",backgroundColor:g,borderRadius:"3px",marginRight:"24px"}}),(0,b.jsx)("div",{style:{fontSize:"24px",fontWeight:700,color:"white",textTransform:"uppercase",letterSpacing:"0.15em",display:"flex"},children:"KLZ Cables"})]}),(0,b.jsx)("div",{style:{position:"absolute",top:0,right:0,width:"12px",height:"100%",backgroundColor:"#011dff"}})]})}a.s(["OGImageTemplate",()=>c],534406);var d=a.i(522734),e=a.i(814747);async function f(){let a=(0,e.join)(process.cwd(),"public/fonts/Inter-Bold.woff"),b=(0,e.join)(process.cwd(),"public/fonts/Inter-Regular.woff");try{console.log(`[OG] Loading fonts: bold=${a}, regular=${b}`);let c=(0,d.readFileSync)(a),e=(0,d.readFileSync)(b);return console.log(`[OG] Fonts loaded successfully (${c.length} and ${e.length} bytes)`),[{name:"Inter",data:c,weight:700,style:"normal"},{name:"Inter",data:e,weight:400,style:"normal"}]}catch(a){return console.error(`[OG] Failed to load fonts from ${process.cwd()}:`,a),[]}}a.s(["OG_IMAGE_SIZE",0,{width:1200,height:630},"getOgFonts",()=>f],446524)},787368,a=>{"use strict";a.i(998511),a.i(149312),a.i(183751),a.i(534406);let b=a.i(446524).OG_IMAGE_SIZE;var c=a.i(335076);let d={contentType:"image/png",runtime:"nodejs",size:b};async function e(a){let{__metadata_id__:b,...e}=await a.params,f=(0,c.fillMetadataSegment)("/[locale]",e,"opengraph-image");return[function(a,b){let c={alt:a.alt,type:a.contentType||"image/png",url:f+"?6076960dae8670a5"},{size:d}=a;return d&&(c.width=d.width,c.height=d.height),c}(d,0)]}a.s(["default",0,e],787368)},791227,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_next_dist_compiled_@vercel_og_index_node_055f47ab.js"].map(b=>a.l(b))).then(()=>b(121425)))},234177,a=>{a.v(b=>Promise.all(["server/chunks/ssr/[externals]_node:inspector_7a4283c6._.js"].map(b=>a.l(b))).then(()=>b(237221)))},939510,a=>{a.v(b=>Promise.all(["server/chunks/ssr/9aaa3_@opentelemetry_resources_build_esm_detectors_platform_node_machine-id_634cb413._.js"].map(b=>a.l(b))).then(()=>b(996454)))},962327,a=>{a.v(b=>Promise.all(["server/chunks/ssr/34c6c_build_esm_detectors_platform_node_machine-id_getMachineId-linux_f7a67094.js"].map(b=>a.l(b))).then(()=>b(868047)))},665688,a=>{a.v(b=>Promise.all(["server/chunks/ssr/9aaa3_@opentelemetry_resources_build_esm_detectors_platform_node_machine-id_88fed31f._.js"].map(b=>a.l(b))).then(()=>b(483274)))},256493,a=>{a.v(b=>Promise.all(["server/chunks/ssr/9aaa3_@opentelemetry_resources_build_esm_detectors_platform_node_machine-id_929773f6._.js"].map(b=>a.l(b))).then(()=>b(190438)))},205639,a=>{a.v(b=>Promise.all(["server/chunks/ssr/34c6c_build_esm_detectors_platform_node_machine-id_getMachineId-unsupported_e2e05945.js"].map(b=>a.l(b))).then(()=>b(335359)))},65575,a=>{a.v(b=>Promise.all(["server/chunks/ssr/messages_de_json_56e8cde5._.js"].map(b=>a.l(b))).then(()=>b(763974)))},17741,a=>{a.v(b=>Promise.all(["server/chunks/ssr/messages_en_json_a7997480._.js"].map(b=>a.l(b))).then(()=>b(50929)))}];
|
|
|
|
//# debugId=512da726-dcd7-105c-0f02-d68d92a07401
|
|
//# sourceMappingURL=%5Broot-of-the-server%5D__602fcf96._.js.map
|