PageSourceSearch

https://bandipurhill.com/static/js/5331.ccf016a9.chunk.js

js bandipurhill.com collected 2026-10-09 18:25:28 UTC 8,896 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbcc=self.webpackChunkbcc||[]).push([[5331,6907],{4736:(e,t,a)=>{a.r(t),a.d(t,{default:()=>j});var l=a(7313),i=a(5537),s=a(8467),n=a(7853),o=a(7836),r=a(8847),d=a(2590),c=a(8485),g=a(509),m=a(4245),u=a(1689),v=a(3216),h=a(2756),p=a(3989),b=a(182);const x=a.p+"static/media/bandipur-map.cb470cb7e0d6665954e3.webp";var _=a(6417);const j=()=>{var e,t,a,j;const f=(0,s.TH)(),[w,y]=(0,l.useState)(),N=(0,s.UO)(),{blogid:S}=(0,s.UO)(),{data:B}=(0,r.cP)("Blog"),I=null===B||void 0===B||null===(e=B.news)||void 0===e?void 0:e.filter((e=>{var t;return null===(t=e.type)||void 0===t?void 0:t.toLowerCase().startsWith("blog")})),H=null===w||void 0===w||null===(t=w.description)||void 0===t?void 0:t.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim().slice(0,160),[T]=(0,r.HD)(),[Z]=(0,r.$1)(),[k]=(0,r.vO)();(0,l.useEffect)((()=>{var e;N.blogid&&I&&B.news&&B.news.length&&y(null===B||void 0===B||null===(e=B.news)||void 0===e?void 0:e.filter((e=>{var t;return e.id===N.blogid&&(null===(t=e.type)||void 0===t?void 0:t.toLowerCase().startsWith("blog"))}))[0])}),[I,f.pathname,N.blogid]);const C=(0,i.I0)(),[P,E]=(0,l.useState)(),[A,L]=(0,l.useState)(!1),D=(0,i.v9)((e=>e.confirmDialog.dialogStatus)),[M,O]=(0,l.useState)({id:"",act:"",data:""});function F(e){if(O((t=>({...t,id:e.id,act:e.act}))),"delete"===e.act)C((0,n.KC)(e.act)),C((0,n.fE)());else if("edit"===e.act){var t;E(null===B||void 0===B||null===(t=B.news)||void 0===t?void 0:t.find((t=>t.id===e.id))),L(!0)}else L(!0)}return(0,l.useEffect)((()=>{!async function(){!0===D&&await T(M.id).unwrap().then((e=>{C((0,n.sh)()),C((0,o.Hz)(null===e||void 0===e?void 0:e.message)),C((0,o.Ug)("delete")),C((0,o.iH)())}))}()}),[D]),(0,_.jsxs)(_.Fragment,{children:[!S&&(0,_.jsx)("div",{className:"attractions__hero",children:(0,_.jsx)("img",{src:x,alt:"Bandipur Map"})}),(0,_.jsx)("div",{className:"blogs container",children:S?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(b.q,{children:[(0,_.jsx)("title",{children:"".concat((null===w||void 0===w?void 0:w.title)||"Bandipur Hill Blog"," | Bandipur Hill")}),(0,_.jsx)("meta",{name:"description",content:H||(null===w||void 0===w?void 0:w.title)||"Read stories and travel inspiration from Bandipur Hill."}),(0,_.jsx)("link",{rel:"canonical",href:"".concat(window.location.origin).concat(f.pathname)}),(0,_.jsx)("meta",{property:"og:title",content:"".concat((null===w||void 0===w?void 0:w.title)||"Bandipur Hill Blog"," | Bandipur Hill")}),(0,_.jsx)("meta",{property:"og:description",content:H||(null===w||void 0===w?void 0:w.title)||"Read stories and travel inspiration from Bandipur Hill."}),(null===w||void 0===w||null===(a=w.newsImages)||void 0===a||null===(j=a[0])||void 0===j?void 0:j.image)&&(0,_.jsx)("meta",{property:"og:image",content:(0,d.Jn)(w.newsImages[0].image,1200)}),(0,_.jsx)("meta",{property:"og:url",content:"".concat(window.location.origin).concat(f.pathname)}),(0,_.jsx)("meta",{property:"og:type",content:"article"})]}),(0,_.jsx)("h1",{className:"title",children:null===w||void 0===w?void 0:w.title}),(0,_.jsx)(h.default,{selected:w,paginatedData:I,setSelected:y})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)("div",{className:"attractions__intro",children:[(0,_.jsx)("span",{className:"attractions__label",children:"Attractions"}),(0,_.jsx)("h2",{className:"attractions__heading",children:"Timeless Attractions Into An Era Of Unhurried Elegance."}),(0,_.jsx)("p",{className:"attractions__subtext",children:"Nestled amidst the majestic hills of Nepal, Bandipur Hills offers a perfect blend of natural beauty, rich cultural heritage, and unforgettable experiences. From scenic cable car rides and panoramic mountain views to adventure activities, local cuisine, and warm hospitality, every moment is designed to inspire exploration, relaxation, and lasting memories."}),(0,_.jsx)("div",{className:"attractions__add-btn",children:(0,_.jsx)(c.Z,{handle:F})})]}),(0,_.jsx)("div",{className:"blogs__cards",children:null===I||void 0===I?void 0:I.map(((e,t)=>{var a;return(0,_.jsxs)("div",{className:"blogs__cards--card",children:[(0,_.jsx)(m.Z,{handle:F,item:e}),(0,_.jsxs)("div",{className:"blog__card",onClick:()=>{window.location.pathname="/blogs/blogdetail/".concat(e.id)},children:[(0,_.jsx)("div",{className:"blog__card--image",children:(0,_.jsx)(p.Z,{src:"".concat(d.xB,"uploads/images/").concat(e.newsImages[0]&&e.newsImages[0].image),alt:e.title})}),(0,_.jsx)("span",{className:"blog__card--overlay-title",children:e.title})]})]},null!==(a=e.id)&&void 0!==a?a:t)}))}),(0,_.jsx)(g.Z,{}),A&&(0,_.jsx)(u.Z,{title:"Item ".concat(M.act),onClose:()=>L(!1),isSpecific:!0,isConfirmation:!0,children:(0,_.jsx)(v.Z,{handle:F,handleAction:M,setHandleAction:O,selectedItem:P,setOpen:L,addEndPoint:Z,editEndPoint:k,type:"Blogs"})})]})})]})}},2756:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var l=a(7313),i=a(4021),s=a(2590),n=a(3989),o=a(6907),r=a(8311),d=a(2135),c=a(6417);const g=e=>{let{className:t,style:a,onClick:l}=e;return(0,c.jsx)("button",{type:"button",className:"".concat(t," blogdetail__related-arrow blogdetail__related-arrow--next"),style:a,onClick:l,"aria-label":"Next related blog",children:(0,c.jsx)("img",{src:r.Z,alt:""})})},m=e=>{let{className:t,style:a,onClick:l}=e;return(0,c.jsx)("button",{type:"button",className:"".concat(t," blogdetail__related-arrow blogdetail__related-arrow--prev"),style:a,onClick:l,"aria-label":"Previous related blog",children:(0,c.jsx)("img",{src:r.Z,alt:""})})},u=e=>{let{selected:t,paginatedData:a}=e;const r=(0,o.default)(),u=(0,o.default)(),v=(0,l.useMemo)((()=>
1{if(null===t||void 0===t||!t.description)return"";const e=(new DOMParser).parseFromString(t.description,"text/html");return e.body.querySelectorAll("h1, h2, h3, h4").forEach((e=>e.remove())),e.body.innerHTML}),[null===t||void 0===t?void 0:t.description]);if((0,l.useEffect)((()=>{window.scrollTo(0,0);const e=document.querySelector(".blogs");return e&&e.classList.add("blogs--detail-active"),()=>{e&&e.classList.remove("blogs--detail-active")}}),[]),!a)return null;var h={dots:!1,infinite:!0,speed:500,slidesToShow:a.length>3?3:Math.max(a.length-1,1),slidesToScroll:3,initialSlide:0,autoplay:!0,autoplaySpeed:1e4,nextArrow:(0,c.jsx)(g,{}),prevArrow:(0,c.jsx)(m,{}),responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0,dots:!1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,initialSlide:1,dots:!1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]};return t&&(0,c.jsxs)("div",{className:"blogcarddetail",children:[(0,c.jsx)("div",{className:"blogdetail__img",children:(0,c.jsx)(n.Z,{src:"".concat(s.xB,"uploads/images/").concat(t.newsImages[0]&&t.newsImages[0].image),alt:t.title||"Bandipur Hills blog",sizes:s.jX.hero,loading:"eager",fetchPriority:"high"})}),(0,c.jsxs)("div",{className:"blogdetail__detail".concat(t.newsImages[1]?"":" blogdetail__detail--no-image"),children:[(0,c.jsxs)("div",{className:"blogdetail__detail--left",children:[(0,c.jsxs)("div",{className:"blogdetail__header",children:[(0,c.jsx)("div",{className:"blogdetail__header--label",ref:u,children:t.title}),(0,c.jsx)("h2",{className:"blogdetail__header--heading",children:t.title})]}),(0,c.jsx)("div",{className:"blog__card--desc",ref:r,dangerouslySetInnerHTML:{__html:v}})]}),t.newsImages[1]&&(0,c.jsx)("div",{className:"blogdetail__detail--image",children:(0,c.jsx)("img",{src:"".concat(s.xB,"uploads/images/").concat(t.newsImages[1].image),alt:"blog detail"})})]}),(0,c.jsxs)("div",{className:"blogdetail__related",children:[(0,c.jsx)("div",{className:"blogdetail__related--title",children:"Related Blogs"}),(0,c.jsx)("div",{className:"blogdetail__related__cards",children:(0,c.jsx)(i.Z,{...h,children:a.filter((e=>e.id!==t.id)).filter((e=>{var t,a;return null===(t=e.newsImages)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.image})).map(((e,t)=>(0,c.jsxs)(d.rU,{className:"blogdetail__related--image",to:"/blogs/blogdetail/".concat(e.id),children:[(0,c.jsx)(n.Z,{src:"".concat(s.xB,"uploads/images/").concat(e.newsImages[0].image),alt:e.title||"Related blog",sizes:s.jX.thumb,maxWidth:640,loading:"lazy"}),(0,c.jsxs)("div",{className:"blogdetail__related--desc",children:[(0,c.jsx)("span",{children:new Date(e.insertedAt).toLocaleDateString()}),(0,c.jsx)("div",{className:"blogdetail__related--title",children:e.title})]})]},t)))})})]})]})}},6907:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var l=a(7313),i=a(3589),s=a(926);i.ZP.registerPlugin(s.i);const n=()=>{const e=(0,l.useRef)(null);return(0,l.useLayoutEffect)((()=>{if(e.current){const t="a, button, .btn, .bordered-btn, [class*='btn'], [class*='button']";if(!e.current.matches(t)&&e.current.closest(t))return void i.ZP.set(e.current,{clearProps:"transform,opacity"});i.ZP.fromTo(e.current,{y:30,opacity:1},{y:0,opacity:1,duration:.3,ease:"power1.out",scrollTrigger:{trigger:e.current,start:"top bottom",end:"bottom center",scrub:1}})}}),[e.current]),e}}}]);

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.