{"version":3,"file":"views/therapists/show+desktop.d9b3a95e5779c9f17b65.js","mappings":"yIAGEA,E,SAAAA,KAEAC,SAASC,iBAAiB,oBAAoB,KAC5C,MAAMC,EAAYC,iBAAiBH,SAASI,MAAMC,iBAAiB,qBAAqBC,OAClFC,EAAiBP,SAASQ,cAAc,uBACxCC,EAAcT,SAASQ,cAAc,iBAE3C,IAAIE,sBACFC,IACEA,EAAQC,SAAQC,IACVA,EAAMC,eACRP,EAAeQ,UAAUC,OAAO,YAEhCT,EAAeQ,UAAUE,IAAI,WAC/B,GACA,GAEJ,CACEC,WAAY,IAAIhB,kBAElBiB,QAAQV,EAAY,G","sources":["webpack://platform/./app/assets/lib/therapist_profile/desktop.js"],"sourcesContent":["import startShared from './shared.js'\n\nexport default function () {\n startShared()\n\n document.addEventListener('DOMContentLoaded', () => {\n const marginTop = getComputedStyle(document.body).getPropertyValue('--body-margin-top').trim()\n const scrolledHeader = document.querySelector('#js__scrolledHeader')\n const observedEle = document.querySelector('#js__observed')\n\n new IntersectionObserver(\n entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n scrolledHeader.classList.remove('scrolled')\n } else {\n scrolledHeader.classList.add('scrolled')\n }\n })\n },\n {\n rootMargin: `-${marginTop} 0px 0px 0px`\n }\n ).observe(observedEle)\n })\n}\n"],"names":["startShared","document","addEventListener","marginTop","getComputedStyle","body","getPropertyValue","trim","scrolledHeader","querySelector","observedEle","IntersectionObserver","entries","forEach","entry","isIntersecting","classList","remove","add","rootMargin","observe"],"sourceRoot":""}