{"version":3,"sources":["pamphlets/APPROVED-What_is_an_Orthodontist_Flyer-NEW-LOGO-2011.pdf","pamphlets/Problems_Growing_Children-12-l.pdf","pamphlets/Problems-Watch-7yr-olds-09-l.pdf","pamphlets/Problems-to-Watch-Adults-r-l.pdf","pamphlets/AAO_Dental_Trauma_Flyer_FINAL-NEW-LOGO-2011.pdf","images/cloud_background.jpg","images/EHMadsen_web.jpg","images/grandparents_grandkids.jpg","images/EHMadsen_portrait_web.jpg","images/diane.jpg","images/julie.jpg","images/kristen.jpg","images/marie.jpg","images/office.jpg","controls/Layout.js","controls/Home.js","controls/FAQVideo.js","controls/Pamphlet.js","controls/About.js","controls/Contact.js","controls/Main.js","App.js","serviceWorker.js","index.js"],"names":["module","exports","__webpack_require__","p","navLink","display","path","displayState","Object","classCallCheck","this","Nav","_Component","props","_this","possibleConstructorReturn","getPrototypeOf","call","url","window","location","href","split","toLowerCase","state","loadPath","navLinks","setNav","Math","max","map","l","indexOf","inherits","createClass","key","value","navIndex","i","length","x","document","getElementById","className","_this2","react_default","a","createElement","id","onClick","toggleNav","index_es","icon","faBars","link","Link","to","Component","Footer","year","Date","getFullYear","title_background","require","dr_madsen","gp_gc","topic","name","description","Home","topics","faMagnet","faGlasses","faEyeSlash","faBandAid","faTooth","faSun","Container","fluid","Row","Col","style","backgroundImage","sm","md","lg","src","alt","t","faPiggyBank","rows","video","FAQVideo","videos","currentVideo","setState","faQuestionCircle","ReactPlayer_default","pamphlet","title","file","Pamphlet","_getPrototypeOf2","_len","arguments","args","Array","_key","apply","concat","pdfs","pdf1","pdf2","pdf3","pdf4","pdf5","list-style","class","target","rel","faBook","ehMadsen","diane","julie","kristen","marie","About","med","office","Contact","width","height","Main","Switch","Route","exact","component","default","App","Layout_Nav","Main_Main","Layout_Footer","isLocalhost","Boolean","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","controller","console","log","onUpdate","onSuccess","catch","error","ReactDOM","render","BrowserRouter","src_App_0","URL","process","origin","addEventListener","fetch","response","contentType","headers","get","status","ready","unregister","reload","checkValidServiceWorker"],"mappings":"4EAAAA,EAAAC,QAAiBC,EAAAC,EAAuB,qGCAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,+ECAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,6ECAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,6ECAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,qJCAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,iECAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,6DCAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,uECAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,sECAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,sDCAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,sDCAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,wDCAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,sDCAxCH,EAAAC,QAAiBC,EAAAC,EAAuB,yNCKlCC,EACJ,SAAAA,EAAYC,EAASC,EAAMC,GAAeC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,GACxCM,KAAKL,QAAUA,EACfK,KAAKJ,KAAOA,EACZI,KAAKH,aAAeA,GAOXI,EAAb,SAAAC,GAGE,SAAAD,EAAYE,GAAO,IAAAC,EAAAN,OAAAC,EAAA,EAAAD,CAAAE,KAAAC,GACjBG,EAAAN,OAAAO,EAAA,EAAAP,CAAAE,KAAAF,OAAAQ,EAAA,EAAAR,CAAAG,GAAAM,KAAAP,KAAMG,IAEN,IAAIK,EAAMC,OAAOC,SAASC,KAAKC,MAAM,KAAK,GAAGC,cAH5B,OAIjBT,EAAKU,MAAQ,CACXC,SAAU,IAAMP,EAAII,MAAM,KAAK,GAC/BI,SAAU,CACR,IAAItB,EAAQ,OAAQ,IAAK,IACzB,IAAIA,EAAQ,aAAc,YAAa,IACvC,IAAIA,EAAQ,YAAa,YAAa,IACtC,IAAI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C,SAASJ,GACTK,KAAK,SAAAC,GACJA,EAAaC,cAAgB,WAC3B,IAAMC,EAAmBF,EAAaG,WACd,MAApBD,IAGJA,EAAiBE,cAAgB,WACA,cAA3BF,EAAiBnI,QACf6H,UAAUC,cAAcQ,YAI1BC,QAAQC,IACN,gHAKEZ,GAAUA,EAAOa,UACnBb,EAAOa,SAASR,KAMlBM,QAAQC,IAAI,sCAGRZ,GAAUA,EAAOc,WACnBd,EAAOc,UAAUT,UAO5BU,MAAM,SAAAC,GACLL,QAAQK,MAAM,4CAA6CA,KCzFjEC,IAASC,OACPzH,EAAAC,EAAAC,cAACwH,EAAA,EAAD,KACE1H,EAAAC,EAAAC,cAACyH,GAAD,OAEF/H,SAASC,eAAe,SDWnB,SAAkB0G,GACvB,GAA6C,kBAAmBC,UAAW,CAGzE,GADkB,IAAIoB,IAAIC,GAAwBvJ,OAAOC,SAASC,MACpDsJ,SAAWxJ,OAAOC,SAASuJ,OAIvC,OAGFxJ,OAAOyJ,iBAAiB,OAAQ,WAC9B,IAAMzB,EAAK,GAAAtC,OAAM6D,GAAN,sBAEP5B,IAgEV,SAAiCK,EAAOC,GAEtCyB,MAAM1B,GACHK,KAAK,SAAAsB,GAEJ,IAAMC,EAAcD,EAASE,QAAQC,IAAI,gBAEnB,MAApBH,EAASI,QACO,MAAfH,IAA8D,IAAvCA,EAAY/I,QAAQ,cAG5CqH,UAAUC,cAAc6B,MAAM3B,KAAK,SAAAC,GACjCA,EAAa2B,aAAa5B,KAAK,WAC7BrI,OAAOC,SAASiK,aAKpBnC,GAAgBC,EAAOC,KAG1Be,MAAM,WACLJ,QAAQC,IACN,mEArFAsB,CAAwBnC,EAAOC,GAI/BC,UAAUC,cAAc6B,MAAM3B,KAAK,WACjCO,QAAQC,IACN,+GAMJd,GAAgBC,EAAOC,MCjC/BE","file":"static/js/main.f047d8e8.chunk.js","sourcesContent":["module.exports = __webpack_public_path__ + \"static/media/APPROVED-What_is_an_Orthodontist_Flyer-NEW-LOGO-2011.919e0afb.pdf\";","module.exports = __webpack_public_path__ + \"static/media/Problems_Growing_Children-12-l.335dabb5.pdf\";","module.exports = __webpack_public_path__ + \"static/media/Problems-Watch-7yr-olds-09-l.7b250bad.pdf\";","module.exports = __webpack_public_path__ + \"static/media/Problems-to-Watch-Adults-r-l.bd36b55b.pdf\";","module.exports = __webpack_public_path__ + \"static/media/AAO_Dental_Trauma_Flyer_FINAL-NEW-LOGO-2011.feff7a13.pdf\";","module.exports = __webpack_public_path__ + \"static/media/cloud_background.27959bd5.jpg\";","module.exports = __webpack_public_path__ + \"static/media/EHMadsen_web.b661b579.jpg\";","module.exports = __webpack_public_path__ + \"static/media/grandparents_grandkids.715b5a17.jpg\";","module.exports = __webpack_public_path__ + \"static/media/EHMadsen_portrait_web.725292c5.jpg\";","module.exports = __webpack_public_path__ + \"static/media/diane.3e910d82.jpg\";","module.exports = __webpack_public_path__ + \"static/media/julie.d5d37b32.jpg\";","module.exports = __webpack_public_path__ + \"static/media/kristen.1c415b0e.jpg\";","module.exports = __webpack_public_path__ + \"static/media/marie.67a4dd43.jpg\";","module.exports = __webpack_public_path__ + \"static/media/office.192b2dff.jpg\";","import React, { Component } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { faBars } from \"@fortawesome/free-solid-svg-icons\";\r\n\r\nclass navLink {\r\n constructor(display, path, displayState) {\r\n this.display = display;\r\n this.path = path;\r\n this.displayState = displayState;\r\n }\r\n display;\r\n path;\r\n displayState;\r\n}\r\n\r\nexport class Nav extends Component {\r\n\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n var url = window.location.href.split(\"?\")[0].toLowerCase();\r\n this.state = {\r\n loadPath: \"/\" + url.split(\"/\")[3],\r\n navLinks: [\r\n new navLink(\"Home\", \"/\", \"\"),\r\n new navLink(\"FAQ Videos\", \"/faqvideo\", \"\"),\r\n new navLink(\"Pamphlets\", \"/pamphlet\", \"\"),\r\n new navLink(\"About\", \"/about\", \"\"),\r\n new navLink(\"Contact\", \"/contact\", \"\")\r\n ]\r\n };\r\n\r\n this.setNav(\r\n Math.max(this.state.navLinks.map(l => l.path).indexOf(this.state.loadPath), 0)\r\n );\r\n }\r\n\r\n setNav(navIndex) {\r\n for (var i = 0; i < this.state.navLinks.length; i++) {\r\n this.state.navLinks[i].displayState = navIndex === i ? \"active\" : \"\";\r\n }\r\n }\r\n\r\n toggleNav() {\r\n var x = document.getElementById(\"TopNav\");\r\n if (x.className === \"topnav\") {\r\n x.className += \" responsive\";\r\n } else {\r\n x.className = \"topnav\";\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n
\r\n this.toggleNav()}\r\n >\r\n Menu\r\n \r\n {this.state.navLinks.map((link, i) => (\r\n this.setNav(i)}\r\n className={link.displayState}\r\n >\r\n {link.display}\r\n \r\n ))}\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport const Footer = () => {\r\n const year = new Date().getFullYear();\r\n return
©{year}
;\r\n};\r\n","import React, { Component } from \"react\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport {\r\n faTooth,\r\n faEyeSlash,\r\n faGlasses,\r\n faMagnet,\r\n faSun,\r\n faBandAid,\r\n faPiggyBank\r\n} from \"@fortawesome/free-solid-svg-icons\";\r\n// import { Button } from \"react-bootstrap\";\r\n\r\nconst title_background = require(\"../images/cloud_background.jpg\");\r\nconst dr_madsen = require(\"../images/EHMadsen_web.jpg\");\r\nconst gp_gc = require(\"../images/grandparents_grandkids.jpg\");\r\n\r\nclass topic {\r\n constructor(icon, name, description) {\r\n this.icon = icon;\r\n this.name = name;\r\n this.description = description;\r\n }\r\n\r\n icon;\r\n name;\r\n description;\r\n}\r\n\r\nexport class Home extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.topics = [\r\n new topic(\r\n faMagnet,\r\n \"Metal Braces\",\r\n \"Conventional metal bands, brackets and wires provide the most accurate control of smile shapes and tooth positions.\"\r\n ),\r\n new topic(\r\n faGlasses,\r\n \"Tooth-colored Braces\",\r\n \"Crystal materials provide the same precise treatment control as metal, and are less noticeable.\"\r\n ),\r\n new topic(\r\n faEyeSlash,\r\n \"Clear Custom Alignment Trays (CATS)\",\r\n \"A series of virtually invisible clear plastic trays can gradually straighten teeth to achieve a beautiful smile.\"\r\n ),\r\n new topic(\r\n faBandAid,\r\n \"Orthopedic Appliance\",\r\n \"Anv assortment of fixed metal and removable plastic appliances help the facial and jaw bones grow in to the best positions.\"\r\n ),\r\n new topic(\r\n faTooth,\r\n \"Retainer\",\r\n \"We use a variety of retainers both to hold or make small adjustments to tooth positions.\"\r\n ),\r\n new topic(\r\n faSun,\r\n \"Whitening\",\r\n \"We offer custom bleaching trays and gel to whiten teeth. Many patients use our clear custom retainers as trays.\"\r\n )\r\n ];\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n \r\n

