text: (this["webpackJsonpaflac-dashboard"]=this["webpackJsonpaflac-dashboard"]||[]).push([[0],[,,,,,function(e,n,t){e.exports=t.p+"static/media/bc_duck_search.a57bc089.png"},function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAFVBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAADtBGx6AAAABnRSTlMAePcGbmQJmR1bAAAASElEQVR42u3UsQEAMQzCQBsc9h/5Z1CT4mPVR0tt97OZH+kQ30lk5iMzn4G+1//UD/QW83xQE7roXTy6GLqQ8Rnju0fZtV3pA70eA9tmJIZOAAAAAElFTkSuQmCC"},function(e,n){e.exports="data:image/png;base64,UklGRrgEAABXRUJQVlA4WAoAAAAQAAAAEQEAVQAAQUxQSNADAAABf0CQbRs6QrNHREySSwJKtG2rjZwry1BczQyedTLqMDMzw6wXzgLVzN12mBNnmBEz2WEorsBUFeYUhUnFZHiD9/77ksK4Ivo/Afi/2M38it8FxDN//ArNPPl7YJB46h8iJ8csTphjlz4lpFOcIA6Imw44JIDV2yeE3du3b9dcVyba7SiuKxL17IqpNv1ARLcnDNv56cCaT9qFA14hoqdXSBu28zgO+Igon2SrPyby9rMqkFZxN/F9pg9IzLuKt0j095eIZ3BBhYTVZRKPEgaJp2ZMExH1JIALysQXRuGAikCLpOfJeJdjeI/M83WTJBxQJOMC1QCJGcyYJrHHjcAAyfcKqysmWiJlSem5mg0kfU1mz1EcXpEo2UnGpeHlKwZKsnFSeg6bUdTQKs2ItJq0SxTfk/H4kikfnrYewGpS17FO0scVRWlc5SmCdSPUBKBfl2FTFseZ2klIV1SUCqc6QnkARR3FgA1k6ZnEdhRIvzKchgj5wAXE/TPWF4VqoM+GUjZjwp2nvCTcG85KXba5KLQ2NzcHQEBBWAKsFpYDE9Id20vSMpsi8xxgnJETyvk6YFBIgUteIj0hxTHCehwAE6wJMyrCOUC6KDRZHEB8KYANQtJ0NB407HPWVIRMeLXAatMEawKAbpbHauKeAyAneBYbhCQAlFmN4V4AU4LvAgNRiQEoGoqsgWWZj/uEZeAlRo5iTxwF5oNPsgbDMgB9QgbAhojkAWDCQLyGncDI7RVSwqgQN60CMMjywig73lAD4D7heAAHRCTDRqUZgjo+JLhCt5Ay+C6AIaY+35ACsEFoBIBfwAl2qVEBYtbifAAYtcr82nnSBovq3yQ/mMRvEjlCTufj121GAINCQugWklK7MPSrhQqrh7ZbqBXGBVe6S+hlPVD/akyz81U5IcNmlJkPKSPcxyj+S6oFZgQzwXoc4R52gUBJAJ3E77XYICwVctW/iLx70XfBDDNazLpoMQCUhfYENlWE4y3SQrsDIF1qd6LVK/BgckLPPOBaIs8FMC5oay0wxegqB+lJomOiVQgpLRC1/EBEdB6ADquYzbBAXnOFiPx4pLIhYVIyJoEDbDKwyUrGpkhdEFaHxVIA4xbVVijpepwooRLSjLLKdwFkdZ5j97buOERqIiR0qY4DH1dVwy5d0vhutHJhzZhWtDvCCWXFPgSA+zWLEa0ZU5IfFE4oG3qSkDdWDPfGAsF7pqsQMZxQZN78wHDBtOAlYd5YEu6IIRg8LF2JyCG99dGdl8cQ5pZXmp+83IE2ve215t2HIfgTbmpu3jUX/48dVlA4IMIAAAAwEACdASoSAVYAPp1An0mlo6MhLRy4YLATiWlu4MAD+AMMAzAD7AL7TR0DeHohBRCCiEFD3Uz+RWtnnjcNqgon2zkh/pbitFuYkfyTOTrLKh6p50XWilIldmOvd0YrbOlcoUPc0wOBpmWnZF4QCDnoSd+GAeiM74Aq5XMXl76FfKS+TFUdBD6O3vAA+6v1Duy58O3bJ/++gfbHznw/+sQAAG/9+n0f+H20vPdFhNVPEpg/62Ue6M2zcfp5kuQAAAAAAA=="},function(e,n,t){e.exports=t.p+"static/media/aflaclogo.ebe95f97.png"},function(e,n,t){e.exports=t(14)},,,,,function(e,n,t){"use strict";t.r(n);var a=t(0),o=t.n(a),i=t(4),r=t.n(i),c=t(2),l=t(1),s=t(5),d=t.n(s),u=t(6),p=t.n(u);var A=function(e){var n=e.loginStatus,t=e.setLoginStatus,a=e.activeView,i=e.setActiveView,r=e.pageViewArray,c=null,s=[],u="Default"!==a?"hide-logo-span":"";if("Default"!==a){r.forEach((function(e){var n;n=e===a?o.a.createElement("button",{className:"nav-button active-view-button"},e):o.a.createElement("button",Object(l.a)({className:"nav-button",onClick:function(){f(e)}},"className","nav-button"),e),s.push(n)}));var A=o.a.createElement("button",Object(l.a)({className:"nav-button",onClick:function(){f("Default")}},"className","nav-button"),o.a.createElement("img",{src:p.a,alt:"Back Arrow",class:"left-arrow"}),"Back");s.push(A)}else s.push(null);function f(e){i(e)}return!0===n&&(c=o.a.createElement("div",{className:"sign-out-cluster"},o.a.createElement("button",{className:"sign-out",onClick:function(){t(!1),i("Default")}},"Sign Out"))),o.a.createElement("div",{className:"navigation-bar"},o.a.createElement("style",null,"\n        .navigation-bar {\n          position: fixed;\n          top: 0px;\n          left: 0px;\n          width: 100%;\n          overflow: hidden;\n          z-index: 1;\n          font-family: 'Montserrat', sans-serif;\n          background-color: #ffffff;\n          transition: height 1s;\n        }\n        .navigation-buttons-span {\n          color: #00A5E6;\n          background-color: #fffffff;\n          width: 100%;\n          height: 50px;\n          display: flex;\n          justify-content: space-between;\n          overflow: hidden;\n        }\n        .navigation-bar-logo-span{\n          background-color: #00A5E6;\n          height: 100px;\n          width: 100%;\n          overflow:hidden;\n        }\n        .hide-logo-span {\n          height: 1px;\n        }\n        .nav-cluster {\n          display: flex;\n          flex-flow: row nowrap;\n          justify-content: flex-end;\n          margin-right:20px;\n        }\n\n        .nav-button {\n          color: #00A5E6;\n          border: solid 0px rgba(0,0,0,0);\n          background-color: rgba(255,255,255,1);\n          transition: background-color .2s;\n        }\n        .nav-button:hover {\n          background-color: #00A5E6;\n          color: #fff;\n        }\n        .nav-button:first-child {\n          width: 50px;\n          display: block;\n          background: #F89728;\n          color: #fff\n        }\n\n        .nav-button .left-arrow {\n          display: block;\n          width: 30px;\n          height: 30px;\n          background: url(/static/media/navigation_arrow_left.png) no-repeat contain;\n        }\n\n        .active-view-button{\n          background-color: #00A5E6;\n          color: white;\n        }\n\n        .sign-out-cluster{\n          display: flex;\n          flex-flow: row nowrap;\n          justify-content: flex-end;\n          width: 200px;\n        }\n        .login-status{\n          color: #F89728;\n          margin-top:auto;\n          margin-bottom:auto;\n        }\n        .sign-out {\n          background-color: #00A5E6;\n          color: rgba(255,255,255,1);\n          border: solid 0px rgba(0,0,0,0);\n          transition: background-color .2s;\n        }\n        .sign-out:hover{\n          background-color: rgba(250,250,250,1);\n          color: #00A5E6;\n        }\n        #aflac-brand-image{\n          display: block;\n          height: 200px;\n          width: auto;\n          margin: 10px -60px 0px;\n          float: right;\n        } \n      "),o.a.createElement("div",{className:"navigation-buttons-span"},o.a.createElement("div",{className:"nav-cluster"},s[4],s[0],s[1],s[2],s[3]),c),o.a.createElement("div",{className:"navigation-bar-logo-span ".concat(u)},o.a.createElement("img",{src:d.a,alt:"Aflac Duck",id:"aflac-brand-image"})))},f=t(7),g=t.n(f),m=t(8),h=t.n(m);var b=function(e){var n=e.setLoginStatus,t=(e.loginStatus,null),a=null;return o.a.createElement("div",null,o.a.createElement("div",{className:"container"},o.a.createElement("div",{className:"loginCard"},o.a.createElement("form",{onSubmit:function(e){e.preventDefault(),"1"===a.value&&"admin"===t.value?n(!0):n(!1),t.value="",a.value=""}},o.a.createElement("div",{className:"header"},"Please log in to continue..."),o.a.createElement("div",{className:"inputFields form-group"},o.a.createElement("input",{type:"text",id:"username",placeholder:"username",required:"",className:"form-control",ref:function(e){t=e}}),o.a.createElement("input",{type:"password",id:"password",placeholder:"password",required:"",className:"form-control",ref:function(e){a=e}}),o.a.createElement("div",{className:"buttonWrapper"},o.a.createElement("button",{className:"loginButton  btn btn-submit",type:"submit"},"Login"))))),o.a.createElement("p",{className:"loginIssue"},"Having trouble logging in? Please reach out ot the team at Theorem and we'll assist you further."),o.a.createElement("img",{src:g.a,alt:"Theorem Advertising Logo",className:"theoremPicture"}),o.a.createElement("img",{src:h.a,alt:"Aflac Advertising Logo",className:"aflacPicture"})),o.a.createElement("style",null,"\n        .container{\n          align-items: center;\n          display: flex;\n          flex-direction: column;\n          font-family: 'Montserrat', sans-serif;\n       \n        }\n        .loginIssue{\n          font-size: 14px;\n          font-style: italic;\n          color: #A0A0A0;\n        }\n        .theoremPicture{\n          justify-content: center;\n          max-width: 120px; \n        }\n        .aflacPicture{\n          justify-content: center;\n          max-width: 120px; \n        }\n        .loginCard {\n          align-content: center;\n          border-color: #00A5E6;\n          border-style: solid;\n          border-width: 1px;\n          display: flex;\n          height: 325px;\n          width: 280px;\n          justify-content: center;\n          margin: 20px;\n          overflow: hidden;\n          position: relative;\n        }\n        .inputFields{\n          display: flex;\n          flex-direction: column;\n          align-items: center;\n          justify-content: center;\n          margin-top: 60px;\n          padding: 10px;\n          position: relative; \n          top: 65px;\n        }\n        .inputFields input {\n          margin: 5px;\n        }\n        .inputFields div {\n          justify\n        }\n        .header{\n          align-items: center;\n          background-color: #00A5E6;\n          color: white;\n          display: flex;\n          height: 100px;  \n          justify-content: center;\n          left: 0px;\n          padding: 15%;\n          position: absolute; \n          top: 0px;\n          width: 100%;\n          font-size: 24px;\n        }\n        .loginButton{\n          background-color: rgba(248,140,0,1);\n          color: white;\n          display: block;\n          align-items: center;\n          justify-content: center;\n          padding: 10px;\n          width: 75px;\n          position: absolute; \n        }\n        .buttonWrapper{\n          display: flex;\n          align-content: center;\n          justify-content: center;\n          margin: 5px;\n        }\n      "))};var w=function(e){var n=e.data,t=e.setActiveView;return o.a.createElement("div",{onClick:function(){var e;e=n.header,t(e)},className:"card"},o.a.createElement("h1",{className:"title"},n.header),o.a.createElement("style",null,"\n                .card {\n                    border: 1px solid #00A5E6;\n                    font-family: 'Montserrat', sans-serif;\n                    overflow: hidden;\n                    transition: all .2s ease-in-out;\n                    height: 150px;\n                    background: #00A5E6;\n                    display: flex;\n                    flex-direction: column;\n                    justify-content: center;\n                    margin: 15px;\n                    width: 25%;\n                }\n                .card:hover{\n                    box-shadow: 0 5px 10px #0068A7; \n                    transform: scale(1.05);\n                }\n                .title{\n                    font-size: 24px;\n                    text-align: center; \n                    color: #fff;\n                }\n                "))},v={groupId:"e28872e3-b32a-4143-baa6-cd2eda51e440",reportIds:{b2b:"8fa96659-276a-4c98-89d9-ce6ee43a3f52",b2c:"9d631a9d-d6a6-4d1a-a224-afe297b22a23",agent:"4e290b38-2f46-4095-a395-3e109108a768",ABtest:"ABtestid"},autoAuth:!0,ctid:"fd9c8b21-1bba-4282-82b4-5f896cfccc0d",config:"eyJjbHVzdGVyVXJsIjoiaHR0cHM6Ly93YWJpLXVzLXdlc3QyLXJlZGlyZWN0LmFuYWx5c2lzLndpbmRvd3MubmV0LyJ9"};var E=function(e){e.report;var n,t=e.activeView,a=(e.pageViewArray,v.groupId),i=v.autoAuth,r=v.ctid,c=v.config;switch(t){case"Business to Consumer":n="https://app.powerbi.com/reportEmbed?reportId=".concat(v.reportIds.b2b,"&groupId=").concat(a,"&autoAuth=").concat(i,"&ctid=").concat(r,"&config=").concat(c);break;case"Business to Business":n="https://app.powerbi.com/reportEmbed?reportId=".concat(v.reportIds.b2c,"&groupId=").concat(a,"&autoAuth=").concat(i,"&ctid=").concat(r,"&config=").concat(c);break;case"Agent":n="https://app.powerbi.com/reportEmbed?reportId=".concat(v.reportIds.agent,"&groupId=").concat(a,"&autoAuth=").concat(i,"&ctid=").concat(r,"&config=").concat(c);break;case"A/B Testing":n="http://www.youtube.com/embed/ZvQEHLA1o8M"}return o.a.createElement("div",{className:"frameDiv"},o.a.createElement("iframe",{src:n,width:"100%",height:"100%",frameborder:"0",allowfullscreen:!0}),o.a.createElement("style",null,"\n      .frameDiv{\n        justify-content: center;\n        display: flex;\n        align-items: center;\n        width: ".concat(window.innerWidth,"px;\n        height: ").concat(window.innerHeight-50,"px;\n        overflow-y: scroll;\n        overflow-x: hidden;\n      }\n      ")))};var x=function(e){var n,t,a,i=e.setLoginStatus,r=e.loginStatus,c=e.activeView,l=e.setActiveView,s=e.pageViewArray,d=e.reportArray,u=[{header:s[0],info:"Business to Consumer Data"},{header:s[1],info:"Business to Business Data"},{header:s[2],info:"Agent Data"},{header:s[3],info:"A/B Testing Data"}],p=[{screen:d[0]}];return r?!0===r&&"Default"===c?t=o.a.createElement("div",{className:"card-holder"},o.a.createElement(w,{data:u[0],setActiveView:l}),o.a.createElement(w,{data:u[1],setActiveView:l}),o.a.createElement(w,{data:u[2],setActiveView:l}),o.a.createElement(w,{data:u[3],setActiveView:l}),o.a.createElement("style",null,"\n      .card-holder {\n        display: flex;\n        flex-wrap: wrap;\n        max-width: 700px;\n        margin: 0px auto;\n      }\n      ")):!0===r&&"Default"!==c&&(a=o.a.createElement("div",{className:"frame-holder"},o.a.createElement(E,{report:p[0],activeView:c}),o.a.createElement("style",null,"\n        .frame-holder {\n        display: flex;\n       flex-wrap: wrap;\n       justify-content: center;\n        }\n        "))):n=o.a.createElement(b,{loginStatus:r,setLoginStatus:i}),o.a.createElement("div",null,n,t,a)};var y=function(){var e=o.a.useState(!1),n=Object(c.a)(e,2),t=n[0],a=n[1],i=o.a.useState("Default"),r=Object(c.a)(i,2),l=r[0],s=r[1],d=["Business to Consumer","Business to Business","Agent","A/B Testing"],u="Default"===l?"150":"50";return o.a.createElement("div",null,o.a.createElement("style",null,"\n        .display-space{\n        margin-top: ".concat(u,"px;\n        }\n      ")),o.a.createElement(A,{loginStatus:t,setLoginStatus:a,activeView:l,setActiveView:s,pageViewArray:d}),o.a.createElement("div",{className:"display-space"},o.a.createElement(x,{loginStatus:t,setLoginStatus:a,activeView:l,setActiveView:s,pageViewArray:d,reportArray:["Bi testing"]})))};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(y,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}],[[9,1,2]]]);
  //# sourceMappingURL=main.2a4f123e.chunk.js.map