1import{u as s,i as a,A as e,j as r,G as t,n as i,H as n,Q as o,U as l,I as m,bp as c,B as d,ad as x}from"./index.js";import{B as j}from"./Box.js";import{B as p}from"./Breadcrumb.js";import{P as h}from"./Page.js";import{S as g}from"./Select.js";import{a as u,b as f,B as N}from"./BulletinList.js";import{D as b}from"./DataLoader.js";import{A as z}from"./Alert.js";import{p as w}from"./propEq.js";import"./index28.js";import"./sum.js";const B=()=>{const{t:B}=s(),k=a(),{data:P,isFetching:_,error:v,fetchNextPage:A,hasNextPage:D,isFetchingNextPage:S}=u(),C=e(["error","response","data","errorMessage"],v)||B("text.error_occured"),y=s=>{window.open(s,"_blank")},E=null==P?void 0:P.pages.map((s=>s.page.data)).flat();return r.jsx(h,{children:r.jsx(t,{children:r.jsx(i,{size:12,children:r.jsxs(j,{children:[r.jsxs(t,{children:[r.jsxs(i,{size:12,xl:9,className:"mb-3",children:[r.jsx(n,{level:1,children:B("title.stock_market_news")}),r.jsx(p,{})]}),r.jsx(i,{size:9,md:4,xl:3,className:"mb-3",children:r.jsxs(o,{appearance:l.CTA,onClick:()=>y("https://www.ziraatyatirim.com.tr/"),children:[B("btn.ziraat_investment"),r.jsx(m,{name:"go-external",className:"ml-3"})]})}),r.jsx(i,{size:12,className:"mb-3",children:r.jsx("p",{children:B("text.stock_market_news")})})]}),r.jsxs(t,{children:[r.jsx(i,{size:12,className:"mb-3",children:r.jsx(g,{label:"Dönem Seçiniz",items:f(B),name:"Tarih",defaultValue:"today",onChange:s=>{(s=>{k.push({pathname:k.location.pathname,search:x({...null==s?void 0:s.options})})})(c(w("value",s.value),f(B)))}})}),r.jsx(i,{size:12,className:"mt-3",children:v?r.jsx(z,{appearance:d.DANGER,icon:"i",direction:"horizontal",className:"show-animate",children:C},String(_)):E&&r.jsx(N,{data:E,getNextPage:A,hasNextPage:D,onDownloadButtonClick:y},String(_))})]}),(_||S)&&r.jsx(b,{})]})})})})};export{B 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.