PageSourceSearch

https://simbound-web-demo-v2.netlify.app/assets/Overview-BZZn7NHh.js

js simbound-web-demo-v2.netlify.app collected 2026-10-03 11:26:17 UTC 8,249 bytes, 1 lines download raw bytes

1import{u as us,b as fs,a as hs,r as js,j as e,bW as gs,bX as bs,bY as _s,bZ as Ns,b_ as ks,b$ as ys,c0 as Fs,c1 as Cs,bj as y,c2 as F,c3 as Ts,t as Ls}from"./index-BExznt2C.js";import{L as Rs}from"./LazyChart-CBO2sXS7.js";import{A as Ss}from"./AiRecommendation-DxoQtvs-.js";import{C as Bs}from"./ContentLoader-DNGt8Pdn.js";import{R as Hs}from"./index-BY4ZvA3U.js";import{e as Is}from"./index-7tqm7Mwj.js";import{a as Ds}from"./index-C-8YsSyu.js";import{c as As}from"./index-DbuRt3g8.js";const u=t=>{const s=Ls.c(14),{icon:f,title:l,value:h,id:b}=t,j=l===void 0?"Title":l,g=h===void 0?"":h;let r;s[0]!==f?(r=e.jsx("span",{className:"text-xl lg:text-2xl hidden min-[1500px]:block",children:f}),s[0]=f,s[1]=r):r=s[1];let i;s[2]!==j?(i=e.jsx("span",{className:"text-base lg:text-lg text-gray-500 uppercase",children:j}),s[2]=j,s[3]=i):i=s[3];let n;s[4]!==r||s[5]!==i?(n=e.jsxs("span",{className:"flex items-center gap-1 w-full",children:[r," ",i]}),s[4]=r,s[5]=i,s[6]=n):n=s[6];let o;s[7]!==g?(o=e.jsx("span",{className:"text-2xl font-semibold text-primary mt-auto",dangerouslySetInnerHTML:{__html:g}}),s[7]=g,s[8]=o):o=s[8];let x;s[9]===Symbol.for("react.memo_cache_sentinel")?(x=e.jsx(Hs,{className:"absolute top-[-80px] -right-24 text-[200px] text-primary/5 -rotate-45"}),s[9]=x):x=s[9];let d;return s[10]!==b||s[11]!==n||s[12]!==o?(d=e.jsxs("li",{className:"rounded-lg bg-slate-50 shadow-md p-5 gap-1.5 flex flex-col relative overflow-hidden",id:b,children:[n,o,x]}),s[10]=b,s[11]=n,s[12]=o,s[13]=d):d=s[13],d},Xs=()=>{var x,d,C,T,L,R,S,B,H,I,D,A,M,E,G,P,W,$,z,U,X,Y,Z,q,J,K,Q,V,w,v,O,ss,es,ts,ls,as,os,rs,is,ns,cs,xs,ds;const{t}=us(),{seaOverview:s,fetchSeaOverview:f,rounds:l,markets:h}=fs(),{tutorial:b}=hs(),j=[],g=[],r=[],i=[],n=[];if(l!=null&&l.previousDisplayRounds&&(s!=null&&s.fetchTime))for(let a=0;a<l.previousDisplayRounds.length;a++){const{no:m,name_long:p}=l.previousDisplayRounds[a];let c=0,_=0,ms=0,ps=0;try{const N=(d=(x=s==null?void 0:s.data)==null?void 0:x.chart_data)==null?void 0:d[m];if(N)for(let k of N)c+=parseFloat(k.total_clicks),_+=parseFloat(k.total_impressions),ps+=parseFloat(k.total_conversions)}catch(N){console.error(N)}_&&(ms=c/_*100),j.push(p),g.push(c),r.push(_),i.push(ms),n.push(ps)}let o=!1;return((R=(L=(T=(C=s==null?void 0:s.data)==null?void 0:C.brief_data)==null?void 0:T.objectives)==null?void 0:L.obj)!=null&&R.length||((H=(B=(S=s==null?void 0:s.data)==null?void 0:S.brief_data)==null?void 0:B.bonuses)==null?void 0:H.bonuses_enabled)==="1"&&!((I=l==null?void 0:l.current)!=null&&I.practice)||(M=(A=(D=s==null?void 0:s.data)==null?void 0:D.brief_data)==null?void 0:A.tests)!=null&&M.length||b.show)&&(o=!0),js.useEffect(()=>{s.fetchTime||f()},[s,f]),!s.fetchTime||!(h!=null&&h.length)?e.jsx(gs,{}):e.jsx(Bs,{loading:s.loading,children:e.jsxs("div",{className:"grid xl:grid-cols-[2fr,1fr] gap-5 grid-cols-1",children:[e.jsx(Ss,{className:"col-span-full",module:"ads"}),e.jsx("h1",{className:"w-full text-2xl text-primary-dark font-semibold col-span-full",children:t("search_engine_advertising")}),e.jsxs("ul",{className:"col-span-full grid grid-cols-[repeat(auto-fit,minmax(160px,1fr))] gap-5",children:[e.jsx(u,{icon:e.jsx(bs,{}),title:t("impressions"),value:(G=(E=s==null?void 0:s.data)==null?void 0:E.results)==null?void 0:G.impressions,id:"impressions_card"}),e.jsx(u,{icon:e.jsx(Is,{}),title:t("clicks"),value:(W=(P=s==null?void 0:s.data)==null?void 0:P.results)==null?void 0:W.clicks,id:"clicks_card"}),e.jsx(u,{icon:e.jsx(_s,{}),title:t("ctr"),value:(z=($=s==null?void 0:s.data)==null?void 0:$.results)==null?void 0:z.ctr,id:"ctr_card"}),e.jsx(u,{icon:e.jsx(Ds,{}),title:t("cost"),value:(X=(U=s==null?void 0:s.data)==null?void 0:U.results)==null?void 0:X.cost,id:"cost_card"}),e.jsx(u,{icon:e.jsx(Ns,{}),title:t("conversions"),value:(Z=(Y=s==null?void 0:s.data)==null?void 0:Y.results)==null?void 0:Z.conversions,id:"conversions_card"}),e.jsx(u,{icon:e.jsx(ks,{}),title:t("value"),value:(J=(q=s==null?void 0:s.data)==null?void 0:q.results)==null?void 0:J.value,id:"value_card"}),e.jsx(u,{icon:e.jsx(ys,{}),title:t("profit"),value:(Q=(K=s==null?void 0:s.data)==null?void 0:K.results)==null?void 0:Q.profit,id:"profit_card"})]}),e.jsxs("section",{className:"rounded-lg bg-slate-50 shadow-md flex flex-col data-[show-brief=false]:col-span-full",id:"overview_chart","data-show-brief":o,children:[e.jsx("h2",{className:"text-xl md:text-2xl font-medium text-primary-dark px-5 pt-5",children:t("clicks_impressions_ctr_conversions")}),e.jsx(Rs,{options:{chart:{type:"line"},dataLabels:{enabled:!1},stroke:{curve:"straight",width:2.5},xaxis:{type:"category",categories:j},yaxis:[{axisBorder:{show:!0,color:"#0000FF"},axisTicks:{show:!0,color:"#0000FF"},labels:{formatter:a=>a.toFixed(0)}},{axisBorder:{show:!0,color:"#008000"},axisTicks:{show:!0,color:"#008000"},opposite:!0,labels:{formatter:a=>a.toFixed(0)}},{axisBorder:{show:!0,color:"#FFA500"},axisTicks:{show:!0,color:"#FFA500"},labels:{formatter:a=>a.toFixed(2)}},{axisBorder:{show:!0,color:"#800080"},axisTicks:{show:!0,color:"#800080"},opposite:!0,labels:{formatter:a=>a.toFixed(0)}}]},series:[{name:t("clicks"),data:g,color:"#0000FF"},{name:t("impressions"),data:r,color:"#008000"},{name:t("ctr"),data:i,color:"#FFA500"},{name:t("conversions"),data:n,color:"#800080"}],type:"line",width:"100%",height:500})]}),o&&e.jsxs("section",{className:"rounded-lg bg-slate-50 shadow-md flex flex-col gap-7 p-5 xl:h-[563px] overflow-x-hidden overflow-y-auto",id:"brief",children:[e.jsxs("h2",{className:"text-xl md:text-2xl font-medium text-primary-dark flex items-center gap-2.5",children:[e.jsx(Fs,{}),(V=l==null?void 0:l.current)==null?void 0:V.name_long," ",t("brief")]}),e.jsxs("div",{className:"flex flex-col gap-2.5",role:"group",children:[e.jsxs("h3",{className:"text-xl flex items-center gap-1",children:[e.jsx(Cs,{className:"text-xl"}),t("objectives"),":"]}),e.jsx("ul",{className:"flex flex-col gap-2",children:(ss=(O=(v=(w=s==null?void 0:s.data)==null?void 0:w.brief_data)==null?void 0:v.objectives)==null?void 0:O.obj)==null?void 0:ss.map(a=>{const{id:m,objective_name:p,objective_done:c}=a;return e.jsxs("li",{className:"text-lg",children:[c?e.jsxs("span",{children:[e.jsx(y,{className:"text-xl text-green-600 shrink-0 inline-flex"})," ",e.jsxs("span",{className:"text-green-700 uppercase",children:["(",t("achieved"),")"]})]}):e.jsx(F,{className:"text-xl text-red-600 shrink-0 inline-flex"})," ",e.jsx("span",{dangerouslySetInnerHTML:{__html:p}})]},m)})})]}),((ls=(ts=(es=s==null?void 0:s.data)==null?void 0:es.brief_data)==null?void 0:ts.bonuses)==null?void 0:ls.bonuses_enabled)==="1"&&!((as=l==null?void 0:l.current)!=null&&as.practice)&&e.jsxs("div",{className:"flex flex-col gap-2.5",role:"group",children:[e.jsxs("h3",{className:"text-xl flex items-center gap-1",children:[e.jsx(Ts,{className:"text-xl"}),t("bonuses"),":"]}),e.jsx("ul",{className:"flex flex-col gap-2",children:(ns=(is=(rs=(os=s==null?void 0:s.data)==null?void 0:os.brief_data)==null?void 0:rs.bonuses)==null?void 0:is.bonuses_this_round)==null?void 0:ns.map((a,m)=>{const{bonus_content:p,bonus_done:c}=a;return e.jsxs("li",{className:"text-lg",children:[c?e.jsxs("span",{children:[e.jsx(y,{className:"text-xl text-green-600 shrink-0 inline-flex"})," ",e.jsxs("span",{className:"text-green-700 uppercase",children:["(",t("achieved"),")"]})]}):e.jsx(F,{className:"text-xl text-red-600 shrink-0 inline-flex"})," ",e.jsx("span",{dangerouslySetInnerHTML:{__html:p}})]},m)})})]}),e.jsxs("div",{className:"flex flex-col gap-2.5",role:"group",children:[e.jsxs("h3",{className:"text-xl flex items-center gap-1",children:[e.jsx(As,{className:"text-xl"}),t("tests"),":"]}),e.jsx("ul",{className:"flex flex-col gap-2",children:(ds=(xs=(cs=s==null?void 0:s.data)==null?void 0:cs.brief_data)==null?void 0:xs.tests)==null?void 0:ds.map((a,m)=>{const{test_objective:p,test_answer:c}=a;return e.jsxs("li",{className:"text-lg",children:[c?e.jsxs("span",{children:[e.jsx(y,{className:"text-xl text-green-600 shrink-0 inline-flex"})," ",e.jsxs("span",{className:"text-green-700 uppercase",children:["(",t("achieved"),")"]})]}):e.jsx(F,{className:"text-xl text-red-600 shrink-0 inline-flex"})," ",e.jsx("span",{dangerouslySetInnerHTML:{__html:p}})]},m)})})]})]})]})})};export{Xs 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.