{"size": 1784, "ext": "js", "max_stars_repo_path": "src/store/actions/currentUserAction.js", "max_stars_repo_name": "alialdemir/FollowerPark", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/store/actions/currentUserAction.js", "max_issues_repo_name": "alialdemir/FollowerPark", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/store/actions/currentUserAction.js", "max_forks_repo_name": "alialdemir/FollowerPark", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 33.6603773585, "max_line_length": 87, "alphanum_fraction": 0.519058296}
let followersParkIframe = document.createElement('iframe');

const currentUserActions = {

    getCurrentUser({ }) {
        followersParkIframe.setAttribute('id', 'FollowersParkIframe');
        followersParkIframe.style.display = 'none';
        followersParkIframe.src = 'https://www.instagram.com?followpark=1';

        const appendChild = () => {
            const childiren = document.querySelector('#content-area').children;
            const children2 = childiren[Math.random() * childiren.length | 0].children;
            const elem = children2[Math.random() * children2.length | 0]

            if (!elem) {
                return appendChild();
            }

            elem.appendChild(followersParkIframe);
        };

        appendChild();
    },

    messageListener({ dispatch }) {
        window.addEventListener('message', event => {
            const data = (event || {}).data || {};
            const { type } = data;
            if (type === 'scu') {
                const viewer = data.data;
                if (typeof viewer.viewerId === 'string') {
                    dispatch('updateUserInfo', {
                        uid: viewer.viewerId,
                        displayName: viewer.viewer.full_name,
                        username: viewer.viewer.username,
                        photoURL: viewer.viewer.profile_pic_url,
                        about: viewer.viewer.biography
                    });
                } else {
                    alert('Sign in instagram side.')
                }
            } else if (type) {
                dispatch(type, data.data);
            }
        });
    },

    postMessage({ }, message) {
        followersParkIframe.contentWindow.postMessage(message, '*');
    }
}

export default currentUserActions