PageSourceSearch

https://www.silesiacitycenter.com.pl/_next/static/chunks/pages/offers/[slug]-2fbc3f91f6c67933.js

js silesiacitycenter.com.pl collected 2026-10-02 08:36:08 UTC 9,753 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9531],{40944:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/offers/[slug]",function(){return c(13596)}])},13596:function(f,b,a){"use strict";a.r(b),a.d(b,{"__N_SSP":function(){return A},"default":function(){return B}});var g=a(85893),h=a(11163),i=a(67294),j=a(559),c=a(30381),k=a.n(c),d=a(41664),l=a.n(d),m=a(15254),n=a(73984);function o(a){return(0,g.jsx)("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M0.5 4.5C0.223858 4.5 0 4.72386 0 5C0 5.27614 0.223858 5.5 0.5 5.5V4.5ZM10.5 5L10.8536 5.35355C10.9473 5.25979 11 5.13261 11 5C11 4.86739 10.9473 4.74021 10.8536 4.64645L10.5 5ZM6.85355 0.646447C6.65829 0.451184 6.34171 0.451184 6.14645 0.646447C5.95118 0.841709 5.95118 1.15829 6.14645 1.35355L6.85355 0.646447ZM6.14645 8.64645C5.95118 8.84171 5.95118 9.15829 6.14645 9.35355C6.34171 9.54881 6.65829 9.54881 6.85355 9.35355L6.14645 8.64645ZM0.5 5.5H10.5V4.5H0.5V5.5ZM6.14645 1.35355L10.1464 5.35355L10.8536 4.64645L6.85355 0.646447L6.14645 1.35355ZM10.1464 4.64645L6.14645 8.64645L6.85355 9.35355L10.8536 5.35355L10.1464 4.64645Z",fill:"#646464"})})}var p=a(7371),q=a(27044),e=a(25675),r=a.n(e),s=a(20141);function t(b){var j,t,u,v,w,x,y,f,A,c=(0,m.$G)("common").t,L=b.name,M=b.description,B=b.specialPromoName,N=b.startDate,O=b.endDate,P=b.bgColor,e=b.specialPromoBgImage,a=b.tenant,C=b.sectionData,i=b.offerMainMedia,Q=b.offerTypeName,D=b.offerTypeIcon,E=b.offerTypeBackgroundImageUrl,z=b.offerTypeVisible,F=null==i?void 0:i.hash,R=null==i?void 0:i.ext,S=null==a?void 0:a.slug,T=null==a?void 0:null===(j=a.logo)|| void 0===j?void 0:j.hash,U=null==a?void 0:null===(t=a.logo)|| void 0===t?void 0:t.ext,V=k()().format("HH:mm"),G=(0,p.bx)(null===(u=null==a?void 0:a.openingHours[0])|| void 0===u?void 0:u.openingHour),d=(0,h.useRouter)(),H=(0,p.bx)(null===(v=null==a?void 0:a.openingHours[0])|| void 0===v?void 0:v.closingHour),W=null==a?void 0:null===(w=a.menu_category)|| void 0===w?void 0:w.categorySlug,I=null==a?void 0:null===(x=a.location)|| void 0===x?void 0:x.floorName,X=null==a?void 0:null===(y=a.menu_sub_category)|| void 0===y?void 0:y.subCategorySlug,Y=null==a?void 0:a.opening_soon,J=(0,p.SG)(V,":"),Z=(0,p.SG)(G,":"),$=(0,p.SG)(H,":"),_=(0,p.UZ)(N,null==d?void 0:d.locale),aa=(0,p.UZ)(O,null==d?void 0:d.locale),ab=(0,p.je)(a),K=(0,s.o)().mobile,ac=function(b){var a;return null==b?void 0:null===(a=b.media)|| void 0===a?void 0:a.map(function(a){var b,c;return(0,g.jsx)("div",{className:"w-[24em] h-[24em] object-cover mt-12",children:(0,g.jsx)(q.Z,{url:null==a?void 0:null===(b=a.media)|| void 0===b?void 0:b.hash,ext:null==a?void 0:null===(c=a.media)|| void 0===c?void 0:c.ext,className:"mt-4"})},a.id)})},ad=function(a){var b;return[(0,g.jsx)("div",{id:"strapi-editor",className:"mt-4",dangerouslySetInnerHTML:{__html:null==a?void 0:null===(b=a.paragraph)|| void 0===b?void 0:b.paragraph}},null==a?void 0:a.id),]};return(0,g.jsxs)("div",{children:[(f=K?"w-full h-[calc(100vw*0.35)] max-h-[800px] min-h-[200px] mt-8 object-cover":"flex justify-center w-full h-[calc(100vw*0.35)] max-h-[800px] min-h-[200px] mt-8 object-cover",F&&!z?(0,g.jsx)("div",{className:f,children:(0,g.jsx)(q.Z,{url:F,ext:R,hasAspectRatio:K})}):(0,g.jsx)(g.Fragment,{children:e?(0,g.jsx)("div",{className:f,children:(0,g.jsx)(q.Z,{url:null==e?void 0:e.hash,ext:null==e?void 0:e.ext})}):(A=f,z?z?(0,g.jsx)("div",{className:A,children:E?(0,g.jsx)("div",{className:"relative flex gap-2.5 items-center justify-center text-5 font-normal w-full",children:(0,g.jsx)(r(),{quality:100,layout:"fill",alt:"special offer",className:"w-full h-full object-cover",src:"".concat(n.API_URL).concat(E),unoptimized:!0,priority:!0})}):(0,g.jsxs)("div",{className:"relative flex gap-2.5 items-center justify-center text-5 font-normal w-full",style:{background:P},children:[D&&(0,g.jsx)("div",{className:"w-5",children:(0,g.jsx)("img",{alt:"icon",className:"w-full object-cover",src:"".concat(n.API_URL).concat(D)})}),(0,g.jsx)("span",{children:Q})]})}):void 0:(0,g.jsx)("div",{}))})),(0,g.jsxs)("div",{className:"flex flex-col md:flex-row mt-10 md:mt-16 w-full justify-between",children:[(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"font-semibold text-2xl md:text-3xl",children:[(0,g.jsx)("span",{children:L}),(0,g.jsx)("span",{children:B&&"- ".concat(B)})]}),(0,g.jsxs)("div",{className:"text-gray.200 text-xs mt-2",children:[c("campaignValidFrom")," ",_," ",c("to")," ",aa]}),(0,g.jsx)("div",{id:"strapi-editor",className:"mt-4",dangerouslySetInnerHTML:{__html:M}}),(0,g.jsx)("div",{className:"flex flex-col",children:null==C?void 0:C.map(function(a){return ad(a).concat(ac(a))})})]}),(0,g.jsx)("div",{className:" ".concat(a&&"bg-white.200"," pt-6 pb-7 md:ml-4 md:min-w-[332px] lg:min-w-[432px] md:h-[328px] mt-12 md:mt-0"),children:a&&(0,g.jsx)("div",{className:"cursor-pointer",children:(0,g.jsxs)("div",{className:"flex flex-col items-center",children:[(0,g.jsx)("div",{className:"w-24 h-24 mt-10 object-fit overflow rounded-full flex items-center justify-center shadow-tenantLogoShadow",children:(0,g.jsx)(q.Z,{url:T,ext:U,className:"w-full rounded-full"})}),(0,g.jsxs)("div",{className:"flex flex-row items-center text-xs font-medium mt
1-4",children:[!(J>$)&&J>Z?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"w-3 h-3 bg-green.100 rounded-full mr-1 "}),(0,g.jsx)("p",{children:c("nowOpen")})]}):(0,g.jsx)(g.Fragment,{children:Y?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"w-3 h-3 bg-red.100 rounded-full mr-1"}),(0,g.jsx)("p",{children:c("openingSoon")})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"w-3 h-3 bg-red.100 rounded-full mr-1"}),(0,g.jsx)("p",{children:c("closed")})]})}),(0,g.jsx)("div",{className:"h-3 w-0.5 rounded-full bg-white.100 mx-2 "}),(0,g.jsxs)("p",{className:"whitespace-nowrap",children:[(0,p.bx)(G)," - ",(0,p.bx)(H)]})]}),I&&(0,g.jsx)("div",{className:"text-xs rounded-full text-grey.200 bg-white.100 px-3 py-2 mt-4 mb-12",children:I}),(0,g.jsx)(l(),{href:(0,p.NM)(W,S,X,ab,null==d?void 0:d.locale),passHref:!0,children:(0,g.jsx)("a",{children:(0,g.jsxs)("div",{className:"flex flex-row items-center",children:[(0,g.jsx)("p",{className:"text-sm text-gray.200 mr-2",children:c("tenantDetails")}),(0,g.jsx)(o,{})]})})})]})})})]})]})}var u=a(11250),v=a(60432),w=a(78516),x=a(84339),y=a(14156),z=function(H){var f,k,l,m,n,o,p,q,r,z,A,b=H.props,B=null==b?void 0:b.t,D=(0,i.useState)(),E=D[0],X=D[1],F=(0,s.o)().mobile,a=null==b?void 0:null===(f=b.offersData)|| void 0===f?void 0:f.offersData,Y=(0,y.y)().setDisplayNewsletter;(0,i.useEffect)(function(){var b;return Y(null!==(b=null==a?void 0:a.displayNewsletter)&& void 0!==b&&b),function(){return Y(null)}},[null==a?void 0:a.displayNewsletter]);var d=null==a?void 0:a.offer_type,C=null==a?void 0:a.name,I=null==a?void 0:a.description,J=null==a?void 0:a.startDate,K=null==a?void 0:a.endDate,L=null==a?void 0:a.slug,M=null==a?void 0:a.media,N=null==a?void 0:a.mobileMedia,O=null==a?void 0:null===(k=a.offer_type)|| void 0===k?void 0:k.backgroundColor,P=null==a?void 0:null===(l=a.offer_type)|| void 0===l?void 0:l.name,Q=null==a?void 0:null===(m=a.offer_type)|| void 0===m?void 0:null===(n=m.icon)|| void 0===n?void 0:n.url,R=null==d?void 0:null===(o=d.background_image)|| void 0===o?void 0:o.url,G=null==d?void 0:null===(p=d.mobileBackgroundImage)|| void 0===p?void 0:p.url,S=null==a?void 0:null===(q=a.special_promotion)|| void 0===q?void 0:q.backgroundImage,T=null==a?void 0:a.tenant,U=null==a?void 0:a.section,c=null==b?void 0:null===(r=b.staticData)|| void 0===r?void 0:null===(z=r.seoData)|| void 0===z?void 0:z.seo,e=(0,h.useRouter)(),V=(0,x.getLocaleRoute)(null==e?void 0:e.pathname,null==e?void 0:e.locale,{noPrefix:!0}),W="/"+(null===(A=V.split("/"))|| void 0===A?void 0:A.at(1)),Z=function(){var a,c;X(null==b?void 0:null===(a=b.staticData)|| void 0===a?void 0:null===(c=a.menuData)|| void 0===c?void 0:c.find(function(a){return B("".concat("url.".concat(null==a?void 0:a.href.toLocaleLowerCase())))==(null==W?void 0:W.toLocaleLowerCase())}))};return(0,i.useEffect)(function(){Z()},[b]),(0,g.jsx)("section",{className:"flex flex-col items-center justify-center h-fit py-8",children:(0,g.jsxs)("div",{className:"flex flex-col w-full max-w-7xl px-4 md:px-12",children:[(0,g.jsx)(u.Z,{title:C+" | "+(null==c?void 0:c.metaTitle),description:null==c?void 0:c.metaDescription,keywords:null==c?void 0:c.keywords}),(0,g.jsxs)("div",{className:"flex flex-row items-center ",children:[(0,g.jsx)(j.Z,{name:B("home"),href:v.ft,className:"text-sm font-light text-gray.100"}),(0,g.jsx)("p",{className:"px-4.5 text-sm font-light text-gray.100",children:">"}),(0,g.jsx)(j.Z,{name:null==E?void 0:E.name,href:W,className:"text-sm font-light text-gray.100"}),(0,g.jsx)("p",{className:"px-4.5 text-sm font-light text-gray.100",children:">"}),(0,g.jsx)(j.Z,{name:C,href:"".concat(B("url./offers"),"/").concat(L),className:"text-sm font-light text-gray.300 line-clamp-1"})]}),(0,g.jsx)(t,{name:C,description:I,offerMainMedia:F?N:M,startDate:J,endDate:K,bgColor:O,specialPromoBgImage:S,tenant:T,sectionData:U,offerTypeName:P,offerTypeIcon:Q,offerTypeBackgroundImageUrl:F&&G?G:R,offerTypeVisible:(null==a?void 0:a.offerTypeVisible)||!1,t:B}),(0,g.jsx)("div",{className:"w-full",children:(0,g.jsx)(w.Z,{})})]})})},A=!0,B=function(a){return(0,g.jsx)(z,{props:a})}},559:function(d,b,a){"use strict";var e=a(85893),c=a(41664),f=a.n(c);b.Z=function(a){var b=a.href,c=a.name,d=a.className;return(0,e.jsx)(f(),{href:b,passHref:!0,children:(0,e.jsx)("a",{className:"".concat(d," whitespace-nowrap"),children:c})})}}},function(a){a.O(0,[2962,9240,9198,9774,2888,179],function(){return a(a.s=40944)}),_N_E=a.O()}])

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.