PageSourceSearch

https://sawback.com/_next/static/chunks/app/(regular)/contact/page-c91f44dba883111a.js

js sawback.com collected 2026-10-08 08:35:10 UTC 15,083 bytes, 17 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4918c572-affb-45a3-9648-0aebb760e17e",e._sentryDebugIdIdentifier="sentry-dbid-4918c572-affb-45a3-9648-0aebb760e17e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8233],{2366:(e,t,s)=>{"use strict";s.d(t,{CaptchaProvider:()=>r});var a=s(54568);s(7620);var l=s(66081);let n="6Lee1NQrAAAAAP3bJmMW6fy6OXcKvWycqlrHPeCK";if(!n)throw Error("No ReCaptcha key found");let r=({children:e})=>(0,a.jsx)(l.G3,{reCaptchaKey:n,scriptProps:{async:!0,defer:!0,appendTo:"head"},children:e})},10771:(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});var a=s(54568),l=s(7620),n=s(42584),r=s(35975);let i=({name:e,...t})=>{let{control:s}=(0,n.xW)(),{field:i,fieldState:o}=(0,n.as)({name:e,control:s}),c=(0,l.useCallback)(e=>{let s=(()=>{switch(t.type){case"number":return e.target.valueAsNumber;case"date":return e.target.valueAsDate;default:return e.target.value}})();i.onChange(s)},[t.type,i.onChange]);return(0,a.jsx)(r.p,{...t,...i,onChange:c,value:i.value??"",error:o.error?.message})}},20524:(e,t,s)=>{Promise.resolve().then(s.bind(s,82881)),Promise.resolve().then(s.t.bind(s,35604,23))},24809:(e,t,s)=>{"use strict";s.d(t,{P3:()=>l,Pz:()=>i,i6:()=>n,qC:()=>r});var a=s(36156);let l=(0,a.U)(`
2  mutation SendSubscription($email: String!, $token: String, $honeypot: String, $turnstileToken: String) {
3    sendSubscription(email: $email, token: $token, honeypot: $honeypot, turnstileToken: $turnstileToken)
4  }
5`),n=(0,a.U)(`
6  mutation SendCustomTrip($data: CustomTripRequestInput!) {
7    sendCustomTrip(data: $data)
8  }
9`),r=(0,a.U)(`
10  mutation SendQuestion($data: CustomTripRequestInput!) {
11    sendQuestion(data: $data)
12  }
13`),i=(0,a.U)(`
14  mutation SendBooking($data: BookingRequestInput!) {
15    sendBooking(data: $data)
16  }
17`)},26265:(e,t,s)=>{"use strict";s.d(t,{K:()=>o});var a=s(54568),l=s(65587),n=s.n(l),r=s(9917),i=s(41201);let o=({style:e})=>(0,a.jsx)(n(),{"aria-label":"Go to associated Instagram page",href:"https://www.instagram.com/sawbackalpine/",className:(0,r.A)("flex h-10 w-10 items-center justify-center rounded-full",{"bg-sb-blue":"blue"===e,"bg-white":"white"===e}),children:(0,a.jsx)(i.SXG,{className:(0,r.A)("h-7 w-7",{"text-white":"blue"===e,"text-[#1F3F59]":"white"===e})})})},33490:(e,t,s)=>{"use strict";s.d(t,{l:()=>o});var a=s(54568),l=s(50063),n=s(7620),r=s(42584),i=s(64318);let o=({defaultValues:e,onSubmit:t,children:s,validationSchema:o,className:c})=>{let d=(0,r.mN)({mode:"onTouched",reValidateMode:"onChange",defaultValues:e,resolver:o?(0,l.u)(o):void 0}),u=(0,n.useCallback)(async e=>{await t(e),d.reset()},[t,d]);return(0,a.jsx)(r.Op,{...d,children:(0,a.jsx)("form",{className:(0,i.cn)(c,{"pointer-events-none":d.formState.isLoading}),onSubmit:d.handleSubmit(u),children:"function"==typeof s?s(d.watch()):s})})}},35975:(e,t,s)=>{"use strict";s.d(t,{p:()=>c});var a=s(54568),l=s(9917),n=s(7620),r=s(46873),i=s(59559),o=s(98480);let c=n.forwardRef(({className:e,label:t,search:s,onSubmit:n,required:c,sendButton:d,error:u,...m},h)=>(0,a.jsxs)("label",{className:"w-full",children:[(0,a.jsxs)("span",{className:"text-sm font-medium flex gap-4",children:[(0,a.jsxs)("span",{children:[t,c&&(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),u&&(0,a.jsx)("p",{className:"text-sm text-rose-500",children:u})]}),(0,a.jsxs)("div",{className:"relative self-center",children:[s&&(0,a.jsx)("span",{className:"absolute h-[20px] w-[20px] left-3 top-[30px] transform -translate-y-1/2",children:(0,a.jsx)(r.zfp,{className:"text-black w-full h-full"})}),d&&(0,a.jsx)(o.$,{option:"rounded-sm",type:"submit",className:"absolute! p-4 w-[50px] h-[50px] bg-sb-blue! hover:bg-sb-dark-blue! rounded-full right-2 top-1/2 transform -translate-y-1/2",onClick:n,children:(0,a.jsx)(i.PSw,{className:"text-white self-center"})}),(0,a.jsx)("input",{className:(0,l.$)("p-4 bg-white text-black w-full outline-hidden focus:ring-offset-0 shadow-inner-full focus:border-sb-link-blue rounded-xl focus:shadow-sb-blue/50 placeholder:font-normal placeholder:text-lg",s&&"pl-10 py-[19px]",d&&"pr-16 rounded-full!",u&&"shadow-rose-500!",e),ref:h,...m})]})]}));c.displayName="Input"},36156:(e,t,s)=>{"use strict";s.d(t,{U:()=>a});let a=(0,s(86324).Se)()},45363:(e,t,s)=>{"use strict";s.d(t,{QuestionForm:()=>S,J:()=>A});var a=s(54568),l=s(15881),n=s(2886),r=s(1256),i=s(9917),o=s(65587),c=s.n(o),d=s(79748),u=s(7620),m=s(66081),h=s(66888),x=s(2366),p=s(24809),f=s(64318),b=s(71828),g=s(10771),w=s(33490),j=s(42584);let v=u.forwardRef(({className:e,label:t,required:s,error:l,...n},r)=>(0,a.jsxs)("label",{className:"w-full",children:[(0,a.jsxs)("span",{className:"text-sm font-medium flex gap-4",children:[(0,a.jsxs)("span",{children:[t,s&&(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),l&&(0,a.jsx)("p",{className:"text-sm text-rose-500",children:l})]}),(0,a.jsx)("textarea",{className:(0,f.cn)("flex min-h-[80px] resize-none p-4 bg-white w-full outline-hidden focu
17s:ring-offset-0 shadow-inner-full focus:border-sb-link-blue rounded-xl focus:shadow-sb-blue/50 placeholder:font-normal",l&&"shadow-rose-500!",e),ref:r,...n})]}));v.displayName="Textarea";let y=({name:e,maxLength:t,className:s,...l})=>{let{control:n}=(0,j.xW)(),{field:r,fieldState:i}=(0,j.as)({name:e,control:n});return(0,a.jsx)(v,{...l,...r,value:r.value??"",error:i.error?.message,maxLength:t,className:s})};var C=s(98480);let N=({className:e,children:t})=>{let{disabled:s,isValid:l,isSubmitting:n}=(0,j.lN)();return(0,a.jsx)(C.$,{type:"submit",className:e,disabled:!l||s||n,children:t})},k={},A=({small:e,customTrip:t})=>{let s=(0,d.usePathname)(),[o]=(0,l.n)(p.qC),[x]=(0,l.n)(p.i6),{executeRecaptcha:j}=(0,m._Y)(),[v,C]=(0,u.useState)(""),A=(0,u.useRef)(null),[S,_]=(0,u.useState)(),I=(0,u.useCallback)(e=>{C(e.target.value)},[]),R=(0,u.useCallback)(async e=>{try{if(!(e.name&&e.email&&e.message))return void h.o.error("Validation error");let a=await (()=>{if(j)return j("question_form_submit")})(),l={...e,token:a,turnstileToken:S,honeypot:v};t?await x({variables:{data:l}}):await o({variables:{data:{...l,url:`https://sawback.com${s}`}}}),(0,r.sendGTMEvent)({event:"contact_us_form_submit",user_phone:e.phone,user_email:e.email,user_first_name:e.name.split(" ").at(0),user_last_name:e.name.split(" ").at(-1),form_page:s.split("/").at(-1)}),h.o.success("Your message has been sent successfully!")}catch(e){e instanceof Error&&(0,f.h)(e.message,{title:"Booking Request",name:e.name,stack:e.stack??"unknown"}),h.o.error("Oops! Something went wrong. Please try again later.")}finally{A.current?.reset(),_(void 0)}},[j,o,s,x,t,v,S]);return(0,a.jsxs)(w.l,{className:(0,i.A)("flex flex-col items-center justify-center gap-4 w-full mx-auto scroll-mt-25",{"max-w-125 grow":e}),defaultValues:k,onSubmit:R,validationSchema:b.g,children:[(0,a.jsx)("input",{name:"website",type:"text",tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{position:"absolute",left:"-9999px",opacity:0},onChange:I}),(0,a.jsx)(g.Z,{required:!0,label:"Name",placeholder:"Your name",name:"name"}),(0,a.jsx)(g.Z,{required:!0,label:"Email",placeholder:"Your email",name:"email"}),(0,a.jsx)(g.Z,{label:"Phone",placeholder:"Your phone",name:"phone"}),(0,a.jsx)(y,{required:!0,label:"Message",placeholder:"Your message",name:"message"}),(0,a.jsxs)("p",{className:"self-start text-gray-400 text-xs",children:["This site is protected by reCAPTCHA and the Google ",(0,a.jsx)(c(),{href:"https://policies.google.com/privacy",className:"text-blue-300",children:"Privacy Policy"})," and ",(0,a.jsx)(c(),{href:"https://policies.google.com/terms",className:"text-blue-300",children:"Terms of Service"})," apply."]}),(0,a.jsx)(n.Xs,{ref:A,siteKey:"0x4AAAAAACu7-2T1t5UL2x5V",onSuccess:_,options:{size:"invisible"}}),(0,a.jsx)(N,{className:e?"w-full":"w-75 self-start",children:"Send"})]})},S=e=>(0,a.jsx)(x.CaptchaProvider,{children:(0,a.jsx)(A,{...e})})},64318:(e,t,s)=>{"use strict";s.d(t,{cn:()=>r,h:()=>i});var a=s(67898),l=s(9917),n=s(2809);function r(...e){return(0,n.QP)((0,l.$)(e))}let i=(e,t)=>{(0,a.r)({message:e,extra:t,tags:{url:window.location.href}})}},71828:(e,t,s)=>{"use strict";s.d(t,{R:()=>r,g:()=>n});var a=s(3638);let l=a.Rp("Invalid email").nonempty("Required field is not filled"),n=a.Ik({name:a.Yj("Required").nonempty("Required field is not filled"),email:l,message:a.Yj("Required").nonempty("Required field is not filled"),phone:a.Yj().nullish()}),r=a.Ik({email:l})},82881:(e,t,s)=>{"use strict";s.d(t,{ContactsContainer:()=>w});var a=s(54568),l=s(15881),n=s(1256),r=s(9917),i=s(82175),o=s(65587),c=s.n(o),d=s(7620),u=s(66888);let m={src:"/_next/static/media/contact-us-news.de3a3892.webp",height:800,width:1200,blurDataURL:"data:image/webp;base64,UklGRk4AAABXRUJQVlA4IEIAAACwAQCdASoIAAUAAkA4JQBOgB5vWYwAAP61afBaRZsiR9/CQ2fsKx3mGsREDBuD+Tpb/fAUjLl0KxI7NcW+81wAAAA=",blurWidth:8,blurHeight:5};var h=s(24809),x=s(83713),p=s(26265),f=s(45363),b=s(35975);let g=[{icon:"/img/Contact/phone-icon.svg",info:"+1\xa0(778) 739-9996",href:"tel:+17787399996"},{icon:"/img/Contact/fax.svg",info:"Fax:\xa0+1 (587) 883-8095",href:null},{icon:"/img/Contact/email-icon.svg",info:"[email protected]",href:"mailto:[email protected]"},{icon:"/img/Contact/location-icon.svg",info:"234 Grizzly Cr Canmore, AB Canada T1W 1B5",href:"https://maps.app.goo.gl/vHzXpaCBZzZKvBBn9"}],w=()=>{let[e,t]=(0,d.useState)(""),[s,{loading:o}]=(0,l.n)(h.P3),w=(0,d.useCallback)(async()=>{try{if(!e.trim().length)return void u.o.error("Invalid email");await s({variables:{email:e}}),(0,n.sendGTMEvent)({event:"newsletter-sign-up",email:e}
17),t(""),u.o.success("Thank you for subscribing!")}catch{u.o.error("Oops! Something went wrong. Please try again later.")}},[s,e]),j=(0,d.useCallback)(({target:e})=>{t(e.value)},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{className:"container col-span-3 grid h-fit justify-center gap-6 px-4 py-10 lg:grid-cols-2 lg:px-[120px] lg:py-20",children:[(0,a.jsxs)("div",{className:"relative h-full w-full text-white max-sm:h-[411px] max-lg:h-[550px]",children:[(0,a.jsxs)("nav",{className:"flex h-full flex-col justify-between p-4 lg:py-10 lg:pl-10",children:[(0,a.jsx)("h2",{className:"font-semibold text-2xl lg:text-4xl",children:"Contact Information"}),(0,a.jsx)("ul",{className:"flex list-none flex-col gap-6",children:g.map(({info:e,icon:t,href:s},l)=>s?(0,a.jsxs)(c(),{className:"flex gap-4 min-[1200px]:whitespace-nowrap",href:s,target:"_blank",rel:"noreferrer",children:[(0,a.jsx)(i.default,{width:24,height:24,src:t,alt:"Icon"}),(0,a.jsx)("p",{className:(0,r.A)({"w-[40%] xl:w-[30%]":g.length-1===l}),children:e})]},e):(0,a.jsxs)("p",{className:"flex gap-4",children:[(0,a.jsx)(i.default,{width:24,height:24,src:t,alt:"Icon"}),(0,a.jsx)("span",{className:(0,r.A)({"w-[40%] xl:w-[30%]":g.length-1===l}),children:e})]},e))}),(0,a.jsxs)("div",{className:"flex gap-8",children:[(0,a.jsx)(x.q,{style:"white"}),(0,a.jsx)(p.K,{style:"white"})]})]}),(0,a.jsx)(i.default,{fill:!0,alt:"Contact Info",src:"/img/Contact/phone.webp",className:"-z-10 rounded-[10px] object-cover object-[25%_100%] brightness-40",sizes:"100%",priority:!0})]}),(0,a.jsxs)("div",{className:"flex max-w-[600px] flex-col items-center justify-center gap-4 p-6",children:[(0,a.jsx)("h3",{className:"mb-6 text-left font-semibold text-4xl text-black",children:"Any question or remarks? Just write us a message!"}),(0,a.jsx)(f.QuestionForm,{})]})]}),(0,a.jsxs)("section",{className:"relative mx-4 my-10 h-[400px] lg:mx-[120px]",children:[(0,a.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-12 text-white",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 text-center",children:[(0,a.jsx)("h2",{className:"font-semibold text-[40px]/[40px]",children:"Sign up to our newsletter"}),(0,a.jsx)("h3",{className:"w-[80%] self-center font-medium text-xl",children:"Receive latest news, update, and many other things every week. "})]}),(0,a.jsx)("div",{className:"w-[90%] md:w-[60%] xl:w-[45%] 2xl:w-[30%]",children:(0,a.jsx)(b.p,{placeholder:"[email protected]",name:"email",type:"email",value:e,onChange:j,onSubmit:w,disabled:o,sendButton:!0})})]}),(0,a.jsx)(i.default,{src:m,alt:"Sign up for information",fill:!0,quality:80,className:"-z-10 rounded-3xl object-cover brightness-50"})]})]})}},83713:(e,t,s)=>{"use strict";s.d(t,{q:()=>o});var a=s(54568),l=s(65587),n=s.n(l),r=s(82826),i=s(9917);let o=({style:e})=>(0,a.jsx)(n(),{"aria-label":"Go to associated Facebook page",href:"https://www.facebook.com/sawbackalpine/",children:(0,a.jsx)(r.iYk,{className:(0,i.A)("h-10 w-10",{"text-sb-blue":"blue"===e,"text-white":"white"===e})})})},98480:(e,t,s)=>{"use strict";s.d(t,{$:()=>r});var a=s(54568),l=s(9917);s(7620);let n=({className:e})=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("svg",{"aria-hidden":!0,className:(0,l.A)("w-8 h-8 text-white animate-spin fill-primary",e),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
171071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,a.jsx)("span",{className:"sr-only",children:"Loading..."})]}),r=({type:e="button",className:t,children:s,loading:r,disabled:i,onClick:o,option:c="default"})=>{let d=(0,l.A)("duration-200 ease-in rounded-full relative disabled:bg-neutral-500 disabled:text-white disabled:pointer-events-none text-nowrap justify-center flex gap-3",{"bg-white border-2 border-sb-blue text-sb-blue hover:bg-sb-blue! hover:text-white! py-3 px-10 text-lg font-medium":"outline"===c,"bg-sb-blue text-white hover:bg-sb-dark-blue disabled:bg-sb-light-blue disabled:text-sb-white-grey text-lg py-5 px-6 leading-[18px]":"default"===c,"py-3 px-8 text-lg font-medium rounded-lg":"filter"===c,"p-4 rounded-full bg-white text-sb-blue hover:text-white hover:bg-sb-blue":"rounded-sm"===c},t);return(0,a.jsx)("button",{type:e,"aria-label":e,className:d,onClick:o,disabled:r||i,children:r?(0,a.jsx)(n,{}):s})}}},e=>{e.O(0,[2734,4805,845,4046,5587,5604,2232,6899,9482,587,6359,7358],()=>e(e.s=20524)),_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.