(this["webpackJsonpprofile-picture-generator"]=this["webpackJsonpprofile-picture-generator"]||[]).push([[0],{37:function(e,t,a){},41:function(e,t,a){var n={"./ProfileFrame Blue Bars.png":[49,6],"./ProfileFrame Green Bars.png":[50,7],"./ProfileFrame Mixed Bars.png":[51,8],"./ProfileFrame Purple.png":[52,9],"./ProfileFrame Red Bars.png":[53,10],"./ProfileFrame White Bars.png":[54,11],"./ProfileFrame Yellow Bars.png":[55,12],"./white-round-bottom-logo.png":[56,13]};function r(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return a.e(t[1]).then((function(){return a(r)}))}r.keys=function(){return Object.keys(n)},r.id=41,e.exports=r},42:function(e,t,a){var n={"./DeineWahl.png":[57,14],"./Europa.png":[58,15],"./JetztBistDuDran.png":[59,16],"./Volt.png":[60,17],"./Volt21.png":[61,18],"./VoltEuropa.png":[62,19],"./VoltRLP.png":[63,20],"./VoteVolt.png":[64,21],"./paneurop\xe4isch.png":[65,22],"./pragmatisch.png":[66,23],"./progressiv.png":[67,24]};function r(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return a.e(t[1]).then((function(){return a(r)}))}r.keys=function(){return Object.keys(n)},r.id=42,e.exports=r},47:function(e,t,a){var n={"./de.ftl":[68,3],"./en.ftl":[69,4]};function r(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],r=t[0];return a.e(t[1]).then((function(){return a(r)}))}r.keys=function(){return Object.keys(n)},r.id=47,e.exports=r},48:function(e,t,a){"use strict";a.r(t);var n=a(1),r=a(0),c=a.n(r),o=a(25),s=a.n(o),u=a(8),i=a(17),O=a(2),h=(a(37),a(30)),l=a(27),d=a(4),j=a.n(d),f=a(9);var b=function(e){var t=e.onChange,c=Object(r.useState)([]),o=Object(O.a)(c,2),s=o[0],u=o[1],i=Object(r.useState)(null),h=Object(O.a)(i,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","white-round-bottom-logo"].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,a(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){u(e),d(e[0].src.default)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var b=Object(r.useCallback)((function(e){d(e.target.dataset.src)}),[d]);return Object(r.useEffect)((function(){t(l)}),[t,l]),Object(n.jsxs)("div",{className:"FrameChooser",children:[Object(n.jsx)("h2",{children:"Choose a frame:"}),s.map((function(e){var t=e.src.default,a=l===t;return Object(n.jsx)("img",{alt:e.name,"data-src":t,src:t,className:a?"frame choosen":"frame",onClick:b},t)}))]})};var p=function(e){var t=e.onChange,c=Object(r.useState)([]),o=Object(O.a)(c,2),s=o[0],u=o[1],i=Object(r.useState)(null),h=Object(O.a)(i,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(["","DeineWahl","Europa","JetztBistDuDran","paneurop\xe4isch","pragmatisch","progressiv","Volt","Volt21","VoltEuropa","VoltRLP","VoteVolt"].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:if(e.t0=t,""!==t){e.next=5;break}e.t1="",e.next=8;break;case 5:return e.next=7,a(42)("./".concat(t,".png"));case 7:e.t1=e.sent;case 8:return e.t2=e.t1,e.abrupt("return",{name:e.t0,src:e.t2});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(e){u(e),d(e[0].src.default)}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var b=Object(r.useCallback)((function(e){d(e.target.dataset.src)}),[d]);return Object(r.useEffect)((function(){t(l)}),[t,l]),Object(n.jsxs)("div",{className:"HashtagChooser",children:[Object(n.jsx)("h2",{children:"Choose a Hashtag:"}),s.map((function(e){var t=e.src.default,a=l===t;return Object(n.jsx)("button",{"data-src":t,className:a?"hashtag_button choosen":"hashtag_button",onClick:b,children:""===e.name?"No Hashtag":"#"+e.name},t)}))]})},g=a(28),v=a.n(g),w=a(29),D=a.n(w);function A(e,t,a){return Math.min(Math.max(t,e),a)}var m=function(e){var t=e.onChange,a=e.backgroundURL,c=e.backgroundRatio,o=e.frameURL,s=e.hashtagURL,u=Object(r.useRef)(null),i=Object(r.useRef)(null),h=Object(r.useState)(!1),l=Object(O.a)(h,2),d=l[0],j=l[1],f=Object(r.useState)(null),b=Object(O.a)(f,2),p=b[0],g=b[1],w=Object(r.useState)(null),m=Object(O.a)(w,2),C=m[0],Q=m[1],H=Object(r.useState)(0),x=Object(O.a)(H,2),T=x[0],U=x[1],F=Object(r.useState)(0),N=Object(O.a)(F,2),k=N[0],K=N[1],E=Object(r.useState)(0),B=Object(O.a)(E,2),y=B[0],P=B[1],S=Object(r.useState)(0),R=Object(O.a)(S,2),L=R[0],M=R[1],I=Object(r.useState)(1),V=Object(O.a)(I,2),Y=V[0],_=V[1],z=Object(r.useState)(300),J=Object(O.a)(z,2),X=J[0],G=J[1],W=Object(r.useState)(300),q=Object(O.a)(W,2),Z=q[0],$=q[1],ee=Object(r.useState)(300),te=Object(O.a)(ee,2),ae=te[0],ne=te[1],re=Object(r.useState)(300),ce=Object(O.a)(re,2),oe=ce[0],se=ce[1],ue=Object(r.useState)(0),ie=Object(O.a)(ue,2),Oe=ie[0],he=ie[1],le=Object(r.useState)(0),de=Object(O.a)(le,2),je=de[0],fe=de[1],be=Object(r.useState)(0),pe=Object(O.a)(be,2),ge=pe[0],ve=pe[1],we=Object(r.useState)(0),De=Object(O.a)(we,2),Ae=De[0],me=De[1];Object(r.useEffect)((function(){t&&t({x:T,y:k,scale:Y})}),[t,T,k,Y]),Object(r.useEffect)((function(){if(u&&u.current){var e=u.current.offsetWidth,t=u.current.offsetHeight;se(t),ne(e);var a=1,n=1;c<1?a=1/c:c>1&&(n=1*c),G(a),$(n)}}),[c]),Object(r.useEffect)((function(){var e=function(e,t,a,n,r){var c=Math.max(0,e*a-n)/2,o=Math.max(0,t*a-r)/2;return{rangeMaxX:c,rangeMinX:0-c,rangeMaxY:o,rangeMinY:0-o}}(X*ae,Z*oe,Y,ae,oe),t=e.rangeMinX,a=e.rangeMinY,n=e.rangeMaxX,r=e.rangeMaxY;he(t),fe(a),ve(n),me(r)}),[X,Z,ae,oe,Y]),Object(r.useEffect)((function(){U(0),K(0),P(0),M(0),_(1)}),[a]);var Ce=Object(r.useCallback)((function(e){var t=1*e.target.dataset.x,a=1*e.target.dataset.y,n=A(t+e.deltaX,Oe,ge),r=A(a+e.deltaY,je,Ae);e.isFinal?(U(n||0),K(r||0),P(0),M(0)):(P(n-t||0),M(r-a||0))}),[Oe,je,ge,Ae]),Qe=Object(r.useCallback)((function(e,t,a,n){e.preventDefault();var r=A(1*e.target.dataset.scale+t/200,1,8);_(r||1);var c=1*e.target.dataset.x,o=1*e.target.dataset.y;U(A(c,Oe,ge)||0),K(A(o,je,Ae)||0)}),[Oe,je,ge,Ae]);return Object(r.useEffect)((function(){if(!d&&u&&u.current){var e=u.current;e.addEventListener("mousedown",(function(e){e.preventDefault()}),!1),e.addEventListener("touchstart",(function(e){e.preventDefault()}),!1),e.addEventListener("touchend",(function(e){e.preventDefault()}),!1),e.addEventListener("touchmove",(function(e){e.preventDefault()}),!1),g(new v.a(e,{direction:"DIRECTION_ALL"})),Q(D()(e)),j(!0)}}),[u,d]),Object(r.useEffect)((function(){if(p&&C&&d&&u&&u.current)return p.on("pan",Ce),C.wheel(Qe),function(){p.off("pan",Ce),C.unwheel()}}),[u,Ce,Qe,d,p,C]),Object(n.jsxs)("div",{className:"Editor",ref:u,"data-x":T,"data-y":k,"data-scale":Y,children:[Object(n.jsx)("img",{src:a,ref:i,alt:"",className:"background",style:{width:100*X+"%",height:100*Z+"%",transform:"translate3d(calc(-50% + ".concat(T+y,"px), calc(-50% + ").concat(k+L,"px), 0) scale(").concat(Y,",").concat(Y,")")}}),Object(n.jsx)("img",{src:o,alt:"",className:"foreground"}),Object(n.jsx)("img",{src:s,alt:"",className:"hashtag"})]})},C=a.p+"static/media/HeaderImage.1f39a672.svg",Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4AgMAAACRfoQcAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJUExURVIreVIreVEreKabc9cAAAADdFJOU//+/Q3dsqEAAATsSURBVHgB7dAxAQAABAAwQtI/ipMCvi3CgiMV6NChQ4cOHTp06NChQ4cOHTp06NChAx06dOjQoUOHDh06dOjQoUOHDh06dOhAhw4dOnTo0KFDhw4dOnTo0KFDhw4dOtChQ4cOHTp06NChQ4cOHTp06NChQ4cOdOjQoUOHDh06dOjQoUOHDh06dOjQoQMdOnTo0KFDhw4dOnTo0KFDhw4dOnToQIcOHTp06NChQ4cOHTp06NChQ4cOHejQoUOHDh06dOjQoUOHDh06dOjQoUMHOnTo0KFDhw4dOnTo0KFDhw4dOnTo0IEOHTp06NChQ4cOHTp06NChQ4cOHTp0oEOHDh06dOjQoUOHDh06dOjQoUOHDh3o0KFDhw4dOnTo0KFDhw4dOnTo0KFDBzp06NChQ4cOHTp06NChQ4cOHTp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4cOHTp0oEOHDh06dOjQoUOHDh06dOjQoUOHDh3o0KFDhw4dOnTo0KFDhw4dOnTo0KFDBzp06NChQ4cOHTp06NChQ4cOHTp06NCBDh06dOjQoUOHDh06dOjQoUOHDh06dKBDhw4dOnTo0KFDhw4dOnTo0KFDhw4dxeoB30xd38yzCvgAAAAASUVORK5CYII=",H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAALSURBVHgBY2BgAAAAAwABjPg5OgAAAABJRU5ErkJggg==",x=(a(43),a(6)),T=a(21),U=a(5),F=a(7),N=a(10),k=a(11),K=a(16),E=a(20),B=a(31),y=["de","en"];function P(e){return S.apply(this,arguments)}function S(){return(S=Object(f.a)(j.a.mark((function e(t){var n,r,c;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(47)("./"+t+".ftl");case 2:return n=e.sent,e.next=5,fetch(n.default);case 5:return r=e.sent,e.next=8,r.text();case 8:return c=e.sent,e.abrupt("return",Object(T.a)({},t,new E.b(c)));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){var e=new E.a("");return e.addResource(new E.b("")),new K.c([e])}function L(e){return M.apply(this,arguments)}function M(){return(M=Object(f.a)(j.a.mark((function e(t){var a,n;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(P));case 2:return a=e.sent,n=a.reduce((function(e,t){return Object.assign(e,t)})),e.abrupt("return",j.a.mark((function e(){var a,r,c,o;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Object(x.a)(t),e.prev=1,a.s();case 3:if((r=a.n()).done){e.next=11;break}return c=r.value,(o=new E.a(c)).addResource(n[c]),e.next=9,o;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),a.e(e.t0);case 16:return e.prev=16,a.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var I=function(e){Object(N.a)(a,e);var t=Object(k.a)(a);function a(e){var n;return Object(U.a)(this,a),(n=t.call(this,e)).state={bundles:R()},n}return Object(F.a)(a,[{key:"componentDidMount",value:function(){var e=Object(f.a)(j.a.mark((function e(){var t,a;return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(B.a)(this.props.userLocales,y,{defaultLocale:"en"}),e.next=3,L(t);case 3:a=e.sent,this.setState({bundles:new K.c(a())});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this.props.children,t=this.state.bundles;return t?Object(n.jsx)(K.a,{l10n:t,children:e}):Object(n.jsx)("div",{children:"Loading texts\u2026"})}}]),a}(c.a.Component),V=(a(12),function(e){return Object(n.jsx)(K.b,Object(u.a)(Object(u.a)({},e),{},{elems:Object(u.a)({br:Object(n.jsx)("br",{})},e.elems),children:Object(n.jsx)(c.a.Fragment,{children:e.children})}),e.id)});var Y=navigator.languages,_=1080;var z=function(){var e=Object(r.useState)(null),t=Object(O.a)(e,2),a=t[0],c=t[1],o=Object(r.useState)(null),s=Object(O.a)(o,2),d=s[0],j=s[1],f=Object(r.useState)(null),g=Object(O.a)(f,2),v=g[0],w=g[1],D=Object(r.useState)(1),A=Object(O.a)(D,2),x=A[0],T=A[1],U=Object(r.useState)(null),F=Object(O.a)(U,2),N=F[0],k=F[1],K=Object(r.useState)(0),E=Object(O.a)(K,2),B=E[0],y=E[1],P=Object(r.useState)(0),S=Object(O.a)(P,2),R=S[0],L=S[1],M=Object(r.useState)({x:0,y:0,scale:1}),z=Object(O.a)(M,2),J=z[0],X=z[1],G=Object(r.useCallback)((function(e){c(e)}),[c]),W=Object(r.useCallback)((function(e){j(e)}),[j]),q=Object(r.useCallback)((function(e){var t=e.x,a=e.y,n=e.scale;X({x:t,y:a,scale:n})}),[]),Z=Object(r.useCallback)((function(e){if(e){var t=new FileReader;t.onload=function(t){var a=new Image;a.onload=function(){var n,r;a.width