(this.webpackJsonpphotomediafrontend=this.webpackJsonpphotomediafrontend||[]).push([[0],{180:function(e,t,n){e.exports=n(372)},185:function(e,t,n){},372:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(29),i=n.n(o),c=(n(185),n(10)),l=n(11),u=n(16),s=n(15),p=n(17),d=n(4),f=n(25),h=n(6);function b(){var e=Object(d.a)(["\nposition: absolute;\ntop: 0; right: 0; bottom: 0; left: 0;\nmargin: 0;\npadding: 0;\ntransition: .2s;\n","\n\n"]);return b=function(){return e},e}function g(){var e=Object(d.a)(["\nlist-style: none;\nmargin: 0;\npadding: 0;\n"]);return g=function(){return e},e}function m(){var e=Object(d.a)(["\nwidth: 98vw;\nheight: 98vh;\nbackground: #000;\nposition: relative;\n"]);return m=function(){return e},e}var y=h.a.div(m()),v=h.a.ul(g()),O=h.a.li(b(),(function(e){return e.active?"\nopacity: 1;\n":"\nopacity: 0;\n"})),j=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(u.a)(this,Object(s.a)(t).call(this,e))).state=void 0,n.state={index:0,interval:null},n}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=setInterval((function(){var t=e.state.index+1;e.state.index===e.props.slideElements.length-1&&(t=0),e.setState({index:t})}),this.props.slideInterval);this.setState({interval:t})}},{key:"componentWillUnmount",value:function(){clearInterval(this.state.interval)}},{key:"render",value:function(){return a.a.createElement(y,null,a.a.createElement(v,null,this.renderSlideElements()))}},{key:"renderSlideElements",value:function(){var e=this;return this.props.slideElements.map((function(t,n){return n===e.state.index||n===e.state.index+1?a.a.createElement(O,{key:"oneslide"+n,active:n===e.state.index},t):null}))}}]),t}(a.a.Component),k=n(143),P=n.n(k);function w(){return function(){var e={};return window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,(function(t,n,r){return e[n]=r,""})),e}().id}var E,x=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t="";e&&(t=window.location.protocol+"//");var n="photomediaapiimageholder.fasibio.de";return n.match("{{IMAGEHANDLERURL}}")?"".concat(t,"localhost:8083"):"".concat(t).concat(n)},C=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t="";e&&(t=window.location.protocol+"//");var n="photomediaapi.fasibio.de";return n.match("{{APIURL}}")?"".concat(t,"localhost:8080"):"".concat(t).concat(n)};function D(){var e=Object(d.a)(["\nbackground-image:url('","');\nposition: absolute;\ntop:0;\nright: 0;\nleft: 0;\nbottom: 0;\nbackground-repeat: no-repeat;\nbackground-size: contain;\nbackground-position: 50%;\n"]);return D=function(){return e},e}var I=h.a.div(D(),(function(e){return e.background})),S=Object(f.b)("party")(E=Object(f.c)(E=function(e){function t(){var e,n;Object(c.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o0?t:a.a.createElement(a.a.Fragment,null,a.a.createElement(Y,null,a.a.createElement(Q,null,"Hier k\xf6nnen mit Klick auf das Viereck eins oder mehrere Bilder Hochgeladen werden."),a.a.createElement("br",null),a.a.createElement(Q,null,"Oder die Bilder einfach auf das Viereck per Drag and Drop ziehen")));return a.a.createElement(a.a.Fragment,null,a.a.createElement(we,{onDrop:this.onDrop},a.a.createElement(De,null,this.props.fileupload.uploadPreview.length>0?e===this.props.fileupload.uploadPreview.length?a.a.createElement(Ce,null,me.t("fileupload.uploadFinish")):a.a.createElement(Ce,null,me.t("fileupload.uploadingText")):null),a.a.createElement(Ee,null,n)),this.renderSnackBar())}}]),t}(a.a.Component))||ge)||ge,Te=function(e){function t(){return Object(c.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return a.a.createElement(Se,{id:w()})}}]),t}(a.a.Component),Ue=n(378),Re=n(379),Fe=n(380),ze=n(153),Ae=n.n(ze),Be=n(149),Le=n.n(Be),Me=n(37),Ne=n.n(Me),qe=n(150),We=n.n(qe),_e=n(152),$e=n.n(_e),He=n(151),Ve=n.n(He),Ge=n(49),Ke=n.n(Ge),Ze=n(148),Je=n.n(Ze);function Qe(){var e=Object(d.a)(["\nposition: absolute;\nz-index: 1;\nfont-size: 12px;\nbottom: 30px;\npadding: 0;\n"]);return Qe=function(){return e},e}var Ye,Xe,et,tt=Object(h.a)(Q)(Qe()),nt=function(e){function t(){return Object(c.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return a.a.createElement(Ke.a,{title:me.t("header.shoppingcartTooltip")},a.a.createElement(Ne.a,{onClick:this.props.openShoppingCartClicked,color:"inherit"},a.a.createElement(tt,null,this.props.amount),a.a.createElement(Je.a,null)))}}]),t}(a.a.Component);function rt(){var e=Object(d.a)(["\n display: flex;\n"]);return rt=function(){return e},e}function at(){var e=Object(d.a)(["\njustify-content: space-between;\n"]);return at=function(){return e},e}var ot,it=Object(h.a)(Le.a)(at()),ct=h.a.div(rt()),lt=Object(f.b)("cart")(Ye=Object(f.c)((et=Xe=function(e){function t(){var e,n;Object(c.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o0?a.a.createElement(Q,null,(this.props.party.folderSize/1e3/1e3).toFixed(2)," MB /",this.props.party.maxSize/1e3/1e3," MB"):a.a.createElement(Q,null,(this.props.party.folderSize/1e3/1e3).toFixed(2)," MB")}},{key:"render",value:function(){var e=this;return a.a.createElement(Mt,null,a.a.createElement(Wt,{onClick:function(){e.props.onClick(e.props.party.ID)}},a.a.createElement($t,null,this.renderTextCircle(),a.a.createElement(Q,null,this.props.party.name)),a.a.createElement(_t,null,this.renderPartyUsedSize(),a.a.createElement(Q,null,"|"),this.renderExpireDate())),a.a.createElement(qt,null,a.a.createElement(Ne.a,{onClick:function(){e.props.onClickDelete(e.props.party.ID)}},a.a.createElement(Nt,null))))}}]),t}(a.a.Component),Vt=n(156),Gt=n.n(Vt),Kt=n(41),Zt=n.n(Kt),Jt=n(45),Qt=n.n(Jt),Yt=n(43),Xt=n.n(Yt),en=n(44),tn=n.n(en),nn=n(42),rn=n.n(nn),an=function(e){function t(){return Object(c.a)(this,t),Object(u.a)(this,Object(s.a)(t).apply(this,arguments))}return Object(p.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){return a.a.createElement(Zt.a,{open:this.props.open},a.a.createElement(rn.a,null,me.t("allPartyInUseDialog.title")),a.a.createElement(Xt.a,null,a.a.createElement(tn.a,null,me.t("allPartyInUseDialog.description"))),a.a.createElement(Qt.a,null,a.a.createElement(ne,{onClick:this.props.closeClicked},me.t("allPartyInUseDialog.close"))))}}]),t}(a.a.Component),on=function(e){function t(){var e,n;Object(c.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;oe.height?{src:e.url,height:3,width:4}:{src:e.url,height:4,width:3}}},{key:"getImageSet",value:function(){var e=this;return this.props.images.map((function(t){return e.getImageElement(t)}))}},{key:"render",value:function(){return a.a.createElement(sr,null,a.a.createElement(ee,null,me.t("partyPage.imagePreviewTitle")),a.a.createElement(re,null,me.t("partyPage.imagePreviewSubTitle")),a.a.createElement(cr.a,{photos:this.getImageSet()}))}}]),t}(a.a.Component),dr=n(99),fr=n.n(dr),hr=n(167),br=n.n(hr);function gr(){var e=Object(d.a)(["\n&&{\n overflow-y: hidden;\n}\n\n"]);return gr=function(){return e},e}function mr(){var e=Object(d.a)(["\n &&{\n overflow-y: hidden;\n }\n"]);return mr=function(){return e},e}function yr(){var e=Object(d.a)(["\ntext-align: right;\ntext-decoration: underline;\n"]);return yr=function(){return e},e}function vr(){var e=Object(d.a)(["\n"]);return vr=function(){return e},e}var Or,jr,kr=h.a.div(vr()),Pr=h.a.div(yr()),wr=Object(h.a)(Zt.a)(mr()),Er=Object(h.a)(Xt.a)(gr()),xr=Object(f.b)("pay")(ur=Object(f.c)(ur=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(u.a)(this,Object(s.a)(t).call(this,e))).addToCartClicked=function(){var e=n.props.pay.payInfos[n.state.storageSelected].type;n.props.addToCartClicked(e),n.props.closeClicked()},n.handleStorageSelectChange=function(e,t){n.setState({storageSelected:parseInt(t.props.value,0)})},n.state={storageSelected:2},n}return Object(p.a)(t,e),Object(l.a)(t,[{key:"componentWillMount",value:function(){this.props.pay.loadPayInfo()}},{key:"renderPrice",value:function(){return a.a.createElement(Pr,null,a.a.createElement(ee,null," Preis: ",this.props.pay.payInfos[this.state.storageSelected].price.price," ",this.props.pay.payInfos[this.state.storageSelected].price.currency))}},{key:"renderContent",value:function(){if(null===this.props.pay.payInfos)return null;var e=this.props.pay.payInfos.map((function(e,t){return a.a.createElement(br.a,{key:"paytype"+t,value:t},e.humenDesc)}));return a.a.createElement(kr,null,a.a.createElement(fr.a,{value:this.state.storageSelected,onChange:this.handleStorageSelectChange},e),this.renderPrice())}},{key:"render",value:function(){return a.a.createElement(wr,{open:this.props.open},a.a.createElement(rn.a,null,me.t("partyPagePayDialog.title")),a.a.createElement(Er,null,a.a.createElement(tn.a,null,me.t("partyPagePayDialog.description")),this.renderContent()),a.a.createElement(Qt.a,null,a.a.createElement(ne,{onClick:this.addToCartClicked},me.t("partyPagePayDialog.addToCart")),a.a.createElement(ne,{onClick:this.props.closeClicked},me.t("partyPagePayDialog.cancel"))))}}]),t}(a.a.Component))||ur)||ur,Cr=Object(f.b)("cart")(Or=Object(f.c)(Or=function(e){function t(){var e,n;Object(c.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:sa;return ua.mutate({mutation:e,variables:t})}function da(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sa;return ua.query({query:e,variables:t,fetchPolicy:"network-only"})}var fa=n(38),ha=n.n(fa);function ba(){var e=Object(d.a)(["\n mutation($name: String!){\n allParty: addParty(name: $name){\n ...parties\n }\n}\n ","\n "]);return ba=function(){return e},e}function ga(){var e=Object(d.a)(["\n mutation($id: String!){\n allParty: deleteParty(id: $id){\n ...parties\n }\n}\n","\n "]);return ga=function(){return e},e}function ma(){var e=Object(d.a)(["\n mutation{\n UserInfo: SetDataProtectRead{\n ...userInfo\n }\n}\n","\n","\n "]);return ma=function(){return e},e}function ya(){var e=Object(d.a)(["\n mutation($partyID: String!, $payType: PayType!){\n payProduct(payInfo: {\n partyID: $partyID\n payType: $payType\n })\n}\n "]);return ya=function(){return e},e}function va(){var e=Object(d.a)(["\n {\n UserInfo{\n ...userInfo\n }\n}\n","\n","\n\n"]);return va=function(){return e},e}function Oa(){var e=Object(d.a)(["\n query party($id: String!){\n oneparty:party(id: $id){\n ID\n name\n images{\n url\n width\n height\n }\n }\n}\n "]);return Oa=function(){return e},e}function ja(){var e=Object(d.a)(["\n {\n cartSize\n}\n "]);return ja=function(){return e},e}function ka(){var e=Object(d.a)(["\n {\n cartUrl\n}\n "]);return ka=function(){return e},e}function Pa(){var e=Object(d.a)(["\n {\n payInfo {\n type\n humenDesc\n price {\n price\n currency\n }\n }\n}\n "]);return Pa=function(){return e},e}function wa(){var e=Object(d.a)(["\n subscription($id: String!){\n imageUploaded(partyid: $id){\n url\n width\n height\n }\n}\n "]);return wa=function(){return e},e}var Ea,xa,Ca,Da,Ia,Sa,Ta,Ua,Ra,Fa,za="\n fragment parties on Party{\n ID\n name\n folderSize\n maxSize\n expireDate\n }\n ",Aa="\n fragment userInfo on User {\n maxCountParties\n countParties\n readDataProtect{\n checked\n }\n allParty : parties{\n ...parties\n }\n }\n ",Ba={getSubscribeParty:ha()(wa())},La={payInfo:ha()(Pa()),cartURL:ha()(ka()),cartSize:ha()(ja()),getPartyById:ha()(Oa()),getAllParties:ha()(va(),Aa,za)},Ma={payProdukt:ha()(ya()),requiredDocumentsRead:ha()(ma(),Aa,za),deleteParty:ha()(ga(),za),addParty:ha()(ba(),za)},Na=(Ea=function(){function e(){Object(c.a)(this,e),Object(qr.a)(this,"userInfo",xa,this),Object(qr.a)(this,"all",Ca,this),Object(qr.a)(this,"exactParty",Da,this)}return Object(l.a)(e,[{key:"subscribeParty",value:function(e){var t=this;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sa;return ua.subscribe({variables:t,query:e})}(Ba.getSubscribeParty,{id:e}).subscribe({next:function(e){Object(_r.l)((function(){var n=t.exactParty;e.data.imageUploaded.url="".concat(x()).concat(e.data.imageUploaded.url),n.images.push(e.data.imageUploaded),t.exactParty=Object.assign({},n)}))},error:function(e){console.error("Subscribe error ",e)}})}},{key:"deleteParty",value:function(e){var t=this;pa(Ma.deleteParty,{id:e}).then((function(e){t.loadAllParties()}))}},{key:"addNewParty",value:function(e){var t=this;pa(Ma.addParty,{name:e}).then((function(e){Object(_r.l)((function(){t.loadAllParties()}))}))}},{key:"loadPartyById",value:function(e){var t=this;da(La.getPartyById,{id:e}).then((function(e){Object(_r.l)((function(){t.exactParty=e.data.oneparty,t.exactParty.images.map((function(e){return e.url="".concat(x()).concat(e.url),e}))}))}))}},{key:"loadAllParties",value:function(){var e=this;da(La.getAllParties).then((function(t){Object(_r.l)((function(){e.all=t.data.UserInfo.allParty,e.userInfo=t.data.UserInfo}))}))}},{key:"setRequiredDocumentsRead",value:function(){var e=this;pa(Ma.requiredDocumentsRead).then((function(t){Object(_r.l)((function(){e.all=t.data.UserInfo.allParty,e.userInfo=t.data.UserInfo}))}))}}]),e}(),xa=Object(Wr.a)(Ea.prototype,"userInfo",[_r.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ca=Object(Wr.a)(Ea.prototype,"all",[_r.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Da=Object(Wr.a)(Ea.prototype,"exactParty",[_r.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(Wr.a)(Ea.prototype,"subscribeParty",[_r.d],Object.getOwnPropertyDescriptor(Ea.prototype,"subscribeParty"),Ea.prototype),Object(Wr.a)(Ea.prototype,"deleteParty",[_r.d],Object.getOwnPropertyDescriptor(Ea.prototype,"deleteParty"),Ea.prototype),Object(Wr.a)(Ea.prototype,"addNewParty",[_r.d],Object.getOwnPropertyDescriptor(Ea.prototype,"addNewParty"),Ea.prototype),Object(Wr.a)(Ea.prototype,"loadPartyById",[_r.d],Object.getOwnPropertyDescriptor(Ea.prototype,"loadPartyById"),Ea.prototype),Object(Wr.a)(Ea.prototype,"loadAllParties",[_r.d],Object.getOwnPropertyDescriptor(Ea.prototype,"loadAllParties"),Ea.prototype),Object(Wr.a)(Ea.prototype,"setRequiredDocumentsRead",[_r.d],Object.getOwnPropertyDescriptor(Ea.prototype,"setRequiredDocumentsRead"),Ea.prototype),Ea),qa=(Ia=function(){function e(){Object(c.a)(this,e),Object(qr.a)(this,"payInfos",Sa,this)}return Object(l.a)(e,[{key:"loadPayInfo",value:function(){var e=this;da(La.payInfo).then((function(t){e.payInfos=t.data.payInfo}))}}]),e}(),Sa=Object(Wr.a)(Ia.prototype,"payInfos",[_r.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(Wr.a)(Ia.prototype,"loadPayInfo",[_r.d],Object.getOwnPropertyDescriptor(Ia.prototype,"loadPayInfo"),Ia.prototype),Ia);!function(e){e.PartySpace1="PartySpace1",e.PartySpace2="PartySpace2",e.PartySpace3="PartySpace3"}(Fa||(Fa={}));var Wa=(Ta=function(){function e(){Object(c.a)(this,e),Object(qr.a)(this,"size",Ua,this),Object(qr.a)(this,"productAddedToCart",Ra,this),this.loadCartSize()}return Object(l.a)(e,[{key:"resetProductAddedToCart",value:function(){this.productAddedToCart=!1}},{key:"getPaymentRedirectUrl",value:function(){return da(La.cartURL).then((function(e){return e.data.cartUrl}))}},{key:"payProduct",value:function(e){var t=this;pa(Ma.payProdukt,e).then((function(e){e.data.payProduct&&Object(_r.l)((function(){t.productAddedToCart=!0}))}))}},{key:"loadCartSize",value:function(){var e=this;da(La.cartSize).then((function(t){Object(_r.l)((function(){e.size=t.data.cartSize}))}))}}]),e}(),Ua=Object(Wr.a)(Ta.prototype,"size",[_r.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ra=Object(Wr.a)(Ta.prototype,"productAddedToCart",[_r.k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(Wr.a)(Ta.prototype,"resetProductAddedToCart",[_r.d],Object.getOwnPropertyDescriptor(Ta.prototype,"resetProductAddedToCart"),Ta.prototype),Object(Wr.a)(Ta.prototype,"getPaymentRedirectUrl",[_r.d],Object.getOwnPropertyDescriptor(Ta.prototype,"getPaymentRedirectUrl"),Ta.prototype),Object(Wr.a)(Ta.prototype,"payProduct",[_r.d],Object.getOwnPropertyDescriptor(Ta.prototype,"payProduct"),Ta.prototype),Object(Wr.a)(Ta.prototype,"loadCartSize",[_r.d],Object.getOwnPropertyDescriptor(Ta.prototype,"loadCartSize"),Ta.prototype),Ta),_a={slide:new Vr,fileupload:new Gr,login:new Kr,user:new Jr,party:new Na,pay:new qa,cart:new Wa};i.a.render(a.a.createElement(f.a,_a,a.a.createElement(Tr,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},[[180,1,2]]]); //# sourceMappingURL=main.b2b54021.chunk.js.map