PageSourceSearch

https://dineout.bg/_next/static/chunks/pages/special-offers-8112de7c55a3a87c.js

js dineout.bg collected 2026-10-02 00:00:54 UTC 8,759 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6480],{16545:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/special-offers",function(){return t(95676)}])},89825:function(e,s){"use strict";s.Z={src:"/_next/static/media/still-tasting.f2409417.svg",height:93,width:79}},56193:function(e,s,t){"use strict";t.d(s,{Z:function(){return a}});var n=t(85893),c=t(24561);function a(){return(0,n.jsxs)(c.ZP,{viewBox:"0 0 320 385",height:385,speed:2,children:[(0,n.jsx)("rect",{x:"20",cy:"50",r:"16",width:"280",height:"200"}),(0,n.jsx)("rect",{x:"0",y:"220",rx:"0",ry:"0",width:"320",height:"25"}),(0,n.jsx)("rect",{x:"0",y:"259",rx:"0",ry:"0",width:"320",height:"16"}),(0,n.jsx)("rect",{x:"0",y:"283",rx:"0",ry:"0",width:"320",height:"16"}),(0,n.jsx)("rect",{x:"0",y:"326",rx:"0",ry:"0",width:"320",height:"43"})]})}},20785:function(e,s,t){"use strict";t.d(s,{Z:function(){return d}});var n=t(85893);t(67294);var c=t(45697),a=t.n(c),r=t(70996),i=t.n(r),o=t(57674),l=t(79058);function d(e){let{className:s,imageBlock:t,title:c,address:a,cuisines:r,description:d,button:u}=e;return(0,n.jsxs)("div",{className:"".concat(i()["restaurant-block"]," ").concat(s),children:[t,(0,n.jsxs)("div",{className:i()["text-wrapper"],children:[(0,n.jsx)("h2",{children:c}),d,a&&(0,n.jsxs)("p",{children:[(0,n.jsx)(o.Z,{className:"icon ".concat(i().icon)}),a]}),""!==r&&(0,n.jsxs)("p",{children:[(0,n.jsx)(l.Z,{className:"icon ".concat(i().icon)}),r]}),u]})]})}d.propTypes={className:a().string,imageBlock:a().element.isRequired,title:a().oneOfType([a().string,a().element]).isRequired,address:a().string,cuisines:a().string,rating:a().element,button:a().element,description:a().element},d.defaultProps={className:"",address:"",cuisines:"",rating:null,button:null,description:null}},40838:function(e,s,t){"use strict";var n=t(85893),c=t(67294),a=t(45697),r=t.n(a),i=t(30381),o=t.n(i),l=t(76383),d=t(41664),u=t.n(d),p=t(25675),m=t.n(p),h=t(94264),x=t(8270),f=t(70996),g=t.n(f),j=t(7850),y=t.n(j),_=t(97322),N=t(20785),b=t(76001),v=t(7204),w=t(97018);function Z(e){let{className:s,offer:t,infoOnly:a}=e,{t:r}=(0,l.$G)("common"),i=(0,c.useContext)(_.Z),d=t.intervals.map(e=>o()(e.start,"HH:mm:ss").format("HH:mm")),p=t.intervals.map(e=>o()(e.end,"HH:mm:ss").format("HH:mm")),f=[...new Set(d)],j=[...new Set(p)],b=o().weekdays();b.push(b.shift());let Z=(0,n.jsxs)(n.Fragment,{children:[t.thumb?(0,n.jsx)(m(),{src:(0,h.ZA)(t.id,t.thumb,577,420),alt:t.place.name,fill:!0}):(0,n.jsx)(m(),{src:(0,h.sp)(t.place.id,t.place.thumb,577,420),alt:t.place.name,fill:!0}),null!==t.percentage&&(0,n.jsxs)("span",{className:"ribbon",children:["".concat(t.percentage,"%"),t.type===h.uV&&" (".concat(t.items[0].name,")")]}),t.type===h.tD&&(0,n.jsx)("span",{className:"ribbon",children:r("pageRestaurantsList:COMBO_OFFER")}),t.type===h.SN&&(0,n.jsx)("span",{className:"ribbon",children:r("pageRestaurantsList:FREE_ITEM")})]});return(0,n.jsx)(N.Z,{className:"".concat(y()["special-offer-block"]," ").concat(s),imageBlock:a?(0,n.jsx)("div",{className:g()["img-wrapper"],children:Z}):(0,n.jsx)(u(),{href:"/book-special-offer/".concat(t.place.slug,"/").concat(t.id),className:g()["img-wrapper"],children:Z}),title:(0,n.jsxs)(n.Fragment,{children:[a||(0,n.jsxs)("span",{className:y().validity,children:[(0,n.jsx)(v.Z,{className:"icon ".concat(y().icon)}),f.map((e,s)=>(0,n.jsx)("span",{className:y()["discount-hours"],children:"(".concat(e," - ").concat(j[s],") ")},e))]}),t.discountedPrice&&(0,n.jsxs)("span",{className:y()["promo-price"],children:[t.price&&(0,n.jsxs)("span",{className:y()["old-price"],children:["".concat(t.price," ").concat(i.country.currency),"BG"===i.country.code&&(0,n.jsxs)("span",{children:[" ","(".concat((t.price/i.country.currencyConversionRate).toFixed(2)," ").concat(i.country.secondCurrency,")")]})]}),(0,n.jsxs)("span",{className:y()["new-price"],children:["".concat(t.discountedPrice," ").concat(i.country.currency),"BG"===i.country.code&&(0,n.jsxs)("span",{children:[" ","(".concat((t.discountedPrice/i.country.currencyConversionRate).toFixed(2)," ").concat(i.country.secondCurrency,")")]})]})]}),(0,n.jsx)("span",{className:"title",children:t.name})]}),description:a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h3",{children:t.description}),t.items.map(e=>e.name).join(" + ")]}):null,cuisines:a?"":t.place.name,button:a?null:(0,n.jsxs)(x.W4,{className:g().btn,children:[r(t.place.bookingsType===w.yZ?"common:request_booking":"common:book_now"),(0,n.jsx)(u(),{href:"/book-special-offer/".concat(t.place.slug,"/").concat(t.id),children:" "})]})})}Z.propTypes={offer:r().instanceOf(b.Z).isRequired,infoOnly:r().bool,className:r().str
1ing},Z.defaultProps={infoOnly:!1,className:""},s.Z=Z},95676:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSG:function(){return T},default:function(){return R}});var n=t(85893),c=t(67294),a=t(76383),r=t(25675),i=t.n(r),o=t(35498),l=t(21525),d=t(34194),u=t(17004),p=t(56193),m=t(45697),h=t.n(m),x=t(1216),f=t(30381),g=t.n(f);t(22243),t(68338),t(64495),t(30316),t(90626);var j=t(8270),y=t(40838);function _(e){let{offers:s}=e,{t,i18n:r}=(0,a.$G)("common"),[i,o]=(0,c.useState)({}),[l,d]=(0,c.useState)(3);return g().locale("en"===r.language?"en-gb":r.language),(0,c.useEffect)(()=>{g().locale("en"===r.language?"en-gb":r.language)},[t]),(0,c.useEffect)(()=>{let e={...i};for(let t=0;t<30;t+=1)e[g()().add(t,"day").format("YYYY-MM-DD")]=[];s.forEach(s=>{let t=s.intervals.reduce((e,s)=>(e.some(e=>e.date===s.date)||e.push(s),e),[]);t.forEach(t=>{e[t.date]&&e[t.date].push(s)})}),Object.keys(e).forEach(s=>0===e[s].length&&delete e[s]),o(e)},[t,s]),s.length>0?(0,n.jsxs)(n.Fragment,{children:[Object.keys(i).slice(0,l).map(e=>i[e].length>0&&(0,n.jsxs)("div",{className:"section",children:[(0,n.jsx)("div",{className:"listing-header",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:t("pageRestaurantsList:date")}),"".concat(g()(e).format("DD.MM.YYYY")," (").concat(g()(e).format("dddd"),")")]})}),(0,n.jsx)("div",{className:"restaurant-list-grid",children:i[e].map(e=>(0,n.jsx)(x.ZP,{height:400,once:!0,offset:100,children:(0,n.jsx)(y.Z,{offer:e})},e.id))})]},e)),Object.keys(i).length>l&&(0,n.jsx)("div",{style:{marginBottom:140},children:(0,n.jsx)(j.zx,{text:t("common:load_more"),type:"outline",onClick:()=>{d(l+3)}})})]}):" "}_.propTypes={offers:h().oneOfType([h().object,h().array]).isRequired};var N=t(8434),b=t(8007),v=t(9008),w=t.n(v),Z=t(11163),k=t(54282),O=function(){let{t:e}=(0,a.$G)("common"),s=(0,Z.useRouter)(),t=(0,k.Z)("discounts");return(0,n.jsxs)(w(),{children:[(0,n.jsx)("title",{children:e("metaTags:discounts_title")}),(0,n.jsx)("meta",{name:"description",content:e("metaTags:discounts_description")}),(0,n.jsx)("meta",{name:"keywords",content:e("metaTags:discounts_keywords")}),(0,n.jsx)("meta",{property:"al:ios:url",content:"dineout://discounts"}),(0,n.jsx)("meta",{property:"al:android:url",content:"dineout://discounts"}),(0,n.jsx)("meta",{property:"og:url",content:"https://".concat("dineout.bg").concat(s.pathname)}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:title",content:e("metaTags:discounts_title")}),(0,n.jsx)("meta",{property:"og:description",content:e("metaTags:discounts_description")}),(0,n.jsx)("meta",{property:"og:image",content:"https://".concat("dineout.bg").concat(t)})]})},E=t(89825),T=!0,R=function(){let{t:e}=(0,a.$G)("common"),s=(0,c.useContext)(o.Z),t=(0,c.useContext)(l.Z),[r,m]=(0,c.useState)(!0),[h,x]=(0,c.useState)(!1),[f,g]=(0,c.useState)([]),j=(0,n.jsx)(u.Z,{contentLoader:(0,n.jsx)(p.Z,{}),numberOfItems:6,containerClasses:"restaurant-list-grid",itemClasses:"content-loader"});return(0,c.useEffect)(()=>{g(t.specialOffers)},[t.specialOffers]),(0,c.useEffect)(()=>{x((0,d.Le)(s.search))},[s.search]),(0,n.jsxs)("div",{className:"discount-page",children:[(0,n.jsx)(O,{}),(0,n.jsx)("div",{className:"page-heading-wrapper",children:(0,n.jsx)("div",{className:"inner-wrapper",children:(0,n.jsx)(N.Z,{type:"discount",title:e("pageRestaurantsList:discounts_title"),loading:r,setLoading:m,specialOffers:!0})})}),(0,n.jsx)("div",{className:"inner-wrapper",children:h?(0,n.jsxs)(n.Fragment,{children:[0===f.length&&(r&&j||(0,n.jsxs)("div",{className:"no-menu",children:[(0,n.jsx)(i(),{src:E.Z,alt:""}),e("pageRestaurantsList:no_discounts_title")]})),(0,n.jsx)(_,{offers:f})]}):(0,n.jsx)(b.Z,{})})]})}},7850:function(e){e.exports={"promo-price":"style_promo-price__c3i6Z","old-price":"style_old-price__3KpyB","new-price":"style_new-price__nlpWe","load-more-offers":"style_load-more-offers__6IQ7j",validity:"style_validity__LiYo6",icon:"style_icon__aTXgn","discount-hours":"style_discount-hours__g55pv"}}},function(e){e.O(0,[3714,1154,9336,1134,6858,573,1309,9774,2888,179],function(){return e(e.s=16545)}),_N_E=e.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.