-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-jsx-54b2f20435f45214cceb.js
2 lines (2 loc) · 87.1 KB
/
component---src-pages-index-jsx-54b2f20435f45214cceb.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"/xZ8":function(e){e.exports=JSON.parse('{"BD":"Bangladesh","BE":"Belgium","BF":"Burkina Faso","BG":"Bulgaria","BA":"Bosnia and Herzegovina","BB":"Barbados","WF":"Wallis and Futuna","BL":"Saint Barthelemy","BM":"Bermuda","BN":"Brunei","BO":"Bolivia","BH":"Bahrain","BI":"Burundi","BJ":"Benin","BT":"Bhutan","JM":"Jamaica","BV":"Bouvet Island","BW":"Botswana","WS":"Samoa","BQ":"Bonaire, Saint Eustatius and Saba ","BR":"Brazil","BS":"Bahamas","JE":"Jersey","BY":"Belarus","BZ":"Belize","RU":"Russia","RW":"Rwanda","RS":"Serbia","TL":"East Timor","RE":"Reunion","TM":"Turkmenistan","TJ":"Tajikistan","RO":"Romania","TK":"Tokelau","GW":"Guinea-Bissau","GU":"Guam","GT":"Guatemala","GS":"South Georgia and the South Sandwich Islands","GR":"Greece","GQ":"Equatorial Guinea","GP":"Guadeloupe","JP":"Japan","GY":"Guyana","GG":"Guernsey","GF":"French Guiana","GE":"Georgia","GD":"Grenada","GB":"United Kingdom","GA":"Gabon","SV":"El Salvador","GN":"Guinea","GM":"Gambia","GL":"Greenland","GI":"Gibraltar","GH":"Ghana","OM":"Oman","TN":"Tunisia","JO":"Jordan","HR":"Croatia","HT":"Haiti","HU":"Hungary","HK":"Hong Kong","HN":"Honduras","HM":"Heard Island and McDonald Islands","VE":"Venezuela","PR":"Puerto Rico","PS":"Palestinian Territory","PW":"Palau","PT":"Portugal","SJ":"Svalbard and Jan Mayen","PY":"Paraguay","IQ":"Iraq","PA":"Panama","PF":"French Polynesia","PG":"Papua New Guinea","PE":"Peru","PK":"Pakistan","PH":"Philippines","PN":"Pitcairn","PL":"Poland","PM":"Saint Pierre and Miquelon","ZM":"Zambia","EH":"Western Sahara","EE":"Estonia","EG":"Egypt","ZA":"South Africa","EC":"Ecuador","IT":"Italy","VN":"Vietnam","SB":"Solomon Islands","ET":"Ethiopia","SO":"Somalia","ZW":"Zimbabwe","SA":"Saudi Arabia","ES":"Spain","ER":"Eritrea","ME":"Montenegro","MD":"Moldova","MG":"Madagascar","MF":"Saint Martin","MA":"Morocco","MC":"Monaco","UZ":"Uzbekistan","MM":"Myanmar","ML":"Mali","MO":"Macao","MN":"Mongolia","MH":"Marshall Islands","MK":"Macedonia","MU":"Mauritius","MT":"Malta","MW":"Malawi","MV":"Maldives","MQ":"Martinique","MP":"Northern Mariana Islands","MS":"Montserrat","MR":"Mauritania","IM":"Isle of Man","UG":"Uganda","TZ":"Tanzania","MY":"Malaysia","MX":"Mexico","IL":"Israel","FR":"France","IO":"British Indian Ocean Territory","SH":"Saint Helena","FI":"Finland","FJ":"Fiji","FK":"Falkland Islands","FM":"Micronesia","FO":"Faroe Islands","NI":"Nicaragua","NL":"Netherlands","NO":"Norway","NA":"Namibia","VU":"Vanuatu","NC":"New Caledonia","NE":"Niger","NF":"Norfolk Island","NG":"Nigeria","NZ":"New Zealand","NP":"Nepal","NR":"Nauru","NU":"Niue","CK":"Cook Islands","XK":"Kosovo","CI":"Ivory Coast","CH":"Switzerland","CO":"Colombia","CN":"China","CM":"Cameroon","CL":"Chile","CC":"Cocos Islands","CA":"Canada","CG":"Republic of the Congo","CF":"Central African Republic","CD":"Democratic Republic of the Congo","CZ":"Czech Republic","CY":"Cyprus","CX":"Christmas Island","CR":"Costa Rica","CW":"Curacao","CV":"Cape Verde","CU":"Cuba","SZ":"Swaziland","SY":"Syria","SX":"Sint Maarten","KG":"Kyrgyzstan","KE":"Kenya","SS":"South Sudan","SR":"Suriname","KI":"Kiribati","KH":"Cambodia","KN":"Saint Kitts and Nevis","KM":"Comoros","ST":"Sao Tome and Principe","SK":"Slovakia","KR":"South Korea","SI":"Slovenia","KP":"North Korea","KW":"Kuwait","SN":"Senegal","SM":"San Marino","SL":"Sierra Leone","SC":"Seychelles","KZ":"Kazakhstan","KY":"Cayman Islands","SG":"Singapore","SE":"Sweden","SD":"Sudan","DO":"Dominican Republic","DM":"Dominica","DJ":"Djibouti","DK":"Denmark","VG":"British Virgin Islands","DE":"Germany","YE":"Yemen","DZ":"Algeria","US":"United States","UY":"Uruguay","YT":"Mayotte","UM":"United States Minor Outlying Islands","LB":"Lebanon","LC":"Saint Lucia","LA":"Laos","TV":"Tuvalu","TW":"Taiwan","TT":"Trinidad and Tobago","TR":"Turkey","LK":"Sri Lanka","LI":"Liechtenstein","LV":"Latvia","TO":"Tonga","LT":"Lithuania","LU":"Luxembourg","LR":"Liberia","LS":"Lesotho","TH":"Thailand","TF":"French Southern Territories","TG":"Togo","TD":"Chad","TC":"Turks and Caicos Islands","LY":"Libya","VA":"Vatican","VC":"Saint Vincent and the Grenadines","AE":"United Arab Emirates","AD":"Andorra","AG":"Antigua and Barbuda","AF":"Afghanistan","AI":"Anguilla","VI":"U.S. Virgin Islands","IS":"Iceland","IR":"Iran","AM":"Armenia","AL":"Albania","AO":"Angola","AQ":"Antarctica","AS":"American Samoa","AR":"Argentina","AU":"Australia","AT":"Austria","AW":"Aruba","IN":"India","AX":"Aland Islands","AZ":"Azerbaijan","IE":"Ireland","ID":"Indonesia","UA":"Ukraine","QA":"Qatar","MZ":"Mozambique"}')},Dtc0:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),o=n.n(a),r=n("YwZP"),i=n("eWwy");function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c="https://js.stripe.com/v3",l=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,d="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",u=null,A=function(e){return null!==u?u:u=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(d),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(c,'"]')),t=0;t<e.length;t++){var n=e[t];if(l.test(n.src))return n}return null}();a&&e?console.warn(d):a||(a=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(c).concat(t);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n}(e)),a.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(o){return void n(o)}else t(null)}))},p=function(e,t){if(null===e)return null;var n=e.apply(void 0,s(t));return function(e){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.8.0"})}(n),n},b=Promise.resolve().then((function(){return A(null)})),g=!1;b.catch((function(e){g||console.warn(e)}));var m=n("pj9A"),f=n("/MKj"),h=n("Wbzz"),v=n("tjd4"),y=n("wIcy"),j=n("qKvR"),O={name:"10rvbm3",styles:"font-weight:500;"},x=function(){return Object(j.a)(y.a,null,Object(j.a)("div",null,Object(j.a)("span",null,"Powered by")," ",Object(j.a)("span",{css:O},"glee")))},w=n("iYmT"),k=n("VnRw"),C=n("vLQZ"),E=n("yVse"),z=n("sfvf"),S=n("ut4/"),I=function(e){if(Object(z.a)()){var t=window.location.pathname.endsWith("/")?window.location.pathname.slice(0,-1):window.location.pathname;return e=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(e)}},B=function(e){var t=e.children,n=e.to;return Object(j.a)(h.a,{to:n,css:Object(w.a)({color:I(n)?"var(--green)":"grey",padding:15})},t)},M={name:"70qvj9",styles:"display:flex;align-items:center;"},D={name:"syxnd1",styles:"padding:15px;height:100%;"},T={name:"10rvbm3",styles:"font-weight:500;"},Q={name:"g53lod",styles:"height:100%;padding:15px;display:flex;align-items:center;"},R={name:"7rxv5z",styles:"border-bottom:1px solid rgba(200, 200, 200, .2);"},P={name:"1g7tosp",styles:"padding:0 15px;height:100%;max-width:1000px;margin:0 auto;display:flex;align-items:center;font-size:.8em;text-transform:uppercase;font-weight:500;overflow-x:auto;background-color:var(--dark);"},G=function(e){var t=e.code,n=e.name,a=e.icon,r=e.permissions;return Object(j.a)(o.a.Fragment,null,Object(j.a)(k.a,null,t?Object(j.a)(h.a,{to:"/"+t,css:M},a?Object(j.a)("img",{alt:"Logo",src:a,height:64,width:64,css:D}):null,n?Object(j.a)("div",{css:T},n):null):Object(j.a)(h.a,{to:"/",css:Q},Object(j.a)(E.a,null)),Object(j.a)(C.a,null)),t?Object(j.a)("div",{css:R},Object(j.a)("div",{css:P},Object(j.a)(B,{to:"/"+t+"/feedback"},"Feedback"),r?Object(j.a)(B,{to:"/"+t+"/team"},"Team"):null,r===S.a.OWNER||r===S.a.ADMIN?Object(j.a)(B,{to:"/"+t+"/settings"},"Settings"):null)):null)},L=n("I204"),N=n("1ajf"),F=n("koNg"),K=(n("mWtZ"),function(e){var t=e.children;return Object(j.a)("div",{style:{minHeight:"50vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},t)}),q={name:"17v9v2i",styles:"margin:0 auto;padding:15px;display:flex;flex-direction:column;min-height:calc(100vh);max-width:1000px;"},W={name:"1u3hl0t",styles:"margin-top:5px;color:lightgrey;font-size:.9em;"},H={name:"1xaekgw",styles:"margin-top:20px;"},Y={name:"1xaekgw",styles:"margin-top:20px;"},U={name:"1xaekgw",styles:"margin-top:20px;"},Z=Object(f.b)((function(e){return{me:e.global.me,org:e.global.org}}),(function(e){return{updateMe:function(t){return e(Object(N.b)(t))},updateOrg:function(t){return e(Object(N.c)(t))}}}))((function(e){var t=e.children,n=e.me,a=e.updateMe,r=e.org,i=e.updateOrg,s=e.title,c=e.description,l=e.image,d=o.a.useState(void 0),u=d[0],A=d[1];return o.a.useEffect((function(){var e=F.b(F.a);if(n&&n.token||e&&e.token&&a(e),(!e||!e.token||n&&n.token)&&Object(z.a)()){var t=window.location.pathname.split("/").filter((function(e){return e}))[0];return window.fetch("https://gleepi.herokuapp.com/orgs/code/"+t,{headers:{Accept:"application/json",Authorization:n.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){A(!0),i(e)})).catch((function(e){console.error(e),A(!1)})),function(){i({})}}}),[n,a,i]),Object(j.a)("div",null,Object(j.a)(L.a,{title:s||r.name,description:c,image:l||r.icon}),Object(j.a)(G,{code:r.code,name:r.name,icon:r.icon,permissions:r.permissions}),!0===u?r.permissions||r.visible?Object(j.a)("main",{css:q},t):Object(j.a)(K,null,Object(j.a)("div",null,"Shh! This is a private place."),Object(j.a)("div",{css:W},"You're not supposed to be here."),Object(j.a)("div",{css:H},Object(j.a)(h.a,{to:Object(z.a)()?"/authorize?path="+window.location.pathname:"/authorize"},Object(j.a)("button",null,"But, I'm a member here!")))):!1===u?Object(j.a)(K,null,Object(j.a)("div",null,"There's nothing here, yet."),Object(j.a)("div",{css:Y},Object(j.a)(h.a,{to:"/"},Object(j.a)("button",null,"Build something amazing!")))):Object(j.a)(K,null,Object(j.a)("div",null,Object(j.a)(v.a,{size:48})),Object(j.a)("div",{css:U},"Crunching Data")),Object(j.a)(x,null))})),V=n("hZgW"),X=n("KIry"),J=n("IdFE"),_=n("Tgqd"),$=1,ee=2,te=n("zy8R"),ne=n.n(te),ae={name:"1yk01wk",styles:"width:100%;padding:15px;margin-bottom:25px;display:flex;flex-direction:column;background-color:rgba(100, 100, 100, .1);border-radius:5px;border:1px solid rgba(100, 100, 100, .3);"},oe={name:"8vrhw1",styles:"font-weight:500;margin-bottom:10px;"},re={name:"xfaob4",styles:"color:lightgrey;font-size:.9em;"},ie={name:"1fj4o9u",styles:"margin-bottom:25px;display:flex;flex-wrap:wrap;justify-content:space-between;font-size:.9em;"},se={name:"70qvj9",styles:"display:flex;align-items:center;"},ce={name:"xi606m",styles:"text-align:center;"},le={name:"70qvj9",styles:"display:flex;align-items:center;"},de={name:"o5uqvq",styles:"margin-left:5px;"},ue={name:"hc7ldh",styles:"padding:5px;display:flex;align-items:center;cursor:pointer;transition:background-color var(--transition-default-time) ease-in-out, color var(--transition-default-time) ease-in-out;:hover{border-radius:3px;background-color:rgba(100, 100, 100, .2);color:var(--red);}"},Ae={name:"o5uqvq",styles:"margin-left:5px;"},pe={name:"1lekzkb",styles:"display:flex;align-items:center;justify-content:space-between;"},be={name:"70qvj9",styles:"display:flex;align-items:center;"},ge={name:"l2vb51",styles:"margin-right:15px;border-radius:3px;"},me={name:"x3owlx",styles:"color:lightgrey;font-size:.8em;"},fe={name:"hyrxsm",styles:"color:darkgrey;font-size:.8em;"},he={name:"6wdd2m",styles:"text-align:right;color:lightgrey;font-size:.8em;"},ve={name:"hyrxsm",styles:"color:darkgrey;font-size:.8em;"},ye=function(e){e.id;var t=e.title,n=e.details,a=e.author,o=e.createdAt,r=e.closedAt,i=e.upvotes,s=e.downvotes,c=e.upvoted,l=e.downvoted,d=e.permissions,u=e.handleStatus,A=e.handleVote,p=e.handleDelete,b=e.authenticated;return Object(j.a)("div",null,Object(j.a)("div",{css:ae},Object(j.a)("div",{css:oe},t),Object(j.a)("div",{title:r?"Closed on "+r.toLocaleString():null,css:Object(w.a)({display:"flex",marginBottom:10,fontSize:".8em",fontWeight:500,color:r?"var(--red)":"var(--blue)",textTransform:"uppercase"})},r?"Closed":"Open"),n&&n.length?Object(j.a)("div",{css:re},n.split("\n").map((function(e,t){return Object(j.a)("span",{key:t},e,Object(j.a)("br",null))}))):null),Object(j.a)("div",{css:ie},Object(j.a)("div",{css:se},Object(j.a)("div",{css:Object(w.a)({padding:5,marginRight:5,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",color:c?"var(--green)":"inherit",transition:"background-color var(--transition-default-time) ease-in-out, color var(--transition-default-time) ease-in-out",cursor:b?"pointer":"not-allowed",":hover":{borderRadius:3,backgroundColor:"rgba(100, 100, 100, .2)",color:"var(--green)"}}),onClick:function(){return b?A(c?0:1):null}},Object(j.a)(J.c,null)),Object(j.a)("div",{css:ce},(i||0)-(s||0)),Object(j.a)("div",{css:Object(w.a)({padding:5,marginLeft:5,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",color:l?"var(--red)":"inherit",transition:"background-color var(--transition-default-time) ease-in-out, color var(--transition-default-time) ease-in-out",cursor:b?"pointer":"not-allowed",":hover":{borderRadius:3,backgroundColor:"rgba(100, 100, 100, .2)",color:"var(--red)"}}),onClick:function(){return b?A(l?0:-1):null}},Object(j.a)(J.b,null))),d?Object(j.a)("div",{css:le},Object(j.a)("div",{css:Object(w.a)({padding:5,display:"flex",alignItems:"center",cursor:"pointer",transition:"background-color var(--transition-default-time) ease-in-out, color var(--transition-default-time) ease-in-out",":hover":{borderRadius:3,backgroundColor:"rgba(100, 100, 100, .2)",color:r?"var(--green)":"var(--orange)"}}),onClick:function(){return u(r?$:ee)}},r?Object(j.a)(_.e,null):Object(j.a)(_.h,null),Object(j.a)("span",{css:de},r?"Reopen":"Close")),Object(j.a)("div",{css:ue,onClick:p},Object(j.a)(_.f,null),Object(j.a)("span",{css:Ae},"Delete"))):null),Object(j.a)("div",{css:pe},Object(j.a)("div",{css:be},Object(j.a)("img",{alt:"Avatar",src:a&&a.github?"https://avatars2.githubusercontent.com/u/"+a.github+"?size=128":ne.a,width:42,height:42,css:ge}),Object(j.a)("div",{css:me},Object(j.a)("div",{css:fe},"Posted by"),Object(j.a)("div",null,a?a.name:"Anonymous"))),Object(j.a)("div",{css:he},Object(j.a)("div",{css:ve},"Posted on"),Object(j.a)("div",null,o.toLocaleString()))))},je={name:"srron6",styles:"padding:20px;display:flex;flex-direction:column;"},Oe={name:"hcueip",styles:"font-size:.8em;color:darkgrey;"},xe={name:"xi606m",styles:"text-align:center;"},we=Object(f.b)((function(e){return{me:e.global.me,org:e.global.org}}),null)((function(e){var t=e.id,n=e.me,a=e.org,r=o.a.useState(!1),i=r[0],s=r[1],c=o.a.useState(void 0),l=c[0],d=c[1],u=o.a.useState({}),A=u[0],p=u[1],b=o.a.useState(""),g=b[0],m=b[1];o.a.useEffect((function(){a&&a._id&&Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+a._id+"/feedback/"+t,{headers:{Accept:"application/json",Authorization:n.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){d(!0),p(e)})).catch((function(e){console.error(e),d(!1)}))}),[t,n.token,a]);return Object(j.a)("div",{css:je},Object(j.a)(L.a,{title:A.title+" - Feedback",description:A.details}),!0===l?Object(j.a)(ye,{key:A._id,id:A._id,title:A.title,details:A.details,upvotes:A.upvotes&&A.upvotes instanceof Array&&A.upvotes.length,downvotes:A.downvotes&&A.downvotes instanceof Array&&A.downvotes.length,upvoted:n&&n.id&&A.upvotes&&A.upvotes instanceof Array&&A.upvotes.includes(n.id.toString()),downvoted:n&&n.id&&A.downvotes&&A.downvotes instanceof Array&&A.downvotes.includes(n.id.toString()),author:A.user,createdAt:new Date(A.createdAt),closedAt:A.closedAt?new Date(A.closedAt):null,permissions:A.permissions,handleStatus:function(e){i||(s(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+a._id+"/feedback/"+t+"/status",{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:n.token},body:JSON.stringify({status:e})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){p(Object.assign({},A,e)),s(!1)})).catch((function(e){console.error(e),s(!1)})))},handleDelete:function(){return m("Are you sure you want to delete this feedback? This can't be undone.")},handleVote:function(e){i||(s(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+a._id+"/feedback/"+t+"/vote?user=true",{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:n.token},body:JSON.stringify({vote:e})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){p(Object.assign({},A,e)),s(!1)})).catch((function(e){console.error(e),s(!1)})))},authenticated:n&&n.token}):!1===l?Object(j.a)("div",{css:Oe},"Oh, crap! Our servers having some issues. Please try again."):Object(j.a)("div",{css:xe},Object(j.a)(X.a,null)),g?Object(j.a)(V.a,{title:"Delete Feedback",message:g,okHandler:function(){i||(s(!0),m(""),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+a._id+"/feedback/"+t,{method:"DELETE",headers:{Accept:"application/json",Authorization:n.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(){s(!1),Object(h.b)("/"+a.code+"/feedback")})).catch((function(e){console.error(e),s(!1)})))},cancelHandler:function(){return m("")}}):null)})),ke=n("k1TG"),Ce=[{id:"https://gleepi.herokuapp.com".startsWith("http://localhost")?"price_1Gz3DFKaJqjzvfOK80MiFjIp":"price_1Gz2r4KaJqjzvfOKdnPFjgKr",name:"Free",description:"Ideal for experimenting with Glee and for small side projects.",price:0,available:!0,benefits:{unlimited:[],available:["1 Team Member",["Private Visibility","Organization is only visible to you."],["Random Organization Code","A random unique code will be autogenerated for the organization."],"Community Support"],unavailable:[]}},{id:"https://gleepi.herokuapp.com".startsWith("http://localhost")?"price_1Gz3E7KaJqjzvfOK7m0wTqpe":"price_1GuzVdKaJqjzvfOKxmYkak6w",name:"Hobby",description:"Perfect for small scale personal projects and hobby apps.",price:5,available:!0,benefits:{prev:"Free",unlimited:["Unlimited Users"],available:["10 Team Members",["Public Visibility","Change visibility of the organization so everyone can see it."],["Discord Integration","Send notification to a Discord channel when a feedback is posted."],["~Slack Integration","Send notification to a Slack channel when a feedback is posted."],["Custom Organization Code","Set custom unique code for the organization."]],unavailable:[]}},{id:"https://gleepi.herokuapp.com".startsWith("http://localhost")?"price_1Gz3EhKaJqjzvfOKLTuplguI":"price_1GuzV2KaJqjzvfOK8ucpT0nG",name:"Standard",description:"Enhanced features for powering your professional applications.",price:15,available:!1,benefits:{prev:"Hobby",unlimited:[],available:["50 Team Members","Feedback Status","Feedback Categories","GitHub Integration","Custom Subdomain"],unavailable:[]}},{id:"https://gleepi.herokuapp.com".startsWith("http://localhost")?"price_1Gz3FDKaJqjzvfOK1AjEZ9qM":"price_1Gz2pZKaJqjzvfOKzus7NuCS",name:"Premium",description:"Superior features that're most important for your business needs.",price:30,available:!1,benefits:{prev:"Standard",unlimited:[],available:["100 Team Members","Feedback Roadmap","Webhook Integration","Statistics Dashboard","Custom Domain"],unavailable:[]}}],Ee={name:"tuo7js",styles:"font-weight:500;margin-bottom:5px;"},ze={name:"hcueip",styles:"font-size:.8em;color:darkgrey;"},Se={name:"1d5gcyo",styles:"display:flex;margin-bottom:5px;text-align:left;"},Ie={name:"h8lbrb",styles:"min-width:15px;margin-right:10px;color:var(--green);"},Be={name:"1plvzan",styles:"min-width:15px;margin-right:10px;color:var(--blue);"},Me={name:"h8lbrb",styles:"min-width:15px;margin-right:10px;color:var(--green);"},De={name:"1wtkwqo",styles:"margin-left:5px;color:var(--blue);"},Te={name:"uqlfd7",styles:"min-width:15px;margin-right:10px;color:var(--red);"},Qe={name:"tizg2c",styles:"padding:20px;font-size:.8em;font-weight:500;font-family:monospace;border-radius:3px;background-color:rgba(100, 100, 100, .1);color:var(--green);"},Re=function(e){var t=Object.assign({},e);return Object(j.a)("div",{css:Object(w.a)({width:250,minWidth:250,margin:25,display:"flex",flexDirection:"column",justifyContent:"space-between",borderRadius:3,backgroundColor:"rgba(100, 100, 100, .1)",boxShadow:t.available?"0px 10px 30px -10px black":"0px 5px 15px -5px black"})},Object(j.a)("div",{css:Object(w.a)({height:100,padding:15,backgroundColor:"rgba(100, 100, 100, .1)",borderRadius:3,opacity:t.available?1:.3})},Object(j.a)("div",{css:Ee},t.name),Object(j.a)("div",{css:ze},t.description)),Object(j.a)("div",{css:Object(w.a)({padding:25,fontSize:".8em",opacity:t.available?1:.3})},t.benefits.prev?Object(j.a)("div",{css:Se},Object(j.a)(_.b,{css:Ie}),Object(j.a)("div",null,"Everything in ",t.benefits.prev)):null,t.benefits.unlimited?t.benefits.unlimited.map((function(e,t){return Object(j.a)("div",{key:t,title:(e instanceof Array?e[0]:e).startsWith("~")?"Coming Soon":"",css:Object(w.a)({display:"flex",marginBottom:5,textAlign:"left",opacity:(e instanceof Array?e[0]:e).startsWith("~")?.5:1})},Object(j.a)(J.e,{css:Be}),Object(j.a)("div",null,(e instanceof Array?e[0]:e).startsWith("~")?(e instanceof Array?e[0]:e).slice(1):e instanceof Array?e[0]:e))})):null,t.benefits.available?t.benefits.available.map((function(e,t){return Object(j.a)("div",{key:t,title:(e instanceof Array?e[0]:e).startsWith("~")?"Coming Soon":"",css:Object(w.a)({display:"flex",marginBottom:5,textAlign:"left",opacity:(e instanceof Array?e[0]:e).startsWith("~")?.5:1})},Object(j.a)(_.c,{css:Me}),Object(j.a)("div",null,(e instanceof Array?e[0]:e).startsWith("~")?(e instanceof Array?e[0]:e).slice(1):e instanceof Array?e[0]:e,e instanceof Array&&e.length>1?Object(j.a)(J.f,{css:De,title:e[1]}):null))})):null,t.benefits.unavailable?t.benefits.unavailable.map((function(e,t){return Object(j.a)("div",{key:t,title:(e instanceof Array?e[0]:e).startsWith("~")?"Coming Soon":"",css:Object(w.a)({display:"flex",marginBottom:5,textAlign:"left",opacity:(e instanceof Array?e[0]:e).startsWith("~")?.5:1})},Object(j.a)(_.g,{css:Te}),Object(j.a)("div",null,(e instanceof Array?e[0]:e).startsWith("~")?(e instanceof Array?e[0]:e).slice(1):e instanceof Array?e[0]:e))})):null),Object(j.a)("div",{css:Qe},t.available?0===t.price?"Free":"$"+t.price+" / mo.":"Coming Soon"))},Pe=function(e){var t=e.size,n=void 0===t?10:t,a=e.top,o=void 0===a?0:a,r=e.left,i=void 0===r?0:r;return Object(j.a)("div",{css:Object(w.a)({top:o,left:i,position:"absolute",padding:n,borderRadius:Math.random()>.5?"50%":0,transform:Math.random()>.5?"rotateZ(30deg)":"rotateZ(120deg)",backgroundColor:"var(--green)"})})},Ge={name:"zwiamn",styles:"margin:20px;"},Le={name:"23xefj",styles:"width:80%;margin-bottom:5px;padding:8px;border-radius:3px;background-color:rgba(200, 200, 200, .3);"},Ne={name:"q3ds46",styles:"width:100%;margin-bottom:5px;padding:8px;border-radius:3px;background-color:rgba(200, 200, 200, .2);"},Fe={name:"1vduktc",styles:"width:50%;margin-bottom:5px;padding:8px;border-radius:3px;background-color:rgba(200, 200, 200, .2);"},Ke=function(e){var t=e.closed;return Object(j.a)("div",{css:Ge},Object(j.a)("div",{css:Le}),Object(j.a)("div",{css:Object(w.a)({width:100,marginBottom:5,padding:8,borderRadius:3,backgroundColor:t?"var(--red)":"var(--blue)"})}),Object(j.a)("div",{css:Ne}),Object(j.a)("div",{css:Fe}))},qe={name:"1ki18et",styles:"position:relative;display:flex;border-radius:13px;background-color:rgba(100, 100, 100, .3);box-shadow:0px 15px 50px -10px black;"},We={name:"5fy5y6",styles:"position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);background-color:var(--green);color:black;padding:10px 20px;border-radius:50px;font-weight:500;box-shadow:0px 0px 30px -10px rgba(0, 0, 0, 1);border:1px solid var(--green);cursor:pointer;transition:border var(--transition-default-time) ease-out;:hover{border:3px solid var(--green);}:active{border:2px solid var(--green);}"},He={name:"jycxbg",styles:"flex:2;margin:30px;"},Ye={name:"gm73zx",styles:"flex:1;margin-top:50px;border-top-left-radius:5px;border-bottom-right-radius:13px;background-color:rgba(100, 100, 100, .5);"},Ue={name:"ma2ok9",styles:"height:30px;margin:20px 20px 10px;padding:8px;border-radius:3px;background-color:rgba(0, 0, 0, .5);"},Ze={name:"r7cewt",styles:"height:100px;margin:10px 20px;padding:8px;border-radius:3px;background-color:rgba(0, 0, 0, .5);"},Ve={name:"u2ip4z",styles:"height:30px;margin:10px 20px;padding:8px;border-radius:3px;background-color:rgba(20, 20, 20, .5);"},Xe=function(){return Object(j.a)("div",{css:qe},Object(j.a)("div",{css:We,onClick:function(){return Object(h.b)("/glee")}},"See how it works"),Object(j.a)("div",{css:He},Object(j.a)(Ke,null),Object(j.a)(Ke,{closed:!0}),Object(j.a)(Ke,null),Object(j.a)(Ke,null)),Object(j.a)("div",{css:Ye},Object(j.a)("div",{css:Ue}),Object(j.a)("div",{css:Ze}),Object(j.a)("div",{css:Ve})))},Je={name:"srron6",styles:"padding:20px;display:flex;flex-direction:column;"},_e={name:"o7sorj",styles:"position:relative;max-width:720px;min-height:50vh;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;"},$e={name:"1w0f8gn",styles:"font-size:2.5em;font-weight:700;margin-bottom:30px;z-index:1;"},et={name:"r6z5ec",styles:"z-index:1;"},tt={name:"gp1s8m",styles:"z-index:1;margin:30px 20px;"},nt={name:"cf5um4",styles:"font-weight:500;background-color:var(--green);box-shadow:0px 15px 50px -10px black;:active{filter:saturate(80%);}"},at={name:"1mwaqsn",styles:"margin-top:100px;text-align:center;"},ot={name:"jvnrwa",styles:"font-size:1.5em;margin-bottom:15px;"},rt={name:"nd665n",styles:"margin-bottom:30px;color:lightgrey;"},it={name:"ad6xg9",styles:"margin:50px 0;display:flex;background-color:var(--dark);overflow-x:auto;scrollbar-width:thin;"},st={name:"64y8jr",styles:"margin-bottom:100px;color:darkgrey;a{color:var(--green);}"},ct={name:"regwbp",styles:"font-size:1.3em;font-weight:700;color:lightgrey;"},lt={name:"zwiamn",styles:"margin:20px;"},dt={name:"cf5um4",styles:"font-weight:500;background-color:var(--green);box-shadow:0px 15px 50px -10px black;:active{filter:saturate(80%);}"},ut=function(){return Object(j.a)("div",{css:Je},Object(j.a)("div",{css:_e},[{size:3,top:"20%",left:"70%"},{size:3,top:"90%",left:"-20%"},{size:6,top:"40%",left:"10%"},{size:6,top:"90%",left:"80%"},{size:9,top:0,left:0},{size:9,top:"40%",left:"120%"},{size:13,top:"80%",left:"30%"}].map((function(e,t){return Object(j.a)(Pe,{size:e.size,top:e.top,left:e.left})})),Object(j.a)("div",{css:$e},"Collect feedback and make great products"),Object(j.a)("div",{css:et},"Whether you're a startup, a solo developer, an artist, a creator, or just a handful of friends building a great product or creating interesting content, Glee makes it easy to collect, track and manage feedback from your users."),Object(j.a)("div",{css:tt},Object(j.a)("button",{css:nt,onClick:function(){return Object(z.a)()?window.scroll({top:950,behavior:"smooth"}):{}}},"Dive in"))),Object(j.a)(Xe,null),Object(j.a)("div",{css:at},Object(j.a)("div",{css:ot},"Plans"),Object(j.a)("div",{css:rt},"Compare the available plans and choose the right one for you. Get started for free, upgrade later."),Object(j.a)("div",{css:it},Ce.map((function(e){return Object(j.a)(Re,Object(ke.a)({key:e.id},e))}))),Object(j.a)("div",{css:st},"When you upgrade your plan, changes are applied immediately. When you downgrade your plan, changes are applied at the end of your current billing cycle. If you've any further questions regarding this, feel free to ",Object(j.a)(h.a,{to:"/contact"},"contact us"),"."),Object(j.a)("div",null,Object(j.a)("div",{css:ct},"Are you ready for it?"),Object(j.a)("div",{css:lt},Object(j.a)("button",{css:dt,onClick:function(){return Object(h.b)("/authorize")}},"Let's Start")))))},At=n("v7au"),pt=n("efN2"),bt=n("/xZ8"),gt={name:"3c7u9o",styles:"display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(345px, 1fr));"},mt={name:"pnwk7m",styles:"width:100%;padding:15px;display:inline-block;background-color:rgba(100, 100, 100, .25);border-radius:3px;font-size:.8em;box-shadow:0px 0px 0px 2px rgba(100, 100, 100, .8) inset;transition:background-color var(--transition-default-time) ease-in-out, box-shadow var(--transition-default-time) ease-in-out;"},ft={name:"10rvbm3",styles:"font-weight:500;"},ht={name:"1v0po9z",styles:"margin:10px 0;color:var(--green);transition:color var(--transition-default-time) ease-in-out;"},vt={name:"10rvbm3",styles:"font-weight:500;"},yt={name:"xr0hyz",styles:"font-size:.9em;color:lightgrey;"},jt={name:"138kz50",styles:"margin-bottom:10px;font-weight:500;"},Ot={name:"xr0hyz",styles:"font-size:.9em;color:lightgrey;"},xt=function(e){var t,n=e.planId,a=e.portalMessage,o=e.handleClick,r=n?(t=n,Ce.find((function(e){return e.id===t}))):Ce[0];return Object(j.a)("div",{css:gt},Object(j.a)("div",{css:mt},Object(j.a)("div",{css:ft},r.name),Object(j.a)("div",{css:ht},Object(j.a)("span",null,Object(j.a)("span",{css:vt},"$",r.price)," / month")),Object(j.a)("div",{css:yt},r.description)),Object(j.a)("div",{css:Object(w.a)({width:"100%",padding:15,display:"inline-block",backgroundColor:"rgba(100, 100, 100, .2)",borderRadius:3,fontSize:".8em",boxShadow:"none",opacity:a?.8:1,transition:"background-color var(--transition-default-time) ease-in-out, box-shadow var(--transition-default-time) ease-in-out",cursor:a?"not-allowed":"pointer",":hover":{boxShadow:a?"none":"0px 0px 0px 2px rgba(100, 100, 100, .8) inset",backgroundColor:a?"rgba(100, 100, 100, .2)":"rgba(100, 100, 100, .3)"}}),onClick:a?function(){}:o},Object(j.a)("div",{css:jt},"Change Plan"),Object(j.a)("div",{css:Object(w.a)({margin:"10px 0",color:a?"var(--red)":"var(--blue)",transition:"color var(--transition-default-time) ease-in-out"})},a||"Powered by Stripe"),Object(j.a)("div",{css:Ot},"Opens Stripe Portal where you can easily update subscription and manage payment methods.")))},wt={name:"qwwj51",styles:"font-size:.8em;"},kt={name:"15poin4",styles:"margin-bottom:15px;"},Ct={name:"19aq9al",styles:"color:var(--green);"},Et={name:"1d4c5m7",styles:"color:var(--red);"},zt={name:"1o62e5j",styles:"display:flex;align-items:center;justify-content:center;font-size:inherit;:disabled{color:var(--light);background-color:rgba(100, 100, 100, .2);cursor:not-allowed;}"},St=function(e){var t=e.name,n=e.success,a=e.message,o=e.processing,r=e.disabled,i=e.handleClick;return Object(j.a)("div",{css:wt},void 0===n||o?null:Object(j.a)("div",{css:kt},!0===n?Object(j.a)("div",{css:Ct},a):!1===n?Object(j.a)("div",{css:Et},a):null),Object(j.a)("button",{disabled:o||r,css:zt,onClick:i},o?Object(j.a)(At.a,{css:Object(w.a)({animation:Object(j.b)({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}})+" .8s linear infinite"})}):t))},It={name:"1gr1jd4",styles:"display:flex;flex-direction:column;width:100%;max-width:720px;margin:0 auto;"},Bt={name:"1w34v9o",styles:"font-size:1.2em;margin:25px 0;"},Mt={name:"1qecj6a",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;"},Dt={name:"14nxlzu",styles:"color:darkgrey;font-size:.8em;margin-bottom:15px;"},Tt={name:"8atqhb",styles:"width:100%;"},Qt={name:"1ycwou0",styles:"font-family:monospace;"},Rt={name:"8u9lvs",styles:"color:var(--red);margin-bottom:15px;font-size:.8em;"},Pt={name:"16rg2b3",styles:"color:var(--orange);margin-bottom:15px;font-size:.8em;"},Gt={name:"1rckm58",styles:"width:100%;margin-top:25px;"},Lt={name:"13vwx56",styles:"width:100%;display:flex;align-items:center;justify-content:space-between;margin-top:50px;"},Nt={name:"1qecj6a",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;"},Ft={name:"1b18xa4",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;margin-top:50px;"},Kt={name:"14nxlzu",styles:"color:darkgrey;font-size:.8em;margin-bottom:15px;"},qt={name:"8atqhb",styles:"width:100%;"},Wt={name:"14n0a2l",styles:"color:var(--orange);font-size:.8em;"},Ht={name:"1b18xa4",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;margin-top:50px;"},Yt={name:"14nxlzu",styles:"color:darkgrey;font-size:.8em;margin-bottom:15px;"},Ut={name:"8atqhb",styles:"width:100%;"},Zt={name:"1b18xa4",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;margin-top:50px;"},Vt={name:"14nxlzu",styles:"color:darkgrey;font-size:.8em;margin-bottom:15px;"},Xt={name:"8atqhb",styles:"width:100%;"},Jt={name:"1b18xa4",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;margin-top:50px;"},_t={name:"14nxlzu",styles:"color:darkgrey;font-size:.8em;margin-bottom:15px;"},$t={name:"8atqhb",styles:"width:100%;"},en={name:"1h0syua",styles:"margin-bottom:15px;padding:10px;background-color:rgba(100, 100, 100, .2);border-radius:3px;transition:background-color var(--transition-default-time) ease-out;:hover{background-color:rgba(100, 100, 100, .3);}:focus-within{background-color:rgba(100, 100, 100, .3);}"},tn={name:"72va8m",styles:"margin-bottom:5px;color:rgba(200, 200, 200, .5);font-size:.7em;font-weight:500;text-transform:uppercase;"},nn={name:"1rr7m2z",styles:"margin-bottom:15px;font-size:.9em;color:var(--green);"},an={name:"1b1zfbw",styles:"display:flex;flex-wrap:wrap;justify-content:space-between;"},on={name:"1xdmod1",styles:"margin-top:50px;padding:15px;border:2px solid var(--red);border-radius:3px;background-color:rgba(255, 69, 58, .1);"},rn={name:"1ihunoi",styles:"font-size:.9em;margin-bottom:5px;"},sn={name:"zmgnal",styles:"color:lightgrey;font-size:.8em;margin-bottom:15px;"},cn={name:"8atqhb",styles:"width:100%;"},ln={name:"5an8eb",styles:"font-size:.8em;background-color:var(--red);color:var(--light);"},dn=Object(f.b)((function(e){return{me:e.global.me,org:e.global.org}}),(function(e){return{updateOrg:function(t){return e(Object(N.c)(t))}}}))((function(e){e.code;var t=e.me,n=e.org,a=e.updateOrg,r=Object(i.useStripe)(),s=Object(i.useElements)(),c=o.a.useState(!1),l=c[0],d=c[1],u=o.a.useState(""),A=u[0],p=u[1],b=o.a.useState(void 0),g=b[0],m=b[1],f=o.a.useState(void 0),v=f[0],y=f[1],O=o.a.useState(void 0),x=O[0],k=O[1],C=o.a.useState(void 0),E=C[0],I=C[1],B=o.a.useState(void 0),M=B[0],D=B[1],T=o.a.useState(void 0),Q=T[0],R=T[1],P=o.a.useState(void 0),G=P[0],N=P[1],F=o.a.useState(void 0),K=F[0],q=F[1],W=o.a.useState(void 0),H=W[0],Y=W[1],U=o.a.useState(void 0),Z=U[0],X=U[1],J=o.a.useState(""),_=J[0],$=J[1],ee=o.a.useState(""),te=ee[0],ne=ee[1],ae=o.a.useState(""),oe=ae[0],re=ae[1],ie=o.a.useState(""),se=ie[0],ce=ie[1],le=o.a.useState({}),de=le[0],ue=le[1],Ae=o.a.useState(""),pe=Ae[0],be=Ae[1],ge=o.a.useState(""),me=ge[0],fe=ge[1],he=function(e,t){var n;ue(Object.assign({},de,((n={})[e]=t,n)))},ve=function(){n&&n.stripeCustomerId&&n.customer&&n.customer.invoice_settings&&n.customer.invoice_settings.default_payment_method&&Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/subscription",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({priceId:Ce[0].id})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){d(!1),window.location.href=e.url})).catch((function(e){console.error(e),d(!1)}))};return o.a.useEffect((function(){n.permissions===S.a.OWNER||n.permissions===S.a.ADMIN?($(n.code),ne(n.name),re(n.icon||""),n.customer&&(ce(n.customer.email),ue(n.customer.address)),n.notifications&&n.notifications.discord&&(be(n.notifications.discord.id),fe(n.notifications.discord.token))):Object(h.b)("/"+n.code)}),[n]),Object(j.a)("div",{css:It},Object(j.a)(L.a,{title:n.name+" - Settings"}),Object(j.a)("div",{css:Bt},"Settings"),Object(j.a)("div",{css:Mt},"Organization Details"),Object(j.a)("div",{css:Dt},"Information required by us and stored on our servers."),Object(j.a)("div",{css:Tt},Object(j.a)("div",null,Object(j.a)(pt.c,{title:"Code",description:"A unique code to access your organization",pretext:Object(j.a)("span",{css:Qt},Object(z.a)()?window.location.host+"/":"/"),placeholder:"e.g. glee",value:_,setValue:function(e){/^((?:[a-z])(?:[a-z0-9]+)?)?$/i.test(e)&&$(e)},maxLength:16,pattern:"[a-zA-Z][a-zA-Z0-9]{2,15}",required:!0,disabled:!(n.employee||n.plan&&n.plan.amount)})),n.employee||n.plan&&n.plan.amount?n.code!==_?Object(j.a)("div",{css:Rt},"If you change your code your previous code will become invalidated. This will change the URL for your organization. Make sure to notify your users about this change beforehand."):null:Object(j.a)("div",{css:Pt},"Upgrade your subscription to set custom organization code.")),Object(j.a)(St,{name:"Update Code",success:g,message:v,processing:l,disabled:!_||n.code===_,handleClick:function(){if(!l){if(_.length<3||_.length>16)return m(!1),void y("Organization code should be within 3-16 characters.");if(!/^(?:[a-z])(?:[a-z0-9]+)$/i.test(_))return m(!1),void y("Organization code should only contain alphanumeric characters, and should start with an alphabet.");d(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/code",{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({code:_})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){a(Object.assign({},n,e)),m(!0),y("Successfully changed the organization code."),d(!1),Object(h.b)("/"+e.code+"/settings")})).catch((function(e){console.error(e),m(!1),y("Unable to change the organization code. "+e+". Try saving it again. If the issue persists, please contact support."),d(!1)}))}}}),Object(j.a)("div",{css:Gt},Object(j.a)("div",null,Object(j.a)(pt.c,{title:"Name",description:"Publicly visible name of your organization",placeholder:"e.g. Glee",value:te,setValue:ne,maxLength:32,required:!0}),Object(j.a)(pt.e,{title:"Icon",description:"An https URL to the logo or icon of the organization",placeholder:"e.g. https://github.com/gleeapp.png",value:oe,setValue:re,pattern:"https://.*",maxLength:2048}))),Object(j.a)(St,{name:"Save Details",success:x,message:E,processing:l,disabled:!te||te===n.name&&(!oe||oe===n.icon),handleClick:function(){if(!l){if(te.length<1||te.length>32)return k(!1),void I("Organization name should be within 32 characters.");if(oe&&oe.length>2048)return k(!1),void I("Organization icon URL should be within 2048 characters.");if(oe&&!/^(((?:https:\/\/)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?\.(?:png|jpg|jpeg|bmp))$/i.test(oe))return k(!1),void I("Organization icon URL should be a valid URL to an image. Only PNG & JPEG images are supported.");d(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id,{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({name:te,icon:oe})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){a(Object.assign({},n,e)),k(!0),I("Successfully saved the organization details."),d(!1)})).catch((function(e){console.error(e),k(!1),I("Unable to save the organization details. Try saving it again. If the issue persists, please contact support."),d(!1)}))}}}),Object(j.a)("div",{css:Lt},Object(j.a)("div",null,Object(j.a)("div",{css:Nt},"Public"),Object(j.a)("div",{css:Object(w.a)({color:n.employee||n.plan&&n.plan.amount?"darkgrey":"var(--orange)",fontSize:".8em"})},n.employee||n.plan&&n.plan.amount?n.visible?"Anyone can view the organization.":"Only organization members can view the organization.":"Upgrade your subscription to enable Public visibility.")),Object(j.a)(pt.d,{enabled:n.visible,toggleHandler:function(){l||(d(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/visibility",{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){a(Object.assign({},n,e)),d(!1)})).catch((function(e){console.error(e),d(!1)})))},disabled:!(n.employee||n.plan&&n.plan.amount)})),Object(j.a)("div",{css:Ft},"Discord Integration"),Object(j.a)("div",{css:Kt},"Connect to Discord Webhooks so that you can stay updated right within Discord. You'll receive a message in Discord when a new feedback is created, status of a feedback is changed, or when a feedback is deleted."),n.employee||n.plan&&n.plan.amount?Object(j.a)(o.a.Fragment,null,Object(j.a)("div",{css:qt},Object(j.a)("div",null,Object(j.a)(pt.c,{title:"Webhook ID",description:"ID of the webhook you created in your Discord channel.",placeholder:"e.g. 691109880475287592",value:pe,setValue:be,maxLength:32,pattern:"[0-9]+"}),Object(j.a)(pt.c,{title:"Webhook Token",description:"Token of the webhook you created in your Discord channel.",placeholder:"e.g. rgW6EeVmWPC5DL-iGJ2nHavc1vJvjjFEWWldIFj09jSwi6_fWNzEF9skpd909VgDcMZ5",value:me,setValue:fe,pattern:"[a-zA-Z-._0-9]+"}))),Object(j.a)(St,{name:n.notifications&&n.notifications.discord&&n.notifications.discord.id&&n.notifications.discord.token&&pe===n.notifications.discord.id&&me===n.notifications.discord.token?"Test Integration":"Save Integration",success:H,message:Z,processing:l,disabled:!pe||!me,handleClick:n.notifications&&n.notifications.discord&&n.notifications.discord.id&&n.notifications.discord.token&&pe===n.notifications.discord.id&&me===n.notifications.discord.token?function(){l||(d(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/webhooks/discord/test",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(){d(!1)})).catch((function(e){console.error(e),d(!1)})))}:function(){l||(d(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/webhooks/discord",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({id:pe,token:me})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){a(Object.assign({},n,e)),Y(!0),X("Successfully set the Discord Webhook."),d(!1)})).catch((function(e){console.error(e),Y(!1),X("Unable to set the Discord Webhook. Make sure it's valid and try saving it again. If the issue persists, please contact support."),d(!1)})))}})):Object(j.a)("div",{css:Wt},"Upgrade your subscription to enable Discord Integration."),Object(j.a)("div",{css:Ht},"Subscription Plan"),Object(j.a)("div",{css:Yt},"Select the plan suitable for your organization. Visit the Stripe Portal to upgrade your plan whenever you need it. Cancel anytime, no strings attached."),Object(j.a)("div",{css:Ut},Object(j.a)(xt,{planId:n&&n.stripeCustomerId&&n.customer&&n.customer.subscriptions&&n.customer.subscriptions.data.length&&n.customer.subscriptions.data[0].plan&&n.customer.subscriptions.data[0].plan.id,portalMessage:n&&n.stripeCustomerId&&n.customer?n.customer.invoice_settings&&n.customer.invoice_settings.default_payment_method?null:"Add a default payment method below before you can start your subscription.":"Update billing details below before you can start your subscription.",handleClick:ve})),Object(j.a)("div",{css:Zt},"Billing Details"),Object(j.a)("div",{css:Vt},"Billing information required by our payment partner Stripe and stored on their servers. Only required when you want to upgrade from the Free plan."),Object(j.a)("div",{css:Xt},Object(j.a)("div",null,Object(j.a)(pt.b,{title:"Billing Email",description:"We'll send receipts to this inbox.",placeholder:"e.g. [email protected]",value:se,setValue:ce,maxLength:512,pattern:"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+",required:!0}),Object(j.a)(pt.c,{title:"Address",placeholder:"Street, PO Box, or company name.",value:de.line1,setValue:function(e){return he("line1",e)},maxLength:256,required:!0}),Object(j.a)(pt.c,{title:"City",placeholder:"City, district, suburb, town, or village.",value:de.city,setValue:function(e){return he("city",e)},maxLength:64,required:!0}),Object(j.a)(pt.c,{title:"State",placeholder:"State, county, province, or region.",value:de.state,setValue:function(e){return he("state",e)},maxLength:64,required:!0}),Object(j.a)(pt.c,{title:"Postal Code",placeholder:"ZIP or postal code.",value:de.postal_code,setValue:function(e){return he("postal_code",e)},maxLength:8,required:!0}),Object(j.a)(pt.a,{title:"Country",placeholder:"Country",value:de.country,setValue:function(e){return he("country",e)},options:bt,selectKey:"value",selectValue:"key",required:!0}))),Object(j.a)(St,{name:"Save Billing Details",success:M,message:Q,processing:l,disabled:!se||!de,handleClick:function(){if(!l){if(!/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/i.test(se))return D(!1),void R("The email address entered by you is invalid.");if(!(de&&de.line1&&de.city&&de.state&&de.postal_code&&de.country))return D(!1),void R("Please enter the billing address.");d(!0),R(void 0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/customer",{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({email:se,address:de})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){D(!0),R("Successfully saved the billing details."),a(Object.assign({},n,{stripeCustomerId:e.id,customer:e})),d(!1)})).catch((function(e){console.error(e),D(!1),R("Unable to save the billing details. Make sure the billing information is valid. If the issue persists, please contact support."),d(!1)}))}}}),n&&n.stripeCustomerId&&n.customer?Object(j.a)(o.a.Fragment,null,Object(j.a)("div",{css:Jt},"Payment Details"),Object(j.a)("div",{css:_t},"Payment method required by our payment partner Stripe. You can update the payment method, or add additional ones, in the Stripe Portal whenever you want. Only required when you want to upgrade from the Free plan."),Object(j.a)("div",{css:$t},Object(j.a)("div",null,n.customer.invoice_settings&&n.customer.invoice_settings.default_payment_method?Object(j.a)("div",{css:nn},"A default payment method is set for your organization. You can visit the Stripe Portal to manage your payment methods."):Object(j.a)("div",{css:en},Object(j.a)("div",{css:tn},"Card"),Object(j.a)(i.CardElement,{options:{style:{base:{fontFamily:"monospace",color:"#f0f0f0",iconColor:"#f0f0f0","::placeholder":{color:"#c0c0c0"}},invalid:{color:"#ff453a",iconColor:"#ff453a"}}}})))),Object(j.a)("div",{css:an},n.customer.invoice_settings&&n.customer.invoice_settings.default_payment_method?null:Object(j.a)(St,{name:"Save Payment Method",success:G,message:K,processing:l,disabled:!se||!de,handleClick:function(){r&&s&&(l||(d(!0),Object(z.a)()&&r.createPaymentMethod({type:"card",card:s.getElement(i.CardElement)}).then((function(e){e.error&&e.error.message?(N(!1),q(e.error.message),d(!1)):window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/payment-method",{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({paymentMethodId:e.paymentMethod.id})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){N(!0),q("Successfully saved the payment method."),a(Object.assign({},n,{customer:e})),d(!1)})).catch((function(e){console.error(e),N(!1),q("Unable to save the payment method. Make sure the payment method is valid. If the issue persists, please contact support."),d(!1)}))})).catch((function(e){console.error(e),N(!1),q("Unable to save the payment method. Make sure the payment method is valid. If the issue persists, please contact support."),d(!1)}))))}}),Object(j.a)(St,{name:"Manage Payment Methods",processing:l,disabled:!(n&&n.stripeCustomerId&&n.customer&&n.customer.invoice_settings&&n.customer.invoice_settings.default_payment_method),handleClick:function(){ve()}}))):null,Object(j.a)("div",{css:on},Object(j.a)("div",{css:rn},"Danger Zone"),Object(j.a)("div",{css:sn},"When you delete your organization, all active subscriptions will be cancelled, all your organization data will be deleted (including posts, comments, votes, members, billing information, and payment method). This cannot be undone."),Object(j.a)("div",{css:cn},Object(j.a)("button",{css:ln,onClick:function(){return p("Are you sure you want to delete the "+n.name+" organization? This can't be undone.")}},"Delete ",n.name))),A?Object(j.a)(V.a,{title:"Delete "+n.name,message:A,okHandler:function(){l||(d(!0),p(""),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id,{method:"DELETE",headers:{Accept:"application/json",Authorization:t.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(){d(!1),Object(h.b)("/account")})).catch((function(e){console.error(e),d(!1)})))},cancelHandler:function(){return p("")}}):null)})),un=n("t8Zj"),An={name:"qwwj51",styles:"font-size:.8em;"},pn={name:"15poin4",styles:"margin-bottom:15px;"},bn={name:"19aq9al",styles:"color:var(--green);"},gn={name:"1d4c5m7",styles:"color:var(--red);"},mn={name:"1o62e5j",styles:"display:flex;align-items:center;justify-content:center;font-size:inherit;:disabled{color:var(--light);background-color:rgba(100, 100, 100, .2);cursor:not-allowed;}"},fn=function(e){var t=e.name,n=e.success,a=e.message,o=e.processing,r=e.disabled,i=e.handleClick;return Object(j.a)("div",{css:An},void 0===n||o?null:Object(j.a)("div",{css:pn},!0===n?Object(j.a)("div",{css:bn},a):!1===n?Object(j.a)("div",{css:gn},a):null),Object(j.a)("button",{disabled:o||r,css:mn,onClick:i},o?Object(j.a)(At.a,{css:Object(w.a)({animation:Object(j.b)({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}})+" .8s linear infinite"})}):t))},hn={name:"1gr1jd4",styles:"display:flex;flex-direction:column;width:100%;max-width:720px;margin:0 auto;"},vn={name:"1w34v9o",styles:"font-size:1.2em;margin:25px 0;"},yn={name:"1qecj6a",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;"},jn={name:"14nxlzu",styles:"color:darkgrey;font-size:.8em;margin-bottom:15px;"},On={name:"8atqhb",styles:"width:100%;"},xn={name:"14n0a2l",styles:"color:var(--orange);font-size:.8em;"},wn={name:"1b18xa4",styles:"color:lightgrey;font-size:.9em;margin-bottom:5px;margin-top:50px;"},kn={name:"hyrxsm",styles:"color:darkgrey;font-size:.8em;"},Cn={name:"tr0r3x",styles:"margin-top:15px;"},En={name:"qkfduq",styles:"margin-bottom:10px;padding:10px;display:flex;justify-content:space-between;align-items:center;background-color:rgba(100, 100, 100, .2);border-radius:3px;"},zn={name:"1be85a8",styles:"font-size:.9em;"},Sn={name:"k008qs",styles:"display:flex;"},In={name:"v5vl63",styles:"color:var(--red);border-radius:50%;transition:background-color var(--transition-default-time) ease;cursor:pointer;:hover{background-color:rgba(255, 0, 0, .3);}"},Bn=Object(f.b)((function(e){return{me:e.global.me,org:e.global.org}}),null)((function(e){e.code;var t=e.me,n=e.org,a=o.a.useState(!1),r=a[0],i=a[1],s=o.a.useState(void 0),c=s[0],l=s[1],d=o.a.useState(void 0),u=d[0],A=d[1],p=o.a.useState([]),b=p[0],g=p[1],m=o.a.useState(""),f=m[0],v=m[1];return o.a.useEffect((function(){n.permissions===S.a.OWNER||n.permissions===S.a.ADMIN?window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/members",{headers:{Accept:"application/json",Authorization:t.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){console.log(e),g(e)})).catch((function(e){console.error(e)})):Object(h.b)("/"+n.code)}),[n,t.token]),Object(j.a)("div",{css:hn},Object(j.a)(L.a,{title:n.name+" - Settings"}),Object(j.a)("div",{css:vn},"Team"),Object(j.a)("div",{css:yn},"Add Members"),Object(j.a)("div",{css:jn},"Add Glee users to to your organization. Members can manage feedback in your organization but won't have access to organization settings."),Object(j.a)("div",{css:On},n.employee||n.plan&&n.plan.amount>=500?Object(j.a)("div",null,Object(j.a)(pt.c,{title:"Email",description:"If the email belongs to a Glee user, we'll add them to the team.",placeholder:"e.g. [email protected]",value:f,setValue:v}),Object(j.a)(fn,{name:"Add Member",success:c,message:u,processing:r,disabled:!f,handleClick:function(){if(!r)return/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/i.test(f)?void(Object(z.a)()&&(i(!0),window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/members",{method:"PUT",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({email:f})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){g([].concat(Object(un.a)(b),[e])),l(!0),A("Successfully added "+e.user.name+" to the team."),i(!1)})).catch((function(e){console.error(e),l(!1),A("Unable to add "+f+" to the team. Are you sure a Glee user exists with that email?"),i(!1)})))):(l(!1),void A("Please check the email address."))}})):Object(j.a)("div",{css:xn},"Upgrade your subscription to add users to your team.")),Object(j.a)("div",{css:wn},"Members"),Object(j.a)("div",{css:kn},"There ",1===b.length?"is":"are"," ",b.length," user",1===b.length?"":"s"," in the team."),Object(j.a)("div",{css:Cn},b&&b.length?b.map((function(e){return Object(j.a)("div",{css:En},Object(j.a)("div",{css:zn},e.user.name),Object(j.a)("div",{css:Sn},Object(j.a)(J.d,{title:"Remove Member",size:20,css:In,onClick:function(){return a=e._id,void(r||Object(z.a)()&&(i(!0),window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/members/"+a,{method:"DELETE",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){g(b.filter((function(t){return t._id!==e._id}))),i(!1)})).catch((function(e){console.error(e),i(!1)}))));var a}})))})):null))})),Mn={name:"14hf3oi",styles:"top:0;position:sticky;display:flex;flex-direction:column;padding:15px;border-radius:3px;"},Dn={name:"h6pqfk",styles:"margin-bottom:15px;padding:10px;background-color:rgba(100, 100, 100, .2);border-radius:3px;"},Tn={name:"72va8m",styles:"margin-bottom:5px;color:rgba(200, 200, 200, .5);font-size:.7em;font-weight:500;text-transform:uppercase;"},Qn={name:"1lqus3y",styles:"width:100%;font-size:.8em;background-color:transparent;border:none;:invalid{background-color:var(--red);}"},Rn={name:"h6pqfk",styles:"margin-bottom:15px;padding:10px;background-color:rgba(100, 100, 100, .2);border-radius:3px;"},Pn={name:"72va8m",styles:"margin-bottom:5px;color:rgba(200, 200, 200, .5);font-size:.7em;font-weight:500;text-transform:uppercase;"},Gn={name:"h14zhu",styles:"width:100%;resize:none;font-size:.8em;background-color:#202020;border:none;"},Ln={name:"x5h0or",styles:"width:100%;font-size:.8em;color:var(--light);background-color:rgba(100, 100, 100, .2);transition:background-color var(--transition-default-time) ease-out;:not(:disabled):hover{background-color:rgba(100, 100, 100, .5);}:disabled{color:darkgrey;cursor:not-allowed;}"},Nn=Object(f.b)((function(e){return{me:e.global.me,org:e.global.org}}),null)((function(e){var t=e.me,n=e.org,a=e.onCreate,r=o.a.useState(void 0),i=r[0],s=r[1],c=o.a.useState(""),l=c[0],d=c[1],u=o.a.useState(""),A=u[0],p=u[1];return Object(j.a)("div",{css:Mn},Object(j.a)("div",{css:Dn},Object(j.a)("div",{css:Tn},"Title"),Object(j.a)("input",{type:"text",placeholder:"Short, descriptive title",value:l,maxLength:128,css:Qn,onChange:function(e){return d(e.target.value)}})),Object(j.a)("div",{css:Rn},Object(j.a)("div",{css:Pn},"Details"),Object(j.a)("textarea",{type:"text",placeholder:"Any additional details...",rows:5,value:A,maxLength:2048,css:Gn,onChange:function(e){return p(e.target.value)}})),Object(j.a)("div",null,Object(j.a)("button",{disabled:!(t&&t.token&&l&&A),css:Ln,onClick:function(){l&&A&&(s(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/feedback",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({title:l,details:A})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){s(!1),d(""),p(""),a(e)})).catch((function(e){console.error(e),s(!1)})))}},i?Object(j.a)(At.a,{css:Object(w.a)({animation:Object(j.b)({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}})+" .8s linear infinite"})}):t&&t.token?"Create a Post":"Login to Post")))})),Fn={name:"kop564",styles:"display:flex;align-items:flex-start;transition:background-color var(--transition-default-time) ease-in-out;:hover{border-radius:3px;background-color:rgba(100, 100, 100, .05);}"},Kn={name:"1s1t490",styles:"margin:15px;display:flex;flex-direction:column;"},qn={name:"1v74q61",styles:"font-size:.9em;text-align:center;"},Wn={name:"tjtxj2",styles:"width:100%;margin-top:15px;margin-bottom:15px;display:flex;flex-direction:column;cursor:pointer;"},Hn={name:"8vrhw1",styles:"font-weight:500;margin-bottom:10px;"},Yn={name:"xfaob4",styles:"color:lightgrey;font-size:.9em;"},Un=function(e){var t=e.code,n=e.id,a=e.title,o=e.details,r=e.upvotes,i=e.downvotes,s=e.upvoted,c=e.downvoted,l=e.closedAt,d=e.handleVote,u=e.authenticated;return Object(j.a)("div",{css:Fn},Object(j.a)("div",{css:Kn},Object(j.a)("div",{css:Object(w.a)({display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",color:s?"var(--green)":"inherit",transition:"color var(--transition-default-time) ease-in-out",cursor:u?"pointer":"not-allowed",":hover":{color:"var(--green)"}}),onClick:function(){return u?d(s?0:1):null}},Object(j.a)(J.c,null)),Object(j.a)("div",{css:qn},(r||0)-(i||0)),Object(j.a)("div",{css:Object(w.a)({display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",color:c?"var(--red)":"inherit",transition:"color var(--transition-default-time) ease-in-out",cursor:u?"pointer":"not-allowed",":hover":{color:"var(--red)"}}),onClick:function(){return u?d(c?0:-1):null}},Object(j.a)(J.b,null))),Object(j.a)(h.a,{to:"/"+t+"/feedback/"+n,css:Wn},Object(j.a)("div",{css:Hn},a),Object(j.a)("div",{css:Object(w.a)({marginBottom:10,fontSize:".8em",fontWeight:500,textTransform:"uppercase",color:l?"var(--red)":"var(--blue)"})},l?"Closed":"Open"),o&&o.length?Object(j.a)("div",{css:Yn},o.length>256?o.slice(0,256)+"...":o):null))},Zn={name:"1jec8vw",styles:"display:flex;flex-wrap:wrap;flex-direction:row-reverse;"},Vn={name:"1mp155h",styles:"flex:1;min-width:250px;"},Xn={name:"1kf9zu0",styles:"flex:2;min-width:300px;"},Jn={name:"1ucfaoz",styles:"display:flex;align-items:center;color:darkgrey;padding:20px;"},_n={name:"is2x7j",styles:"font-size:.8em;color:darkgrey;padding:20px;"},$n={name:"1ecxfl0",styles:"padding:10px 20px;"},ea={name:"vigpeh",styles:"padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:grey;transition:color var(--transition-default-time) ease, transform var(--transition-default-time) ease;cursor:wait;:hover{color:var(--light);}:hover div{transform:translateY(5px);}:hover svg{transform:translateY(15px);}"},ta={name:"1qxdx74",styles:"transition:transform var(--transition-default-time) ease-out;"},na={name:"1qxdx74",styles:"transition:transform var(--transition-default-time) ease-out;"},aa=Object(f.b)((function(e){return{me:e.global.me,org:e.global.org}}),null)((function(e){var t=e.me,n=e.org,a=o.a.useState(!1),r=a[0],i=a[1],s=o.a.useState(void 0),c=s[0],l=s[1],d=o.a.useState(1),u=d[0],A=d[1],p=o.a.useState(!0),b=p[0],g=p[1],m=o.a.useState([]),f=m[0],h=m[1];o.a.useEffect((function(){n&&n._id&&Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/feedback",{headers:{Accept:"application/json",Authorization:t.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){l(!0),h(e)})).catch((function(e){console.error(e),l(!1)}))}),[t.token,n]);var v=function(){b&&(g(void 0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/feedback?page="+u,{headers:{Accept:"application/json",Authorization:t.token}}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){25===e.length?g(!0):g(!1),A(u+1),h(f.concat(e))})).catch((function(e){console.error(e),g(!0)})))},y=function(e,a){r||(i(!0),Object(z.a)()&&window.fetch("https://gleepi.herokuapp.com/orgs/"+n._id+"/feedback/"+e._id+"/vote",{method:"PATCH",headers:{Accept:"application/json","Content-Type":"application/json",Authorization:t.token},body:JSON.stringify({vote:a})}).then((function(e){if(e.ok)return e.json();throw new Error(e.statusText)})).then((function(e){var t=f,n=t.find((function(t){return t._id===e._id}));t.splice(n,1,e),i(!1),h(t)})).catch((function(e){console.error(e),i(!1)})))};return Object(j.a)("div",{css:Zn},Object(j.a)("div",{css:Vn},Object(j.a)(Nn,{onCreate:function(e){e&&h([e].concat(Object(un.a)(f)))}})),Object(j.a)("div",{css:Xn},!0===c?Object(j.a)(o.a.Fragment,null,f.length?f.map((function(e){return Object(j.a)(Un,{key:e._id,code:n.code,id:e._id,title:e.title,details:e.details,upvotes:e.upvotes&&e.upvotes instanceof Array&&e.upvotes.length,downvotes:e.downvotes&&e.downvotes instanceof Array&&e.downvotes.length,upvoted:t&&t.id&&e.upvotes&&e.upvotes instanceof Array&&e.upvotes.includes(t.id.toString()),downvoted:t&&t.id&&e.downvotes&&e.downvotes instanceof Array&&e.downvotes.includes(t.id.toString()),closedAt:e.closedAt,handleVote:function(t){return y(e,t)},authenticated:t&&t.token})})):Object(j.a)("div",{css:Jn},"It's so empty and cold over here! Create a post and it'll show up here.")):!1===c?Object(j.a)("div",{css:_n},"Oh, crap! Our servers having some issues. Please try again."):Object(j.a)("div",{css:$n},Object(j.a)(X.a,null)),f.length&&!1!==b?Object(j.a)("div",{css:ea,onMouseOver:v,onFocus:v},Object(j.a)("div",{css:ta},!0===b?"Load More":"Loading"),Object(j.a)(_.a,{css:na})):null))})),oa=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g=!0,b.then((function(e){return p(e,t)}))}("pk_live_wsHUCwigVVLxrE9fWK5KU9C300cV9DE9fG");t.default=function(){return Object(j.a)(r.Router,null,Object(j.a)(m.a,{path:"/"},Object(j.a)(ut,{path:"/"})),Object(j.a)(Z,{path:"/:code"},Object(j.a)(aa,{path:"/"}),Object(j.a)(aa,{path:"/feedback"}),Object(j.a)(we,{path:"/feedback/:id"}),Object(j.a)(Bn,{path:"/team"}),Object(j.a)(i.Elements,{stripe:oa,path:"/settings"},Object(j.a)(dn,{path:"/"}))))}},eWwy:function(e,t,n){!function(e,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],a=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(c){o=!0,r=c}finally{try{a||null==s.return||s.return()}finally{if(o)throw r}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function r(){}function i(){}t=t&&t.hasOwnProperty("default")?t.default:t,i.resetWarningCache=r;var s=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,n,a,o,r){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}()})),c=function(e){return null!==e&&"object"===n(e)},l=function e(t,n){if(!c(t)||!c(n))return t===n;var a=Array.isArray(t);if(a!==Array.isArray(n))return!1;var o="[object Object]"===Object.prototype.toString.call(t);if(o!==("[object Object]"===Object.prototype.toString.call(n)))return!1;if(!o&&!a)return!1;var r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;for(var s={},l=0;l<r.length;l+=1)s[r[l]]=!0;for(var d=0;d<i.length;d+=1)s[i[d]]=!0;var u=Object.keys(s);if(u.length!==r.length)return!1;var A=t,p=n;return u.every((function(t){return e(A[t],p[t])}))},d=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},u=function(e){if(null===e||c(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;var t;throw new Error("Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")},A=function(e){if(function(e){return c(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then(u)};var t=u(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},p=t.createContext(null);p.displayName="ElementsContext";var b=function(e){return function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e}(t.useContext(p),e)},g=function(e){return(0,e.children)(b("mounts <ElementsConsumer>"))};g.propTypes={children:s.func.isRequired};var m=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),function(){n.current&&n.current.apply(n,arguments)}},f=function(e){return c(e)?(e.paymentRequest,a(e,["paymentRequest"])):{}},h=function(){},v=function(e,n){var a,o="".concat((a=e).charAt(0).toUpperCase()+a.slice(1),"Element"),r=n?function(e){b("mounts <".concat(o,">"));var n=e.id,a=e.className;return t.createElement("div",{id:n,className:a})}:function(n){var a=n.id,r=n.className,i=n.options,s=void 0===i?{}:i,c=n.onBlur,d=void 0===c?h:c,u=n.onFocus,A=void 0===u?h:u,p=n.onReady,g=void 0===p?h:p,v=n.onChange,y=void 0===v?h:v,j=n.onEscape,O=void 0===j?h:j,x=n.onClick,w=void 0===x?h:x,k=b("mounts <".concat(o,">")).elements,C=t.useRef(null),E=t.useRef(null),z=m(g),S=m(d),I=m(A),B=m(w),M=m(y),D=m(O);t.useLayoutEffect((function(){if(null==C.current&&k&&null!=E.current){var t=k.create(e,s);C.current=t,t.mount(E.current),t.on("ready",(function(){return z(t)})),t.on("change",M),t.on("blur",S),t.on("focus",I),t.on("escape",D),t.on("click",B)}}));var T=t.useRef(s);return t.useEffect((function(){T.current&&T.current.paymentRequest!==s.paymentRequest&&console.warn("Unsupported prop change: options.paymentRequest is not a customizable property.");var e=f(s);0===Object.keys(e).length||l(e,f(T.current))||C.current&&(C.current.update(e),T.current=s)}),[s]),t.useEffect((function(){return function(){C.current&&C.current.destroy()}}),[]),t.createElement("div",{id:a,className:r,ref:E})};return r.propTypes={id:s.string,className:s.string,onChange:s.func,onBlur:s.func,onFocus:s.func,onReady:s.func,onClick:s.func,options:s.object},r.displayName=o,r.__elementType=e,r},y="undefined"==typeof window,j=v("auBankAccount",y),O=v("card",y),x=v("cardNumber",y),w=v("cardExpiry",y),k=v("cardCvc",y),C=v("fpxBank",y),E=v("iban",y),z=v("idealBank",y),S=v("paymentRequestButton",y);e.AuBankAccountElement=j,e.CardCvcElement=k,e.CardElement=O,e.CardExpiryElement=w,e.CardNumberElement=x,e.Elements=function(e){var n=e.stripe,a=e.options,r=e.children,i=t.useRef(!1),s=t.useRef(!0),c=t.useMemo((function(){return A(n)}),[n]),u=o(t.useState((function(){return{stripe:null,elements:null}})),2),b=u[0],g=u[1],m=d(n),f=d(a);return null!==m&&(m!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it."),l(a,f)||console.warn("Unsupported prop change on Elements: You cannot change the `options` prop after setting the `stripe` prop.")),i.current||("sync"===c.tag&&(i.current=!0,g({stripe:c.stripe,elements:c.stripe.elements(a)})),"async"===c.tag&&(i.current=!0,c.stripePromise.then((function(e){e&&s.current&&g({stripe:e,elements:e.elements(a)})})))),t.useEffect((function(){return function(){s.current=!1}}),[]),t.useEffect((function(){var e=b.stripe;e&&e._registerWrapper&&e._registerWrapper({name:"react-stripe-js",version:"1.1.2"})}),[b.stripe]),t.createElement(p.Provider,{value:b},r)},e.ElementsConsumer=g,e.FpxBankElement=C,e.IbanElement=E,e.IdealBankElement=z,e.PaymentRequestButtonElement=S,e.useElements=function(){return b("calls useElements()").elements},e.useStripe=function(){return b("calls useStripe()").stripe},Object.defineProperty(e,"__esModule",{value:!0})}(t,n("q1tI"))},efN2:function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return O})),n.d(t,"e",(function(){return x})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return I}));var a=n("k1TG"),o=n("8o2o"),r=n("iYmT"),i=(n("q1tI"),n("IdFE")),s=n("qKvR"),c={name:"17grcf8",styles:"appearance:none;"},l=function(e){var t=e.enabled,n=e.toggleHandler,a=e.disabled;return Object(s.a)("label",{css:Object(r.a)({display:"flex",alignItems:"center",opacity:a?.5:1})},Object(s.a)("div",{css:Object(r.a)({width:45,height:24,padding:2,display:"flex",justifyContent:"center",borderRadius:50,backgroundColor:t?"var(--green)":"rgba(100, 100, 100, .2)",boxShadow:"0px 0px 3px -2px black inset",transition:"background-color var(--transition-default-time) ease",cursor:a?"not-allowed":"pointer",":hover":{backgroundColor:t?"#34c759":"rgba(100, 100, 100, .3)"},":focus-within":{backgroundColor:t?"#34c759":"rgba(100, 100, 100, .3)"}})},Object(s.a)("div",{css:Object(r.a)({width:20,height:20,borderRadius:50,backgroundColor:"var(--light)",boxShadow:"0px 0px 3px -2px black",transform:t?"translateX(10px)":"translateX(-10px)",transition:"transform var(--transition-default-time) ease, background-color var(--transition-default-time) ease"})})),Object(s.a)("input",{disabled:a,checked:t,type:"checkbox",css:c,onChange:n}))},d={name:"ywfyo0",styles:"width:100%;display:flex;align-items:center;"},u={name:"t97txp",styles:"appearance:none;flex:auto;color:inherit;background-color:transparent;border:none;cursor:pointer;padding-right:15px;:invalid{outline:0;box-shadow:none;border:none;color:var(--red);}"},A={name:"f6ijbv",styles:"color:grey;background-color:var(--dark);"},p={name:"dcwsa9",styles:"background-color:var(--dark);"},b=function(e){var t=e.options,n=e.selectKey,c=e.selectValue,l=e.value,b=e.setValue,g=e.placeholder,m=Object(o.a)(e,["options","selectKey","selectValue","value","setValue","placeholder"]);return Object(s.a)("div",{css:d},Object(s.a)("select",Object(a.a)({value:l||"--placeholder",css:u,onChange:function(e){return b(e.target.value)}},m),Object(s.a)("option",{value:"--placeholder",disabled:!0,css:A},g||"Select"),Object.keys(t).map((function(e){return Object(s.a)("option",{key:e,value:"key"===c?e:"keyvalue"===c?e+" ("+t[e]+")":t[e],css:p},"value"===n?t[e]:"keyvalue"===n?e+" ("+t[e]+")":e)}))),Object(s.a)(i.b,{css:Object(r.a)({marginLeft:-15,pointerEvents:"none"})}))},g={name:"1h0syua",styles:"margin-bottom:15px;padding:10px;background-color:rgba(100, 100, 100, .2);border-radius:3px;transition:background-color var(--transition-default-time) ease-out;:hover{background-color:rgba(100, 100, 100, .3);}:focus-within{background-color:rgba(100, 100, 100, .3);}"},m={name:"uz39rw",styles:"margin-bottom:0;color:rgba(200, 200, 200, .5);font-size:.7em;font-weight:500;text-transform:uppercase;"},f={name:"1ulfkke",styles:"margin-bottom:5px;color:rgba(200, 200, 200, .3);font-size:.6em;font-weight:500;"},h={name:"1icbkz",styles:"display:flex;align-items:center;font-size:.8em;"},v={name:"1124ap9",styles:"margin-right:5px;color:lightgrey;"},y={name:"1v4fm80",styles:"flex:auto;background-color:transparent;border:none;:disabled{color:darkgrey;}:invalid{outline:0;box-shadow:none;border:none;color:var(--red);}"},j=function(e){var t=e.type,n=e.title,r=e.description,i=e.pretext,c=e.placeholder,l=e.value,d=e.setValue,u=Object(o.a)(e,["type","title","description","pretext","placeholder","value","setValue"]);return Object(s.a)("div",{css:g},Object(s.a)("div",{css:m},n),Object(s.a)("div",{css:f},r),Object(s.a)("div",{css:h},i?Object(s.a)("div",{css:v},i):null,Object(s.a)("input",Object(a.a)({type:t,placeholder:c,value:l,css:y,onChange:function(e){return d(e.target.value)}},u))))},O=function(e){return Object(s.a)(j,Object(a.a)({type:"text"},e))},x=function(e){return Object(s.a)(j,Object(a.a)({type:"url"},e))},w=function(e){return Object(s.a)(j,Object(a.a)({type:"email"},e))},k={name:"1h0syua",styles:"margin-bottom:15px;padding:10px;background-color:rgba(100, 100, 100, .2);border-radius:3px;transition:background-color var(--transition-default-time) ease-out;:hover{background-color:rgba(100, 100, 100, .3);}:focus-within{background-color:rgba(100, 100, 100, .3);}"},C={name:"uz39rw",styles:"margin-bottom:0;color:rgba(200, 200, 200, .5);font-size:.7em;font-weight:500;text-transform:uppercase;"},E={name:"1ulfkke",styles:"margin-bottom:5px;color:rgba(200, 200, 200, .3);font-size:.6em;font-weight:500;"},z={name:"1icbkz",styles:"display:flex;align-items:center;font-size:.8em;"},S={name:"1124ap9",styles:"margin-right:5px;color:lightgrey;"},I=function(e){var t=e.title,n=e.description,r=e.pretext,i=e.placeholder,c=Object(o.a)(e,["title","description","pretext","placeholder"]);return Object(s.a)("div",{css:k},Object(s.a)("div",{css:C},t),Object(s.a)("div",{css:E},n),Object(s.a)("div",{css:z},r?Object(s.a)("div",{css:S},r):null,Object(s.a)(b,Object(a.a)({placeholder:i},c))))}},hZgW:function(e,t,n){"use strict";var a=n("iYmT"),o=n("q1tI"),r=n.n(o),i=n("qKvR"),s=function(e){var t=e.text,n=e.handler,o=e.primary;return Object(i.a)("div",{css:Object(a.a)({padding:"10px 20px",borderRadius:o?3:0,fontSize:".8em",fontWeight:500,backgroundColor:o?"rgba(100, 100, 100, .3)":"none",color:"lightgrey",transition:"color var(--transition-default-time) ease",cursor:"pointer",":hover":{color:"var(--green)"}}),onClick:n},t)},c={name:"pd9xsj",styles:"position:fixed;top:0;left:0;height:100vh;width:100vw;background-color:rgba(0, 0, 0, .8);z-index:42;display:flex;justify-content:center;align-items:center;font-size:.9em;transition:opacity var(--transition-default-time) ease;@supports (backdrop-filter: blur()){background-color:rgba(0, 0, 0, .5);backdrop-filter:blur(15px);}"},l={name:"1crmtbn",styles:"max-width:400px;border-radius:3px;background-color:rgba(35, 35, 35, 1);box-shadow:0px 15px 50px -10px black;transition:transform var(--transition-default-time) ease;"},d={name:"1ruxp1v",styles:"padding:20px;"},u={name:"14kzdzw",styles:"margin-bottom:10px;font-weight:600;text-transform:uppercase;"},A={name:"4qz4td",styles:"padding:15px;margin-top:15px;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:3px;border-bottom-right-radius:3px;background-color:rgba(15, 15, 15, .8);"};t.a=function(e){var t=e.title,n=e.message,a=e.okText,o=e.okHandler,p=e.cancelText,b=e.cancelHandler,g=r.a.useRef(null),m=r.a.useRef(null);return r.a.useEffect((function(){g.current.style.opacity=1,m.current.style.transform="scale(1)"}),[]),Object(i.a)("div",{ref:g,style:{opacity:0},css:c},Object(i.a)("div",{ref:m,style:{transform:"scale(0.5)"},css:l},Object(i.a)("div",{css:d},Object(i.a)("div",{css:u},t),Object(i.a)("div",null,n)),Object(i.a)("div",{css:A},Object(i.a)(s,{text:p||"No",handler:b}),Object(i.a)(s,{text:a||"Yes",handler:o,primary:!0}))))}},"ut4/":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}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CG7tjfFgDDPoD06JK/BIAh0zni2D/0AdD4s5mI3B8DwNDII1qfnxEAQ78DcO9CtB6b8wcBMCRaj81F596zAsBSiFj6heeifWTRIAAGXPv4UtT/2/MGIQBeMZ/F4s/9bTQfmY3IfR8AMHDyiObfzMXizz0R2UzHPCIimZ6edsb7KqVv2xjlW7dHec9YFMbKkVSLhgLQj+f8dhbZYjs6R85H897Tkd67YCgCAACGm68AAEAAAAACAAAQAACAAAAABAAAIAAAAAEAAAgAAEAAAAACAAAQAACAAAAABAAAIAAAAAEAAAgAAEAAAIAAAAAEAAAgAAAAAQAACAAAQAAAAAIAABAAAIAAAAAEAAAgAAAAAQAACAAAQAAAAAIAABAAAIAAAAABAAAIAABAAAAAAgAAEAAAgAAAAAQAACAAAAABAAAIAABAAAAAAgAAEAAAgAAAAAQAACAAAAABAAACAAAQAACAAAAABAAAIAAAAAEAAAgAAEAAAAACAAAQAACAAAAAuuT/A6e9iaqi0l1nAAAAAElFTkSuQmCC"}}]);
//# sourceMappingURL=component---src-pages-index-jsx-54b2f20435f45214cceb.js.map