PageSourceSearch

https://www.cannonmt.com/_next/static/chunks/pages/search-c14d3c91e6f9d18c.js

js cannonmt.com collected 2026-10-02 08:36:58 UTC 9,790 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[603],{5243:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/search",function(){return r(5955)}])},916:function(e,t,r){"use strict";var a=r(5893),n=r(5675),s=r.n(n);t.Z=e=>{let{text:t,image:r,video:n}=e,l=n?function(e){let t=e.lastIndexOf("/"),r=e.indexOf("?",t);return -1!==r?e.substring(t+1,r):e.substring(t+1)}(n.iframeSrc):null;return(0,a.jsx)("section",{className:"hero h-[40vh] landscape:h-[75vh] bg-gray-200",children:(0,a.jsxs)("div",{className:"relative overflow-hidden h-full",children:[(0,a.jsxs)("div",{className:"video-docker h-full w-full",children:[(null==r?void 0:r.url)&&(0,a.jsx)(s(),{className:"h-full w-full object-cover",src:r.url||"",alt:(null==r?void 0:r.alt)||r.title,width:r.width||1920,height:r.height||1080,priority:!0,loading:"eager",style:r.focalPoint?{objectPosition:"".concat(100*r.focalPoint[0],"% ").concat(100*r.focalPoint[1],"%")}:{}},r.uid),!!(null==n?void 0:n.iframeSrc)&&(0,a.jsx)("div",{id:"video",className:"hidden lg:block",children:(0,a.jsx)("iframe",{src:n.iframeSrc+"playlist=".concat(l,"&loop=1&playsinline=1&autoplay=1&mute=1&controls=0&enablejsapi=0&iv_load_policy=3"),width:1920,height:1080,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"pointer-events-none w-full h-full object-cover"})})]}),(0,a.jsx)("div",{className:"video-content space-y-2 z-10 max-w-[350px] md:max-w-[575px] lg:max-w-[750px] xl:max-w-[950px] absolute left-4 bottom-4",children:(0,a.jsx)("h1",{className:"mr-20 text-balance",children:t})})]})})}},7959:function(e,t,r){"use strict";r.d(t,{Bw:function(){return x},DI:function(){return u},Ph:function(){return c},Ql:function(){return g},i4:function(){return p},ki:function(){return f}});var a=r(5893),n=r(7294),s=r(1501),l=r(6490),i=r(4098),o=r(3785),d=r(1758);let c=s.fC,u=s.ZA,f=s.B4,p=n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(s.xz,{ref:t,className:(0,d.cn)("flex h-10 w-full items-center rounded-md border border-input bg-[#EEEEEE] italic text-md ring-offset-gray-200 placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),...i,children:[(0,a.jsx)(s.JO,{asChild:!0,children:(0,a.jsx)(l.Z,{className:"h-full w-10 mr-2 bg-backgroundSecondary stroke-white rounded-l stroke-1"})}),n]})});p.displayName=s.xz.displayName;let m=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.u_,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(i.Z,{className:"h-4 w-4"})})});m.displayName=s.u_.displayName;let h=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.$G,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(l.Z,{className:"h-4 w-4"})})});h.displayName=s.$G.displayName;let x=n.forwardRef((e,t)=>{let{className:r,children:n,position:l="popper",...i}=e;return(0,a.jsx)(s.h_,{children:(0,a.jsxs)(s.VY,{ref:t,className:(0,d.cn)("relative z-40 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:l,...i,children:[(0,a.jsx)(m,{}),(0,a.jsx)(s.l_,{className:(0,d.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(h,{})]})})});x.displayName=s.VY.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.__,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-md font-semibold",r),...n})}).displayName=s.__.displayName;let g=n.forwardRef((e,t)=>
1{let{className:r,children:n,...l}=e;return(0,a.jsxs)(s.ck,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-md outline-none bg-white focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(o.Z,{className:"h-4 w-4"})})}),(0,a.jsx)(s.eT,{children:n})]})});g.displayName=s.ck.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Z0,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=s.Z0.displayName},3446:function(e,t,r){"use strict";r.d(t,{a:function(){return c}});var a=r(5893),n=r(7294),s=r(9645),l=r(4002),i=r(8828),o=r(359),d=r(1758);let c=e=>{let{children:t,className:r}=e,c=(0,n.useRef)(null),{scrollYProgress:u}=(0,s.v)({target:c,offset:["start start","end start"]}),f=(0,n.useRef)(null),[p,m]=(0,n.useState)(0);(0,n.useEffect)(()=>{f.current&&m(f.current.offsetHeight)},[]);let h=(0,l.q)((0,i.H)(u,[0,.8],[50,p]),{stiffness:500,damping:90}),x=(0,l.q)((0,i.H)(u,[0,1],[50,p-200]),{stiffness:500,damping:90});return(0,a.jsxs)(o.E.div,{ref:c,className:(0,d.cn)("relative w-full max-w-4xl mx-auto h-full px-6",r),children:[(0,a.jsxs)("div",{className:"absolute -left-4 md:-left-20 top-3 pt-24",children:[(0,a.jsx)(o.E.div,{transition:{duration:.2,delay:.5},animate:{boxShadow:u.get()>0?"none":"rgba(0, 0, 0, 0.24) 0px 3px 8px"},className:"ml-[27px] h-4 w-4 rounded-full border border-netural-200 shadow-sm flex items-center justify-center",children:(0,a.jsx)(o.E.div,{transition:{duration:.2,delay:.5},animate:{backgroundColor:"white",borderColor:"white"},className:"h-2 w-2  rounded-full border border-neutral-300 bg-white"})}),(0,a.jsxs)("svg",{viewBox:"0 0 20 ".concat(p),width:"20",height:p,className:" ml-4 block","aria-hidden":"true",children:[(0,a.jsx)(o.E.path,{d:"M 1 0V -36 l 18 24 V ".concat(.8*p," l -18 24V ").concat(p),fill:"none",stroke:"hsl(358 70% 42%)",strokeOpacity:"0.16",transition:{duration:10}}),(0,a.jsx)(o.E.path,{d:"M 1 0V -36 l 18 24 V ".concat(.8*p," l -18 24V ").concat(p),fill:"none",stroke:"url(#gradient)",strokeWidth:"1.25",className:"motion-reduce:hidden",transition:{duration:10}}),(0,a.jsx)("defs",{children:(0,a.jsxs)(o.E.linearGradient,{id:"gradient",gradientUnits:"userSpaceOnUse",x1:"0",x2:"0",y1:h,y2:x,children:[(0,a.jsx)("stop",{stopColor:"hsl(358 70% 42%)",stopOpacity:"0"}),(0,a.jsx)("stop",{stopColor:"hsl(358 70% 42%)"}),(0,a.jsx)("stop",{offset:"0.325",stopColor:"hsl(358 70% 42%)"}),(0,a.jsx)("stop",{offset:"1",stopColor:"hsl(345 6% 13%)",stopOpacity:"0"})]})})]})]}),(0,a.jsx)("div",{className:"",ref:f,children:t})]})}},5955:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return g},default:function(){return j}});var a=r(5893),n=r(7294),s=r(4104),l=r(2729),i=r(1664),o=r.n(i),d=r(9332),c=r(8687),u=r(3446),f=r(8796),p=r(7421);function m(){let e=(0,l._)(['\n						{\n							entries(search: "','", orderBy: "score", section: "*") {\n								title\n								uri\n								enabled\n							}\n							categories {\n    							... on articleCategory_Category {\n    							  slug\n								  enabled\n    							}\n  							}\n							trailsLiftsEntries {\n								... on trailReportPage_Entry {\n								uri\n								}\n							}\n						}\n					']);return m=function(){return e},e}var h=()=>{let[e,t]=(0,n.useState)(!0),r=(0,d.useSearchParams)(),[s,l]=(0,n.use
1State)(),i=r.get("query");return(0,n.useEffect)(()=>{let e=new c.GraphQLClient("".concat("https://admin.cannonmt.com/","api"),{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("I8nAMC5fwlvKjElg0-6_cPWzv1pu8mqX")},method:"POST"}),r=async()=>{try{let r=await e.request((0,c.gql)(m(),i)),a=r.entries.filter(e=>"__home__"!==e.uri).map(e=>{var t;return(null===(t=e.uri)||void 0===t?void 0:t.includes("lodging"))?{...e,uri:"lodging#"+(0,p.D4)(e.title)}:e}).map(e=>{var t;let a=null===(t=r.categories)||void 0===t?void 0:t.find(t=>{var r;return null===(r=e.uri)||void 0===r?void 0:r.includes(t.slug)});return(null==a?void 0:a.slug)&&!a.enabled?null:(null==a?void 0:a.slug)?{...e,uri:e.uri.replace(a.slug,"articles")}:e});l(a),t(!1)}catch(e){t(!1),console.error("Error fetching data:",e)}};i&&r()},[i]),(0,a.jsxs)("main",{className:"mb-40 dark:text-white dark:bg-slate-700 cont-page",children:[(0,a.jsx)(f.Z,{setLoading:t,loading:e}),(0,a.jsx)("div",{className:"pt-4 antialiased ",children:e?(0,a.jsx)("div",{className:"cont-page",children:"Fetching results.."}):(null==s?void 0:s.length)?(0,a.jsxs)(u.a,{className:"pl-12 lg:pl-0",children:[(0,a.jsxs)("p",{children:["Results for: ",i]}),null==s?void 0:s.filter(e=>e.uri&&e.enabled).map(e=>(0,a.jsx)(o(),{href:"/".concat(e.uri),className:"hover:text-background ",children:(0,a.jsx)("h2",{className:"text-2xl font-bold mb-2 leading-7 md:pl-10 xs:pl-10 border-b-2 mx-auto border-gray-400 rounded-lg md:p-4 sm:py-3 py-4 px-2 m-10",children:e.title})},e.uri))]}):(0,a.jsx)("div",{className:"cont-page",children:"No Results"})})]})};function x(e){let{searchParams:t}=e,r=(null==t?void 0:t.query)||"";return null==t||t.page,(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"my-16 text-center",children:"CANNON MOUNTAIN"}),(0,a.jsx)(h,{searchQuery:r})]})}x.getLayout=function(e){let t=e.props;return(0,a.jsx)(s.Z,{pageProps:t,children:e})};var g=!0,j=x}},function(e){e.O(0,[771,160,776,139,292,104,421,888,774,179],function(){return e(e.s=5243)}),_N_E=e.O()}]);

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.