1import{j as e,s as a,r as x}from"./Slate__Gallery.1789991096180.sYLdrYst.chunk.js";import{i as k,j as w,F as y,h as N,E as I,l as z}from"./block__Bloger.1789991096180.5_LQltd1.chunk.js";import{C as f}from"./components__ArticleRich.1789991096180.DJYLsOJt.chunk.js";import{T as R}from"./Timer.1789991096180._ER3IlhY.chunk.js";import{S as $}from"./SwitchText.1789991096180.Cd-WlRdg.chunk.js";import{b as S}from"./bridVote.1789991096180.5ptnqvAN.chunk.js";import"./StarButton.1789991096180.CzUgIqjt.chunk.js";import"./sentry.1789991096180.C60Ujbla.chunk.js";import"./vendors.1789991096180.DNlkUN8O.chunk.js";const T=t=>e.jsxs("div",{children:[t.children,e.jsx(k,{}),e.jsx("hr",{}),e.jsx(w,{value:t.settings.link}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:"TytuÅ"}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{type:"text",name:"title_normal",className:"form-control",defaultValue:t.settings.title_normal,placeholder:""})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:"TytuÅ atrykuÅu nr1"}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{type:"text",name:"title_button1",className:"form-control",defaultValue:t.settings.title_button1,placeholder:""})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:"ID artykuÅu nr1"}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{required:!0,type:"text",name:"article1_id",className:"form-control",defaultValue:t.settings.article1_id,placeholder:""})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:"TytuÅ artykuÅu nr2"}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{type:"text",name:"title_button2",className:"form-control",defaultValue:t.settings.title_button2,placeholder:""})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:"ID artykuÅu nr2"}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{required:!0,type:"text",name:"article2_id",className:"form-control",defaultValue:t.settings.article2_id,placeholder:""})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:"TytuÅ artykuÅu nr3"}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{type:"text",name:"title_button3",className:"form-control",defaultValue:t.settings.title_button3,placeholder:""})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:"ID artykuÅu nr3"}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{required:!0,type:"text",name:"article3_id",className:"form-control",defaultValue:t.settings.article3_id,placeholder:""})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("label",{className:"col-sm-3 control-label",children:'Czas w formacie "RRRR-MM-DD GG:mm"'}),e.jsx("div",{className:"col-sm-9",children:e.jsx("input",{type:"text",name:"time",className:"form-control",defaultValue:t.settings.time,placeholder:""})})]}),e.jsx(y,{value:t.settings["background-image"]})]}),p=({articleID:t,percentage:i={},voted:l,hasCookie:o=!1,...s})=>e.jsxs(H,{type:"button",disabled:l!==null||o,onClick:()=>s.fetchVotes(t),children:[e.jsx(D,{children:s.title_normal}),o?e.jsxs("p",{children:[s.votingResult[t],"% gÅosów"]}):e.jsx(e.Fragment,{children:l===null?e.jsx("p",{children:"Oddaj gÅos"}):e.jsx($,{firstText:l==t&&"DziÄkujemy za oddany gÅos!",secondText:`${i[t]}% gÅosów`,render:r=>e.jsx("p",{children:r})})})]}),H=a("button",{border:"none",textAlign:"left",padding:"0",display:"block",backgroundColor:"#fff",margin:"0 0 10px 0",height:"100px",width:"100%",p:{width:"auto",height:"18px",fontSize:"14px",lineHeight:1.29,letterSpacing:"-0.4px",margin:"12px 16px",color:"$primary"},"&:hover":{cursor:"pointer"},"&:disabled":{cursor:"default"},"@media (min-width: 992px)":{width:"220px",maxWidth:"30%",margin:"0 20px 0 0 !important",p:{width:"183px",margin:"0 18px 12px 16px"}}}),D=a("span",{display:"block",width:"183px",fontSize:"15px",color:"#272424",margin:"13px 21px 3px 16px",lineHeight:1.1,transition:"color 300ms","&:hover":{color:"#737373"}}),V=t=>{const{article:i}
1=t,[l,o]=x.useState(null),[s,r]=x.useState(null),[u,j]=x.useState(!1),g=t.imageHeight?t.imageHeight:window.innerWidth>991?456:846,v=[i.article1_id,i.article2_id,i.article3_id];var c=i.picture.img;c=c.replace("780,0,0,0","0,"+g+",0,0"),x.useEffect(()=>{const n=f.get("_brid");if(typeof n=="string"){const[d,m]=n.split(".");j(!0),d===t.uID&&r(m)}},[]);const h=async n=>{var m;const d=await S(n,v).catch(_=>console.log(_));d&&(o((m=d.data)==null?void 0:m.articlesAverage),r(n),t.uID&&f.set("_brid",`${t.uID}.${n}`,{expires:86400}))};return e.jsxs(C,{css:{$$bg:c,$$imageHeight:g+"px",$$preserveImageRatio:t.preserveImageRatio},children:[e.jsx(F,{css:{$$imageHeight:g+"px"},preserveImageRatio:t.preserveImageRatio,children:e.jsx(E,{children:e.jsx("img",{alt:"",src:c,className:"preserveImageRatioImage"})})}),e.jsxs(L,{className:i.show_links&&i.show_links!="off"?"show-links":null,size:t.size,children:[e.jsx(b,{children:"Wybierz projekt do realizacji:"}),e.jsx(A,{className:"text-on-picture__title",size:t.size,children:i.title}),e.jsxs(B,{children:["PozostaÅy czas gÅosowania: ",e.jsx(R,{finishTime:i.time})]}),e.jsx(M,{children:"Tematy do wyboru:"}),e.jsx(N,{links:i.links,show:i.show_links})]}),e.jsxs(W,{children:[e.jsx(p,{title_normal:i.title_button1,articleID:i.article1_id,percentage:l,voted:s,hasCookie:u,fetchVotes:h,votingResult:t.votingResult}),e.jsx(p,{title_normal:i.title_button2,articleID:i.article2_id,percentage:l,voted:s,hasCookie:u,fetchVotes:h,votingResult:t.votingResult}),e.jsx(p,{title_normal:i.title_button3,articleID:i.article3_id,percentage:l,voted:s,hasCookie:u,fetchVotes:h,votingResult:t.votingResult})]})]})},W=a("div",{display:"flex",flexDirection:"column",position:"absolute",height:"350px",left:"18px",right:"18px",bottom:"0",zIndex:2,"@media (min-width: 992px)":{flexDirection:"row",left:"30px",height:"100px",bottom:"30px"}}),B=a("p",{fontSize:"20px",fontWeight:300,color:"#f4f6fc",margin:"10px 0 30px 0"}),E=a("div",{height:"auto",overflow:"hidden",background:"linear-gradient(to top, #000000, rgba(80, 73, 70, 0.26) 57%, rgba(44, 44, 44, 0))","& > img":{zIndex:-1,position:"relative"}}),A=a("span",{lineHeight:"30px",display:"block",position:"relative",pointerEvents:"none",fontSize:"34px",fontWeight:300,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",color:"#f4f6fc",width:"90%","@media (min-width: 992px)":{width:"632px"}}),C=a("div",{margin:"12px 0",position:"relative",minHeight:"$$imageHeight",display:"flex",background:"linear-gradient(to top, #000000, rgba(80, 73, 70, 0.26) 57%, rgba(44, 44, 44, 0)), url($$bg) no-repeat center center",backgroundSize:"cover","> a":{display:"block",textDecoration:"none",position:"absolute",zIndex:1,left:"0",right:"0",top:"0",bottom:"0",minWidth:"100%","@media (min-width: 992px)":{position:"absolute"}},varinats:{preserveImageRatio:{true:{"& > a":{"@media (min-width: 992px)":{position:"static"}}},false:{}}}}),F=a("span",{".preserveImageRatioImage":{display:"none"},"@media (min-width: 992px)":{display:"block",".preserveImageRatioImage":{width:"100%",display:"none",minHeight:"$$imageHeight"}},variants:{preserveImageRatio:{true:{"@media (min-width: 992px)":{".preserveImageRatioImage":{display:"block",minHeight:"150px"}}},false:{}}}}),L=a("span",{display:"block",alignSelf:"flex-end",zIndex:2,pointerEvents:"none",position:"absolute",left:"18px",bottom:"360px",right:"0","@media (min-width: 992px)":{left:"30px",bottom:"134px","&.show-links":{paddingLeft:"250px"}}}),b=a("div",{marginBottom:"10px",fontSize:"18px",fontWeight:500,color:"#f4f6fc",zIndex:3}),M=a(b,{fontSize:"15px",color:"#eef3f5"}),Y=t=>{let i=z();const{settings:l}=t,o=l["background-image"]?l["background-image"]:"";return i.title=l.title_normal,i.picture.img=window.MEDIA_DOMAIN+"/"+o.replace(".",",780,0,0,0."),i.url=l.link,i.label=l.label,i.title_button1=l.title_button1,i.title_button2=l.title_button2,i.title_button3=l.title_button3,i.article1_id=l.article1_id,i.article2_id=l.article2_id,i.article3_id=l.article3_id,i.time=l.time,l.show_links=l.show_links?l.show_links:"off",i.show_links=l.show_links,i.links=l.links,e.jsxs("div",{className:t.classes,...t.events,children:[e.jsx(I,{...t,editor:T}),e.jsx(V,{...t,article:i,size:t.size,imageHeight:t.imageHeight,preserveImageRatio:t.preserveImageRatio})]})};export{Y as default}; 2//# sourceMappingURL=ABridTileNarrow.1789991096180.CEEWxtHz.chunk.js.map
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.