PageSourceSearch

https://zeebusiness.com/chunk-V3KY2VUK.js

js zeebusiness.com collected 2026-10-08 11:53:39 UTC 12,344 bytes, 1 lines download raw bytes

1import{a as nt}from"./chunk-QQ7WSJP6.js";import{b as X}from"./chunk-TGTMVVIH.js";import{a as J}from"./chunk-O73KMW5V.js";import"./chunk-W7MMJJR4.js";import{d as W,f as Q}from"./chunk-PGAHM6DS.js";import{n as G,o as Y}from"./chunk-SSK3BXXR.js";import{h as N,r as R,x as K}from"./chunk-RRXBQMTE.js";import{Aa as A,Cc as U,Db as H,Ec as c,Fc as v,Gc as T,Ia as F,Sc as q,Wa as L,Xb as z,Zb as V,_b as M,ac as S,bc as w,bd as D,dd as O,gc as o,hb as I,hc as a,ib as j,ic as g,mc as k,nb as l,nc as C,rc as y,sc as x,ud as Z,va as B,wa as P,xb as m}from"./chunk-ZX2ZQS33.js";import{g as it}from"./chunk-QBUHZOWM.js";var tt=it(nt());function ot(n,d){if(n&1){let t=k();o(0,"ul",14)(1,"li")(2,"span",20),y("click",function(){let i=B(t).$implicit,r=x();return P(r.onBlogCategory(i))}),c(3),a()()()}if(n&2){let t=d.$implicit;l(3),v(t.name)}}function at(n,d){if(n&1&&g(0,"img",23),n&2){let t=x().$implicit;C("src",t.images.medium,j)}}function rt(n,d){n&1&&g(0,"img",24)}function lt(n,d){if(n&1){let t=k();o(0,"div",21),y("click",function(){let i=B(t).$implicit,r=x();return P(r.onViewBlog(i))}),o(1,"div",22),z(2,at,1,1,"img",23)(3,rt,1,0,"img",24),a(),o(4,"div",25)(5,"button",26),c(6),a(),o(7,"p",27),c(8),D(9,"date"),a(),o(10,"p",28),c(11),a()()()}if(n&2){let t=d.$implicit;l(2),V(t.images.medium?2:3),l(4),v(t.categoryName),l(2),v(O(9,4,t.date,"MMM d, y")),l(3),T(" ",t.title)}}function st(n,d){if(n&1&&g(0,"img",29),n&2){let t=x().$implicit;C("src",t==null||t.images==null?null:t.images.medium,j)}}function ct(n,d){n&1&&g(0,"img",24)}function mt(n,d){if(n&1){let t=k();o(0,"div",19)(1,"div",22),z(2,st,1,1,"img",29)(3,ct,1,0,"img",24),a(),o(4,"div",30)(5,"p",27),c(6),D(7,"date"),a(),o(8,"p",31),c(9),a(),g(10,"p",32),o(11,"p",33)(12,"span",34),y("click",function(){let i=B(t).$implicit,r=x();return P(r.onViewBlog(i))}),c(13,"Read the Blog"),a(),g(14,"i",35),a()()()}if(n&2){let t=d.$implicit;l(2),V(!(t==null||t.images==null)&&t.images.medium?2:3),l(4),T("",O(7,4,t.datetime,"MMM d, y")," "),l(3),v(t.title),l(),C("innerHTML",t.description,I)}}var dt=n=>`blog-detail:${n}`,xt=(()=>{class n{constructor(t,e,i,r,s,u,p,h,_,f,E){this.route=t,this.homePageService=e,this.router=i,this.location=r,this.title=s,this.meta=u,this.platformService=p,this.transferState=h,this.pendingTasks=_,this.cdr=f,this.document=E,this.blogData={},this.blogCategories=[],this.recentBlogs=[],this.similarBlogs=[]}ngOnInit(){this.route.queryParams&&this.route.queryParams.subscribe(t=>{let e=t.blogID;e&&this.fetchBlog(e)})}fetchBlog(t){let e=this.platformService.isBrowser,i=dt(t);if(e&&this.transferState.hasKey(i)){let s=this.transferState.get(i,null);if(this.transferState.remove(i),s){this.applyBlogResponse(s);return}}let r=e?null:this.pendingTasks.add();this.homePageService.getBlog(t).subscribe({next:s=>{tt.default.isEmpty(s)||(e||this.transferState.set(i,s),this.applyBlogResponse(s)),r?.()},error:()=>{r?.()}})}applyBlogResponse(t){let e=Array.isArray(t)?t[0]:t;e&&(this.blogData=e,this.recentBlogs=e.recentblog??[],this.blogCategories=e.categorylist??[],this.similarBlogs=e.samecategoryposts??[],this.applyBlogSeo(),this.cdr.markForCheck())}applyBlogSeo(){try{let t=this.blogData||{},e=(t.title||"").toString().trim(),i=this.stripHtml(t.description||"").slice(0,200),r=e?`${e} | Zee Business Blog`:"Zee Business Blog",s=i||"Read travel guides, destination tips, and inspiration on the Zee Business blog.",u=t?.images?.full||t?.images?.medium||"https://cms5.zeebusiness.com/Greece_santorini.jpg",p=this.document?.location?.origin||"",h=t?.ID||t?.id||this.route.snapshot.queryParams.blogID,_=h?`${p}/blog-details?blogID=${encodeURIComponent(String(h))}`:`${p}/blog-details`;this.title.setTitle(r),this.meta.updateTag({name:"description",content:s}),this.meta.updateTag({name:"robots",content:"index, follow"}),this.applyBlogCanonical(_),this.applyBlogSocialMetaTags({title:r,description:s,imageUrl:u,pageUrl:_}),this.applyBlogStructuredData({blog:t,titleStr:r,descStr:s,imageUrl:u,pageUrl:_})}catch(t){console.warn("[blog-details-seo] failed:",t?.message??t)}}applyBlogCanonical(t){try{if(!this.document)return;let e=this.document.querySelector('link[rel="canonical"]');e||(e=this.document.createElement("link"),e.setAttribute("rel","canonical"),this.document.head.appendChild(e)),e.setAttribute("href",t)}catch(e){console.warn("[blog-details-canonical] failed:",e?.message??e)}}applyBlogSocialMetaTags(t){try{let{title:e,description:i,imageUrl:r,pageUrl:s}=t;this.meta.updateTag({property:"og:type",content:"article"}),this.meta.updateTag({property:"og:site_name",content:"Zee Business"}),this.meta.updateTag({property:"og:title",content:e}),this.meta.updateTag({property:"og:description",content:i}),this.meta.updateTag({property:"og:image",content:r}),this.meta.updateTag({property:"og:url",content:s}),this.meta.updateTag({name:"twitter:card",content:"summary_large_image"}),this.meta.updateTag({name:"twitter:title",content:e}),this.meta.updateTag({name:"twitter:description",content:i}),this.meta.updateTag({name:"twitter:image",content:r})}catch(e){console.warn("[blog-details-social] failed:",e?.message??e)}}applyBlogStructuredData(t){try{if(!this.document)return;let{blog:e,titleStr:i,descStr:r,imageUrl:s,pageUrl:u}=t,p=this.toIsoDate(e?.datetime||e?.date_published||e?.created_at),h=this.toIsoDate(e?.modified||e?.updated_at)||p,_=(e?.author_name||e?.author||"Zee Business Editorial").toString(),f={"@context":"https://schema.org","@type":"BlogPosting",headline:i.replace(/\s*\|\s*Zee Business Blog$/,""),description:r,image:[s].filter(
1Boolean),mainEntityOfPage:{"@type":"WebPage","@id":u},url:u,author:{"@type":"Person",name:_},publisher:{"@type":"Organization",name:"Zee Business",logo:{"@type":"ImageObject",url:"https://cms5.zeebusiness.com/Greece_santorini.jpg"}}};p&&(f.datePublished=p),h&&(f.dateModified=h);let E=Array.isArray(this.blogCategories)?this.blogCategories.map(et=>et?.name).filter(Boolean):[];E.length>0&&(f.articleSection=E);let $="blog-posting-jsonld",b=this.document.getElementById($);b||(b=this.document.createElement("script"),b.id=$,b.type="application/ld+json",this.document.head.appendChild(b)),b.textContent=JSON.stringify(f)}catch(e){console.warn("[blog-jsonld] failed:",e?.message??e)}}toIsoDate(t){if(t)try{let e=new Date(t);return isNaN(e.getTime())?void 0:e.toISOString()}catch(e){return}}stripHtml(t){return t?String(t).replace(/<[^>]*>/g," ").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/\s+/g," ").trim():""}onBlogCategory(t){this.router.navigate(["blog"],{queryParams:{page:1,blogCategory:t.name}})}onViewBlog(t){this.router.navigate([],{relativeTo:this.route,queryParams:{blogID:t.ID},queryParamsHandling:"merge"}),this.location.replaceState(this.router.url)}onViewAllBlogs(){this.router.navigate(["blog"],{queryParams:{allBlogs:"All Blogs",page:1}})}static{this.\u0275fac=function(e){return new(e||n)(m(W),m(X),m(Q),m(N),m(Y),m(G),m(J),m(L),m(F),m(Z),m(A))}}static{this.\u0275cmp=H({type:n,selectors:[["app-blog-details"]],decls:32,vars:9,consts:[[1,"page-width"],[1,"d-line-flex","flex-align-item-center","g-gap-10","going-back",3,"click"],[1,"m-0","radius-50","d-grid","place-item-center","cursor-pointer"],[1,"fa-light","fa-arrow-left"],[1,"m-0"],[1,"help-hero-section"],[1,"text-light-or-lighter-text-main-900","font-15","mb-6","relative","z-index-1"],[1,"text-light-or-lighter-text-main-900","font-33","bold-600","mb-0","relative","z-index-1","pb-10"],[1,"page-width","mt-20"],[1,"container-section"],[1,"main-content"],[1,"text-dark-or-header-text-main-900","font-15",3,"innerHTML"],[1,"right-content"],[1,"text-neutral-color-main-700","font-17","bold-500","mb-0"],[1,"text-dark-or-header-text-main-900","mt-10","font-15","zb-blog-cate-list","pl-0"],[1,"text-neutral-color-main-700","font-17","bold-500"],[1,"might-also-like-box","d-grid","g-gap-15","relative","cursor-pointer"],[1,"font-28","text-center","text-neutral-color-main-700","mb-15","mt-30"],[1,"blog-cards-container","mt-30","mb-20"],[1,"blog-card","cursor-pointer","radius-6"],[1,"cursor-pointer","zb-important","hover_underline",3,"click"],[1,"might-also-like-box","d-grid","g-gap-15","relative","cursor-pointer",3,"click"],[1,"img-container"],["alt","",1,"img",3,"src"],["src","assets/images/zb-Placeholder.svg","loading","lazy","alt","",1,"room-cancl-img"],[1,"relative","pt-6"],[1,"absolute","top-5","right-5","text-light-or-lighter-text-main-900","bg-neutral-color-main-500","news","font-12"],[1,"text-dark-or-header-text-main-900","font-12","mb-0"],[1,"text-dark-or-header-text-main-900","font-15","bold-500","mb-0","mt-20","line-clamp-1line"],["alt","",1,"img","d-block","radius-top-left-6","radius-top-right-6",3,"src"],[1,"p-10"],[1,"line-clamp-2line","mt-10","text-neutral-color-main-700","font-17","bold-600"],[1,"mb-0","mt-10","text-neutral-color-main-500","font-12","line-clamp-2line",3,"innerHTML"],[1,"text-secondary-color-main-700","d-flex","flex-align-item-center","g-gap-5","flex-justify-end","mt-10"],[1,"font-15","read_blog",3,"click"],[1,"fa-light","fa-chevron-right"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1),y("click",function(){return i.onViewAllBlogs()}),o(2,"p",2),g(3,"i",3),a(),o(4,"p",4),c(5,"Back to Blog Overview page"),a()()(),o(6,"div",5)(7,"div",0)(8,"p",6),c(9),D(10,"date"),a(),o(11,"p",7),c(12),a()()(),o(13,"div",8)(14,"div",9)(15,"div",10),g(16,"p",11),a(),o(17,"div",12)(18,"p",13),c(19,"All Categories"),a(),S(20,ot,4,1,"ul",14,M),o(22,"p",15),c(23,"You might also like"),a(),o(24,"div"),S(25,lt,12,7,"div",16,M),a()()(),o(27,"p",17),c(28,"Recent Blogs"),a(),o(29,"div",18),S(30,mt,15,7,"div",19,M),a()()),e&2&&(l(6),U(q("background-image: url(",i.blogData==null||i.blogData.images==null?null:i.blogData.images.full,");")),l(3),v(O(10,6,i.blogData.datetime,"MMM d, y")),l(3),T("",i.blogData.title," "),l(4),C("innerHTML",i.blogData.description,I),l(4),w(i.blogCategories),l(5),w(i.similarBlogs),l(5),w(i.recentBlogs.slice(0,4)))},dependencies:[K,R],styles:[".page-width[_ngcontent-%COMP%]{max-width:1366px;margin-left:auto;margin-right:auto}@media(max-width:1921px){.page-width[_ngcontent-%COMP%]{padding:15px}}.going-back[_ngcontent-%COMP%]{transition:.3s;margin:10px 0;padding:10px;cursor:pointer}.going-back[_ngcontent-%COMP%]:hover{background-color:#3341551a;transition:.3s;border-radius:5px}.help-hero-section[_ngcontent-%COMP%]{background-repeat:no-repeat;padding-bottom:0;min-height:unset;max-height:unset}.container-section[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 344px;grid-gap:35px}@media(max-width:1025px){.container-section[_ngcontent-%COMP%]{grid-template-columns:100%}}.blog-cards-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:10px}@media(max-width:350px){.blog-cards-container[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}.blog-card[_ngcontent-%COMP%]{transition:.3s;border:1px solid var(--neutral-color-main-200)}.blog-card[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]{overflow:hidden}.blog-card[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:100%;height:210px;object-fit:cover;transition:.3s}.blog-card[_ngcontent-%COMP%]:hover{transition:.3s}.blog-card[_ngcontent-%COMP%]:hover   .img-container[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{transform:scale(1.1);transition:.3s}.blog-card[_ngcontent-%COMP%]:hover   .read_blog[_ngcontent-%COMP%]{text-decoration:underline}.zb-blog-cate-list[_ngcontent-%COMP%]{list-style:none}.zb-blog-cate-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}.might-also-like-box[_ngcontent-%COMP%]{grid-template-columns:97px auto;padding-right:10px;border-radius:4px;transition:.3s;border:1px solid var(--neutral-color-main-200)}.might-also-like-box[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow2);transition:.3s;border-color:transparent}.might-also-like-box[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.might-also-like-box[_ngcontent-%COMP%]   .img-container[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:100%;height:80px;object-fit:cover;border-radius:4px 0 0 4px}.might-also-like-box[_ngcontent-%COMP%]   .news[_ngcontent-%COMP%]{border-radius:20px;border:none;padding:2px 10px}"],changeDetection:0})}}return n})();export{xt as BlogDetailsComponent};

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.