1import{j as e}from"./state-DKBP_IF5.js";import{r}from"./react-vendor-Unhn4PzF.js";import{D as w,P as k,G as S}from"./pdf-viewer-CTaY7nEr.js";import{A,m as B}from"./ui-Dw3dkPmY.js";import{a2 as E,a3 as I,a4 as W}from"./index-Br3_ARw7.js";import"./charts-D5dg506X.js";import"./forms-GD8l5aEM.js";window.CESIUM_BASE_URL="/cesium/";function T({pdfPath:t,width:s=380}){const[i,c]=r.useState(!1),[d,l]=r.useState(!1);return d?e.jsxs("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.5rem",color:"rgba(255, 255, 255, 0.4)"},children:[e.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[e.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),e.jsx("polyline",{points:"14 2 14 8 20 8"}),e.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),e.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),e.jsx("polyline",{points:"10 9 9 9 8 9"})]}),e.jsx("span",{style:{fontSize:"0.75rem"},children:"Preview unavailable"})]}):e.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",overflow:"hidden",opacity:i?1:.3,transition:"opacity 0.4s ease"},children:e.jsx(w,{file:t,onLoadError:()=>l(!0),loading:null,children:e.jsx(k,{pageNumber:1,width:s,renderTextLayer:!1,renderAnnotationLayer:!1,onRenderSuccess:()=>c(!0)})})})}const F="_card_1wc5z_11",M="_thumbnailWrapper_1wc5z_71",H="_categoryBadge_1wc5z_87",z="_content_1wc5z_115",D="_title_1wc5z_125",U="_description_1wc5z_143",R="_viewHint_1wc5z_161",p={card:F,thumbnailWrapper:M,categoryBadge:H,content:z,title:D,description:U,viewHint:R};function $({useCase:t,onClick:s}){return e.jsxs("button",{className:p.card,onClick:s,type:"button",children:[e.jsxs("div",{className:p.thumbnailWrapper,children:[e.jsx(T,{pdfPath:t.pdfPath}),t.category&&e.jsx("span",{className:p.categoryBadge,style:{backgroundColor:t.categoryColor??"#fbbf24"},children:t.category})]}),e.jsxs("div",{className:p.content,children:[e.jsx("h3",{className:p.title,children:t.title}),e.jsx("p",{className:p.description,children:t.description})]}),e.jsxs("div",{className:p.viewHint,children:[e.jsx("span",{children:"View Presentation"}),e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})]})}const V="_grid_12qpo_6",q={grid:V};function G({useCases:t,onSelect:s}){return e.jsx("div",{className:q.grid,children:t.map(i=>e.jsx($,{useCase:i,onClick:()=>s(i)},i.id))})}function K(){const[t,s]=r.useState(1),[i,c]=r.useState(1),[d,l]=r.useState(!1),[u,h]=r.useState(1),m=r.useCallback(x=>{h(x>t?1:-1),s(Math.max(1,Math.min(x,i)))},[t,i]),g=r.useCallback(()=>{t<i&&(h(1),s(x=>x+1))},[t,i]),_=r.useCallback(()=>{t>1&&(h(-1),s(x=>x-1))},[t]),f=r.useCallback(()=>{document.fullscreenElement?(document.exitFullscreen(),l(!1)):(document.documentElement.requestFullscreen(),l(!0))},[]),v=r.useCallback(()=>{s(1),c(1),h(1)},[]);return{currentPage:t,totalPages:i,setTotalPages:c,goToPage:m,nextPage:g,prevPage:_,isFullscreen:d,toggleFullscreen:f,direction:u,reset:v}}const O="_overlay_17w6i_7",Y="_viewer_17w6i_28",J="_topBar_17w6i_42",Q="_viewerTitle_17w6i_51",X="_topBarActions_17w6i_63",Z="_pageIndicator_17w6i_69",ee="_iconButton_17w6i_77",te="_slideArea_17w6i_101",ne="_pageContainer_17w6i_113",se="_navArrow_17w6i_131",ie="_navArrowLeft_17w6i_162",oe="_navArrowRight_17w6i_166",re="_pagination_17w6i_171",ae="_dot_17w6i_183",ce="_dotActive_17w6i_198",le="_loading_17w6i_204",de="_spinner_17w6i_214",o={overlay:O,viewer:Y,topBar:J,viewerTitle:Q,topBarActions:X,pageIndicator:Z,iconButton:ee,slideArea:te,pageContainer:ne,navArrow:se,navArrowLeft:ie,navArrowRight:oe,pagination:re,dot:ae,dotActive:ce,loading:le,spinner:de};function he(t,s){const[i,c]=r.useState(800);return r.useEffect(()=>{const d=()=>{if(!t.current)return;const l=t.current.clientWidth-140,u=t.current.clientHeight-16;if(!s||s<=0){c(Math.min(l,800));return}l/s<=u?c(Math.max(300,l)):c(Math.max(300,u*s))};return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[t,s]),i}function ue({useCase:t,onClose:s}){const{currentPage:i,totalPages:c,setTotalPages:d,goToPage:l,nextPage:u,prevPage:h,isFullscreen:m,toggleFullscreen:g,direction:_}=K(),f=r.useRef(null),[v,x]=r.useState(null),C=he(f,v),[b,N]=r.useState(!0),j=r.useCallback(n=>{switch(n.key){case"ArrowRight":case"ArrowDown":n.preventDefault(),u();break;case"ArrowLeft":case"ArrowUp":n.preventDefault(),h();break;case"Escape":m?g():s();break;case"f":case"F":!n.ctrlKey&&!n.metaKey&&g();break}},[u,h,s,m,g]);r.useEffect(()=>(document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)),[j]),r.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]);const P={enter:n=>({opacity:0,x:n*80}),center:{opacity:1,x:0},exit:n=>({opacity:0,x:n*-80})};return e.jsx("div",{className:o.overlay,onClick:n=>n.target===n.currentTarget&&s(),children:e.jsxs("div",{className:o.viewer,children:[e.jsxs("div",{className:o.topBar,children:[e.jsx("h2",{className:o.viewerTitle,children:t.title}),e.jsxs("div",{className:o.topBarActions,children:[e.jsxs("span",{className:o.pageIndicator,children:[i," / ",c]}),e.jsx("a",{href:t.pdfPath,download:!0,className:o.iconButton,title:"Download PDF",onClick:n=>n.stopPropagation(),children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.jsx("polyline",{points:"7 10 12 15 17 10"}),e.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}),e.jsx("button",{onClick:g,className:o.iconButton,title:"Toggle fullscreen (F)",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m?e.jsxs(e.Fragment,{children:[e.jsx("polyline",{points:"4 14 10 14 10 20"}),e.jsx("polyline",{points:"20 10 14 10 14 4"}),e.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),e.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}):e.jsxs(e.Fragment,{children:[e.jsx("polyline",{points:"15 3 21 3 21 9"}),e.jsx("polyline",{points:"9 21 3 21 3 15"}),e.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),e.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]})})}),e.jsx("button",{onClick:s,className:o.iconButton,title:"Close (Esc)",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]}),e.jsxs("div",{className:o.slideArea,ref:f,children:[e.jsx("button",{onClick:h,disabled:i<=1,
1className:`${o.navArrow} ${o.navArrowLeft}`,title:"Previous page",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})})}),e.jsx("div",{className:o.pageContainer,children:e.jsx(w,{file:t.pdfPath,onLoadSuccess:({numPages:n})=>{d(n),N(!1)},loading:e.jsxs("div",{className:o.loading,children:[e.jsx("div",{className:o.spinner}),e.jsx("span",{children:"Loading PDF..."})]}),children:!b&&e.jsx(A,{mode:"wait",custom:_,children:e.jsx(B.div,{custom:_,variants:P,initial:"enter",animate:"center",exit:"exit",transition:{duration:.25,ease:[.4,0,.2,1]},children:e.jsx(k,{pageNumber:i,width:C,renderTextLayer:!0,renderAnnotationLayer:!0,onRenderSuccess:n=>{v||x(n.originalWidth/n.originalHeight)}})},i)})})}),e.jsx("button",{onClick:u,disabled:i>=c,className:`${o.navArrow} ${o.navArrowRight}`,title:"Next page",children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"9 18 15 12 9 6"})})})]}),c>1&&e.jsx("div",{className:o.pagination,children:Array.from({length:c},(n,L)=>L+1).map(n=>e.jsx("button",{onClick:()=>l(n),className:`${o.dot} ${n===i?o.dotActive:""}`,"aria-label":`Go to page ${n}`},n))})]})})}const xe=[{id:"carousel-template",title:"Italian Market",description:"Interactive walkthrough of Solar Intelligence platform features, AI agent capabilities, and data coverage.",pdfPath:"/use-cases/template_carousel.pdf",category:"Platform Overview",categoryColor:"#60a5fa"},{id:"non-chinese-supply-chain",title:"Non-Chinese Solar Supply Chain",description:"Analysis of solar PV supply chain alternatives beyond Chinese manufacturers, covering sourcing strategies, key suppliers, and market opportunities for diversified procurement.",pdfPath:"/use-cases/non-chinese-supply-chain.pdf",category:"Market Intelligence",categoryColor:"#34d399"},{id:"middle-east-solar",title:"Middle East Solar Market",description:"Overview of solar energy development across the Middle East region, including project pipelines, regulatory frameworks, investment trends, and growth opportunities.",pdfPath:"/use-cases/middle-east-solar.pdf",category:"Regional Markets",categoryColor:"#f59e0b"},{id:"bipv-battery-storage",title:"BIPV & Battery Storage",description:"Comprehensive analysis of Building-Integrated Photovoltaics (BIPV) combined with battery storage systems, covering technology trends, market potential, and integration strategies.",pdfPath:"/use-cases/bipv-battery-storage-final.pdf",category:"Technology",categoryColor:"#a78bfa"}],pe="_page_1u5xi_11",ge="_heroSection_1u5xi_25",me="_heroContent_1u5xi_59",_e="_container_1u5xi_69",fe="_navHeader_1u5xi_83",ve="_logoSection_1u5xi_97",je="_logo_1u5xi_97",ye="_backLink_1u5xi_127",we="_heroTitle_1u5xi_169",ke="_accent_1u5xi_199",Ce="_mainContent_1u5xi_227",be="_footer_1u5xi_237",Ne="_footerContent_1u5xi_251",Pe="_footerLinks_1u5xi_259",Le="_copyright_1u5xi_301",a={page:pe,heroSection:ge,heroContent:me,container:_e,navHeader:fe,logoSection:ve,logo:je,backLink:ye,heroTitle:we,accent:ke,mainContent:Ce,footer:be,footerContent:Ne,footerLinks:Pe,copyright:Le},y=I("/use-cases");S.workerSrc=new URL("/assets/pdf.worker.min-qwK7q_zL.mjs",import.meta.url).toString();function Fe(){const[t,s]=r.useState(null);return e.jsxs("div",{className:a.page,children:[e.jsx(E,{title:y.title,description:y.description,path:"/use-cases"}),e.jsx(W,{}),e.jsx("section",{className:a.heroSection,children:e.jsx("div",{className:a.container,children:e.jsxs("div",{className:a.heroContent,children:[e.jsxs("div",{className:a.navHeader,children:[e.jsx("div",{className:a.logoSection,children:e.jsx("div",{className:a.logo,children:e.jsx("img",{src:"/logos/new_logo.svg",alt:"Solar Intelligence",style:{height:"60px",width:"auto"}})})}),e.jsx("a",{href:"/",className:a.backLink,children:"â Back to Home"})]}),e.jsxs("div",{className:a.heroTitle,children:[e.jsxs("h1",{children:["Use ",e.jsx("span",{className:a.accent,children:"Cases"})]}
1),e.jsx("p",{children:"Explore how Solar Intelligence transforms solar market analysis with real-world applications and success stories"})]})]})})}),e.jsx("main",{className:a.mainContent,children:e.jsx("div",{className:a.container,children:e.jsx(G,{useCases:xe,onSelect:s})})}),t&&e.jsx(ue,{useCase:t,onClose:()=>s(null)}),e.jsx("footer",{className:a.footer,children:e.jsx("div",{className:a.container,children:e.jsxs("div",{className:a.footerContent,children:[e.jsxs("div",{className:a.footerLinks,children:[e.jsx("a",{href:"/",children:"Home"}),e.jsx("a",{href:"/privacy",children:"Privacy Policy"}),e.jsx("a",{href:"/terms",children:"Terms of Service"}),e.jsx("a",{href:"/cookie-policy",children:"Cookie Policy"})]}),e.jsx("div",{className:a.copyright,children:e.jsxs("p",{children:["© ",new Date().getFullYear()," Solar Intelligence. All rights reserved."]})})]})})})]})}export{Fe as UseCasesPage,Fe as default};
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.