1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9350],{1115:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/members/order-history/[slug]",function(){return n(2577)}])},2520:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var s=n(5893),l=n(512),i=n(3519),a=n(6309),r=n(1664),o=n.n(r),c=n(9332),d=n(7294);function m(e){let{className:t,children:n,navItems:r,currentPage:m,hideHeader:p,showBreadcrumbs:x,showCurrent:u}=e,h=(0,c.usePathname)(),g=h.split("/"),f=[];for(let e=0;e<g.length;++e){let t=g[e],n="";if(""!=t){if(1==e){n="/"+t+"/";let e=r.filter(e=>e.route.path==n)[0];if(null!=e){let t=e.name,n=e.route.path;f.push({pageName:t,pagePath:n})}}if(2==e&&3==g.length){n=h+"/";let e=r.filter(e=>e.route.path==n)[0];if(null!=e){let t=e.name,n=e.route.path;f.push({pageName:t,pagePath:n})}m&&(n=h,f.push({pageName:m,pagePath:h}))}if(2==e&&g.length>3){n="/"+g[1]+"/"+t+"/";let e=r.filter(e=>e.route.path==n)[0];if(null!=e){let t=e.name,n=e.route.path;f.push({pageName:t,pagePath:n})}}3==e&&g.length>3&&(n=h,f.push({pageName:m,pagePath:h}))}}return(0,s.jsxs)("div",{children:[!p&&(0,s.jsx)("div",{className:"relative bg-accent-lightest text-center -mt-24 !pt-20 -top-1",children:(0,s.jsx)(i.W,{children:(0,s.jsx)("div",{className:"max-w-4xl mx-auto",children:n})})}),x&&(0,s.jsx)("div",{className:(0,l.W)("bg-accent-light/10 -mt-1"),children:(0,s.jsx)("div",{className:"pt-0 pb-0",children:(0,s.jsx)("div",{className:"max-w-full lg:max-w-7xl lg:mx-auto",children:(0,s.jsx)("div",{className:"relative py-4 px-6 w-full text-lg",children:(0,s.jsx)("nav",{className:"flex","aria-label":"Breadcrumb",children:(0,s.jsx)("ol",{role:"list",className:"flex items-center space-x-4",children:r&&r.length>0&&f&&f.length>0&&(0,s.jsx)(d.Fragment,{children:f.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"flex items-center",children:[0!=t&&(0,s.jsx)(a.Z,{className:"h-5 w-5 flex-shrink-0 text-gray-400","aria-hidden":"true"}),(0,s.jsx)(o(),{href:e.pagePath,className:(0,l.W)(h+"/"==e.pagePath||e.pageName==m?"font-medium text-black pointer-events-none":"accent-link","ml-4 text-base"),children:e.pageName})]})},"bcitem"+t))})})})})})})})]})}},1764:function(e,t,n){"use strict";n.d(t,{P:function(){return h}});var s=n(5893),l=n(512),i=n(3460),a=n(6671),r=n(5675),o=n.n(r),c=n(8710),d=n(8016),m=n(9115),p=n(6648);function x(e){let{feed:t}=e;return(0,s.jsx)("dl",{className:"space-y-6 divide-y divide-gray-900/10",children:t.map(e=>(0,s.jsxs)(d.pJ,{as:"div",className:"pt-6 group",children:[(0,s.jsx)("dt",{children:(0,s.jsxs)(d.lG,{className:"group flex w-full items-start justify-between text-left",children:[(0,s.jsx)("span",{className:"text-xl font-semibold leading-7 text-black",children:e.content.properties.title}),(0,s.jsxs)("span",{className:"ml-6 flex h-7 items-center group-hover:text-accent",children:[(0,s.jsx)(m.Z,{"aria-hidden":"true",className:"h-6 w-6 group-data-[open]:hidden"}),(0,s.jsx)(p.Z,{"aria-hidden":"true",className:"h-6 w-6 [.group:not([data-open])_&]:hidden"})]})]})}),(0,s.jsx)(d.V2,{as:"dd",className:"mt-2 pr-12",children:e.content.properties.content&&e.content.properties.content.markup&&(0,s.jsx)("div",{className:"content-section",dangerouslySetInnerHTML:{__html:e.content.properties.content.markup}})})]},e.content.properties.title+"faq"))})}var u=n(7294);function h(e){var t,n;let{title:r,subtitle:d,description:m,image:p,flip:h,center:g,topImage:f,large:v,buttons:b,collapsibleItems:j,formEmbed:N}=e,[y,w]=(0,u.useState)("");return(N&&u.useEffect(()=>{let e=document.createElement("script");e.src=N;var t=document.getElementById("formembed");t.firstChild||t.appendChild(e)},[]),!f&&p&&p.length>0&&p[0].url)?(0,s.jsxs)("div",{className:"mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-10 lg:gap-y-20 lg:mx-0 lg:max-w-none lg:grid-cols-2 items-center",children:[(0,s.jsx)("div",{className:(0,l.Z)(h?"lg:pr-8":"lg:order-2 lg:pl-8",""),children:(0,s.jsxs)("div",{className:(0,l.Z)(!h&&"lg:ml-auto","lg:max-w-lg content-section lg:py-8"),children:[d&&(0,s.jsx)("span",{className:"block !font-sans uppercase text-base mb-4 font-medium text-[#685BB3] !tracking-wider contentSubtitle",children:d}),(0,s.jsx)("h2",{className:"leading-normal lg:leading-[3.5rem]",children:r}),m&&(0,s.jsx)("div",{className:"content-section ",dangerouslySetInnerHTML:{__html:m}}),j&&(0,s.jsx)(x,{feed:j}),b&&b.length>0&&(0,s.jsx)("div",{className:(0,l.Z)(r&&r.toLowerCase().includes("social media")?"":"md:flex-row","flex gap-6 flex-col "),children:b&&b.map((e,t)=>(0,s.jsx)(i.z,{path:e.content.properties.buttonUrl,text:e.content.properties.buttonText,label:e.content.properties.buttonLabel?e.content.properties.buttonLabel:e.content.properties.buttonText,style:("Outline"==e.content.properties.buttonstyle&&"btn-outline")+" "+("Dark"==e.content.properties.buttontheme?"btn-dark":"Light"==e.content.properties.buttontheme&&"btn-light")},e.content.properties.buttonText+t))})]})}),(0,s.jsx)("div",{className:"relative h-full",children:(0,s.jsx)(o(),{alt:(null===(t=p[0].properties)||void 0===t?void 0:t.altText)?p[0].properties.altText:"...",src:a.c.formatImage(p[0].url),width:p[0].width,height:p[0].height,className:(0,l.Z)(h?"lg:inset-0 md:-ml-4 lg:-ml-0":"right-0 top-0 md:-mr-4 lg:-mr-0","lg:w-[48rem] max-w-none w-full aspect-[4/3] lg:aspect-none lg:h-full lg:absolute rounded-3xl ring-1 ring-gray-400/10 object-cover")})})]}):f&&p&&p.length>0&&p[0].url?(0,s.jsxs)("div",{className:"content-section",children:[(0,s.jsx)("img",{alt:(null===(n=p[0].properties)||void 0===n?void 0:n.altText)?p[0].properties.altText:"...",src:a.c.formatImage(p[0].url),width:p[0].width,height:p[0].height,style:p[0].focalPoint&&{objectPosition:+p[0].focalPoint.left+"px "+p[0].focalPoint.top+"px"},className:(0,l.Z)("aspect-[2/1] object-cover rounded-3xl")}),(0,s.jsxs)("div",{className:(0,l.Z)("content-section"),children:[d&&(0,s.jsx)("span",{className:"block !font-sans uppercase text-base mb-4 font-medium text-[#685BB3] !tracking-wider contentSubtitle",children:d}),(0,s.jsx)("h2",{className:"leading-normal lg:leading-[3.5rem]",children:r}),m&&(0,s.jsx)("div",{className:"content-section ",dangerouslySetInnerHTML:{__html:m}}),j&&(0,s.jsx)(x,{feed:j}),b&&b.length>0&&(0,s.jsx)("div",{className:(0,l.Z)(r&&r.toLowerCase().includes("social media")?"":"md:flex-row","flex gap-6 flex-col "),children:b&&b.map((e,t)=>(0,s.jsx)(i.z,{path:e.content.properties.buttonUrl,text:e.content.properties.buttonText,label:e.content.properties.buttonLabel?e.content.properties.buttonLabel:e.content.properties.buttonText,style:("Outline"==e.content.properties.buttonstyle&&"btn-outline")+" "+("Dark"==e.content.properties.buttontheme?"btn-dark":"Light"==e.content.properties.buttontheme&&"btn-light")},e.content.properties.buttonText+t))})]})]}):(0,s.jsx)(c.pT,{children:(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:(0,l.Z)(g&&"text-center max-w-4xl mx-auto","content-section"),children:[d&&(0,s.jsx)("span",{className:"block !font-sans uppercase text-base mb-4 font-medium text-[#685BB3] !tracking-wider contentSubtitle",children:d}),r&&(0,s.jsx)("h2",{children:r}),m&&(0,s.jsx)("div",{className:(0,l.Z)(v?"lg:text-2xl":"","content-section"),dangerouslySetInnerHTML:{__html:m}}),N&&(0,s.jsx)("div",{id:"formembed",className:"-mt-12"}),j&&(0,s.jsx)("div",{className:"mx-auto",children:(0,s.jsx)(x,{feed:j})}),b&&b.length>0&&(0,s.jsx)("div",{className:(0,l.Z)(g&&"justify-center",r&&r.toLowerCase().includes("social media")?"":"md:flex-row flex-col","flex gap-6"),children:b&&b.length>0&&(0,s.jsx)("div",{className:(0,l.Z)(r&&r.toLowerCase().includes("social media")?"":"md:flex-row","flex gap-6 flex-col "),children:b&&b.map((e,t)=>(0,s.jsx)(i.z,{path:e.content.properties.buttonUrl,text:e.content.properties.buttonText,label:e.content.properties.buttonLabel?e.content.properties.buttonLabel:e.content.properties.buttonText,style:("Outline"==e.content.properties.buttonstyle&&"btn-outline")+" "+("Dark"==e.content.properties.buttontheme?"btn-dark":"Light"==e.content.properties.buttontheme&&"btn-light")},e.content.properties.buttonText+t))})})]})})})}},5635:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var s=n(5893),l=n(512),i=n(7294),a=n(6671),r=n(1664),o=n.n(r),c=n(9332);function d(e){let{feed:t,title:n}=e,[r,d]=(0,i.useState)([]),m=(0,c.usePathname)();return(0,i.useEffect)(()=>{(async()=>{try{let e=await a.c.fetchPageContent("2411ae4c-eba9-4574-b928-04d0c61ad6ba");d(e.navigationItems.items)}catch(e){console.error("Error fetching data:",e)}})()},[]),(0,s.jsxs)("div",{className:"block block-account-navigation rounded-lg bg-gray-50 px-4 py-6 sm:p-6 lg:p-8 sticky top-28",children:[(0,s.jsx)("div",{className:"title text-2xl font-semibold text-black font-header",children:"My account"}),r&&r.length>0&&(0,s.jsx)("div",{className:"listbox mt-2",children:(0,s.jsx)("ul",{className:"list unstyled space-y-2",children:r.map((e,t)=>{var n;return(0,s.jsx)("li",{className:(0,l.W)(m&&m==e.content.properties.navitemurl&&"text-black font-medium"),children:(0,s.jsxs)(o(),{onClick:()=>{var t;return e.content.properties.navitemurl.includes("http")&&(t=e.content.properties.navitemurl,void(window.confirm("You are being forwarded to Member Settings at member.oqcc.ca. You may be required to sign in again.")&&(window.location.href=t)))},className:"accent-link flex items-center gap-2",target:e.content.properties.navitemurl.includes("http")?"_blank":"_self",href:e.content.properties.navitemurl.includes("http")?"#":e.content.properties.navitemurl,children:[e.content.properties.navitemtext,(null===(n=e.content.properties.navitemurl)||void 0===n?void 0:n.includes("http"))&&(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"size-4",children:[(0,s.jsx)("path",{d:"M6.22 8.72a.75.75 0 0 0 1.06 1.06l5.22-5.22v1.69a.75.75 0 0 0 1.5 0v-3.5a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0 0 1.5h1.69L6.22 8.72Z"}),(0,s.jsx)("path",{d:"M3.5 6.75c0-.69.56-1.25 1.25-1.25H7A.75.75 0 0 0 7 4H4.75A2.75 2.75 0 0 0 2 6.75v4.5A2.75 2.75 0 0 0 4.75 14h4.5A2.75 2.75 0 0 0 12 11.25V9a.75.75 0 0 0-1.5 0v2.25c0 .69-.56 1.25-1.25 1.25h-4.5c-.69 0-1.25-.56-1.25-1.25v-4.5Z"})]})]})})})})})]})}},2577:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return u},default:function(){return g},dynamic:function(){return h}});var s=n(5893),l=n(9008),i=n.n(l),a=n(3519),r=n(1764),o=n(2520),c=n(9946),d=n(1788),m=n(3403);n(4262);var p=n(5635),x=n(7294),u=!0;let h="force-dynamic";function g(e){var t,n,l,u,h,g,f,v,b,j,N,y,w,k,T,_,L,P;let{seo:S,sectionContent:C,data:I,heroData:Z,cta:D,brand:E,navItems:A,footerNavItems:B,globalSeo:M,pageLinks:z,newsData:H,orderId:O}=e,[F,W]=(0,x.useState)(null),[q,U]=(0,x.useState)(!0),[Y,G]=(0,x.useState)(null);return(0,x.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/order/".concat(O));if(!e.ok)throw Error("Failed to fetch order");let t=await e.json();W(t)}catch(e){console.error("Error fetching order:",e),G("Could not load order details.")}finally{U(!1)}};O&&e()},[O]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:S&&S.pageTitle&&S.pageTitle+(M&&M.pageTitle&&" | "+M.pageTitle)}),S&&M&&(0,s.jsx)("meta",{name:"description",content:S&&S.metaDescription?S.metaDescription:M.metaDescription})]}),(0,s.jsx)(c.J,{brand:E,scroll:!1}),Z&&A&&A.length>0&&(0,s.jsx)(o.h,{navItems:A,children:(0,s.jsx)("h1",{children:Z.title})}),(0,s.jsx)(a.W,{children:(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-x-16 gap-y-10 lg:grid-cols-4 border-b pb-12",children:[(0,s.jsx)("div",{children:(0,s.jsx)(p.i,{feed:null})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-x-6 gap-y-6 lg:col-span-3 lg:gap-x-8",children:[C&&C.map((e,t)=>(0,s.jsx)("div",{children:"sectionContent"==e.content.contentType&&(0,s.jsx)(r.P,{flip:t%2!=0,description:e.content.properties.content&&e.content.properties.content.markup?e.content.properties.content.markup:null,buttons:e.content.properties.buttons&&e.content.properties.buttons.items&&e.content.properties.buttons.items.length>0&&e.content.properties.buttons.items,center:e.content.properties.centered,image:e.content.properties.image&&e.content.properties.image.length>0&&e.content.properties.image},e.content.id)},e.contentItemId)),(0,s.jsx)("main",{children:(0,s.jsxs)("div",{className:"mx-auto max-w-3xl",children:[q&&(0,s.jsx)("p",{className:"text-gray-500",children:"Loading order..."}),Y&&(0,s.jsx)("p",{className:"text-red-500",children:Y}),!q&&!Y&&F&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"max-w-xl",children:[(0,s.jsxs)("h2",{className:"font-sans font-semibold h4",children:["Order #",F.orderNumber||F.cartNumber]}),(0,s.jsxs)("p",{className:"mt-2 text-sm text-gray-500",children:["Placed on ",F.finalizedDate?new Date(F.finalizedDate).toLocaleDateString("en-CA",{year:"numeric",month:"long",day:"numeric"}):new Date(F.createDate).toLocaleDateString("en-CA",{year:"numeric",month:"long",day:"numeric"})]}),(0,s.jsx)("span",{className:["mt-2 inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",(null===(t=F.transactionInfo)||void 0===t?void 0:t.paymentStatus)==="Captured"?"bg-green-100 text-green-800":(null===(n=F.transactionInfo)||void 0===n?void 0:n.paymentStatus)==="Authorized"?"bg-blue-100 text-blue-800":"bg-gray-100 text-gray-800"].join(" "),children:(null===(l=F.transactionInfo)||void 0===l?void 0:l.paymentStatus)||"Processing"})]}),(0,s.jsxs)("section",{"aria-labelledby":"order-heading",className:"mt-10 border-t border-gray-200",children:[(0,s.jsx)("h2",{id:"order-heading",className:"sr-only",children:"Your order"}),(0,s.jsx)("h3",{className:"sr-only",children:"Items"}),null===(u=F.orderLines)||void 0===u?void 0:u.map(e=>{var t,n,l;return(0,s.jsx)("div",{className:"flex space-x-6 border-b border-gray-200 py-10",children:(0,s.jsxs)("div",{className:"flex flex-auto flex-col",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-medium text-gray-900",children:e.name}),e.sku&&(0,s.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:["SKU: ",e.sku]})]}),(0,s.jsx)("div",{className:"mt-6 flex flex-1 items-end",children:(0,s.jsxs)("dl",{className:"flex divide-x divide-gray-200 text-sm",children:[(0,s.jsxs)("div",{className:"flex pr-4 sm:pr-6",children:[(0,s.jsx)("dt",{className:"font-medium text-gray-900",children:"Quantity"}),(0,s.jsx)("dd",{className:"ml-2 text-gray-700",children:e.quantity})]}),(0,s.jsxs)("div",{className:"flex pl-4 sm:pl-6",children:[(0,s.jsx)("dt",{className:"font-medium text-gray-900",children:"Price"}),(0,s.jsx)("dd",{className:"ml-2 text-gray-700",children:null===(l=e.totalPrice)||void 0===l?void 0:null===(n=l.value)||void 0===n?void 0:null===(t=n.formatted)||void 0===t?void 0:t.withoutTax})]})]})})]})},e.id)}),(0,s.jsxs)("div",{className:"sm:ml-40 sm:pl-6",children:[(0,s.jsx)("h3",{className:"sr-only",children:"Your information"}),(null===(h=F.properties)||void 0===h?void 0:h.billingAddressLine1)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h4",{className:"sr-only",children:"Addresses"}),(0,s.jsx)("dl",{className:"grid grid-cols-2 gap-x-6 py-10 text-sm",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"font-medium text-gray-900",children:"Billing address"}),(0,s.jsx)("dd",{className:"mt-2 text-gray-700",children:(0,s.jsxs)("address",{className:"not-italic",children:[(null===(g=F.customerInfo)||void 0===g?void 0:g.firstName)&&(0,s.jsxs)("span",{className:"block",children:[F.customerInfo.firstName," ",F.customerInfo.lastName]}),(null===(f=F.properties)||void 0===f?void 0:f.billingAddressLine1)&&(0,s.jsx)("span",{className:"block",children:F.properties.billingAddressLine1}),(null===(v=F.properties)||void 0===v?void 0:v.billingCity)&&(0,s.jsxs)("span",{className:"block",children:[F.properties.billingCity,(null===(b=F.properties)||void 0===b?void 0:b.billingZipCode)&&", ".concat(F.properties.billingZipCode)]})]})})]})})]}),(0,s.jsx)("h3",{className:"sr-only",children:"Summary"}),(0,s.jsxs)("dl",{className:"space-y-6 border-t border-gray-200 pt-10 text-sm",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("dt",{className:"font-medium text-gray-900",children:"Subtotal"}),(0,s.jsx)("dd",{className:"text-gray-700",children:null===(y=F.subtotalPrice)||void 0===y?void 0:null===(N=y.value)||void 0===N?void 0:null===(j=N.formatted)||void 0===j?void 0:j.withoutTax})]}),(0,s.jsxs)("div",{classNa
1me:"flex justify-between",children:[(0,s.jsx)("dt",{className:"font-medium text-gray-900",children:"Tax"}),(0,s.jsx)("dd",{className:"text-gray-700",children:null===(T=F.subtotalPrice)||void 0===T?void 0:null===(k=T.value)||void 0===k?void 0:null===(w=k.formatted)||void 0===w?void 0:w.tax})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("dt",{className:"font-medium text-gray-900",children:"Total"}),(0,s.jsx)("dd",{className:"font-medium text-gray-900",children:null===(P=F.totalPrice)||void 0===P?void 0:null===(L=P.value)||void 0===L?void 0:null===(_=L.formatted)||void 0===_?void 0:_.withTax})]})]})]})]})]})]})})]})]})}),D&&(0,s.jsx)(d.e,{title:D.ctaTitle,tint:!0,showNewsletter:D.replaceGlobal,image:D.image&&D.image.length>0&&D.image[0],description:D.content&&D.content.markup?D.content.markup:null,buttons:D.buttons&&D.buttons.items&&D.buttons.items.length>0&&D.buttons.items}),(0,s.jsx)(m.$,{cookiePolicy:!0,brand:E,navItems:B})]})}}},function(e){e.O(0,[8802,6342,4885,1069,5516,875,8867,2778,4262,2888,9774,179],function(){return e(e.s=1115)}),_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.