PageSourceSearch

https://regalflowers.com.ng/_next/static/chunks/pages/blog-64d4d10a6b046bf9.js

js regalflowers.com.ng collected 2026-09-29 15:35:47 UTC 16,192 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195],{7801:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog",function(){return s(8010)}])},1352:function(e,l,s){"use strict";var a=s(5893),t=s(1664),r=s.n(t),i=(s(7294),s(4086)),n=s.n(i),o=s(9551);l.Z=function(e){var l=e.title,s=e.image,t=e.excerpt,i=e.readDuration,c=e.url,g=e.category,d=e.showAsThumbnail;return(0,a.jsx)(r(),{href:c||"#",children:(0,a.jsxs)("a",{className:[n()["blog-card"],d&&n().thumbnail].join(" "),children:[(0,a.jsx)("div",{className:n()["img-wrapper"],children:(0,a.jsx)("img",{className:n()["flower-image"],src:s,alt:"featured flower"})}),(0,a.jsxs)("div",{className:n().detail,children:[(0,a.jsxs)("div",{className:"flex between center-align",children:[(null===g||void 0===g?void 0:g[0])&&(0,a.jsx)("span",{className:n()["blog-category"],style:{backgroundColor:g[0].color?(0,o.a7)(g[0].color,.1):"#f0fdf4",color:g[0].color||"#16a34a"},children:g[0].name}),(0,a.jsx)("span",{className:n().duration,children:i})]}),(0,a.jsx)("h3",{className:n().title,children:l}),(0,a.jsxs)("span",{className:[n().excerpt,"normal-text"].join(" "),children:[t,"..."]}),(0,a.jsxs)("span",{className:n().continue,children:[(0,a.jsx)("strong",{className:"red margin-right",children:"Continue Reading"}),(0,a.jsx)("img",{alt:"arrow",className:"generic-icon xsmall",src:"/icons/arrow-right.svg"})]})]})]})})}},8010:function(e,l,s){"use strict";s.r(l),s.d(l,{__N_SSG:function(){return S}});var a,t=s(7568),r=s(4924),i=s(6042),n=s(9396),o=s(253),c=s(92),g=s(5893),d=s(7294),u=s(9359),m=s.n(u),b=s(3419),_=s(6026),h=s(8423),x=s(1664),p=s.n(x),f=s(1010),j=s(7664),N=s(6030),v=s(1352),w=s(3144),y=s(2600),C=s(2159),k=s(866),Z=s(2524),B=s(8299),A=s(4386),E={"@context":"https://schema.org","@type":"CollectionPage",name:"Regal Flowers Blog",url:"https://regalflowers.com.ng/blog",description:"Read blogs about flowers, gifts, relationships, and lifestyle from Regal Flowers",publisher:{"@type":"Organization","@id":"https://regalflowers.com.ng/#organization",name:"Regal Flowers"}},S=!0;l.default=function(e){var l,s,u=e.trendingBlogs,x=e.blogCategories,S=e.featuredBlogs,R=e.categoriesBlogs,O=(0,d.useState)([]),F=O[0],T=O[1],I=(0,d.useState)(""),P=I[0],U=I[1],W=(0,d.useState)(!0),z=W[0],D=W[1],M=(0,d.useState)([]),V=M[0],X=M[1],q=(0,d.useState)([]),G=q[0],K=q[1],J=(0,d.useState)([]),L=J[0],H=J[1],Y=(0,f.Z)(),Q=(0,d.useContext)(C.Z).notify;(0,d.useEffect)((function(){var e=(0,k.pI)(u,3),l=(0,k.pI)(S,3);K(e),H(l)}),[]);var $=G[0],ee=(0,o.Z)(L,2),le=ee[0],se=ee[1],ae=function(){var e=(0,t.Z)((function(){var e,l,s,a;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,j.sK)(_.sO["featured-birthday"])];case 1:return e=t.sent(),l=e.data,s=e.error,a=e.message,s?(Q("error","Unable to fetch products by slugs: ".concat(a)),[2]):(T(l||[]),[2])}}))}));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){ae()}),[]);var te=(0,d.useMemo)((function(){var e=[],l=R.map((function(e){return e.blogs})).flat().sort((function(e,l){var s;return null===(s=l.createdAt)||void 0===s?void 0:s.localeCompare(e.createdAt)}));return l.forEach((function(l){e.length<3&&!e.find((function(e){var s,a;return e.id===l.id||(null===(s=e.category[0])||void 0===s?void 0:s.id)===(null===(a=l.category[0])||void 0===a?void 0:a.id)}))&&e.push(l)})),e}),[R]),re=(0,d.useMemo)((function(){var e=R.reduce((function(e,l){return(0,n.Z)((0,i.Z)({},e),(0,r.Z)({},l.id,new Set))}),{}),l=R.map((function(e){return e.blogs})).flat().filter((function(e){return!te.find((function(l){return l.id===e.id}))}));return l.forEach((function(l){l.category.forEach((function(s){e[s.id]&&e[s.id].size<3&&!Object.values(e).find((function(e){return e.has(l.id)}))&&e[s.id].add(l.id)}
1))})),R.map((function(s){return(0,n.Z)((0,i.Z)({},s),{blogs:Array.from(e[s.id]).map((function(e){return l.find((function(l){return l.id===e}))}))})}))}),[R,te]);return(0,d.useEffect)((function(){P?function(){var e=function(){var e=(0,t.Z)((function(){var e,l,s,a;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return D(!0),[4,(0,w.Xh)(P)];case 1:return e=t.sent(),l=e.error,s=e.message,a=e.data,D(!1),l?(Q("error","Unable to search blogs: ".concat(s)),[2]):(X(a||[]),[2])}}))}));return function(){return e.apply(this,arguments)}}();clearTimeout(a),a=setTimeout(e,400)}():X([])}),[P]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Z.Z,{title:"Regal Flowers | Blogs",description:"Read blogs from Regal Flowers",image:"https://storage.googleapis.com/regalflowers-cdn/instablog9ja.jpg",imageAlt:"Regal Flowers blogs",canonicalUrl:"".concat(_.B5,"/blog"),children:[(0,g.jsx)(B.Z,{properties:E}),(0,g.jsx)(A.Z,{items:[{name:"Home",url:_.B5},{name:"Blog",url:"".concat(_.B5,"/blog")}]})]}),(0,g.jsxs)("section",{className:" ".concat(m()["blog-page"]," "),children:[le&&(0,g.jsxs)("div",{className:[m()["full-width-section"]].join(" "),children:[(0,g.jsxs)("div",{className:m().left,children:[(0,g.jsx)("h2",{className:m()["featured-subtitle"],children:"FEATURED POST"}),(0,g.jsx)("h3",{className:m().title,children:le.title}),(0,g.jsxs)("article",{className:m().subtitle,children:[le.excerpt.slice(0,200),"..."]}),(0,g.jsx)("div",{children:(0,g.jsx)(b.Z,{minWidth:!0,url:"blog/".concat(le.slug),className:"fit-content",children:"Continue Reading"})})]}),"desktop"===Y&&(0,g.jsx)("img",{className:m().right,src:le.featuredImage,alt:"review"})]}),(0,g.jsx)(y.Z,{value:P,onChange:U,placeholder:"Search for blog posts",className:m().search,icon:"/icons/search.svg",allowClear:!0}),P?(0,g.jsxs)("section",{className:m()["search-results"],children:[z&&(0,g.jsx)("div",{className:m().spinner,children:(0,g.jsx)("img",{src:"/images/spinner.svg",alt:"spinner"})}),!z&&0===V.length&&(0,g.jsx)("em",{className:m()["not-found"],children:"No blogs found matching your search"}),!z&&(0,g.jsx)("div",{className:m().blogs,children:V.map((function(e){var l;return(0,g.jsx)(p(),{href:"/blog/".concat(e.slug),children:(0,g.jsxs)("a",{className:m().blog,children:[(0,g.jsx)("img",{className:m()["blog-image"],src:e.featuredImage,alt:"blog image"}),(0,g.jsxs)("div",{className:m()["blog-details"],children:[(0,g.jsxs)("div",{className:"flex between center-align",children:[(0,g.jsx)("p",{className:m()["blog-category"],children:null===(l=e.category[0])||void 0===l?void 0:l.name}),(0,g.jsxs)("p",{className:m()["read-mins"],children:[e.readMinutes," mins read"]})]}),(0,g.jsx)("p",{className:m()["blog-title"],children:"desktop"===Y?e.title:"".concat(e.title.slice(0,40)," ").concat(e.title.length>40?"...":"")}),(0,g.jsxs)("p",{className:m()["blog-excerpt"],children:["desktop"===Y?e.excerpt:e.excerpt.slice(0,50),"..."]})]})]})},e.id)}))})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:m().body,children:[(0,g.jsx)("p",{className:[m().title,"margin-bottom spaced"].join(" "),children:"Blog Categories"}),x.map((function(e){return(0,g.jsx)(p(),{href:"blog-category/".concat(e.slug),children:(0,g.jsxs)("a",{className:m().category,children:[(0,g.jsx)("span",{className:[m()["list-bullet"]].join(" "),style:{backgroundColor:e.color||"#10b981"}}),(0,g.jsx)("p",{className:"text-regular capitalize",children:e.name})]})},e.id)})),(0,g.jsx)("p",{className:m().title,children:"Trending Blog Posts"}),(0,g.jsxs)("div",{className:m()["trending-blogs"],children:[le&&(0,g.jsx)(p(),{href:"blog/".concat(null===le||void 0===le?void 0:le.slug),children:(0,g.jsxs)("a",{className:[m()["trending-blog"],m().long].join(" "),children:[(0,g.jsx)("img",{className:m()["blog-image"],src:$.featuredImage,alt:"blog image"}),(0,g.jsxs)("div",{className:"flex between center-align vertical-margin spaced",children:[(0,g.jsx)("span",{className:m()["blog-category"],style:{color:$.category[0].color,backgroundColor:"".concat($.category[0].color,"1A")},children:$.category[0].name}),(0,g.jsxs)("p",{className:m()["read-mins"],children:[$.readMinutes," mins read"]})]}),(0,g.jsx)("strong",{className:m()["blog-title"],children:$.title}),(0,g.jsxs)("article",{className:m()["blog-body"],children:[null===$||void 0===$?void 0:$.excerpt.slice(0,"desktop"===Y?600:200),"..."]}),(0,g.jsxs)(b.Z,{url:"blog/".concat($.slug),className:"flex spaced center-align ".concat(m()["continue-btn"]),type:"transparent",minWidth:!0,children:[(0,g.jsx)("h3",{className:"red margin-right",children:"Continue Reading"}),(0,g.jsx)("img",{alt:"arrow",className:"generic-icon xsmall",src:"/icons/arrow-right.svg"})]})]})}),(0,g.jsx)("div",{className:m()["other-trending-blogs"],children:G.slice(1).map((function(e,l){return(0,g.jsx)(p(),{href:"blog/".concat(e.slug),children:(0,g.jsxs)("a",{className:m()["desktop"===Y?"trending-blog":"thumbnail-blog"],children:[(0,g.jsx)("img",{className:m()["blog-image"],src:e.featuredImage,alt:"blog image"}),(0,g.jsxs)("div",{className:m()["blog-details"],children:[(0,g.jsxs)("div",{className:"flex between center-align ".concat("desktop"===Y&&"vertical-margin spaced"),children:[(0,g.jsx)("span",{className:m()["blog-category"],style:{color:e.category[0].color,backgroundColor:"".concat(e.category[0].color,"1A")},children:e.category[0].name}),(0,g.jsxs)("p",{className:m()["read-mins"],children:[e.readMinutes," mins read"]})]}),(0,g.jsx)("strong",{className:m()["blog-title"],children:e.title}),"mobile"===Y&&(0,g.jsxs)("article",{className:m()["blog-body"],children:[null===e||void 0===e?void 0:e.excerpt.slice(0,60),"..."]})]})]},l)},e.id)}))})]})]}),se&&(0,g.jsxs)("div",{className:m()["full-width-section"],children:[(0,g.jsxs)("div",{className:m().left,children:[(0,g.jsx)("h2",{className:m()["featured-subtitle"],children:"FEATURED POST"}),(0,g.jsx)("h3",{className:m().title,children:se.title}),(0,g.jsxs)("article",{className:m().subtitle,children:[se.excerpt.slice(0,"desktop"===Y?300:200),"..."]}),(0,g.jsx)("div",{children:(0,g.jsx)(b.Z,{minWidth:!0,url:"blog/".concat(se.slug),className:"fit-content",children:"Continue Reading"})})]}),"desktop"===Y&&(0,g.jsx)("img",{className:m().right,src:se.featuredImage,alt:"review"})]}),(0,g.jsxs)("section",{className:m()["featured-section"],children:[(0,g.jsxs)("div",{className:"flex between center-align",children:[(0,g.jsx)("h2",{className:m()["featured-title"],children:"Recent Posts"}),"desktop"===Y&&(0,g.jsxs)(b.Z,{url:"/blog-category/".concat(null===(l=R[0])||void 0===l?void 0:l.slug),className:"flex spaced center-align margin-bottom",type:"transparent",children:[(0,g.jsx)("h3",{className:"red margin-right",children:"See All"}),(0,g.jsx)("img",{alt:"arrow",className:"generic-icon xsmall",src:"/icons/arrow-right.svg"})]})]}),(0,g.jsx)("div",{className:[m().section,m().wrap].join(" "),children:te.map((function(e,l){return(0,g.jsx)(v.Z,{title:e.title,readDuration:"".concat(e.readMinutes," mins read"),image:e.featuredImage,excerpt:e.excerpt,url:"blog/".concat(e.slug),category:e.category,showAsThumbnail:l>0},e.title)}))}),"mobile"===Y&&(0,g.jsxs)(b.Z,{url:"/blog-category/".concat(null===(s=R[0])||void 0===s?void 0:s.slug),type:"plain",minWidth:!0,className:m()["see-all"],children:[(0,g.jsx)("h3",{className:"red margin-right",children:"See All"}),(0,g.jsx)("img",{alt:"arrow",className:"generic-icon xsmall",src:"/icons/arrow-right.svg"})]}),re.map((function(e){return(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"flex between center-align",children:[(0,g.jsx)("h2",{className:m()["featured-title"],children:e.name}),"desktop"===Y&&(0,g.jsxs)(b.Z,{url:"/blog-category/".concat(e.slug),className:"flex spaced center-align",type:"transparent",children:[(0,g.jsx)("h3",{className:"red margin-right",children:"See All"}),(0,g.jsx)("img",{alt:"arrow",className:"generic-icon xsmall margin-bottom",src:"/icons/arrow-right.svg"})]})]}),(0,g.jsx)("div",{className:[m().section,m().wrap,e.blogs.length<3?m()["two-items"]:""].join(" "),children:e.blogs.map((function(l,s){return(0,g.jsx)(v.Z,{title:l.title,readDuration:"".concat(l.readMinutes," mins read"),image:l.featuredImage,excerpt:"".concat(l.excerpt,"..."),url:"blog/".concat(l.slug),category:[e],showAsThumbnail:s>0},l.title)}))}),"mobile"===Y&&(0,g.jsxs)(b.Z,{url:"/blog-category/".concat(e.slug),type:"plain",minWidth:!0,className:m()["see-all"],children:[(0,g.jsx)("h3",{className:"red margin-right",children:"See All"}),(0,g.jsx)("img",{alt:"arrow",className:"generic-icon xsmall",src:"/icons/arrow-right.svg"})]})]},e.slug)})),(0,g.jsxs)("div",{className:"flex between",children:[(0,g.jsx)("h2",{className:m()["featured-title"],children:"Featured Flowers"}),"desktop"===Y&&(0,g.jsxs)(b.Z,{url:"/product-category/flowers-to-say-thanks-sorry-etc",className:"flex spaced center-align",type:"transparent",children:[(0,g.jsx)("h3",{className:"red margin-right",children:"See All"}),(0,g.jsx)("img",{alt:"arrow",className:"generic-icon xsmall margin-bottom",src:"/icons/arrow-right.svg"})]})]}),(0,g.jsx)("div",{className:[m().section,m().wrap].join(" "),children:F.map((function(e){var l,s,a;return(0,g.jsx)(N.Z,{image:(null===(l=e.images[0])||void 0===l?void 0:l.src)||"",name:e.name.split("\u2013")[0],subTitle:e.subtitle||e.name.split("\u2013")[1],price:e.price,url:"/product/".concat(e.slug),buttonText:"variable"===e.type&&(null===(s=e.variants)||void 0===s?void 0:s.length)?"Select Size":"Add to Cart",cart:!(null===(a=e.variants)||void 0===a?void 0:a.length),product:e},e.id)}))}),"mobile"===Y&&(0,g.jsxs)(b.Z,{url:"/product-category/flowers-to-say-thanks-sorry-etc",type:"plain",minWidth:!0,className:m()["see-all"],children:[(0,g.jsx)("h3",{className:"red margin-right",children:"Browse All Flowers"}),(0,g.jsx)("img",{alt:"arrow",className:"generic-icon xsmall",src:"/icons/arrow-right.svg"})]}),(0,g.jsx)(h.Z,{})]})]})]})]})}},4086:function(e){e.exports={"blog-card":"BlogCard_blog-card__DZSoc",thumbnail:"BlogCard_thumbnail__xB11U","img-wrapper":"BlogCard_img-wrapper__t_3sr","flower-image":"BlogCard_flower-image__AOo3Y",detail:"BlogCard_detail__O_jgj",duration:"BlogCard_duration__6lPn3",continue:"BlogCard_continue__IlVBK",title:"BlogCard_t
1itle__dwmwm",excerpt:"BlogCard_excerpt__zCex0",subtitle:"BlogCard_subtitle__CpjEe","blog-category":"BlogCard_blog-category__XL1VG"}},9359:function(e){e.exports={"blog-page":"blog_blog-page__kB36R",search:"blog_search___3oj3","search-results":"blog_search-results__SimqP",spinner:"blog_spinner__u0RyM","not-found":"blog_not-found__obqIO",blogs:"blog_blogs__VXuO3",blog:"blog_blog__b2Il7","blog-details":"blog_blog-details__nsTCH","blog-title":"blog_blog-title__bvikA","blog-excerpt":"blog_blog-excerpt__Fxw50","blog-category":"blog_blog-category__HngwL","read-mins":"blog_read-mins__Xb4Om","featured-section":"blog_featured-section__rJiOE","featured-title":"blog_featured-title__al5g8","featured-title-small":"blog_featured-title-small__dGzOk","has-scrolled":"blog_has-scrolled__2RoID","hero-bg":"blog_hero-bg__9Tksv","hero-btn":"blog_hero-btn__LR_wS",section:"blog_section__kWoa1","two-items":"blog_two-items__8U4Ym",wrap:"blog_wrap__OPv5O",title:"blog_title__uE3j6","hero-content":"blog_hero-content__zbU6E",subtitle:"blog_subtitle__xWnMO",body:"blog_body__tOhDd",category:"blog_category__noV2j","list-bullet":"blog_list-bullet__J_dWj","trending-blogs":"blog_trending-blogs__mVrpL","trending-blog":"blog_trending-blog__OqmQY","blog-image":"blog_blog-image__U1_bq",potrait:"blog_potrait__uauu8","blog-body":"blog_blog-body__rVQF1","continue-btn":"blog_continue-btn__ysyuz",long:"blog_long__ds77t","other-trending-blogs":"blog_other-trending-blogs__sqxVE","full-width-section":"blog_full-width-section__EvA3_",right:"blog_right__ShuK4",left:"blog_left__XfDiJ","featured-subtitle":"blog_featured-subtitle__2Afdh","thumbnail-blog":"blog_thumbnail-blog__9UF3A","subscribe-section":"blog_subscribe-section__fuFcN","subscribe-form-wrapper":"blog_subscribe-form-wrapper__lkXfW","subscribe-img":"blog_subscribe-img__Etlxz","see-all":"blog_see-all__PGUG0","contact-section-wrapper":"blog_contact-section-wrapper__RWhqg","contact-section":"blog_contact-section__P3ixm","contact-img":"blog_contact-img__K4bDn",details:"blog_details__EVo1s",detail:"blog_detail__Kuxpa",key:"blog_key__TNmbq",value:"blog_value__awJPx","hello-btn":"blog_hello-btn__4I_NU"}}},function(e){e.O(0,[687,774,888,179],(function(){return l=7801,e(e.s=l);var l}));var l=e.O();_N_E=l}]);

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.