PageSourceSearch

https://www.somanyceramics.com/build/assets/IdeasAndGuides-CiTRxwYT.js

js somanyceramics.com collected 2026-09-25 18:33:01 UTC 17,805 bytes, 1 lines download raw bytes

1import{b as H,r as G}from"./vendor-inertia-DoowGBH0.js";import{_ as V}from"./Card.vue_vue_type_script_setup_true_lang-BBwRWZqF.js";import{_ as $}from"./index-ScNUDO_V.js";import{A as W}from"./arrow-up-right-DGSkQ0Nf.js";import{d as P,r as v,b as N,o as R,w as U,j as n,k as l,l as r,q as w,C as g,g as x,i as _,u as b,t as m,F as k,E as L,p as O,I as S,x as F}from"./vendor-vue-BezOTQRv.js";import{_ as Y}from"./app-B-PinkCI.js";const q={class:"ig-section"},Z={class:"ig-container"},J={class:"ig-header animate-item"},K={class:"ig-header-text"},Q={class:"ig-title"},X={class:"ig-subtitle"},ee={class:"ig-header-action"},te=["href"],ie={class:"ig-image-wrap"},se=["src","alt"],re={key:0,class:"ig-category-pill"},oe={class:"ig-category-text"},ae={key:1,class:"ig-arrow-pill"},ne={class:"ig-card-content"},le={class:"ig-card-title"},ce={class:"ig-card-description"},de={class:"ig-image-wrap"},ge=["src","alt"],ue={key:0,class:"ig-category-pill"},me={class:"ig-category-text"},pe={key:1,class:"ig-arrow-pill"},he={class:"ig-card-content"},fe={class:"ig-card-title"},ye={class:"ig-card-description"},ve={key:0,class:"ig-pagination"},we=["onClick"],be={class:"ig-mobile-view-more"},Ce=P({__name:"IdeasAndGuides",props:{product:{default:null},customImages:{},showbtn:{type:Boolean,default:!0},customTitle:{},customSubtitle:{},customArticles:{},showCategory:{type:Boolean,default:!0},showarrowpill:{type:Boolean,default:!0},filterCategory:{default:null},initialArticles:{}},setup(u){const i=u,s=v([]),I=v(!1),z=N(()=>i.customArticles&&i.customArticles.length>0),j=async()=>{if(!(i.initialArticles&&i.initialArticles.length>0)&&i.filterCategory){I.value=!0;try{const a=await H.get("/api/v1/blogs"),t=Array.isArray(a.data?.data)?a.data.data:[];console.log("Filter category:",i.filterCategory),console.log("Total blogs fetched:",t.length);const e=t.filter(o=>{const d=(o.category||"").toLowerCase().trim(),h=(o.tag||"").toLowerCase().trim(),c=i.filterCategory.toLowerCase().trim();if(c==="bathware"){const E=d===c||h===c;return E&&console.log("Matched bathware blog:",o.title,"category:",o.category,"tag:",o.tag),E}const C=d===c||d.includes(c)||h===c||h.includes(c);return C&&console.log("Matched blog:",o.title,"category:",o.category,"tag:",o.tag),C});if(e.length===0){const d={coverstone:"tiles",coverstone9:"tiles",ceramic:"tiles",duragres:"tiles",durastone:"tiles",vitro:"tiles",italmarmi:"tiles","tiles-innovation":"tiles","french-collection":"bathware","signature-collection":"bathware","bathware-innovation":"bathware"}[i.filterCategory];if(d){console.log("No collection blogs found, falling back to:",d);const h=t.filter(c=>(c.category||"").toLowerCase().trim()===d).slice(0,3);s.value=h}}else s.value=e.slice(0,3);console.log("Filtered blogs count:",s.value.length)}catch(a){console.error("Failed to fetch blogs",a),s.value=[]}finally{I.value=!1}}};R(()=>{i.filterCategory&&j()}),U(()=>i.filterCategory,a=>{a&&j()});const f={mounted:a=>{const t=new IntersectionObserver(e=>{e.forEach(o=>{o.isIntersecting&&(a.classList.add("visible"),t.unobserve(a))})},{threshold:.1});t.observe(a),window.setTimeout(()=>{a.classList.add("visible"),t.disconnect()},800)}},p=N(()=>{if(i.customTitle||i.customSubtitle||i.customArticles)return{title:i.customTitle||"Ideas & Guides",subtitle:i.customSubtitle||"Explore trends, ideas, and expert tips that simplify your decisions",articles:i.customArticles||[]};if(i.initialArticles&&i.initialArticles.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:i.initialArticles.map((e,o)=>({id:Number(e.id)||o+1,title:e.title||"",description:e.description||"",category:e.tag||e.category||"Guides",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:e.url||e.link||(e.slug?`/blogs/${e.slug}`:void 0)}))};if(i.filterCategory==="coverstone"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Coverstone",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="coverstone9"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Cover9ine",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="duragres"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Duragres",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="ceramic"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Ceramic Tiles",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="durastone"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Durastone",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="vitro"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Vitro",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="italmarmi"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Italmarmi",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="french-collection"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"French Collection",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/bathware-custom-guide-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="signature-collection"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Signature Collection",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/bathware-custom-guide-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="tiles-innovation"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Tiles Innovation",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/Ideas&Guides_1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="bathware-innovation"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Bathware Innovation",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/bathware-custom-guide-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="allied"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:"Building Solutions",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/allied-guide-1.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="bathware"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Bathroom Design",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-4.png",url:`/blogs/${e.slug}`}))};if(i.filterCategory==="tiles"&&s.value.length>0)return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:s.value.map(e=>({id:Number(e.id),title:e.title||"",description:e.description||"",category:e.tag||"Home Design",image:e.image||"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png",url:`/blogs/${e.slug}`}))};if(i.product?.type==="allied"||i.product?.category==="adhesive"){const t=[{id:201,title:"Surface Preparation Tips for Perfect Tiling",description:"Before applying EzyFix Adhesive, surface prep makes all the difference. Dive into best practices for cleaning, leveling, and priming substrates.",category:"Product Selection",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/allied-guide-1.png"},{id:202,title:"From Mixing to Grouting",description:"A step-by-step guide to using EzyFix Adhesive efficiently—how to mix it, how long it stays workable, how to apply it, and how to set your tiles right.",category:"Installation Tips",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/allied-guide-2.png"}
1,{id:203,title:"Choosing the Right Tile Adhesive",description:"Learn why EzyFix C1T is ideal for standard ceramic tiles, and when you might need a more flexible or high-strength variant.",category:"Best Practices",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/allied-guide-3.png"}];return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:i.customImages&&i.customImages.length>0?t.map((e,o)=>({...e,image:i.customImages[o]||e.image})):t}}if(i.product?.slug==="bathware"){const t=[{id:101,title:"Be Winter Ready with SOMANY Water Heaters",description:"A steady supply of hot water is essential during the colder months. If you are thinking about either upgrading your current water heater or getting a new one installed, its important to choose wisely.",category:"Bathroom Design",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-4.png"},{id:102,title:"Here are the designs of Washbasin & Sinks!",description:"For many homeowners, the bathroom is one of the most relaxing spaces in the house. As a result, they give it the same level of care as the rest of the house when it comes to décor and theme.",category:"Space Planning",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-5.png"},{id:103,title:"How to Choose a Water Heater for Your Home?",description:"In a country like India, where we are known for our diverse climate, having access to a reliable source of hot water has become a necessity.",category:"Maintenance",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/bathware-guide-3.png"}];return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:i.customImages&&i.customImages.length>0?t.map((e,o)=>({...e,image:i.customImages[o]||e.image})):t}}const a=[{id:1,title:"Timeless Elegance of Glazed Vitrified Tiles",description:"In the sophisticated world of interior design, the choice of flooring serves as the foundation of a spaces character and ambiance. Somany Ceramics 600x600 mm glazed vitrified tiles epitomize this philosophy, offering a harmonious blend of elegance, durability, and versatility. These vitrified flo",category:"Home Design",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-1.png"},{id:2,title:"Top Tile Trends and Tips for 2026",description:"The Cersaie Fair in Bologna, Italy offers the world a first look at the trends that will shape global design in the coming year. From new materials to fresh finishes, it sets the definitive tone for what is next in global surface design. This article delves into the most exciting findings at Cersai",category:"Somany Experts",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-2.png"},{id:3,title:"The Timeless Beauty of Tiles by SOMANY",description:"Tiles are more than just a surface covering, infact they hold the power to transform spaces into timeless works of art. From classic designs to intricate patterns, tiles can dramatically enhance the aesthetics and make a lasting impression. When it comes to creating a timeless impression, it can be",category:"Design Trends",image:"https://d3joggurz1vobr.cloudfront.net/storefront/images/image-blogs-3.png"}];return{title:"Ideas & Guides",subtitle:"Explore trends, ideas, and expert tips that simplify your decisions.",articles:i.customImages?a.map((t,e)=>({...t,image:i.customImages?.[e]||t.image})):a}}),T=()=>{i.filterCategory?G.visit(`/blogs-landing?filter=${i.filterCategory}`):G.visit("/blogs-landing")},A=a=>{if(a.url){if(a.url.startsWith("/blogs/"))return a.url;try{const t=new URL(a.url);if(t.pathname.startsWith("/blogs/"))return t.pathname}catch{}return a.url}return z.value?null:"/blogs-landing"},y=v(null),B=v(0),M=a=>{const t=a.target,e=t.scrollLeft,o=t.offsetWidth*.85;B.value=Math.round(e/o)},D=a=>{if(!y.value)return;const t=y.value.offsetWidth*.85;y.value.scrollTo({left:a*t,behavior:"smooth"})};return(a,t)=>(n(),l("section",q,[r("div",Z,[w((n(),l("div",J,[r("div",K,[r("h2",Q,g(p.value.title),1),r("p",X,g(p.value.subtitle),
11)]),r("div",ee,[u.showbtn?(n(),x(b($),{key:0,class:"ig-view-more",variant:"outline",onClick:T},{default:_(()=>[...t[0]||(t[0]=[r("span",null,"View More",-1),r("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r("path",{d:"M11.5391 8.61719C11.5391 8.83073 11.4661 9.00781 11.3203 9.14844C11.1797 9.28906 11.0156 9.35938 10.8281 9.35938C10.6354 9.35938 10.4688 9.28646 10.3281 9.14062C10.1927 8.99479 10.125 8.83073 10.125 8.64844V5.75781L10.2656 2.10938L8.97656 3.57031L1.21875 11.3203C1.07812 11.4609 0.914062 11.5312 0.726562 11.5312C0.596354 11.5312 0.476562 11.4974 0.367188 11.4297C0.257812 11.362 0.169271 11.2734 0.101562 11.1641C0.0338542 11.0495 0 10.9297 0 10.8047C0 10.6224 0.0729167 10.4583 0.21875 10.3125L7.96094 2.55469L9.41406 1.28125L5.60156 1.40625H2.88281C2.70052 1.40625 2.53646 1.33854 2.39062 1.20312C2.25 1.0625 2.17969 0.898438 2.17969 0.710938C2.17969 0.523438 2.2474 0.359375 2.38281 0.21875C2.51823 0.0729167 2.69531 0 2.91406 0H10.7734C11.0078 0 11.1927 0.0703125 11.3281 0.210938C11.4635 0.351562 11.5312 0.533854 11.5312 0.757812L11.5391 8.61719Z",fill:"#191B1C"})],-1)])]),_:1})):m("",!0)])])),[[f]]),w((n(),l("div",{class:"ig-track animate-item",ref_key:"sliderRef",ref:y,onScroll:M},[(n(!0),l(k,null,L(p.value.articles,(e,o)=>(n(),l(k,{key:e.id},[A(e)?w((n(),l("a",{key:0,href:A(e),class:"ig-card ig-card-link animate-item",style:S({transitionDelay:`${o*150}ms`})},[r("div",ie,[r("img",{src:e.image,alt:e.title,class:"ig-image",loading:"lazy"},null,8,se),u.showCategory?(n(),l("div",re,[r("span",oe,g(e.category),1)])):m("",!0),u.showarrowpill?(n(),l("div",ae,[...t[1]||(t[1]=[r("svg",{class:"arrow-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r("path",{d:"M7 17L17 7",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M7 7H17V17",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):m("",!0)]),r("div",ne,[r("h3",le,g(e.title),1),r("p",ce,g(e.description),1)])],12,te)),[[f]]):w((n(),x(b(V),{key:1,class:F(["ig-card animate-item",{"ig-card--disabled":z.value}]),style:S({transitionDelay:`${o*150}ms`})},{default:_(()=>[r("div",de,[r("img",{src:e.image,alt:e.title,class:"ig-image",loading:"lazy"},null,8,ge),u.showCategory?(n(),l("div",ue,[r("span",me,g(e.category),1)])):m("",!0),u.showarrowpill?(n(),l("div",pe,[...t[2]||(t[2]=[r("svg",{class:"arrow-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r("path",{d:"M7 17L17 7",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),r("path",{d:"M7 7H17V17",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):m("",!0)]),r("div",he,[r("h3",fe,g(e.title),1),r("p",ye,g(e.description),1)])]),_:2},1032,["class","style"])),[[f]])],64))),128))],32)),[[f]]),p.value.articles.length>1?(n(),l("div",ve,[(n(!0),l(k,null,L(p.value.articles,(e,o)=>(n(),l("div",{key:o,class:F(["ig-dot",{active:B.value===o}]),onClick:d=>D(o)},null,10,we))),128))])):m("",!0),r("div",be,[u.showbtn?(n(),x(b($),{key:0,class:"ig-mobile-view-more-btn",variant:"outline",onClick:T},{default:_(()=>[t[3]||(t[3]=r("span",null,"View More",-1)),O(b(W),{class:"ig-view-more-icon"})]),_:1})):m("",!0)])])]))}}),Te=Y(Ce,[["__scopeId","data-v-ee8a2969"]]);export{Te as I};

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.