PageSourceSearch

https://lightbulbman.com/_next/static/chunks/pages/claim-466c820db979025c.js

js lightbulbman.com collected 2026-10-07 11:37:42 UTC 25,447 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[835],{4578:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/claim",function(){return t(2303)}])},6155:function(e,n,t){"use strict";t.d(n,{$t:function(){return h},DK:function(){return x},Dx:function(){return m},Zt:function(){return f},im:function(){return p},mL:function(){return u}});var r=t(2729),i=t(4141);function o(){let e=(0,r._)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: ",";\n  flex-direction: column;\n  padding-bottom: 40px;\n  border-bottom: 1px dashed ",";\n\n  "," {\n    padding-bottom: 20px;\n  }\n"]);return o=function(){return e},e}function a(){let e=(0,r._)(["\n  display: flex;\n  max-width: 1600px;\n  padding: 0 30px;\n  width: 100%;\n  align-items: center;\n  flex-direction: column;\n  "," {\n    justify-items: left;\n    padding: 10px;\n  }\n"]);return a=function(){return e},e}function l(){let e=(0,r._)(["\n  display: flex;\n  max-width: 750px;\n  font-size: 64px;\n  margin-top: 20px;\n  font-weight: 700;\n  line-height: 75px;\n  letter-spacing: 0em;\n  text-align: center;\n\n  "," {\n    font-size: 40px;\n    line-height: 50px;\n    text-align: center;\n  }\n"]);return l=function(){return e},e}function s(){let e=(0,r._)(["\n  display: flex;\n  justify-content: center;\n  width: 100%;\n  flex: 1;\n  padding-bottom: 24px;\n  padding-top: 64px;\n  letter-spacing: 0px;\n  color: black;\n  text-align: left;\n  font-size: 28px;\n  letter-spacing: 0px;\n  text-transform: uppercase;\n  opacity: 1;\n  max-width: 650px;\n  text-align: center;\n\n  "," {\n    justify-content: left;\n    text-align: left;\n    padding-top: 94px;\n  }\n"]);return s=function(){return e},e}function c(){let e=(0,r._)(["\n  color: ",";\n  font-size: 24px;\n  font-weight: 600;\n  font-style: normal;\n  letter-spacing: normal;\n  line-height: ",";\n  text-align: center;\n  padding: 24px 0 0 0;\n  max-width: 500px;\n\n  "," {\n    text-align: center;\n    font-size: 20px;\n  }\n"]);return c=function(){return e},e}function d(){let e=(0,r._)(["\n  display: flex;\n  flex: 1;\n"]);return d=function(){return e},e}let u=i.ZP.div(o(),e=>e.theme.colors.background,e=>e.theme.colors.primary,e=>e.theme.media.mobile),p=i.ZP.div(a(),e=>e.theme.media.mobile),m=i.ZP.div(l(),e=>e.theme.media.mobile),h=i.ZP.div(s(),e=>e.theme.media.mobile),x=i.ZP.div(c(),e=>e.theme.colors.primary,e=>e.theme.media.mobile?"28px":"33.6px",e=>e.theme.media.mobile),f=i.ZP.div(d())},4623:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var r=t(2729),i=t(5893);t(7294);var o=t(4141),a=t(1664),l=t.n(a),s=e=>(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"long-arrow-down",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M261.573 286.544L196 352.118V56c0-13.255-10.745-24-24-24h-24c-13.255 0-24 10.745-24 24v296.118l-65.573-65.574c-9.373-9.373-24.569-9.373-33.941 0L7.515 303.515c-9.373 9.373-9.373 24.569 0 33.941L143.03 472.97c9.373 9.373 24.568 9.373 33.941 0l135.515-135.514c9.373-9.373 9.373-24.569 0-33.941l-16.971-16.971c-9.373-9.373-24.569-9.373-33.942 0z"})});function c(){let e=(0,r._)(["\n  display: flex;\n  justify-content: center;\n  width: 100%;\n  background: ",";\n  color: ",";\n\n  "," {\n    flex-direction: column;\n    padding-bottom: 2em;\n  }\n"]);return c=function(){return e},e}function d(){let e=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n\n  padding-bottom: 16px;\n\n  "," {\n    flex: 1;\n    justify-content: space-between;\n    height: 100%;\n    max-width: 1200px;\n  }\n\n  "," {\n    flex-direction: column;\n    width: 100%;\n    justify-content: center;
1\n    align-items: center;\n  }\n  "," {\n    padding-left: 16px;\n  }\n"]);return d=function(){return e},e}function u(){let e=(0,r._)(["\n  font-size: 20px;\n  line-height: 26px;\n\n  "," {\n    text-align: center;\n  }\n"]);return u=function(){return e},e}function p(){let e=(0,r._)(["\n  display: flex;\n  flex: 1;\n  width: 100%;\n  justify-content: space-between;\n\n  "," {\n    flex-direction: column;\n  }\n"]);return p=function(){return e},e}function m(){let e=(0,r._)(["\n  display: flex;\n  flex-direction: column;\n\n  "," {\n    text-align: center;\n    padding: 1em;\n  }\n"]);return m=function(){return e},e}function h(){let e=(0,r._)(["\n  display: flex;\n  align-items: center;\n  text-transform: uppercase;\n  font-size: 24px;\n  line-height: 26px;\n  padding-bottom: 1em;\n  gap: 8px;\n\n  "," {\n    justify-content: center;\n  }\n"]);return h=function(){return e},e}function x(){let e=(0,r._)(["\n  opacity: 0.8;\n  padding: 0.5em 0;\n  text-decoration: underline;\n  text-underline-offset: 2px;\n"]);return x=function(){return e},e}function f(){let e=(0,r._)(["\n  padding: 54px 0px 6px 0;\n  display: flex;\n  flex-direction: column;\n  flex: 1;\n"]);return f=function(){return e},e}function g(){let e=(0,r._)(["\n  letter-spacing: 0;\n  text-align: left;\n  font-size: 32px;\n  letter-spacing: 0px;\n  padding: 48px 0;\n  text-transform: uppercase;\n\n  "," {\n    text-align: center;\n  }\n"]);return g=function(){return e},e}let b=o.ZP.div(c(),e=>e.theme.colors.primary,e=>e.theme.colors.background,e=>e.theme.media.mobile),y=o.ZP.div(d(),e=>e.theme.media.desktop,e=>e.theme.media.mobile,e=>e.theme.media.medium),j=o.ZP.div(u(),e=>e.theme.media.mobile),v=o.ZP.div(p(),e=>e.theme.media.mobile),w=o.ZP.div(m(),e=>e.theme.media.mobile),_=o.ZP.div(h(),e=>e.theme.media.mobile),k=o.ZP.div(x()),Z=o.ZP.div(f()),P=o.ZP.div(g(),e=>e.theme.media.mobile);var S=e=>{let{mobile:n}=e;return(0,i.jsx)(b,{children:(0,i.jsxs)(y,{children:[(0,i.jsxs)(P,{children:["THE LIGHTBULB MAN",n?(0,i.jsx)("br",{}):" - ","Bjarne Melgaard"]}),(0,i.jsxs)(v,{children:[(0,i.jsxs)(w,{children:[(0,i.jsxs)(_,{children:["social",(0,i.jsx)(s,{height:"20px"})]}),(0,i.jsxs)(k,{children:[" ",(0,i.jsx)("a",{href:"http://discord.gg/lightbulbman",target:"_blank",rel:"noreferrer noopener",children:"Discord"})]}),(0,i.jsxs)(k,{children:[" ",(0,i.jsx)("a",{href:"https://twitter.com/lightbulbmannft",target:"_blank",rel:"noreferrer noopener",children:"Twitter"})]}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://instagram.com/lightbulbmannft",target:"_blank",rel:"noreferrer noopener",children:"Instagram"})})]}),(0,i.jsxs)(w,{children:[(0,i.jsxs)(_,{children:["art",(0,i.jsx)(s,{height:"20px"})]}),(0,i.jsx)(k,{children:(0,i.jsx)(l(),{href:"https://opensea.io/TheLightbulbman/created",children:"Gallery"})}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://etherscan.io/address/0x4c9a6c3fe98b5ae3a8c652709a1e04574aec1702",target:"_blank",rel:"noreferrer noopener",children:"Contract"})}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://coinweb.com/news/the-lightbulbman-nft-project/",target:"_blank",rel:"noreferrer noopener",children:"LightBulbman Review"})})]}),(0,i.jsxs)(w,{children:[(0,i.jsxs)(_,{children:["Connect",(0,i.jsx)(s,{height:"20px"})]}),(0,i.jsx)(k,{children:(0,i.jsx)(l(),{href:"/contact",children:"Contact"})}),(0,i.jsx)(k,{children:(0,i.jsx)(l(),{href:"/terms-and-conditions",children:"Terms and conditions"})})]}),(0,i.jsxs)(w,{children:[(0,i.jsxs)(_,{children:["Rarity",(0,i.jsx)(s,{height:"20px"})]}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://rarity.tools/thelightbulbman",target:"_blank",rel:"noreferrer noopener",children:"Rarity Tools"})}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://raritysniper.com/the-lightbulbman",target:"_blank",rel:"noreferrer noopener",children:"Rarity Sniper"})})]}),(0,i.jsxs)(w,{children:[(0,i.jsxs)(_,{children:["Marketplace",(0,i.jsx)(s,{height:"20px"})]}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://opensea.io/TheLightbulbman/created",target:"_blank",rel:"noreferrer noopener",children:"OpenSea"})}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://rarible.com/lightbulbman/",target:"_blank",rel:"noreferrer noopener",children:"Rarible Lightbulbman"})}),(0,i.jsx)(k,{children:(0,i.jsx)("a",{href:"https://looksrare.org/collections/0x4C9A6c3FE98B5aE3a8c652709a1e04574aec1702",target:"_blank",rel:"noreferrer noopener",children:"Looksrare Lightbulbman"})})]})]}),(0,i.jsxs)(Z,{children:[(0,i.jsx)(j,{children:"The future of art, reimagined"}),(0,i.jsx)(j,{children:"Copyright \xa9 Bjarne Melgaard | NFT AS 2021 "})]})]})})}},2303:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return eD}});var r,i=t(2729),o=t(5893),a=t(7294),l=t(4141),s=t(6526),c=t(2027),d=t(4623),u=t(6155),p=e=>{let{mobile:n}=e;return(0,o.jsx)(u.mL,{children:(0,o.jsxs)(u.im,{children:[(0,o.jsx)(u.$t,{}),(0,o.jsx)(u.Dx,{children:"Claim Your Lightbulb Man Print"}),(0,o.jsxs)(u.DK,{children:["All Lightbulb Man NFTs has one unique print to claim. Check availability and claim your LBM NFT printable version! Once it is claimed it can not be claimed again."," "]})]})})},m=t(5066),h=t(4306),x=t(1163);function f(){let e=(0,i._)(["\n  width: 187px;\n  font-size: 24px;\n  border: 1px dashed rgba(0, 0, 0, 0.4);\n  color: black;\n  padding: 0.5em 1em;\n  text-align: center;
1\n  cursor: pointer;\n  background-color: inherit;\n\n  border: ",";\n"]);return f=function(){return e},e}function g(){let e=(0,i._)(["\n  max-width: 276px;\n  min-width: 276px;\n  float: right;\n  margin-bottom: 50px;\n\n  &:hover {\n    border: 1px solid black;\n  }\n"]);return g=function(){return e},e}function b(){let e=(0,i._)(["\n  display: flex;\n  align-items: center;\n  font-size: 16px;\n  margin-bottom: 5px;\n\n  color: ",";\n"]);return b=function(){return e},e}function y(){let e=(0,i._)(["\n  display: flex;\n"]);return y=function(){return e},e}function j(){let e=(0,i._)(["\n  margin-right: 32px;\n"]);return j=function(){return e},e}let v=l.ZP.button(f(),e=>e.selected?"1px solid black":""),w=(0,l.ZP)(v)(g()),_=l.ZP.label(b(),e=>e.error?"#C90000":""),k=l.ZP.div(y()),Z=l.ZP.div(j());var P=t(3882),S=t(3813),C=t(6930),E=t(8721),I=t(4514),T=JSON.parse('{"Mt":[{"inputs":[{"internalType":"contract IERC721Enumerable","name":"_token","type":"address"},{"internalType":"uint256","name":"_claimLimit","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ClaimAdded","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"addClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isTokenOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]}'),L=t(7918),N=t.n(L),M=t(4155);let z=async(e,n)=>{try{let n=await fetch(String(M.env.NEXT_PUBLIC_CAIM_SERVICE_URL),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),t=await n.json();if(t.statusCode>=400)throw Error(t.message);return t}catch(e){n({open:!0,msg:e.message,type:"error"})}},q=new(r=new(N())(window.ethereum)).eth.Contract(T.Mt,"0x4E7b8029d7bd61c1c9Fc10EF44dFEF757A610502"),B=async e=>{if(q)return await q.methods.isClaimable(e).call()},O=async(e,n,t)=>{try{let o=await r.eth.getAccounts();if(0==o.length)window.localStorage.setItem("claimStatus","not logged in"),window.dispatchEvent(new Event("storage"));else{var i;let r=null!==(i=localStorage.getItem("metamaskWallet"))&&void 0!==i?i:"";await q.methods.addClaim(e).send({from:r}).on("sending",()=>{window.localStorage.setItem("claimStatus","sending"),window.dispatchEvent(new Event("storage"))}).on("transactionHash",async()=>{await z({claims:n},t)}).on("error",()=>{window.localStorage.setItem("claimStatus","cancelled"),window.dispatchEvent(new Event("storage"))}).on("receipt",()=>{window.localStorage.setItem("claimStatus","complete"),window.dispatchEvent(new Event("storage"))})}}catch(e){window.localStorage.setItem("claimStatus","error"),window.dispatchEvent(new Event("storage")),console.log(e)}};function F(){let e=(0,i._)(["\n  font-size: 14px;\n  margin-left: 5px;\n"]);return F=function(){return e},e}function R(){let e=(0,i._)(["\n  display: flex;\n  align-items: center;\n  margin-top: 5px;\n  color: #c90000;\n"]);return R=function(){return e},e}function A(){let e=(0,i._)(["\n  position: absolute;\n  font-size: 24px;\n  left: 10px;\n  top: 44px;\n"]);return A=function(){return e},e}function D(){let e=(0,i._)(['\n  position: relative;\n  width: 100%;\n  margin-bottom: 50px;\n  input[type="number"]::-webkit-inner-spin-button,\n  input[type="number"]::-webkit-outer-spin-button {\n    -webkit-appearance: none;\n  }\n\n  & > .'," {\n    color: black;\n  }\n\n  & ."," {\n    padding: 18px 30px;\n    font-size: 24px;\n    height: inherit;\n\n    &::placeholder {\n      font-size: 16px;\n      opacity: 0.19;\n    }\n  }\n\n  & ."," {\n    border-style: ",";\n    border-color: black;\n    border-radius: 0;\n  }\n\n  & ."," ."," {\n    border: 1px solid black;\n    transition: 0.3s border-color;\n  }\n"]);return D=function(){return e},e}function V(){let e=(0,i._)(["\n  font-size: 16px;\n  margin-top: 10px;\n  color: ",";\n"]);return V=function(){return e},e}let H=l.ZP.div(F()),U=l.ZP.div(R()),Y=l.ZP.div(A()),$=l.ZP.div(D(),S.Z.root,C.Z.input,E.Z.notchedOutline,e=>e.value&&!e.isError?"solid":"dashed",C.Z.focused,E.Z.notchedOutline),J=l.ZP.div(V(),e=>{let{status:n}=e;return n.includes("not")?"#C90000":"#17a401"});var X=e=>{let{label:n,error:t,name:r,numeric:i,checkClaimable:l,specialCode:s,...c}=e,[d,u,p]=(0,m.U$)({name:r});async function h(e){f("Loading...");var n=await B(e);return n?f("This NFT is claimable."):f("This NFT is not claimable."),n}
1let[x,f]=(0,a.useState)("Loading...");return(0,o.jsxs)($,{value:d.value,isError:!!u.error,children:[(0,o.jsx)(_,{error:u.touched&&!!u.error,children:n}),s&&(0,o.jsx)(Y,{children:"#"}),(0,o.jsx)(P.Z,{fullWidth:!0,autoComplete:"off",value:d.value,onChange:e=>{if(s){if(p.setValue(e.target.value.replace(/[^0-9]/,"").substring(0,4)),l){var n=e.target.value.replace(/[^0-9]/,"").substring(0,4);""!==n&&h(((Number(n)-Number(468)+Number("1122"))%Number("1122")).toString())}return}p.setValue(e.target.value)},onPaste:e=>(e.preventDefault(),!1),error:u.touched&&!!u.error,type:i?"number":"text",inputProps:i?{inputMode:"numeric",pattern:"[0-9]*"}:{},...c}),u.touched&&!!u.error&&(0,o.jsxs)(U,{children:[(0,o.jsx)(I.Z,{}),(0,o.jsx)(H,{children:u.error})]}),d.value&&l&&(0,o.jsx)(J,{status:x,children:x})]})},G=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(X,{name:"street",label:"Street"}),(0,o.jsxs)(k,{children:[(0,o.jsx)(X,{name:"country",label:"Country"}),(0,o.jsx)(Z,{}),(0,o.jsx)(X,{name:"city",label:"City"})]}),(0,o.jsxs)(k,{children:[(0,o.jsx)(X,{name:"postalCode",label:"Postal code"}),(0,o.jsx)(Z,{}),(0,o.jsx)(X,{name:"phone",label:"Phone number",placeholder:"Include country code (e.g. +47)"})]})]}),K=t(4934),W=t(5675),Q=t.n(W),ee=t(720),en=t(1595);function et(){let e=(0,i._)(["\n  font-size: 18px;\n  padding: 15px;\n  text-align: center;\n"]);return et=function(){return e},e}function er(){let e=(0,i._)(["\n  width: 100%;\n  max-width: 372px;\n  border-radius: 16px;\n  background: ",";\n  margin-bottom: 40px;\n\n  :hover {\n    cursor: pointer;\n  }\n\n  "," {\n    position: relative;\n    z-index: 1000;\n    background: white;\n    border-radius: 0;\n  }\n"]);return er=function(){return e},e}function ei(){let e=(0,i._)(["\n  display: flex;\n  align-items: center;\n  font-size: 24px;\n  justify-content: space-between;\n  flex-direction: row;\n  width: 100%;\n  border: 1px\n    ",";\n\n  border-radius: 8px;\n  padding: 5px 24px;\n  color: ",";\n\n  background: ",";\n\n  "," {\n    border-radius: 8px;\n    border: none;\n    border: ",";\n  }\n"]);return ei=function(){return e},e}function eo(){let e=(0,i._)(["\n  transform: ",";\n  padding: 0.5em 0;\n"]);return eo=function(){return e},e}function ea(){let e=(0,i._)(["\n  display: flex;\n\n  flex-direction: column;\n  margin-bottom: 40px;\n  border: 1px dashed ",";\n\n  "," {\n    margin-bottom: 0px;\n    box-shadow: none;\n  }\n"]);return ea=function(){return e},e}function el(){let e=(0,i._)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 10px;\n  gap: 10px;\n  height: 99px;\n  background: ",";\n  border-top: ",";\n\n  ","\n\n  ","\n\n  :hover {\n    cursor: pointer;\n  }\n"]);return el=function(){return e},e}function es(){let e=(0,i._)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 14px;\n  height: 14px;\n  border: 1px ","\n    ",";\n"]);return es=function(){return e},e}function ec(){let e=(0,i._)(["\n  background: ",";\n  width: 10px;\n  height: 10px;\n"]);return ec=function(){return e},e}let ed=l.ZP.div(et()),eu=l.ZP.div(er(),e=>e.theme.colors.background,e=>e.theme.media.mobile),ep=l.ZP.div(ei(),e=>"".concat(e.open?"solid":"dashed"," ").concat(e.theme.colors.primary),e=>e.theme.colors.primary,e=>e.theme.colors.background,e=>e.theme.media.mobile,e=>"1px solid ".concat(e.theme.colors.primary)),em=l.ZP.div(eo(),e=>e.open?"rotate(0.5turn)":"rotate(0)"),eh=l.ZP.div(ea(),e=>e.theme.colors.primary,e=>e.theme.media.mobile),ex=l.ZP.div(el(),e=>e.theme.colors.background,e=>e.firstElement?"none":"1px dashed ".concat(e.theme.colors.primary),e=>e.firstElement&&"\n    border-top-left-radius: 4px;\n    border-top-right-radius: 4px;\n  ",e=>e.lastElement&&"\n    border-bottom-left-radius: 4px;\n  border-bottom-right-radius: 4px;\n  "),ef=l.ZP.div(es(),e=>e.active?"solid":"dashed",e=>e.theme.colors.primary),eg=l.ZP.div(ec(),e=>e.theme.colors.primary);var eb=e=>{let{nfts:n,setYourNfts:t,isLoading:r}=e,[i,l]=(0,a.useState)(!1),[s,c]=(0,a.useState)(!1),d=e=>{n[e].selected=!n[e].selected,t([...n])},u=n.filter(e=>e.selected);return(0,o.jsxs)(eu,{children:[(0,o.jsxs)(ep,{onClick:()=>l(!i),open:i,children:[(0,o.jsx)(ef,{active:s,onClick:()=>
1{n.forEach(e=>{s?e.selected=!1:e.selected=!0}),c(!s),t([...n])},children:s&&(0,o.jsx)(eg,{})}),u.length>0?"Selected ".concat(u.length," NFT"):"Select NFTs",(0,o.jsx)(em,{open:i,children:(0,o.jsx)(ee.Z,{fill:i?en.Z.colors.primary:"black"})})]}),i&&(0,o.jsx)(eh,{children:r?(0,o.jsx)(ed,{children:(0,o.jsx)(K.Z,{color:"inherit"})}):n.length>0?n.map((e,t)=>(0,o.jsxs)(ex,{active:e.selected,firstElement:0===t,lastElement:t===n.length-1,onClick:()=>d(t),children:[(0,o.jsx)(ef,{active:e.selected,children:e.selected&&(0,o.jsx)(eg,{})}),"LBM ",e.value,(0,o.jsx)(Q(),{src:e.image,alt:"Lightbulbman #".concat(e.value),onError:e=>e.target.style.opacity="0",width:"79",height:"79"})]},e.value)):(0,o.jsx)(ed,{children:"No claimable items found"})})]})},ey=t(6118),ej=t(4480),ev=e=>{let{open:n,handleClose:t,msg:r,type:i}=e;return(0,o.jsx)(ey.Z,{open:n,autoHideDuration:4e3,onClose:t,children:(0,o.jsx)(ej.Z,{onClose:t,severity:i,sx:{width:"100%"},children:r})})},ew=t(8928),e_=t(4231);let ek=e_.Ry().shape({nftId:e_.Z_().min(1).max(5),name:e_.Z_().required(),surname:e_.Z_().required(),email:e_.Z_().email().required(),street:e_.Z_().required(),country:e_.Z_().required(),city:e_.Z_().required(),postalCode:e_.Z_().required("postal code is a required field"),phone:e_.Z_().matches(/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/im,"phone number is not valid").required()}),eZ=e_.Ry().shape({nftId:e_.Z_().min(1).max(5),name:e_.Z_().required(),surname:e_.Z_().required(),email:e_.Z_().email().required()});var eP=t(208);let eS=async(e,n,t)=>{try{if(e.length>0){t(!0);let i=e.map((e,n)=>{let t=(Number(e)+468)%1122,r=(0,eP.B)(Number(t),"og");return{value:"#"+Number(t),selected:!1,image:r,tokenId:e}});var r=i;for(let e of i)await B(e.tokenId.toString())||(r=r.filter(function(n){return n.value!==e.value}));n(r),t(!1)}}catch(e){t(!1),console.log(e)}},eC=(e,n)=>{let t={name:n.name,surname:n.surname,email:n.email,shipping:0},r={name:n.name,surname:n.surname,email:n.email,street:n.street,country:n.country,city:n.city,postalcode:n.postalCode,phone:n.phone,shipping:1};return e?r:t};function eE(){let e=(0,i._)(["\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  max-width: 892px;\n  margin-top: 55px;\n  padding: 0 20px;\n"]);return eE=function(){return e},e}function eI(){let e=(0,i._)(["\n  color: ",";\n  font-size: 32px;\n  font-style: normal;\n  margin-bottom: 28px;\n"]);return eI=function(){return e},e}function eT(){let e=(0,i._)(["\n  font-size: 18px;\n  margin-bottom: 20px;\n  color: ",";\n"]);return eT=function(){return e},e}function eL(){let e=(0,i._)(["\n  display: flex;\n  margin-bottom: 50px;\n"]);return eL=function(){return e},e}function eN(){let e=(0,i._)(["\n  border-top: 1px dashed black;\n  margin-bottom: 50px;\n"]);return eN=function(){return e},e}let eM=l.ZP.div(eE()),ez=l.ZP.div(eI(),e=>e.theme.colors.primary),eq=l.ZP.div(eT(),e=>e.theme.colors.primary),eB=l.ZP.div(eL()),eO=l.ZP.div(eN());var eF=e=>{let{isMobile:n}=e,[t,r]=(0,a.useState)("delivery"),[i,l]=(0,a.useState)(""),[s,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)([]),[p,f]=(0,a.useState)(""),[g,b]=(0,a.useState)([]),[y,j]=(0,a.useState)(!1),[_,P]=(0,a.useState)({open:!1,msg:"",type:"success"}),S=(0,x.useRouter)(),C=async()=>{r(""),l("pickup")};return(0,a.useEffect)(()=>{(0,h._)(s,f)},[s]),(0,a.useEffect)(()=>{p&&(0,ew.mp)(p,b)},[p,468]),(0,a.useEffect)(()=>{p&&eS(g,u,j)},[g]),(0,a.useEffect)(()=>{window.addEventListener("storage",()=>{"not logged in"===localStorage.getItem("claimStatus")?P({open:!0,msg:"You are not logged into Metamask.",type:"error"}):"cancelled"===localStorage.getItem("claimStatus")?P({open:!0,msg:"Transaction has been cancelled, please try again.",type:"error"}):"error"===localStorage.getItem("claimStatus")?P({open:!0,msg:"Something went wrong.",type:"error"}):"sending"===localStorage.getItem("claimStatus")?P({open:!0,msg:"Pending...",type:"info"}):"complete"===localStorage.getItem("claimStatus")&&(P({open:!0,msg:"Transaction complete.",type:"success"}),eS(g,u,j),S.push("/claim/order"),localStorage.removeItem("claimStatus"))})}),(0,o.jsx)(eM,{children:(0,o.jsx)(m.J9,{initialValues:{nftId:"",name:"",surname:"",email:"",street:"",country:"",city:"",postalCode:"",phone:""},validationSchema:t?ek:eZ,onSubmit:async e=>{var n=d.filter(e=>!0==e.selected);if(0!==n.length){let r=eC(t,e),i=n.reduce((e,n)=>(e.push({...r,tokenId:+n.tokenId,tokenNumber:+n.value.slice(1),ethAddress:p}),e),[]);await O(n.map(e=>e.tokenId.toString()),i,P)}},children:(0,o.jsxs)(m.l0,{children:[(0,o.jsx)(ez,{children:"Check availability"}),(0,o.jsx)(X,{label:"LBM #number (not token ID)",name:"nftId",placeholder:"Enter LBM number to check availability",checkClaimable:!0,specialCode:!0,required:!1}),(0,o.jsx)(ez,{children:"Your Order"}),(0,o.jsx)(eb,{nfts:d,setYourNfts:u,isLoading:y}),(0,o.jsx)(ez,{children:"Shipping details"}),(0,o.jsxs)(eq,{children:[(0,o.jsx)("b",{children:"Pickup"}
1)," only available in Oslo, Norway. Exact time and date will be stated in email when print is ready. Please select"," ",(0,o.jsx)("b",{children:"delivery"})," if you are not able to pick up in Oslo."]}),(0,o.jsxs)(eB,{children:[(0,o.jsx)(v,{type:"button",onClick:()=>{l(""),r("delivery")},selected:t,children:"Delivery"}),(0,o.jsx)(v,{type:"button",onClick:C,selected:i,children:"Pickup"})]}),(0,o.jsxs)(k,{children:[(0,o.jsx)(X,{label:"Name",name:"name"}),(0,o.jsx)(Z,{}),(0,o.jsx)(X,{name:"surname",label:"Surname"})]}),(0,o.jsx)(X,{name:"email",label:"Email"}),t&&(0,o.jsx)(G,{}),(0,o.jsx)(eO,{}),(0,o.jsx)(w,{type:"submit",children:"Submit"}),(0,o.jsx)(ev,{handleClose:()=>{P({..._,open:!1})},..._})]})})})};function eR(){let e=(0,i._)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  flex-direction: column;\n  background: ",";\n  min-height: 100vh;\n"]);return eR=function(){return e},e}let eA=l.ZP.div(eR(),e=>e.theme.colors.background);var eD=(0,s.C)(e=>{let{isMobile:n}=e;return(0,o.jsxs)(eA,{children:[(0,o.jsx)(c.Z,{}),(0,o.jsx)(p,{}),(0,o.jsx)(eF,{}),(0,o.jsx)(u.Zt,{}),(0,o.jsx)(d.Z,{})]})})},720:function(e,n,t){"use strict";var r=t(5893);t(7294),n.Z=e=>(0,r.jsx)("svg",{width:"22",height:"14",viewBox:"0 0 22 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{d:"M21.7005 1.49502L20.7281 0.489551C20.4973 0.250879 20.1241 0.250879 19.8933 0.489551L11 9.66572L2.10671 0.489551C1.87591 0.250879 1.50269 0.250879 1.27189 0.489551L0.299568 1.49502C0.0687639 1.73369 0.0687639 2.11963 0.299568 2.3583L10.5826 12.9919C10.8134 13.2306 11.1866 13.2306 11.4174 12.9919L21.7005 2.3583C21.9313 2.11963 21.9313 1.73369 21.7005 1.49502Z"})})},6526:function(e,n,t){"use strict";t.d(n,{C:function(){return i}});let r=e=>{let n=()=>!!e.match(/Android/i),t=()=>!!e.match(/iPhone|iPad|iPod/i),r=()=>!!e.match(/Opera Mini/i),i=()=>!!e.match(/IEMobile/i),o=()=>!!e.match(/SSR/i),a=()=>!!(n()||t()||r()||i());return{isMobile:a,isDesktop:()=>!!(!a()&&!o()),isAndroid:n,isIos:t,isSSR:o}};function i(e){let n=e.getInitialProps;return e.getInitialProps=async e=>{var t;let i=e.req?e.req.headers["user-agent"]:null===(t=navigator)||void 0===t?void 0:t.userAgent,o=r(null!=i?i:"").isMobile(),a={};return void 0!==n&&(a=await n(e)),{userAgent:i,isMobile:o,...a}},e}}},function(e){e.O(0,[869,977,931,27,888,774,179],function(){return e(e.s=4578)}),_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.