1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6866],{21228:function(e,t,n){"use strict";n.d(t,{p:function(){return k}});var s,r,a,l=n(19642),i=n(67294),o=n(133),c=n(58529),d=n(57471),u=n(62659),m=n(79016),f=n(92506),x=n(3980),g=n(56637);!function(e){e[e.Open=0]="Open",e[e.Closed=1]="Closed"}(r||(r={})),function(e){e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel"}(a||(a={}));var p=((s={})[a.ToggleDisclosure]=function(e){var t;return(0,l.gY)({},e,{disclosureState:(0,o.E)(e.disclosureState,(t={},t[r.Open]=r.Closed,t[r.Closed]=r.Open,t))})},s[a.CloseDisclosure]=function(e){return e.disclosureState===r.Closed?e:(0,l.gY)({},e,{disclosureState:r.Closed})},s[a.LinkPanel]=function(e){return!0===e.linkedPanel?e:(0,l.gY)({},e,{linkedPanel:!0})},s[a.UnlinkPanel]=function(e){return!1===e.linkedPanel?e:(0,l.gY)({},e,{linkedPanel:!1})},s[a.SetButtonId]=function(e,t){return e.buttonId===t.buttonId?e:(0,l.gY)({},e,{buttonId:t.buttonId})},s[a.SetPanelId]=function(e,t){return e.panelId===t.panelId?e:(0,l.gY)({},e,{panelId:t.panelId})},s),h=(0,i.createContext)(null);function v(e){var t=(0,i.useContext)(h);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+k.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,v),n}return t}h.displayName="DisclosureContext";var y=(0,i.createContext)(null);function b(e){var t=(0,i.useContext)(y);if(null===t){var n=new Error("<"+e+" /> is missing a parent <"+k.name+" /> component.");throw Error.captureStackTrace&&Error.captureStackTrace(n,b),n}return t}y.displayName="DisclosureAPIContext";var j=(0,i.createContext)(null);function w(e,t){return(0,o.E)(t.type,p,e,t)}j.displayName="DisclosurePanelContext";var N=i.Fragment;function k(e){var t,n=e.defaultOpen,s=void 0!==n&&n,d=(0,l.gK)(e,["defaultOpen"]),u="headlessui-disclosure-button-"+(0,f.M)(),m="headlessui-disclosure-panel-"+(0,f.M)(),g=(0,i.useReducer)(w,{disclosureState:s?r.Open:r.Closed,linkedPanel:!1,buttonId:u,panelId:m}),p=g[0].disclosureState,v=g[1];(0,i.useEffect)((function(){return v({type:a.SetButtonId,buttonId:u})}),[u,v]),(0,i.useEffect)((function(){return v({type:a.SetPanelId,panelId:m})}),[m,v]);var b=(0,i.useCallback)((function(e){v({type:a.CloseDisclosure});var t=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:document.getElementById(u):document.getElementById(u);null==t||t.focus()}),[v,u]),j=(0,i.useMemo)((function(){return{close:b}}),[b]),k=(0,i.useMemo)((function(){return{open:p===r.Open,close:b}}),[p,b]);return i.createElement(h.Provider,{value:g},i.createElement(y.Provider,{value:j},i.createElement(x.up,{value:(0,o.E)(p,(t={},t[r.Open]=x.ZM.Open,t[r.Closed]=x.ZM.Closed,t))},(0,c.sY)({props:d,slot:k,defaultTag:N,name:"Disclosure"}))))}var C=(0,c.yV)((function e(t,n){var s=v([k.name,e.name].join(".")),o=s[0],f=s[1],x=(0,i.useRef)(null),p=(0,d.T)(x,n),h=(0,i.useContext)(j),y=null!==h&&h===o.panelId,b=(0,i.useCallback)((function(e){var t;if(y){if(o.disclosureState===r.Closed)return;switch(e.key){case u.R.Space:case u.R.Enter:e.preventDefault(),e.stopPropagation(),f({type:a.ToggleDisclosure}),null==(t=document.getElementById(o.buttonId))||t.focus()}}else switch(e.key){case u.R.Space:case u.R.Enter:e.preventDefault(),e.stopPropagation(),f({type:a.ToggleDisclosure})}}),[f,y,o.disclosureState]),w=(0,i.useCallback)((function(e){if(e.key===u.R.Space)e.preventDefault()}),[]),N=(0,i.useCallback)((function(e){var n;(0,m.P)(e.currentTarget)||(t.disabled||(y?(f({type:a.ToggleDisclosure}),null==(n=document.getElementById(o.buttonId))||n.focus()):f({type:a.ToggleDisclosure})))}),[f,t.disabled,o.buttonId,y]),C=(0,i.useMemo)((function(){return{open:o.disclosureState===r.Open}}),[o]),P=(0,g.f)(t,x),_=t,S=y?{ref:p,type:P,onKeyDown:b,onClick:N}:{ref:p,id:o.buttonId,type:P,"aria-expanded":t.disabled?void 0:o.disclosureState===r.Open,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:b,onKeyUp:w,onClick:N};return(0,c.sY)({props:(0,l.gY)({},_,S),slot:C,defaultTag:"button",name:"Disclosure.Button"})})),P=c.AN.RenderStrategy|c.AN.Static,_=(0,c.yV)((function e(t,n){var s=v([k.name,e.name].join(".")),o=s[0],u=s[1],m=b([k.name,e.name].join(".")).close,f=(0,d.T)(n,(function(){o.linkedPanel||u({type:a.LinkPanel})})),g=(0,x.oJ)(),p=null!==g?g===x.ZM.Open:o.disclosureState===r.Open;(0,i.useEffect)((function(){return function(){return u({type:a.UnlinkPanel})}}),[u]),(0,i.useEffect)((function(){var e;o.disclosureState!==r.Closed||null!=(e=t.unmount)&&!e||u({type:a.UnlinkPanel})}),[o.disclosureState,t.unmount,u]);var h=(0,i.useMemo)((function(){return{open:o.disclosureState===r.Open,close:m}}),[o,m]),y={ref:f,id:o.panelId},w=t;return i.createElement(j.Provider,{value:o.panelId},(0,c.sY)({props:(0,l.gY)({},w,y),slot:h,defaultTag:"div",features:P,visible:p,name:"Disclosure.Panel"}))}));k.Button=C,k.Panel=_},67643:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/offers/[contract]/[token_id]",function(){return n(84740)}])},80138:function(e,t,n){"use strict";var s=n(85893);t.Z=function(e){return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex flex-row justify-center items-center animate-pulse space-x-2 mx-auto mt-16",children:[(0,s.jsx)("p",{className:"text-nftyverse-brand font-semibold text-lg",children:e.text?e.text:"Fetching"}),(0,s.jsx)("div",{className:"rounded-full bg-nftyverse-link h-4 w-4"}),(0,s.jsx)("div",{className:"rounded-full bg-nftyverse-rewards-action h-4 w-4"}),(0,s.jsx)("div",{className:"rounded-full bg-nftyverse-green-action h-4 w-4"})]})})}},97248:function(e,t,n){"use strict";var s=n(47568),r=n(20414),a=n(85893),l=n(67294),i=n(2481),o=n(80129),c=n(9669),d=n.n(c),u=n(80138);
1t.Z=function(e){var t=function(){return n.assets&&n.assets[0]?n.assets[0]:y.assets&&y.assets[0]?y.assets[0]:null},n=(0,i.he)(1,0,e.contract,e.token_id),c=(0,l.useState)(null),m=(c[0],c[1]),f=(0,l.useState)(""),x=(f[0],f[1],(0,l.useState)("")),g=(x[0],x[1],(0,l.useState)(!1)),p=g[0],h=g[1],v=(0,l.useState)(null),y=v[0],b=v[1],j=(0,l.useState)(!1),w=(j[0],j[1],(0,l.useRef)(null),"/api/creator/collections");function N(){return N=(0,s.Z)((function(){var t,n,s=arguments;return(0,r.__generator)(this,(function(r){return t=s.length>0&&void 0!==s[0]?s[0]:w,n={},d()((n.method="GET",n.url=t,n)).then((function(t){h(t.data&&t.data.find((function(t){return"ERC1155"==t.type&&t.address.toLowerCase()==e.contract.toLowerCase()})))})).catch((function(e){console.log(e)})),[2]}))})),N.apply(this,arguments)}function k(){return(k=(0,s.Z)((function(t){var n;return(0,r.__generator)(this,(function(s){return n={},d()((n.method="GET",n.url=t,n.params={collection_address:e.contract,token_id:e.token_id},n)).then((function(e){b(e.data)})).catch((function(e){console.log(e)})),[2]}))}))).apply(this,arguments)}function C(){return(C=(0,s.Z)((function(){var t;return(0,r.__generator)(this,(function(n){return console.log("getListing:",e.contract,e.token_id),t={},d()((t.method="GET",t.url="/api/stripe/get-listing",t.params={contract:e.contract,token_id:e.token_id},t)).then((function(e){m(e.data)})).catch((function(e){console.log(e)})),[2]}))}))).apply(this,arguments)}return(0,l.useEffect)((function(){e.contract&&(function(){N.apply(this,arguments)}(w),function(e){k.apply(this,arguments)}("/api/creator/treasury"),function(){C.apply(this,arguments)}())}),[e.contract]),void 0===n||void 0===y?(0,a.jsx)(u.Z,{}):null==n||!p&&!e.allowMembers||null==y?null:t()?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"space-y-6",children:[t()&&t().amount&&t().amount>0&&(0,a.jsx)(a.Fragment,{children:e.children}),(0,a.jsx)(o.Z,{asset:t(),publicView:!0})]})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex flex-col items-center mt-12 space-y-4 text-gray-400",children:[(0,a.jsx)("div",{children:(0,a.jsx)(FaceFrownIcon,{className:"h-16 w-16","aria-hidden":"true"})}),(0,a.jsx)("p",{className:"text-center text-lg font-semibold",children:"PassCard Not Found"})]})})}},84740:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var s=n(85893),r=n(11163),a=n(23077),l=n(47568),i=n(20414),o=n(67294),c=n(9669),d=n.n(c),u=n(21228),m=n(49196),f=n(18346),x=n(13245),g=n(29668),p=n(6244),h=n(70256),v=n(75012),y=n(97248);function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}var j={true:"text-green-700 bg-green-50",false:"text-gray-600 bg-gray-50"},w=function(e){var t=function(){w(""),C(""),S(""),O(""),F(""),L(""),Y("")},n=1,r=100,a=(0,o.useState)(""),c=a[0],w=a[1],N=(0,o.useState)(""),k=N[0],C=N[1],P=(0,o.useState)(""),_=P[0],S=P[1],E=(0,o.useState)(""),I=E[0],O=E[1],D=(0,o.useState)(""),T=D[0],F=D[1],Z=(0,o.useState)(""),R=Z[0],L=Z[1],M=(0,o.useState)(""),B=M[0],Y=M[1],A=(0,o.useState)(""),V=A[0],z=A[1],U=(0,o.useState)(""),H=U[0],q=U[1],G=(0,o.useState)(!1),K=G[0],W=G[1],Q=(0,o.useState)(null),X=Q[0],J=Q[1],$=(0,o.useState)(null),ee=$[0],te=$[1],ne=(0,o.useState)(!1),se=ne[0],re=ne[1],ae=(0,o.useRef)(null);function le(){return(le=(0,l.Z)((function(e){return(0,i.__generator)(this,(function(t){return e.preventDefault(),q(""),I?(z(""),re(!0)):z("Please fill in all required fields."),[2]}))}))).apply(this,arguments)}function ie(){return(ie=(0,l.Z)((function(e){return(0,i.__generator)(this,(function(t){return e.preventDefault(),z(""),re(!1),oe(),[2]}))}))).apply(this,arguments)}function oe(){return ce.apply(this,arguments)}function ce(){return(ce=(0,l.Z)((function(){var n,s;return(0,i.__generator)(this,(function(r){return W(!0),n=Math.round(100*parseFloat(I)),s={},n?d()((s.method="POST",s.url="/api/offers/create-offer",s.params={contract:e.contract,token_id:e.token_id,title:c,description:k,link:_,amount_fractional:n,proof:T,answer:R,delay:B},s)).then((function(e){console.log("createOffer response:",e),q("Your offer is now live!"),de(!0),t(),W(!1)})).catch((function(e){console.log(e),z("Unable to create offer. Please try again."),W(!1)})):(z("Invalid reward amount. Please try again."),W(!1)),[2]}))}
1))).apply(this,arguments)}function de(e){return ue.apply(this,arguments)}function ue(){return(ue=(0,l.Z)((function(t){var n;return(0,i.__generator)(this,(function(s){return n={},d()((n.method="GET",n.url="/api/offers/get-offers",n.params={active:t,contract:e.contract,token_id:e.token_id},n)).then((function(e){console.log("getOffers response:",e),t?J(e.data.reverse()):te(e.data.reverse())})).catch((function(e){t?J([]):te([]),console.log("getOffers error:",e)})),[2]}))}))).apply(this,arguments)}function me(){return(me=(0,l.Z)((function(t){var n;return(0,i.__generator)(this,(function(s){return event.preventDefault(),console.log("disableOffer:",t),n={},t&&t.ref&&t.ref["@ref"]?(event.target.text="Disabling...",d()((n.method="POST",n.url="/api/offers/update-offer",n.params={ref_id:t.ref["@ref"].id,contract:e.contract,token_id:e.token_id,title:t.title,description:t.description,link:t.link,amount_fractional:t.amount_fractional,amount_currency:t.amount_currency,proof:t.proof,answer:R,delay:t.delay,active:!1},n)).then((function(e){de(!0),de(!1),console.log("disableOffer response:",e)})).catch((function(e){event.target.text="Disable",console.log(e)}))):z("Invalid offer. Please try again."),[2]}))}))).apply(this,arguments)}return(0,o.useEffect)((function(){e.contract&&(de(!0),de(!1))}),[e.contract]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(y.Z,{contract:e.contract,token_id:e.token_id,children:[(0,s.jsx)("div",{className:"bg-white border shadow-lg sm:rounded-lg",children:(0,s.jsxs)("div",{className:"px-4 py-5 sm:p-6",children:[V&&(0,s.jsx)("div",{className:"rounded-md bg-red-50 p-4 mb-5",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)(h.Z,{className:"h-5 w-5 text-red-400","aria-hidden":"true"})}),(0,s.jsx)("div",{className:"ml-3",children:(0,s.jsx)("h3",{className:"text-sm font-medium text-red-800",children:V})})]})}),H&&(0,s.jsx)("div",{className:"rounded-md bg-blue-50 p-4 mb-5",children:(0,s.jsxs)("div",{className:"flex",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)(v.Z,{className:"h-5 w-5 text-blue-400","aria-hidden":"true"})}),(0,s.jsx)("div",{className:"ml-3",children:(0,s.jsx)("h3",{className:"text-sm font-medium text-blue-800",dangerouslySetInnerHTML:{__html:H}})})]})}),(0,s.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900 mb-4",children:"Create a Points Offer on this PassCard"}),(0,s.jsxs)("p",{className:"mt-1 text-sm text-gray-500",children:["You can give out Reward Points to members for helping you grow.. such as engaging with your content, posting, etc. Points can be redeemed for perks, gifts or rewards you provide in your ",(0,s.jsx)("a",{href:"/rewards/"+e.contract+"/"+e.token_id,className:"font-semibold text-nftyverse-link",children:"Rewards Center"}),"."]}),(0,s.jsxs)("form",{children:[(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsx)("div",{className:"border-b border-gray-900/10 pb-6",children:(0,s.jsxs)("div",{className:"mt-8 grid grid-cols-1 gap-x-6 gap-y-6 sm:grid-cols-6",children:[(0,s.jsxs)("div",{className:"col-span-full",children:[(0,s.jsxs)("label",{htmlFor:"title",className:"block text-sm font-medium leading-6 text-gray-900",children:["Points Offer Title ",(0,s.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("input",{type:"text",name:"title",id:"title",placeholder:"Check out my latest video!",className:"block w-full rounded-md border-0 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-nftyverse-brand sm:text-sm sm:leading-6",onChange:function(e){return(t=e).preventDefault(),void w(t.target.value);var t},value:c})})]}),(0,s.jsxs)("div",{className:"col-span-full",children:[(0,s.jsxs)("label",{htmlFor:"description",className:"block text-sm font-medium leading-6 text-gray-900",children:["Description ",(0,s.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("textarea",{id:"description",name:"description",rows:2,placeholder:"Click the link to watch my video. The
1n, come back to claim your reward!",className:"block w-full rounded-md border-0 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-nftyverse-brand sm:text-sm sm:leading-6",defaultValue:"",onChange:function(e){return(t=e).preventDefault(),void C(t.target.value);var t},value:k})}),(0,s.jsx)("p",{className:"mt-3 text-sm leading-6 text-gray-600",children:"Make sure to accurately describe what members should do to receive their Points."})]}),(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsxs)("label",{htmlFor:"link",className:"block text-sm font-medium leading-6 text-gray-900",children:["Link ",(0,s.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("input",{type:"text",name:"link",id:"link",placeholder:"https://www.youtube.com/video",className:"block w-full rounded-md border-0 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-nftyverse-brand sm:text-sm sm:leading-6",onChange:function(e){return(t=e).preventDefault(),void S(t.target.value);var t},value:_})}),(0,s.jsx)("p",{className:"mt-3 text-sm leading-6 text-gray-600",children:"Members must click this link first."})]}),(0,s.jsxs)("div",{className:"sm:col-span-3",children:[(0,s.jsxs)("label",{htmlFor:"amount",className:"block text-sm font-medium leading-6 text-gray-900",children:["Reward Points ",(0,s.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("input",{id:"amound",name:"amount",type:"number",placeholder:"1",className:"block w-full rounded-md border-0 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-nftyverse-brand sm:text-sm sm:leading-6",onChange:function(e){return(t=e).preventDefault(),parseInt(t.target.value)<n?t.target.value="1":parseInt(t.target.value)>r&&(t.target.value="100"),void O(t.target.value);var t},value:I})}),(0,s.jsxs)("p",{className:"mt-3 text-sm leading-6 text-gray-600",children:["Between ",n,"-",r," Points"]})]})]})}),(0,s.jsx)("div",{className:"border-b border-gray-900/10 pb-6",children:(0,s.jsx)(u.p,{as:"div",defaultOpen:!1,children:function(e){var t=e.open;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{children:[(0,s.jsxs)(u.p.Button,{className:"text-left w-full flex justify-between items-start",children:[(0,s.jsx)("h2",{className:"text-base font-semibold leading-7 text-gray-900",children:"Optional Settings"}),(0,s.jsx)("span",{className:"ml-6 h-7 flex items-center text-gray-400",children:(0,s.jsx)("div",{className:"mx-auto flex items-center justify-center h-7 w-7 rounded-full bg-gray-100",children:(0,s.jsx)(x.Z,{className:b(t?"-rotate-180":"rotate-0","h-5 w-5 transform"),"aria-hidden":"true"})})})]}),(0,s.jsx)(u.p.Panel,{children:(0,s.jsxs)("div",{className:"mt-8 grid grid-cols-1 gap-x-6 gap-y-6 sm:grid-cols-6",children:[(0,s.jsxs)("div",{className:"col-span-full",children:[(0,s.jsx)("label",{htmlFor:"proof",className:"block text-sm font-medium leading-6 text-gray-900",children:"Proof Question"}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("input",{type:"text",name:"proof",id:"proof",placeholder:"What's your YouTube name? or, What food is my video about?",className:"block w-full rounded-md border-0 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-nftyverse-brand sm:text-sm sm:leading-6",onChange:function(e){return(t=e).preventDefault(),void F(t.target.value);var t},value:T})}),(0,s.jsx)("p",{className:"mt-3 text-sm leading-6 text-gray-600",children:"Only fill this out if you require proof. Ask members to fill something in here.. like a social username, link, keyword, number etc. - so you can check that they completed the action. Leave blank if you don't need proof besides clicking the link."})]}),(0,s.jsxs)("div",{className:"col-span-full sm:col-span-3 sm:col-start-1",children:[(0,s.jsx)("label",{htmlFor:"answer",className:"block text-sm font-medium leading-6 text-gray-900",children:"Proof Answer (optional)"}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("input",{type:"text",name:"answer",id:"answer",placeholder:"burritos",className:"block w-full rounded-md border-0 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-nftyverse-brand sm:text-sm sm:leading-6",onChange:function(e){return(t=e).preventDefault(),void L(t.target.value);var t},value:R})}),(0,s.jsx)("p",{className:"mt-3 text-sm leading-6 text-gray-600",children:"Only fill this out if the proof should match this answer exactly. (upper / lowercase doesn't matter)"})]}),(0,s.jsxs)("div",{className:"col-span-full sm:col-span-3 sm:col-start-1",children:[(0,s.jsx)("label",{htmlFor:"delay",className:"block text-sm font-medium leading-6 text-gray-900",children:"Reward Delay (seconds)"}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("input",{type:"number",name:"delay",id:"delay",placeholder:"5",className:"block w-full rounded-md border-0 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-nftyverse-brand sm:text-sm sm:leading-6",onChange:function(e){return(t=e).preventDefault(),void Y(t.target.value);var t},value:B})}),(0,s.jsx)("p",{className:"mt-3 text-sm leading-6 text-gray-600",children:"How many seconds to wait after clicking the link, before they can claim Points."})]})]})})]})})}},"advanced")})]}),(0,s.jsx)("div",{className:"mt-6 flex items-center justify-end gap-x-6",children:(0,s.jsxs)("button",{disabled:K,type:"submit",onClick:function(e){return le.apply(this,arguments)},className:"mt-3 w-full inline-flex items-center justify-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md nftyverse_button disabled:opacity-50",children:[K&&(0,s.jsx)(s.Fragment,{children:"Creating Points Offer..."}),!K&&(0,s.jsx)(s.Fragment,{children:"Create New Points Offer"})]})})]})]})}),(0,s.jsx)("div",{className:"bg-white border shadow-lg sm:rounded-lg",children:(0,s.jsxs)("div",{className:"px-4 py-5 sm:p-6",children:[(0,s.jsx)("h3",{className:"text-lg leading-6 font-medium text-gray-900 mb-4",children:"Your Points Offers"}),X&&ee&&(X.length>0||ee.length>0)?(0,s.jsx)("ul",{role:"list",className:"divide-y divide-gray-100",children:X.concat(ee).map((function(e,t){return(0,s.jsxs)("li",{className:"flex items-center justify-between gap-x-6 py-5",children:[(0,s.jsxs)("div",{className:"min-w-0 flex gap-x-4",children:[e.image?(0,s.jsx)("img",{className:"mt-2 h-12 w-12 flex-none bg-gray-50 object-cover rounded-md",src:e.image,alt:""}):(0,s.jsx)(g.Z,{className:"h-12 w-12 text-green-700"}),(0,s.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,s.jsxs)("div",{className:"flex items-start gap-x-3",children:[(0,s.jsx)("p",{className:"text-sm sm:text-base font-semibold leading-6 text-gray-900",children:e.title}),(0,s.jsxs)("p",{className:b(j[e.active],"whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium"),children:[e.active?"Active":"Disabled"," (+",e.amount_fractional/100," Point",100==e.amount_fractional?"":"s",")"]})]}),(0,s.jsx)("div",{className:"mt-1 flex items-center gap-x-2 text-sm leading-5 text-gray-600",children:(0,s.jsx)("p",{children:e.description})}),(0,s.jsx)("div",{className:"flex items-center gap-x-2 text-xs leading-5 text-gray-500",children:(0,s.jsx)("p",{className:"truncate",children:e.link})}),(0,s.jsx)("div",{className:"flex items-center gap-x-2 text-xs leading-5 text-gray-500",children:(0,s.jsx)("p",{className:"truncate",children:e.proof?"Proof Question: "+e.proof:""})}),(0,s.jsx)("div",{className:"flex items-center gap-x-2 text-xs leading-5 text-gray-500",children:(0,s.jsx)("p",{className:"truncate",children:e.answer?"Proof Answer: "+e.answer:""})})]})]}),e.active&&(0,s.jsx)("div",{className:"flex flex-none items-center gap-x-4",children:(0,s.jsx)("a",{href:"#",className:"rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",onClick:function(){return function(e){return me.apply(this,arguments)}(e)},children:"Disable"})})]},e.ref&&e.ref["@ref"]?e.ref["@ref"].id:t)}))}):(0,s.jsx)(s.Fragment,{children:"none"})]})})]}),(0,s.jsx)(m.u.Root,{show:se,as:o.Fragment,children:(0,s.jsx)(f.V,{as:"div",className:"fixed z-10
1inset-0 overflow-y-auto",initialFocus:ae,onClose:re,children:(0,s.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,s.jsx)(m.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,s.jsx)(f.V.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,s.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,s.jsx)(m.u.Child,{as:o.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,s.jsxs)("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full",children:[(0,s.jsx)("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:(0,s.jsxs)("div",{className:"sm:flex sm:items-start",children:[(0,s.jsx)("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",children:(0,s.jsx)(p.Z,{className:"h-6 w-6 text-nftyverse-brand","aria-hidden":"true"})}),(0,s.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,s.jsx)(f.V.Title,{as:"h3",className:"text-lg leading-6 font-medium text-gray-900",children:"Create Points Offer"}),(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"Please confirm that you want to create this Points Offer and make it ACTIVE for all of your members."})})]})]})}),(0,s.jsxs)("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[(0,s.jsx)("button",{type:"button",className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium nftyverse_button sm:ml-3 sm:w-auto sm:text-sm",onClick:function(e){return ie.apply(this,arguments)},children:"Yes, Continue"}),(0,s.jsx)("button",{type:"button",className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:function(){return re(!1)},ref:ae,children:"Cancel"})]})]})})]})})})]})},N=function(e){var t=(0,r.useRouter)();return(0,s.jsx)(a.Z,{children:(0,s.jsx)(w,{contract:t.query.contract,token_id:t.query.token_id})})}},13245:function(e,t,n){"use strict";var s=n(67294);const r=s.forwardRef((function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}));t.Z=r},6244:function(e,t,n){"use strict";var s=n(67294);const r=s.forwardRef((function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}));t.Z=r},75012:function(e,t,n){"use strict";var s=n(67294);const r=s.forwardRef((function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}));t.Z=r},70256:function(e,t,n){"use strict";var s=n(67294);const r=s.forwardRef((function({title:e,titleId:t,...n},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z",clipRule:"evenodd"}))}));t.Z=r}},function(e){e.O(0,[5646,750,2626,6357,3077,129,9774,2888,179],(function(){return t=67643,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.