1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9627],{88640:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/stripe/30-off",function(){return t(79899)}])},79899:function(n,e,t){"use strict";t.r(e);var r=t(82729),o=t(85893),i=t(99428),s=t(67294),a=t(19521),c=t(55788),l=t(66653);function _templateObject(){let n=(0,r._)(["\n "," {\n margin-top: 5rem;\n }\n\n "," {\n margin-top: 5rem;\n }\n\n "," {\n margin-top: 5rem;\n }\n\n "," {\n margin-top: 5rem;\n }\n\n ",' {\n margin-top: 5rem;\n }\n\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: calc(100vh - 10rem);\n font-family: "Mulish", sans-serif;\n color: ',";\n flex-direction: column;\n\n h1 {\n margin-bottom: 2rem;\n }\n\n .coupon-container {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n color: ",';\n min-width: 300px;\n max-width: 500px;\n\n p {\n text-align: center;\n }\n }\n\n .coupon {\n position: relative;\n font-family: "Mulish", sans-serif;\n text-align: center;\n font-size: 2rem;\n padding-top: 2px;\n padding-bottom: 2px;\n color: rgb(205, 200, 194);\n background-color: ',";\n border-radius: 5px;\n border: 1px dashed ",";\n\n .copy-btn {\n position: absolute;\n right: 0px;\n top: 0px;\n width: 2rem;\n padding: 0.25rem;\n }\n }\n"]);return _templateObject=function(){return n},n}let u=a.default.div.withConfig({componentId:"sc-b958d937-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md},n=>{let{theme:e}=n;return e.breakpoints.lg},n=>{let{theme:e}=n;return e.breakpoints.xl},n=>{let{theme:e}=n;return e.colors.text1},n=>{let{theme:e}=n;return e.colors.text1},n=>{let{theme:e}=n;return e.colors.backgroundHighlight},n=>{let{theme:e}=n;return e.colors.border});e.default=function(){let[n,e]=(0,s.useState)("LOADING"),[t,r]=(0,s.useState)(0),[a,d]=(0,s.useState)(!1),p=(0,s.useRef)(null);return(0,s.useEffect)(()=>{p.current||fetchCouponCode();async function fetchCouponCode(){try{p.current=!0;let n=await fetch("/api/club/stripe/gen-discount");if(n.ok){let t=await n.json(),{code:o,expires_at:i}=t.data;e(o),setInterval(()=>{r(1e3*i-Date.now())},1e3)}}catch(n){}finally{p.current=!1}}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.Z,{}),(0,o.jsxs)(u,{children:[(0,o.jsx)("h1",{children:"30% off coupon code for Cod\xe9dex Club!"}),(0,o.jsxs)("div",{className:"coupon-container",children:[(0,o.jsxs)("mark",{className:"coupon",children:[n,(0,o.jsx)("div",{className:"nes-pointer",onClick:()=>{navigator.clipboard.writeText(n),d(!0),setTimeout(()=>{d(!1)},1e3)},children:a?(0,o.jsx)(l.vyQ,{className:"copy-btn",color:"lightgreen"}):(0,o.jsx)(c.m54,{className:"copy-btn",style:{transform:"rotate(270deg)"}})})]}),(0,o.jsxs)("p",{children:["Expires in ",Math.floor(t/864e5)," ","days,"," ",Math.floor(t%864e5/36e5)," ","hours,"," ",Math.floor(t%36e5/6e4)," ","minutes, ",Math.floor(t%6e4/1e3)," ","seconds."]}),(0,o.jsx)("p",{children:"New code will be auto-generated 7 days before the current code expires."})]})]})]})}}},function(n){n.O(0,[1272,8700,1057,3777,4153,1622,9280,9428,9774,2888,179],function(){return n(n.s=88640)}),_N_E=n.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.