PageSourceSearch

https://watersandacland-ternary.herokuapp.com/js/main.2bbc6834.chunk.js

js watersandacland-ternary.herokuapp.com collected 2026-10-03 14:53:19 UTC 132,493 bytes, 2 lines download raw bytes

1(this["webpackJsonpternary-frontend-boilerplate"]=this["webpackJsonpternary-frontend-boilerplate"]||[]).push([[0],{100:function(e,t){e.exports={countries:{US:"United States",CA:"Canada",GB:"United Kingdom",AU:"Australia",AF:"Afghanistan",AX:"Aland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BA:"Bosnia and Herzegovina",BW:"Botswana",BV:"Bouvet Island",BR:"Brazil",IO:"British Indian Ocean Territory",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos (Keeling) Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CD:"Congo, the Democratic Republic of the",CK:"Cook Islands",CR:"Costa Rica",CI:"Cote D'Ivoire",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands (Malvinas)",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HM:"Heard Island and Mcdonald Islands",VA:"Holy See (Vatican City State)",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran, Islamic Republic of",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",KP:"Korea, Democratic People's Republic of",KR:"Korea, Republic of",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Lao People's Democratic Republic",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libyan Arab Jamahiriya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia, the Former Yugoslav Republic of",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia, Federated States of",MD:"Moldova, Republic of",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestinian Territory, Occupied",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russian Federation",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",CS:"Serbia and Montenegro",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syrian Arab Republic",TW:"Taiwan, Province of China",TJ:"Tajikistan",TZ:"Tanzania, United Republic of",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",UM:"United States Minor Outlying Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VE:"Venezuela",VN:"Viet Nam",VG:"Virgin Islands, British",VI:"Virgin Islands, U.s.",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"}}},101:function(e,t){e.exports={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"}},102:function(e,t){e.exports={AB:"Alberta",BC:"British Columbia",MB:"Manitoba",NB:"New Brunswick",NL:"Newfoundland and Labrador",NT:"Northwest Territories",NS:"Nova Scotia",NU:"Nunavut",ON:"Ontario",PE:"Prince Edward Island",QC:"Quebec",SK:"Saskatchewan",YT:"Yukon Territory"}},104:function(e,t){},111:function(e,t,a){"use strict";a.p},112:function(e,t,a){"use strict";(function(e){a(1);var n=a(96),c=a(18),i=a(123),o=a(98),r=a(124),l=a(121),s=(a(5),a(0)),d=a(19);e.jQuery=a(19),window.$=d;t.a=function(){return Object(s.jsx)(n.a,{children:Object(s.jsx)("div",{children:Object(s.jsxs)(c.c,{children:[Object(s.jsx)(c.a,{path:"/order/:key",children:Object(s.jsx)(o.a,{})}),Object(s.jsx)(c.a,{path:"/order",children:Object(s.jsx)(o.a,{})}),Object(s.jsx)(c.a,{path:"/dashboard",children:Object(s.jsx)(i.a,{})}),Object(s.jsx)(c.a,{path:"/donate",children:Object(s.jsx)(l.a,{})}),Object(s.jsx)(c.a,{path:"/",children:Object(s.jsx)(r.a,{})})]})})})}}).call(this,a(51))},121:function(e,t,a){"use strict";var n=a(3),c=a(1),i=a(24),o=(a(75),a(19),a(125)),r=a(27),l=a(52),s=a(65),d=a(49),u=a(91),b=(a(111),a(5)),j=a.n(b),p=(a(77),a(76),a(20),a(0));t.a=function(){var e=Object(o.a)(),t=e.t,a=(e.i18n,Object(c.useState)({scripts:[],color:"",secondary_color:"",name:"",logo:"",pk_key:""})),b=Object(n.a)(a,2),m=b[0],h=b[1],O=Object(c.useState)(!1),f=Object(n.a)(O,2),x=f[0],g=f[1],v=Object(c.useState)(),y=Object(n.a)(v,2),C=y[0],S=y[1],N=Object(c.useState)(""),w=Object(n.a)(N,2),A=w[0],P=w[1],L=Object(c.useState)(""),k=Object(n.a)(L,2),D=k[0],T=k[1],R=Object(c.useState)(!1),M=Object(n.a)(R,2),B=M[0],U=M[1],I=Object(c.useState)(!1),F=Object(n.a)(I,2),E=F[
10],q=F[1],K=Object(c.useState)(""),G=Object(n.a)(K,2),_=G[0],H=G[1],z=Object(c.useState)(""),V=Object(n.a)(z,2),Z=V[0],J=V[1],W=Object(c.useState)(),Y=Object(n.a)(W,2),$=Y[0],X=Y[1],Q=Object(c.useState)("USD"),ee=Object(n.a)(Q,2),te=ee[0],ae=ee[1],ne=Object(c.useState)(),ce=Object(n.a)(ne,2),ie=ce[0],oe=ce[1],re=Object(c.useState)(""),le=Object(n.a)(re,2),se=le[0],de=le[1],ue=Object(c.useRef)();Object(c.useEffect)((function(){fetch("/donationInfo").then((function(e){return e.json()})).then((function(e){e.success?(e.enable_donations||(window.location.href="/"),h(e)):window.location.href="/"})).catch((function(e){return j.a.alert(e.toString())}))}),[]),Object(c.useEffect)((function(){if(""!==m.pk_key){var e=Object(s.a)(m.pk_key);S(e),de(be()),g(!0)}}),[m]);var be=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},je=function(){if(!E){q(!0);var e={email:A,fname:_,lname:Z,message:ie,currency:te,amount:$};ue.current.getToken().then((function(t){t.error?(q(!1),U(!1),T(t.error.message)):pe(e,t.token)})).catch((function(e){return q(!1),U(!1),j.a.alert(e.message)}))}},pe=function(e,a){T(""),e.token=a.id,e.ip=a.client_ip,e.email&&e.fname&&e.lname&&e.message&&e.currency&&e.amount?fetch("/api/donate",{method:"POST",headers:{"Content-Type":"application/json","Idempotency-Key":se},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){return e.success?j.a.alert("Thank you for making your donation!",(function(){window.location.reload()})):(q(!1),U(!1),j.a.alert(t(e.error)))})).catch((function(e){return q(!1),U(!1),j.a.alert(t("Failed request ")+e.toString())})):(console.log(e),q(!1),U(!1),j.a.alert(t("Please fill in all fields")))};return Object(p.jsx)("div",{children:!0===x?Object(p.jsxs)("div",{children:[Object(p.jsxs)(i.a,{children:[Object(p.jsxs)("title",{children:["Donate - ",m.name]}),Object(p.jsx)("style",{children:"\n                  :root {\n                  --main-color: ".concat(m.color,";\n                  --secondary-color: ").concat(m.secondary_color,";\n                  }\n                  html, body {\n                    background-color: ").concat(m.color," !important;\n                  }\n                  .hidden {\n                     display: none !important;\n                   }")}),m.scripts.map((function(e){return"https://cdn.usefathom.com/script.js"===e&&"PlayTyme"===m.name?Object(p.jsx)("script",{"data-site":"CSEASAAW",src:e}):Object(p.jsx)("script",{src:e})}))]}),Object(p.jsx)("form",{id:"donate-form",onSubmit:function(e){e.preventDefault(),B||(U(!0),je())},children:Object(p.jsx)("div",{className:"container",children:Object(p.jsx)("div",{className:"row",children:Object(p.jsxs)("div",{className:"col-lg-12",children:[Object(p.jsxs)("h1",{children:["Donate to ",m.name]}),Object(p.jsx)("div",{style:{marginTop:-15,marginBottom:15,textAlign:"center"},className:"row logo-row",children:Object(p.jsx)("div",{className:"col-12",children:Object(p.jsx)("img",{className:"logo",src:m.logo})})}),Object(p.jsxs)("div",{style:{marginTop:0,marbinBottom:0},className:"row",children:[Object(p.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(p.jsx)("input",{id:"fname",className:"input-field billing-field",name:"firstname",type:"text",placeholder:t("First Name"),required:!0,value:_,onChange:function(e){return H(e.target.value)}})}),Object(p.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(p.jsx)("input",{id:"lname",className:"input-field billing-field",name:"lastname",type:"text",placeholder:t("Last Name"),required:!0,value:Z,onChange:function(e){return J(e.target.value)}})})]}),Object(p.jsx)("input",{id:"email",className:"input-field",name:"email",type:"email",placeholder:"Email",required:!0,value:A,onChange:function(e){return P(e.target.value)}}),Object(p.jsx)("input",{value:$,onChange:function(e){X(parseFloat(e.target.value))},min:"1",placeholder:"Donation Amount",step:".01",type:"number",name:"amount",className:"form-control",required:!0}),Object(p.jsxs)("select",{value:te,onChange:function(e){ae(e.target.value)},name:"currency",className:"form-control select",required:!0,children:[Object(p.jsx)("option",{value:"USD",label:"US dollar",children:"USD"}),Object(p.jsx)("option",{value:"CAD",label:"Canadian dollar",children:"CAD"}),Object(p.jsx)("option",{value:"EUR",label:"Euro",children:"EUR"}),Object(p.jsx)("option",{value:"JPY",label:"Japanese yen",children:"JPY"}),Object(p.jsx)("option",{value:"GBP",label:"Pound sterling",children:"GBP"}),Object(p.jsx)("option",{value:"AUD",label:"Australian dollar",children:"AUD"}
1),Object(p.jsx)("option",{disabled:!0,children:"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"}),Object(p.jsx)("option",{value:"AED",label:"United Arab Emirates dirham",children:"AED"}),Object(p.jsx)("option",{value:"AFN",label:"Afghan afghani",children:"AFN"}),Object(p.jsx)("option",{value:"ALL",label:"Albanian lek",children:"ALL"}),Object(p.jsx)("option",{value:"AMD",label:"Armenian dram",children:"AMD"}),Object(p.jsx)("option",{value:"ANG",label:"Netherlands Antillean guilder",children:"ANG"}),Object(p.jsx)("option",{value:"AOA",label:"Angolan kwanza",children:"AOA"}),Object(p.jsx)("option",{value:"ARS",label:"Argentine peso",children:"ARS"}),Object(p.jsx)("option",{value:"AWG",label:"Aruban florin",children:"AWG"}),Object(p.jsx)("option",{value:"AZN",label:"Azerbaijani manat",children:"AZN"}),Object(p.jsx)("option",{value:"BAM",label:"Bosnia and Herzegovina convertible mark",children:"BAM"}),Object(p.jsx)("option",{value:"BBD",label:"Barbadian dollar",children:"BBD"}),Object(p.jsx)("option",{value:"BDT",label:"Bangladeshi taka",children:"BDT"}),Object(p.jsx)("option",{value:"BGN",label:"Bulgarian lev",children:"BGN"}),Object(p.jsx)("option",{value:"BHD",label:"Bahraini dinar",children:"BHD"}),Object(p.jsx)("option",{value:"BIF",label:"Burundian franc",children:"BIF"}),Object(p.jsx)("option",{value:"BMD",label:"Bermudian dollar",children:"BMD"}),Object(p.jsx)("option",{value:"BND",label:"Brunei dollar",children:"BND"}),Object(p.jsx)("option",{value:"BOB",label:"Bolivian boliviano",children:"BOB"}),Object(p.jsx)("option",{value:"BRL",label:"Brazilian real",children:"BRL"}),Object(p.jsx)("option",{value:"BSD",label:"Bahamian dollar",children:"BSD"}),Object(p.jsx)("option",{value:"BTN",label:"Bhutanese ngultrum",children:"BTN"}),Object(p.jsx)("option",{value:"BWP",label:"Botswana pula",children:"BWP"}),Object(p.jsx)("option",{value:"BYN",label:"Belarusian ruble",children:"BYN"}),Object(p.jsx)("option",{value:"BZD",label:"Belize dollar",children:"BZD"}),Object(p.jsx)("option",{value:"CDF",label:"Congolese franc",children:"CDF"}),Object(p.jsx)("option",{value:"CHF",label:"Swiss franc",children:"CHF"}),Object(p.jsx)("option",{value:"CLP",label:"Chilean peso",children:"CLP"}),Object(p.jsx)("option",{value:"CNY",label:"Chinese yuan",children:"CNY"}),Object(p.jsx)("option",{value:"COP",label:"Colombian peso",children:"COP"}),Object(p.jsx)("option",{value:"CRC",label:"Costa Rican col\xf3n",children:"CRC"}),Object(p.jsx)("option",{value:"CUC",label:"Cuban convertible peso",children:"CUC"}),Object(p.jsx)("option",{value:"CUP",label:"Cuban peso",children:"CUP"}),Object(p.jsx)("option",{value:"CVE",label:"Cape Verdean escudo",children:"CVE"}),Object(p.jsx)("option",{value:"CZK",label:"Czech koruna",children:"CZK"}),Object(p.jsx)("option",{value:"DJF",label:"Djiboutian franc",children:"DJF"}),Object(p.jsx)("option",{value:"DKK",label:"Danish krone",children:"DKK"}),Object(p.jsx)("option",{value:"DOP",label:"Dominican peso",children:"DOP"}),Object(p.jsx)("option",{value:"DZD",label:"Algerian dinar",children:"DZD"}),Object(p.jsx)("option",{value:"EGP",label:"Egyptian pound",children:"EGP"}),Object(p.jsx)("option",{value:"ERN",label:"Eritrean nakfa",children:"ERN"}),Object(p.jsx)("option",{value:"ETB",label:"Ethiopian birr",children:"ETB"}),Object(p.jsx)("option",{value:"EUR",label:"EURO",children:"EUR"}),Object(p.jsx)("option",{value:"FJD",label:"Fijian dollar",children:"FJD"}),Object(p.jsx)("option",{value:"FKP",label:"Falkland Islands pound",children:"FKP"}),Object(p.jsx)("option",{value:"GBP",label:"British pound",children:"GBP"}),Object(p.jsx)("option",{value:"GEL",label:"Georgian lari",children:"GEL"}),Object(p.jsx)("option",{value:"GGP",label:"Guernsey pound",children:"GGP"}),Object(p.jsx)("option",{value:"GHS",label:"Ghanaian cedi",children:"GHS"}),Object(p.jsx)("option",{value:"GIP",label:"Gibraltar pound",children:"GIP"}),Object(p.jsx)("option",{value:"GMD",label:"Gambian dalasi",children:"GMD"}),Object(p.jsx)("option",{value:"GNF",label:"Guinean franc",children:"GNF"}),Object(p.jsx)("option",{value:"GTQ",label:"Guatemalan quetzal",children:"GTQ"}),Object(p.jsx)("option",{value:"GYD",label:"Guyanese dollar",children:"GYD"}),Object(p.jsx)("option",{value:"HKD",label:"Hong Kong dollar",children:"HKD"}),Object(p.jsx)("option",{value:"HNL",label:"Honduran lempira",children:"HNL"}),Object(p.jsx)("option",{value:"HKD",label:"Hong Kong dollar",children:"HKD"}),Object(p.jsx)("option",{value:"HRK",label:"Croatian kuna",children:"HRK"}),Object(p.jsx)("option",{value:"HTG",label:"Haitian gourde",children:"HTG"}),Object(p.jsx)("option",{value:"HUF",label:"Hungarian forint",children:"HUF"}
1),Object(p.jsx)("option",{value:"IDR",label:"Indonesian rupiah",children:"IDR"}),Object(p.jsx)("option",{value:"ILS",label:"Israeli new shekel",children:"ILS"}),Object(p.jsx)("option",{value:"IMP",label:"Manx pound",children:"IMP"}),Object(p.jsx)("option",{value:"INR",label:"Indian rupee",children:"INR"}),Object(p.jsx)("option",{value:"IQD",label:"Iraqi dinar",children:"IQD"}),Object(p.jsx)("option",{value:"IRR",label:"Iranian rial",children:"IRR"}),Object(p.jsx)("option",{value:"ISK",label:"Icelandic kr\xf3na",children:"ISK"}),Object(p.jsx)("option",{value:"JEP",label:"Jersey pound",children:"JEP"}),Object(p.jsx)("option",{value:"JMD",label:"Jamaican dollar",children:"JMD"}),Object(p.jsx)("option",{value:"JOD",label:"Jordanian dinar",children:"JOD"}),Object(p.jsx)("option",{value:"JPY",label:"Japanese yen",children:"JPY"}),Object(p.jsx)("option",{value:"KES",label:"Kenyan shilling",children:"KES"}),Object(p.jsx)("option",{value:"KGS",label:"Kyrgyzstani som",children:"KGS"}),Object(p.jsx)("option",{value:"KHR",label:"Cambodian riel",children:"KHR"}),Object(p.jsx)("option",{value:"KID",label:"Kiribati dollar",children:"KID"}),Object(p.jsx)("option",{value:"KMF",label:"Comorian franc",children:"KMF"}),Object(p.jsx)("option",{value:"KPW",label:"North Korean won",children:"KPW"}),Object(p.jsx)("option",{value:"KRW",label:"South Korean won",children:"KRW"}),Object(p.jsx)("option",{value:"KWD",label:"Kuwaiti dinar",children:"KWD"}),Object(p.jsx)("option",{value:"KYD",label:"Cayman Islands dollar",children:"KYD"}),Object(p.jsx)("option",{value:"KZT",label:"Kazakhstani tenge",children:"KZT"}),Object(p.jsx)("option",{value:"LAK",label:"Lao kip",children:"LAK"}),Object(p.jsx)("option",{value:"LBP",label:"Lebanese pound",children:"LBP"}),Object(p.jsx)("option",{value:"LKR",label:"Sri Lankan rupee",children:"LKR"}),Object(p.jsx)("option",{value:"LRD",label:"Liberian dollar",children:"LRD"}),Object(p.jsx)("option",{value:"LSL",label:"Lesotho loti",children:"LSL"}),Object(p.jsx)("option",{value:"LYD",label:"Libyan dinar",children:"LYD"}),Object(p.jsx)("option",{value:"MAD",label:"Moroccan dirham",children:"MAD"}),Object(p.jsx)("option",{value:"MDL",label:"Moldovan leu",children:"MDL"}),Object(p.jsx)("option",{value:"MGA",label:"Malagasy ariary",children:"MGA"}),Object(p.jsx)("option",{value:"MKD",label:"Macedonian denar",children:"MKD"}),Object(p.jsx)("option",{value:"MMK",label:"Burmese kyat",children:"MMK"}),Object(p.jsx)("option",{value:"MNT",label:"Mongolian t\xf6gr\xf6g",children:"MNT"}),Object(p.jsx)("option",{value:"MOP",label:"Macanese pataca",children:"MOP"}),Object(p.jsx)("option",{value:"MRU",label:"Mauritanian ouguiya",children:"MRU"}),Object(p.jsx)("option",{value:"MUR",label:"Mauritian rupee",children:"MUR"}),Object(p.jsx)("option",{value:"MVR",label:"Maldivian rufiyaa",children:"MVR"}),Object(p.jsx)("option",{value:"MWK",label:"Malawian kwacha",children:"MWK"}),Object(p.jsx)("option",{value:"MXN",label:"Mexican peso",children:"MXN"}),Object(p.jsx)("option",{value:"MYR",label:"Malaysian ringgit",children:"MYR"}),Object(p.jsx)("option",{value:"MZN",label:"Mozambican metical",children:"MZN"}),Object(p.jsx)("option",{value:"NAD",label:"Namibian dollar",children:"NAD"}),Object(p.jsx)("option",{value:"NGN",label:"Nigerian naira",children:"NGN"}),Object(p.jsx)("option",{value:"NIO",label:"Nicaraguan c\xf3rdoba",children:"NIO"}),Object(p.jsx)("option",{value:"NOK",label:"Norwegian krone",children:"NOK"}),Object(p.jsx)("option",{value:"NPR",label:"Nepalese rupee",children:"NPR"}),Object(p.jsx)("option",{value:"NZD",label:"New Zealand dollar",children:"NZD"}),Object(p.jsx)("option",{value:"OMR",label:"Omani rial",children:"OMR"}),Object(p.jsx)("option",{value:"PAB",label:"Panamanian balboa",children:"PAB"}),Object(p.jsx)("option",{value:"PEN",label:"Peruvian sol",children:"PEN"}),Object(p.jsx)("option",{value:"PGK",label:"Papua New Guinean kina",children:"PGK"}),Object(p.jsx)("option",{value:"PHP",label:"Philippine peso",children:"PHP"}),Object(p.jsx)("option",{value:"PKR",label:"Pakistani rupee",children:"PKR"}),Object(p.jsx)("option",{value:"PLN",label:"Polish z\u0142oty",children:"PLN"}),Object(p.jsx)("option",{value:"PRB",label:"Transnistrian ruble",children:"PRB"}),Object(p.jsx)("option",{value:"PYG",label:"Paraguayan guaran\xed",children:"PYG"}),Object(p.jsx)("option",{value:"QAR",label:"Qatari riyal",children:"QAR"}),Object(p.jsx)("option",{value:"RON",label:"Romanian leu",children:"RON"}),Object(p.jsx)("option",{value:"RON",label:"Romanian leu",children:"RON"}),Object(p.jsx)("option",{value:"RSD",label:"Serbian dinar",children:"RSD"}),Object(p.jsx)("option",{value:"RUB",label:"Russian ruble",children:"RUB"}),Object(p.jsx)("option",{value:"RWF",label:"Rwandan franc",children:"RWF"}),Object(p.jsx)("option",{value:"SAR",label:"Saudi riyal",children:"SAR"}),Object(p.jsx)("option",{value:"SEK",label:"Swedish krona",children:"SEK"}),Object(p.jsx)("option",{value:"SGD",label:"Singapore dollar",children:"SGD"}),Object(p.jsx)("option",{value:"SHP",label:"Saint Helena pound",children:"SHP"}),Object(p.jsx)("option",{value:"SLL",label:"Sierra Leonean leone",children:"SLL"}),Object(p.jsx)("option",{value:"SLS",label:"Somaliland shilling",children:"SLS"}),Object(p.jsx)("option",{value:"SOS",label:"Somali shilling",children:"SOS"}),Object(p.jsx)("option",{value:"SRD",label:"Surinamese dollar",children:"SRD"}
1),Object(p.jsx)("option",{value:"SSP",label:"South Sudanese pound",children:"SSP"}),Object(p.jsx)("option",{value:"STN",label:"S\xe3o Tom\xe9 and Pr\xedncipe dobra",children:"STN"}),Object(p.jsx)("option",{value:"SYP",label:"Syrian pound",children:"SYP"}),Object(p.jsx)("option",{value:"SZL",label:"Swazi lilangeni",children:"SZL"}),Object(p.jsx)("option",{value:"THB",label:"Thai baht",children:"THB"}),Object(p.jsx)("option",{value:"TJS",label:"Tajikistani somoni",children:"TJS"}),Object(p.jsx)("option",{value:"TMT",label:"Turkmenistan manat",children:"TMT"}),Object(p.jsx)("option",{value:"TND",label:"Tunisian dinar",children:"TND"}),Object(p.jsx)("option",{value:"TOP",label:"Tongan pa\u02bbanga",children:"TOP"}),Object(p.jsx)("option",{value:"TRY",label:"Turkish lira",children:"TRY"}),Object(p.jsx)("option",{value:"TTD",label:"Trinidad and Tobago dollar",children:"TTD"}),Object(p.jsx)("option",{value:"TVD",label:"Tuvaluan dollar",children:"TVD"}),Object(p.jsx)("option",{value:"TWD",label:"New Taiwan dollar",children:"TWD"}),Object(p.jsx)("option",{value:"TZS",label:"Tanzanian shilling",children:"TZS"}),Object(p.jsx)("option",{value:"UAH",label:"Ukrainian hryvnia",children:"UAH"}),Object(p.jsx)("option",{value:"UGX",label:"Ugandan shilling",children:"UGX"}),Object(p.jsx)("option",{value:"USD",label:"United States dollar",children:"USD"}),Object(p.jsx)("option",{value:"UYU",label:"Uruguayan peso",children:"UYU"}),Object(p.jsx)("option",{value:"UZS",label:"Uzbekistani so\u02bbm",children:"UZS"}),Object(p.jsx)("option",{value:"VES",label:"Venezuelan bol\xedvar soberano",children:"VES"}),Object(p.jsx)("option",{value:"VND",label:"Vietnamese \u0111\u1ed3ng",children:"VND"}),Object(p.jsx)("option",{value:"VUV",label:"Vanuatu vatu",children:"VUV"}),Object(p.jsx)("option",{value:"WST",label:"Samoan t\u0101l\u0101",children:"WST"}),Object(p.jsx)("option",{value:"XAF",label:"Central African CFA franc",children:"XAF"}),Object(p.jsx)("option",{value:"XCD",label:"Eastern Caribbean dollar",children:"XCD"}),Object(p.jsx)("option",{value:"XOF",label:"West African CFA franc",children:"XOF"}),Object(p.jsx)("option",{value:"XPF",label:"CFP franc",children:"XPF"}),Object(p.jsx)("option",{value:"ZAR",label:"South African rand",children:"ZAR"}),Object(p.jsx)("option",{value:"ZMW",label:"Zambian kwacha",children:"ZMW"}),Object(p.jsx)("option",{value:"ZWB",label:"Zimbabwean bonds",children:"ZWB"})]}),Object(p.jsx)("textarea",{required:!0,className:"input-field",placeholder:"Message",name:"message",value:ie,onChange:function(e){oe(e.target.value)}}),!0===x?Object(p.jsx)("div",{id:"card-element",children:Object(p.jsxs)(r.Elements,{stripe:C,children:[Object(p.jsx)(r.CardElement,{id:"cardElement",options:{style:{base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}}}),Object(p.jsx)(l.a,{ref:ue})]})}):null,Object(p.jsx)("div",{id:"card-errors",role:"alert",children:D}),Object(p.jsx)("input",{disabled:E,style:{opacity:E?.7:1,cursor:E?"no-drop":"pointer"},className:"input-field",id:"checkout-submit",type:"submit",value:E?"...":t("Donate")}),Object(p.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:Object(p.jsx)("a",{className:"badge",target:"_blank",href:"https://stripe.com/partners/ternary-developers",children:Object(p.jsx)("img",{style:{marginTop:30,width:120},src:u.a})})})]})})})}),Object(p.jsx)("div",{style:{textAlign:"center",width:"100%",marginTop:-80,height:30},children:Object(p.jsxs)("a",{target:"_blank",href:"https://ternarydev.com/",className:"watermark",children:["Powered by ",Object(p.jsx)("span",{style:{fontWeight:700},children:"Ternary"})]})})]}):Object(p.jsxs)("div",{children:[Object(p.jsx)("div",{id:"navbar"}),Object(p.jsx)("div",{children:Object(p.jsx)(d.a,{})})]})})}},123:function(e,t,a){"use strict";var n=a(3),c=a(1),i=a(125),o=a(24),r=(a(75),a(19)),l=a.n(r),s=a(5),d=a.n(s),u=function(e,t,a,n){if(e){var c={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cardId:e})};t(!1),fetch("/api/user/card",c).then((function(e){return e.json()})).then((function(e){d.a.alert(n("Successfully saved card as default")),a()})).catch((function(e){d.a.alert(e.toString())}))}else d.a.alert(n("Please select a card"))},b=function(e,t,a,n,c){e.current.getToken().then((function(e){e.error?d.a.alert(e.error.message):j(e.token,t,a,n,c)})).catch((function(e){d.a.alert(e.message)}))},j=function(e,t,a,n,c){var i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e.id})};t(!1),fetch("/api/user/card/add",i).then((function(e){return e.json()})).then((function(e){e.success?(d.a.alert(c("Successfully Added Card")),a(!1),n()):d.a.alert(c(e.error))})).catch((function(e){d.a.alert(e.toString())}))},p=function(e,t){e(!0);fetch("/api/user/join",{method:"POST",headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(a){e(!1),a.success?d.a.alert(t("Successfully joined"),(function(){window.open("https://discordapp.com/channels/".concat(a.server))})):d.a.alert(t(a.error))})).catch((function(t){e(!1),d.a.alert(t.toString())}))},m=function(e,t,a,n){a(!0),d.a.confirm({message:n("Unbinding will cause you to be removed from the server. Don't worry you can bind back!"),buttons:{confirm:{label:n("Unbind Discord"),
1className:"btn-success"},cancel:{label:n("Cancel"),className:"btn-danger"}},callback:function(c){1==c?fetch("/api/user/unbind",{method:"POST",headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(c){if(a(!1),c.success)return t(""),void d.a.alert(n("Successfully Unbound Account"),(function(){e()}));d.a.alert(n(c.error))})).catch((function(e){a(!1),d.a.alert(e.toString())})):a(!1)}})},h=function(e,t,a){if(e){var n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reward:e})};fetch("/api/user/reward",n).then((function(e){return e.json()})).then((function(e){e.success?d.a.alert(a("Successfully submit request, please wait for an admin to get in contact with you through Discord."),(function(){t()})):d.a.alert(a(e.error))})).catch((function(e){d.a.alert(e.toString())}))}else d.a.alert(a("Please select a reward"))},O=function(e,t,a,n,c,i){n(!0);var o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:t,feedback:a})};fetch("/api/authorizeNet/cancel/".concat(e),o).then((function(e){return e.json()})).then((function(e){n(!1),e.success?d.a.alert(i("Successfully Updated Subscription"),(function(){c()})):d.a.alert(i(e.error))})).catch((function(e){n(!1),d.a.alert(e.toString())}))},f=function(e,t,a,n,c,i,o){c(!0);var r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cancelAtPeriod:t,reason:a,feedback:n})};fetch("/api/user/cancel/".concat(e),r).then((function(e){return e.json()})).then((function(e){c(!1),e.success?d.a.alert(o("Successfully Updated Subscription"),(function(){i()})):d.a.alert(o(e.error))})).catch((function(e){c(!1),d.a.alert(e.toString())}))},x=function(e,t,a,n,c,i){d.a.prompt({title:i("Coupon code"),buttons:{confirm:{label:i("Submit Upgrade"),className:"btn-success"},cancel:{label:i("Cancel Upgrade"),className:"btn-danger"}},callback:function(o){if(null!=o){n(!0);var r=!1;""!=o&&(r=o),d.a.confirm({message:"".concat(i("Are you sure you want to upgrade your current plan to")," ").concat(t.name,"?"),buttons:{confirm:{label:i("Upgrade"),className:"btn-success"},cancel:{label:i("Cancel"),className:"btn-danger"}},callback:function(o){if(1==o){var l={method:"POST",headers:{"Content-Type":"application/json","Idempotency-Key":a},body:JSON.stringify({plan:t.planId,coupon:r})};fetch("/api/user/".concat(e,"/plan/update"),l).then((function(e){return e.json()})).then((function(e){n(!1),e.success?d.a.alert(i("Successfully Updated Plan"),(function(){c()})):d.a.alert(i(e.error))})).catch((function(e){n(!1),d.a.alert(e.toString())}))}}})}}})},g=(a(76),a(135),a(136),a(77),a(177)),v=a(27),y=a(52),C=a(49),S=(a(167),a(0)),N=function(e){var t=e.setSelectedImage,a=e.setImageOpen,i=e.post,o=Object(c.useState)(""),r=Object(n.a)(o,2),l=(r[0],r[1]),s=Object(c.useState)(""),d=Object(n.a)(s,2),u=d[0],b=d[1],j=Object(c.useState)(""),p=Object(n.a)(j,2),m=p[0],h=p[1],O=Object(c.useState)(""),f=Object(n.a)(O,2),x=f[0],g=f[1],v=Object(c.useState)(""),y=Object(n.a)(v,2),C=y[0],N=y[1],w=Object(c.useState)(""),A=Object(n.a)(w,2),P=A[0],L=A[1];return Object(c.useEffect)((function(){l(i.postId),h(i.title),b(i.visibleOn),g(i.description),i.type.includes("image")?(N("image"),L("/api/user/posts/media/".concat(i.postId))):"application/pdf"===i.type?(N("pdf"),L("/api/user/posts/media/".concat(i.postId,"#toolbar=0&navpanes=0"))):i.type.includes("video")&&(N("video"),L("/api/user/posts/video/".concat(i.postId)))}),[[i]]),Object(S.jsx)(S.Fragment,{children:""!==P?Object(S.jsxs)("div",{className:"post",children:[Object(S.jsx)("h5",{className:"date",children:u.substring(0,10)}),Object(S.jsxs)("div",{className:"post-block",children:[Object(S.jsx)("div",{className:"post-content",children:Object(S.jsxs)(S.Fragment,{children:["video"===C?Object(S.jsx)("video",{controls:!0,children:Object(S.jsx)("source",{src:P})}):null,"pdf"===C?Object(S.jsx)("iframe",{src:P,className:"pdf"}):null,"image"===C?Object(S.jsx)("img",{onClick:function(){t(P),a(!0)},src:P}):null]})}),Object(S.jsxs)("div",{className:"post-information",children:[Object(S.jsx)("p",{className:"tag",children:"\ud83d\udd13 Free"}),Object(S.jsx)("h5",{className:"title",children:m}),Object(S.jsx)("p",{className:"description",children:x})]})]})]}):null})},w=function(e){var t=e.data,a=e.useCatalogue,n=e.setUseCatalogue,c=e.setActiveCatalogue;return Object(S.jsxs)("div",{style:{borderColor:a===t._id?"var(--main-color)":"#EBEDF5"},onClick:function(){a===t._id?(n(""),c([])):(n(t._id),c(t.posts))},className:"catalogue card",children:[Object(S.jsx)("h5",{className:"card-title",children:t.title}),Object(S.jsxs)("p",{className:"card-text",children:[t.posts.length," post(s)"]})]})},A=a(65),P=a(97),L=(a(155),a(20));t.a=function(){var e=Object(c.useState)({sidebar:[],useAuthorizeNet:!1,scripts:[],color:"",secondary_color:"",statusColor:"",logo:"",name:"",avatar:"",username:"",ke
1y:"",email:"",invoices:[],referralAmount:0,referral:"",rewards:[],pk_key:"",card:{},cards:[],addOns:[],subscriptions:[]}),t=Object(n.a)(e,2),a=t[0],r=t[1],s=Object(c.useState)("account"),j=Object(n.a)(s,2),k=j[0],D=j[1],T=Object(c.useState)(!1),R=Object(n.a)(T,2),M=R[0],B=R[1],U=Object(c.useState)(""),I=Object(n.a)(U,2),F=I[0],E=I[1],q=Object(c.useState)(""),K=Object(n.a)(q,2),G=K[0],_=K[1],H=Object(c.useState)(""),z=Object(n.a)(H,2),V=(z[0],z[1]),Z=Object(c.useState)(""),J=Object(n.a)(Z,2),W=J[0],Y=J[1],$=Object(c.useState)(""),X=Object(n.a)($,2),Q=X[0],ee=X[1],te=Object(c.useState)(!1),ae=Object(n.a)(te,2),ne=(ae[0],ae[1],Object(c.useState)(!1)),ce=Object(n.a)(ne,2),ie=ce[0],oe=ce[1],re=Object(c.useState)(!1),le=Object(n.a)(re,2),se=le[0],de=le[1],ue=Object(c.useState)(!1),be=Object(n.a)(ue,2),je=be[0],pe=be[1],me=Object(c.useState)(!1),he=Object(n.a)(me,2),Oe=he[0],fe=he[1],xe=Object(c.useState)(!1),ge=Object(n.a)(xe,2),ve=ge[0],ye=ge[1],Ce=Object(c.useState)(!1),Se=Object(n.a)(Ce,2),Ne=Se[0],we=Se[1],Ae=Object(c.useState)(!1),Pe=Object(n.a)(Ae,2),Le=Pe[0],ke=Pe[1],De=Object(c.useState)(""),Te=Object(n.a)(De,2),Re=Te[0],Me=Te[1],Be=Object(c.useState)(""),Ue=Object(n.a)(Be,2),Ie=Ue[0],Fe=Ue[1],Ee=Object(c.useState)({}),qe=Object(n.a)(Ee,2),Ke=qe[0],Ge=qe[1],_e=Object(c.useState)([]),He=Object(n.a)(_e,2),ze=He[0],Ve=He[1],Ze=Object(c.useState)(!1),Je=Object(n.a)(Ze,2),We=Je[0],Ye=Je[1],$e=Object(c.useState)(""),Xe=Object(n.a)($e,2),Qe=Xe[0],et=Xe[1],tt=Object(c.useState)(""),at=Object(n.a)(tt,2),nt=at[0],ct=at[1],it=Object(c.useState)([]),ot=Object(n.a)(it,2),rt=ot[0],lt=ot[1],st=Object(c.useState)(""),dt=Object(n.a)(st,2),ut=dt[0],bt=dt[1],jt=Object(c.useState)([]),pt=Object(n.a)(jt,2),mt=pt[0],ht=pt[1],Ot=Object(c.useState)(""),ft=Object(n.a)(Ot,2),xt=ft[0],gt=ft[1],vt=Object(c.useState)(""),yt=Object(n.a)(vt,2),Ct=yt[0],St=yt[1],Nt=Object(c.useState)(""),wt=Object(n.a)(Nt,2),At=wt[0],Pt=wt[1],Lt=Object(c.useState)(""),kt=Object(n.a)(Lt,2),Dt=kt[0],Tt=kt[1],Rt=Object(c.useRef)(),Mt=Object(i.a)(),Bt=Mt.t;Mt.i18n;Object(c.useEffect)((function(){It()}),[]),Object(c.useEffect)((function(){if(""!==a.key){E(a.key),a.rewards&&a.rewards.length>0&&Me(a.rewards[0].id),a.invoices&&a.invoices.length>0&&_(a.invoices[0].hosted_invoice_url),a.card&&a.card.last4?(Y("".concat(a.card.brand.toUpperCase()," ****").concat(a.card.last4)),V(a.card.id),ee(a.card.id)):a.card&&a.card.cardNumber?(Y(a.card.cardNumber),V(a.card.id),ee(a.card.id)):Y("No default card"),a.addOns&&a.addOns.length>0&&Fe(a.addOns[0].planId);var e=[],t={};a.useAuthorizeNet||a.subscriptions.map((function(a){e.push(a.plans[0].id),a.upgrades.map((function(e){a.plans[0].id in t?(e.selected=!1,t[a.plans[0].id].push(e)):(e.selected=!0,t[a.plans[0].id]=[e])}))})),Ge(t),Ut()}if(je)oe(!0);else if(""!==a.pk_key){var n=Object(A.a)(a.pk_key);fe(n),oe(!0),pe(!0),de(!0),Tt("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})))}}
1),[a]),Object(c.useEffect)((function(){1==se&&Ft()}),[se]);var Ut=function(){de(!1),function(e,t,a){l.a.get("/api/user/posts",(function(n,c){return"success"==c&&1==n.success?(a(!0),e(n.posts),void t(n.catalogue)):window.location.href="/dashboard"}))}(Ve,lt,de)},It=function(){oe(!1),fetch("/dashboardInfo",{redirect:"manual"}).then((function(e){return e.redirected&&(window.location.href=e.url),e})).then((function(e){return e.json()})).then((function(e){return e.success?(e&&e.metaPixel&&gt(e.metaPixel),e&&e.googlePixel&&St(e.googlePixel),e&&e.tiktokPixel&&Pt(e.tiktokPixel),r(e)):void(window.location.href=e.redirect)})).catch((function(e){return d.a.alert(e.toString())}))},Ft=function e(){l()(".sideshow").length?l()(".sideshow").on("click",(function(){"none"==l()(this).children("i").eq(0).css("display")?(l()(this).children("i").toggle(),l()("#wrapper").removeClass("toggled"),l()(this).css("left","0px")):(l()(this).children("i").toggle(),l()("#wrapper").addClass("toggled"),l()(this).css("left","235px"))})):setTimeout(e,50)},Et=function(e){var t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),function(a,n){return-1==t?n[e].localeCompare(a[e]):a[e].localeCompare(n[e])}},qt=function(e){if("alphabet"===e){var t=ze.sort(Et("title"));Ve([]),setTimeout((function(){Ve(t)}),50)}else if("oldest"===e){t=ze.sort(Et("visibleOn"));Ve([]),setTimeout((function(){Ve(t)}),50)}else if("newest"===e){t=ze.sort(Et("-visibleOn"));Ve([]),setTimeout((function(){Ve(t)}),50)}};return console.log(a),Object(S.jsx)("div",{children:!0===ie&&!0===je&&!0===se?Object(S.jsxs)("div",{id:"wrapper",children:[Object(S.jsxs)(o.a,{children:[Object(S.jsxs)("title",{children:["Dashboard - ",a.name]}),Object(S.jsx)("style",{children:"\n                    :root {\n                    --main-color: ".concat(a.color,";\n                    --secondary-color: ").concat(a.secondary_color,";\n                    ")}),a.scripts.map((function(e){return Object(S.jsx)("script",{src:e})}))]}),Ct&&Object(S.jsxs)(o.a,{children:[Object(S.jsx)("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(Ct)}),Object(S.jsx)("script",{children:'\n                      window.dataLayer = window.dataLayer || [];\n                      function gtag(){dataLayer.push(arguments);}\n                      gtag("js", new Date());\n  \n                      gtag("config", \''.concat(Ct,"');\n                    ")})]}),xt&&Object(S.jsx)(o.a,{children:Object(S.jsx)("script",{children:"\n                    !function(f,b,e,v,n,t,s)\n                    {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n                    n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n                    if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n                    n.queue=[];t=b.createElement(e);t.async=!0;\n                    t.src=v;s=b.getElementsByTagName(e)[0];\n                    s.parentNode.insertBefore(t,s)}(window, document,'script',\n                    'https://connect.facebook.net/en_US/fbevents.js');\n                    fbq('init', '".concat(xt,"');\n                    fbq('track', 'PageView');\n                    ")})}),At&&Object(S.jsx)(o.a,{children:Object(S.jsx)("script",{children:'\n                    !function (w, d, t) {\n                      w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n                      ttq.load(\''.concat(At,"');\n                      ttq.page();\n                    }(window, document, 'ttq');\n                    ")})}),Object(S.jsxs)("div",{id:"sidebar-wrapper",children:[Object(S.jsx)("div",{style:{paddingLeft:"30px",paddingRight:"30px",marginTop:"45px",marginBottom:"20px"}
1,children:Object(S.jsxs)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:[Object(S.jsx)("img",{id:"sidebar-logo",style:{width:"45px",borderRadius:"100px",marginRight:"8px"},src:a.logo}),Object(S.jsx)("span",{style:{fontSize:"15px",color:"#11142D",fontWeight:"700"},id:"group_name",children:a.name})]})}),Object(S.jsxs)("div",{className:"list-group list-group-flush",children:[""!==a.key?Object(S.jsxs)("a",{onClick:function(){D("posts")},className:"list-group-item ".concat("posts"===k?"active-item":""),children:[Object(S.jsx)("svg",{style:{verticalAlign:"-3px",marginRight:"15px"},width:"24",height:"22",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8008 0.290506L2.88757 8.16787L0.798118 10.2679L0.296418 10.7875L0.204562 10.8975L0.112196 11.0423C0.0881003 11.0879 0.073661 11.1397 0.0159036 11.3473L0.001672 11.4765C-0.00844547 11.6232 0.0241834 11.6987 0.187328 12.0765L0.298278 12.1743C0.635427 12.4701 0.666201 12.4726 1.00473 12.5L3.50472 12.499V20.9982C3.50472 21.5505 3.95244 21.9982 4.50472 21.9982H9.00473C9.55701 21.9982 10.0047 21.5505 10.0047 20.9982V15.5H13.0047V20.9982C13.0047 21.5505 13.4524 21.9982 14.0047 21.9982H18.5047L18.6213 21.9915C19.1187 21.9337 19.5047 21.511 19.5047 20.9982V12.499L22.0047 12.5L22.1715 12.4851C22.3824 12.4596 22.4486 12.4028 22.8129 12.0905L22.917 11.8574C23.0255 11.6066 23.0205 11.5641 22.9959 11.3518L22.9338 11.1311C22.9148 11.0694 22.9032 11.0447 22.8828 11.011L22.7779 10.8546L22.7587 10.8308C22.7204 10.7834 22.6724 10.7289 22.6091 10.6599L22.1196 10.1466C21.8464 9.86562 21.4826 9.49652 21.0278 9.03898L15.9042 3.93995C14.805 2.85209 13.5729 1.63482 12.2078 0.288105C11.8174 -0.0969687 11.1898 -0.0958977 10.8008 0.290506ZM3.38473 10.499L11.5077 2.407L17.6368 8.47646L19.6587 10.499L18.5047 10.5L18.3881 10.5067C17.8908 10.5645 17.5047 10.9872 17.5047 11.5V19.998H15.0037L15.0047 15.5C15.0047 14.3954 14.1093 13.5 13.0047 13.5H10.0047L9.85546 13.5055C8.8206 13.5818 8.00472 14.4456 8.00472 15.5L8.00373 19.998H5.50472V11.5L5.498 11.3834C5.44023 10.886 5.01756 10.5 4.50472 10.5L3.38473 10.499Z",fill:"#808191"})}),Object(S.jsx)("span",{children:Bt("Feed")})]}):null,Object(S.jsxs)("a",{onClick:function(){D("account")},id:"settings-nav",className:"list-group-item ".concat("account"===k?"active-item":""),children:[Object(S.jsx)("svg",{style:{verticalAlign:"-5px",marginRight:"17px",marginLeft:"0px"},width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7709 0C13.5855 0 14.3127 0.493079 14.6194 1.23635L14.6751 1.38826L15.2305 3.11729L16.218 2.37893C16.9674 1.81857 17.9971 1.85637 18.7017 2.44886L18.8299 2.56644L20.4336 4.1701C21.0952 4.83176 21.2049 5.85631 20.7191 6.63837L20.6211 6.78202L19.8827 7.76945L21.6117 8.32493C22.3873 8.57408 22.9288 9.26596 22.9935 10.0674L23 10.2291V12.7709C23 13.5855 22.5069 14.3127 21.7637 14.6194L21.6117 14.6751L19.8827 15.2305L20.6211 16.218C21.1814 16.9674 21.1436 17.9971 20.5511 18.7017L20.4336 18.8299L18.8299 20.4336C18.1682 21.0952 17.1437 21.2049 16.3616 20.7191L16.218 20.6211L15.2305 19.8827L14.6751 21.6117C14.4259 22.3873 13.734 22.9288 12.9326 22.9935L12.7709 23H10.2291C9.41449 23 8.68727 22.5069 8.38056 21.7637L8.32493 21.6117L7.76945 19.8827L6.78202 20.6211C6.03263 21.1814 5.00292 21.1436 4.29827 20.5511L4.1701 20.4336L2.56644 18.8299C1.90478 18.1682 1.7951 17.1437 2.28086 16.3616L2.37893 16.218L3.11729 15.2305L1.38826 14.6751C0.612718 14.4259 0.0711668 13.734 0.00650242 12.9326L0 12.7709V10.2291C0 9.41449 0.493079 8.68727 1.23635 8.38056L1.38826 8.32493L3.11729 7.76945L2.37893 6.78202C1.81857 6.03263 1.85637 5.00292 2.44886 4.29827L2.56644 4.1701L4.1701 2.56644C4.83176 1.90478 5.85631 1.7951 6.63837 2.28086L6.78202 2.37893L7.76945 3.11729L8.32493 1.38826C8.57408 0.612718 9.26596 0.0711668 10.0674 0.00650242L10.2291 0H12.7709ZM12.7709 2H10.2291L9.6736 3.72903C9.6059 3.93974 9.50371 4.13775 9.37117 4.31499C8.74277 5.15537 7.58021 5.36064 6.70708 4.81193L6.57175 4.71901L5.58432 3.98065L3.98065 5.58432L4.71901 6.57175C4.85155 6.74899 4.95375 6.947 5.02144 7.15771C5.3432 8.15927 4.83369 9.22864 3.876 9.62006L3.72903 9.6736L2 10.2291V12.7709L3.72903 13.3264C3.93974 13.3941 4.13775 13.4963 4.31499 13.6288C5.15537 14.2572 5.36064 15.4198 4.81193 16.2929L4.71901 16.4283L3.98065 17.4157L5.58432 19.0193L6.57175 18.281C6.74899 18.1485 6.947 18.0463 7.15771 17.9786C8.15927 17.6568 9.22864 18.1663 9.62006 19.124L9.6736 19.271L10.2291 21H12.7709L13.3264 19.271C13.3941 19.0603 13.4963 18.8622 13.6288 18.685C14.2572 17.8446 15.4198 17.6394 16.2929 18.1881L16.4283 18.281L17.4157 19.0193L19.0193 17.4157L18.281 16.4283C18.1485 16.251 18.0463 16.053 17.9786 15.8423C17.6568 14.8407 18.1663 13.7714 19.124 13.3799L19.271 13.3264L21 12.7709V10.2291L19.271 9.6736C19.0603 9.6059 18.8622 9.50371 18.685 9.37117C17.8446 8.74277 17.6394 7.58021 18.1881 6.70708L18.281 6.57175L19.0193 5.58432L17.4157 3.98065L16.4283 4.71901C16.251 4.85155 16.053 4.95375 15.8423 5.02144C14.8407 5.3432 13.7714 4.83369 13.3799 3.876L13.3264 3.72903L12.7709 2ZM14.3284 8.67157C15.8905 10.2337 15.8905 12.7663 14.3284 14.3284C12.7663 15.8905 10.2337 15.8905 8.67157 14.3284C7.10948 12.7663 7.10948 10.2337 8.67157 8.67157C10.2337 7.10948 12.7663 7.10948 14.3284 8.67157ZM10.0858 10.0858C9.30474 10.8668 9.30474 12.1332 10.0858 12.9142C10.8668 13.6953 12.1332 13.6953 12.9142 12.9142C13.6953 12.1332 13.6953 10.8668 12.9142 10.0858C12.1332 9.30474 10.8668 9.30474 10.0858 10.0858Z",fill:"#808191"})}),Object(S.jsx)("span",{children:Bt("Account")}
1)]}),a.sidebar.map((function(e){return Object(S.jsxs)("a",{href:e.url,target:"_blank",className:"list-group-item",children:[Object(S.jsxs)("svg",{style:{verticalAlign:"-5px",marginRight:"17px",marginLeft:"0px"},width:"24",height:"22",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.6 0C20.4152 0 21.8981 1.42244 21.995 3.21345L22 3.4V8C22 8.55229 21.5523 9 21 9C20.4872 9 20.0645 8.61396 20.0067 8.11662L20 8V3.4C20 2.67228 19.4448 2.07425 18.7348 2.00641L18.6 2H3.4C2.67228 2 2.07425 2.55523 2.00641 3.26517L2 3.4V18.6C2 19.3277 2.55523 19.9258 3.26517 19.9936L3.4 20H8C8.55229 20 9 20.4477 9 21C9 21.5128 8.61396 21.9355 8.11662 21.9933L8 22H3.4C1.58482 22 0.101877 20.5776 0.0050309 18.7865L0 18.6V3.4C0 1.58482 1.42244 0.101877 3.21345 0.0050309L3.4 0H18.6Z",fill:"#808191"}),Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5304 19.6521L10.5734 19.7677C10.8511 20.396 11.69 20.57 12.1936 20.0664L13.9639 18.295L16.7521 21.0825C17.1427 21.473 17.7758 21.473 18.1664 21.0825L20.9948 18.2541L21.078 18.1599C21.383 17.7676 21.3553 17.2003 20.9948 16.8399L18.2069 14.052L19.9144 12.3456C20.4476 11.8123 20.2212 10.9032 19.5002 10.6823L8.37023 7.27319C7.60376 7.03841 6.88643 7.75574 7.12121 8.52221L10.5304 19.6521ZM9.58393 9.73604L17.3239 12.107L16.0861 13.3454L16.0029 13.4396C15.6979 13.8319 15.7256 14.3992 16.0861 14.7596L18.8729 17.547L17.4589 18.961L14.6719 16.1739L14.5777 16.0907C14.1854 15.7856 13.6182 15.8134 13.2577 16.1739L11.9549 17.476L9.58393 9.73604Z",fill:"#808191"})]}),Object(S.jsx)("span",{children:e.name})]})})),Object(S.jsxs)("a",{id:"",href:"/logout",className:"list-group-item",children:[Object(S.jsxs)("svg",{style:{verticalAlign:"-5px",marginRight:"17px",marginLeft:"0px"},width:"24",height:"22",viewBox:"0 0 24 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.6 0C20.4152 0 21.8981 1.42244 21.995 3.21345L22 3.4V8C22 8.55229 21.5523 9 21 9C20.4872 9 20.0645 8.61396 20.0067 8.11662L20 8V3.4C20 2.67228 19.4448 2.07425 18.7348 2.00641L18.6 2H3.4C2.67228 2 2.07425 2.55523 2.00641 3.26517L2 3.4V18.6C2 19.3277 2.55523 19.9258 3.26517 19.9936L3.4 20H8C8.55229 20 9 20.4477 9 21C9 21.5128 8.61396 21.9355 8.11662 21.9933L8 22H3.4C1.58482 22 0.101877 20.5776 0.0050309 18.7865L0 18.6V3.4C0 1.58482 1.42244 0.101877 3.21345 0.0050309L3.4 0H18.6Z",fill:"#808191"}),Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5304 19.6521L10.5734 19.7677C10.8511 20.396 11.69 20.57 12.1936 20.0664L13.9639 18.295L16.7521 21.0825C17.1427 21.473 17.7758 21.473 18.1664 21.0825L20.9948 18.2541L21.078 18.1599C21.383 17.7676 21.3553 17.2003 20.9948 16.8399L18.2069 14.052L19.9144 12.3456C20.4476 11.8123 20.2212 10.9032 19.5002 10.6823L8.37023 7.27319C7.60376 7.03841 6.88643 7.75574 7.12121 8.52221L10.5304 19.6521ZM9.58393 9.73604L17.3239 12.107L16.0861 13.3454L16.0029 13.4396C15.6979 13.8319 15.7256 14.3992 16.0861 14.7596L18.8729 17.547L17.4589 18.961L14.6719 16.1739L14.5777 16.0907C14.1854 15.7856 13.6182 15.8134 13.2577 16.1739L11.9549 17.476L9.58393 9.73604Z",fill:"#808191"})]}),Object(S.jsx)("span",{children:Bt("Sign Out")})]})]})]}),Object(S.jsxs)("div",{className:"sideshow",children:[Object(S.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true"}),Object(S.jsx)("i",{className:"fa fa-angle-left","aria-hidden":"true",style:{display:"none"}})]}),""===a.key?Object(S.jsxs)("div",{id:"page-container",children:[Object(S.jsx)("h1",{className:"mt-4",children:"Manage Account"}),Object(S.jsxs)("div",{id:"discord-welcome",children:[Object(S.jsx)("img",{src:a.avatar,id:"user-img",alt:""}),Object(S.jsxs)("h1",{children:[Bt("Welcome")," ",a.username]})]}),Object(S.jsxs)("div",{id:"key-box",children:[Object(S.jsx)("h1",{children:Bt("Bind Key")}),Object(S.jsxs)("form",{id:"bind-form",onSubmit:function(e){e.preventDefault(),function(e,t,a,n){t(!0),fetch("/api/user/bind",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e})}).then((function(e){return e.json()})).then((function(e){return e.success?(t(!1),d.a.alert(n("Successfully Bound Key"),(function(){a()}))):(t(!1),d.a.alert(n(e.error)))})).catch((function(e){return t(!1),d.a.alert(n("Failed request ")+e.toString())}))}(F,B,It,Bt)},children:[Object(S.jsx)("input",{onChange:function(e){return E(e.target.value)},id:"newKey",type:"text",value:F}
1),Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},id:"bind-button",type:"submit",value:Bt("Bind")})]})]})]}):Object(S.jsx)(S.Fragment,{children:a.useAuthorizeNet?Object(S.jsxs)("div",{id:"page-container",children:[Object(S.jsxs)("div",{style:{display:"account"==k?"block":"none"},children:[Object(S.jsx)("h1",{className:"mt-4",children:"Manage Account"}),Object(S.jsxs)("div",{id:"discord-welcome",children:[Object(S.jsx)("img",{src:a.avatar,id:"user-img",alt:""}),Object(S.jsxs)("h1",{children:[Bt("Welcome")," ",a.username]}),Object(S.jsx)("div",{children:Object(S.jsx)("form",{onSubmit:function(e){e.preventDefault(),p(B,Bt)},children:Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Open Discord")})})})]}),Object(S.jsxs)("div",{id:"billing-box",children:[Object(S.jsx)("h1",{children:Bt("Billing")}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Email"),": "]}),a.email]}),Object(S.jsxs)("p",{id:"card",children:[Object(S.jsxs)("strong",{children:[Bt("Active Card"),": "]}),Object(S.jsx)("span",{children:W})]}),Object(S.jsx)("form",{onSubmit:function(e){e.preventDefault(),we(!Ne)},children:Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Update Payment Info")})})]}),a.subscriptions.map((function(e){return Object(S.jsxs)("div",{className:"sub-box",children:[Object(S.jsx)("h1",{children:Bt("Subscription")}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Status"),": "]}),Object(S.jsx)("span",{className:"active"==e.status?"green":"red",children:e.status})," "]}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Renewal Date"),": "]}),new Date(e.paymentSchedule.startDate).toLocaleDateString()]}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Plan"),": "]})," $",e.amount," / ",e.paymentSchedule.interval.length," ",e.paymentSchedule.interval.unit," "]}),Object(S.jsx)("form",{onSubmit:function(t){t.preventDefault(),function(e,t,a,n){d.a.confirm({message:n("Are you sure you want to cancel your subscription?"),buttons:{confirm:{label:"Yes",className:"btn-success"},cancel:{label:"No",className:"btn-danger"}},callback:function(c){1==c&&d.a.confirm('\n              <h5 class="modal-title">'.concat(n("Reason for Cancellation?"),'</h5>\n\n              <form class="bootbox-form" id="cancel-form">\n                <select id="cancel-reason" class="bootbox-input bootbox-input-select form-control">\n                  <option value="Price">').concat(n("Too expensive"),'</option>\n                  <option value="Competitor">').concat(n("Joining another group"),'</option>\n                  <option value="Time">').concat(n("No time to use"),'</option>\n                  <option value="Other">').concat(n("Other"),'</option>\n                </select>\n                <textarea id="cancel-feedback" required placeholder="').concat(n("Enter your feedback here."),'" class="bootbox-input bootbox-input-textarea form-control"></textarea>\n              </form>'),(function(c){if(null!=c){var i=l()("#cancel-reason").val(),o=l()("#cancel-feedback").val();console.log(i),console.log(o),i&&o?O(e,i,o,t,a,n):d.a.alert("Please provide some feedback to cancel")}}))}})}(e.id,B,It,Bt)},children:"active"===e.status?Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},id:"cancel-button",className:"cancel",type:"submit",value:Bt("Cancel Subscription")}):Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},id:"cancel-button",className:"cancel",type:"submit",value:Bt("Subscription Cancelled")})})]})})),Object(S.jsxs)("div",{id:"ref-box",children:[Object(S.jsx)("h1",{children:Bt("Referral")}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("People Referred"),": "]})," ",a.referralAmount]}),Object(S.jsx)("input",{readOnly:!0,value:a.referral}),Object(S.jsxs)("form",{id:"ref-form",onSubmit:function(e){e.preventDefault(),h(Re,It,Bt)},children:[Object(S.jsx)("select",{id:"reward",onChange:function(e){Me(e.target.value)},children:a.rewards.length>0?a.rewards.map((function(e){return Object(S.jsx)("option",{value:e.id,children:"".concat(e.reward," (").concat(e.referral," referrals)")},e.id)})):Object(S.jsx)("option",{value:"",children:Bt("No Rewards Available")})}),Object(S.jsx)("input",{id:"referral-request",disabled:M,style:{opacity:M?.7:1,
1cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Request Reward")})]})]}),Object(S.jsxs)("div",{id:"key-box",children:[Object(S.jsx)("h1",{children:Bt("Key")}),Object(S.jsxs)("form",{onSubmit:function(e){e.preventDefault(),m(It,E,B,Bt)},children:[Object(S.jsx)("input",{readOnly:!0,value:a.key}),Object(S.jsx)("input",{id:"unbind-button",className:"cancel",disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Unbind Discord")})]})]}),Object(S.jsx)("div",{id:"payment-modal",className:"data-modal ".concat(Ne?"":"modal-hidden"),children:Object(S.jsxs)("div",{className:"modal-content",children:[Object(S.jsxs)("div",{className:"modal-header",children:[Object(S.jsx)("span",{onClick:function(){we(!Ne)},className:"close",children:"\xd7"}),Object(S.jsx)("h2",{children:Bt("Manage Payment")})]}),Object(S.jsx)("div",{className:"modal-body",children:Le?Object(S.jsxs)("div",{className:"edit-new",children:[Object(S.jsxs)(v.Elements,{stripe:Oe,children:[Object(S.jsx)(v.CardElement,{id:"cardElement",options:{style:{base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}}}),Object(S.jsx)(y.a,{ref:Rt})]}),Object(S.jsx)("div",{className:"card-actions",children:Object(S.jsx)("a",{onClick:function(){return ke(!Le)},className:"red",children:Bt("Cancel")})})]}):Object(S.jsxs)("div",{className:"edit-default",children:[Object(S.jsx)("select",{id:"cards",onChange:function(e){ee(e.target.value)},value:Q,children:a.cards.map((function(e){return Object(S.jsx)("option",{value:e.id,children:e.cardNumber},e.id)}))}),Object(S.jsx)("div",{className:"card-actions"})]})}),Le?Object(S.jsx)("div",{className:"modal-footer",children:Object(S.jsx)("a",{onClick:function(){return b(Rt,we,ke,It,Bt)},className:"green",children:Bt("Save new Card")})}):Object(S.jsx)("div",{className:"modal-footer",children:Object(S.jsx)("a",{onClick:function(){return u(Q,we,It,Bt)},className:"green",children:Bt("Save as Default Card")})})]})})]}),Object(S.jsxs)("div",{style:{display:"posts"==k?"block":"none"},children:[Object(S.jsx)("h1",{className:"mt-4",children:Bt("Feed")}),Object(S.jsxs)("div",{className:"feed-wrapper",children:[Object(S.jsxs)("div",{className:"feed-control",children:[Object(S.jsxs)(g.a,{children:[Object(S.jsx)(g.a.Toggle,{className:"filter-button",children:Object(S.jsx)("i",{className:"fas fa-sort"})}),Object(S.jsxs)(g.a.Menu,{children:[Object(S.jsx)(g.a.Item,{onClick:function(){qt("newest")},href:"",children:"Newest"}),Object(S.jsx)(g.a.Item,{onClick:function(){qt("oldest")},href:"",children:"Oldest"}),Object(S.jsx)(g.a.Item,{onClick:function(){qt("alphabet")},href:"",children:"Alphabetical"})]})]}),Object(S.jsxs)("svg",{className:"icon",width:"18",height:"18",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0ZM9 2C12.866 2 16 5.13401 16 9C16 12.866 12.866 16 9 16C5.13401 16 2 12.866 2 9C2 5.13401 5.13401 2 9 2Z",fill:"#b1b2bc"}),Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3596 14.2325C14.7838 13.8788 15.4143 13.9359 15.768 14.3601L20.7688 20.357C21.1225 20.7812 21.0654 21.4118 20.6412 21.7655C20.2171 22.1192 19.5865 22.0621 19.2328 21.6379L14.232 15.6409C13.8783 15.2168 13.9354 14.5862 14.3596 14.2325Z",fill:"#b1b2bc"})]}),Object(S.jsx)("input",{value:nt,onChange:function(e){ct(e.target.value)},className:"search-feed",placeholder:Bt("Search")})]}),Object(S.jsxs)("div",{className:"feed",children:[rt.length>0?Object(S.jsxs)(S.Fragment,{children:[Object(S.jsx)("h2",{children:Bt("Catalogue")}),Object(S.jsx)("div",{style:{overflowX:"scroll",display:"inline-flex",marginTop:15,marginBottom:30},children:rt.map((function(e){return Object(S.jsx)(w,{useCatalogue:ut,setActiveCatalogue:ht,setUseCatalogue:bt,data:e})}))})]}):null,!0===We&&""!==Qe?Object(S.jsx)("div",{id:"image-view",children:Object(S.jsx)(P.a,{mainSrc:Qe,onCloseRequest:function(){Ye(!1)}})}):null,Object(S.jsx)("h2",{children:Bt("Latest Posts")}),ze.map((function(e){return Object(S.jsx)(S.Fragment,{children:""!==ut?Object(S.jsx)(S.Fragment,{children:mt.includes(e.postId)?Object(S.jsx)(S.Fragment,{children:""===nt?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):Object(S.jsx)(S.Fragment,{children:e.title.toLowerCase().includes(nt.toLowerCase())?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):null})}):null}):Object(S.jsx)(S.Fragment,{children:""===nt?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):Object(S.jsx)(S.Fragment,{children:e.title.toLowerCase().includes(nt.toLowerCase())?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):null})})})}))]})]})]})]}):Object(S.jsxs)("div",{id:"page-container",children:[Object(S.jsxs)("div",{style:{display:"account"==k?"block":"none"},children:[Object(S.jsx)("h1",{className:"mt-4",children:"Manage Account"}),Object(S.jsxs)("div",{id:"discord-welcome",children:[Object(S.jsx)("img",{src:a.avatar,id:"user-img",alt:""}),Object(S.jsxs)("h1",{children:[Bt("Welcome")," ",a.username]}),Object(S.jsx)("div",{children:Object(S.jsx)("form",{onSubmit:function(e){e.preventDefault(),p(B,Bt)},children:Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,
1cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Open Discord")})})})]}),Object(S.jsxs)("div",{id:"billing-box",children:[Object(S.jsx)("h1",{children:Bt("Billing")}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Email"),": "]}),a.email]}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Invoices"),":"]})," ",Object(S.jsx)("a",{onClick:function(){return ye(!ve)},style:{cursor:"pointer",color:"var(--main-color)"},children:Bt("View Invoices")})]}),Object(S.jsxs)("p",{id:"card",children:[Object(S.jsxs)("strong",{children:[Bt("Active Card"),": "]}),Object(S.jsx)("span",{children:W})]}),Object(S.jsx)("form",{onSubmit:function(e){e.preventDefault(),we(!Ne)},children:Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Update Payment Info")})})]}),a.subscriptions.map((function(e){return Object(S.jsxs)("div",{className:"sub-box",children:[Object(S.jsx)("h1",{children:Bt("Subscription")}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Status"),": "]}),Object(S.jsx)("span",{className:e.statusColor,children:Bt(e.status)})," "]}),null!==e.trial?Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Trial Ends"),": "]})," ",new Date(1e3*e.trial).toDateString()]}):null,Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Renewal Date"),": "]}),new Date(1e3*e.expiry).toLocaleDateString()]}),e.plans.map((function(e){return Object(S.jsx)(S.Fragment,{children:Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Plan"),": "]})," ",e.name," ",e.currency?L[e.currency.toUpperCase()].symbol.default.display:"$",e.price]})})})),Object(S.jsx)("form",{onSubmit:function(t){t.preventDefault(),function(e,t,a,n,c){var i="reactivate";t&&(i="cancel"),d.a.confirm({message:c("Are you sure you want to ".concat(i," your subscription?")),buttons:{confirm:{label:"Yes",className:"btn-success"},cancel:{label:"No",className:"btn-danger"}},callback:function(o){1==o&&("cancel"==i?d.a.confirm('\n              <h5 class="modal-title">'.concat(c("Reason for Cancellation?"),'</h5>\n\n              <form class="bootbox-form" id="cancel-form">\n                <select id="cancel-reason" class="bootbox-input bootbox-input-select form-control">\n                  <option value="Price">').concat(c("Too expensive"),'</option>\n                  <option value="Competitor">').concat(c("Joining another group"),'</option>\n                  <option value="Time">').concat(c("No time to use"),'</option>\n                  <option value="Other">').concat(c("Other"),'</option>\n                </select>\n                <textarea id="cancel-feedback" required placeholder="').concat(c("Enter your feedback here."),'" class="bootbox-input bootbox-input-textarea form-control"></textarea>\n              </form>'),(function(i){if(null!=i){var o=l()("#cancel-reason").val(),r=l()("#cancel-feedback").val();console.log(o),console.log(r),o&&r?f(e,t,o,r,a,n,c):d.a.alert("Please provide some feedback to cancel")}})):f(e,t,null,null,a,n,c))}})}(e.id,e.cancelAtPeriod,B,It,Bt)},children:"Active"===e.status?Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},id:"cancel-button",className:"cancel",type:"submit",value:Bt("Cancel Subscription")}):Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},id:"cancel-button",className:"",type:"submit",value:Bt("Reactivate Subscription")})}),e.upgrades.length>0?Object(S.jsxs)("div",{className:"upgrade-box",children:[Object(S.jsx)("h1",{children:Bt("Update Plan")}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("Card Used"),": "]}),Object(S.jsx)("span",{children:W})]}),Object(S.jsxs)("form",{onSubmit:function(t){var a;t.preventDefault();for(var n=Ke[e.plans[0].id],c=0;c<n.length;c++)!0===n[c].selected&&(a=n[c]);a&&(x(e.id,a,Dt,B,It,Bt),x(e.id,a,Dt,B,It,Bt))},children:[Object(S.jsxs)("select",{onChange:function(t){for(var a=t.target.value,n=Ke,c=n[e.plans[0].id],i=0;i<c.length;i++)1==c[i].selected&&(c[i].selected=!1);for(i=0;i<c.length;i++)c[i].planId==a&&(c[i].selected=!0);
1Ge(n)},children:[Object(S.jsx)("option",{disabled:!0,children:Bt("Select a Plan")}),e.upgrades.map((function(e){return Object(S.jsx)("option",{value:e.planId,children:"".concat(e.name," ").concat(e.currency?L[e.currency.toUpperCase()].symbol.default.display:"$").concat(e.price)},e.planId)}))]}),Object(S.jsx)("input",{disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Update")}),Object(S.jsx)("p",{style:{width:"75%",margin:"auto",marginTop:"10px",fontSize:"12px"},children:Bt("When updating plan, your membership will be prorated.  If you are in the middle of a billing cycle, then you will only owe the difference between your new membership rate minus your current membership rate (e.g. $1200 - $120 = $1,080 total).")})]})]}):null]})})),a.addOns.length>0?Object(S.jsxs)("div",{id:"addon-box",children:[Object(S.jsx)("h1",{children:Bt("Add-On Products")}),Object(S.jsxs)("p",{id:"addon-card",children:[Object(S.jsxs)("strong",{children:[Bt("Card Used"),": "]}),Object(S.jsx)("span",{children:W})]}),Object(S.jsxs)("form",{id:"addon-form",onSubmit:function(e){e.preventDefault(),function(e,t,a,n){d.a.confirm({message:"".concat(n("Are you sure you want to add")," ").concat(e.name,"?"),buttons:{confirm:{label:n("Add"),className:"btn-success"},cancel:{label:n("Cancel"),className:"btn-danger"}},callback:function(c){1==c&&d.a.prompt({title:n("Coupon code"),buttons:{confirm:{label:n("Submit Add-on"),className:"btn-success"},cancel:{label:n("Cancel Add-on"),className:"btn-danger"}},callback:function(c){if(null!=c){t(!0);var i=!1;""!=c&&(i=c);var o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({coupon:i})};fetch("/api/user/plan/".concat(e.planId),o).then((function(e){return e.json()})).then((function(e){t(!1),e.success?d.a.alert(n("Successfully Added Plan"),(function(){a()})):d.a.alert(n(e.error))})).catch((function(e){t(!1),d.a.alert(e.toString())}))}}})}})}(a.addOns.filter((function(e){return e.planId==Ie}))[0],B,It,Bt)},children:[Object(S.jsxs)("select",{id:"addon-plan",value:Ie,onChange:function(e){Fe(e.target.value)},children:[Object(S.jsx)("option",{disabled:!0,children:Bt("Select a Plan")},-1),a.addOns.map((function(e){return Object(S.jsx)("option",{value:e.planId,children:"".concat(e.name," ").concat(e.currency?L[e.currency.toUpperCase()].symbol.default.display:"$").concat(e.price)},e.planId)}))]}),Object(S.jsx)("input",{id:"addon",disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Purchase Add-On")})]})]}):null,Object(S.jsxs)("div",{id:"ref-box",children:[Object(S.jsx)("h1",{children:Bt("Referral")}),Object(S.jsxs)("p",{children:[Object(S.jsxs)("strong",{children:[Bt("People Referred"),": "]})," ",a.referralAmount]}),Object(S.jsx)("input",{readOnly:!0,value:a.referral}),Object(S.jsxs)("form",{id:"ref-form",onSubmit:function(e){e.preventDefault(),h(Re,It,Bt)},children:[Object(S.jsx)("select",{id:"reward",onChange:function(e){Me(e.target.value)},children:a.rewards.length>0?a.rewards.map((function(e){return Object(S.jsx)("option",{value:e.id,children:"".concat(e.reward," (").concat(e.referral," referrals)")},e.id)})):Object(S.jsx)("option",{value:"",children:Bt("No Rewards Available")})}),Object(S.jsx)("input",{id:"referral-request",disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Request Reward")})]})]}),Object(S.jsxs)("div",{id:"key-box",children:[Object(S.jsx)("h1",{children:Bt("Key")}),Object(S.jsxs)("form",{onSubmit:function(e){e.preventDefault(),m(It,E,B,Bt)},children:[Object(S.jsx)("input",{readOnly:!0,value:a.key}),Object(S.jsx)("input",{id:"unbind-button",className:"cancel",disabled:M,style:{opacity:M?.7:1,cursor:M?"no-drop":"pointer"},type:"submit",value:Bt("Unbind Discord")})]})]}),Object(S.jsx)("div",{id:"invoices-modal",className:"data-modal ".concat(ve?"":"modal-hidden"),children:Object(S.jsxs)("div",{className:"modal-content",children:[Object(S.jsxs)("div",{className:"modal-header",children:[Object(S.jsx)("span",{onClick:function(){ye(!ve)},className:"close",children:"\xd7"}),Object(S.jsx)("h2",{children:Bt("Invoices")})]}),Object(S.jsx)("div",{className:"modal-body",children:Object(S.jsx)("select",{id:"invoice",value:G,onChange:function(e){_(e.target.value)},children:a.invoices.map((function(e){return Object(S.jsxs)("option",{value:e.hosted_invoice_url,children:[e.currency?L[e.currency.toUpperCase()].symbol.default.display:"$",e.total/100," ",Bt("Paid on")," ",new Date(1e3*e.created).toLocaleDateString("en-US")]},e.hosted_invoice_url)}))})}),Object(S.jsx)("div",{className:"modal-footer",children:Object(S.jsx)("a",{onClick:function(){window.open(G,"_blank")},className:"green",children:Bt("View Invoice")})})]})}),Object(S.jsx)("div",{id:"payment-modal",className:"data-modal ".concat(Ne?"":"modal-hidden"),children:Object(S.jsxs)("div",{className:"modal-content",children:[Object(S.jsxs)("div",{className:"modal-header",children:[Object(S.jsx)("span",{onClick:function(){we(!Ne)},className:"close",children:"\xd7"}),Object(S.jsx)("h2",{children:Bt("Manage Payment")})]}),Object(S.jsx)("div",{className:"modal-body",children:Le?Object(S.jsxs)("div",{className:"edit-new",children:[Object(S.jsxs)(v.Elements,{stripe:Oe,children:[Object(S.jsx)(v.CardElement,{id:"cardElement",options:{style:{base
1:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}}}),Object(S.jsx)(y.a,{ref:Rt})]}),Object(S.jsx)("div",{className:"card-actions",children:Object(S.jsx)("a",{onClick:function(){return ke(!Le)},className:"red",children:Bt("Cancel")})})]}):Object(S.jsxs)("div",{className:"edit-default",children:[Object(S.jsx)("select",{id:"cards",onChange:function(e){ee(e.target.value)},value:Q,children:a.cards.map((function(e){return Object(S.jsx)("option",{value:e.id,children:"".concat(e.brand.toUpperCase()," ****").concat(e.last4)},e.id)}))}),Object(S.jsxs)("div",{className:"card-actions",children:[Object(S.jsx)("a",{onClick:function(){return ke(!Le)},className:"green",children:Bt("Add new")}),Object(S.jsx)("a",{onClick:function(){return function(e,t,a,n){if(e){var c={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cardId:e})};t(!1),fetch("/api/user/card/delete",c).then((function(e){return e.json()})).then((function(e){d.a.alert(n("Successfully deleted card")),a()})).catch((function(e){d.a.alert(e.toString())}))}else d.a.alert(n("Please select a card"))}(Q,we,It,Bt)},className:"red",children:Bt("Remove")})]})]})}),Le?Object(S.jsx)("div",{className:"modal-footer",children:Object(S.jsx)("a",{onClick:function(){return b(Rt,we,ke,It,Bt)},className:"green",children:Bt("Save new Card")})}):Object(S.jsx)("div",{className:"modal-footer",children:Object(S.jsx)("a",{onClick:function(){return u(Q,we,It,Bt)},className:"green",children:Bt("Save as Default Card")})})]})})]}),Object(S.jsxs)("div",{style:{display:"posts"==k?"block":"none"},children:[Object(S.jsx)("h1",{className:"mt-4",children:Bt("Feed")}),Object(S.jsxs)("div",{className:"feed-wrapper",children:[Object(S.jsxs)("div",{className:"feed-control",children:[Object(S.jsxs)(g.a,{children:[Object(S.jsx)(g.a.Toggle,{className:"filter-button",children:Object(S.jsx)("i",{className:"fas fa-sort"})}),Object(S.jsxs)(g.a.Menu,{children:[Object(S.jsx)(g.a.Item,{onClick:function(){qt("newest")},href:"",children:"Newest"}),Object(S.jsx)(g.a.Item,{onClick:function(){qt("oldest")},href:"",children:"Oldest"}),Object(S.jsx)(g.a.Item,{onClick:function(){qt("alphabet")},href:"",children:"Alphabetical"})]})]}),Object(S.jsxs)("svg",{className:"icon",width:"18",height:"18",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0ZM9 2C12.866 2 16 5.13401 16 9C16 12.866 12.866 16 9 16C5.13401 16 2 12.866 2 9C2 5.13401 5.13401 2 9 2Z",fill:"#b1b2bc"}),Object(S.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3596 14.2325C14.7838 13.8788 15.4143 13.9359 15.768 14.3601L20.7688 20.357C21.1225 20.7812 21.0654 21.4118 20.6412 21.7655C20.2171 22.1192 19.5865 22.0621 19.2328 21.6379L14.232 15.6409C13.8783 15.2168 13.9354 14.5862 14.3596 14.2325Z",fill:"#b1b2bc"})]}),Object(S.jsx)("input",{value:nt,onChange:function(e){ct(e.target.value)},className:"search-feed",placeholder:Bt("Search")})]}),Object(S.jsxs)("div",{className:"feed",children:[rt.length>0?Object(S.jsxs)(S.Fragment,{children:[Object(S.jsx)("h2",{children:Bt("Catalogue")}),Object(S.jsx)("div",{style:{overflowX:"scroll",display:"inline-flex",marginTop:15,marginBottom:30},children:rt.map((function(e){return Object(S.jsx)(w,{useCatalogue:ut,setActiveCatalogue:ht,setUseCatalogue:bt,data:e})}))})]}):null,!0===We&&""!==Qe?Object(S.jsx)("div",{id:"image-view",children:Object(S.jsx)(P.a,{mainSrc:Qe,onCloseRequest:function(){Ye(!1)}})}):null,Object(S.jsx)("h2",{children:Bt("Latest Posts")}),ze.map((function(e){return Object(S.jsx)(S.Fragment,{children:""!==ut?Object(S.jsx)(S.Fragment,{children:mt.includes(e.postId)?Object(S.jsx)(S.Fragment,{children:""===nt?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):Object(S.jsx)(S.Fragment,{children:e.title.toLowerCase().includes(nt.toLowerCase())?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):null})}):null}):Object(S.jsx)(S.Fragment,{children:""===nt?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):Object(S.jsx)(S.Fragment,{children:e.title.toLowerCase().includes(nt.toLowerCase())?Object(S.jsx)(N,{setSelectedImage:et,setImageOpen:Ye,post:e}):null})})})}))]})]})]})]})})]}):Object(S.jsxs)("div",{children:[Object(S.jsx)("div",{id:"navbar"}),Object(S.jsx)("div",{children:Object(S.jsx)(C.a,{})})]})})}},124:function(e,t,a){"use strict";var n=a(50),c=a(71),i=a(3),o=a(1),r=a(24),l=(a(75),a(19)),s=a.n(l),d=a(125),u=a(27),b=a(52),j=a(0),p=a(65),m=a(49),h=(a(164),function(e){var t=e.name,a=e.logo,n=e.highlightFeatures,c=e.free,r=e.products,l=e.price,s=e.coupon,d=e.discount,u=e.total,b=e.redirect;console.log(r);var p=Object(o.useState)(r[0].name),m=Object(i.a)(p,2),h=m[0],O=(m[1],Object(o.useState)(r[0].interval)),f=Object(i.a)(O,2),x=f[0],g=(f[1],Object(o.useState)(r[0].intervalCount)),v=Object(i.a)(g,2),y=v[0],C=(v[1],Object(o.useState)(r[0].price)),S=Object(i.a)(C,2);S[0],S[1];return Object(j.jsx)("div",{id:"loggedout-form",children:Object(j.jsx)("div",{className:"container",children:Object(j.jsxs)("div",{className:"row",children:[Object(j.jsxs)("div",{className:"col-md-6",children:[Object(j.jsxs)("div",{className:"flex-row",children:[Object(j.jsx)("img",{src:a}),Object(j.jsxs)("div",{className:"product",children:[Object(j.jsx)("h5",{children:c?"".concat(t):"".concat(t," - ").concat(h)}),Object(j.jsx)("h1",{children:c?"".concat(h):l}),Object(j.jsx)("p",{className:"interval",children:c?null:"Every ".concat(y," ").concat(x,"(s)")})]})]}),!c&&Object(j.jsxs)(j.Fragment,{children:[Object(j.jsxs)("div",{style:{marginTop:30,borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"},className:"pricing",children:[Object(j.jsx)("label",{children:"Subtotal"}),Object(j.jsx)("p",{children:c?"FREE":l})]}),s&&Object(j.jsxs)("div",{style:{borderTopLeftRadius:0,borderTopRightRadius:0,borderBottom:"none",borderBottomLeftRadius:0,borderBottomRightRadius:0},className:"pricing",children:[Object(j.jsxs)("label",{className:"green",children:["Coupon Applied (",s,")"]}),Object(j.jsx)("p",{className:"green",children:d})]}),Object(j.jsxs)("div",{style:{borderTopLeftRadius:0,borderTopRightRadius:0},className:"pricing",children:[Object(j.jsx)("label",{children:"Due today"}),Object(j.jsx)("p",{children:c?"FREE":u})]})]}),Object(j.jsx)("ul",{className:"info",children:n.map((function(e,t){return Object(j.jsx)("li",{children:e},"feature-".concat(t))}))})]}),Object(j.jsxs)("div",{className:"col-md-6",children:[Object(j.jsxs)("div",{children:[Object(j.jsx)("h5",{children:"Discord login required"}),Object(j.jsx)("p",{children:"Before accessing the checkout page you must connect your Discord account using the button below."})]}),Object(j.jsx)("button",{className:"discord-button",onClick:function(){window.location.href=b},children:"Login with Discord"})]})]})})})}),O=a(91),f=(a(111),a(100)),x=a.n(f),g=a(101),v=a.n(g),y=a(102),C=a.n(y),S=a(5),N=a.n(S),w=(a(77),a(76),a(20));t.a=function(){var e=Object(d.a)(),t=e.t,a=(e.i18n,Object(o.useState)({useAuthorizeNet:!1,purchaseMessage:"",docusignId:"",docusignClickId:"",scripts:[],color:"",secondary_color:"",name:"",terms:"",logo:"",pk_key:"",products:[],taxRate:0,require_billing:!1,authorizeNet:!1})),l=Object(i.a)(a,2),f=l[0],g=l[1],y=Object(o.useState)(null),S=Object(i.a)(y,2),A=S[0],P=S[1],L=Object(o.useState)([]),k=Object(i.a)(L,2),D=k[0],T=k[1],R=Object(o.useState)(!1),M=Object(i.a)(R,2),B=M[0],U=M[1],I=Object(o.useState)(),F=Object(i.a)(I,2),E=F[
10],q=F[1],K=Object(o.useState)(!1),G=Object(i.a)(K,2),_=G[0],H=G[1],z=Object(o.useState)(!1),V=Object(i.a)(z,2),Z=V[0],J=V[1],W=Object(o.useState)(""),Y=Object(i.a)(W,2),$=Y[0],X=Y[1],Q=Object(o.useState)(!1),ee=Object(i.a)(Q,2),te=ee[0],ae=ee[1],ne=Object(o.useState)(""),ce=Object(i.a)(ne,2),ie=ce[0],oe=ce[1],re=Object(o.useState)(""),le=Object(i.a)(re,2),se=le[0],de=le[1],ue=Object(o.useState)(""),be=Object(i.a)(ue,2),je=be[0],pe=be[1],me=Object(o.useState)(null),he=Object(i.a)(me,2),Oe=he[0],fe=he[1],xe=Object(o.useState)(""),ge=Object(i.a)(xe,2),ve=ge[0],ye=ge[1],Ce=Object(o.useState)(!0),Se=Object(i.a)(Ce,2),Ne=Se[0],we=Se[1],Ae=Object(o.useState)(0),Pe=Object(i.a)(Ae,2),Le=(Pe[0],Pe[1],Object(o.useState)("")),ke=Object(i.a)(Le,2),De=ke[0],Te=ke[1],Re=Object(o.useState)(""),Me=Object(i.a)(Re,2),Be=Me[0],Ue=Me[1],Ie=Object(o.useState)(""),Fe=Object(i.a)(Ie,2),Ee=Fe[0],qe=Fe[1],Ke=Object(o.useState)(0),Ge=Object(i.a)(Ke,2),_e=(Ge[0],Ge[1]),He=Object(o.useState)(0),ze=Object(i.a)(He,2),Ve=ze[0],Ze=ze[1],Je=Object(o.useState)(!0),We=Object(i.a)(Je,2),Ye=We[0],$e=We[1],Xe=Object(o.useState)(!1),Qe=Object(i.a)(Xe,2),et=Qe[0],tt=Qe[1],at=Object(o.useState)(0),nt=Object(i.a)(at,2),ct=nt[0],it=nt[1],ot=Object(o.useState)(""),rt=Object(i.a)(ot,2),lt=rt[0],st=rt[1],dt=Object(o.useState)(0),ut=Object(i.a)(dt,2),bt=ut[0],jt=ut[1],pt=Object(o.useState)(""),mt=Object(i.a)(pt,2),ht=mt[0],Ot=mt[1],ft=Object(o.useState)(""),xt=Object(i.a)(ft,2),gt=xt[0],vt=xt[1],yt=Object(o.useState)("01"),Ct=Object(i.a)(yt,2),St=Ct[0],Nt=Ct[1],wt=Object(o.useState)("23"),At=Object(i.a)(wt,2),Pt=At[0],Lt=At[1],kt=Object(o.useState)(""),Dt=Object(i.a)(kt,2),Tt=Dt[0],Rt=Dt[1],Mt=Object(o.useState)(""),Bt=Object(i.a)(Mt,2),Ut=Bt[0],It=Bt[1],Ft=Object(o.useState)(""),Et=Object(i.a)(Ft,2),qt=Et[0],Kt=Et[1],Gt=Object(o.useState)(""),_t=Object(i.a)(Gt,2),Ht=_t[0],zt=_t[1],Vt=Object(o.useState)(""),Zt=Object(i.a)(Vt,2),Jt=Zt[0],Wt=Zt[1],Yt=Object(o.useState)(!1),$t=Object(i.a)(Yt,2),Xt=$t[0],Qt=$t[1],ea=Object(o.useState)(""),ta=Object(i.a)(ea,2),aa=ta[0],na=ta[1],ca=Object(o.useState)(!1),ia=Object(i.a)(ca,2),oa=ia[0],ra=ia[1],la=Object(o.useState)(!1),sa=Object(i.a)(la,2),da=sa[0],ua=sa[1],ba=Object(o.useState)(!1),ja=Object(i.a)(ba,2),pa=ja[0],ma=ja[1],ha=Object(o.useState)(""),Oa=Object(i.a)(ha,2),fa=Oa[0],xa=Oa[1],ga=Object(o.useState)(""),va=Object(i.a)(ga,2),ya=va[0],Ca=va[1],Sa=Object(o.useState)(""),Na=Object(i.a)(Sa,2),wa=Na[0],Aa=Na[1],Pa=Object(o.useState)(""),La=Object(i.a)(Pa,2),ka=La[0],Da=La[1],Ta=Object(o.useState)(""),Ra=Object(i.a)(Ta,2),Ma=Ra[0],Ba=Ra[1],Ua=Object(o.useState)("US"),Ia=Object(i.a)(Ua,2),Fa=Ia[0],Ea=Ia[1],qa=Object(o.useState)("AL"),Ka=Object(i.a)(qa,2),Ga=Ka[0],_a=Ka[1],Ha=Object(o.useState)(""),za=Object(i.a)(Ha,2),Va=za[0],Za=za[1],Ja=Object(o.useState)(""),Wa=Object(i.a)(Ja,2),Ya=Wa[0],$a=Wa[1],Xa=Object(o.useState)(""),Qa=Object(i.a)(Xa,2),en=(Qa[0],Qa[1]),tn=Object(o.useState)(""),an=Object(i.a)(tn,2),nn=an[0],cn=an[1],on=Object(o.useState)(null),rn=Object(i.a)(on,2),ln=(rn[0],rn[1]),sn=Object(o.useRef)();Object(o.useEffect)((function(){var e=window.location.search,t=new URLSearchParams(e),a=t.get("password");en(a);var n=t.get("code"),c=t.get("coupon"),i=t.get("ref"),o="/registerInfo?password=".concat(a,"&coupon=").concat(c,"&ref=").concat(i);n&&(o="/registerInfo?password=".concat(a,"&coupon=").concat(c,"&ref=").concat(i,"&code=").concat(n)),fetch(o).then((function(e){return e.json()})).then((function(e){e.background&&P(e.background),e.success?g(e):e.requireLogin?(J(!0),X(e.redirect),g(e)):window.location.href=e.redirect})).catch((function(e){return N.a.alert(e.toString())}))}),[]),Object(o.useEffect)(Object(c.a)(Object(n.a)().mark((function e(){var t,a,c;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(f),!f.useAuthorizeNet&&""===f.pk_key){e.next=22;break}if(!f.products){e.next=22;break}if(0!=f.products.length){e.next=5;break}return e.abrupt("return",window.location.href="/dashboard");case 5:if(!f.user||!f.user.subscriptions){e.next=12;break}if(t=!1,a=[],f.user.subscriptions.map((function(e){a.push(e.plan)})),f.products.map((function(e){a.includes(e.plan)&&(t=!0)})),!t){e.next=12;break}return e.abrupt("return",window.location.href="/dashboard");case 12:if(f.useAuthorizeNet){e.next=21;break}return e.next=15,Object(p.a)(f.pk_key,{betas:["pay_button_element_beta_1","elements_enable_deferred_intent_beta_1"],stripeAccount:f.stripeAccount});case 15:c=e.sent,console.log(c),q(c),H(!0),e.next=22;break;case 21:H(!0);case 22:case"end":return e.stop()}}),e)}))),[f]),Object(o.useEffect)((function(){if(!0===_){console.log("striped loaded"),ma(!(!f.require_billing&&!f.useAuthorizeNet)),ae(f.collectPhone||!1);var e=f.products[0].currency?f.products[0].currency:"USD",t=f.taxRate;if(0===f.products[0].price){var a=0;if(f.products[0].initialPayment&&f.products[0].initialPayment.price&&(a+=f.products[0].initialPayment.price,bn(f.products[0].name,100*a,e.toLowerCase())),Te("".concat(w[e.toUpperCase()].symbol.default.display,"0")),Ue("".concat(w[e.toUpperCase()].symbol.default.display).concat(a)),_e(a),qe("".concat(w[e.toUpperCase()].symbol.default.display,"0")),we(!0),f.products[0].features){var n=[];f.products[0].features.map((function(e){n.push(e)})),T(n)}}else{a=f.products[0].price;t>0&&(a+=a*(t/100));var c=a;f.products[0].initialPayment&&f.products[0].initialPayment.price&&(c+=f.products[0].initialPayment.price),Te("".concat(w[e.toUpperCase()].symbol.default.display).concat(f.products[0].price.toFixed(2))),Ue("".concat(w[e.toUpperCase()].symbol.default.display).concat(c.toFixed(2))),_e(c.toFixed(2)),qe("".concat(w[e.toUpperCase()].symbol.default.display).concat(a.toFixed(2))),we(!1),bn(f.products[0].name,100*a,e.toLowerCase())}if($e(f.products[0].name),st(f.products[0].plan),tt("one time"===f.products[0].interval),f.products[0].trialDays&&f.products[0].trialDays>0){jt(f.products[0].trialDays);a=0;f.products[0].initialPayment&&f.products[0].initialPayment.price&&(a+=f.products[0].initialPayment.price),Ue("".concat(w[e.toUpperCase()].symbol.default.display).concat(a)),_e(a),bn(f.products[0].name,100*a,e.toLowerCase())}else jt(0);cn(dn());var i=new URLSearchParams(window.location.search).get("coupon");return i&&It(i),it(f.taxRate),f.metaPixel&&de(f.metaPixel),f.googlePixel&&oe(f.googlePixel),f.tiktokPixel&&pe(f.tiktokPixel),f.tiktokEvents&&fe(f.tiktokEvents),f.linkMink&&ye(f.linkMink),void U(!0)}}),[_]),Object(o.useEffect)((function(){!0===B&&console.log(ct)}),[ct]),Object(o.useEffect)((function(){!0===B&&Ut&&un()}),[B]);var dn=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},un=function(){for(var e,a=0;a<f.products.length;a++)if(f.products[a].plan===lt){e=f.products[a];break}if(!Ut){var n=e.price;return ct>0&&De>0&&(n+=n*(ct/100)),qe("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(n.toFixed(2))),!bt>
10&&(e.initialPayment&&e.initialPayment.price&&(n+=e.initialPayment.price),Ue("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(n.toFixed(2))),_e(n.toFixed(2)),ln(null),bn(e.name,100*n,e.currency?e.currency.toLowerCase():"usd")),zt("coupon-red"),void Wt(t("Please enter a coupon"))}Wt(""),zt(""),fetch("/api/purchase/coupons/".concat(Ut,"/").concat(e.product)).then((function(e){return e.json()})).then((function(a){if(a.success){if(Kt(Ut),zt("green"),"amount"==a.discountType){Wt("".concat(t("Applied Coupon"),": ").concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(a.discount)),Ze("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(a.discount));var n=e.price;ct>0&&n>0&&(n+=n*(ct/100));var c=n;e.initialPayment&&e.initialPayment.price&&(c+=e.initialPayment.price),(n=e.price-parseInt(a.discount))<0&&(n=0),(c=c-parseInt(a.discount))<0&&(c=0),!bt>0&&(Ue("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(c.toFixed(2))),_e(c.toFixed(2)),ln(null),bn(e.name,100*c,e.currency?e.currency.toLowerCase():"usd")),(a.forever||a.duration>1)&&qe("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(n.toFixed(2)))}else if("percent"==a.discountType){Wt("".concat(t("Applied Coupon"),": ").concat(a.discount,"%")),Ze("".concat(a.discount,"%"));n=e.price,c=e.price;e.initialPayment&&e.initialPayment.price&&(c+=e.initialPayment.price),ct>0&&n>0&&(n+=n*(ct/100),c+=c*(ct/100)),c-=c*parseInt(a.discount)/100,n-=n*parseInt(a.discount)/100,!bt>0&&(Ue("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(c.toFixed(2))),_e(c.toFixed(2)),ln(null),bn(e.name,100*c,e.currency?e.currency.toLowerCase():"usd")),(a.forever||a.duration>1)&&qe("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(n.toFixed(2)))}}else if(It(""),Wt(a.error),zt("coupon-red"),!bt>0){n=e.price;ct>0&&n>0&&(n+=n*(ct/100));var i=n;e.initialPayment&&e.initialPayment.price&&(i+=e.initialPayment.price),Ue("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(i.toFixed(2))),_e(i.toFixed(2)),qe("".concat(w[e.currency?e.currency.toUpperCase():"USD"].symbol.default.display).concat(n.toFixed(2))),ln(null),bn(e.name,100*i,e.currency?e.currency.toLowerCase():"usd")}})).catch((function(e){return N.a.alert(t("Failed request ")+e.toString(),(function(){window.location.reload()}))}))},bn=function(){var e=Object(c.a)(Object(n.a)().mark((function e(t,a,c){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ln({country:"US",currency:c,amount:a});case 1:case"end":return e.stop()}}),e)})));return function(t,a,n){return e.apply(this,arguments)}}(),jn=function(){if(!da)if(ua(!0),f.useAuthorizeNet){e={email:ht,membership:lt,terms:Xt,fname:fa,lname:ya,phone:Ya,address:wa,address2:ka,country:Fa,state:Ga,city:Va,zip:Ma,cardNumber:Ne?null:gt,cardExpiry:Ne?null:"".concat(St,"/").concat(Pt),cardCvv:Ne?null:Tt};na(""),e.password="".concat(new URLSearchParams(window.location.search).get("password")),e.email&&e.membership&&e.terms&&St&&Pt&&Tt&&gt?fetch("/api/authorizeNet/purchase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((function(e){return e.json()})).then((function(e){return e.success?f.purchaseMessage?void N.a.alert(f.purchaseMessage,(function(){return window.location.href=e.redirect})):window.location.href=e.redirect:(ua(!1),ra(!1),N.a.alert(t(e.error)))})).catch((function(e){return ua(!1),ra(!1),N.a.alert(t("Failed request ")+e.toString())})):(ua(!1),ra(!1),N.a.alert(t("Please fill in all fields")))}else{if(Ut&&!qt)return ua(!1),ra(!1),Wt(t("Please apply the coupon entered")),void zt("coupon-red");var e={email:ht,membership:lt,terms:Xt,fname:fa,lname:ya};if(pa&&(e={email:ht,membership:lt,terms:Xt,fname:fa,lname:ya,phone:Ya,address:wa,address2:ka,country:Fa,state:Ga,city:Va,zip:Ma}),te&&(e.phone=Ya),qt&&(e.coupon=qt),!e.email||!e.membership||0==e.terms)return ua(!1),ra(!1),N.a.alert(t("Please fill in all fields"));Ne?pn(e):sn.current.getToken().then((function(t){t.error?(ua(!1),ra(!1),na(t.error.message)):pn(e,t.token)})).catch((function(e){return ua(!1),ra(!1),N.a.alert(e.message)}))}},pn=function e(a,n,c,i){na(""),1!=Ne&&(a.token=n.id,a.ip=n.client_ip),a.ignoreTrialError=!!i,a.password="".concat(new 
1URLSearchParams(window.location.search).get("password")),a.email&&a.membership&&a.terms?(window.lm_data&&(a.lm_data=window.lm_data),fetch("/api/purchase",{method:"POST",headers:{"Content-Type":"application/json","Idempotency-Key":nn},body:JSON.stringify(a)}).then((function(e){return e.json()})).then((function(i){if(i.success){if(console.log(i),i.requiresAction)return cn(dn()),console.log(i.clientSecret,i.stripeAccount),void E.confirmCardPayment(i.clientSecret).then((function(e){if(console.log(e),e.error)na(e.error.message),ua(!1),ra(!1);else{if(!f.purchaseMessage)return window.location.href=i.redirect;N.a.alert(f.purchaseMessage,(function(){return window.location.href=i.redirect}))}}));if(c&&c.complete("success"),!f.purchaseMessage)return window.location.href=i.redirect;N.a.alert(f.purchaseMessage,(function(){return window.location.href=i.redirect}))}else if(cn(dn()),c){if(c.complete("fail"),"Trial already purchased"!==i.error)return N.a.alert(t(i.error));N.a.confirm({message:t("The free trial has already been applied, if you click continue, your membership fee will be due at the time of signup"),buttons:{confirm:{label:t("Continue"),className:"btn-success"},cancel:{label:t("Cancel"),className:"btn-danger"}},callback:function(t){return 1==t?e(a,n,c,!0):void 0}})}else{if(ua(!1),ra(!1),"Trial already purchased"!==i.error)return N.a.alert(t(i.error));N.a.confirm({message:t("The free trial has already been applied, if you click continue, your membership fee will be due at the time of signup"),buttons:{confirm:{label:t("Continue"),className:"btn-success"},cancel:{label:t("Cancel"),className:"btn-danger"}},callback:function(t){return 1==t?e(a,n,c,!0):void 0}})}})).catch((function(e){return c?(c.complete("fail"),N.a.alert(t("Failed request ")+e.toString())):(ua(!1),ra(!1),N.a.alert(t("Failed request ")+e.toString()))}))):c?(c.complete("fail"),N.a.alert(t("Please fill in all fields"))):(ua(!1),ra(!1),N.a.alert(t("Please fill in all fields")))};return Object(o.useEffect)((function(){console.log(ie)}),[ie]),Object(o.useEffect)((function(){console.log(ve)}
1),[ve]),Object(j.jsx)("div",{children:!0===B?Object(j.jsxs)("div",{children:[Object(j.jsxs)(r.a,{children:[Object(j.jsxs)("title",{children:["Purchase - ",f.name]}),A?Object(j.jsx)("style",{children:"\n                  html, body {\n                    background-image: url(".concat(A,") !important;\n                      background-size: 100% 100%;\n                      background-repeat: no-repeat;\n                      background-attachment: fixed;\n                  }\n                ")}):Object(j.jsx)("style",{children:"\n                  html, body {\n                    background-color: ".concat(f.color," !important;\n                  }\n                ")}),Object(j.jsx)("style",{children:"\n                  :root {\n                  --main-color: ".concat(f.color,";\n                  --secondary-color: ").concat(f.secondary_color,";\n                  }\n                  \n                  .hidden {\n                     display: none !important;\n                   }")})]}),Object(j.jsx)(r.a,{children:f.scripts.map((function(e){return"https://cdn.usefathom.com/script.js"===e&&"PlayTyme"===f.name?Object(j.jsx)("script",{"data-site":"CSEASAAW",src:e}):Object(j.jsx)("script",{src:e})}))}),ie&&Object(j.jsx)(r.a,{children:Object(j.jsx)("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(ie)})}),ie&&Object(j.jsx)(r.a,{children:Object(j.jsx)("script",{children:'\n                    window.dataLayer = window.dataLayer || [];\n                    function gtag(){dataLayer.push(arguments);}\n                    gtag("js", new Date());\n\n                    gtag("config", \''.concat(ie,"');\n                  ")})}),se&&Object(j.jsx)(r.a,{children:Object(j.jsx)("script",{children:"\n                  !function(f,b,e,v,n,t,s)\n                  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n                  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n                  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n                  n.queue=[];t=b.createElement(e);t.async=!0;\n                  t.src=v;s=b.getElementsByTagName(e)[0];\n                  s.parentNode.insertBefore(t,s)}(window, document,'script',\n                  'https://connect.facebook.net/en_US/fbevents.js');\n                  fbq('init', '".concat(se,"');\n                  fbq('track', 'PageView');\n                  ")})}),je&&Object(j.jsx)(r.a,{children:Object(j.jsx)("script",{children:'\n                  !function (w, d, t) {\n                    w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n                    ttq.load(\''.concat(je,"');\n                    ttq.page();\n                  }(window, document, 'ttq');\n                  ")})}),Oe&&Object(j.jsx)(r.a,{children:Object(j.jsx)("script",{children:"\n                    ttq.instance('".concat(Oe.id,"').track('").concat(Oe.name,"');\n                  ")})}),ve&&Object(j.jsx)(r.a,{children:Object(j.jsx)("script",{children:"\n                    // lm.js must be initialized with your API key\n                      const lm = LinkMink('".concat(ve,"')\n\n                      lm.initTracking();\n\n                      console.log(lm);\n                      // retrieve the referral information\n                      const lm_data = lm.getReferralData();\n                      window.lm_data = lm_data;\n                    ")})}),Z?Object(j.jsx)(h,{coupon:Ut,discount:Ve,price:De,total:Be,free:Ne,highlightFeatures:D,products:f.products,name:f.name,logo:f.logo,redirect:$}):Object(j.jsxs)("form",{id:"register-form",onSubmit:function(e){e.preventDefault(),function(){if(!oa){if(ra(!0),""!==f.docusignId&&""!==f.docusignClickId)return window.docuSignClick.Clickwrap.render({environment:"https://na4.docusign.net",accountId:f.docusignId,clickwrapId:f.docusignClickId,clientUserId:"".concat(s()("#email").val()," @ ").concat(Date.now()),onAgreed:jn},"#clickwrap");jn()}}()},children:[Object(j.jsx)("div",{id:"clickwrap"}
1),Object(j.jsx)("div",{className:"container",children:Object(j.jsxs)("div",{className:"row",children:[Object(j.jsxs)("div",{className:"col-lg-8",children:[Object(j.jsx)("h1",{children:f.name}),Object(j.jsxs)("select",{name:"membership",id:"membership",required:!0,value:lt,onChange:function(e){return function(e){for(var t,a=e.target.value,n=0;n<f.products.length;n++)if(f.products[n].plan===a){t=f.products[n];break}var c=t.currency?t.currency.toUpperCase():"USD";st(a),$e(t.name);var i=t.price;ct>0&&i>0&&(i+=i*(ct/100));var o=i;t.initialPayment&&t.initialPayment.price&&(o+=t.initialPayment.price),Te("".concat(w[c.toUpperCase()].symbol.default.display).concat(t.price.toFixed(2))),Ue("".concat(w[c.toUpperCase()].symbol.default.display).concat(o.toFixed(2))),_e(o.toFixed(2)),qe("".concat(w[c.toUpperCase()].symbol.default.display).concat(i.toFixed(2))),bn(t.name,100*i,c.toLowerCase()),tt("one time"===t.interval),It(""),Kt(""),Wt(""),zt(""),0==t.price?we(!0):we(!1),t.trialDays&&t.trialDays>0?(jt(t.trialDays),i=0,t.initialPayment&&t.initialPayment.price&&(i+=t.initialPayment.price),Ue("".concat(w[c.toUpperCase()].symbol.default.display).concat(i)),_e(i),bn(f.products[0].name,0,c.toLowerCase())):jt(0)}(e)},children:[Object(j.jsx)("option",{value:"",disabled:!0,children:"Please select membership"},-1),f.products.map((function(e){return Object(j.jsx)("option",{value:e.plan,children:e.name},e.plan)}))]}),Object(j.jsxs)("div",{style:{marginTop:0,marbinBottom:0},className:"row",children:[Object(j.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(j.jsx)("input",{id:"fname",className:"input-field billing-field",name:"firstname",type:"text",placeholder:t("First Name"),required:!0,value:fa,onChange:function(e){return xa(e.target.value)}})}),Object(j.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(j.jsx)("input",{id:"lname",className:"input-field billing-field",name:"lastname",type:"text",placeholder:t("Last Name"),required:!0,value:ya,onChange:function(e){return Ca(e.target.value)}})})]}),Object(j.jsx)("input",{id:"email",className:"input-field",name:"email",type:"email",placeholder:"Email",required:!0,value:ht,onChange:function(e){return Ot(e.target.value)}}),!pa&&te&&Object(j.jsx)("input",{id:"phone",className:"input-field",name:"phone",type:"tel",placeholder:t("Phone"),required:!0,value:Ya,onChange:function(e){return $a(e.target.value)}}),!0===pa?Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("input",{id:"phone",className:"input-field",name:"phone",type:"tel",placeholder:t("Phone"),required:!0,value:Ya,onChange:function(e){return $a(e.target.value)}}),Object(j.jsx)("input",{id:"address",className:"input-field",name:"address",type:"text",placeholder:t("Address"),required:!0,value:wa,onChange:function(e){return Aa(e.target.value)}}),Object(j.jsx)("input",{id:"address2",className:"input-field",name:"address2",type:"text",placeholder:t("Address line 2"),value:ka,onChange:function(e){return Da(e.target.value)}}),Object(j.jsxs)("div",{style:{marginTop:0,marbinBottom:0},className:"row",children:[Object(j.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(j.jsx)("select",{onChange:function(e){return Ea(e.target.value)},id:"country",name:"country",className:"input-field billing-field",children:Object.keys(x.a.countries).map((function(e,t){return Object(j.jsx)("option",{value:e,children:x.a.countries[e]})}))})}),Object(j.jsxs)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:["US"===Fa?Object(j.jsx)("select",{onChange:function(e){_a(e.target.value)},id:"state",name:"state",className:"input-field billing-field",children:Object.keys(v.a).map((function(e,t){return Object(j.jsx)("option",{value:e,children:v.a[e]})}))}):null,"CA"===Fa?Object(j.jsx)("select",{onChange:function(e){return _a(e.target.value)},id:"state",name:"state",className:"input-field billing-field",children:Object.keys(C.a).map((function(e,t){return Object(j.jsx)("option",{value:e,children:C.a[e]})}))}):null]})]}),Object(j.jsxs)("div",{style:{marginTop:0,marbinBottom:0},className:"row",children:[Object(j.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(j.jsx)("input",{id:"city",className:"input-field billing-field",name:"city",type:"text",placeholder:t("City"),required:!0,value:Va,onChange:function(e){return Za(e.target.value)}})}),Object(j.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(j.jsx)("input",{id:"zip",className:"input-field billing-field",name:"zip",type:"text",placeholder:t("Zip code"),required:!0,value:Ma,onChange:function(e){return Ba(e.target.value)}})})]})]}):null,!0!==B||Ne||f.useAuthorizeNet?null:Object(j.jsx)(u.Elements,{stripe:E,children:Object(j.jsxs)("div",{id:"card-element",children:[Object(j.jsx)(u.CardElement,{id:"cardElement",options:{style:{base
1:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}}}),Object(j.jsx)(b.a,{ref:sn})]})}),!0===B&&!Ne&&f.useAuthorizeNet?Object(j.jsxs)("div",{id:"card-element",children:[Object(j.jsx)("input",{id:"cardNumber",className:"input-field",name:"cardNumber",type:"text",placeholder:t("Card Number"),required:!0,value:gt,onChange:function(e){var t,a,n=null!==(t=null===(a=e.target.value.replace(/\s|[^0-9]+/g,"").match(/.{1,4}/g))||void 0===a?void 0:a.join(" "))&&void 0!==t?t:"";vt(n)}}),Object(j.jsxs)("div",{style:{marginTop:0,marbinBottom:0},className:"row",children:[Object(j.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(j.jsxs)("select",{className:"input-field",name:"cardMonth",required:!0,value:St,onChange:function(e){return Nt(e.target.value)},children:[Object(j.jsx)("option",{value:"01",children:"01"}),Object(j.jsx)("option",{value:"02",children:"02"}),Object(j.jsx)("option",{value:"03",children:"03"}),Object(j.jsx)("option",{value:"04",children:"04"}),Object(j.jsx)("option",{value:"05",children:"05"}),Object(j.jsx)("option",{value:"06",children:"06"}),Object(j.jsx)("option",{value:"07",children:"07"}),Object(j.jsx)("option",{value:"08",children:"08"}),Object(j.jsx)("option",{value:"09",children:"09"}),Object(j.jsx)("option",{value:"10",children:"10"}),Object(j.jsx)("option",{value:"11",children:"11"}),Object(j.jsx)("option",{value:"12",children:"12"})]})}),Object(j.jsx)("div",{style:{marginTop:0,marbinBottom:0},className:"col-sm-6",children:Object(j.jsxs)("select",{className:"input-field",name:"cardYear",required:!0,value:Pt,onCh
1ange:function(e){return Lt(e.target.value)},children:[Object(j.jsx)("option",{value:"23",children:"2023"}),Object(j.jsx)("option",{value:"24",children:"2024"}),Object(j.jsx)("option",{value:"25",children:"2025"}),Object(j.jsx)("option",{value:"26",children:"2026"}),Object(j.jsx)("option",{value:"27",children:"2027"}),Object(j.jsx)("option",{value:"28",children:"2028"}),Object(j.jsx)("option",{value:"29",children:"2029"}),Object(j.jsx)("option",{value:"30",children:"2030"})]})})]}),Object(j.jsx)("input",{id:"cardCvv",className:"input-field",name:"cardCvv",type:"text",placeholder:t("CVC"),required:!0,value:Tt,onChange:function(e){return Rt(e.target.value)}})]}):null,Object(j.jsx)("div",{id:"card-errors",role:"alert",children:aa}),f.useAuthorizeNet?Object(j.jsx)("div",{className:"input-group mb-3",children:Object(j.jsx)("input",{id:"coupon",className:"form-control",name:"coupon",type:"text",placeholder:t("Referral Code"),value:Ut,onChange:function(e){return It(e.target.value)}})}):Object(j.jsxs)("div",{className:"input-group mb-3",children:[Object(j.jsx)("input",{id:"coupon",className:"form-control",name:"coupon",type:"text",placeholder:t("Coupon Code or Referral Code"),value:Ut,onChange:function(e){return It(e.target.value)}}),Object(j.jsx)("div",{className:"input-group-prepend",children:Object(j.jsx)("span",{id:"apply-coupon",style:{cursor:"pointer"},className:"input-group-text",onClick:function(){return un()},children:t("Apply")})})]}),Object(j.jsxs)("div",{id:"agreer",children:[Object(j.jsx)("input",{id:"checkmark",type:"checkbox",name:"terms",value:"0",required:!0,onClick:function(){Qt(0==Xt?1:0)}}),Object(j.jsxs)("span",{style:{marginLeft:10},id:"agreement",children:[t("By clicking this box and subscribing you are agreeing to our")," ",Object(j.jsx)("br",{}),Object(j.jsx)("a",{target:"_blank",href:f.terms,children:t("Terms of Service")})]})]}),Object(j.jsx)("input",{disabled:da,style:{opacity:da?.7:1,cursor:da?"no-drop":"pointer"},className:"input-field",id:"checkout-submit",type:"submit",value:da?"...":t("Subscribe")}),Object(j.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:Object(j.jsx)("a",{className:"badge",target:"_blank",href:"https://stripe.partners/directory/ternary-developers",children:Object(j.jsx)("img",{style:{marginTop:30,width:120},src:O.a})})})]}),Ne?Object(j.jsxs)("div",{className:"col-lg-4",children:[Object(j.jsx)("h2",{children:t("Order Summary")}),Object(j.jsx)("div",{style:{marginTop:"30px"},className:"row",children:Object(j.jsxs)("div",{style:{marginBottom:"35px"},className:"col-12",children:[Object(j.jsx)("h5",{id:"product-name",children:Ye}),Object(j.jsx)("ul",{className:"info",children:D.map((function(e,t){return Object(j.jsx)("li",{children:e},"feature-".concat(t))}))}),D.length>0&&Object(j.jsx)("hr",{}),Object(j.jsxs)("div",{style:{marginTop:"30px"},className:"row",children:[Object(j.jsx)("div",{className:"col-7 left",children:Object(j.jsx)("p",{children:Object(j.jsx)("strong",{children:t("Due Today")})})}),Object(j.jsx)("div",{className:"col-5 right",children:Object(j.jsx)("p",{children:Object(j.jsx)("strong",{id:"total",children:"FREE"})})})]})]})})]}):Object(j.jsxs)("div",{className:"col-lg-4",children:[Object(j.jsx)("h2",{children:t("Order Summary")}),Object(j.jsxs)("div",{style:{marginTop:"30px"},className:"row",children:[Object(j.jsx)("div",{style:{marginBottom:"35px"},className:"col-12",children:Object(j.jsx)("h5",{id:"product-name",children:Ye})}),Object(j.jsx)("div",{className:"col-6 left subtotal-row",children:Object(j.jsx)("p",{children:t("Subtotal")})}),Object(j.jsx)("div",{className:"col-6 right subtotal-row",children:Object(j.jsx)("p",{id:"subtotal",children:De})}),ct>0?Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("div",{className:"col-6 left subtotal-row",children:Object(j.jsx)("p",{children:t("Tax rate")})}),Object(j.jsx)("div",{className:"col-6 right subtotal-row",children:Object(j.jsxs)("p",{children:[ct,"%"]})})]}):null,Object(j.jsx)("div",{style:{textAlign:"left"},className:"col-12",children:Object(j.jsx)("div",{id:"coupon-alert",className:Ht,children:Jt})}),bt>0?Object(j.jsx)("div",{style:{textAlign:"left"},className:"col-12",children:Object(j.jsxs)("div",{id:"trial-alert",className:"green",children:[bt," ",t("Free Trial Days Applied")]})}):null]}),Object(j.jsx)("hr",{}),Object(j.jsxs)("div",{style:{marginTop:"30px"},className:"row",children:[Object(j.jsx)("div",{className:"col-7 left",children:Object(j.jsx)("p",{children:Object(j.jsx)("strong",{children:t("Due Today")})})}),Object(j.jsx)("div",{className:"col-5 right",children:Object(j.jsx)("p",{children:Object(j.jsx)("strong",{id:"total",children:Be})})})]}),!1===et?Object(j.jsxs)("div",{style:{marginTop:"0px"},className:"row",children:[Object(j.jsx)("div",{className:"col-7 left",children:Object(j.jsx)("p",{children:Object(j.jsx)("strong",{children:t("Next Invoice")})})}),Object(j.jsx)("div",{className:"col-5 right",children:bt>0?Object(j.jsx)("p",{children:Object(j.jsx)("strong",{id:"subscription-total",children:Be})}):Object(j.jsx)("p",{children:Object(j.jsx)("strong",{id:"subscription-total",children:Ee})})})]}):null,Object(j.jsx)("div",{style:{marginTop:"55px"},className:"row logo-row",children:Object(j.jsx)("div",{className:"col-12",children:Object(j.jsx)("img",{className:"logo",src:f.logo})})})]})]})})]}),Object(j.jsx)("div",{style:{textAlign:"center",width:"100%",marginTop:-80,height:30},children:Object(j.jsxs)("a",{target:"_blank",href:"https://ternarydev.com/",className:"watermark",children:["Powered by ",Object(j.jsx)("span",{style:{fontWeight:700},children:"Ternary"})]})})]}):Object(j.jsxs)("div",{children:[Object(j.jsx)("div",{id:"navbar"}),Object(j.jsx)("div",{children:Object(j.jsx)(m.a,{})})]})})}},132:function(e,t,a){},135:function(e,t,a){},136:function(e,t,a){},143:function(e,t){},144:function(e,t){},145:function(e,t){},146:function(e,t){},147:function(e,t){},164:function(e,t,a){},165:function(e){e.exports=JSON.parse('{"First Name":"First Name","Last Name":"Last Name","Phone":"Phone","City":"City","Zip code":"Zip code","Order Summary":"Order Summary","Subtotal":"Subtotal","Total":"Total","Free Trial Days Applied":"Free Trial Days Applied","By clicking this box and subscribing you are agreeing to our":"By clicking this box and subscribing you are agreeing to our","Terms of Service":"Terms of Service","Please enter a coupon":"Please enter a coupon","Please apply the coupon entered":"Please apply the coupon entered","Applied Coupon":"Applied Coupon","Apply":"Apply","Subscribe":"Subscribe","Coupon Code or Referral Code":"Coupon Code or Referral Code","Referral Code":"Referral Code","Order Complete!":"Order Complete!","Your order has been completed, please copy your key and move onto the dashboard to bind your key.":"Your order has been completed, please copy your key and move onto the dashboard to bind your key.","Key":"Key","Copy Key":"Copy Key","Dashboard":"Dashboard","Logout":"Logout","Bind":"Bind","Bind Key":"Bind Key","Welcome":"Welcome","Open Discord":"Open Discord","Subscription":"Subscription","Email":"Email","Status":"Status","Trial Ends":"Trial Ends","Renewal Date":"Renewal Date","Plan Price":"Plan Price","Price":"Price","Billing":"Billing","Invoices":"Invoices","View Invoices":"View Invoices","Active":"Active","Expires at the end of the peri
1od":"Expires at the end of the period","Active Card":"Active Card","Update Payment Info":"Update Payment Info","Cancel Subscription":"Cancel Subscription","Reactivate Subscription":"Reactivate Subscription","Purchased Add-Ons":"Purchased Add-Ons","Upgrade Plan":"Upgrade Plan","Update Plan":"Update Plan","Card Used":"Card Used","Select a Plan":"Select a Plan","Upgrade":"Upgrade","Cancel Upgrade":"Cancel Upgrade","When updating plan, your membership will be prorated.  If you are in the middle of a billing cycle, then you will only owe the difference between your new membership rate minus your current membership rate (e.g. $1200 - $120 = $1,080 total).":"When updating plan, your membership will be prorated.  If you are in the middle of a billing cycle, then you will only owe the difference between your new membership rate minus your current membership rate (e.g. $1200 - $120 = $1,080 total).","Add-On Products":"Add-On Products","Purchase Add-On":"Purchase Add-On","Referral":"Referral","People Referred":"People Referred","No Rewards Available":"No Rewards Available","Request Reward":"Request Reward","Unbind Discord":"Unbind Discord","Paid on":"Paid on","Manage Payment":"Manage Payment","Cancel":"Cancel","Add new":"Add new","Remove":"Remove","Save new Card":"Save new Card","Save as Default Card":"Save as Default Card","Plan not found":"Plan not found","Plan not addable":"Plan not addable","Plan not in stock":"Plan not in stock","Must be logged in to preform this action.":"Must be logged in to preform this action.","Invalid license key":"Invalid license key","Key bound to another account":"Key bound to another account","Reward not found":"Reward not found","You do not have sufficient refferals to claim this reward":"You do not have sufficient refferals to claim this reward","Plan not upgradable":"Plan not upgradable","Cannot upgrade to one time plan":"Cannot upgrade to one time plan","Stripe needs to be connected for sales to be made":"Stripe needs to be connected for sales to be made","Failed creating user":"Failed creating user","Failed creating subscription":"Failed creating subscription","Failed billing card":"Failed billing card","Failed creating customer":"Failed creating customer","Product unavailable!":"Product unavailable!","Missing data":"Missing data","User not found":"User not found","Coupon no longer valid":"Coupon no longer valid","Discount does not apply to product":"Discount does not apply to product","Coupon not found":"Coupon not found","Referral not found":"Referral not found","Successfully deleted card":"Successfully deleted card","Please select a card":"Please select a card","Successfully saved card as default":"Successfully saved card as default","Successfully Added Card":"Successfully Added Card","Successfully Bound Key":"Successfully Bound Key","Failed request ":"Failed request ","Successfully joined":"Successfully joined","Unbinding will cause you to be removed from the server. Don\'t worry you can bind back!":"Unbinding will cause you to be removed from the server. Don\'t worry you can bind back!","Successfully Unbound Account":"Successfully Unbound Account","Successfully submit request, please wait for an admin to get in contact with you through Discord.":"Successfully submit request, please wait for an admin to get in contact with you through Discord.","Please select a reward":"Please select a reward","Successfully Updated Subscription":"Successfully Updated Subscription","Are you sure you want to upgrade your current plan to":"Are you sure you want to upgrade your current plan to","Successfully Updated Plan":"Successfully Updated Plan","Are you sure you want to add":"Are you sure you want to add","Successfully Added Add-On Plan":"Successfully Added Add-On Plan","Please fill in all fields":"Please fill in all fields","Are you sure you want to reactivate your subscription":"Are you sure you want to reactivate your subscription","Are you sure you want to cancel your subscription":"Are you sure you want to cancel your subscription","Reason for Cancellation?":"Reason for Cancellation?","Too expensive":"Too expensive","Joining another group":"Joining another group","No time to use":"No time to use","Submit Cancellation":"Submit Cancellation","Cancel Cancellation":"Cancel Cancellation","Coupon code":"Coupon code","Submit Upgrade":"Submit Upgrade","Add":"Add","Plan":"Plan","Posts":"Posts","Feed":"Feed","Latest Posts":"Latest Posts","Account":"Account","Sign Out":"Sign Out","Search":"Search","Other":"Other","Enter your feedback here.":"Enter your feedback here.","Due Today":"Due Today","Next Invoice":"Next Invoice","Flows":"Flows","Donate":"Donate","Catalogue":"Catalogue","Tax rate":"Tax rate","Continue":"Continue","The free trial has already been applied, if you click continue, your membership fee will be due at the time of signup":"The free trial has already been applied, if you click continue, your membership fee will be due at the time of signup"}')},166:function(e){e.exports=JSON.parse('{"First Name":"Nombre","Last Name":"Apellido","Phone":"Tel\xe9fono","City":"Ciudad","Zip code":"C\xf3digo postal","Order Summary":"Su compra","Subtotal":"Subtotal","Total":"Total","Free Trial Days Applied":"D\xedas de prueba gratis aplicad
1os","By clicking this box and subscribing you are agreeing to our":"Al hacer clic aqu\xed y suscribirse, acepta nuestros","Terms of Service":"T\xe9rminos y condiciones","Please enter a coupon":"Ingresar c\xf3digo de descuento","Please apply the coupon entered":"Aplicar c\xf3digo descuento","Applied Coupon":"C\xf3digo aplicado","Apply":"Aplicar","Subscribe":"Suscribirse","Coupon Code or Referral Code":"Cup\xf3n de descuento o c\xf3digo de referencia","Referral Code":"C\xf3digo de referencia","Order Complete!":"Su orden ha sido completada !","Your order has been completed, please copy your key and move onto the dashboard to bind your key.":"Copie su clave e ingrese a el portal para activar su cuenta.","Key":"Clave","Copy Key":"Copiar Clave","Dashboard":"Portal","Logout":"Cerrar Sesi\xf3n","Bind":"Enlazar","Bind Key":"Enlace su clave","Welcome":"Bienvenido","Open Discord":"Conectarse a Discord","Subscription":"Membres\xeda","Email":"Correo electr\xf3nico","Status":"Estado","Trial Ends":"Final de su periodo de prueba","Renewal Date":"Fecha de reanudaci\xf3n","Plan Price":"Precio de su plan","Price":"Precio","Billing":"Facturaci\xf3n","Invoices":"Facturas","View Invoices":"Ver Facturas","Active":"Activo","Expires at the end of the period":"Expira al final del per\xedodo de facturaci\xf3n","Active Card":"Tarjeta de cr\xe9dito actual","Update Payment Info":"Actualizar forma de pago","Cancel Subscription":"Cancelar su membres\xeda","Reactivate Subscription":"Reactivar su membres\xeda","Purchased Add-Ons":"Add-ons Comprados","Upgrade Plan":"Cambiar su Plan","Update Plan":"Cambiar su Plan","Card Used":"Tarjeta de cr\xe9dito en uso","Select a Plan":"Elija su plan","Upgrade":"Cambiar su membres\xeda","When updating plan, your membership will be prorated.  If you are in the middle of a billing cycle, then you will only owe the difference between your new membership rate minus your current membership rate (e.g. $1200 - $120 = $1,080 total).":"Al actualizar su membres\xeda su pago se prorratear\xe1. Si se encuentra en medio de un ciclo de facturaci\xf3n, solo deber\xe1 pagar la diferencia entre su nueva tarifa de membres\xeda menos su tarifa de membres\xeda actual (por ejemplo, $ 1200 - $ 120 = $ 1,080 en total).","Add-On Products":"Productos Add-on","Purchase Add-On":"Comprar Add-on","Referral":"Referido","People Referred":"Usuarios referidos","No Rewards Available":"No tiene recompensas disponibles","Request Reward":"Reclamar su recompensa","Unbind Discord":"Desenlazar de Discord","Paid on":"Pago procesado en","Manage Payment":"Administrar el pago","Cancel":"Cancelar","Add new":"a\xf1adir","Remove":"Eliminar","Save new Card":"Agregar nueva tarjeta","Save as Default Card":"Establecer como m\xe9todo de pago predeterminado","Plan not found":"Plan no encontrado","Plan not addable":"El plan no puede ser agregado","Plan not in stock":"El plan esta agotado","Must be logged in to preform this action.":"Debe iniciar sesi\xf3n para realizar esta acci\xf3n.","Invalid license key":"Clave inv\xe1lida","Key bound to another account":"Clave enlazada a otra cuenta","Reward not found":"Recompensa no encontrada","You do not have sufficient refferals to claim this reward":"No tiene suficientes referidos para reclamar su recompensa","Plan not upgradable":"El plan no se permite cambiar","Cannot upgrade to one time plan":"No se puede cambiar a un plan de un solo pago.","Stripe needs to be connected for sales to be made":"Stripe debe estar conectado para poder realizar las ventas","Failed creating user":"Error al crear usuario","Failed creating subscription":"Error al crear suscripci\xf3n","Failed billing card":"Error de tarjeta de cr\xe9dito","Failed creating customer":"Error al crear cliente","Product unavailable!":"Producto no disponible","Missing data":"Datos incompletos","User not found":"Usuario no ha sido encontrado","Coupon no longer valid":"Cup\xf3n invalido","Discount does not apply to product":"El descuento no aplica para este producto","Coupon not found":"Cup\xf3n no ha sido encontrado","Referral not found":"Referido no ha sido encontrado","Successfully deleted card":"Su tarjeta ha sido eliminada","Please select a card":"Seleccione su tarjeta","Successfully saved card as default":"Su tarjeta ha sido guardada como pago predeterminado.","Successfully Added Card":"Tarjeta guardada","Successfully Bound Key":"Su clave ha sido enlazada","Failed request ":"Solicitud no procesada ","Successfully joined":"Se ha conectado con \xe9xito","Unbinding will cause you to be removed from the server. Don\'t worry you can bind back!":"Al desenlazar su 
1clave, ser\xe1 eliminado del servidor. \xa1No se preocupe, puede volver a enlazar su clave!","Successfully Unbound Account":"Su cuenta ha sido desenlazada con \xe9xito","Successfully submit request, please wait for an admin to get in contact with you through Discord.":"Su solicitud ha sido enviada, espere a que un administrador se comunique con usted a trav\xe9s de Discord.","Please select a reward":"Elija su recompensa","Successfully Updated Subscription":"Su membres\xeda ha sido actualizada","Are you sure you want to upgrade your current plan to":"\xbfEst\xe1 seguro de que desea actualizar su plan actual?","Successfully Updated Plan":"Su plan ha sido actualizado","Are you sure you want to add":"\xbfEst\xe1 seguro de que desea a\xf1adir un add-on?","Successfully Added Add-On Plan":"Su Add-on ha sido a\xf1adido","Please fill in all fields":"Por favor complete todos los campos","Are you sure you want to reactivate your subscription":"\xbfEst\xe1 seguro de que desea reactivar su membres\xeda?","Are you sure you want to cancel your subscription":"\xbfEst\xe1 seguro de que desea cancelar su membres\xeda?","Reason for Cancellation?":"\xbfRaz\xf3n de la cancelaci\xf3n?","Too expensive":"El precio es muy caro","Joining another group":"Me suscribir\xe9 a otra comunidad","No time to use":"No tengo tiempo para usar mi membres\xeda","Submit Cancellation":"Cancelar","Cancel Cancellation":"No cancelar","Coupon code":"Cup\xf3n de descuento","Submit Upgrade":"Actualizar","Add":"Agregar","Plan":"Plan","Posts":"Publicaci\xf3nes","Feed":"Publicaci\xf3nes","Latest Posts":"Ultimas Publicaci\xf3nes","Account":"Mi Cuenta","Sign Out":"Cerrar Sesi\xf3n","Search":"Buscar","Other":"Otro","Enter your feedback here.":"Ingrese sus comentarios aqu\xed.","Due Today":"Total de Hoy","Next Invoice":"Pr\xf3xima factura","Flows":"Flujos de opciones","Donate":"Donar","Catalogue":"Cat\xe1logo","Tax rate":"Impuesto","Continue":"Continuar","The free trial has already been applied, if you click continue, your membership fee will be due at the time of signup":"La prueba gratuita ya se ha aplicado, si hace clic en continuar, deber\xe1 pagar su cuota de membres\xeda en el momento de la inscripci\xf3n"}')},168:function(e,t,a){"use strict";a.r(t);var n=a(1),c=a.n(n),i=a(94),o=a.n(i),r=(a(132),a(112)),l=function(e){e&&e instanceof Function&&a.e(3).then(a.bind(null,178)).then((function(t){var a=t.getCLS,n=t.getFID,c=t.getFCP,i=t.getLCP,o=t.getTTFB;a(e),n(e),c(e),i(e),o(e)}))},s=a(103),d=a(72),u=a(122),b={en:{translation:a(165)},es:{translation:a(166)}};s.a.use(u.a).use(d.e).init({resources:b,fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1}});s.a;var j=a(0);o.a.render(Object(j.jsx)(c.a.StrictMode,{children:Object(j.jsx)(r.a,{})}),document.getElementById("root")),l()},20:function(e){e.exports=JSON.parse('{"AED":{"name":"Emirati Dirham","iso":{"code":"AED","num":"784"},"symbol":{"default":{"display":"Dhs","code":"Dhs"},"native":{"display":"\u062f.\u0625","code":"&#x62f;.&#x625;"}},"units":{"decimal":2,"sub":100,"name":{"major":"Dirham","minor":"Fil"}},"format":"-###,###,###.## Dhs"},"AFN":{"name":"Afghan Afghani","iso":{"code":"AFN","num":"971"},"symbol":{"default":{"display":"\u060b","code":"&#x60b;"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Afghani","minor":"Pul"}},"format":"-###,###,###.##"},"ALL":{"name":"Albanian Lek","iso":{"code":"ALL","num":"008"},"symbol":{"default":{"display":"L","code":"L"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Lek","minor":"Qindarka"}},"format":"L -###,###,###.##"},"AMD":{"name":"Armenian Dram","iso":{"code":"AMD","num":"051"},"symbol":{"default":{"display":"AMD","code":"&#x58f;"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Dram","minor":"Luma"}},"format":"AMD -###,###,###.##"},"ANG":{"name":"Netherlands Antillean Guilder","iso":{"code":"ANG","num":"532"},"symbol":{"default":{"display":"NA\u0192","code":"NA&#x192;"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Guilder","minor":"Cent"}},"format":"NA\u0192 -###,###,###.##"},"AOA":{"name":"Angolan Kwanza","iso":{"code":"AOA","num":"973"},"symbol":{"default":{"display":"Kz","code":"Kz"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Kwanza","minor":"C\xeantimos"}},"format":"-###,###,###.## Kz"}
1,"ARS":{"name":"Argentine Peso","iso":{"code":"ARS","num":"032"},"symbol":{"default":{"display":"AR$","code":"AR&#x24;"},"native":{"display":"$","code":"&#x24;"}},"units":{"decimal":2,"sub":100,"name":{"major":"Peso","minor":"Centavo"}},"format":"AR$-###.###.###,##"},"AUD":{"name":"Australian Dollar","iso":{"code":"AUD","num":"036"},"symbol":{"default":{"display":"AU$","code":"AU&#x24;"},"native":{"display":"$","code":"&#x24;"}},"units":{"decimal":2,"sub":100,"name":{"major":"Dollar","minor":"Cent"}},"format":"-AU$###,###,###.##"},"AWG":{"name":"Aruban Florin","iso":{"code":"AWG","num":"533"},"symbol":{"default":{"display":"Afl.","code":"Afl."},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Florin","minor":"Cent"}},"format":"Afl. -###,###,###.##"},"AZN":{"name":"Azerbaijani Manat","iso":{"code":"BRL","num":"944"},"symbol":{"default":{"display":"man.","code":"man."},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Manat","minor":"Q\u0259pik"}},"format":"man. -$###.###.###,##"},"CAD":{"name":"Canadian Dollar","iso":{"code":"CAD","num":"124"},"symbol":{"default":{"display":"CA$","code":"CA&#x24;"},"native":{"display":"$","code":"&#x24;"}},"units":{"decimal":2,"sub":100,"name":{"major":"Dollar","minor":"Cent"}},"format":"-CA$###,###,###.##"},"DKK":{"name":"Danish Krone","iso":{"code":"DKK","num":"208"},"symbol":{"default":{"display":"kr","code":"kr"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Krone","minor":"\xd8re"}},"format":"kr -###.###.###,##"},"EUR":{"name":"Euro","iso":{"code":"EUR","num":"978"},"symbol":{"default":{"display":"\u20ac","code":"&#x20ac;"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Euro","minor":"Cent"}},"format":"-\u20ac###.###.###,##"},"GBP":{"name":"Pound Sterling","iso":{"code":"GBP","num":"826"},"symbol":{"default":{"display":"\xa3","code":"&#xa3;"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Pound","minor":"Pence"}},"format":"-\xa3###,###,###.##"},"JPY":{"name":"Japanese Yen","iso":{"code":"JPY","num":"392"},"symbol":{"default":{"display":"\xa5","code":"&#xa5;"},"native":{"display":"\u5186","code":"&#x5186;"}},"units":{"decimal":0,"sub":0,"name":{"major":"Yen","minor":null}},"format":"-###,###,###\u5186"},"USD":{"name":"US Dollar","iso":{"code":"USD","num":"840"},"symbol":{"default":{"display":"$","code":"&#x24;"},"native":null},"units":{"decimal":2,"sub":100,"name":{"major":"Dollar","minor":"Cent"}},"format":"-$###,###,###.##"}}')},49:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));a(1);var n=a(170),c=a(0),i={position:"relative",display:"flex",flexDirection:"row",height:60,paddingTop:30,width:"100%",boxSizing:"border-box",justifyContent:"center"},o={display:"block",width:"2rem",height:"2rem",border:"0.3rem solid #c8c8c8",borderTop:"0.3rem solid #FFF",borderRadius:"50%",boxSizing:"border-box"},r={loop:1/0,ease:"linear",duration:1};function l(){return Object(c.jsx)("div",{style:i,children:Object(c.jsx)(n.a.span,{style:o,animate:{rotate:360},transition:r})})}},52:function(e,t,a){"use strict";var n=a(1),c=a(27),i=a(0),o=Object(n.forwardRef)((function(e,t){e.setElement;var a=Object(c.useStripe)(),o=Object(c.useElements)();return Object(n.useImperativeHandle)(t,(function(){return{getToken:function(){return new Promise((function(e,t){var n=o.getElement(c.CardElement);a.createToken(n).then((function(a){a.error?t(a.error):e(a)})).catch((function(e){t(e)}))}))}}})),Object(i.jsx)(i.Fragment,{})}));t.a=o},75:function(e,t,a){},91:function(e,t,a){"use strict";t.a=a.p+"media/partner.600be0c2.png"},98:function(e,t,a){"use strict";var n=a(3),c=a(1),i=a(18),o=a(24),r=a(125),l=(a(75),a(19)),s=a.n(l),d=(a(77),a(76),a(5)),u=a.n(d),b=a(49),j=a(0);t.a=function(){var e=Object(i.f)().key,t=Object(c.useState)({name:"",scripts:[],color:"",secondaryColor:""}),a=Object(n.a)(t,2),l=a[0],d=a[1],p=Object(c.useState)(!1),m=Object(n.a)(p,2),h=m[0],O=m[1],f=Object(r.a)(),x=f.t,g=(f.i18n,Object(c.useState)(null)),v=Object(n.a)(g,2),y=v[0],C=v[1],S=Object(c.useState)(""),N=Object(n.a)(S,2),w=N[0],A=N[1],P=Object(c.useState)(""),L=Object(n.a)(P,2),k=L[0],D=L[1],T=Object(c.useState)(""),R=Object(n.a)(T,2),M=R[0],B=R[1],U=Object(c.useState)(null),I=Object(n.a)(U,2),F=I[0],E=I[1];Object(c.useEffect)((function(){e&&C(e),fetch("/orderInfo?key="+e).then((function(e){return e.json()})).then((function(e){if(!e.success)return u.a.alert(e.error);O(!0),e&&(e.metaPixel&&D(e.metaPixel),e.googlePixel&&A(e.googlePixel),e.tiktokPixel&&B(e.tiktokPixel),e.tiktokEvents&&E(e.tiktokEvents)),d(e)})).catch((function(e){return console.log(e),u.a.alert(e.toString())}))}),[]);return Object(j.jsx)("div",{children:!0===h?Object(j.jsxs)("div",{children:[Object(j.jsxs)(o.a,{children:[Object(j.jsxs)("title",{children:["Order - ",l.name]}),Object(j.jsx)("style",{children:"\n              :root {\n              --main-color: ".concat(l.color,";\n              --secondary-color: ").concat(l.secondary_color,";\n              }\n              html, body {\n                background-color: ").concat(l.color," !important;\n              }")}),l.scripts.map((function(e){return Object(j.jsx)("script",{src:e})}))]}),w&&Object(j.jsxs)(o.a,{children:[Object(j.jsx)("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(w)}),Object(j.jsx)("script",{children:'\n                      window.dataLayer = window.dataLayer || [];\n                      function gtag(){dataLayer.push(arguments);}\n                      gtag("js", new Date());\n  \n                      gtag("config", \''.concat(w,"');\n                    ")})]}),k&&Object(j.jsx)(o.a,{children:Object(j.jsx)("script",{children:"\n                  !function(f,b,e,v,n,t,s)\n                  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n                  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n                  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n                  n.queue=[];t=b.createElement(e);t.async=!0;\n                  t.src=v;s=b.getElementsByTagName(e)[0];\n                  s.parentNode.insertBefore(t,s)}(window, document,'script',\n                  'https://connect.facebook.net/en_US/fbevents.js');\n                  fbq('init', '".concat(k,"');\n                  fbq('track', 'PageView');\n                  ")})}),M&&Object(j.jsx)(o.a,{children:Object(j.jsx)("script",{children:'\n                  !function (w, d, t) {\n                    w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};\n                    ttq.load(\''.concat(M,"');\n                    ttq.page();\n                  }(window, document, 'ttq');\n                  ")})}),F&&Object(j.jsx)(o.a,{children:Object(j.jsx)("script",{children:"\n                    ttq.instance('".concat(F.id,"').track('").concat(F.name,"');\n                  ")})}),Object(j.jsxs)("div",{id:"order-complete",children:[Object(j.jsx)("h1",{children:x("Order Complete!")}),y?Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("p",{children:x("Your order has been completed, please copy your key and move onto the dashboard to bind your key.")}),Object(j.jsxs)("h2",{children:[x("Key"),":"]}),Object(j.jsx)("input",{readOnly:!0,id:"key-field",type:"text",value:y}),Object(j.jsx)("button",{onClick:function(){return e="#key-field",s()(e).trigger("select"),document.execCommand("copy"),s()("#dashboard").removeClass("disabled"),void s()("#dashboard").attr("disabled",!1);var e},style:{cursor:"pointer",backgroundColor:"#FFF",color:"var(--main-color)",border:"1px solid #DDDDE0"},className:"order-btn",children:x("Copy Key")}),Object(j.jsx)("button",{onClick:function(){return window.open("/dashboard","_blank")},id:"dashboard",style:{color:"var(--secondary-color)",backgroundColor:"var(--main-color)"},className:"order-btn disabled",children:x("Dashboard")})]}):Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("p",{children:"Your order has been completed, please move onto the dashboard to access the server and your account."}),Object(j.jsx)("button",{onClick:function(){return window.open("/dashboard","_blank")},id:"dashboard",style:{color:"var(--secondary-color)",backgroundColor:"var(--main-color)"},className:"order-btn disabled",children:x("Dashboard")})]})]})]}):Object(j.jsxs)("div",{children:[Object(j.jsx)("div",{id:"navbar"}),Object(j.jsx)("div",{children:Object(j.jsx)(b.a,{})})]})})}}},[[168,1,2]]]);
2//# sourceMappingURL=main.2bbc6834.chunk.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.