PageSourceSearch

https://www.giftofchoice.ca/ca598798adabb69cd6ac8d59877b8cd060bf18dc-13301a95a744db333f4a.js

js giftofchoice.ca collected 2026-10-07 13:10:26 UTC 18,071 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgift_of_choice=self.webpackChunkgift_of_choice||[]).push([[778],{18183:function(e,t,i){i.d(t,{A:function(){return M}});var n=i(96540),a=i(37652),r=i(13760),o=i(67268),l=i(6228),s=i(6615),d=i(66636),m=i(48232),c=i(7957),h=i(5124),g=i(20975),p=i(57227),u=i(54472),f=i(4738);const x=u.default.div.withConfig({displayName:"styles__ModalBackground",componentId:"sc-kutsm5-0"})(["position:fixed;width:100vw;height:100vh;top:0;left:-200vw;padding:2rem 0;display:flex;opacity:0;overflow:auto;visibility:hidden;z-index:",";pointer-events:none;background-color:rgba(0,0,0,0.5);transition:opacity 250ms ease-out,left 0ms linear 225ms,visibility 0ms linear 225ms;&.is-active{left:0;opacity:1;visibility:visible;pointer-events:all;transition-delay:0ms,0ms,0ms;}"],(0,p.y)("layers.modal")),y=u.default.div.withConfig({displayName:"styles__ModalContainer",componentId:"sc-kutsm5-1"})(["width:",";max-width:95%;margin:auto;padding:5rem 3rem 3rem;overflow:hidden;z-index:",";opacity:0;border-radius:0.75rem;box-shadow:0 1rem 3rem rgba(0,0,0,0.3);text-align:center;background:",";transform:translateY(-2rem);transition:opacity 200ms ease-out 50ms,transform 200ms ease-out 50ms;@media (max-width:","){padding:4.5rem 2rem 2rem;}@media (max-width:","){padding:4rem 1rem 1.5rem;}&.is-active{opacity:1;transform:translateY(0);}"],(0,f.A)(700),(0,p.y)("layers.modal")+1,(e=>{let{themes:t}=e;return"dark"===t?(0,p.y)("colors.grey-dark"):"#F7F7F7"}),(0,p.y)("breakpoints.md"),(0,p.y)("breakpoints.xs")),w=u.default.button.withConfig({displayName:"styles__ModalClose",componentId:"sc-kutsm5-2"})(["position:absolute;top:1.5rem;right:1.5rem;background:transparent;border:0;appearance:none;cursor:pointer;span{color:",";font-size:1rem;font-weight:",";position:relative;}div{stroke:",";stroke-width:2px;border:none;width:1rem;height:1rem;float:right;margin-left:0.5rem;position:relative;}"],(e=>{let{themes:t}=e;return"dark"===t?(0,p.y)("colors.white"):(0,p.y)("colors.black")}),(0,p.y)("fontWeights.medium"),(e=>{let{themes:t}=e;return"dark"===t?(0,p.y)("colors.white"):(0,p.y)("colors.black")})),k=u.default.div.withConfig({displayName:"styles__Title",componentId:"sc-kutsm5-3"})(["position:relative;h1,h2,h3{font-size:3rem;font-weight:",";margin:0 auto 1.5rem;text-align:",";width:100%;color:",";z-index:1;@media (max-width:","){font-size:2rem;}}p{font-size:2rem;text-align:",";font-weight:",";color:",";}"],(0,p.y)("fontWeights.bold"),(e=>{let{textAlign:t}=e;return null!=t?t:"center"}),(e=>{let{themes:t}=e;return"dark"===t?(0,p.y)("colors.white"):(0,p.y)("colors.black")}),(0,p.y)("breakpoints.md"),(e=>{let{textAlign:t}=e;return null!=t?t:"center"}),(0,p.y)("fontWeights.bold"),(e=>{let{themes:t}=e;return"dark"===t?(0,p.y)("colors.white"):(0,p.y)("colors.black")})),b=u.default.div.withConfig({displayName:"styles__Description",componentId:"sc-kutsm5-4"})(["position:relative;p{font-size:1rem;text-align:",";color:",";z-index:1;@media (max-width:","){font-size:0.875rem;width:100%;}}ul,li{text-align:left;color:",";}small{font-size:0.8em;}"],(e=>{let{textAlign:t}=e;return null!=t?t:"center"}),(e=>{let{themes:t}=e;return"dark"===t?(0,p.y)("colors.white"):(0,p.y)("colors.black")}),(0,p.y)("breakpoints.sm"),(e=>{let{themes:t}=e;return"dark"===t?(0,p.y)("colors.white"):(0,p.y)("colors.black")})),v=u.default.div.withConfig({displayName:"styles__WrapperCtas",componentId:"sc-kutsm5-5"})(["position:relative;width:100%;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;z-index:1;a,button{margin-left:1rem;margin-right:1rem;}"]);u.default.div.withConfig({displayName:"styles__Overlay",componentId:"sc-kutsm5-6"})(["position:fixed;overflow:hidden;background-color:rgba(0,0,0,0);width:100vw;height:102vh;top:0;left:0;right:0;margin-top:-2rem;visibility:hidden;transition:visibility 1s,background-color 1s linear;z-index:1;@media (max-width:","){margin:0 auto;height:100vh;}&.hide{background-color:rgba(0,0,0,0);visibility:hidden;transition:visibility 0.7s,background-color 0.7s linear;}&.show{background-color:rgba(0,0,0,0.5);visibility:visible;transition:visibility 0.7s,background-color 0.7s linear;}&.fixed{margin:0 auto;height:100vh;}"],(0,p.y)("breakpoints.md")),u.default.div.withConfig({displayName:"styles__FlyoutContainer",componentId:"sc-kutsm5-7"})(["width:calc(((100% - 65em) / 2) + 24rem);min-width:24rem;padding:0 5rem;height:102vh;background-color:",";position:fixed;top:0;right:-51vw;margin-top:-2rem;transition:transform 0.5s cubic-bezier(0,0.52,0,1);overflow:auto;z-index:2;box-shadow:0 0 3em rgba(0,0,0,0.4);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;@media screen and (max-width:1200px){width:75vw;right:-80vw;}@media (max-width:","){margin:0 auto;height:100vh;padding:0;width:100%;padding:0 3rem;right:-105vw;align-items:flex-start;}@media (max-width:","){right:-120%;padding:0 2rem;min-width:100%;}&.hide{transform:translate3d(0vw,0,0);transition:transform 0.5s cubic-bezier(0,0.52,0,1);}&.show{transform:translate3d(-51vw,0,0);overflow:auto;@media screen and (max-width:1200px){transform:translate3d(-80vw,0,0);}@media screen and (max-width:768px){transform:translate3d(-105vw,0,0);}@media (max-width:","){transform:translate3d(-120%,0,0);}}&.fixed{margin:0 auto;height:100vh;}"],(0,p.y)("colors.grey-dark"),(0,p.y)("breakpoints.md"),(0,p.y)("breakpoints.xxs"),(0,p.y)("breakpoints.xxs")),u.default.div.withConfig({displayName:"styles__FlyoutWrapper",componentId:"sc-kutsm5-8"})(["display:flex;width:100%;align-self:flex-start;margin-top:10rem;@media (max-width:","){display:table;overflow:auto;margin:7rem auto 0;}"],(0,p.y)("breakpoints.md")),u.default.div.withConfig({displayName:"styles__FlyoutContent",componentId:"sc-kutsm5-9"})(["display:table;max-width:",";width:100%;align-self:center;margin:0 auto;a{float:left;clear:both;text-decoration:none;font-weight:",";line-height:1.8rem;color:",";border-bottom:none;transition:all 400ms ease;@media (max-width:","){font-size:0.875rem;line-height:1.5rem;}&:hover{color:",";transition:all 400ms ease;}}hr{width:100%;float:left;clear:both;margin:1.45rem 0;}"],(0,f.A)(800),(0,p.y)("fontWeights.semiBold"),(0,p.y)("colors.white"),(0,p.y)("breakpoints.md"),(0,p.y)("colors.phoenix-red")),u.default.div.withConfig({displayName:"styles__Legend",componentId:"sc-kutsm5-10"})(["display:table;width:100%;margin:0 auto;a{font-size:2rem;font-weight:",";line-height:3rem;@media (max-width:","){font-size:1.6rem;line-height:2.5rem;}@media (max-width:","){font-size:1.4rem;}}"],(0,p.y)("fontWeights.bold"),(0,p.y)("breakpoints.md"),(0,p.y)("breakpoints.xxs"));var C=i(74848);const j=e=>{let{active:t,onClose:i,elementRef:a,data:{closeButtonLabel:r,content:o},themes:d,onCtaClick:p}=e;const{0:u,1:f}
1=(0,n.useState)(null),j=(0,n.useCallback)((e=>{if("undefined"!=typeof document){f(e?null:document.documentElement.style.overflow);const t=e?u:"hidden";document.documentElement.style.overflow=t}}),[u]);return(0,n.useEffect)((()=>(j(!t),()=>j(!0))),[t,j]),(0,C.jsx)(h.A,{children:(0,C.jsx)(m.Ay,{disabled:!t,returnFocus:!0,children:(0,C.jsx)(x,{className:t?"is-active":"",onClick:i,children:(0,C.jsxs)(y,{className:t?"is-active":"",onClick:c.L,themes:d,children:[(0,C.jsxs)(w,{themes:d,onClick:()=>{i(),a.current&&setTimeout((()=>{a.current.focus()}),20)},onKeyDown:e=>{"Enter"!==e.key&&"Escape"!==e.key||(i(),a.current&&setTimeout((()=>{a.current.focus()}),20))},children:[(0,C.jsx)("span",{children:r}),(0,C.jsx)("div",{children:(0,C.jsx)("svg",{viewBox:"0 0 10 10",children:(0,C.jsx)("path",{d:"M0,0 L10,10 M10,0 L0,10"})})})]}),o&&o.map((e=>{let{id:t,headingRTF:i,paragraphRTF:a,ctaLinks:r,heading:o,bodyCopy:m}=e;return(0,C.jsxs)(n.Fragment,{children:[(i||o)&&(0,C.jsx)(k,{textAlign:o?"left":"center",themes:d,children:(0,C.jsx)(g.Ay,{document:null!=i?i:o})}),(a||m)&&(0,C.jsx)(b,{textAlign:m?"left":"center",themes:d,children:(0,C.jsx)(g.Ay,{document:null!=a?a:m})}),(0,C.jsx)(v,{children:r&&r.filter((e=>{let{linkUrlMarkdown:t}=e;return t})).map((e=>{const{linkType:t,style:i,linkUrlMarkdown:n,linkTextMarkdown:a,linkText:r,ariaLabel:o,id:m}=e,c=r||a.linkTextMarkdown,h=()=>p(c);return"Button"===t||"button"===t?(0,C.jsx)(l.A,{contentId:m,variant:i,url:n.linkUrlMarkdown,ariaLabel:o,onClick:h,children:c},m):"Text-Link"===t?(0,C.jsx)(s.A,{contentId:m,variant:i,url:n.linkUrlMarkdown,ariaLabel:o,themes:d,onClick:h,children:c},m):null}))})]},t)}))]})})})})};j.defaultProps={elementRef:{},onCtaClick:()=>{}};var _=j,A=i(46559);const I=u.default.div.withConfig({displayName:"styles__BladeCtaContainer",componentId:"sc-lwnixr-0"})(["display:flex;flex-direction:column;align-items:flex-start;&:last-child{margin-bottom:0;}p{line-height:1.5em;margin-bottom:1.5em;}"]),N=u.default.div.withConfig({displayName:"styles__BladeCtaImage",componentId:"sc-lwnixr-1"})(["width:",";max-width:100%;margin-bottom:1rem;"],(0,f.A)(220)),z=u.default.div.withConfig({displayName:"styles__BladeCtaLinks",componentId:"sc-lwnixr-2"})(["width:100%;display:flex;align-items:center;@media (max-width:","){flex-wrap:wrap;}a,button{margin-top:0.5rem;margin-bottom:0.5rem;&:first-child{margin-left:0;}&:last-child{margin-right:0;}@media (max-width:","){width:100%;margin-left:0;margin-right:0;}}"],(0,p.y)("breakpoints.xs"),(0,p.y)("breakpoints.xs")),L=e=>{let{data:t,themes:i,onCtaClick:n}=e;const{headingRTF:a,paragraphRTF:r,ctaLinks:m,optionalImageDam:c,regionLocking:h}=t;return(0,C.jsxs)(A.A,{provinces:h,children:[(0,C.jsxs)(I,{children:[a&&(0,C.jsx)(g.Ay,{document:a}),c&&(0,C.jsx)(N,{children:(0,C.jsx)(d.Ay,{damImage:c})}),r&&(0,C.jsx)(g.Ay,{document:r}),m&&(0,C.jsx)(z,{children:m.filter((e=>{let{linkUrlMarkdown:t}=e;return t})).map((e=>{let{linkType:t,style:a,linkUrlMarkdown:r,linkTextMarkdown:o,linkText:d,ariaLabel:m,id:c}=e;const h=d||o.linkTextMarkdown,g=()=>n(h);return"Text-Link"===t?(0,C.jsx)(s.A,{contentId:c,variant:a,url:r.linkUrlMarkdown,ariaLabel:m,themes:i,onClick:g,children:h},c):(0,C.jsx)(l.A,{contentId:c,variant:a,url:r.linkUrlMarkdown,ariaLabel:m,onClick:g,children:h},c)}))})]}),(0,C.jsx)(o.cG,{})]})};L.defaultProps={themes:"light",onCtaClick:()=>{}};const T=e=>{let{className:t,data:i,children:o,themes:d,onOpenClick:m,onCtaClick:c}=e;const{linkText:h,linkType:g,style:p,content:u,ariaLabel:f,component:x}=i,{0:y,1:w}=(0,n.useState)(!1),k=()=>w(!1),[b,v]=(0,a.A)(),j=()=>{w(!0),m()};return(0,C.jsxs)(C.Fragment,{children:["text-link"===g&&(0,C.jsx)(s.A,{ref:b,variant:p,onClick:j,className:t,ariaLabel:f,themes:d,children:o||h}),"button"===g&&(0,C.jsx)(l.A,{ref:b,variant:p,onClick:j,className:t,ariaLabel:f,children:o||h}),"Modal Blade"===x&&(0,C.jsx)(r.A,{active:y,onClose:k,elementRef:b,setElementRef:v,children:u.map((e=>{let{id:t,...i}=e;return(0,C.jsx)(L,{data:i,themes:d,onCtaClick:c},t)}
1))}),"Modal Window"===x&&(0,C.jsx)(_,{active:y,onClose:k,data:i,elementRef:b,setElementRef:v,themes:d,onCtaClick:c})]})};T.defaultProps={className:"",children:"",themes:"light",onOpenClick:()=>{},onCtaClick:()=>{}};var M=T},41939:function(e,t,i){i.d(t,{A:function(){return M}});var n=i(83023),a=i(25279),r=i(6228),o=i(6615),l=i(18183),s=i(46559),d=i(20975),m=i(57227),c=i(54472),h=i(64899),g=i(54617),p=i(4738),u=i(73517),f=i(66636);const x=c.default.div.withConfig({displayName:"styles__Banner",componentId:"sc-1b1q0yz-0"})(["position:relative;width:100%;height:100%;margin:0 auto;background-color:",";color:",";",";"],(e=>(0,m.y)(`colors.${e.bg}`)),(e=>e.color),(e=>{let{themes:t,bg:i}=e;return"dark"===t&&("white"===i||"transparent"===i||"null"===i)&&(0,c.css)(["background-color:",";"],(0,m.y)("colors.grey"))})),y=(0,c.default)(u.A).withConfig({displayName:"styles__BannerContainer",componentId:"sc-1b1q0yz-1"})(["height:100%;display:flex;"," @media (max-width:","){flex-direction:",";text-align:center;}"],(e=>{let{imagePosition:t}=e;switch(t){case"top":return b;case"bottom":case"bottom-left":case"bottom-right":return k;case"align-left":return v;default:return w}}),(0,m.y)("breakpoints.md"),(e=>{let{imagePosition:t}=e;return"bottom"!==t&&"bottom-left"!==t&&"bottom-right"!==t?"column-reverse":"column"})),w=(0,c.css)(["padding-top:5rem;padding-bottom:3.5rem;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;@media (max-width:","){padding-top:calc(2.5vw + 2rem);padding-bottom:calc(2.5vw + 2rem);}@media (max-width:","){align-items:flex-start;}"],(0,m.y)("breakpoints.xl"),(0,m.y)("breakpoints.md")),k=(0,c.css)(["padding-top:5rem;padding-bottom:0;flex-direction:column;align-items:center;justify-content:start;text-align:center;"]),b=(0,c.css)(["padding-top:5rem;padding-bottom:3.5rem;flex-direction:column-reverse;align-items:center;justify-content:start;text-align:center;@media (max-width:","){padding-top:calc(2.5vw + 2rem);padding-bottom:calc(2.5vw + 2rem);}"],(0,m.y)("breakpoints.xl")),v=(0,c.css)(["padding-top:5rem;padding-bottom:3.5rem;flex-direction:row-reverse;align-items:center;justify-content:space-between;text-align:left;@media (max-width:","){padding-top:calc(2.5vw + 2rem);padding-bottom:calc(2.5vw + 2rem);}"],(0,m.y)("breakpoints.xl")),C=c.default.h2.withConfig({displayName:"styles__Heading",componentId:"sc-1b1q0yz-2"})(["margin-bottom:1.25rem;",""],(0,g.K)(20,"2.25vw",34)),j=c.default.section.withConfig({displayName:"styles__Content",componentId:"sc-1b1q0yz-3"})(["width:100%;",";p{margin-bottom:0;@media (max-width:","){margin:0;}}"],(e=>{let{imagePosition:t}=e;return("align-right"===t||"align-left"===t)&&(0,c.css)(["width:calc(50% - 1rem);@media (max-width:","){width:100%;margin-top:2rem;}"],(0,m.y)("breakpoints.md"))}),(0,m.y)("breakpoints.md")),_=c.default.div.withConfig({displayName:"styles__CtaContainer",componentId:"sc-1b1q0yz-4"})(["margin-top:2.5rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:",";@media (max-width:","){justify-content:center;flex-wrap:wrap;}",""],(e=>{let{align:t}=e;return"align-left"===t||"align-right"===t?"flex-start":"center"}),(0,m.y)("breakpoints.md"),(e=>{let{align:t}=e;return("align-left"===t||"align-right"===t)&&(0,c.css)(["@media (max-width:","){> *{margin-left:0;margin-bottom:1rem;margin-right:1.5rem;}}"],(0,m.y)("breakpoints.md"))})),A=(0,c.default)(f.Ay).withConfig({displayName:"styles__BannerImage",componentId:"sc-1b1q0yz-5"})(["width:100%;max-width:",";align-self:center;",";",";",";",";",";",""],(0,p.A)(800),(e=>{let{imagePosition:t}=e;return("align-right"===t||"align-left"===t)&&(0,c.css)(["width:calc(50% - 1rem);@media (max-width:","){width:100%;}"],(0,m.y)("breakpoints.md"))}),(e=>{let{imagePosition:t}=e;return"top"===t&&(0,c.css)(["max-width:",";margin-bottom:2.5rem;"],(0,p.A)(640))}),(e=>{let{imagePosition:t}=e;return"bottom-left"===t&&(0,c.css)(["align-self:flex-start;margin-left:calc(-4rem - 1px);@media (max-width:","){margin-left:-2rem;}"],(0,m.y)("breakpoints.xl"))}),(e=>{let{imagePosition:t}=e;return"bottom-right"===t&&(0,c.css)(["align-self:flex-end;margin-left:4rem;@media (max-width:","){margin-left:2rem;}"],(0,m.y)("breakpoints.xl"))}),(e=>{let{imagePosition:t}=e;return"bottom"===t&&(0,c.css)(["max-width:",";"],(0,p.A)(800))}),h.Zp),I=c.default.small.withConfig({displayName:"styles__Legal",componentId:"sc-1b1q0yz-6"})(["margin-top:1rem;display:block;p:last-of-type{margin-bottom:0;}p{a{> svg{height:10px;width:10px;margin-left:3px;margin-right:3px;}}}"]);var N=i(74848);const z=e=>(t,i)=>
1{const{data:{uri:n}}=t;return(0,N.jsx)(o.A,{url:n,inline:!0,className:"content",themes:e,children:i},`${(0,a.A)()}-${n}`)},L={renderNode:{[n.nA.HEADING_2]:(e,t)=>(0,N.jsx)(C,{children:t})}},T=e=>{let{className:t,size:i,data:a,themes:m}=e;const{backgroundColour:c,textColour:h,headingRTF:g,paragraphRTF:p,legalRTF:u,ctaLinks:f,optionalImageDam:w,imagePosition:k,sectionStyle:b,regionLocking:v}=a,C={renderNode:{[n.XD.HYPERLINK]:z(m)}};return(0,N.jsx)(s.A,{provinces:v,children:(0,N.jsx)(x,{themes:m,bg:c,color:h,className:t,children:(0,N.jsxs)(y,{size:i||"md",imagePosition:w?k:"top",children:[(0,N.jsxs)(j,{imagePosition:w?k:"top",sectionStyle:b,children:[g&&(0,N.jsx)(d.Ay,{document:g,options:L}),p&&(0,N.jsx)(d.Ay,{document:p,options:C}),f&&(0,N.jsx)(_,{align:k,children:f.map((e=>{const{__typename:t,linkType:i,style:n,linkUrlMarkdown:a,linkTextMarkdown:s,linkText:d,ariaLabel:c,id:h}=e;return"ContentfulModal"===t?(0,N.jsx)(l.A,{data:e,themes:m},h):"Button"===i||"button"===i?(0,N.jsx)(r.A,{contentId:h,variant:n,url:a.linkUrlMarkdown,ariaLabel:c,children:d||s.linkTextMarkdown},h):"Text-Link"===i?(0,N.jsx)(o.A,{contentId:h,variant:n,url:a.linkUrlMarkdown,ariaLabel:c,themes:m,children:d||s.linkTextMarkdown},h):null}))}),u&&(0,N.jsx)(I,{children:(0,N.jsx)(d.Ay,{document:u,options:C})})]}),w&&(w.asset.localImage.childImageSharp,(0,N.jsx)(A,{imagePosition:k,damImage:w}))]})})})};T.defaultProps={className:"",size:"xl"};var M=T},43888:function(e,t,i){var n=i(74848);const a=e=>{let{sections:t,template:i,pageSlug:a,themes:r}=e;return t.map(((e,o)=>{let{component:l}=e;if(!l)return!1;const s=l.split(" ").join("-").toLowerCase();if(Object.keys(i).includes(s)){const e=i[s];return(0,n.jsx)(e,{data:t[o],pageSlug:a,index:o,themes:r},t[o].id)}return console.warn(`Didnt find a component to match the ${l} value`),!1}))};a.defaultProps={pageSlug:null},t.A=a},46559:function(e,t,i){var n=i(98597),a=i(5556),r=i.n(a),o=i(96540),l=i(35136),s=i(74848);const d=e=>{let{children:t,cities:i,provinces:a,countries:r}=e;const d=(0,n.useIntl)(),[{city:c,province:h,country:g,loading:p}]=(0,l.zy)(),u=!(i&&i.length||a&&a.length||r&&r.length),f=!u&&a&&a.includes("QC")&&"fr"===d.locale,{0:x,1:y}=(0,o.useState)(f),{0:w,1:k}=(0,o.useState)(!0);return(0,o.useEffect)((()=>{u||(y(i&&i.includes(c)||a&&a.includes(h)||r&&r.includes(g)||a&&a.includes("QC")&&"fr"===d.locale),k(p))}),[c,h,g,p,i,r,a,d.locale,u]),(0,o.useEffect)((()=>{k(p)}),[p]),x?null:!u&&w?(0,s.jsx)(s.Fragment,{children:o.Children.map(t,m)}):t};d.propTypes={children:r().node.isRequired,cities:r().arrayOf(r().string),provinces:r().arrayOf(r().string),countries:r().arrayOf(r().string)},d.defaultProps={cities:[],provinces:[],countries:[]};const m=e=>({...e,props:{...e.props||{},style:{...(e.props||{}).style||{},opacity:.001}}});t.A=d}}]);

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.