PageSourceSearch

https://course.boatsafeonline.com/_next/static/chunks/pages/activate-049a30595819b24c.js

js boatsafeonline.com collected 2026-10-09 02:48:47 UTC 8,118 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[733],{4756:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/activate",function(){return t(52221)}])},35103:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(31549),r=t(97078),a=t.n(r),c=t(96822),o=function(e){var n=e.theme,t=void 0===n?"primary":n,r=e.width,o=void 0===r?"100%":r,s=e.children,d=e.onClick,l=void 0===d?function(e){}:d,u=e.disabled,f=void 0!==u&&u,x=e.cy;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{onClick:function(e){f||l(e)},"data-cy":x,className:a().dynamic([["8837949000797b1a",[o,"primary"==t?c.Ar:c.$w]]])+" "+"Button ".concat(f?"disabled":""),children:s}),(0,i.jsx)(a(),{id:"8837949000797b1a",dynamic:[o,"primary"==t?c.Ar:c.$w],children:".Button.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;width:".concat(o,";text-align:center;background-color:").concat("primary"==t?c.Ar:c.$w,";color:white;font-weight:600;font-size:14px;text-transform:uppercase;padding:16px 10px;cursor:pointer;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}.Button.__jsx-style-dynamic-selector:hover{background-color:rgb(45,45,45)}.Button.disabled.__jsx-style-dynamic-selector{background-color:#a8b6be;color:#e0e0e0;cursor:default}")})]})}},87755:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var i=t(31549),r=t(97078),a=t.n(r),c=function(e){var n=e.children,t=e.cy;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"data-cy":t,className:"jsx-1ae566c0eefc8a56 Center",children:n}),(0,i.jsx)(a(),{id:"1ae566c0eefc8a56",children:".Center.jsx-1ae566c0eefc8a56{text-align:center}"})]})}},51698:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var i=t(31549),r=t(97078),a=t.n(r),c=t(44194),o=t(17634),s=t(50546),d=t(60947),l=t(92336),u=t(96822),f=function(){var e=(0,d.Z)((function(e){var n,t;return(0,l.__generator)(this,(function(i){switch(i.label){case 0:return n={query:"\n  query accountSettings($siteId: String!) {\n    accountSettings(siteId: $siteId) {\n      accountId\n      attributes {\n        code\n        value\n      }\n    }\n  }\n",variables:{siteId:e}},[4,fetch(u.Z2,{method:"POST",headers:{"Content-Type":"application/json","X-CORE-SITE":u.Ey},body:JSON.stringify(n)})];case 1:return[4,i.sent().json()];case 2:return[2,null===(t=i.sent())||void 0===t?void 0:t.data]}}))}));return function(n){return e.apply(this,arguments)}}(),x=f,b=t(8192),g=t.n(b),m=function(e){var n=e.site,t=(0,c.useState)(""),r=t[0],a=t[1];return(0,c.useEffect)((function(){x(n).then((function(e){var n,t,i=null!==(t=null===(n=e.accountSettings)||void 0===n?void 0:n.attributes)&&void 0!==t?t:[];a(function(e,n){var t=e.find((function(e){return e.code===n}));return void 0===(null===t||void 0===t?void 0:t.value)?"":t.value?t.value:""}(i,"googleAnalytics"))}))})),(0,i.jsx)(i.Fragment,{children:r&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(g(),{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(r,"');")}})})})},p=t(93830),h=t(47701),v=function(e){var n=e.children;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{site:"BSF"}),(0,i.jsx)(h.Z,{size:"sm"}),(0,i.jsxs)("div",{className:"jsx-cd9b6f05c45445f1 break",children:[(0,i.jsx)(o.Z,{children:(0,i.jsx)(p.Z,{})}),(0,i.jsx)(h.Z,{size:"sm"})]}),n,(0,i.jsx)(h.Z,{size:"lg"}),(0,i.jsx)(s.Z,{}),(0,i.jsx)(a(),{id:"cd9b6f05c45445f1",children:".break.jsx-cd9b6f05c45445f1{border-bottom:1px solid rgb(194,194,194)}"})]})}},50239:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var i=t(31549),r=t(97078),a=t.n(r),c=function(e){var n=e.children;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"jsx-e3165d1a55cab095 Title",children:n}),(0,i.jsx)(a(),{id:"e3165d1a55cab095",children:'.Title.jsx-e3165d1a55cab095{font-family:"Bebas Neue",sans-serif;text-align:center;font-weight:normal}'})]})}},52221:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return k},default:function(){return _}});var i=t(31549),r=t(44194),a=t(87755),c=t(17634),o=t(60947),s=t(92336),d=t(97078),l=t.n(d),u=t(96822),f=function(e){var n=e.query,t=e.token,i=e.variables,r=void 0===i?{}:i,a={operationName:/(query|mutation) ([a-zA-Z0-9]+)/.exec(n)[2],query:n,variables:r},c={"Content-Type":"application/json","X-CORE-SITE":u.Ey};return t&&(c.Authorization="Bearer "+t),fetch(u.Z2,{method:"POST",headers:c,body:JSON.stringify(a)})},x=function(){var e=(0,o.Z)((function(e,n){var t;return(0,s.__generator)(this,(function(i){switch(i.label){case 0:return[4,f({query:"\n  mutation activateLicense($id: String!) {\n    activateLicense(id: $id) {\n      id\n    }\n  }\n",variables:{id:n},token:e})];case 1:return[4,i.sent().json()];case 2:return[2,null===(t=i.sent())||void 0===t?void 0:t.data.activateLicense]}}))}));return function(n,t){return e.apply(this,arguments)}}(),b=x,g=t(2099),m=t.n(g),p=t(35103),h=function(e){var n=e.token,t=e.cy,a=(0,r.useState)(""),c=a[0],d=a[1],u=(0,r.useState)(!1),f=u[0],x=u[1],g=function(){var e=(0,o.Z)((function(){return(0,s.__generator)(this,(function(e){switch(e.label){case 0:return[4,b(n,c)];case 1:return e.sent().id?[3,2]:(x(!0),[3,4]);case 2:return[4,m().push("/courses/purchased")];case 3:e.sent(),e.label=4;case 4:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{"data-cy":t,className:"jsx-433ea4c3702ab3f3 activation-form",children:[(0,i.jsx)("input",{type:"text",value:c,onChange:function(e){d(e.target.value)},placeholder:"XXXX-XXXX-XXXX-XXXX",className:"jsx-433ea4c3702ab3f3"}),(0,i.jsx)(p.Z,{onClick:function(){return g()},children:"Activate"}),f&&(0,i.jsx)("div",{className:"jsx-433ea4c3702ab3f3 activation-error",children:"The license code entered is invalid."})]}),(0,i.jsx)(l(),{id:"433ea4c3702ab3f3",children:".container.jsx-433ea4c3702ab3f3{margin-left:0;margin-right:0;padding:0;display:inline-block;position:relative;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background-color:rgb(255,255,255)}.activation-container.jsx-433ea4c3702ab3f3{margin-top:0;margin-left:0;padding:20px 30px;display:inline-block;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;height:auto;vertical-align:top;width:100%}.activation-header.jsx-433ea4c3702ab3f3{display:block;padding-bottom:24px;border-bottom:1px solid rgb(194,194,194)}.activation-header.jsx-433ea4c3702ab3f3 h2.jsx-433ea4c3702ab3f3{cursor:default;font-size:24px;margin:0;text-align:center}.activation-form.jsx-433ea4c3702ab3f3{margin:0 auto;display:grid;grid-template-columns:1fr}.activation-error.jsx-433ea4c3702ab3f3{color:red;text-align:left;padding-top:10px}input.jsx-433ea4c3702ab3f3{padding-left:20px;height:49px;margin-bottom:20px}@media screen and (min-width:768px){.activation-form.jsx-433ea4c3702ab3f3{width:500px;display:grid;grid-template-columns:1fr 100px;grid-column-gap:15px}input.jsx-433ea4c3702ab3f3{margin-bottom:0}}"})]})},v=t(51698),j=t(50239),y=t(47574),w=function(){(0,r.useContext)(y.ZP).customer;return(0,i.jsx)(i.Fragment,{})},k=!0;function _(e){var n=e.token,t=e.customer;return(0,i.jsxs)(c.Z,{children:[(0,i.jsx)(j.Z,{children:"License Activation"}),t.guest?(0,i.jsx)(a.Z,{cy:"login-required",children:"Please log in before attempting to activate a license."}):(0,i.jsx)(h,{token:n,cy:"activation-form"}),(0,i.jsx)(w,{})]})}_.Layout=v.Z},8192:function(e,n,t){e.exports=t(40756)}},function(e){e.O(0,[133,180,774,888,179],(function(){return n=4756,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
2//# sourceMappingURL=activate-049a30595819b24c.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.