-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.d1c4d5ad.chunk.b77c0babd362.js
2 lines (2 loc) · 113 KB
/
main.d1c4d5ad.chunk.b77c0babd362.js
1
2
(this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[0],{108:function(e,t,a){},153:function(e){e.exports=JSON.parse('{"v":"5.5.9","fr":29.9700012207031,"ip":0,"op":173.000007046434,"w":375,"h":96,"nm":"loading(final)","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"R 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[187,48,0],"ix":2},"a":{"a":0,"k":[12.967,2.967,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":2,"ty":"el","s":{"a":0,"k":[64,64],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.749019607843,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[12.967,2.967],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[36]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18.679,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.415,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":45,"s":[36]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56,"s":[36]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":74.679,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":87.415,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":101,"s":[36]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":113,"s":[36]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":131.679,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":144.415,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":158,"s":[36]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":169,"s":[36]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":182.23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":187.679,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":195.1,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":200.415,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":205,"s":[36]},{"t":214.000008716399,"s":[36]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[40]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18.679,"s":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":31.415,"s":[72.511]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":45,"s":[40]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":56,"s":[40]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":74.679,"s":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":87.415,"s":[72.511]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":101,"s":[40]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":113,"s":[40]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":131.679,"s":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":144.415,"s":[72.511]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":158,"s":[40]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":169,"s":[40]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":182.23,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":187.679,"s":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":195.1,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":200.415,"s":[72.511]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":205,"s":[0]},{"t":214.000008716399,"s":[40]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":172.000007005704,"s":[2160]}],"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"R 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[187,48,0],"ix":2},"a":{"a":0,"k":[12.967,2.967,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":2,"ty":"el","s":{"a":0,"k":[64,64],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.641237735748,0.641237735748,0.641237735748,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[12.967,2.967],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":30,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":180.00000733155,"st":0,"bm":0}],"markers":[]}')},154:function(e){e.exports=JSON.parse('{"v":"4.6.3","fr":24,"ip":0,"op":21,"w":320,"h":320,"nm":"checklist","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 13","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":300},"p":{"a":0,"k":[160,159.5,0]},"a":{"a":0,"k":[0,-34,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p667_1_0p167_0p167","0p667_1_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":17}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.7921569,0.4470588,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"n":"0p667_1_0p167_0p167","t":6,"s":[-8.142,-92.147],"e":[-7.675,-162.544],"to":[0.07779947668314,-11.7327470779419],"ti":[-0.07779947668314,11.7327470779419]},{"t":17}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[83.981,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"n":["0p667_1_0p167_0p167"],"t":6,"s":[20.367],"e":[6.367]},{"t":17}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":21}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.9070925,0.5119235,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":6,"s":[16.585,-99.759],"e":[28.521,-187.495],"to":[1.9892578125,-14.6227216720581],"ti":[-1.9892578125,14.6227216720581]},{"t":21}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[97.419,116],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":6,"s":[14.733],"e":[8.733]},{"t":21}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 12","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":250},"p":{"a":0,"k":[160,159.5,0]},"a":{"a":0,"k":[0,-34,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p667_1_0p167_0p167","0p667_1_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":17}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.7921569,0.4470588,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"n":"0p667_1_0p167_0p167","t":6,"s":[-8.142,-92.147],"e":[-7.675,-162.544],"to":[0.07779947668314,-11.7327470779419],"ti":[-0.07779947668314,11.7327470779419]},{"t":17}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[83.981,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"n":["0p667_1_0p167_0p167"],"t":6,"s":[20.367],"e":[6.367]},{"t":17}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":21}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.9070925,0.5119235,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":6,"s":[16.585,-99.759],"e":[28.521,-187.495],"to":[1.9892578125,-14.6227216720581],"ti":[-1.9892578125,14.6227216720581]},{"t":21}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[97.419,116],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":6,"s":[14.733],"e":[8.733]},{"t":21}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 11","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":200},"p":{"a":0,"k":[160,159.5,0]},"a":{"a":0,"k":[0,-34,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p667_1_0p167_0p167","0p667_1_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":17}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.7921569,0.4470588,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"n":"0p667_1_0p167_0p167","t":6,"s":[-8.142,-92.147],"e":[-7.675,-162.544],"to":[0.07779947668314,-11.7327470779419],"ti":[-0.07779947668314,11.7327470779419]},{"t":17}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[83.981,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"n":["0p667_1_0p167_0p167"],"t":6,"s":[20.367],"e":[6.367]},{"t":17}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":21}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.9070925,0.5119235,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":6,"s":[16.585,-99.759],"e":[28.521,-187.495],"to":[1.9892578125,-14.6227216720581],"ti":[-1.9892578125,14.6227216720581]},{"t":21}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[97.419,116],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":6,"s":[14.733],"e":[8.733]},{"t":21}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":5,"ty":4,"nm":"Shape Layer 10","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":150},"p":{"a":0,"k":[160,159.5,0]},"a":{"a":0,"k":[0,-34,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p667_1_0p167_0p167","0p667_1_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":17}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.7921569,0.4470588,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"n":"0p667_1_0p167_0p167","t":6,"s":[-8.142,-92.147],"e":[-7.675,-162.544],"to":[0.07779947668314,-11.7327470779419],"ti":[-0.07779947668314,11.7327470779419]},{"t":17}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[83.981,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"n":["0p667_1_0p167_0p167"],"t":6,"s":[20.367],"e":[6.367]},{"t":17}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":21}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.9070925,0.5119235,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":6,"s":[16.585,-99.759],"e":[28.521,-187.495],"to":[1.9892578125,-14.6227216720581],"ti":[-1.9892578125,14.6227216720581]},{"t":21}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[97.419,116],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":6,"s":[14.733],"e":[8.733]},{"t":21}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":6,"ty":4,"nm":"Shape Layer 9","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":100},"p":{"a":0,"k":[160,159.5,0]},"a":{"a":0,"k":[0,-34,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p667_1_0p167_0p167","0p667_1_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":17}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.7921569,0.4470588,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"n":"0p667_1_0p167_0p167","t":6,"s":[-8.142,-92.147],"e":[-7.675,-162.544],"to":[0.07779947668314,-11.7327470779419],"ti":[-0.07779947668314,11.7327470779419]},{"t":17}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[83.981,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"n":["0p667_1_0p167_0p167"],"t":6,"s":[20.367],"e":[6.367]},{"t":17}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":21}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.9070925,0.5119235,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":6,"s":[16.585,-99.759],"e":[28.521,-187.495],"to":[1.9892578125,-14.6227216720581],"ti":[-1.9892578125,14.6227216720581]},{"t":21}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[97.419,116],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":6,"s":[14.733],"e":[8.733]},{"t":21}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":7,"ty":4,"nm":"Shape Layer 8","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":50},"p":{"a":0,"k":[160,159.5,0]},"a":{"a":0,"k":[0,-34,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p667_1_0p167_0p167","0p667_1_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":17}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.7921569,0.4470588,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"n":"0p667_1_0p167_0p167","t":6,"s":[-8.142,-92.147],"e":[-7.675,-162.544],"to":[0.07779947668314,-11.7327470779419],"ti":[-0.07779947668314,11.7327470779419]},{"t":17}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[83.981,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"n":["0p667_1_0p167_0p167"],"t":6,"s":[20.367],"e":[6.367]},{"t":17}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":21}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.9070925,0.5119235,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":6,"s":[16.585,-99.759],"e":[28.521,-187.495],"to":[1.9892578125,-14.6227216720581],"ti":[-1.9892578125,14.6227216720581]},{"t":21}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[97.419,116],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":6,"s":[14.733],"e":[8.733]},{"t":21}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":8,"ty":4,"nm":"Shape Layer 7","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[160,159.5,0]},"a":{"a":0,"k":[0,-34,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.667,0.667],"y":[1,1]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p667_1_0p167_0p167","0p667_1_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":17}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.7921569,0.4470588,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"n":"0p667_1_0p167_0p167","t":6,"s":[-8.142,-92.147],"e":[-7.675,-162.544],"to":[0.07779947668314,-11.7327470779419],"ti":[-0.07779947668314,11.7327470779419]},{"t":17}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[83.981,100],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"n":["0p667_1_0p167_0p167"],"t":6,"s":[20.367],"e":[6.367]},{"t":17}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"n":["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],"t":6,"s":[15.021,15.021],"e":[0,0]},{"t":21}]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[0.0823529,0.6784314,0.3843137,1],"e":[0,0.9070925,0.5119235,1]},{"t":17}]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":6,"s":[16.585,-99.759],"e":[28.521,-187.495],"to":[1.9892578125,-14.6227216720581],"ti":[-1.9892578125,14.6227216720581]},{"t":21}],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[97.419,116],"ix":3},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"n":["0p833_0p833_0p167_0p167"],"t":6,"s":[14.733],"e":[8.733]},{"t":21}],"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":9,"ty":4,"nm":"Shape Layer 5","parent":11,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":-44},"p":{"a":0,"k":[0.378,-0.641,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[7.39,7.39,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0]],"o":[[0,0]],"v":[[-274.219,-254.097]],"c":false}},"nm":"Path 1","mn":"ADBE Vector Shape - Group"},{"ty":"st","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":8},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-17,-16],[-17,10.5],[41,10.5]],"c":false}},"nm":"Path 1","mn":"ADBE Vector Shape - Group"},{"ty":"st","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":8},"lc":2,"lj":1,"ml":5,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"ix":2,"mn":"ADBE Vector Group"}],"ip":7,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":10,"ty":4,"nm":"Shape Layer 6","ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":4,"s":[50],"e":[0]},{"t":14}]},"r":{"a":0,"k":0},"p":{"a":0,"k":[160,160,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,0.667]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_0p667_0p333_0p333"],"t":4,"s":[100,100,100],"e":[1085,1085,100]},{"t":14}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[19.779,19.779]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":0,"k":[0,0.7921569,0.4470588,1]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[-0.068,0.036],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"}],"ip":4,"op":22,"st":-23,"bm":0,"sr":1},{"ddd":0,"ind":11,"ty":4,"nm":"Shape Layer 4","ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":6,"s":[30],"e":[100]},{"t":9}]},"r":{"a":0,"k":0},"p":{"a":0,"k":[160.312,161.188,0]},"a":{"a":0,"k":[0.812,-0.562,0]},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,0.667]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_0p667_0p333_0p333"],"t":6,"s":[100,100,100],"e":[1087,1087,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,0.667]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_0p667_0p333_0p333"],"t":11,"s":[1087,1087,100],"e":[866,866,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p833_0p833_0p333_0","0p833_0p833_0p333_0","0p833_0p833_0p333_0p333"],"t":13,"s":[866,866,100],"e":[878,878,100]},{"t":16}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[10.068,10.068]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"fl","c":{"a":0,"k":[0,0.7921569,0.4470588,1]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[0.784,-0.716],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"}],"ip":6,"op":22,"st":-19,"bm":0,"sr":1},{"ddd":0,"ind":12,"ty":4,"nm":"Shape Layer 3","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[161,160,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,0.667]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_0p667_0p333_0p333"],"t":3,"s":[100,100,100],"e":[224,224,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,0.667]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0.333]},"n":["0p667_1_0p333_0","0p667_1_0p333_0","0p667_0p667_0p333_0p333"],"t":4,"s":[224,224,100],"e":[476,476,100]},{"t":8}]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.009,6.009]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":4,"s":[0.0558609,0.688557,0.3778246,1],"e":[0.1089485,0.6693168,0.3941063,1]},{"t":8}]},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":4,"s":[0],"e":[100]},{"t":5}]},"w":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":4,"s":[3],"e":[0]},{"t":8}]},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"a":0,"k":[0,0.7921569,0.4470588,1]},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":3,"s":[100],"e":[99]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"n":["0p667_1_0p333_0"],"t":4,"s":[99],"e":[0]},{"t":5}]},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[-0.338,0.065],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[649.112,649.112],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"}],"ip":3,"op":22,"st":-21,"bm":0,"sr":1},{"ddd":0,"ind":13,"ty":4,"nm":"Shape Layer 2","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[160.142,159.987,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[377.603,377.603,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[22.315,22.315]},"p":{"a":0,"k":[0,0]},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse"},{"ty":"st","c":{"a":0,"k":[0.8352941,0.8352941,0.8352941,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1},"lc":1,"lj":1,"ml":4,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke"},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill"},{"ty":"tr","p":{"a":0,"k":[-0.038,0.003],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"ix":1,"mn":"ADBE Vector Group"}],"ip":-21,"op":22,"st":-21,"bm":0,"sr":1}]}')},156:function(e,t,a){e.exports=a(316)},162:function(e,t,a){},163:function(e,t,a){},164:function(e,t,a){},165:function(e,t,a){},167:function(e,t,a){},231:function(e,t,a){},263:function(e,t,a){},264:function(e,t,a){},265:function(e,t,a){},316:function(e,t,a){"use strict";a.r(t);var n,s=a(0),o=a.n(s),i=a(21),r=a.n(i),l=(a(161),a(13)),c=a(14),m=a(16),p=a(15),h=a(17),d=(a(162),a(163),a(164),a(155)),u=(a(165),a(335)),g=a(321),f=a(322),y=a(323);!function(e){e[e.CHANGE_THEME=0]="CHANGE_THEME",e[e.CHANGE_COLOR=1]="CHANGE_COLOR",e[e.SUCCESS_LOGIN=2]="SUCCESS_LOGIN",e[e.SUCCESS_REGISTER=3]="SUCCESS_REGISTER",e[e.SUCCESS_LOGOUT=4]="SUCCESS_LOGOUT",e[e.ERROR=5]="ERROR",e[e.ERROR_LOGIN=6]="ERROR_LOGIN",e[e.ERROR_REGISTER=7]="ERROR_REGISTER",e[e.ERROR_TIMEOUT=8]="ERROR_TIMEOUT",e[e.RESET=9]="RESET",e[e.SNEAKY_PASSWORD=10]="SNEAKY_PASSWORD",e[e.SAVE_PERSON=11]="SAVE_PERSON",e[e.SAVE_RELATIONSHIP=12]="SAVE_RELATIONSHIP",e[e.SAVE_COORDS=13]="SAVE_COORDS",e[e.SAVE_MILESTONE=14]="SAVE_MILESTONE",e[e.SAVING=15]="SAVING",e[e.ADD_PERSON=16]="ADD_PERSON",e[e.ADD_RELATIONSHIP=17]="ADD_RELATIONSHIP",e[e.ADD_MILESTONE=18]="ADD_MILESTONE",e[e.DELETE=19]="Usuń",e[e.DELETE_PERSON=20]="DELETE_PERSON",e[e.DELETE_RELATIONSHIP=21]="DELETE_RELATIONSHIP",e[e.DELETE_MILESTONE=22]="DELETE_MILESTONE"}(n||(n={}));var E=a(10);a(166),a(167);var _=function(e,t){switch(e){case n.CHANGE_THEME:Object(E.b)("Theme has been changed and saved.",{className:"custom-toast info "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.CHANGE_COLOR:Object(E.b)("Color has been changed and saved.",{className:"custom-toast info "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SUCCESS_LOGIN:Object(E.b)("You logged in. Have a nice use!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SUCCESS_REGISTER:Object(E.b)("You registered a new account and will be redirected to login page. Log in to use this website!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SUCCESS_LOGOUT:Object(E.b)("You logged out, have a nice day!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.ERROR:Object(E.b)("Something went wrong! Refresh page or try again later! If it doesn't help, contact administrator.",{className:"custom-toast error "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.ERROR_LOGIN:Object(E.b)("Incorrect username and/or password!",{className:"custom-toast error "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.ERROR_REGISTER:Object(E.b)("This username is already taken!",{className:"custom-toast error "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.ERROR_TIMEOUT:Object(E.b)("Your session has expired. Please, log in!",{className:"custom-toast error "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.RESET:Object(E.b)("The position of all persons has been set to the initial values!",{className:"custom-toast info "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SNEAKY_PASSWORD:Object(E.b)("Don't you try to fool us by deleting 'disabled' attribute from Submit button! You wanted to outsmart us, we outsmarted you!",{className:"custom-toast error "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SAVE_PERSON:Object(E.b)("New data of the person has been saved!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SAVE_RELATIONSHIP:Object(E.b)("New data of the relationship has been saved!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SAVE_COORDS:Object(E.b)("New coords have been saved!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SAVE_MILESTONE:Object(E.b)("New milestone have been saved!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.SAVING:Object(E.b)("Saving coordinates... Do not leave the page until the saving process is finished!",{className:"custom-toast info "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.ADD_PERSON:Object(E.b)("New person has been added, it should be at the top-left corner of the page!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.ADD_RELATIONSHIP:Object(E.b)("New relationship has been added, it should be visible. If not, try to move something around!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.ADD_MILESTONE:Object(E.b)("New milestone has been added, it should be visible. If not, try to reopen Edit Person modal!",{className:"custom-toast success "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.DELETE:Object(E.b)("Everything has been deleted! Now you can start from scratch.",{className:"custom-toast warn "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.DELETE_PERSON:Object(E.b)("Person has been deleted!",{className:"custom-toast warn "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.DELETE_RELATIONSHIP:Object(E.b)("Relationship has been deleted!",{className:"custom-toast warn "+t,bodyClassName:"body",progressClassName:"progress"});break;case n.DELETE_MILESTONE:Object(E.b)("Milestone has been deleted!",{className:"custom-toast warn "+t,bodyClassName:"body",progressClassName:"progress"});break;default:Object(E.b)("Why is it empty? Contact administrator, please.",{className:"custom-toast error "+t,bodyClassName:"body",progressClassName:"progress"})}};var x=function(e){var t=Object(s.useState)(!1),a=Object(d.a)(t,2),i=a[0],r=a[1],l=[["#FFD14D","#FEBA04"],["#FFAD00","#B97E00"],["#CF6679","#B75463"],["#BB86FC","#994AF1"],["#B8FF61","#9BF900"],["#637FFF","#0045EF"],["#63FFF9","#00F7F7"],["#00FFAE","#00F586"]],c=[["#804000","#95BA23"],["#6B4900","#755305"],["#723C47","#834852"],["#005200","#29811F"],["#1F1F1F","#393939"],["#5F389C","#7C59AF"],["#A30000","#BF1C16"],["#0013E9","#361DF1"]];function m(t){var a,n,s,o;return"dark"===e.theme?(a=l.findIndex((function(e){return e[0]===t})),s=l[(a+5)%l.length][0],o=l[(a+5)%l.length][1],n=l[a][1]):(a=c.findIndex((function(e){return e[0]===t})),s=c[(a+c.length-1)%c.length][0],o=c[(a+c.length-1)%c.length][1],n=c[a][1]),{colorHover:n,secondColor:s,secondColorHover:o}}function p(t){var a=m(t),s=a.colorHover,o=a.secondColor,i=a.secondColorHover;[["--main-primary-"+e.theme,t],["--main-primary-hover-"+e.theme,s],["--main-secondary-"+e.theme,o],["--main-secondary-hover-"+e.theme,i]].map((function(e){localStorage.setItem(e[0],e[1])})),_(n.CHANGE_COLOR,e.theme)}function h(){var t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=m(a=null!==(t=a)&&void 0!==t?t:localStorage.getItem("--main-primary-"+e.theme)),s=n.colorHover,o=n.secondColor,i=n.secondColorHover;document.documentElement.style.setProperty("--main-primary-"+e.theme,a),document.documentElement.style.setProperty("--main-primary-hover-"+e.theme,s),document.documentElement.style.setProperty("--main-secondary-"+e.theme,o),document.documentElement.style.setProperty("--main-secondary-hover-"+e.theme,i)}var E=o.a.createElement(u.a,{isOpen:i,toggle:function(){return r(!i)},className:"color-picker "+e.theme},o.a.createElement(g.a,null,o.a.createElement("i",{className:"fas fa-brush"})),o.a.createElement(f.a,{onMouseLeave:function(){return h()}},"dark"===e.theme?l.map((function(e){return o.a.createElement(y.a,{key:e[0],hidden:e[0]===localStorage.getItem("--main-primary-dark"),style:{backgroundColor:e[0]},onClick:function(){return p(e[0])},onMouseEnter:function(){return h(e[0])}})})):c.map((function(e){return o.a.createElement(y.a,{key:e[0],hidden:e[0]===localStorage.getItem("--main-primary-light"),style:{backgroundColor:e[0]},onClick:function(){return p(e[0])},onMouseEnter:function(){return h(e[0])}})})))),x=o.a.createElement("div",{className:"nav_buttons"},E,o.a.createElement("button",{onClick:e.changeThemeMode,className:"btn my-2 my-sm-0 nav_button "+e.theme},o.a.createElement("i",{className:"dark"===e.theme?"fas fa-sun":"fa fa-moon"})),o.a.createElement("button",{onClick:function(){return e.display_form("signup")},className:"btn my-2 my-sm-0 nav_button "+e.theme},o.a.createElement("i",{className:"fas fa-user-plus"})),o.a.createElement("button",{onClick:function(){return e.display_form("login")},className:"btn my-2 my-sm-0 nav_button "+e.theme},o.a.createElement("i",{className:"fas fa-sign-in-alt"}))),b=o.a.createElement("div",{className:"nav_buttons"},o.a.createElement("button",{onClick:function(){return"#"},className:"btn my-2 my-sm-0 nav_button "+e.theme},o.a.createElement("span",{className:"username"},e.username,"\xa0")," ",o.a.createElement("i",{className:"far fa-user"})),E,o.a.createElement("button",{onClick:e.changeThemeMode,className:"btn my-2 my-sm-0 nav_button "+e.theme},o.a.createElement("i",{className:"dark"===e.theme?"fas fa-sun":"fa fa-moon"})),o.a.createElement("button",{onClick:function(){return e.handle_logout("logout")},className:"btn my-2 my-sm-0 nav_button "+e.theme},o.a.createElement("i",{className:"fas fa-sign-out-alt"})));return o.a.createElement("nav",{className:"navbar sticky-top navbar-"+e.theme,id:"nav"},o.a.createElement("div",{className:"logo "+e.theme},o.a.createElement("div",{className:"logo-img"}),o.a.createElement("a",{id:"name",className:"navbar-brand",href:"#"},"Familytree")),e.logged_in?b:x)},b=a(18),v=(a(108),function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return(a=Object(m.a)(this,(e=Object(p.a)(t)).call.apply(e,[this].concat(s)))).state={username:"",password:""},a.handle_change=function(e){var t=e.target.name,n=e.target.value;a.setState((function(e){var a=Object(b.a)({},e);return a[t]=n,a}))},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"login-"+this.props.theme},o.a.createElement("form",{method:"post",onSubmit:function(t){return e.props.handle_login(t,e.state)}},o.a.createElement("h2",{className:"sr-only"},"Login Form"),o.a.createElement("div",{className:"illustration"},o.a.createElement("i",{className:"far fa-user"})),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{className:"form-control "+this.props.theme,type:"text",name:"username",placeholder:"Username",value:this.state.username.toLowerCase(),onChange:this.handle_change,required:!0,autoFocus:!0})),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{className:"form-control",type:"password",name:"password",placeholder:"Password","data-testid":"password",value:this.state.password,onChange:this.handle_change,required:!0})),o.a.createElement("div",{className:"form-group"},o.a.createElement("button",{className:"btn btn-primary btn-block",type:"submit"},"Log In"))))}}]),t}(o.a.Component)),k=a(11),S=function(e){function t(){var e,a;Object(l.a)(this,t);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return(a=Object(m.a)(this,(e=Object(p.a)(t)).call.apply(e,[this].concat(s)))).state={username:"",password:""},a.handle_change=function(e){var t=e.target,n=t.name,s=t.value;"username"===n&&(s=s.toLowerCase()),a.setState(Object(k.a)({},n,s))},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"validate",value:function(e,t){return{username:0===e.trim().length,password_number:0===t.trim().length||!/\d/.test(t),password_uppercase:0===t.trim().length||!/[A-Z]/.test(t),password_lowercase:0===t.trim().length||!/[a-z]/.test(t),password_nonalpha:0===t.trim().length||!/[^\w\d\s:]/.test(t),password_length:0===t.trim().length||!/([^\s]){8,}/.test(t)}}},{key:"render",value:function(){var e=this,t=this.validate(this.state.username,this.state.password),a=!Object.keys(t).some((function(e){return t[e]}));return o.a.createElement("div",{className:"signup-"+this.props.theme},o.a.createElement("form",{method:"post",onSubmit:function(t){return e.props.handle_signup(t,e.state)}},o.a.createElement("h2",{className:"sr-only"},"Register Form"),o.a.createElement("div",{className:"illustration"},o.a.createElement("i",{className:"far fa-user"})),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{className:"form-control "+this.props.theme+(t.username?" error":""),type:"text",name:"username",placeholder:"Username",value:this.state.username,onChange:this.handle_change,required:!0,autoFocus:!0})),o.a.createElement("div",{className:"form-group"},o.a.createElement("input",{className:"form-control"+(t.password_number||t.password_uppercase||t.password_lowercase||t.password_nonalpha||t.password_length?" error":""),type:"password",name:"password",placeholder:"Password",value:this.state.password,onChange:this.handle_change,required:!0})),o.a.createElement("div",{className:"form-group password-req "+this.props.theme},o.a.createElement("ul",null,o.a.createElement("span",{className:(t.password_number||t.password_uppercase||t.password_lowercase||t.password_nonalpha||t.password_length?"errortext ":"")+this.props.theme},"Password must contain at least:"),o.a.createElement("li",{className:(t.password_number?"errortext ":" ")+this.props.theme}," 1 number (0-9) "),o.a.createElement("li",{className:(t.password_uppercase?"errortext ":" ")+this.props.theme}," 1 uppercase letters "),o.a.createElement("li",{className:(t.password_lowercase?"errortext ":" ")+this.props.theme}," 1 lowercase letters "),o.a.createElement("li",{className:(t.password_nonalpha?"errortext ":" ")+this.props.theme}," 1 non-alpha numeric number "),o.a.createElement("li",{className:(t.password_length?"errortext ":" ")+this.props.theme}," 8 characters with no space "))),o.a.createElement("div",{className:"form-group"},o.a.createElement("button",{disabled:!a,className:"btn btn-primary btn-block",type:"submit"},"Register"))))}}]),t}(o.a.Component),N=a(32),C=a(30),w=a(9),O=a.n(w),D=a(146),I=a.n(D),R=a(33),M=a.n(R),T=a(147),A=a.n(T),j=(a(60),a(231),a(45),a(232),a(148)),P=a.n(j),L=a(149),F=a.n(L),B=a(26),V=a.n(B),G=a(54),z=a(334),W=a(324),Y=a(325),U=a(326),H=a(327),J=a(328),q=a(329),K=a(330),Z=a(145),X=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).handleChange=function(e){var t=e.target,n=t.name,s=t.value,o=Object(b.a)({},a.state.activeItem,Object(k.a)({},n,s));a.setState({activeItem:o})},a.handleChangeDate=function(e){var t;try{t=V()(e).format("YYYY-MM-DD")}catch(s){t=""}var n=Object(b.a)({},a.state.activeItem,Object(k.a)({},"date",t));a.setState({activeItem:n})},a.handleChangeFile=function(e){var t="Drag 'n' drop file here, or click to select file";null!==e&&(t=e.name);var n=Object(b.a)({},a.state.activeItem,Object(k.a)({},"image",e));a.setState({activeItem:n,fileMessage:t})},a.handleChangeSelect=function(e){var t=Object(b.a)({},a.state.activeItem,Object(k.a)({},"person_id",e.filter((function(e){return void 0!==e}))));a.setState({activeItem:t})},a.state={activeItem:a.props.activeItem,personSelectOptions:[],fileMessage:"Drag 'n' drop file here, or click to select file"},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=[];O.a.get("/api/familytreepersons/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(a){Array.from(a.data).map((function(e){t.push({label:e.first_name+" "+e.last_name,value:e.id})})),e.setState({personSelectOptions:t})})).catch((function(t){console.log(t),_(n.ERROR,e.props.theme)}))}},{key:"validate",value:function(e){var t=!1;if(null!==e.image&&void 0!==e.image&&void 0!==e.image.name){var a=!1;[".jpg",".jpeg",".png",".gif",".bmp",".svg",".raw",".mp4",".webm",".wmv",".avi",".wav",".mp3"].map((function(t){t===e.image.name.substring(e.image.name.lastIndexOf("."))&&(a=!0)})),a||(t=!0)}try{e.person_id=e.person_id.filter((function(e){return void 0!==e}))}catch(n){e.person_id=[]}return{title:0===e.title.trim().length,title_too_long:e.title.trim().length>64,text:e.text.trim().length>512,date:0===e.date.toString().trim().length||!V()(e.date.toString(),"YYYY-MM-DD").isValid(),person_id:0===e.person_id.length,file_extension:t,file:(null===e.image||void 0===e.image)&&void 0===e.id}}},{key:"render",value:function(){var e=this,t=this.props,a=t.toggle,n=t.onSave,s=this.validate(this.state.activeItem),i=!Object.keys(s).some((function(e){return s[e]}));return o.a.createElement(z.a,{className:"modal-open-"+this.props.theme,isOpen:!0,toggle:a},o.a.createElement(W.a,{className:"modal-header-"+this.props.theme,toggle:a}," Milestone "),o.a.createElement(Y.a,{className:"modal-body-"+this.props.theme},o.a.createElement(U.a,null,o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"title"},"Title"),o.a.createElement(q.a,{type:"text",name:"title",className:this.props.theme+(s.title||s.title_too_long?" error":""),value:this.state.activeItem.title,onChange:this.handleChange,placeholder:"Title"}),s.title?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please insert title"):null,s.title_too_long?o.a.createElement("small",{className:"errortext "+this.props.theme},"This title is too long, max length is 64"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"text"},"Text"),o.a.createElement(q.a,{type:"text",name:"text",className:"form-control "+this.props.theme+(s.text?" error":""),value:this.state.activeItem.text,onChange:this.handleChange,placeholder:"Text"}),s.text?o.a.createElement("small",{className:"errortext "+this.props.theme},"This text is too long, max length is 512"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"date"},"Date"),o.a.createElement("br",null),o.a.createElement(M.a,{name:"date",className:"form-control "+this.props.theme+(s.date?" error":""),value:this.state.activeItem.date,onChange:this.handleChangeDate,peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select"}),s.date?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please choose date"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"person_id"},"Persons ",s.person_id?"":null),o.a.createElement("br",null),o.a.createElement(F.a,{name:"multiselect",options:this.state.personSelectOptions,className:"form-control "+this.props.theme+(s.person_id&&void 0===this.state.activeItem.id?" error":""),selected:this.state.activeItem.person_id,onSelectedChanged:this.handleChangeSelect}),s.person_id?o.a.createElement("small",{className:"errortext "+this.props.theme}," Please, choose at least one person from the list"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"imageUrl"},"Image/Movie"),o.a.createElement(G.a,{onDrop:function(t){return e.handleChangeFile(t[0])},onFileDialogCancel:function(){return e.handleChangeFile(null)},multiple:!1},(function(t){var a=t.getRootProps,n=t.getInputProps;return o.a.createElement("section",null,o.a.createElement("div",Object.assign({},a(),{className:"dropzone "+e.props.theme+(s.file||s.file_extension?" error":"")}),o.a.createElement("input",n()),o.a.createElement("p",null,e.state.fileMessage)))})),s.file?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please upload Media File",o.a.createElement("br",null)):null,s.file_extension?o.a.createElement("small",{className:"errortext "+this.props.theme},"This File has unsupported extension. Supported extensions: ",o.a.createElement("b",null,"JPG, PNG, GIF, BMP, SVG, RAW, MP4, WEBM, WMV, AVI, WAV, MP3")):null))),o.a.createElement(K.a,{className:"modal-footer-"+this.props.theme},o.a.createElement(Z.a,{disabled:!i,className:"confirm",onClick:function(){return n(e.state.activeItem)}},"Zapisz")))}}]),t}(s.Component),$=a(331),Q=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).refreshPersonList=function(){O.a.get("/api/familytreepersons/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(e){return a.setState({personList:e.data})})).catch((function(e){console.log(e),_(n.ERROR)}))},a.handleChange=function(e){var t=e.target,n=t.name,s=t.value,o=Object(b.a)({},a.state.activeItem,Object(k.a)({},n,s));a.setState({activeItem:o},(function(){return"relationships"===n?a.handleChangeDescendant(s):null}))},a.handleChangeDescendant=function(e){var t=Object(b.a)({},a.state.activeItem,Object(k.a)({},"descendant",!1));-1!==["niece/nephew","child","adopted child"].indexOf(e)&&(t=Object(b.a)({},a.state.activeItem,Object(k.a)({},"descendant",!0))),a.setState({activeItem:t})},a.handleBlur=function(e){return function(t){a.setState({touched:Object(b.a)({},a.state.touched,Object(k.a)({},e,!0))})}},a.handleChangeBeginDate=function(e){var t;try{t=V()(e).format("YYYY-MM-DD")}catch(s){t=""}var n=Object(b.a)({},a.state.activeItem,Object(k.a)({},"begin_date",t));a.setState({activeItem:n})},a.handleChangeEndDate=function(e){var t;try{t=V()(e).format("YYYY-MM-DD")}catch(s){t=""}var n=Object(b.a)({},a.state.activeItem,Object(k.a)({},"end_date",t));a.setState({activeItem:n})},a.state={activeItem:a.props.activeItem,touched:{title:!1,begin_date:!1,end_date:!1},personList:[]},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"componentWillMount",value:function(){this.refreshPersonList()}},{key:"componentDidMount",value:function(){if(""===this.state.activeItem.color){var e=Object(b.a)({},this.state.activeItem,Object(k.a)({},"color",this.genColor()));this.setState({activeItem:e})}}},{key:"getPerson",value:function(e){if(0===this.state.personList.length||void 0===this.state.personList.length)return"";var t=Array.from(this.state.personList).find((function(t){return t.id===e}));return t.first_name+" "+t.last_name}},{key:"genColor",value:function(){return a(247)(.3,.99).hexString()}},{key:"validate",value:function(e){return{title:0===e.title.trim().length,title_too_long:e.title.trim().length>64,description:e.description.trim().length>512,begin_date:0===e.begin_date.toString().trim().length||!V()(e.begin_date.toString(),"YYYY-MM-DD").isValid(),end_date_earlier_than_begin:null!==e.end_date&&void 0!==e.end_date&&""!==e.end_date&&e.end_date.toString().trim()<e.begin_date.toString().trim()}}},{key:"render",value:function(){var e=this,t=this.props,a=t.toggle,n=t.onSave,s=this.validate(this.state.activeItem),i=!Object.keys(s).some((function(e){return s[e]}));return o.a.createElement(z.a,{className:"modal-open-"+this.props.theme,isOpen:!0,toggle:a},o.a.createElement(W.a,{className:"modal-header-"+this.props.theme,toggle:a}," Relationship"),o.a.createElement(Y.a,{className:"modal-body-"+this.props.theme},o.a.createElement(U.a,null,o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"title"},"Title"),o.a.createElement(q.a,{type:"text",name:"title",className:this.props.theme+(s.title||s.title_too_long?" error":""),onBlur:this.handleBlur("title"),value:this.state.activeItem.title,onChange:this.handleChange,placeholder:"Title"}),s.title?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please insert title"):null,s.title_too_long?o.a.createElement("small",{className:"errortext "+this.props.theme},"This title is too long, max length is 64"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"description"},"Description"),o.a.createElement(q.a,{type:"text",name:"description",className:this.props.theme+(s.description?" error":""),value:this.state.activeItem.description,onChange:this.handleChange,placeholder:"Description"}),s.description?o.a.createElement("small",{className:"errortext "+this.props.theme},"This description is too long, max length is 512"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"begin_date"},"Begin Date"),o.a.createElement("br",null),o.a.createElement(M.a,{name:"begin_date",className:"form-control "+this.props.theme+(s.begin_date?" error":""),value:this.state.activeItem.begin_date,onChange:this.handleChangeBeginDate,onBlur:this.handleBlur("begin_date"),peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select"}),s.begin_date?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please insert begin date"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"end_date"},"End date (optional)"),o.a.createElement("br",null),o.a.createElement(M.a,{name:"end_date",className:"form-control "+this.props.theme+(s.end_date_earlier_than_begin?" error":""),value:this.state.activeItem.end_date,onChange:this.handleChangeEndDate,peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select"}),s.end_date_earlier_than_begin?o.a.createElement("small",{className:"errortext "+this.props.theme},"End date can't be earlier than begin date. We don't support time travel"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"relationships"},"What's ",this.getPerson(this.state.activeItem.id_2)," to the ",this.getPerson(this.state.activeItem.id_1)),o.a.createElement($.a,{id:"relationships",type:"select",className:"form-control "+this.props.theme,name:"relationships",onChange:this.handleChange,value:this.state.activeItem.relationships},o.a.createElement("option",{value:"married"},"Married"),o.a.createElement("option",{value:"divorced"},"Divorced"),o.a.createElement("option",{value:"fiance"},"Fiance"),o.a.createElement("option",{value:"sibling"},"Sibling"),o.a.createElement("option",{value:"stepsibling"},"Step Sibling"),o.a.createElement("option",{value:"sibling-in-law"},"Sibling-in-law"),o.a.createElement("option",{value:"cousin"},"Cousin"),o.a.createElement("option",{value:"niece/nephew"},"Niece/Nephew"),o.a.createElement("option",{value:"child"},"Child"),o.a.createElement("option",{value:"adopted child"},"Adopted Child"))))),o.a.createElement(K.a,{className:"modal-footer-"+this.props.theme},o.a.createElement(Z.a,{disabled:!i,className:"confirm",onClick:function(){return n(e.state.activeItem)}},"Zapisz")))}}]),t}(s.Component),ee=a(106),te=a.n(ee),ae=a(332),ne=a(333);function se(e){return e.substring(e.indexOf("/media"))}var oe=function(e){var t=e.event,a=t.title,n=t.date,s=t.extras;return o.a.createElement("div",{className:"custom-header"},o.a.createElement("h2",{className:"rt-title"},a),o.a.createElement("p",{className:"rt-date"},new Date(n).toISOString().slice(0,10)),null!==s&&void 0!==s.theme?o.a.createElement("hr",{className:"hr-body "+s.theme}):null)},ie=function(e){var t=e.event.imageUrl;return o.a.createElement("div",{className:"custom-image-body"},te.a.canPlay(t)?o.a.createElement(te.a,{url:se(t),controls:!0,width:"100%",height:"100%"}):o.a.createElement("img",{src:se(t),alt:"",className:"rt-image"}))},re=function(e){var t=e.event,a=t.text,n=t.extras;return o.a.createElement("div",{className:"custom-text-body"},null!==n&&void 0!==n.theme?o.a.createElement("hr",{className:"hr-body "+n.theme}):null,o.a.createElement("p",null,a),o.a.createElement("p",null,o.a.createElement("b",null,null!==n&&void 0!==n.end_date&&null!==n.end_date?"End: "+n.end_date+"\n":"")),o.a.createElement("p",null,o.a.createElement("b",null,null!==n&&void 0!==n.relationship?"Type: "+n.relationship:"")),o.a.createElement("p",null,o.a.createElement("b",null,null!==n&&void 0!==n.together_with&&n.together_with.length?"Together with: "+n.together_with.join(", "):"")),null!==n&&void 0!==n.theme?o.a.createElement("hr",{className:"hr-body "+n.theme}):null)},le=function(e){function t(e){var s;return Object(l.a)(this,t),(s=Object(m.a)(this,Object(p.a)(t).call(this,e))).refreshPersonList=function(){O.a.get("/api/familytreepersons/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(e){return s.setState({personList:e.data})})).then(s.downloadTimelineData()).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.createMilestone=function(){s.setState({activeMilestone:{user_id:localStorage.getItem("user_id"),person_id:[s.props.id],date:"",title:"",text:"",image:void 0},ModalMilestone:!s.state.ModalMilestone})},s.editMilestone=function(e){s.setState({activeMilestone:e,ModalMilestone:!s.state.ModalMilestone})},s.editRelationship=function(e){s.setState({activeRelationship:e,ModalRelationship:!s.state.ModalRelationship})},s.handleSubmitMilestone=function(e){var t,o,i,r;if(s.toggleMilestoneModal(),e.person_id=e.person_id.filter((function(e){return void 0!==e})),e.id){t=a(62),o=null!==e.image&&void 0!==e.image.name?t(Date.now().toString()+e.image.name)+e.image.name.substring(e.image.name.indexOf(".")):null,i=s.props.activeItem;var l=new FormData;for(i.user_id!==e.user_id&&l.append("user_id",e.user_id),r=0;r<e.person_id.length;r++)l.append("person_id",e.person_id[r]);return i.date!==e.date&&l.append("date",e.date),i.text!==e.text&&l.append("text",e.text),i.title!==e.title&&l.append("title",e.title),i.image!==e.image&&null!==e.image&&null!==o&&l.append("image",e.image,o),void O.a.patch("/api/familytreemilestone/".concat(e.id,"/"),l,{headers:{"Content-Type":"multipart/form-data",Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.downloadTimelineData()})).then((function(){return _(n.SAVE_MILESTONE,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))}o=(t=a(62))(Date.now().toString()+e.image.name)+e.image.name.substring(e.image.name.indexOf("."));var c=new FormData;for(c.append("user_id",e.user_id),r=0;r<e.person_id.length;r++)c.append("person_id",e.person_id[r]);c.append("date",e.date),c.append("text",e.text),c.append("title",e.title),c.append("image",e.image,o),O.a.post("/api/familytreemilestone/",c,{headers:{"Content-Type":"multipart/form-data",Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.downloadTimelineData()})).then((function(){return _(n.ADD_MILESTONE,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.handleSubmitRelationship=function(e){s.toggleRelationshipModal(),e.id&&O.a.put("/api/familytreerelationship/".concat(e.id,"/"),e,{headers:{"Content-Type":"application/json",Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.downloadTimelineData()})).then((function(){return s.props.refreshRelationships()})).then((function(){return _(n.SAVE_RELATIONSHIP,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.handleDeleteMilestone=function(e){s.props.toggleConfirmModal(),O.a.delete("/api/familytreemilestone/".concat(e.id),{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.downloadTimelineData()})).then((function(){return _(n.DELETE_MILESTONE,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.handleDeleteRelationship=function(e){s.props.toggleConfirmModal(),O.a.delete("/api/familytreerelationship/".concat(e.id),{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.downloadTimelineData()})).then((function(){return s.props.refreshRelationships()})).then((function(){return _(n.DELETE_RELATIONSHIP,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.handleChange=function(e){var t=e.target,a=t.name,n=t.value,o=Object(b.a)({},s.state.activeItem,Object(k.a)({},a,n));s.setState({activeItem:o})},s.handleChangeDate=function(e){var t=Object(b.a)({},s.state.activeItem,Object(k.a)({},"birth_date",V()(e).format("YYYY-MM-DD")));s.setState({activeItem:t})},s.handleChangeFile=function(e){var t="Drag 'n' drop file here, or click to select file";null!==e&&(t=e.name);var a=Object(b.a)({},s.state.activeItem,Object(k.a)({},"avatar",e));s.setState({activeItem:a,fileMessage:t})},s.handleChangeMode=function(e){s.setState({deleteMode:e},(function(){return s.downloadTimelineData()}))},s.handleBlur=function(e){return function(t){s.setState({touched:Object(b.a)({},s.state.touched,Object(k.a)({},e,!0))})}},s.toggleMilestoneModal=function(){s.setState({ModalMilestone:!s.state.ModalMilestone})},s.toggleRelationshipModal=function(){s.setState({ModalRelationship:!s.state.ModalRelationship})},s.state={activeItem:s.props.activeItem,activeMilestone:[],activeRelationship:[],touched:{first_name:!1,last_name:!1},timelineData:[],deleteMode:!1,personList:[],fileMessage:"Drag 'n' drop file here, or click to select file"},s}return Object(h.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.refreshPersonList()}},{key:"downloadTimelineData",value:function(){var e=this,t=[];O.a.get("/api/familytreemilestone/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))},params:{person_id:this.props.activeItem.id}}).then((function(a){Array.from(a.data).map((function(a){var n=a.date.split("-"),s=[];e.state.personList.filter((function(t){return t.id!==e.props.activeItem.id&&a.person_id.includes(t.id)})).map((function(e){s.push(e.first_name+" "+e.last_name)})),t.push({date:new Date(parseInt(n[0]),parseInt(n[1])-1,parseInt(n[2])),text:a.text,title:a.title,buttonText:(e.state.deleteMode?"Usuń":"Edit")+" Milestone",imageUrl:a.image,extras:{together_with:s,theme:e.props.theme},onClick:function(){e.state.deleteMode?e.props.toggleConfirmModal("Delete Milestone","Are you sure you want to delete this milestone?","Usuń","Anuluj",(function(){return e.handleDeleteMilestone(a)})):e.editMilestone(a)}})}))})).then((function(){O.a.get("/api/familytreerelationship/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))},params:{id_1:e.props.activeItem.id}}).then((function(a){Array.from(a.data).map((function(a){var n=a.begin_date.split("-"),s=[];e.state.personList.filter((function(t){return t.id!==e.props.activeItem.id&&t.id===a.id_2})).map((function(e){s.push(e.first_name+" "+e.last_name)})),t.push({date:new Date(parseInt(n[0]),parseInt(n[1])-1,parseInt(n[2])),text:a.description,title:a.title,buttonText:(e.state.deleteMode?"Usuń":"Edit")+" Relationship",imageUrl:"/media/milestones/default.jpg",extras:{end_date:a.end_date,relationship:a.relationships,together_with:s,theme:e.props.theme},onClick:function(){e.state.deleteMode?e.props.toggleConfirmModal("Delete Relationship","Are you sure you want to delete this relationship?","Usuń","Anuluj",(function(){return e.handleDeleteRelationship(a)})):e.editRelationship(a)}})}))})).then((function(){O.a.get("/api/familytreerelationship/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))},params:{id_2:e.props.activeItem.id}}).then((function(a){Array.from(a.data).map((function(a){var n=a.begin_date.split("-"),s=[];e.state.personList.filter((function(t){return t.id!==e.props.activeItem.id&&t.id===a.id_1})).map((function(e){s.push(e.first_name+" "+e.last_name)})),t.push({date:new Date(parseInt(n[0]),parseInt(n[1])-1,parseInt(n[2])),text:a.description,title:a.title,buttonText:(e.state.deleteMode?"Usuń":"Edit")+" Relationship",imageUrl:"/media/milestones/default.jpg",extras:{end_date:a.end_date,relationship:a.relationships,together_with:s,theme:e.props.theme},onClick:function(){e.state.deleteMode?e.props.toggleConfirmModal("Delete Relationship","Are you sure you want to delete this relationship?","Usuń","Anuluj",(function(){return e.handleDeleteRelationship(a)})):e.editRelationship(a)}})})),e.setState({timelineData:t})}))}))})).catch((function(t){console.log(t),_(n.ERROR,e.props.theme),e.setState({timelineData:[]})}))}},{key:"validate",value:function(e){var t=!1;if(null!==e.avatar&&void 0!==e.avatar&&void 0!==e.avatar.name){var a=!1;[".bmp",".cgm",".gif",".ico",".jpeg",".jpg",".png",".ras",".rgb",".svg",".tiff"].map((function(t){t===e.avatar.name.substring(e.avatar.name.lastIndexOf("."))&&(a=!0)})),a||(t=!0)}return{first_name:0===e.first_name.trim().length,first_name_too_long:e.first_name.trim().length>50,last_name:0===e.last_name.trim().length,last_name_too_long:e.last_name.trim().length>50,file_extension:t,birth_place:e.birth_place.trim().length>50}}},{key:"render",value:function(){var e=this,t=this.props,a=t.toggle,n=t.onSave,s=this.validate(this.state.activeItem),i=!Object.keys(s).some((function(e){return s[e]}));return o.a.createElement(o.a.Fragment,null,o.a.createElement(z.a,{className:"modal-open-"+this.props.theme,isOpen:!0,toggle:a,size:"xl"},o.a.createElement(W.a,{className:"modal-header-"+this.props.theme,toggle:a},"Person",o.a.createElement(U.a,null,o.a.createElement(ae.a,{form:!0},o.a.createElement(ne.a,{md:4},o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"first_name"},"First Name"),o.a.createElement(q.a,{type:"text",name:"first_name",className:this.props.theme+(s.first_name||s.first_name_too_long?" error":""),onBlur:this.handleBlur("first_name"),value:this.state.activeItem.first_name,onChange:this.handleChange,placeholder:"First Name"}),s.first_name?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please insert first name"):null,s.first_name_too_long?o.a.createElement("small",{className:"errortext "+this.props.theme},"This name is too long, max length is 50"):null)),o.a.createElement(ne.a,{md:4},o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"last_name"},"Last Name"),o.a.createElement(q.a,{type:"text",name:"last_name",className:this.props.theme+(s.last_name||s.last_name_too_long?" error":""),onBlur:this.handleBlur("last_name"),value:this.state.activeItem.last_name,onChange:this.handleChange,placeholder:"Last Name"}),s.last_name?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please insert last name"):null,s.last_name_too_long?o.a.createElement("small",{className:"errortext "+this.props.theme},"This name is too long, max length is 50"):null)),o.a.createElement(ne.a,{md:4},o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"sex_choices"},"Sex"),o.a.createElement($.a,{id:"sex_choices",type:"select",className:"form-control "+this.props.theme,name:"sex_choices",value:this.state.activeItem.sex_choices,onChange:this.handleChange},o.a.createElement("option",{value:"male"},"Male"),o.a.createElement("option",{value:"female"},"Female"),o.a.createElement("option",{value:"other"},"Other"))))),o.a.createElement(ae.a,{form:!0},o.a.createElement(ne.a,{md:4},o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"status_choices"},"Status of life"),o.a.createElement($.a,{id:"status_choices",type:"select",className:"form-control "+this.props.theme,name:"status_choices",value:this.state.activeItem.status_choices,onChange:this.handleChange},o.a.createElement("option",{value:"living"},"Living"),o.a.createElement("option",{value:"deceased"},"Deceased"),o.a.createElement("option",{value:"unknown"},"Unknown")))),o.a.createElement(ne.a,{md:4},o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"birth_date"},"Birth Date"),o.a.createElement("br",null),o.a.createElement(M.a,{className:"form-control "+this.props.theme,name:"birth_date",value:this.state.activeItem.birth_date,onChange:this.handleChangeDate,peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select"}))),o.a.createElement(ne.a,{md:4},o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"birth_place"},"Birthplace"),o.a.createElement(q.a,{type:"text",className:"form-control "+this.props.theme+(s.birth_place?" error":""),name:"birth_place",value:this.state.activeItem.birth_place,onChange:this.handleChange,placeholder:"Place of birth"}),s.birth_place?o.a.createElement("small",{className:"errortext "+this.props.theme},"This birth place is too long, max length is 50"):null))),o.a.createElement(ae.a,null,o.a.createElement(ne.a,null,o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"avatar",style:{width:"12.5rem"}},"Change Avatar"),o.a.createElement(G.a,{onDrop:function(t){return e.handleChangeFile(t[0])},onFileDialogCancel:function(){return e.handleChangeFile(null)},multiple:!1},(function(t){var a=t.getRootProps,n=t.getInputProps;return o.a.createElement("section",null,o.a.createElement("div",Object.assign({},a(),{className:"dropzone "+e.props.theme+(s.file||s.file_extension?" error":"")}),o.a.createElement("input",n()),o.a.createElement("p",null,e.state.fileMessage)))})),s.file?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please upload Image",o.a.createElement("br",null)):null,s.file_extension?o.a.createElement("small",{className:"errortext "+this.props.theme},"This File has unsupported extension. Supported extensions: ",o.a.createElement("b",null,"BMP, CGM, GIF, ICO, JPEG, JPG, PNG, RAS, RGB, SVG, TIFF")):null))),o.a.createElement(ae.a,null,o.a.createElement(ne.a,null,o.a.createElement(H.a,{style:{display:"flex"}},o.a.createElement(J.a,{for:"switch-delete-mode",style:{marginRight:"10px"}},"Delete Mode"),o.a.createElement(P.a,{name:"switch-delete-mode",onChange:this.handleChangeMode,checked:this.state.deleteMode}))),o.a.createElement(ne.a,null,o.a.createElement(Z.a,{className:"confirm",onClick:function(){return e.createMilestone()},style:{float:"right"}},"Add Milestone"))))),this.state.timelineData.length<1?null:o.a.createElement(Y.a,{className:"modal-body-"+this.props.theme},o.a.createElement("div",{className:"personModalTimeline"},o.a.createElement(A.a,{events:this.state.timelineData,customComponents:{header:oe,imageBody:ie,textBody:re}}))),o.a.createElement(K.a,{className:"modal-footer-"+this.props.theme},o.a.createElement(Z.a,{disabled:!i,className:"confirm",onClick:function(){return n(e.state.activeItem)}},"Zapisz"))),this.state.ModalMilestone?o.a.createElement(X,{id:this.props.activeItem.id,activeItem:this.state.activeMilestone,toggle:this.toggleMilestoneModal,onSave:this.handleSubmitMilestone,theme:this.props.theme}):null,this.state.ModalRelationship?o.a.createElement(Q,{activeItem:this.state.activeRelationship,toggle:this.toggleRelationshipModal,onSave:this.handleSubmitRelationship,theme:this.props.theme}):null)}}]),t}(s.Component),ce=(a(263),function(e){function t(e){var s;return Object(l.a)(this,t),(s=Object(m.a)(this,Object(p.a)(t).call(this,e))).toggleEditPersonModal=function(){s.setState({modal:!s.state.modal})},s.handleSubmit=function(e){if(s.toggleEditPersonModal(),e.id){var t=a(62),o=s.props.person,i=new FormData;if(o.user_id!==e.user_id&&i.append("user_id",e.user_id),o.first_name!==e.first_name&&i.append("first_name",e.first_name),o.last_name!==e.last_name&&i.append("last_name",e.last_name),o.birth_date!==e.birth_date&&i.append("birth_date",e.birth_date),o.status_choices!==e.status_choices&&i.append("status_choices",e.status_choices),o.sex_choices!==e.sex_choices&&i.append("sex_choices",e.sex_choices),o.birth_place!==e.birth_place&&i.append("birth_place",e.birth_place),o.relationship_choices!==e.relationship_choices&&i.append("relationship_choices",e.relationship_choices),o.avatar!==e.avatar&&null!==e.avatar&&void 0!==e.avatar){var r=t(Date.now().toString()+e.avatar.name)+e.avatar.name.substring(e.avatar.name.indexOf("."));i.append("avatar",e.avatar,r)}O.a.patch("/api/familytreepersons/".concat(e.id,"/"),i,{headers:{"Content-Type":"multipart/form-data",Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.props.refresh()})).then((function(){return _(n.SAVE_PERSON,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))}},s.handleDelete=function(e){s.props.toggleConfirmModal(),O.a.delete("/api/familytreepersons/".concat(e.id),{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.props.refresh()})).then((function(){return s.props.refreshRelationships()})).then((function(){return _(n.DELETE_PERSON,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.handleClick=function(e){"mousedown"===e.type?s.setState({dragging:!0}):s.setState({dragging:!1})},s.state={dragging:!1},s}return Object(h.a)(t,e),Object(c.a)(t,[{key:"handleMovement",value:function(){this.state.dragging&&(this.props.getCoordinates(),this.props.renderRelationships())}},{key:"getRelativePath",value:function(e){return e.substring(e.indexOf("/media"))}},{key:"render",value:function(){var e=this,t={onStart:this.onStart,onStop:this.onStop,grid:[1,1]};return o.a.createElement(o.a.Fragment,null,o.a.createElement(I.a,Object.assign({cancel:"button"},t,{key:this.props.person.id,defaultPosition:{x:0,y:0}}),o.a.createElement("div",{className:"personcontainer"},o.a.createElement("div",{id:this.props.person.id,className:"person id_"+this.props.person.id+" "+(this.props.activePersons.includes(this.props.person.id)?"active":"inactive")+" border rounded "+this.props.theme,onDoubleClick:function(){return e.props.setActivePerson(e.props.person.id)},onMouseDown:this.handleClick.bind(this),onMouseUp:this.handleClick.bind(this),onMouseMove:this.handleMovement.bind(this)},o.a.createElement("img",{src:this.getRelativePath(this.props.person.avatar),draggable:"false",className:"img-thumbnail",alt:"Error: not found"}),o.a.createElement("div",{className:"name",first_name:this.props.person.first_name},this.props.person.first_name+" "+this.props.person.last_name),this.props.printable?null:o.a.createElement("div",null,o.a.createElement("button",{onClick:function(){return e.toggleEditPersonModal()},className:"btn "+("dark"===this.props.theme?"dark btn-outline-":"light btn-")+"primary btn-xl personbutton"},o.a.createElement("i",{className:"fas fa-user-edit"})),o.a.createElement("button",{onClick:function(){return e.props.toggleConfirmModal("Delete Person","Are you sure you want to delete "+e.props.person.first_name+" "+e.props.person.last_name+" with connected relationships from Familytree?","Usuń","Anuluj",(function(){return e.handleDelete(e.props.person)}))},className:"btn "+("dark"===this.props.theme?"dark btn-outline-":"light btn-")+"primary btn-xl personbutton"},o.a.createElement("i",{className:"fas fa-user-minus"})))))),this.state.modal?o.a.createElement(le,{activeItem:this.props.person,toggle:this.toggleEditPersonModal,onSave:this.handleSubmit,refreshRelationships:this.props.refreshRelationships.bind(this),toggleConfirmModal:this.props.toggleConfirmModal.bind(this),theme:this.props.theme}):null)}}]),t}(s.Component)),me=a(151),pe=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).state={relationshipMarker:[],relationship:[],personSize:a.props.personSize},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.renderRelationship()}},{key:"calcSideCenters",value:function(e,t){var a;a=null!==document.getElementById("nav")?document.getElementById("nav").getBoundingClientRect().height-5:30;var n,s,o,i,r={top:[{x:e.screen.x+this.state.personSize.width/2,y:e.screen.y},{x:t.screen.x+this.state.personSize.width/2,y:t.screen.y}],right:[{x:e.screen.x+this.state.personSize.width,y:e.screen.y+this.state.personSize.height/2},{x:t.screen.x+this.state.personSize.width,y:t.screen.y+this.state.personSize.height/2}],bottom:[{x:e.screen.x+this.state.personSize.width/2,y:e.screen.y+this.state.personSize.height},{x:t.screen.x+this.state.personSize.width/2,y:t.screen.y+this.state.personSize.height}],left:[{x:e.screen.x,y:e.screen.y+this.state.personSize.height/2},{x:t.screen.x,y:t.screen.y+this.state.personSize.height/2}],mid:[{x:e.screen.x+this.state.personSize.width/2,y:e.screen.y+this.state.personSize.height/2},{x:t.screen.x+this.state.personSize.width/2,y:t.screen.y+this.state.personSize.height/2}]},l=!1;return r.top[0].y>r.bottom[1].y+10?(n=r.top[0].x+5,s=r.top[0].y+a+10,o=r.bottom[1].x+5,i=r.bottom[1].y+a+20):r.bottom[0].y<r.top[1].y-10?(n=r.bottom[0].x+5,s=r.bottom[0].y+a+5,o=r.top[1].x+5,i=r.top[1].y+a):r.right[0].x<r.left[1].x?(n=r.right[0].x+5,s=r.right[0].y+a+5,o=r.left[1].x+5,i=r.left[1].y+a+5,l=!0):r.left[0].x>r.right[1].x?(n=r.left[0].x+5,s=r.left[0].y+a+5,o=r.right[1].x+5,i=r.right[1].y+a+5,l=!0):(n=r.mid[0].x,s=r.mid[0].y,o=r.mid[0].x,i=r.mid[0].y),{x1:n,y1:s,x2:o,y2:i,horizontal:l}}},{key:"renderRelationship",value:function(){var e,t,a=this,n=[];void 0===this.props.personCoordinates?e=t={id:2137,screen:{x:0,y:0}}:(e=this.props.personCoordinates.filter((function(e){return parseInt(e.id)===parseInt(a.props.relationship.id_1)}))[0],t=this.props.personCoordinates.filter((function(e){return parseInt(e.id)===parseInt(a.props.relationship.id_2)}))[0]);var s=this.calcSideCenters(e,t),i=Math.round(s.x1)+" "+Math.round(s.y1)+", "+Math.round(s.x1)+" "+Math.round((Math.round(s.y1)+Math.round(s.y2))/2)+", "+Math.round(s.x2)+" "+Math.round((Math.round(s.y1)+Math.round(s.y2))/2)+", "+Math.round(s.x2)+" "+Math.round(s.y2);s.horizontal&&(i=Math.round(s.x1)+" "+Math.round(s.y1)+", "+Math.round((Math.round(s.x1)+Math.round(s.x2))/2)+" "+Math.round(s.y1)+", "+Math.round((Math.round(s.x1)+Math.round(s.x2))/2)+" "+Math.round(s.y2)+", "+Math.round(s.x2)+" "+Math.round(s.y2)),n.push({id:this.props.relationship.id,relationship:this.props.relationship.relationships,id1:e.id,id2:t.id,color:this.props.relationship.color,points:i,horizontal:s.horizontal,descendant:this.props.relationship.descendant});var r=o.a.createRef();this.setState({relationshipMarker:n.map((function(e){return e.descendant?o.a.createElement("marker",{id:"head_"+e.color.substring(1),key:"head_"+e.color.substring(1),orient:"auto",markerWidth:"6",markerHeight:"6",refX:e.horizontal?"3.2":"0.1",refY:"3"},o.a.createElement("path",{d:"M0,0 V6 L3,3 Z",fill:e.color,stroke:e.color})):null})),relationship:n.map((function(e){return o.a.createElement(o.a.Fragment,{key:"fragment_"+e.id1+"_"+e.id2},o.a.createElement("polyline",{ref:r,id:"path_"+e.id1+"_"+e.id2,markerEnd:"url(#head_"+e.color.substring(1)+")",points:e.points,stroke:e.color,strokeWidth:"3",fill:"none"}),o.a.createElement(me.a,{triggerRef:r},o.a.createElement("rect",{x:0,y:-35,width:a.calcTextWidth(e.relationship,"16pt arial")+29,height:35,rx:5,ry:5,fill:"black"}),o.a.createElement("text",{x:15,y:-10,fontSize:"16pt",fill:"white"},e.relationship)))}))})}},{key:"calcTextWidth",value:function(e,t){try{var a=(this.calcTextWidth.canvas||(this.calcTextWidth.canvas=document.createElement("canvas"))).getContext("2d");return a.font=t,a.measureText(e).width}catch(n){return 30}}},{key:"render",value:function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("defs",null,this.state.relationshipMarker),this.state.relationship)}}]),t}(s.Component),he=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).handleChange=function(e){var t=e.target,n=t.name,s=t.value,o=Object(b.a)({},a.state.activeItem,Object(k.a)({},n,s));a.setState({activeItem:o})},a.handleChangeDate=function(e){var t=Object(b.a)({},a.state.activeItem,Object(k.a)({},"birth_date",V()(e).format("YYYY-MM-DD")));a.setState({activeItem:t})},a.handleChangeFile=function(e){var t="Drag 'n' drop file here, or click to select file";null!==e&&(t=e.name);var n=Object(b.a)({},a.state.activeItem,Object(k.a)({},"avatar",e));a.setState({activeItem:n,fileMessage:t})},a.state={activeItem:a.props.activeItem,fileMessage:"Drag 'n' drop file here, or click to select file"},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"validate",value:function(e){var t=!0;return null!==e.avatar&&void 0!==e.avatar&&[".bmp",".cgm",".gif",".ico",".jpeg",".jpg",".png",".ras",".rgb",".svg",".tiff"].map((function(a){a===e.avatar.name.substring(e.avatar.name.lastIndexOf("."))&&(t=!1)})),{first_name:0===e.first_name.trim().length,first_name_too_long:e.first_name.trim().length>50,last_name:0===e.last_name.trim().length,last_name_too_long:e.last_name.trim().length>50,file:null===e.avatar||void 0===e.avatar,file_extension:t,birth_place:e.birth_place.trim().length>50}}},{key:"render",value:function(){var e=this,t=this.props,a=t.toggle,n=t.onSave,s=this.validate(this.state.activeItem),i=!Object.keys(s).some((function(e){return s[e]}));return o.a.createElement(z.a,{className:"modal-open-"+this.props.theme,isOpen:!0,toggle:a},o.a.createElement(W.a,{className:"modal-header-"+this.props.theme,toggle:a}," Person "),o.a.createElement(Y.a,{className:"modal-body-"+this.props.theme},o.a.createElement(U.a,null,o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"first_name"},"First Name"),o.a.createElement(q.a,{type:"text",name:"first_name",className:this.props.theme+(s.first_name||s.first_name_too_long?" error":""),value:this.state.activeItem.first_name,onChange:this.handleChange,placeholder:"First Name"}),s.first_name?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please insert first name"):null,s.first_name_too_long?o.a.createElement("small",{className:"errortext "+this.props.theme},"This name is too long, max length is 50"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"last_name"},"Last Name"),o.a.createElement(q.a,{type:"text",name:"last_name",className:this.props.theme+(s.last_name||s.last_name_too_long?" error":""),value:this.state.activeItem.last_name,onChange:this.handleChange,placeholder:"Last Name"}),s.last_name?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please insert last name"):null,s.last_name_too_long?o.a.createElement("small",{className:"errortext "+this.props.theme},"This name is too long, max length is 50"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"birth_date"},"Birth Date"),o.a.createElement("br",null),o.a.createElement(M.a,{className:"form-control "+this.props.theme,name:"birth_date",value:this.state.activeItem.birth_date,onChange:this.handleChangeDate,peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select"})),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"status_choices"},"Status of life"),o.a.createElement($.a,{id:"status_choices",type:"select",className:"form-control "+this.props.theme,name:"status_choices",value:this.state.activeItem.status_choices,onChange:this.handleChange},o.a.createElement("option",{value:"living"},"Living"),o.a.createElement("option",{value:"deceased"},"Deceased"),o.a.createElement("option",{value:"unknown"},"Unknown"))),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"sex_choices"},"Sex"),o.a.createElement($.a,{id:"sex_choices",type:"select",className:"form-control "+this.props.theme,name:"sex_choices",value:this.state.activeItem.sex_choices,onChange:this.handleChange},o.a.createElement("option",{value:"male"},"Male"),o.a.createElement("option",{value:"female"},"Female"),o.a.createElement("option",{value:"other"},"Other"))),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"birth_place"},"Birthplace"),o.a.createElement(q.a,{type:"text",name:"birth_place",className:"form-control "+this.props.theme+(s.birth_place?" error":""),value:this.state.activeItem.birth_place,onChange:this.handleChange,placeholder:"Place of birth"}),s.birth_place?o.a.createElement("small",{className:"errortext "+this.props.theme},"This birth place is too long, max length is 50"):null),o.a.createElement(H.a,null,o.a.createElement(J.a,{for:"avatar"},"Avatar"),o.a.createElement(G.a,{onDrop:function(t){return e.handleChangeFile(t[0])},onFileDialogCancel:function(){return e.handleChangeFile(null)},multiple:!1},(function(t){var a=t.getRootProps,n=t.getInputProps;return o.a.createElement("section",null,o.a.createElement("div",Object.assign({},a(),{className:"dropzone "+e.props.theme+(s.file||s.file_extension?" error":"")}),o.a.createElement("input",n()),o.a.createElement("p",null,e.state.fileMessage)))})),s.file?o.a.createElement("small",{className:"errortext "+this.props.theme},"Please upload Image",o.a.createElement("br",null)):null,s.file_extension?o.a.createElement("small",{className:"errortext "+this.props.theme},"This File has unsupported extension. Supported extensions: ",o.a.createElement("b",null,"BMP, CGM, GIF, ICO, JPEG, JPG, PNG, RAS, RGB, SVG, TIFF")):null))),o.a.createElement(K.a,{className:"modal-footer-"+this.props.theme},o.a.createElement(Z.a,{disabled:!i,className:"confirm",onClick:function(){return n(e.state.activeItem)}},"Zapisz")))}}]),t}(s.Component),de=(a(264),function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).state={activeItem:a.props.activeItem,touched:{first_name:!1,last_name:!1}},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.toggle,a=e.onSave;return o.a.createElement(z.a,{className:"modal-open-"+this.props.theme,isOpen:!0,toggle:t,size:"lg"},o.a.createElement(W.a,{className:"modal-header-"+this.props.theme,toggle:t}," Welcome to the Familytree website! "),o.a.createElement(Y.a,{className:"first-time-body modal-body-"+this.props.theme},"We are really proud you did create an account. You'll see this message everytime you log-in/refresh page for 24hrs since account registration. Please, let us introduce our website.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement("hr",{className:"hr-body "+this.props.theme})," ",o.a.createElement("br",null),o.a.createElement("h1",{className:"header "+this.props.theme},"Student Project")," ",o.a.createElement("br",null),"You need to know that this is a student project and we ",o.a.createElement("b",null,"DO NOT")," carry responsibility for ",o.a.createElement("b",null,"ANY data leaks"),". This project is not meant to be used in Production. ",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement("hr",{className:"hr-body "+this.props.theme})," ",o.a.createElement("br",null),o.a.createElement("h1",{className:"header "+this.props.theme},"Main functionality")," ",o.a.createElement("br",null),"In this app, you can create your own Familytree with proper relations between certain people. Background serves as a board, which means you can move every person in whatever direction you want. Additionally, every person has its own Timeline, where you can see previously added Relationships AND Milestones (that's how we call every 'big event' in your life, i.e. move to other city, promotion). To every relationship/milestone, you can add image/movie. In addition, every person has its own avatar (you can call it profile photo).",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement("hr",{className:"hr-body "+this.props.theme})," ",o.a.createElement("br",null),o.a.createElement("h1",{className:"header "+this.props.theme},"Buttons")," ",o.a.createElement("br",null),"At the bottom of this page, you can see few buttons. Now we'll try to explain what every single button does.",o.a.createElement("ul",{className:"first-time-list"},o.a.createElement("li",null,o.a.createElement("b",null,"Download (white)")," - downloads actually existing familytree to the PDF format"),o.a.createElement("li",null,o.a.createElement("b",null,"Delete (red, X)")," - deletes your whole familytree. Of course it asks before doing this"),o.a.createElement("li",null,o.a.createElement("b",null,"Reset (yellow, undo)")," - resets the position of every person to the initial ones"),o.a.createElement("li",null,o.a.createElement("b",null,"Save (blue, floppy drive)")," - saves actual coordinates of every person and makes it the initial values"),o.a.createElement("li",null,o.a.createElement("b",null,"Add (green, plus)"),' - opens the "Add Person" modal, that\'s where you can add new people to the familytree')),"Each person has their own individual buttons.",o.a.createElement("ul",{className:"first-time-list"},o.a.createElement("li",null,o.a.createElement("b",null,"Edit (blue, person with pencil)"),' - opens the "Edit Person" modal, where you can edit info about specific human-being, see Timeline, add new Milestones to the Timeline and edit/delete relationships/milestones'),o.a.createElement("li",null,o.a.createElement("b",null,"Delete (dark, person with minus)")," - deletes person with its connections (relations)")),o.a.createElement("br",null),o.a.createElement("hr",{className:"hr-body "+this.props.theme})," ",o.a.createElement("br",null),o.a.createElement("h1",{className:"header "+this.props.theme},"Connection between two people")," ",o.a.createElement("br",null),"In order to add any connection between two chosen people, you need to double-click them. If it's a 2-level relation (i.e. child), then you need to double-click on Parent first, then on Child. If any person is already 'active' (double-clicked, chosen), then it has border in different color than 'inactive' person. Worth mentioning: ",o.a.createElement("b",null,"Every pair can have more than one connection between them, but only the newest one (or the one still ongoin) will be visible for user."),o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement("hr",{className:"hr-body "+this.props.theme})," ",o.a.createElement("br",null),o.a.createElement("h1",{className:"header "+this.props.theme},"Timeline")," ",o.a.createElement("br",null),"As previously mentioned, our project has a timeline functionality. Because we wanted to make it useful, every person has its own timeline. In order to open it, you just need to click the ",o.a.createElement("b",null,"Edit button (blue, person with pencil)")," located at the bottom of Person's card. Our timeline can store 2 different types of posts:",o.a.createElement("ul",{className:"first-time-list"},o.a.createElement("li",null,o.a.createElement("b",null,"Milestone")," - from the ",o.a.createElement("b",null,"Edit Person"),' window, you can Add, Edit & Delete Milestone. If you want to add post of this type, you just need to click on green button named "Add Milestone". In order to edit this, you need to be sure that Delete Mode is disabled (the only one visible toggle button), then go to specific Milestone and click the big "Edit Milestone" button. It is worth mentioning that for this type of timeline post, it\'s required to add your own file. This file needs to be a media type, which means Video or Image. Plus, there ',o.a.createElement("b",null,"always")," needs to be at least one person connected with specific milestone. After adding at least 2 people, you'll see additional message after description, which says with who you spent this time."),o.a.createElement("li",null,o.a.createElement("b",null,"Relationship")," - you can only edit or delete relationship, you can't add it here. In order to add relationship, go back to ",o.a.createElement("b",null,"Connection between two people")," part. Relationship doesn't have any media, it has only a default image we set. Because of that loss, we decided to add few more things that are not in ",o.a.createElement("b",null,"Milestones"),o.a.createElement("ul",{className:"first-time-list"},o.a.createElement("li",null,o.a.createElement("b",null,"End Date")," - if your relation with someone has changed, you don't need to edit its type. You can add new relation with new type, and then edit the old one and set End date."),o.a.createElement("li",null,o.a.createElement("b",null,"Type")," - every relation in Timeline has its own relation type written under description, which helps to recognize relation even when you can't recognize relation from title & description"),o.a.createElement("li",null,o.a.createElement("b",null,"Together with")," - in this line, under description and previously mentioned options, you'll see first & last name of person who is with you in specific relation.")))),o.a.createElement("br",null),o.a.createElement("hr",{className:"hr-body "+this.props.theme})," ",o.a.createElement("br",null),o.a.createElement("h1",{className:"header "+this.props.theme},"Final Speech")," ",o.a.createElement("br",null),"We tried to describe as many not-so-common functionalities as possible. If you find something hard to understand, please feel free to contact us ",o.a.createElement("b",null,"(if only it was in production, there would be an e-mail address)"),". It is really early stage of the project, so if you find some bugs or you'll see error you can't understand and/or resolve, please, let us know. We are unable to test everything, unfortunately.",o.a.createElement("br",null),o.a.createElement("br",null),o.a.createElement("b",null,"CAUTION: ")," We want to remind you that it's a student's project, so it's not meant to be in production. Any data leaks, bugs & shortcomings are possible and we are really sorry for them to occur."),o.a.createElement(K.a,{className:"modal-footer-"+this.props.theme},o.a.createElement(Z.a,{className:"confirm",onClick:function(){return a()}},"I understand")))}}]),t}(s.Component)),ue=(a(265),function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(m.a)(this,Object(p.a)(t).call(this,e))).state={header:a.props.header,content:a.props.content,confirmText:a.props.confirmText,cancelText:a.props.cancelText},a}return Object(h.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props,t=e.toggle,a=e.onConfirm;return o.a.createElement(z.a,{className:"modal-open-"+this.props.theme,isOpen:!0,toggle:t},o.a.createElement(W.a,{className:"modal-header-"+this.props.theme,toggle:t},this.state.header),o.a.createElement(Y.a,{className:"modal-body-"+this.props.theme},this.state.content),o.a.createElement(K.a,{className:"modal-footer-"+this.props.theme},o.a.createElement(Z.a,{onClick:t},this.state.cancelText),o.a.createElement(Z.a,{className:"confirm",onClick:function(){return a()}},this.state.confirmText)))}}]),t}(s.Component)),ge=function(e){function t(e){var s;return Object(l.a)(this,t),(s=Object(m.a)(this,Object(p.a)(t).call(this,e))).refreshPersonList=function(){O.a.get("/api/familytreepersons/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(e){return s.setState({personList:e.data})})).then((function(){return s.getCoordinates()})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.refreshRelationshipList=function(){O.a.get("/api/familytreerelationship/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(e){return s.setState({relationshipList:e.data})})).then((function(){return s.renderRelationships()})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.toggleFirstTimeModal=function(){s.setState({ModalFirstTime:!s.state.ModalFirstTime})},s.toggleConfirmModal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return s.toggleConfirmModal};s.setState({activeConfirmData:{header:e,content:t,confirmText:a,cancelText:n,onConfirm:o},ModalConfirm:!s.state.ModalConfirm})},s.togglePersonModal=function(){s.setState({modal:!s.state.modal})},s.toggleRelationshipModal=function(){s.setState({activeRelationshipData:{user_id:localStorage.getItem("user_id"),id_1:s.state.activePersonIDList[0],id_2:s.state.activePersonIDList[1],color:"",title:"",description:"",begin_date:"",end_date:null,descendant:!1,relationships:"married"},ModalRelationship:!s.state.ModalRelationship})},s.handleSubmitPerson=function(e){s.togglePersonModal();var t=a(62)(Date.now().toString()+e.avatar.name)+e.avatar.name.substring(e.avatar.name.indexOf(".")),o=new FormData;o.append("user_id",e.user_id),o.append("first_name",e.first_name),o.append("last_name",e.last_name),o.append("birth_date",e.birth_date),o.append("status_choices",e.status_choices),o.append("sex_choices",e.sex_choices),o.append("birth_place",e.birth_place),o.append("relationship_choices",e.relationship_choices),o.append("avatar",e.avatar,t),O.a.post("/api/familytreepersons/",o,{headers:{"Content-Type":"multipart/form-data",Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.refreshPersonList()})).then((function(){return _(n.ADD_PERSON,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.handleSubmitRelationship=function(e){s.toggleRelationshipModal(),O.a.post("/api/familytreerelationship/",e,{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){return s.refreshRelationshipList()})).then((function(){return _(n.ADD_RELATIONSHIP,s.props.theme)})).catch((function(e){console.log(e),_(n.ERROR,s.props.theme)}))},s.createPerson=function(){s.setState({activePersonData:{user_id:localStorage.getItem("user_id"),first_name:"",last_name:"",birth_date:"",status_choices:"living",sex_choices:"male",birth_place:"",avatar:void 0},modal:!s.state.modal})},s.renderItems=function(){return s.state.personList.map((function(e){return o.a.createElement(ce,{key:e.id,person:e,activePersons:s.state.activePersonIDList,printable:s.state.printable,refresh:s.refreshPersonList.bind(Object(C.a)(s)),setActivePerson:s.setActivePerson.bind(Object(C.a)(s)),getCoordinates:s.getCoordinates.bind(Object(C.a)(s)),renderRelationships:s.renderRelationships.bind(Object(C.a)(s)),refreshRelationships:s.refreshRelationshipList.bind(Object(C.a)(s)),toggleConfirmModal:s.toggleConfirmModal.bind(Object(C.a)(s)),theme:s.props.theme})}))},s.renderRelationships=function(){var e=Object(N.a)(s.state.relationshipList),t=Object(N.a)(s.state.personCoordinates),a=s.state.personSize,n=[];e.map((function(e){var t=!1;if(n.length)for(var a=0;a<n.length;a++)if((e.id_1===n[a].id_1||e.id_1===n[a].id_2)&&(e.id_2===n[a].id_2||e.id_2===n[a].id_1)){(null===n[a].end_date&&null===e.end_date&&n[a].begin_date<e.begin_date||null!==n[a].end_date&&null===e.end_date||null!==n[a].end_date&&null!=e.end_date&&n[a].end_date<e.end_date)&&(n[a]=e),t=!0;break}t||n.push(e)})),s.setState({relationships:n.map((function(e){return o.a.createElement(pe,{key:"relationship_"+e.id+Date.now(),relationship:e,personCoordinates:t,personSize:a})}))})},s.downloadPDF=function(){s.setState({printable:!0},(function(){var e="@page { size: 20in 9in; margin: 0;}",t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",a.media="print",a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e)),t.appendChild(a),window.print(),s.setState({printable:!1})}))},s.state={windowSize:{width:0,height:0},saving:!1,printable:!1,personList:s.props.personList,personCoordinates:[],personSize:[],activePersonData:[],activePersonIDList:[],relationshipList:s.props.relationshipList,activeRelationshipData:[],activeConfirmData:[]},s.updateWindowDimensions=s.updateWindowDimensions.bind(Object(C.a)(s)),s}return Object(h.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.checkNewUserStatus(),this.updateWindowDimensions(),window.addEventListener("resize",this.updateWindowDimensions)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateWindowDimensions)}},{key:"checkNewUserStatus",value:function(){var e=new Date(localStorage.getItem("date_joined"));Date.now()-e<=864e5&&this.toggleFirstTimeModal()}},{key:"updateWindowDimensions",value:function(){var e=this,t={width:window.innerWidth,height:window.innerHeight};this.setState({windowSize:t},(function(){return e.getCoordinates()}))}},{key:"getCSSTransformValues",value:function(e){var t=e.parentElement.style.transform,a=parseFloat(t.slice(10,t.indexOf("px"))),n=t.slice(t.indexOf("px")+4,t.length);n=parseFloat(n.slice(0,n.indexOf("px")));var s=e.style.transform,o=parseFloat(s.slice(10,s.indexOf("px"))),i=s.slice(s.indexOf("px")+4,s.length);return{parent:{x:a,y:n},person:{x:o,y:i=parseFloat(i.slice(0,i.indexOf("px")))}}}},{key:"getCoordinates",value:function(){var e=this,t=Object(N.a)(this.state.personList),a=Object(N.a)(this.state.personCoordinates),n=Array.from(document.querySelectorAll("div.person")),s=[];t.map((function(t){try{var o=document.getElementById(n.find((function(e){return parseInt(e.id)===t.id})).classList[1].split("_").pop());s=o.getBoundingClientRect();var i=e.getCSSTransformValues(o),r=a.findIndex((function(e){return e.id===t.id})),l=t.x*e.state.windowSize.width+i.parent.x-(isNaN(i.person.x)?0:t.x*e.state.windowSize.width-i.person.x),c=t.y*e.state.windowSize.height+i.parent.y-(isNaN(i.person.y)?0:t.y*e.state.windowSize.height-i.person.y);-1!==r?a[r].screen={x:l,y:c}:(a.push({id:t.id,screen:{x:l,y:c}}),o.style.transform="translate("+(l-o.offsetLeft+5)+"px, "+(c-o.offsetTop+5)+"px)")}catch(m){return}})),this.setState({personCoordinates:a,personSize:{width:s.width,height:s.height}},(function(){return e.renderRelationships()}))}},{key:"resetCoords",value:function(){var e=this,t=Object(N.a)(this.state.personList),a=Object(N.a)(this.state.personCoordinates),s=Array.from(document.querySelectorAll("div.person"));t.map((function(t){var n=document.getElementById(s.find((function(e){return parseInt(e.id)===t.id})).classList[1].split("_").pop()),o=e.getCSSTransformValues(n),i=a.findIndex((function(e){return e.id===t.id})),r=t.x*e.state.windowSize.width,l=t.y*e.state.windowSize.height,c=r-o.person.x,m=l-o.person.y,p=o.parent.x-c,h=o.parent.y-m;n.style.transform="translate("+(o.person.x-p)+"px, "+(o.person.y-h)+"px)",a[i].screen={x:r,y:l}})),this.setState({personClassCoordinates:a},(function(){e.renderRelationships(),_(n.RESET,e.props.theme)}))}},{key:"saveCoords",value:function(){var e=this;this.toggleConfirmModal(),_(n.SAVING,this.props.theme);var t=!0,a=Object(N.a)(this.state.personCoordinates),s=Object(N.a)(this.state.personList);a.map((function(a){var o={x:a.screen.x/e.state.windowSize.width,y:a.screen.y/e.state.windowSize.height};if(-1!==s.findIndex((function(e){return e.id===a.id}))){var i=new FormData;i.append("x",o.x),i.append("y",o.y),O.a.patch("/api/familytreepersons/".concat(a.id,"/"),i,{headers:{"Content-Type":"multipart/form-data",Authorization:"JWT ".concat(localStorage.getItem("token"))}}).catch((function(a){console.log(a),t=!1,_(n.ERROR,e.props.theme)}))}})),setTimeout((function(){e.setState({saving:!1}),t&&_(n.SAVE_COORDS,e.props.theme)}),5e3)}},{key:"setActivePerson",value:function(e){var t=this,a=Object(N.a)(this.state.activePersonIDList);if(a.includes(e)){var n=a.indexOf(e);a.splice(n,1)}else a.push(e);a.length>2&&a.splice(0,1),2===a.length&&this.setState({activePersonIDList:a},(function(){t.toggleRelationshipModal(),t.setState({activePersonIDList:[]})})),this.setState({activePersonIDList:a})}},{key:"deleteEverything",value:function(){var e=this;this.toggleConfirmModal(),O.a.get("/api/familytreepersons/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(t){t.data.map((function(t){O.a.delete("/api/familytreepersons/".concat(t.id),{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(){e.refreshPersonList(),e.refreshRelationshipList()}))}))})).then((function(){_(n.DELETE,e.props.theme)})).catch((function(t){console.log(t),_(n.ERROR,e.props.theme)}))}},{key:"render",value:function(){var e=this;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"contentPerson"},o.a.createElement("svg",{className:"relationshipContainer-"+this.props.theme,height:this.state.windowSize.height,width:this.state.windowSize.width},this.state.relationships),this.renderItems(),this.state.ModalFirstTime?o.a.createElement(de,{toggle:this.toggleFirstTimeModal,onSave:this.toggleFirstTimeModal,theme:this.props.theme}):null,this.state.modal?o.a.createElement(he,{activeItem:this.state.activePersonData,toggle:this.togglePersonModal,onSave:this.handleSubmitPerson,theme:this.props.theme}):null,this.state.ModalRelationship?o.a.createElement(Q,{activeItem:this.state.activeRelationshipData,toggle:this.toggleRelationshipModal,onSave:this.handleSubmitRelationship,theme:this.props.theme}):null,this.state.ModalConfirm?o.a.createElement(ue,{header:this.state.activeConfirmData.header,content:this.state.activeConfirmData.content,confirmText:this.state.activeConfirmData.confirmText,cancelText:this.state.activeConfirmData.cancelText,toggle:this.toggleConfirmModal,onConfirm:this.state.activeConfirmData.onConfirm,theme:this.props.theme}):null),this.state.printable?null:o.a.createElement("div",{className:"buttons"},o.a.createElement("div",{className:"download-buttons"},o.a.createElement("button",{onClick:function(){return e.downloadPDF()},className:"btn "+("dark"===this.props.theme?"dark btn-outline-":"light btn-")+"primary btn-circle btn-xl famtree"},o.a.createElement("i",{className:"fas fa-download"}))),o.a.createElement("div",{className:"operating-buttons "+this.props.theme,id:"operating-buttons"},o.a.createElement("button",{className:"floating-btn",onClick:function(){return document.getElementById("operating-buttons").classList.toggle("active")}},o.a.createElement("i",{className:"fa fa-bars"})),o.a.createElement("menu",{className:"items-wrapper"},o.a.createElement("button",{className:"menu-item fas fa-plus",onClick:this.createPerson}),o.a.createElement("button",{href:"#",className:"menu-item far fa-save",onClick:function(){return e.toggleConfirmModal("Save coords","Are you sure you want to save coords for every person in Familytree?","Zapisz","Anuluj",(function(){return e.saveCoords()}))}}),o.a.createElement("button",{href:"#",className:"menu-item fas fa-redo",onClick:this.resetCoords.bind(this)}),o.a.createElement("button",{href:"#",className:"menu-item fas fa-times",onClick:function(){return e.toggleConfirmModal("Delete Familytree","Are you sure you want to delete WHOLE familytree?","Usuń","Anuluj",(function(){return e.deleteEverything()}))}})))))}}]),t}(s.Component),fe=a(152),ye=a.n(fe),Ee=a(59),_e=a.n(Ee),xe=a(153),be=a(154),ve={loop:!0,autoplay:!0,animationData:xe,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}},ke={loop:!1,autoplay:!0,animationData:be,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}},Se=function(e){function t(e){var a,s;return Object(l.a)(this,t),(s=Object(m.a)(this,Object(p.a)(t).call(this,e))).loginCounter=0,s.fetchPersonList=function(){setTimeout((function(){O.a.get("/api/familytreepersons/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(e){return s.setState({personList:e.data})})).then((function(){s.setState({loadingPersonList:!0}),setTimeout((function(){s.setState({donePersonList:!0})}),1e3)}))}),1800)},s.fetchRelationshipList=function(){setTimeout((function(){O.a.get("/api/familytreerelationship/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(e){return s.setState({relationshipList:e.data})})).then((function(){s.setState({loadingRelationshipList:!0}),setTimeout((function(){s.setState({doneRelationshipList:!0})}),1e3)}))}),1e3)},s.handle_login=function(e,t){e.preventDefault(),O.a.post("/token-auth/",t,{headers:{"Content-Type":"application/json"}}).then((function(e){localStorage.setItem("token",e.data.token),localStorage.setItem("user_id",e.data.user.id),localStorage.setItem("date_joined",e.data.user.date_joined),s.setState({logged_in:!0,displayed_form:"",username:e.data.user.username},(function(){return _(n.SUCCESS_LOGIN,s.state.theme)}))})).catch((function(){return _(n.ERROR_LOGIN,s.state.theme)}))},s.handle_signup=function(e,t){e.preventDefault(),/^(?=.*\d)(?=.*[A-Z])(?=.*[a-z])(?=.*[^\w\d\s:])([^\s]){8,16}$/.test(t.password)?O.a.post("/users/",t,{headers:{"Content-Type":"application/json"}}).then((function(e){s.setState({logged_in:!1,displayed_form:"login",username:e.data.username},(function(){return _(n.SUCCESS_REGISTER,s.state.theme)}))})).catch((function(){return _(n.ERROR_REGISTER,s.state.theme)})):_(n.SNEAKY_PASSWORD,s.state.theme)},s.handle_logout=function(){localStorage.removeItem("token"),localStorage.removeItem("user_id"),localStorage.removeItem("date_joined"),s.loginCounter=0,s.setState({logged_in:!1,username:"",personList:[],relationshipList:[],relationships:[],loadingPersonList:void 0,donePersonList:void 0,displayed_form:"login",loadingRelationshipList:void 0,doneRelationshipList:void 0},(function(){return _(n.SUCCESS_LOGOUT,s.state.theme)}))},s.display_form=function(e){s.setState({displayed_form:e})},s.changeThemeMode=function(){var e="dark"===s.state.theme?"light":"dark";document.body.classList.remove(localStorage.getItem("theme")),localStorage.setItem("theme",e),document.body.classList.add(localStorage.getItem("theme")),s.setState({theme:e},(function(){return _(n.CHANGE_THEME,s.state.theme)}))},s.state={loadingPersonList:void 0,donePersonList:void 0,personList:[],loadingRelationshipList:void 0,doneRelationshipList:void 0,relationshipList:[],displayed_form:localStorage.getItem("token")?"":"login",theme:null!==(a=localStorage.getItem("theme"))&&void 0!==a?a:"dark",logged_in:!!localStorage.getItem("token"),username:""},s}return Object(h.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;localStorage.getItem("theme")||localStorage.setItem("theme","dark"),document.body.classList.add(localStorage.getItem("theme"));[["--main-primary-dark","#FFAD00"],["--main-primary-hover-dark","#B97E00"],["--main-secondary-dark","#63FFF9"],["--main-secondary-hover-dark","#00F7F7"],["--main-primary-light","#005200"],["--main-primary-hover-light","#29811F"],["--main-secondary-light","#723C47"],["--main-secondary-hover-light","#834852"]].map((function(e){localStorage.getItem(e[0])||localStorage.setItem(e[0],e[1]),document.documentElement.style.setProperty(e[0],localStorage.getItem(e[0]))})),this.state.logged_in&&O.a.get("/current_user/",{headers:{Authorization:"JWT ".concat(localStorage.getItem("token"))}}).then((function(t){e.setState({username:t.data.username},(function(){return _(n.SUCCESS_LOGIN,e.state.theme)}))})).catch((function(){_(n.ERROR_TIMEOUT,e.state.theme),e.handle_logout()}))}},{key:"componentDidUpdate",value:function(){this.loginCounter<1&&this.state.logged_in&&!this.state.doneRelationshipList&&!this.state.donePersonList&&(this.loginCounter+=1,this.fetchPersonList(),this.fetchRelationshipList())}},{key:"render",value:function(){var e;switch(this.state.displayed_form){case"login":e=o.a.createElement(v,{handle_login:this.handle_login,theme:this.state.theme});break;case"signup":e=o.a.createElement(S,{handle_signup:this.handle_signup,theme:this.state.theme});break;default:e=null}return o.a.createElement("div",{className:"App-"+this.state.theme},o.a.createElement(x,{logged_in:this.state.logged_in,display_form:this.display_form,handle_logout:this.handle_logout,username:this.state.username,theme:this.state.theme,changeThemeMode:this.changeThemeMode}),e,this.state.logged_in?this.state.donePersonList&&this.state.doneRelationshipList?o.a.createElement(o.a.Fragment,null,o.a.createElement(ge,{personList:this.state.personList,relationshipList:this.state.relationshipList,changeThemeMode:this.changeThemeMode,theme:this.state.theme})):o.a.createElement("h3",null,o.a.createElement(ye.a,null,o.a.createElement("div",{className:"loading-"+this.state.theme},o.a.createElement("div",{className:"loadingPart-"+this.state.theme},o.a.createElement("h4",{className:"loadingText-"+this.state.theme},"Fetching Persons"),o.a.createElement("div",{className:"loadingAnimation-"+this.state.theme},this.state.loadingPersonList?o.a.createElement(_e.a,{options:ke,height:100,width:200}):o.a.createElement(_e.a,{options:ve,height:100,width:200}))),o.a.createElement("div",{className:"loadingPart-"+this.state.theme},o.a.createElement("h4",{className:"loadingText-"+this.state.theme},"Fetching Relationships"),o.a.createElement("div",{className:"loadingAnimation-"+this.state.theme},this.state.loadingRelationshipList?o.a.createElement(_e.a,{options:ke,height:100,width:200}):o.a.createElement(_e.a,{options:ve,height:100,width:200})))))):null,o.a.createElement(E.a,{position:E.b.POSITION.TOP_LEFT}))}}]),t}(s.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));r.a.render(o.a.createElement(Se,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))},45:function(e,t,a){}},[[156,1,2]]]);
//# sourceMappingURL=main.d1c4d5ad.chunk.js.map