1import{a as e}from"./rolldown-runtime-BEU_UCik.js";import{r as t}from"./vendor-auth-DAuWozuU.js";import{h as a,m as s}from"./chunk-62JRHF6Z-D9puh-us.js";import{t as n}from"./index.esm-BEieHnny.js";import{a as r}from"./vendor-query-Ct_3YD9H.js";import{n as o}from"./User-BzNI1SQp.js";import{t as i}from"./index.es-BTkwoywu.js";import{n as l}from"./ThemeManager-ILkyB1Q0.js";import{ot as c,w as d}from"./free-solid-svg-icons-BD_SwYKY.js";import{t as m}from"./Loading-XkN6_W9E.js";import{t as h}from"./useProject-_1FGJNGu.js";import{_ as u,g as p,n as g,t as y}from"./vendor-charts-CIrZe8F2.js";import{a as x,c as v,n as j,o as b,t as _}from"./chartUtils-BgSJGHV9.js";import{t as f}from"./ChartDashboard-6nGBJd0Q.js";import{c as w,i as N,o as k,r as C,s as S}from"./tableUtils-Cx91YH8V.js";import{n as $,t as B}from"./ErrorDisplay-CSn8m05Q.js";import{t as O}from"./ProjectInfoHeader-ByyklFgd.js";import{t as F}from"./Carousel-CLjcNo0i.js";var T=e(t()),M=r(),A=({data:e,project_name:t})=>{const{theme:a}=l(),s=(0,T.useMemo)(()=>null==e||null==e["Brand Subtotal"]||null==e["Condition Subtotal"]||null==e["Brand Subtotal"].search_volume_monthly_totals||0===e["Brand Subtotal"].search_volume_monthly_totals?.length||null==e["Condition Subtotal"].search_volume_monthly_totals||0===e["Condition Subtotal"].search_volume_monthly_totals?.length?{}:E(e,t,a),[e,t,a]);return null==e||null==e["Brand Subtotal"]||null==e["Condition Subtotal"]||null==e["Brand Subtotal"].search_volume_monthly_totals||0===e["Brand Subtotal"].search_volume_monthly_totals?.length||null==e["Condition Subtotal"].search_volume_monthly_totals||0===e["Condition Subtotal"]?.search_volume_monthly_totals?.length?(0,M.jsx)("div",{className:"min-h-[450px] p-4 font-bold grid place-items-center",children:(0,M.jsx)("p",{children:"Search Volume by Month by Type is not available."})}):(0,M.jsx)(f,{config:s,async:!0,id:"consumer-journey"})},E=(e,t,a)=>{const{search_volume_monthly_totals:s,search_volume_months:n}=e["Brand Subtotal"],{search_volume_monthly_totals:r,search_volume_months:o}=e["Condition Subtotal"],i=s.map((e,t)=>[n[t],e]),l=r.map((e,t)=>[o[t],e]),c={dark:[{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"rgb(255, 20, 145, 1)"],[.999,"rgb(255, 114, 71, 1)"]]},{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#13306F"]]}],light:[{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"rgb(255, 20, 145, 1)"],[.999,"rgb(255, 114, 71, 1)"]]},{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#0561B7"]]}]};return{gui:{layouts:[{rows:[{cells:[{id:"consumer-journey-cell"}]}]}]},components:[{type:"Highcharts",cell:"consumer-journey-cell",chartOptions:{colors:c[a]||c.dark,chart:{type:"column",styledMode:!1,height:450},accessibility:{description:"Image description:"},title:{text:"Search Volume by Month by Type"},subtitle:{text:`\n <div style="display: flex; row-gap: 1rem;">\n <div>${t?`Project: ${t}`:""}</div>\n <div>|</div>\n <div>Source: <a style="color: #999" href="https://semrush.com" target="_blank">SEMRush</a></div>\n </div>\n `},xAxis:{type:"datetime",tickmarkPlacement:"on",accessibility:{rangeDescription:"Range: 12 months."},categories:x(e[Object.keys(e)[0]].search_volume_months)},yAxis:{title:{text:"Total Search Volume"}},tooltip:{useHTML:!0,shadow:!1,borderWidth:2,headerFormat:"<table>",pointFormat:"\n <tr><th>Month:</th><td>{point.category}</td></tr>\n <tr><th>Monthly Volume:</th><td>{point.y}</td></tr>\n ",footerFormat:"</table>"},plotOptions:{column:{borderWidth:0,pointPadding:0,groupPadding:.145}},series:[{name:"Condition Search Volume",label:null,data:l},{name:"Branded Search Volume",label:null,data:i}]}}]}},P=["Brand Subtotal.estimated_monthly_cost_trend","Condition Subtotal.estimated_monthly_cost_trend","Grand Total.search_volume_months"];function G({data:e,project_name:t}){const{theme:a}=l(),s=(0,T.useMemo)(()=>null!=e&&0!==Object.keys(e).length&&v(e,P)?D(e,t,a):{},[e,t,a]);return null!=e&&0!==Object.keys(e).length&&v(e,P)?(0,M.jsx)("div",{className:"estimated-spend-type",children:(0,M.jsx)(f,{config:s,id:"estimated-spend-type-container"})}):(0,M.jsx)("p",{className:"min-h-[450px] px-4 py-8 font-bold grid place-content-center",children:"Estimated spend by type data is not available."})}var D=(e,t,a)=>({gui:{layouts:[{rows:[{cells:[{id:"estimated-spend-type-cell"}]}]}]},components:[{type:"Highcharts",cell:"estimated-spend-type-cell",chartOptions:{colors:{dark:["#FCFCFC","#020021"],light:["#C4D6EB","#0561B7"]}[a],chart:{type:"column",styledMode:!1,height:450},title:{text:"Estimated Monthly Spend by Type"},subtitle:{text:""+(t?`Project: ${t}`:"")},xAxis:{categories:x(e["Grand Total"].search_volume_months)},yAxis:{min:0,title:{text:"Spend in Millions"},stackLabels:{enabled:!0,formatter:function(){return C(this.total,0)},style:{color:"dark"===a?"#3AE500":"#020021",textOutline:"none",fontSize:"0.9rem"}}},tooltip:{headerFormat:"<b>{point.x}</b><br/>",formatter:function(){const e=`<span style="color:${this.point.color};">â</span>`;return`<b>${this.x}</b><br/>${e} ${this.series.name}: ${C(this.y)}`}},plotOptions:{column:{stacking:"normal"}},series:[{name:"Branded",data:e["Brand Subtotal"].estimated_monthly_cost_trend},{name:"Condition",data:e["Condition Subtotal"].estimated_monthly_cost_trend}]}}]}),V=e(u()),H=({data:e,project_name:t,condition:a,category_type:n})=>{const{theme:r}=l(),o=s(),i={Branded:6,Condition:7},c=(0,T.useMemo)(()=>
1{if(null==e||0===Object.keys(e).length)return{pie:{},bar:{}};const s="dark"===r?b("#FCFCFC","#020021",i[n]):b("#C4D6EB","#0561B7",i[n]);return{pie:U(e,n,s),bar:z(e,t,a,n,s,o,r)}},[e,t,a,n,r,o]);return null!=e&&Object.keys(e).length?(0,M.jsxs)("div",{className:"grid grid-cols-6",children:[(0,M.jsx)("div",{className:"col-span-2",children:(0,M.jsx)(f,{config:c.pie,id:`spend-category-${n}-pie-container`})}),(0,M.jsx)("div",{className:"col-span-4",children:(0,M.jsx)(f,{config:c.bar,id:`spend-category-${n}-bar-container`})})]}):(0,M.jsx)("p",{className:"min-h-[450px] px-4 py-8 font-bold grid place-content-center",children:"Estimated spend by category data is not available."})},U=(e,t,a)=>{const s=Object.entries(e).filter(([e,a])=>a.category_type===t).sort((e,a)=>"Branded"===t?_[e[0]]-_[a[0]]:j[e[0]]-j[a[0]]).map(([e])=>e),n=s.reduce((t,a)=>t+(e[a]?.estimated_total_cost||0),0),r=s.map(t=>{const a=e[t]?.estimated_total_cost||0;return{name:t.replace("Uncategorized - ",""),y:a/n*100,visible:a>1}});return{gui:{layouts:[{rows:[{cells:[{id:`${t}-estimated-spend-category-pie-cell`}]}]}]},components:[{type:"Highcharts",cell:`${t}-estimated-spend-category-pie-cell`,chartOptions:{colors:a,chart:{styledMode:!1,type:"pie",height:450},title:{text:`${t} Estimated Total Cost by Category`},tooltip:{enabled:!0,stickOnContact:!0,formatter:I},subtitle:{text:""},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:[{distance:-40,enabled:!0,formatter:L,style:{fontSize:"1rem",fontWeight:"bold",color:"contrast",textOutline:"1px solid contrast"}}]}},series:[{name:"Percentage",type:"pie",data:r}]}}]}},z=(e,t,a,s,n,r,o)=>{const i=Object.entries(e).filter(([e,t])=>t.category_type===s).sort((e,t)=>"Branded"===s?_[e[0]]-_[t[0]]:j[e[0]]-j[t[0]]).map(([e])=>e);return{dataPool:{connectors:[{id:"estimated-spend-category-bar",type:"JSON",options:{firstRowAsNames:!1,columnNames:i,data:Array.from({length:12},(t,a)=>[...i.map(t=>e?.[t]?.monthly_cost_trend?.[a]||0)])}}]},gui:{layouts:[{rows:[{cells:[{id:`${s}-estimated-spend-category-bar-cell`}]}]}]},components:[{type:"Highcharts",cell:`${s}-estimated-spend-category-bar-cell`,connector:{id:"estimated-spend-category-bar",columnAssignment:[{seriesId:"Branded",data:i}]},chartOptions:{colors:n,chart:{type:"column",styledMode:!1,height:450},title:{text:null},xAxis:{categories:x(e[Object.keys(e)[0]].search_volume_months)},yAxis:{title:{text:null},min:0,labels:{formatter:R},stackLabels:{enabled:!0,textOutline:"none",formatter:K,style:{color:"dark"===o?"#3AE500":"#020021",textOutline:"none",fontSize:"0.9rem"}}},tooltip:{formatter:function(){return q(this,n)}},plotOptions:{series:{stacking:"normal",events:{click:function(){W(this,s,t,a,r)}}}}}}]}},I=function(){return`<span style="color:${this.point.color};">â</span> <b>${this.point.name}</b>: ${V.default.numberFormat(this.point.percentage,1)}%`},L=function(){if(this.point.visible&&this.percentage>.5)return`${V.default.numberFormat(this.point.percentage,1)}%`},R=function(){return this.value>=1e6?this.value/1e6+"M":this.value>=1e3?this.value/1e3+"K":this.value},K=function(){return C(this.total,0)},q=function(e,t){const a=`<span style="color:${t[e.series.colorIndex||e.point.colorIndex||0]};">â </span>`,s=V.default.numberFormat(e.point.percentage,1);return`${a}${e.series.name}: ${C(e.point.y,0)} (${s}%)`},W=function(e,t,a,s,n){"Branded"===t&&n("/admin/keyword-universe",{state:{type:"Brand Project",project:a,category:e.name,condition:null}}),"Condition"===t&&n("/admin/keyword-universe",{state:{type:"Condition",project:null,condition:s,category:e.name}})},Q=({data:e,uuid:t,project_name:a,condition:n,category_type:r})=>{const{theme:i}=l(),{is_internal:c}=o(),d=s(),m={Branded:5,Condition:7},h=(0,T.useMemo)(()=>{if(null==e||0===Object.keys(e).length)return{};const s="dark"===i?b("#FCFCFC","#020021",m[r]):b("#C4D6EB","#0561B7",m[r]);return J(e,t,a,r,s,d)},[e,t,a,r,i,d]);return null==e||0===Object.keys(e).length?(0,M.jsx)(M.Fragment,{children:c?(0,M.jsx)("p",{className:"min-h-[450px] px-4 py-8 font-bold grid place-content-center",children:"Refresh this condition to generate chart data"}):(0,M.jsx)($,{children:(0,M.jsx)("p",{children:"This is information is available to enterprise accounts only."})})}):(0,M.jsx)(f,{config:h,id:`keyword-universe-${r}-${t}-bar-container`})},J=(e,t,a,s,n,r)=>{const o=Object.entries(e).filter(([e,t])=>t.category_type===s).map(([e])=>e).sort((e,t)=>
1"Branded"===s?_[e]-_[t]:j[e]-j[t]),i=o.map(t=>({name:t,data:Array.from({length:12},(a,s)=>e?.[t]?.search_volume_monthly_totals?.[s]||0),color:n[o.indexOf(t)]}));return{gui:{layouts:[{rows:[{cells:[{id:`${s}-${t}-keywords-stacked-cell`}]}]}]},components:[{type:"Highcharts",cell:`${s}-${t}-keywords-stacked-cell`,chartOptions:{colors:n,chart:{styledMode:!1,type:"column",height:450},sync:{highlight:!0},title:{text:null},xAxis:{categories:x(e[Object.keys(e)[0]].search_volume_months)},yAxis:{title:{text:"Monthly Interest"},min:0,stackLabels:{enabled:!0,textOutline:"none",formatter:Y,style:{textOutline:"none"}}},legend:{itemStyle:{fontSize:"14px"}},tooltip:{formatter:X},plotOptions:{series:{stacking:"normal",events:{click:function(){Z(this,s,a,t,r)}}}},series:i}}]}},Y=function(){return N(this.total,0)},Z=function(e,t,a,s,n){"Branded"===t&&n(`/clusters/${s}?category=${e.name}`)},X=function(){const e=`<span style="color:${this.point.color};">â </span>`,t=V.default.numberFormat(this.point.y,0);return`${e}<b>${this.point.series.name}</b><br>\n <b> Search Volume:</b> ${t}`},ee=e(p()),te=e(g());(0,ee.default)(te.default);var ae=()=>(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{className:"grid-item header",children:"Category"}),(0,M.jsx)("div",{className:"grid-item header center",children:"Count"}),(0,M.jsx)("div",{className:"grid-item header center",children:"Annual Volume"}),(0,M.jsx)("div",{className:"grid-item header center",children:"Estimated CTR*"}),(0,M.jsx)("div",{className:"grid-item header center",children:"Estimated Visits"}),(0,M.jsx)("div",{className:"grid-item header center",children:"Average CPC*"}),(0,M.jsx)("div",{className:"grid-item header center",children:"Estimated Total Cost"})]}),se=({row:e,category_type:t,value:a,sparklineOptions:s,color:n,showBranded:r,showCondition:o})=>{const i=e.split(" - ")[0];return("Branded"!==t||r)&&("Condition"!==t||o)?(0,M.jsxs)(T.Fragment,{children:[(0,M.jsxs)("div",{className:`category-${i.replace(" ","-")} grid-item data whitespace-nowrap space-x-2 gap-2`,children:[(0,M.jsx)("svg",{width:"12",height:"12",fill:n,children:(0,M.jsx)("rect",{width:"12",height:"12",rx:"6",ry:"6"})}),i]}),(0,M.jsx)("div",{className:"count grid-item data right",children:w(a.keyword_count)}),(0,M.jsx)("div",{className:"annual-volume grid-item data right",children:w(a.search_volume_avg_annual_total)}),(0,M.jsx)("div",{className:"estimated-ctr grid-item data right",children:k(a.click_through_rate,1)}),(0,M.jsx)("div",{className:"estimated-visits grid-item data right",children:w(a.estimated_visits)}),(0,M.jsx)("div",{className:"avg-cpc grid-item data right",children:C(a.cpc_final_avg)}),(0,M.jsx)("div",{className:"estimated-cost-total grid-item data right",children:C(a.estimated_total_cost)})]},`keyword-universe-${e}`):null},ne=({row:e,value:t,sparklineOptions:a,index:s,setBranded:n,showBranded:r,setCondition:o,showCondition:l})=>(0,M.jsxs)(T.Fragment,{children:[(0,M.jsx)("div",{className:`category-${e.replace(" ","-")} grid-item data subtotal whitespace-nowrap`,children:(0,M.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{const t=e.currentTarget.value;"Brand"===t?n(!r):"Condition"===t&&o(!l)},value:e.split(" ")[0],children:[(0,M.jsx)(i,{icon:d,size:"xs",className:"transform "+("Brand"===e.split(" ")[0]?r?"rotate-90":"":l?"rotate-90":"")}),e]})}),(0,M.jsx)("div",{className:"count grid-item data subtotal right",children:w(t.total_keyword_count)}),(0,M.jsx)("div",{className:"annual-volume grid-item data subtotal right",children:w(t.search_volume_avg_annual_total)}),(0,M.jsx)("div",{className:"estimated-ctr grid-item data subtotal right",children:k(t.ctr_final_avg,1)}),(0,M.jsx)("div",{className:"estimated-visits grid-item data subtotal right",children:w(t.total_estimated_visits)}),(0,M.jsx)("div",{className:"avg-cpc grid-item data subtotal right",children:C(t.cpc_final_avg)}),(0,M.jsx)("div",{className:"estimated-cost-total grid-item data subtotal right",children:C(t.estimated_final_annual_cost)})]},`keyword-category-${e}`),re=({row:e,value:t,sparklineOptions:a,index:s})=>(0,M.jsxs)(T.Fragment,{children:[(0,M.jsx)("div",{className:"category-grand-total grid-item data total whitespace-nowrap",children:e}),(0,M.jsx)("div",{className:"category-grand-total count grid-item data total right",children:w(t.total_keyword_count)}),(0,M.jsx)("div",{className:"category-grand-total annual-volume grid-item data total right",children:w(t.search_volume_avg_annual_total)}),(0,M.jsx)("div",{className:"category-grand-total estimated-ctr grid-item data total right",children:k(t.ctr_final_avg,1)}),(0,M.jsx)("div",{className:"category-grand-total estimated-visits grid-item data total right",children:w(t.total_estimated_visits)}),(0,M.jsx)("div",{className:"category-grand-total avg-cpc grid-item data total right",children:C(t.cpc_final_avg)}),(0,M.jsx)("div",{className:"category-grand-total estimated-cost-total grid-item data total right",children:C(t.estimated_final_annual_cost)})]},`keyword-category-${e}`),oe=({data:e,showBranded:t,showCondition:a})=>{const{theme:s}=l(),n=Object.keys(e),r="dark"===s?b("#FCFCFC","#020021",n.length):b("#C4D6EB","#0561B7",n.length);return n.map((n,o)=>{const i=S(n,e[n].search_volume_monthly_totals,s,"#0561B7");return(0,M.jsx)(se,{row:n,category_type:e[n].category_type,value:e[n],sparklineOptions:i,color:r[o],showBranded:t,showCondition:a},n)})},ie=({data:e})=>{const[t,a]=(0,T.useState)(!1),[s,n]=(0,T.useState)(!1),r=e["Condition Subtotal"],o=Object.entries(e).filter(([e,t])=>
1"Condition"===t.category_type).sort(([e],[t])=>j[e]-j[t]).reduce((e,[t,a])=>(e[t]=a,e),{}),i=e["Brand Subtotal"],l=Object.entries(e).filter(([e,t])=>"Branded"===t.category_type).sort(([e],[t])=>_[e]-_[t]).reduce((e,[t,a])=>(e[t]=a,e),{}),c=e["Grand Total"];return null===e||0===Object.keys(e).length||null==r||null==i||null==c?(0,M.jsx)("p",{className:"min-h-[450px] px-4 py-8 font-bold grid place-content-center",children:"Keyword Universe table data is not available."}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{className:"grid-container universe-category",role:"table",children:[(0,M.jsx)(ae,{}),(0,M.jsx)(ne,{row:"Condition Subtotal",value:r,index:0,sparklineOptions:S("Condition Subtotal",r.search_volume_monthly_totals),setCondition:n,showCondition:s}),(0,M.jsx)(oe,{data:o,showCondition:s}),(0,M.jsx)(ne,{row:"Brand Subtotal",value:i,index:6,sparklineOptions:S("Brand Subtotal",i.search_volume_monthly_totals),setBranded:a,showBranded:t}),(0,M.jsx)(oe,{data:l,showBranded:t}),(0,M.jsx)(re,{row:"Grand Total",value:c,index:10,sparklineOptions:S("Grand Total",c.search_volume_monthly_totals)})]}),(0,M.jsxs)("div",{className:"text-xs col-span-full flex gap-x-0.5 items-center",children:[(0,M.jsx)("div",{className:"text-xl translate-y-[5px]",children:"*"})," â Subtotal values listed for these columns are the sums across given categories; grand total values listed are final averages across all categories"]})]})};y()(V.default);var le=({data:e,project_name:t})=>{const{theme:a}=l(),[s,n]=(0,T.useState)({});return(0,T.useEffect)(()=>{null!=e&&0!==e.length&&n(ce(e,t,a))},[a]),null==e||0===e.length?(0,M.jsx)("p",{className:"px-4 py-8 font-bold text-center",children:"Wordcloud data is not available."}):(0,M.jsx)(f,{config:s,async:!0,id:"word-cloud-container"})},ce=(e,t,a)=>{const s={dark:b("#FF3C6D","#A79AC7",10),light:b("#0561B7","#020021",10)};return{gui:{layouts:[{rows:[{cells:[{id:"word-cloud-cell"}]}]}]},components:[{type:"Highcharts",cell:"word-cloud-cell",chartOptions:{colors:s[a],chart:{styledMode:!1,height:450},accessibility:{screenReaderSection:{beforeChartFormat:"<h5>{chartTitle}</h5><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{viewTableButton}</div>"}},series:[{type:"wordcloud",data:e,name:"Occurrences"}],title:{text:null},subtitle:{text:(t?`Project: ${t} | `:"")+"Weighted based on search volume average, square-root scaled",align:"left",verticalAlign:"bottom"},tooltip:{headerFormat:'<span style="font-size: 16px"><b>{point.key}</b></span><br>',pointFormatter:function(){return de(this,s[a])}}}}]}},de=function(e,t){return`<span style="color:${t[e.colorIndex||0]};">â </span><b> Search Volume:</b> ${V.default.numberFormat(e.original_value,0)}`};function me({data:e}){const[t,a]=(0,T.useState)(["all"]),[s,n]=(0,T.useState)([]),[r,o]=(0,T.useState)("desc");if(!e||0===Object.keys(e).length)return(0,M.jsx)("p",{className:"px-4 py-8 font-bold text-center",children:"Top Questions data is not available."});const l=(d=e,Object.entries(d).reduce((e,[a,n])=>{if(t.includes("all")||t.includes(a)){const t=Object.entries(n).reduce((e,[t,n])=>{if(0===s.length||s.includes(t)){const s=Object.entries(n).map(([e,s])=>({question:e,value:Number(s),subCategory:t,mainCategory:a}));return[...e,...s]}return e},[]);return[...e,...t]}return e},[])).sort((e,t)=>"desc"===r?t.value-e.value:e.value-t.value);var d;return(0,M.jsxs)("div",{className:"top-questions",children:[(0,M.jsxs)("div",{className:"border border-trusty-blue/50 rounded-sm overflow-hidden",children:[(0,M.jsx)("div",{className:"filter filter1-keys",children:["all","Condition","Lifestyle","Symptoms","Diagnosis","Treatment","Brand","Side Effects","OTC"].map((e,s)=>(0,M.jsxs)("div",{children:[(0,M.jsx)("input",{type:"checkbox",name:"filter1",id:`filter1-${e}`,value:e,checked:t.includes(e),onChange:()=>{return t=e,void a(e=>{if("all"===t)return["all"];{if(e.includes("all"))return[t];const a=e.includes(t)?e.filter(e=>e!==t):[...e,t];return 0===a.length?["all"]:a}});var t}}),(0,M.jsx)("label",{htmlFor:`filter1-${e}`,className:`label ${e}`,children:e.replace("-"," ")})]},`keys1-${s}`))}),(0,M.jsx)("hr",{className:"my-1 mx-4 p-0 border border-trusty-blue"}),(0,M.jsx)("div",{className:"filter filter2-keys",children:["when","where","can","is","who","how","should","which","what"].map((e,t)=>(0,M.jsxs)("div",{children:[(0,M.jsx)("input",{type:"checkbox",name:"filter2",id:`filter2-${e}`,value:e,checked:s.includes(e),onChange:()=>{return t=e,void n(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t}}),(0,M.jsx)("label",{htmlFor:`filter2-${e}`,className:e,children:e})]},`keys2-${t}`))})]}),(0,M.jsxs)("div",{className:"flex-1 mt-4 border border-trusty-blue/50",children:[(0,M.jsxs)("div",{className:"flex bg-[#F5F5F5] bg-opacity-100 dark:bg-trusty-blue/10",children:[(0,M.jsx)("h3",{className:"flex-1 p-4 pl-4 font-bold text-lg md:text-xl",children:"Popular Questions"}),(0,M.jsx)("div",{className:"min-w-[70px] md:min-w-[120px] p-4 text-center font-bold text-lg md:text-xl
1cursor-pointer",children:(0,M.jsxs)("button",{className:"w-full flex items-center justify-center gap-3",onClick:()=>{o(e=>"desc"===e?"asc":"desc")},children:["AMSV",(0,M.jsx)(i,{icon:c})]})})]}),(0,M.jsx)("div",{className:"flex flex-col h-[500px] overflow-scroll",children:l.map((e,t)=>(0,M.jsxs)("div",{className:"flex",children:[(0,M.jsxs)("div",{className:"flex-1 flex items-center gap-2 md:gap-4 p-4 border-b border-trusty-blue/50 last:border-none space-y-4 lg:text-xl",children:[(0,M.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,M.jsx)("div",{className:`dot ${e.mainCategory}`,title:e.mainCategory}),(0,M.jsx)("div",{className:`dot ${e.subCategory}`,title:e.subCategory})]}),e.question]}),(0,M.jsx)("div",{className:`min-w-[94px] md:min-w-[120px] p-2 grid place-items-center text-center ${e.subCategory} text-lg md:text-2xl font-bold border-b border-trusty-blue/50`,children:Number(e.value).toLocaleString()})]},`category-${t}`))})]})]})}var he=()=>{const e=a().projectId,{project:t,loading:s,error:r}=h(e);return s?(0,M.jsx)(m,{}):r?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(n,{children:(0,M.jsx)("title",{children:"Keyword Universe| Genti"})}),(0,M.jsx)("div",{className:"keyword-universe-page page-base space-y-4 md:space-y-8",children:(0,M.jsx)(B,{error:r})})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(n,{children:[(0,M.jsxs)("title",{children:[t&&t.name," Ke
1yword Universe | Genti"]}),(0,M.jsx)("meta",{property:"og:title",content:`${t&&t.name} Keyword Universe | Genti`}),(0,M.jsx)("meta",{property:"og:description",content:"A new horizon. Empowering self-care."}),(0,M.jsx)("meta",{property:"og:image",content:"https://ideaevolver.com/og-image.png"}),(0,M.jsx)("meta",{property:"og:url",content:"https://ideaevolver.com"}),(0,M.jsx)("meta",{property:"og:type",content:"website"}),(0,M.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,M.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,M.jsx)("meta",{name:"twitter:image",content:"https://ideaevolver.com/og-image.png"}),(0,M.jsx)("meta",{name:"twitter:title",content:"Genti"}),(0,M.jsx)("meta",{name:"twitter:description",content:"A new horizon. Empowering self-care."}),(0,M.jsx)("meta",{name:"twitter:site",content:"@ideaevolver"})]}),(0,M.jsxs)("div",{className:"keyword-universe-page page-base space-y-4 md:space-y-8",children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(O,{className:"mb-2",project:t,linkToProjectPage:!0,showDropdown:!0,isOpen:!0}),(0,M.jsxs)("section",{className:"page-section",children:[(0,M.jsx)("h2",{className:"section-header",children:"Overview"}),(0,M.jsxs)("div",{className:"p-4",children:[(0,M.jsx)("p",{children:"The Keyword Universe is a combination of all the keywords found in both the Condition and Branded Types."}),(0,M.jsx)("p",{children:"Each Type includes nested Categories like Diagnosis (Condition) or Side Effects (Branded)."})]})]})]}),(0,M.jsxs)("section",{className:"page-section",children:[(0,M.jsx)("h2",{className:"section-header",children:"Consumer Journey"}),(0,M.jsxs)(F,{className:"keyword-charts",children:[(0,M.jsx)(A,{data:t?.keyword_universe,project_name:t?.name}),(0,M.jsx)(Q,{data:t?.keyword_universe,condition:t?.condition_analysis_name,category_type:"Condition"}),(0,M.jsx)(Q,{data:t?.keyword_universe,project_name:t?.name,category_type:"Branded"}),(0,M.jsx)(le,{data:t?.wordcloud_data,project_name:t?.name})]})]}),(0,M.jsxs)("section",{className:"page-section",children:[(0,M.jsx)("h2",{className:"section-header",children:"Top Questions"}),(0,M.jsx)(me,{data:t?.top_questions,loading:!1})]}),(0,M.jsxs)("section",{className:"page-section",children:[(0,M.jsx)("h2",{className:"section-header",children:"Inventory and Spend Estimates"}),(0,M.jsxs)(F,{children:[(0,M.jsx)(G,{data:t?.keyword_universe,project_name:t?.name}),(0,M.jsx)(H,{data:t?.keyword_universe,condition:t?.condition_analysis_name,category_type:"Condition"}),(0,M.jsx)(H,{data:t?.keyword_universe,project_name:t?.name,category_type:"Branded"})]}),(0,M.jsx)("div",{className:"p-4",children:(0,M.jsx)(ie,{data:t?.keyword_universe})})]})]})]})};export{he 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.