Welcome to Brighter Smiles!

\r\n

Your Orthodontic Specialists

\r\n \r\n
\r\n \r\n \r\n \r\n \"Dr\r\n \r\n \r\n

\r\n Dr. Erik H. Madsen is a specialist in{\" \"}\r\n dentofacial orthopedic treatment and{\" \"}\r\n orthodontic treatment. Dentofacial orthopedic treatment\r\n adjusts the sizes and positions of the jaw bones which form the\r\n foundation of a great smile. Orthodontic treatment straightens the\r\n teeth.\r\n

\r\n

\r\n By combining both kinds of treatments, he can achieve the best\r\n appearance and long term results. He and his staff have been\r\n creating Brighter Smiles and beautiful faces for over 35 years, in\r\n Salt Lake City, Cottonwood Heights and Sandy, Utah. They treat\r\n children, teens, and adults.\r\n

\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n

State of the Art Technology

\r\n

\r\n Combining technical excellence with friendly personalized\r\n service is our specialty. We listen to you, teach you, and\r\n help you to understand all aspects of your individualized\r\n treatment plan and treatment process. If you have seen\r\n something that you are interested in using for your treatment,\r\n ask us about it!\r\n

\r\n \r\n
\r\n \r\n {this.topics.map(t => (\r\n \r\n \r\n
\r\n {t.name}\r\n

{t.description}

\r\n {/* */}\r\n \r\n ))}\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n

Contact us today for a free consultation!

\r\n \r\n \r\n

\r\n There is no charge for your first visit, which includes{\" \"}\r\n x-rays, exam, and consultation. We will help you to\r\n understand the treatment options and decide on the best one for\r\n you.\r\n

\r\n

\r\n To schedule an initial consultation, call us at{\" \"}\r\n (801)943-2700 or send us an email\r\n at{\" \"}\r\n \r\n {\" \"}\r\n reception@brightersmilesbraces.com\r\n \r\n .\r\n

\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n

\r\n {\" \"}\r\n Financing Available\r\n

\r\n

\r\n We will work with you to make your treatment affordable. We\r\n accept most insurance plans and we offer a variety of\r\n financing options.\r\n

\r\n \r\n \r\n \"Grand\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from \"react\";\r\nimport ReactPlayer from \"react-player\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\r\nimport { faQuestionCircle } from \"@fortawesome/free-solid-svg-icons\";\r\n\r\nclass video {\r\n constructor(display, id) {\r\n this.display = display;\r\n this.id = id;\r\n }\r\n display;\r\n id;\r\n}\r\n\r\nexport class FAQVideo extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { currentVideo: \"40668464\" };\r\n }\r\n\r\n url = \"https://vimeo.com/\";\r\n videos = [\r\n new video(\"Why an Orthodontist?\", 40668464),\r\n new video(\"What to Eat While Wearing Braces\", 40747848),\r\n new video(\r\n \"Everyone Deserves Straight Teeth and a Beautiful Smile\",\r\n 40619467\r\n ),\r\n new video(\"Brushing and Flossing With Braces\", 40747736),\r\n new video(\"Braces Are Far More Attractive Than Crooked Teeth\", 40747918),\r\n new video(\"Braces Are Affordable and Convenient\", 40669722)\r\n ];\r\n render() {\r\n return (\r\n \r\n \r\n \r\n

Frequently Asked Questions

\r\n \r\n
\r\n \r\n \r\n {this.videos.map(video => (\r\n
\r\n this.setState({ currentVideo: video.id })}\r\n >\r\n {video.display}\r\n \r\n
\r\n ))}\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n","import React, { Component } from 'react';\r\nimport { Container, Row, Col } from 'react-bootstrap';\r\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\r\nimport { faBook } from '@fortawesome/free-solid-svg-icons';\r\n\r\nimport pdf1 from '../pamphlets/APPROVED-What_is_an_Orthodontist_Flyer-NEW-LOGO-2011.pdf';\r\nimport pdf2 from '../pamphlets/Problems_Growing_Children-12-l.pdf';\r\nimport pdf3 from '../pamphlets/Problems-Watch-7yr-olds-09-l.pdf';\r\nimport pdf4 from '../pamphlets/Problems-to-Watch-Adults-r-l.pdf';\r\nimport pdf5 from '../pamphlets/AAO_Dental_Trauma_Flyer_FINAL-NEW-LOGO-2011.pdf';\r\n\r\nclass pamphlet {\r\n constructor(title, file) {\r\n this.title = title;\r\n this.file = file;\r\n }\r\n title;\r\n file;\r\n}\r\n\r\nexport class Pamphlet extends Component {\r\n pdfs = [\r\n new pamphlet('What is an Orthodontists?', pdf1),\r\n new pamphlet('The Right Time for an Orthodontic Check-Up: No Later than Age 7', pdf2),\r\n new pamphlet('American Association of Orthodontists Recommendation For Orthodontic Check-Ups No Later than Age 7',\r\n pdf3),\r\n new pamphlet('The American Association of Orthodontists Recommends Treatment for Adults, When Appropriate, in Conjunction with Regular Dental Care',\r\n pdf4),\r\n new pamphlet('Prevent Accidents: But Know What To Do If One Occurs', pdf5),\r\n ];\r\n\r\n render() {\r\n return (\r\n \r\n \r\n

Pamphlets & Information

\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
);\r\n }\r\n}\r\n","import React from \"react\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\n\r\nconst ehMadsen = require(\"../images/EHMadsen_portrait_web.jpg\");\r\nconst diane = require(\"../images/diane.jpg\");\r\nconst julie = require(\"../images/julie.jpg\");\r\nconst kristen = require(\"../images/kristen.jpg\");\r\nconst marie = require(\"../images/marie.jpg\")\r\n\r\nexport const About = () => {\r\n return (\r\n \r\n \r\n \r\n

About Us

\r\n \r\n
\r\n \r\n \r\n {\" \"}\r\n \r\n \r\n \"Dr.\r\n \r\n \r\n

\r\n Dr. Madsen received his Dental degree from the University of\r\n Washington, and his degree as an Orthodontic Specialist from Loma\r\n Linda University. He has extensive post doctoral education and\r\n experience in treating normal an unusual conditions.\r\n

\r\n

\r\n He was a founding member of the Pediatric Dental Residency Program\r\n at Primary Children's Medical Center (PCMC). He was the Orthodontic\r\n Director there for over a decade. He was also a founding member of\r\n the Craniofacial Panel at PCMC.\r\n

\r\n

\r\n Most of our team has been working together for many years. We love\r\n what we do and find great satisfaction in knowing our patient's\r\n needs and taking great care of them.\r\n

\r\n \r\n \r\n {\" \"}\r\n \r\n
\r\n\r\n \r\n \r\n \r\n \r\n

\r\n Our wonderful staff is devoted to helping you find your\r\n beautiful smile!\r\n

\r\n \r\n
\r\n \r\n \r\n \"Dr\r\n \r\n \r\n \"Dr\r\n \r\n \r\n \"Dr\r\n \r\n \r\n \"Dr\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import React from \"react\";\r\nimport { Container, Row, Col } from \"react-bootstrap\";\r\n\r\nconst office = require(\"../images/office.jpg\");\r\n\r\nexport const Contact = () => {\r\n return (\r\n \r\n \r\n \r\n

Contact Us

\r\n \r\n
\r\n \r\n \r\n \"Dr.\r\n

\r\n Erik Madsen\r\n
\r\n D.D.S., M.S.\r\n

\r\n 10315 South 1300 East\r\n
\r\n Sandy, UT 84094\r\n
\r\n Phone: (801)943-2700\r\n
\r\n E-mail:{\" \"}\r\n \r\n reception@brightersmilesbraces.com\r\n \r\n
\r\n Fax: (801)495-2771\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n View{\" \"}\r\n \r\n Erik Madsen, D.D.S., M.S.\r\n {\" \"}\r\n in a larger map\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import React, { Component } from 'react';\r\nimport { Switch, Route } from 'react-router-dom';\r\nimport { Home } from './Home';\r\nimport { FAQVideo } from './FAQVideo';\r\nimport { Pamphlet } from './Pamphlet';\r\nimport { About } from './About';\r\nimport { Contact } from './Contact'\r\n\r\nexport class Main extends Component {\r\n render() {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n}","import \"bootstrap/dist/css/bootstrap.css\";\r\nimport React, { Component } from \"react\";\r\nimport { Nav, Footer } from \"./controls/Layout\";\r\nimport { Main } from \"./controls/Main\";\r\n\r\nimport \"./App.css\";\r\n\r\nclass App extends Component {\r\n render() {\r\n return (\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default App;\r\n","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read http://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit http://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See http://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport { BrowserRouter } from \"react-router-dom\";\r\nimport \"./index.css\";\r\nimport App from \"./App\";\r\nimport * as serviceWorker from \"./serviceWorker\";\r\n\r\nReactDOM.render(\r\n \r\n \r\n ,\r\n document.getElementById(\"root\")\r\n);\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: http://bit.ly/CRA-PWA\r\nserviceWorker.register();\r\n"],"sourceRoot":""}