1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7174],{54448:function(e,t,i){i.r(t);var s=i(26042),n=i(85893),l=i(67294),o=i(50828),r=i(64593),c=i(82529),a=i(49089),u=i(66010),d=i(49106),m=i(40428),f=(0,o.Pi)((function(e){var t=e.history,i=(0,c.Z)(),o=i.commonStore,f=i.userStore,x=(0,l.useState)(""),g=x[0],h=x[1],b=(0,l.useState)(!1),p=b[0],v=b[1];(0,l.useEffect)((function(){o.isLoggedIn||(u.ZP.success("You're not logged in."),window.location="/login")}),[o.isLoggedIn]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.q,{children:[(0,n.jsx)("title",{children:"Claim Tour"}),(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,n.jsxs)("div",{className:"flex min-h-full flex-1 flex-col justify-center px-6 py-12 lg:px-8",children:[(0,n.jsx)("div",{className:"sm:mx-auto sm:w-full sm:max-w-sm",children:(0,n.jsx)("h2",{className:"mt-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900",children:"Claim Your Tour"})}),(0,n.jsx)("div",{className:"mt-10 sm:mx-auto sm:w-full sm:max-w-sm",children:(0,n.jsxs)("form",{className:"space-y-6",onSubmit:function(e){e.preventDefault(),v(!0),d.Z.Collections.redeemCollection(g).then((function(){return t.push("/dashboard")})).catch((function(){u.ZP.error("Code is invalid or redeemed.")})).finally((function(){v(!1),a.default.event((0,s.Z)({category:"account",action:"claim",label:"tour"},f.CustomGAItems))}))},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"flex items-center justify-between",children:(0,n.jsx)("label",{htmlFor:"code",className:"block text-sm font-medium leading-6 text-gray-900",children:"Claim Code"})}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)("input",{id:"code",name:"code",type:"text",required:!0,value:g,onChange:function(e){h(e.target.value)},className:"block w-full rounded-md border-0 px-3 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"})})]}),(0,n.jsx)("div",{children:f.isSubscriber?(0,n.jsxs)("button",{type:"submit",disabled:p,className:"flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:[p&&(0,n.jsxs)("svg",{className:"-ml-0.5 mr-1.5 h-5 w-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Claim Tour"]}):(0,n.jsx)(m.Z,{className:"flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",text:"Claim Tour"})})]})}),(0,n.jsx)(u.x7,{})]})]})}));t.default=f},99534:function(e,t,i){function s(e,t){if(null==e)return{};var i,s,n=function(e,t){if(null==e)return{};var i,s,n={},l=Object.keys(e);for(s=0;s<l.length;s++)i=l[s],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(s=0;s<l.length;s++)i=l[s],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}i.d(t,{Z:function(){return s}})}}]);
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.