PageSourceSearch

https://course.boatsafeonline.com/_next/static/chunks/pages/order-complete-d242032f20529a16.js

js boatsafeonline.com collected 2026-10-09 02:49:10 UTC 9,784 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[663],{91984:function(a,e,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order-complete",function(){return s(59428)}])},28330:function(a,e,s){"use strict";function i(a){return function(a){return void 0!==a.currency}(a)?Intl.NumberFormat("en-US",{style:"currency",currency:a.currency}).format(a.units/100):Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(a)}s.d(e,{l:function(){return i}})},51698:function(a,e,s){"use strict";s.d(e,{Z:function(){return p}});var i=s(31549),n=s(97078),t=s.n(n),c=s(44194),r=s(17634),l=s(50546),d=s(60947),b=s(92336),f=s(96822),o=function(){var a=(0,d.Z)((function(a){var e,s;return(0,b.__generator)(this,(function(i){switch(i.label){case 0:return e={query:"\n  query accountSettings($siteId: String!) {\n    accountSettings(siteId: $siteId) {\n      accountId\n      attributes {\n        code\n        value\n      }\n    }\n  }\n",variables:{siteId:a}},[4,fetch(f.Z2,{method:"POST",headers:{"Content-Type":"application/json","X-CORE-SITE":f.Ey},body:JSON.stringify(e)})];case 1:return[4,i.sent().json()];case 2:return[2,null===(s=i.sent())||void 0===s?void 0:s.data]}}))}));return function(e){return a.apply(this,arguments)}}(),x=o,j=s(8192),u=s.n(j),h=function(a){var e=a.site,s=(0,c.useState)(""),n=s[0],t=s[1];return(0,c.useEffect)((function(){x(e).then((function(a){var e,s,i=null!==(s=null===(e=a.accountSettings)||void 0===e?void 0:e.attributes)&&void 0!==s?s:[];t(function(a,e){var s=a.find((function(a){return a.code===e}));return void 0===(null===s||void 0===s?void 0:s.value)?"":s.value?s.value:""}(i,"googleAnalytics"))}))})),(0,i.jsx)(i.Fragment,{children:n&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(u(),{id:"google-tag-manager",dangerouslySetInnerHTML:{__html:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
1j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','".concat(n,"');")}})})})},m=s(93830),g=s(47701),p=function(a){var e=a.children;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{site:"BSF"}),(0,i.jsx)(g.Z,{size:"sm"}),(0,i.jsxs)("div",{className:"jsx-cd9b6f05c45445f1 break",children:[(0,i.jsx)(r.Z,{children:(0,i.jsx)(m.Z,{})}),(0,i.jsx)(g.Z,{size:"sm"})]}),e,(0,i.jsx)(g.Z,{size:"lg"}),(0,i.jsx)(l.Z,{}),(0,i.jsx)(t(),{id:"cd9b6f05c45445f1",children:".break.jsx-cd9b6f05c45445f1{border-bottom:1px solid rgb(194,194,194)}"})]})}},50239:function(a,e,s){"use strict";s.d(e,{Z:function(){return c}});var i=s(31549),n=s(97078),t=s.n(n),c=function(a){var e=a.children;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"jsx-e3165d1a55cab095 Title",children:e}),(0,i.jsx)(t(),{id:"e3165d1a55cab095",children:'.Title.jsx-e3165d1a55cab095{font-family:"Bebas Neue",sans-serif;text-align:center;font-weight:normal}'})]})}},59428:function(a,e,s){"use strict";s.r(e),s.d(e,{__N_SSP:function(){return j},default:function(){return u}});var i=s(60947),n=s(92336),t=s(31549),c=s(97078),r=s.n(c),l=s(44194),d=s(17634),b=s(51698),f=s(28330),o=function(a){var e=a.order;return(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 order",children:[(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 addresses",children:[(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 shipping",children:[(0,t.jsx)("h2",{className:"jsx-8a7c62aefb851ab8",children:"Shipping Address"}),(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 field",children:[e.shippingFirstName," ",e.shippingLastName]}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.shippingAddress1}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.shippingAddress2}),(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 field",children:[e.shippingCity,", ",e.shippingState," ",e.shippingPostalCode]}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.shippingPhone}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.shippingEmail})]}),(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 billing",children:[(0,t.jsx)("h2",{className:"jsx-8a7c62aefb851ab8",children:"Billing Address"}),(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 field",children:[e.billingFirstName," ",e.billingLastName]}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.billingAddress1}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.billingAddress2}),(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 field",children:[e.billingCity,", ",e.billingState," ",e.billingPostalCode]}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.billingPhone}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:e.billingEmail})]})]}),(0,t.jsx)("h2",{className:"jsx-8a7c62aefb851ab8",children:"Products"}),(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 products",children:[(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field header",children:"Title"}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field header",children:"Format"}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field header",children:"Quantity"}),e.cart.map((function(a,e){return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:a.title}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:a.deliveryFormat}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:a.qtySold})]},e)}))]}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 totals-container",children:(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 totals-box",children:[(0,t.jsx)("h2",{className:"jsx-8a7c62aefb851ab8 totals",children:"Totals"}),(0,t.jsxs)("div",{className:"jsx-8a7c62aefb851ab8 totals",children:[(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:"Shipping"}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field value",children:(0,f.l)(e.shippingTotal)}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:"Tax"}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field value",children:(0,f.l)(e.taxTotal)}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field",children:"Total"}),(0,t.jsx)("div",{className:"jsx-8a7c62aefb851ab8 field value",children:(0,f.l)(e.total)})]})]})}),(0,t.jsx)(r(),{id:"8a7c62aefb851ab8",children:".order.jsx-8a7c62aefb851ab8{padding-top:20px}.products.jsx-8a7c62aefb851ab8 .header.jsx-8a7c62aefb851ab8{display:none;font-weight:bold;background-color:#f4f3f3}.addresses.jsx-8a7c62aefb851ab8,.products.jsx-8a7c62aefb851ab8{padding-bottom:40px}.shipping.jsx-8a7c62aefb851ab8 .field.jsx-8a7c62aefb851ab8,.billing.jsx-8a7c62aefb851ab8 .field.jsx-8a7c62aefb851ab8{text-align:left;line-height:26px;padding-left:40px}.order.jsx-8a7c62aefb851ab8 h2.jsx-8a7c62aefb851ab8,.billing.jsx-8a7c62aefb851ab8 h2.jsx-8a7c62aefb851ab8,.shipping.jsx-8a7c62aefb851ab8 h2.jsx-8a7c62aefb851ab8{text-align:left}.products.jsx-8a7c62aefb851ab8 .field.jsx-8a7c62aefb851ab8{line-height:20px;padding:24px 0 24px 0;font-weight:bold;border-bottom:1px solid#bebebe}.totals.jsx-8a7c62aefb851ab8{display:grid;grid-template-columns:1fr 1fr;text-align:right}.totals.jsx-8a7c62aefb851ab8 .value.jsx-8a7c62aefb851ab8{justify-self:end;font-weight:bold}@media(min-width:768px){.addresses.jsx-8a7c62aefb851ab8{display:grid;grid-template-columns:1fr 1fr}.products.jsx-8a7c62aefb851ab8 .header.jsx-8a7c62aefb851ab8{display:block}.products.jsx-8a7c62aefb851ab8{display:grid;grid-template-columns:2fr 1fr 1fr}.products.jsx-8a7c62aefb851ab8 .field.jsx-8a7c62aefb851ab8{line-height:20px;padding:24px 0 24px 0;font-weight:bold;border-bottom:1px solid#bebebe}h2.totals.jsx-8a7c62aefb851ab8{text-align:right!important}.totals.jsx-8a7c62aefb851ab8{width:300px;display:grid;grid-template-columns:1fr 1fr}.totalsHeader.jsx-8a7c62aefb851ab8{text-align:right}.totals.jsx-8a7c62aefb851ab8 .field.jsx-8a7c62aefb851ab8{}.totals.jsx-8a7c62aefb851ab8 .value.jsx-8a7c62aefb851ab8{}.totals-container.jsx-8a7c62aefb851ab8{display:grid;grid-template-columns:repeat(12,1fr)}.totals-box.jsx-8a7c62aefb851ab8{grid-column:8/12}}"})]})},x=s(50239),j=!0;function u(a){var e=a.reference,s=a.token,c=(0,l.useState)(null),b=c[0],f=c[1],j=(0,l.useState)(!0),u=j[0],h=j[1],m=(0,l.useState)(0),g=m[0],p=m[1];return(0,l.useEffect)((function(){var a=setInterval((0,i.Z)((function(){var a,i;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:if(b||!(g<5)
1)return[3,5];a=null,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,fetch("".concat("https://coreinterface.kencookpartners.com","/orders/v2/").concat(e),{mode:"cors",headers:{Authorization:"Bearer ".concat(s)}}).then((function(a){return a.json()}))];case 2:return a=n.sent(),[3,4];case 3:return i=n.sent(),console.log(i),[3,4];case 4:a&&(f(a),h(!1)),n.label=5;case 5:return p(g+1),g+1===5&&h(!1),[2]}}))})),2500);return function(){return clearInterval(a)}}),[b,g,u]),(0,t.jsxs)(d.Z,{children:[(0,t.jsx)(x.Z,{children:"Order Complete"}),b?(0,t.jsx)(o,{order:b}):u?(0,t.jsx)("div",{className:"jsx-6b6b1b8d5c9b1fa8 loading",children:(0,t.jsx)("p",{className:"jsx-6b6b1b8d5c9b1fa8",children:"Loading..."})}):(0,t.jsx)("div",{className:"jsx-6b6b1b8d5c9b1fa8 error",children:(0,t.jsx)("p",{className:"jsx-6b6b1b8d5c9b1fa8",children:"An error occurred while fetching order. No order is found."})}),(0,t.jsx)(r(),{id:"6b6b1b8d5c9b1fa8",children:".error.jsx-6b6b1b8d5c9b1fa8,.loading.jsx-6b6b1b8d5c9b1fa8{margin-top:80px;text-align:center}.error.jsx-6b6b1b8d5c9b1fa8{color:red}"})]})}u.Layout=b.Z},8192:function(a,e,s){a.exports=s(40756)}},function(a){a.O(0,[133,180,774,888,179],(function(){return e=91984,a(a.s=e);var e}));var e=a.O();_N_E=e}]);
2//# sourceMappingURL=order-complete-d242032f20529a16.js.map

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.