PageSourceSearch

https://upriseenergy.com/component---src-template-blog-category-jsx-71305ae444ba4c49c6de.js

js upriseenergy.com collected 2026-10-03 21:01:45 UTC 11,257 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkcivsav=self.webpackChunkcivsav||[]).push([[544],{1931:function(e,t,a){function l(e){const t=document.getElementById(e);if(t){const e=t.offsetTop,a={behavior:"smooth"};window.scrollTo({top:e,...a})}}a.d(t,{o:function(){return l}})},3460:function(e,t,a){a.r(t),a.d(t,{Head:function(){return s}});var l=a(4810),n=a(6540),r=a(2532),o=a(340),i=a(5014),c=a(5597);function s(e){var t;let{location:a,data:l}=e;return n.createElement(i.A,{data:null==l||null===(t=l.sanityCategory)||void 0===t?void 0:t.seo,location:a})}t.default=e=>{let{data:t,pageContext:a}=e;const{sanityCategory:i,allSanityBlog:s}=t,{category:m}=a,{0:d,1:u}=(0,n.useState)(""),{0:g,1:p}=(0,n.useState)(s.nodes),v=e=>{if(u(e),""===e)p(s.nodes);else{const t=s.nodes.filter((t=>{var a,l;return t.blogTitle.toLowerCase().includes(e.toLowerCase())||(null===(a=t.overview)||void 0===a?void 0:a.toLowerCase().includes(e.toLowerCase()))||(null===(l=t.blogSubTitle)||void 0===l?void 0:l.toLowerCase().includes(e.toLowerCase()))}));p(t)}},f=e=>{var t,a,o;let{blog:i}=e;const c=(0,r.c)(null===(t=i.thumbnailImage)||void 0===t||null===(a=t.image)||void 0===a?void 0:a.asset);return n.createElement("article",{className:"group bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-lg transition-all duration-300 overflow-hidden transform hover:-translate-y-1"},n.createElement(l.N_,{to:`/blog/${i.slug.current}`,className:"block"},n.createElement("div",{className:"relative h-48 bg-gray-100 overflow-hidden"},c?n.createElement(r.G,{image:c,alt:(null===(o=i.thumbnailImage)||void 0===o?void 0:o.altText)||i.blogTitle,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"}):n.createElement("div",{className:"w-full h-full bg-gradient-to-br from-gray-100 to-gray-200 flex items-center justify-center"},n.createElement("svg",{className:"w-12 h-12 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"}))),n.createElement("div",{className:"absolute inset-0 bg-black bg-opacity-0 group-hover:bg-opacity-10 transition-all duration-300"})),n.createElement("div",{className:"p-6"},i.blogSubTitle&&n.createElement("div",{className:"text-sm text-logo1 font-medium uppercase tracking-wider mb-2"},i.blogSubTitle),n.createElement("h3",{className:"text-xl font-bold text-black mb-3 group-hover:text-gray-800 transition-colors duration-200 line-clamp-2"},i.blogTitle),i.overview&&n.createElement("p",{className:"text-gray-600 leading-relaxed mb-4 line-clamp-3"},i.overview),n.createElement("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-4"},i.author&&n.createElement("span",{className:"font-medium"},i.author.name),i.publishedAt&&n.createElement("time",{dateTime:i.publishedAt},new Date(i.publishedAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}))),i.tags&&i.tags.length>0&&n.createElement("div",{className:"flex flex-wrap gap-2 mb-4"},i.tags.slice(0,2).map((e=>{var t,a;return n.createElement(l.N_,{key:null===(t=e.slug)||void 0===t?void 0:t.current,to:`/blog/tag/${null===(a=e.slug)||void 0===a?void 0:a.current}`,className:"px-2 py-1 bg-gray-100 hover:bg-gray-200 text-gray-700 text-xs rounded-full transition-colors duration-200"},"#",e.name)})),i.tags.length>2&&n.createElement("span",{className:"px-2 py-1 text-xs text-gray-500"},"+",i.tags.length-2)),n.createElement("div",{className:"flex items-center text-logo1 font-medium group-hover:text-opacity-80 transition-colors duration-200"},n.createElement("span",{className:"text-sm uppercase tracking-wider"},"Read More"),n.createElement("svg",{className:"ml-2 w-4 h-4 transform group-hover:translate-x-1 transition-transform duration-200",fill:"currentColor",viewBox:"0 0 20 20"},n.createElement("path",{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"}))))))};return n.createElement(o.A,null,n.createElement("section",{className:"bg-white py-16 lg:py-24"},n.createElement("div",{className:"container mx-auto px-4 max-w-6xl mt-10"},n.createElement("div",{className:"text-center max-w-4xl mx-auto"},n.createElement("div",{className:"mb-6"},n.createElement("span",{className:"inline-flex items-center px-4 py-2 bg-logo1 text-black rounded-full text-sm font-medium uppercase tracking-wider"}
1,n.createElement("svg",{className:"w-4 h-4 mr-2",fill:"currentColor",viewBox:"0 0 20 20"},n.createElement("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h12a1 1 0 011 1v2a1 1 0 01-1 1H4a1 1 0 01-1-1V4zM3 10a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zM14 9a1 1 0 00-1 1v6a1 1 0 001 1h2a1 1 0 001-1v-6a1 1 0 00-1-1h-2z",clipRule:"evenodd"})),(null==i?void 0:i.name)||m)),n.createElement("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-black mb-6"},(null==i?void 0:i.name)||m," Articles"),(null==i?void 0:i.description)&&n.createElement("p",{className:"text-lg md:text-xl text-gray-600 leading-relaxed mb-8"},i.description),n.createElement("div",{className:"max-w-md mx-auto"},n.createElement("div",{className:"relative"},n.createElement("input",{type:"text",placeholder:"Search within these articles...",value:d,onChange:e=>v(e.target.value),className:"w-full px-4 py-3 pl-12 pr-4 text-gray-700 bg-white border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-logo1 focus:border-transparent transition-all duration-200"}),n.createElement("div",{className:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},n.createElement("svg",{className:"w-5 h-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})))))))),n.createElement("section",{className:"bg-gray-50 py-16"},n.createElement("div",{className:"container mx-auto px-4 max-w-6xl"},n.createElement("div",{className:"mb-8 flex items-center justify-between"},n.createElement("p",{className:"text-gray-600"},d?n.createElement(n.Fragment,null,"Showing ",g.length," result",1!==g.length?"s":"",' for "',d,'"'):n.createElement(n.Fragment,null,g.length," article",1!==g.length?"s":""," in"," ",(null==i?void 0:i.name)||m)),n.createElement(c.A,{cls:"flex items-center text-logo1 hover:text-opacity-80 font-medium transition-colors duration-200",data:{buttonSlug:{current:"/blog"}}},n.createElement("svg",{className:"mr-2 w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20"},n.createElement("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})),"All Articles")),g.length>0?n.createElement("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"},g.map((e=>n.createElement(f,{key:e.slug.current,blog:e})))):n.createElement("div",{className:"text-center py-16"},n.createElement("svg",{className:"mx-auto w-16 h-16 text-gray-400 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M9.172 16.172a4 4 0 015.656 0M9 12h6m-6-4h6m2 5.291A7.962 7.962 0 0112 15c-2.34 0-4.47-.881-6.08-2.33C7.76 10.906 9.72 10 12 10s4.24.906 6.08 2.67z"})),n.createElement("h3",{className:"text-xl font-semibold text-gray-900 mb-2"},"No articles found"),n.createElement("p",{className:"text-gray-600 mb-6"},d?`No articles in "${(null==i?void 0:i.name)||m}" match "${d}". Try a different search term.`:`No articles have been published in the "${(null==i?void 0:i.name)||m}" category yet.`),d&&n.createElement("button",{onClick:()=>v(""),className:"inline-flex items-center px-4 py-2 text-sm font-medium text-logo1 hover:text-opacity-80 transition-colors duration-200"},"Clear search")))))}},5014:function(e,t,a){var l=a(6540),n=a(4810);t.A=function(e){var t,a;let{children:r,location:o,data:i}=e;const{site:c,sanitySitesettings:s}=(0,n.GR)("1670476982"),{defaultTitle:m,defaultDescription:d,siteUrl:u}=c.siteMetadata,g={title:(null==i?void 0:i.title)||m,description:(null==i?void 0:i.description)||d,url:`${u}${o.pathname}`,image:(null==i?void 0:i.image)||null},p=g.image&&"string"==typeof g.image?g.image.startsWith("http")?g.image:`${u}${g.image}`:null;return l.createElement(l.Fragment,null,l.createElement("title",null,g.title),(null==s?void 0:s.favicon)&&l.createElement("link",{rel:"icon",type:"image/x-icon",href:s.favicon.asset.url}),l.createElement("meta",{name:"description",content:g.description}),l.createElement("meta",{name:"theme-color",content:"#ffffff"}),l.createElement("meta",{name:"msapplication-navbutton-color",content:"#ffffff"}),l.createElement("meta",{name:"apple-mobile-web-app-status-bar-style",content:"#ffffff"}),(null==g?void 0:g.url)&&l.createElement("meta",{property:"og:url",content:g.url}),(null==g?void 0:g.title)&&l.createElement("meta",{property:"og:title",content:g.title}),(null==g?void 0:g.description)&&l.createElement("meta",{property:"og:description",content:g.description}),p&&l.createElement("meta",{property:"og:image",content:p}),p&&l.createElement("meta",{property:"og:image:secure_url",content:p}),l.createElement("meta",{property:"og:site_name",content:"upriseenergy.com"}),l.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),(null==g?void 0:g.title)&&l.createElement("meta",{name:"twitter:title",content:g.title}),(null==g?void 0:g.description)&&l.createElement("meta",{name:"twitter:description",content:g.description}),p&&l.createElement("meta",{name:"twitter:image",content:p}),(null==i||null===(t=i.keywords)||void 0===t?void 0:t.length)>0&&l.createElement("meta",{name:"keywords",content:i.keywords.join(",")}),(null==i||null===(a=i.ldSchema)||void 0===a?void 0:a.length)>0&&i.ldSchema.map(((e,t)=>l.createElement("script",{type:"application/ld+json",key:t},JSON.parse(e)))),r)}},5597:function(e,t,a){var l=a(4810),n=a(6540),r=a(2711),o=a(1931),i=a(1085);t.A=e=>{let{data:t,cls:a,children:c}=e;const{0:s,1:m}
1=(0,n.useState)(!1),d=e=>{"undefined"!=typeof window&&window.dataLayer&&window.dataLayer.push({event:"btn_click",eventLable:e})};return n.createElement(n.Fragment,null,"slug"===(null==t?void 0:t.linkType)&&n.createElement(l.N_,{className:a,to:(0,r.y)(t.slug.current),onClick:()=>d(t.buttonText)},c)," ","url"===(null==t?void 0:t.linkType)&&n.createElement("a",{className:a,href:t.url,target:"_blank",onClick:()=>d(t.buttonText)},c)," ","sectionId"===(null==t?void 0:t.linkType)&&n.createElement("button",{onClick:()=>(0,o.o)(t.sectionId),className:a},c),"appointmentPopup"===(null==t?void 0:t.linkType)&&n.createElement("button",{onClick:()=>{return e=t.buttonText,m(!s),void("undefined"!=typeof window&&window.dataLayer&&(window.dataLayer.push({event:"btn_click",eventLable:e}),window.dataLayer.push({event:"appointment_btn_click"})));var e},className:a},c),s&&n.createElement(i.A,{closeModal:()=>m(!1)}))}}}]);
2//# sourceMappingURL=component---src-template-blog-category-jsx-71305ae444ba4c49c6de.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.