1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-23 08:15:09 +00:00
profile.volt.link/static/js/main.d9d8c97c.chunk.js

2 lines
19 KiB
JavaScript
Raw Normal View History

2021-04-20 21:20:43 +00:00
(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[0],{37:function(e,t,n){},41:function(e,t,n){var a={"./ProfileFrame B_G Bars.png":[49,13],"./ProfileFrame Blue Bars.png":[50,14],"./ProfileFrame Green Bars.png":[51,15],"./ProfileFrame Mixed Bars.png":[52,16],"./ProfileFrame Purple.png":[53,17],"./ProfileFrame R_Y Bars.png":[54,18],"./ProfileFrame Red Bars.png":[55,19],"./ProfileFrame White Bars.png":[56,20],"./ProfileFrame Yellow Bars.png":[57,21]};function r(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return n.e(t[1]).then((function(){return n(r)}))}r.keys=function(){return Object.keys(a)},r.id=41,e.exports=r},42:function(e,t,n){var a={"./#DeineWahl.png":[58,22],"./#EUReform.png":[59,23],"./#Europa.png":[60,24],"./#EuropeCares.png":[61,25],"./#European.png":[62,26],"./#FutureMadeInEurope.png":[63,27],"./#IkStemVolt.png":[64,28],"./#JetztBistDuDran.png":[65,29],"./#JoinTheChange.png":[66,30],"./#RejoinEU.png":[67,31],"./#ValuesOverPower.png":[68,32],"./#Volt.png":[69,33],"./#Volt21.png":[70,34],"./#VoltEuropa.png":[71,35],"./#VoltRLP.png":[72,36],"./#VoteVolt.png":[73,37],"./#ZukunftMadeInEurope.png":[74,38],"./#democracy.png":[75,39],"./#paneurop\xe4isch.png":[76,40],"./#pragmatisch.png":[77,41],"./#progressiv.png":[78,42],"./stemvolt.nl.png":[79,43]};function r(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return n.e(t[1]).then((function(){return n(r)}))}r.keys=function(){return Object.keys(a)},r.id=42,e.exports=r},47:function(e,t,n){var a={"./de.ftl":[80,3],"./en.ftl":[81,4],"./es.ftl":[82,5],"./fr.ftl":[83,6],"./it.ftl":[84,7],"./nl.ftl":[85,8],"./pl.ftl":[86,9],"./pt.ftl":[87,10],"./ru.ftl":[88,11]};function r(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return n.e(t[1]).then((function(){return n(r)}))}r.keys=function(){return Object.keys(a)},r.id=47,e.exports=r},48:function(e,t,n){"use strict";n.r(t);var a=n(1),r=n(0),c=n.n(r),o=n(25),s=n.n(o),i=n(7),u=n(17),O=n(2),h=(n(37),n(30)),l=n(27),d=n(4),j=n.n(d),f=n(9);var p=function(e){var t=e.onChange,c=Object(r.useState)([]),o=Object(O.a)(c,2),s=o[0],i=o[1],u=Object(r.useState)(null),h=Object(O.a)(u,2),l=h[0],d=h[1];Object(r.useEffect)((function(){function e(){return(e=Object(f.a)(j.a.mark((function e(){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Promise.all(["ProfileFrame Purple","ProfileFrame Mixed Bars","ProfileFrame Yellow Bars","ProfileFrame Red Bars","ProfileFrame Blue Bars","ProfileFrame Green Bars","ProfileFrame White Bars","ProfileFrame B_G Bars","ProfileFrame R_Y Bars"].map(function(){var e=Object(f.a)(j.a.mark((function e(t){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n(41)("./".concat(t,".png"));case 3:return e.t1=e.sent,e.abrupt("return",{name:e.t0,src:e.t1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){i(e),d(e[0].src.default)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var p=Object(r.useCallback)((function(e){d(e.target.dataset.src)}),[d]);return Object(r.useEffect)((function(){t(l)}),[t,l]),Object(a.jsx)("div",{className:"FrameChooser",children:s.map((function(e){var t=e.src.default,n=l===t;return Object(a.jsx)("div",{"data-src":t,className:n?"frame choosen":"frame",onClick:p,children:Object(a.jsx)("img",{alt:e.name,src:t})},t)}))})},b=n(16),g=n(10),m=function(e){return Object(a.jsx)(b.b,Object(i.a)(Object(i.a)({},e),{},{elems:Object(i.a)({br:Object(a.jsx)("br",{})},e.elems),children:Object(a.jsx)(c.a.Fragment,{children:e.children})}),e.id)};function v(e){return function(t){var n=c.a.useContext(g.a);return c.a.createElement(e,Object(i.a)({getString:function(e,t,
//# sourceMappingURL=main.d9d8c97c.chunk.js.map