1import{a as e}from"./rolldown-runtime-BEU_UCik.js";import{r as s}from"./vendor-auth-DAuWozuU.js";import{h as t}from"./chunk-62JRHF6Z-D9puh-us.js";import{t as a}from"./index.esm-BEieHnny.js";import{a as i,n as r}from"./vendor-query-Ct_3YD9H.js";import{t as n}from"./index.es-BTkwoywu.js";import{t as l}from"./projectService-D25XshJp.js";import{n as c}from"./ThemeManager-ILkyB1Q0.js";import{mt as o,pt as d}from"./free-solid-svg-icons-BD_SwYKY.js";import{t as C}from"./spinner-f5EoijQJ.js";import{t as h}from"./Loading-XkN6_W9E.js";import{t as m}from"./useProject-_1FGJNGu.js";import{_ as p,g as x,i as j,o as u,r as g}from"./vendor-charts-CIrZe8F2.js";import{o as f}from"./chartUtils-BgSJGHV9.js";import{t as b}from"./ChartDashboard-6nGBJd0Q.js";import{t as y}from"./ErrorDisplay-wA_eppWS.js";import{t as v}from"./ProjectInfoHeader-BDab4SZD.js";import{t as H}from"./lib-q-9UOV8A.js";var L=e(s()),w=i();function N({summary:e}){const[s,t]=(0,L.useState)(!1),[a,i]=(0,L.useState)(!1),r=(0,L.useRef)([]);(0,L.useEffect)(()=>()=>r.current.forEach(clearTimeout),[]);const l=()=>{i(!0);const e=setTimeout(()=>{t(!0),i(!1);const e=setTimeout(()=>{t(!1)},3e3);r.current.push(e)},1e3);r.current.push(e)};return(0,w.jsxs)("div",{className:"summary",children:[e?(0,w.jsx)(H,{disallowedElements:["code","pre"],children:e}):(0,w.jsx)("p",{className:"fallback",children:"No summary available."}),s?(0,w.jsx)("span",{className:"feedback-thanks",children:"Thank you for your feedback!"}):(0,w.jsx)("div",{className:"feedback-buttons",children:a?(0,w.jsx)("img",{src:C,alt:"loading",className:"feedback-spinner"}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("button",{className:"up",value:"good",onClick:l,children:[(0,w.jsx)(n,{icon:o}),(0,w.jsx)("span",{className:"sr-only",children:"thumbs up"})]}),(0,w.jsxs)("button",{className:"down",value:"bad",onClick:l,children:[(0,w.jsx)(n,{icon:d}),(0,w.jsx)("span",{className:"sr-only",children:"thumbs down"})]})]})})]})}var O=e(p()),M=e(x()),V=e(u()),k=e(j()),T=e(g());(0,M.default)(O.default),(0,k.default)(O.default),(0,V.default)(O.default);var S=(0,L.memo)(({data:e})=>{const{theme:s}=c(),[t,a]=(0,L.useState)({});return(0,L.useEffect)(()=>{e&&Object.keys(e).length>0&&a(((e,s)=>({colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"],chart:{className:`highcharts-${s}`,styledMode:!1},title:{text:null},accessibility:{point:{valueDescriptionFormat:"{index}. {point.from} to {point.to}, {point.weight}."}},series:[{keys:["from","to","weight"],data:e=Object.values(e&&"object"==typeof e?e:{}),type:"sankey",name:"Search activity"}]}))(e,s))},[e,s]),e&&0!==Object.keys(e).length?(0,w.jsx)(T.default,{containerProps:{id:"consumer-search-chart","data-testid":"consumer-search-chart"},highcharts:O.default,options:t}):(0,w.jsx)("div",{className:"h-[450px] grid place-items-center font-bold md:text-xl",children:(0,w.jsx)("p",{children:"No consumer search data available."})})}),Z=e=>e>999999999?`${(e/1e9).toFixed(1)}B`:e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e,F=({data:e,project_name:s})=>{const{theme:t}=c(),a=(0,L.useMemo)(()=>e&&0!==Object.keys(e).length?W(e,s,t):{},[e,s,t]);return e&&0!==Object.keys(e).length?(0,w.jsx)("div",{className:"direct-comp-chart",children:(0,w.jsx)(b,{config:a,id:"direct-competitor"})}):(0,w.jsx)("div",{className:"direct-comp-chart",children:(0,w.jsx)("p",{children:"No direct competitor data available"})})},W=(e,s,t)=>({gui:{layouts:[{rows:[{cells:[{id:"direct-competitor-cell"}]}]}]},components:[{type:"Highcharts",cell:"direct-competitor-cell",chartOptions:{colors:{dark:f("#FFA063","#FF3C6D",e.length),light:f("#0561B7","#020021",e.length)}[t],chart:{type:"bubble",zoomType:"xy",reflow:!0,styledMode:!1,height:450},legend:{enabled:!1},title:{text:null},subtitle:{text:s?`Project: ${s}`:"",verticalAlign:"bottom",align:"right"},accessibility:{point:{valueDescriptionFormat:"{index}. {point.brand_name}, launch year: {point.x}, since-launch revenue: ${point.y}"}},xAxis:{title:{text:"Launch Year"},labels:{format:"{value}"},accessibility:{rangeDescription:"Range: 1990 to 2006."}},yAxis:{startOnTick:!1,endOnTick:!1,title:{text:"Since-launch Revenue (USD)"},labels:{formatter:function(){return Z(+this.value)}},maxPadding:.2,plotLines:[{dashStyle:"dot",width:1,value:0,label:{text:"",x:-10},zIndex:3}],accessibility:{rangeDescription:"Range: $1 Billion USD to $150 Billion USD"}},tooltip:{formatter:function(){return`<h3 style="font-weight: bold; font-size: 1rem">${this.point?.brand_name??""}</h3>\n <br />\n <p>\n <strong>Launch Year:</strong> ${this.point?.x??"â"}\n </p>\n <br />\n <p>\n <strong>Since-Launch Revenue:</strong> $${Z(this.point?.y??0)}\n </p>\n <br />\n <p>\n <strong>Manufacturer:</strong> ${this.point?.manufacturer??"â"}\n </p>\n <br />\n <p>\n <strong>Generic Name:</strong> ${this.point?.z??"â"}\n </p>`}},plotOptions:{series:{dataLabels:{enabled:!0,format:"{point.brand_name}"}}},series:[{data:e,colorByPoint:!0}]}}]}),_=({swotHeadlines:e})=>{const{theme:s}=c(),t="dark"===s,a={S:t?"#9169F6":"#CDBBF4",W:t?"#539196":"#E9DCBC",O:t?"#F1C299":"#020001",T:t?"#EE9FBA":"#D65B37"};return(0,w.jsxs)("svg",{className:"swot-graphic w-full h-full max-w-5xl mx-auto",width:"990",height:"688",viewBox:"0 0 990 688",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"swot-graphic",children:[(0,w.jsxs)("g",{id:"SWOT-letters",fill:t?"white":"black",fillOpacity:"0.05",children:[(0,w.jsx)("path",{id:"SWOT-letters-S",d:"M207.283 218.92C199.71 218.92
1192.67 217.533 186.163 214.76C179.763 211.987 174.216 208.147 169.523 203.24C164.936 198.227 161.576 192.413 159.443 185.8L177.523 177.96C180.403 184.787 184.563 190.173 190.003 194.12C195.443 197.96 201.576 199.88 208.403 199.88C212.243 199.88 215.55 199.293 218.323 198.12C221.203 196.84 223.39 195.133 224.883 193C226.483 190.867 227.283 188.307 227.283 185.32C227.283 181.8 226.216 178.92 224.083 176.68C222.056 174.333 218.963 172.52 214.803 171.24L191.923 163.88C182.643 161 175.656 156.68 170.963 150.92C166.27 145.16 163.923 138.387 163.923 130.6C163.923 123.773 165.576 117.747 168.883 112.52C172.296 107.293 176.99 103.24 182.963 100.36C189.043 97.3733 195.976 95.88 203.763 95.88C210.91 95.88 217.47 97.16 223.443 99.72C229.416 102.173 234.536 105.64 238.803 110.12C243.176 114.493 246.43 119.667 248.563 125.64L230.643 133.64C228.296 127.667 224.776 123.08 220.083 119.88C215.39 116.573 209.95 114.92 203.763 114.92C200.136 114.92 196.936 115.56 194.163 116.84C191.39 118.013 189.203 119.72 187.603 121.96C186.11 124.093 185.363 126.653 185.363 129.64C185.363 132.947 186.43 135.88 188.563 138.44C190.696 140.893 193.95 142.813 198.323 144.2L220.243 151.08C229.736 154.173 236.83 158.44 241.523 163.88C246.323 169.32 248.723 176.04 248.723 184.04C248.723 190.867 246.963 196.893 243.443 202.12C239.923 207.347 235.07 211.453 228.883 214.44C222.696 217.427 215.496 218.92 207.283 218.92Z"}),(0,w.jsx)("path",{id:"SWOT-letters-W",d:"M736.198 217L704.198 97.8H727.558L752.678 199.4H746.598L772.838 97.8H795.398L821.478 199.4H815.398L840.518 97.8H863.878L831.878 217H806.918L780.518 118.12H787.558L761.158 217H736.198Z"}),(0,w.jsx)("path",{id:"SWOT-letters-O",d:"M205.506 601.92C196.759 601.92 188.599 600.373 181.026 597.28C173.452 594.187 166.839 589.867 161.186 584.32C155.532 578.773 151.106 572.267 147.906 564.8C144.812 557.227 143.266 549.067 143.266 540.32C143.266 531.467 144.812 523.307 147.906 515.84C150.999 508.373 155.372 501.867 161.026 496.32C166.679 490.773 173.292 486.507 180.866 483.52C188.439 480.427 196.652 478.88 205.506 478.88C214.359 478.88 222.572 480.427 230.146 483.52C237.719 486.613 244.332 490.933 249.986 496.48C255.639 501.92 260.012 508.373 263.106 515.84C266.306 523.307 267.906 531.467 267.906 540.32C267.906 549.067 266.306 557.227 263.106 564.8C259.906 572.267 255.479 578.773 249.826 584.32C244.172 589.867 237.559 594.187 229.986 597.28C222.519 600.373 214.359 601.92 205.506 601.92ZM205.506 582.08C211.372 582.08 216.759 581.067 221.666 579.04C226.572 576.907 230.839 573.973 234.466 570.24C238.199 566.507 241.026 562.08 242.946 556.96C244.972 551.84 245.986 546.293 245.986 540.32C245.986 534.347 244.972 528.853 242.946 523.84C241.026 518.72 238.199 514.293 234.466 510.56C230.839 506.72 226.572 503.787 221.666 501.76C216.759 499.733 211.372 498.72 205.506 498.72C199.746 498.72 194.412 499.733 189.506 501.76C184.599 503.787 180.279 506.72 176.546 510.56C172.919 514.293 170.092 518.72 168.066 523.84C166.039 528.853 165.026 534.347 165.026 540.32C165.026 546.293 166.039 551.84 168.066 556.96C170.092 562.08 172.919 566.507 176.546 570.24C180.279 573.973 184.599 576.907 189.506 579.04C194.412 581.067 199.746 582.08 205.506 582.08Z"}),(0,w.jsx)("path",{id:"SWOT-letters-T",d:"M773.781 600V500H742.901V480.8H826.101V500H795.701V600H773.781Z"})]}),(0,w.jsxs)("g",{id:"circle",children:[(0,w.jsx)("path",{id:"circle-S",d:"M489.5 181.091C403.85 183.931 334.931 252.85 332.091 338.5H358.109C360.923 267.211 418.211 209.923 489.5 207.108V181.091Z",fill:a.S}),(0,w.jsx)("path",{id:"circle-W",d:"M499.5 207.073V181.061C585.613 183.395 655.058 252.517 657.909 338.5H631.892C629.064 266.878 571.252 209.388 499.5 207.073Z",fill:a.W}),(0,w.jsx)("path",{id:"circle-O",d:"M358.073 348.5C360.388 420.252 417.878 478.064 489.5 480.892V506.909C403.517 504.058 334.395 434.613 332.061 348.5H358.073Z",fill:a.O}),(0,w.jsx)("path",{id:"circle-T",d:"M499.5 480.927C571.586 478.601 629.601 420.586 631.927 348.5H657.939C655.596 434.947 585.947 504.596 499.5 506.939V480.927Z",fill:a.T}),(0,w.jsx)("circle",{id:"circle-center",cx:"495",cy:"344",r:"128",fill:t?"white":"black",fillOpacity:t?"0.2":"0.1"}),(0,w.jsx)("path",{id:"circle-text",d:"M433.528 339.576C431.256 339.576 429.144 339.16 427.192 338.328C425.272 337.496 423.608 336.344 422.2 334.872C420.824 333.368 419.816 331.624 419.176 329.64L424.6 327.288C425.464 329.336 426.712 330.952 428.344 332.136C429.976 333.288 431.816 333.864 433.864 333.864C435.016 333.864 436.008 333.688 436.84 333.336C437.704 332.952 438.36 332.44 438.808 331.8C439.288 331.16 439.528 330.392 439.528 329.496C439.528 328.44 439.208 327.576 438.568 326.904C437.96 326.2 437.032 325.656 435.784 325.272L428.92 323.064C426.136 322.2 424.04 320.904 422.632 319.176C421.224 317.448 420.52 315.416 420.52 313.08C420.52 311.032 421.016 309.224 422.008 307.656C423.032 306.088 424.44 304.872 426.232 304.008C428.056 303.112 430.136 3
102.664 432.472 302.664C434.616 302.664 436.584 303.048 438.376 303.816C440.168 304.552 441.704 305.592 442.984 306.936C444.296 308.248 445.272 309.8 445.912 311.592L440.536 313.992C439.832 312.2 438.776 310.824 437.368 309.864C435.96 308.872 434.328 308.376 432.472 308.376C431.384 308.376 430.424 308.568 429.592 308.952C428.76 309.304 428.104 309.816 427.624 310.488C427.176 311.128 426.952 311.896 426.952 312.792C426.952 313.784 427.272 314.664 427.912 315.432C428.552 316.168 429.528 316.744 430.84 317.16L437.416 319.224C440.264 320.152 442.392 321.432 443.8 323.064C445.24 324.696 445.96 326.712 445.96 329.112C445.96 331.16 445.432 332.968 444.376 334.536C443.32 336.104 441.864 337.336 440.008 338.232C438.152 339.128 435.992 339.576 433.528 339.576ZM461.401 339L451.801 303.24H458.809L466.345 333.72H464.521L472.393 303.24H479.161L486.985 333.72H485.161L492.697 303.24H499.705L490.105 339H482.617L474.697 309.336H476.809L468.889 339H461.401ZM523.705 339.576C521.081 339.576 518.633 339.112 516.361 338.184C514.089 337.256 512.105 335.96 510.409 334.296C508.713 332.632 507.385 330.68 506.425 328.44C505.497 326.168 505.033 323.72 505.033 321.096C505.033 318.44 505.497 315.992 506.425 313.752C507.353 311.512 508.665 309.56 510.361 307.896C512.057 306.232 514.041 304.952 516.313 304.056C518.585 303.128 521.049 302.664 523.705 302.664C526.361 302.664 528.825 303.128 531.097 304.056C533.369 304.984 535.353 306.28 537.049 307.944C538.745 309.576 540.057 311.512 540.985 313.752C541.945 315.992 542.425 318.44 542.425 321.096C542.425 323.72 541.945 326.168 540.985 328.44C540.025 330.68 538.697 332.632 537.001 334.296C535.305 335.96 533.321 337.256 531.049 338.184C528.809 339.112 526.361 339.576 523.705 339.576ZM523.705 333.624C525.465 333.624 527.081 333.32 528.553 332.712C530.025 332.072 531.305 331.192 532.393 330.072C533.513 328.952 534.361 327.624 534.937 326.088C535.545 324.552 535.849 322.888 535.849 321.096C535.849 319.304 535.545 317.656 534.937 316.152C534.361 314.616 533.513 313.288 532.393 312.168C531.305 311.016 530.025 310.136 528.553 309.528C527.081 308.92 525.465 308.616 523.705 308.616C521.977 308.616 520.377 308.92 518.905 309.528C517.433 310.136 516.137 311.016 515.017 312.168C513.929 313.288 513.081 314.616 512.473 316.152C511.865 317.656 511.561 319.304 511.561 321.096C511.561 322.888 511.865 324.552 512.473 326.088C513.081 327.624 513.929 328.952 515.017 330.072C516.137 331.192 517.433 332.072 518.905 332.712C520.377 333.32 521.977 333.624 523.705 333.624ZM556.473 339V309H547.209V303.24H572.169V309H563.049V339H556.473ZM405.601 389L415.881 359.2H422.921L433.201 389H427.281L425.161 382.6H413.641L411.481 389H405.601ZM415.201 377.8H423.601L418.641 362.96H420.161L415.201 377.8ZM438.877 389V367.24H443.797V371.52L443.397 370.76C443.904 369.453 444.731 368.467 445.877 367.8C447.051 367.107 448.411 366.76 449.957 366.76C451.557 366.76 452.971 367.107 454.197 367.8C455.451 368.493 456.424 369.467 457.117 370.72C457.811 371.947 458.157 373.373 458.157 375V389H452.917V376.24C452.917 375.28 452.731 374.453 452.357 373.76C451.984 373.067 451.464 372.533 450.797 372.16C450.157 371.76 449.397 371.56 448.517 371.56C447.664 371.56 446.904 371.76 446.237 372.16C445.571 372.533 445.051 373.067 444.677 373.76C444.304 374.453 444.117 375.28 444.117 376.24V389H438.877ZM471.988 389.48C470.468 389.48 469.148 389.227 468.028 388.72C466.908 388.213 466.042 387.493 465.428 386.56C464.815 385.6 464.508 384.493 464.508 383.24C464.508 382.04 464.775 380.973 465.308 380.04C465.842 379.08 466.668 378.28 467.788 377.64C468.908 377 470.322 376.547 472.028 376.28L479.148 375.12V379.12L473.028 380.16C471.988 380.347 471.215 380.68 470.708 381.16C470.202 381.64 469.948 382.267 469.948 383.04C469.948 383.787 470.228 384.387 470.788 384.84C471.375 385.267 472.095 385.48 472.948 385.48C474.042 385.48 475.002 385.253 475.828 384.8C476.682 384.32 477.335 383.667 477.788 382.84C478.268 382.013 478.508 381.107 478.508 380.12V374.52C478.508 373.587 478.135 372.813 477.388 372.2C476.668 371.56 475.708 371.24 474.508 371.24C473.388 371.24 472.388 371.547 471.508 372.16C470.
1655 372.747 470.028 373.533 469.628 374.52L465.348 372.44C465.775 371.293 466.442 370.307 467.348 369.48C468.282 368.627 469.375 367.96 470.628 367.48C471.882 367 473.242 366.76 474.708 366.76C476.495 366.76 478.068 367.093 479.428 367.76C480.788 368.4 481.842 369.307 482.588 370.48C483.362 371.627 483.748 372.973 483.748 374.52V389H478.788V385.28L479.908 385.2C479.348 386.133 478.682 386.92 477.908 387.56C477.135 388.173 476.255 388.653 475.268 389C474.282 389.32 473.188 389.48 471.988 389.48ZM491.392 389V358.72H496.632V389H491.392ZM506.91 397.84C506.323 397.84 505.75 397.787 505.19 397.68C504.63 397.6 504.123 397.453 503.67 397.24V392.84C504.016 392.92 504.43 393 504.91 393.08C505.416 393.16 505.883 393.2 506.31 393.2C507.51 393.2 508.376 392.92 508.91 392.36C509.47 391.8 509.963 391.067 510.39 390.16L511.83 386.8L511.75 391.2L502.27 367.24H507.91L514.55 384.92H512.55L519.15 367.24H524.83L515.35 391.2C514.79 392.613 514.11 393.813 513.31 394.8C512.51 395.787 511.576 396.533 510.51 397.04C509.47 397.573 508.27 397.84 506.91 397.84ZM538.787 389.48C536.467 389.48 534.441 388.933 532.707 387.84C531.001 386.72 529.827 385.213 529.187 383.32L533.107 381.44C533.667 382.667 534.441 383.627 535.427 384.32C536.441 385.013 537.561 385.36 538.787 385.36C539.747 385.36 540.507 385.147 541.067 384.72C541.627 384.293 541.907 383.733 541.907 383.04C541.907 382.613 541.787 382.267 541.547 382C541.334 381.707 541.027 381.467 540.627 381.28C540.254 381.067 539.841 380.893 539.387 380.76L535.827 379.76C533.987 379.227 532.587 378.413 531.627 377.32C530.694 376.227 530.227 374.933 530.227 373.44C530.227 372.107 530.561 370.947 531.227 369.96C531.921 368.947 532.867 368.16 534.067 367.6C535.294 367.04 536.694 366.76 538.267 366.76C540.321 366.76 542.134 367.253 543.707 368.24C545.281 369.227 546.401 370.613 547.067 372.4L543.067 374.28C542.694 373.293 542.067 372.507 541.187 371.92C540.307 371.333 539.321 371.04 538.227 371.04C537.347 371.04 536.654 371.24 536.147 371.64C535.641 372.04 535.387 372.56 535.387 373.2C535.387 373.6 535.494 373.947 535.707 374.24C535.921 374.533 536.214 374.773 536.587 374.96C536.987 375.147 537.441 375.32 537.947 375.48L541.427 376.52C543.214 377.053 544.587 377.853 545.547 378.92C546.534 379.987 547.027 381.293 547.027 382.84C547.027 384.147 546.681 385.307 545.987 386.32C545.294 387.307 544.334 388.08 543.107 388.64C541.881 389.2 540.441 389.48 538.787 389.48ZM553.854 389V367.24H559.094V389H553.854ZM553.854 364.8V359.2H559.094V364.8H553.854ZM575.012 389.48C572.692 389.48 570.666 388.933 568.932 387.84C567.226 386.72 566.052 385.213 565.412 383.32L569.332 381.44C569.892 382.667 570.666 383.627 571.652 384.32C572.666 385.013 573.786 385.36 575.012 385.36C575.972 385.36 576.732 385.147 577.292 384.72C577.852 384.293 578.132 383.733 578.132 383.04C578.132 382.613 578.012 382.267 577.772 382C577.559 381.707 577.252 381.467 576.852 381.28C576.479 381.067 576.066 380.893 575.612 380.76L572.052 379.76C570.212 379.227 568.812 378.413 567.852 377.32C566.919 376.227 566.452 374.933 566.452 373.44C566.452 372.107 566.786 370.947 567.452 369.96C568.146 368.947 569.092 368.16 570.292 367.6C571.519 367.04 572.919 366.76 574.492 366.76C576.546 366.76 578.359 367.253 579.932 368.24C581.506 369.227 582.626 370.613 583.292 372.4L579.292 374.28C578.919 373.293 578.292 372.507 577.412 371.92C576.532 371.333 575.546 371.04 574.452 371.04C573.572 371.04 572.879 371.24 572.372 371.64C571.866 372.04 571.612 372.56 571.612 373.2C571.612 373.6 571.719 373.947 571.932 374.24C572.146 374.533 572.439 374.773 572.812 374.96C573.212 375.147 573.666 375.32 574.172 375.48L577.652 376.52C579.439 377.053 580.812 377.853 581.772 378.92C582.759 379.987 583.252 381.293 583.252 382.84C583.252 384.147 582.906 385.307 582.212 386.32C581.519 387.307 580.559 388.08 579.332 388.64C578.106 389.2 576.666 389.48 575.012 389.48Z",fill:t?"white":"black"})]}),(0,w.jsxs)("g",{id:"lines",fill:t?"white":"black",fillOpacity:"0.1",children:[(0,w.jsx)("path",{id:"lines-left",d:"M0 342H316V345H0V342Z"}),(0,w.jsx)("path",{id:"lines-right",d:"M674 342H990V345H674V342Z"}),(0,w.jsx)("path",{id:"lines-top",d:"M493 165V1.31135e-07L496 0V165H493Z"}),(0,w.jsx)("path",{id:"lines-bottom",d:"M493 688V523H496V688H493Z"})]}),(0,w.jsxs)("g",{id:"SWOT-text",children:[(0,w.jsx)("foreignObject",{id:"SWOT-text-S",x:"33",y:"80",width:"350",height:"230",children:(0,w.jsxs)("div",{className:"swot-text",children:[(0,w.jsx)("h3",{children:"Strengths"}),(0,w.jsx)("ul",{children:e.strengths&&e.strengths.map((e,s)=>(0,w.jsx)("li",{children:e},s))})]})}),(0,w.jsx)("foreignObject",{id:"SWOT-text-W",x:"610",y:"80",width:"350",height:"230",children:(0,w.jsxs)("div",{className:"swot-text",children:[(0,w.jsx)("h3",{children:"Weaknesses"}),(0,w.jsx)("ul",{children:e.weaknesses&&e.weaknesses.map((e,s)=>(0,w.jsx)("li",{children:e},s))})]})}),(0,w.jsx)("foreignObject",{id:"SWOT-text-O",x:"33",y:"463",width:"350",height:"230",children:(0,w.jsxs)("div",{className:"swot-text",children:[(0,w.jsx)("h3",{children:"Opportunities"}),(0,w.jsx)("ul",{children:e.opportunities&&e.opportunities.map((e,s)=>(0,w.jsx)("li",{children:e},s))})]})}),(0,w.jsx)("foreignObject",{id:"SWOT-text-T",x:"610",y:"463",width:"350",height:"230",children:(0,w.jsxs)("div",{className:"swot-text",children:[(0,w.jsx)("h3",{children:"Threats"}),(0,w.jsx)("ul",{children:e.threats&&e.threats.map((e,s)=>(0,w.jsx)("li",{children:e},s))})]})})]})]})},A=({swotHeadlines:e,swotAnalysis:s})=>(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)("div",{className:"swot-analysis",children:[(0,w.jsx)("div",{className:"w-full hidden md:mb-4 md:block",children:e&&Object.values(e).every(e=>Array.isArray(e)&&e.length>0)?(0,w.jsx)(_,{swotHeadlines:e}):(0,w.jsx)("p",{className:"p-4 md:p-8 text-center font-bold",children:"SWOT Headlines not available."})}),(0,w.jsx)("div",{className:"swot-text",children:s&&s.length>0?(0,w.jsx)(H,{disallowedElements:["code","pre"],children:s?.replace("Strengths:","Strengths").replace("Weaknesses:","Weaknesses").replace("Opportunities:","Opportunities").replace("Threats:","Threats").replace(/<br>/g,"\n")}):null})]})}),D=async({queryKey:e,signal:s})=>{const[,t]=e;return l.getBrandAnalysis(t,s)},$=()=>{const e=t().projectId,{project:s,loading:i,error:n}=m(e),{brandData:l,loading:c,error:o}=((e,{enabled:s=!0,staleTime:t=6e4,gcTime:a=3e5,refetchOnWindowFocus:i=!0}={})=>{const n=r({queryKey:["brandAnalysis",e],queryFn:D,enabled:!!e&&s,staleTime:t,gcTime:a,refetchOnWindowFocus:i});return{data:n.data??null,loading:n.isPending,error:n.error??null,isFetching:n.isFetching,refetch:n.refetch}})(e);return c||i?(0,w.jsx)(h,{}):n||o?(0,w.jsx)("div",{className:"competitive-analysis page-base space-y-4 md:space-y-8",children:(0,w.jsx)(y,{error:n||o})}):l&&0!==Object.keys(l).length?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a,{children:(0,w.jsx)("title",{children:(s?.name?s.name+" Competitive Analysis":"Competitive Analysis")+" | Idea Evolver"})}),(0,w.jsxs)("div",{className:"competitive-analysis page-base space-y-4 md:space-y-8",children:[(0,w.jsxs)("section",{children:[(0,w.jsx)(v,{className:"mb-2",project:s,linkToProjectPage:!0}),(0,w.jsxs)("div",{className:"page-section",children:[(0,w.jsx)("h2",{className:"section-header",children:"Overview"}),(0,w.jsx)("div",{id:"competitive-landscape",className:"p-4",children:(0,w.jsx)(N,{summary:l.competitive_landscape})})]})]}),(0,w.jsxs)("section",{className:"page-section",children:[(0,w.jsx)("h2",{className:"section-header",children:"Direct
1Competitors"}),l.competitors&&l.competitors.length>0?(0,w.jsx)(F,{data:l.competitors,project_name:l.parent_project_name}):(0,w.jsx)("p",{children:"No competitor data available at this time"})]}),(0,w.jsxs)("section",{className:"page-section",children:[(0,w.jsx)("h2",{className:"section-header",children:"Market Demographic Analysis"}),(0,w.jsx)("div",{className:"space-y-4 p-2 md:p-4",children:l.demographic_analysis?(0,w.jsx)(H,{disallowedElements:["code","pre"],children:l.demographic_analysis}):(0,w.jsx)("p",{children:"No demographic analysis data available at this time"})})]}),(0,w.jsxs)("section",{className:"page-section",children:[(0,w.jsx)("h2",{className:"section-header",children:"Consumer Search Activity"}),(0,w.jsx)(S,{data:l.search_chart_data})]}),(0,w.jsxs)("section",{className:"page-section",children:[(0,w.jsx)("h2",{className:"section-header",children:"S.W.O.T. Analysis"}),l.swot_headlines&&l.swot_analysis&&(0,w.jsx)(A,{swotHeadlines:l.swot_headlines,swotAnalysis:l.swot_analysis})]})]})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a,{children:(0,w.jsx)("title",{children:"Competitive Landscape | Idea Evolver"})}),(0,w.jsx)("div",{className:"competitive-analysis page-base space-y-4 md:space-y-8",children:(0,w.jsxs)("section",{className:"page-section",children:[(0,w.jsx)("h1",{className:"mb-2",children:"Competitive Landscape"}),(0,w.jsx)("p",{children:"No brand data available."})]})})]})};export{$ 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.