PageSourceSearch

https://regalflowers.com.ng/_next/static/chunks/pages/blog-category/[categorySlug]-b3f3ba152b566a84.js

js regalflowers.com.ng collected 2026-09-29 15:35:53 UTC 9,403 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[232],{1736:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blog-category/[categorySlug]",function(){return r(9732)}])},578:function(e,t,r){"use strict";var a=r(5893),s=(r(7294),r(9201)),l=r.n(s),o=r(1664),n=r.n(o);t.Z=function(e){var t=e.items,r=e.fill,s=void 0===r?"gray":r;return(0,a.jsx)("ul",{className:l().breadcrumb,children:t.map((function(e,r){return(0,a.jsxs)("li",{className:[l()["breadcrumb-item"]].join(" "),children:[e.link?(0,a.jsx)(n(),{href:e.link,children:(0,a.jsx)("a",{className:l().label,children:e.label})}):(0,a.jsx)("span",{className:l().label,children:e.label}),r!==t.length-1&&(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:[l().icon,"generic-icon medium"].join(" "),children:(0,a.jsx)("path",{d:"M9.7023 18.0104L15.7127 12L9.7023 5.98959L8.28809 7.40381L12.8843 12L8.28809 16.5962L9.7023 18.0104Z",fill:"".concat(s)})})]},r)}))})}},9732:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return k}});var a,s=r(7568),l=r(6042),o=r(9396),n=r(92),i=r(5893),c=r(7294),g=r(9371),u=r.n(g),d=r(578),m=r(1664),_=r.n(m),h=r(3144),b=r(3419),p=r(6026),x=r(6030),f=r(1010),y=r(7664),v=r(8423),j=r(2600),N=r(9010),B=r(2159),C=r(2524),w=r(8299),Z=r(4386),S={"@context":"http://schema.org","@type":"ItemList"},k=!0;t.default=function(e){var t,r=e.category,g=e.blogs,m=(0,f.Z)(),k=(0,c.useContext)(B.Z).notify,E=(0,c.useState)(""),F=E[0],I=E[1],T=(0,c.useState)(!1),L=T[0],D=T[1],O=(0,c.useState)([]),U=O[0],z=O[1],A=(0,c.useState)(""),P=A[0],R=A[1],X=(0,c.useState)(!0),G=X[0],K=X[1],J=(0,c.useState)([]),M=J[0],W=J[1],Y=function(){var e=(0,s.Z)((function(){var e,t,r,a;return(0,n.__generator)(this,(function(s){switch(s.label){case 0:return[4,(0,y.sK)(p.sO["featured-birthday"])];case 1:return e=s.sent(),t=e.data,r=e.error,a=e.message,r?console.error("Unable to fetch products by slugs: ",a):z(t||[]),[2]}}))}));return function(){return e.apply(this,arguments)}}(),q=function(){var e=(0,s.Z)((function(e){var t,r,a;return(0,n.__generator)(this,(function(s){switch(s.label){case 0:return e.preventDefault(),D(!0),[4,(0,N.xw)(F)];case 1:return t=s.sent(),r=t.error,a=t.message,D(!1),r?(k("error","Unable to subscribe email: ".concat(a)),[2]):(k("success","Successfully subscribed to newsletter"),[2])}}))}));return function(t){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){Y()}),[]);if((0,c.useEffect)((function(){P?function(){var e=function(){var e=(0,s.Z)((function(){var e,t,a,s;return(0,n.__generator)(this,(function(l){switch(l.label){case 0:return K(!0),[4,(0,h.Xh)(P,null===r||void 0===r?void 0:r.id)];case 1:return e=l.sent(),t=e.error,a=e.message,s=e.data,K(!1),t?(k("error","Unable to search blogs: ".concat(a)),[2]):(W(s||[]),[2])}}))}));return function(){return e.apply(this,arguments)}}();clearTimeout(a),a=setTimeout(e,400)}():W([])}),[P]),!(null===r||void 0===r?void 0:r.slug))throw new Error("Trigger error boundary handling");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(C.Z,{canonicalUrl:"".concat(p.B5,"/blog-category/").concat(r.slug),description:r.shortDescription,title:r.name,image:r.image,imageAlt:r.altImage,children:[(0,i.jsx)(w.Z,{properties:(0,o.Z)((0,l.Z)({},S),{description:r.shortDescription,url:"".concat(p.B5,"/blog-category/").concat(r.slug),name:r.name,itemListElement:g.slice(0,10).map((function(e,t){return{"@type":"ListItem",position:t+1,item:{"@type":"Blog",name:e.title,url:"".concat(p.B5,"/blog/").concat(e.slug),image:e.featuredImage}}}))})}),(0,i.jsx)(Z.Z,{items:[{name:"Home",url:"".concat(p.B5)},{name:"Blog",url:"".concat(p.B5,"/blog")},{name:r.name,url:"".concat(p.B5,"/blog-category/").concat(r.slug)}]})]}),(0,i.jsxs)("section",{className:u()["blog-category"],children:[(0,i.jsxs)("div",{className:u()["hero-section"],children:[(0,i.jsx)("div",{className:u().bgColor}),(0,i.jsx)("img",{src:(null===r||void 0===r?void 0:r.image)||"/images/blog-category-hero.jpg",alt:r.altImage}),(0,i.jsxs)("div",{className:u()["hero-text"],children:[(0,i.jsx)(d.Z,{items:[{link:"/blog",label:"Blogs"},{link:"#",label:r.name}],fill:"#FFFFFF"}),(0,i.jsx)("p",{className:u()["hero-text-name"],children:r.name}),(0,i.jsx)("p",{className:u().info,children:r.info})]})]}),(0,i.jsx)(j.Z,{value:P,onChange:R,placeholder:"Search for blog posts in this column",className:u().search,icon:"/icons/search.svg",allowClear:!0}),P&&(0,i.jsxs)(i.Fragment,{children:[G&&(0,i.jsx)("div",{className:u().spinner,children:(0,i.jsx)("img",{src:"/images/spinner.svg",alt:"spinner"})}),!G&&0===M.length&&(0,i.jsx)("em",{className:u()["not-found"],children:"No blogs found matching your search"})]}),(!P||!G)&&(0,i.jsx)("div",{className:"".concat(u().blogs),children:null===(t=P?M:g)||void 0===t?void 0:t.map((function(e,t){return(0,i.jsx)(_(),{href:"/blog/".concat(e.slug),children:(0,i.jsxs)("a",{className:u().blog,children:[(0,i.jsx)("img",{className:u()["blog-image"],src:e.featuredImage,alt:"blog image"}),(0,i.jsxs)("div",{className:u()["blog-details"],children:[(0,i.jsxs)("div",{className:"flex between center-align",children:[(0,i.jsx)("p",{className:u()["blog-category"],children:r.name}),(0,i.jsxs)("p",{className:u()["read-mins"],children:[e.readMinutes," mins read"]})]}),(0,i.jsx)("p",{className:u()["blog-title"],children:"desktop"===m?e.title:"".concat(e.title.slice(0,40)," ").concat(e.title.length>40?"...":"")}),(0,i.jsxs)("p",{className:u()["blog-excerpt"],children:[e.excerpt.slice(0,"desktop"===m?200:50),"..."]})]})]})},t)}))}),(0,i.jsxs)("section",{className:u().section,children:[(0,i.jsxs)("div",{className:"flex between center-align vertical-margin",children:[(0,i.jsx)("h2",{className:u()["featured-title"],children:"Featured Flowers"}),"desktop"===m&&(0,i.jsxs)(b.Z,{url:"/product-category/all",className:"flex spaced center-align",type:"transparent",children:[(0,i.jsx)("h3",{className:"red margin-right",children:"See All"}),(0,i.jsx)("img",{alt:"arrow",className:"generic-icon xsmall",src:"/icons/arrow-right.svg"})]})]}),(0,i.jsx)("div",{className:u().products,children:U.map((function(e){var t,r,a;return(0,i.jsx)(x.Z,{image:(null===(t=e.images[0])||void 0===t?void 0:t.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===(r=e.variants)||void 0===r?void 0:r.length)?"Select Size":"Add to Cart",cart:!(null===(a=e.variants)||void 0===a?void 0:a.length),product:e},e.id)}))})]}),"mobile"===m&&(0,i.jsxs)(b.Z,{url:"/product-category/flowers-to-say-thanks-sorry-etc",type:"plain",minWidth:!0,className:u()["see-all"],children:[(0,i.jsx)("h3",{className:"red margin-right",children:"Browse All Flowers"}),(0,i.jsx)("img",{alt:"see all",src:"/icons/arrow-right.svg"})]}),(0,i.jsx)(v.Z,{}),(0,i.jsx)("div",{className:u()["subscribe-section"],children:(0,i.jsxs)("div",{className:"flex evenly",children:[(0,i.jsxs)("div",{className:"flex column spaced",children:[(0,i.jsx)("h2",{className:"featured-title unspaced bold",children:"Get Amazing Updates Right Into Your Inbox."}),(0,i.jsx)("div",{className:"grayed",children:"Stay in the loop with everything you need to know."})]}),(0,i.jsxs)("div",{className:u()["subscribe-form-wrapper"],children:[(0,i.jsxs)("form",{className:"flex spaced responsive",onSubmit:q,children:[(0,i.jsx)(j.Z,{value:F,onChange:I,className:"full-width",placeholder:"Enter email address",required:!0,type:"email",name:"email",radiu
1s:!0}),(0,i.jsx)(b.Z,{buttonType:"submit",loading:L,children:"SUBSCRIBE"})]}),(0,i.jsx)("span",{className:"grayed semibold",children:"We care about your data in our privacy policy"})]})]})})]})]})}},9201:function(e){e.exports={breadcrumb:"Breadcrumb_breadcrumb__Zzb9z",label:"Breadcrumb_label__nhyD7","breadcrumb-item":"Breadcrumb_breadcrumb-item__xUp45",icon:"Breadcrumb_icon__v_3Yr"}},9371:function(e){e.exports={"blog-category":"BlogCategory_blog-category__2lpGM","hero-section":"BlogCategory_hero-section__enbrE",bgColor:"BlogCategory_bgColor__tG62I","hero-text":"BlogCategory_hero-text__KrOrr","hero-text-name":"BlogCategory_hero-text-name__DeDRN",info:"BlogCategory_info__AsXu9",search:"BlogCategory_search__e_vz6",spinner:"BlogCategory_spinner__XIs__","not-found":"BlogCategory_not-found__NTK82",blogs:"BlogCategory_blogs__vSmP5",blog:"BlogCategory_blog__Noa3v","blog-details":"BlogCategory_blog-details__ictk3","blog-title":"BlogCategory_blog-title__qn57h","blog-excerpt":"BlogCategory_blog-excerpt__voozs","read-mins":"BlogCategory_read-mins__cbgOJ",gifts:"BlogCategory_gifts__GPedW","see-all":"BlogCategory_see-all__hwBnM",section:"BlogCategory_section__mSN_R","featured-title":"BlogCategory_featured-title__Nn4ow",products:"BlogCategory_products__Zv1ox","contact-section-wrapper":"BlogCategory_contact-section-wrapper__w8xJK","contact-section":"BlogCategory_contact-section__C7H_R","contact-img":"BlogCategory_contact-img__FEP5n",details:"BlogCategory_details__rJgRC",detail:"BlogCategory_detail__OF9h6",key:"BlogCategory_key__nkNVx",value:"BlogCategory_value__h8JSC","hello-btn":"BlogCategory_hello-btn__4QYXd","continue-btn":"BlogCategory_continue-btn__OZDQe","subscribe-section":"BlogCategory_subscribe-section__KdESb","subscribe-form-wrapper":"BlogCategory_subscribe-form-wrapper__PsTa_"}}},function(e){e.O(0,[687,774,888,179],(function(){return t=1736,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.