{"ast":null,"code":"var TRACK_BG = 'rgba(222, 222, 222, .75)';\nvar THUMB_BG = 'rgba(0, 0, 0, .5)';\nvar SCROLLBAR_STYLE = \"\\n[data-scrollbar] {\\n  display: block;\\n  position: relative;\\n}\\n\\n.scroll-content {\\n  -webkit-transform: translate3d(0, 0, 0);\\n          transform: translate3d(0, 0, 0);\\n}\\n\\n.scrollbar-track {\\n  position: absolute;\\n  opacity: 0;\\n  z-index: 1;\\n  background: \" + TRACK_BG + \";\\n  -webkit-user-select: none;\\n     -moz-user-select: none;\\n      -ms-user-select: none;\\n          user-select: none;\\n  -webkit-transition: opacity 0.5s 0.5s ease-out;\\n          transition: opacity 0.5s 0.5s ease-out;\\n}\\n.scrollbar-track.show,\\n.scrollbar-track:hover {\\n  opacity: 1;\\n  -webkit-transition-delay: 0s;\\n          transition-delay: 0s;\\n}\\n\\n.scrollbar-track-x {\\n  bottom: 0;\\n  left: 0;\\n  width: 100%;\\n  height: 8px;\\n}\\n.scrollbar-track-y {\\n  top: 0;\\n  right: 0;\\n  width: 8px;\\n  height: 100%;\\n}\\n.scrollbar-thumb {\\n  position: absolute;\\n  top: 0;\\n  left: 0;\\n  width: 8px;\\n  height: 8px;\\n  background: \" + THUMB_BG + \";\\n  border-radius: 4px;\\n}\\n\";\nvar STYLE_ID = 'smooth-scrollbar-style';\nvar isStyleAttached = false;\nexport function attachStyle() {\n  if (isStyleAttached || typeof window === 'undefined') {\n    return;\n  }\n  var styleEl = document.createElement('style');\n  styleEl.id = STYLE_ID;\n  styleEl.textContent = SCROLLBAR_STYLE;\n  document.head.appendChild(styleEl);\n  isStyleAttached = true;\n}\nexport function detachStyle() {\n  if (!isStyleAttached || typeof window === 'undefined') {\n    return;\n  }\n  var styleEl = document.getElementById(STYLE_ID);\n  if (!styleEl || !styleEl.parentNode) {\n    return;\n  }\n  styleEl.parentNode.removeChild(styleEl);\n  isStyleAttached = false;\n}","map":{"version":3,"names":["TRACK_BG","THUMB_BG","SCROLLBAR_STYLE","STYLE_ID","isStyleAttached","attachStyle","window","styleEl","document","createElement","id","textContent","head","appendChild","detachStyle","getElementById","parentNode","removeChild"],"sources":["C:\\Users\\user\\Desktop\\000newport\\node_modules\\smooth-scrollbar\\src\\style.ts"],"sourcesContent":["const TRACK_BG = 'rgba(222, 222, 222, .75)';\nconst THUMB_BG = 'rgba(0, 0, 0, .5)';\n\nconst SCROLLBAR_STYLE = `\n[data-scrollbar] {\n  display: block;\n  position: relative;\n}\n\n.scroll-content {\n  -webkit-transform: translate3d(0, 0, 0);\n          transform: translate3d(0, 0, 0);\n}\n\n.scrollbar-track {\n  position: absolute;\n  opacity: 0;\n  z-index: 1;\n  background: ${TRACK_BG};\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  -webkit-transition: opacity 0.5s 0.5s ease-out;\n          transition: opacity 0.5s 0.5s ease-out;\n}\n.scrollbar-track.show,\n.scrollbar-track:hover {\n  opacity: 1;\n  -webkit-transition-delay: 0s;\n          transition-delay: 0s;\n}\n\n.scrollbar-track-x {\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  height: 8px;\n}\n.scrollbar-track-y {\n  top: 0;\n  right: 0;\n  width: 8px;\n  height: 100%;\n}\n.scrollbar-thumb {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 8px;\n  height: 8px;\n  background: ${THUMB_BG};\n  border-radius: 4px;\n}\n`;\n\nconst STYLE_ID = 'smooth-scrollbar-style';\nlet isStyleAttached = false;\n\nexport function attachStyle() {\n  if (isStyleAttached || typeof window === 'undefined') {\n    return;\n  }\n\n  const styleEl = document.createElement('style');\n  styleEl.id = STYLE_ID;\n  styleEl.textContent = SCROLLBAR_STYLE;\n\n  document.head.appendChild(styleEl);\n\n  isStyleAttached = true;\n}\n\nexport function detachStyle() {\n  if (!isStyleAttached || typeof window === 'undefined') {\n    return;\n  }\n\n  const styleEl = document.getElementById(STYLE_ID);\n\n  if (!styleEl || !styleEl.parentNode) {\n    return;\n  }\n\n  styleEl.parentNode.removeChild(styleEl);\n\n  isStyleAttached = false;\n}\n"],"mappings":"AAAA,IAAMA,QAAQ,GAAG,0BAA0B;AAC3C,IAAMC,QAAQ,GAAG,mBAAmB;AAEpC,IAAMC,eAAe,GAAG,iRAeRF,QAAQ,uoBAiCRC,QAAQ,kCAGvB;AAED,IAAME,QAAQ,GAAG,wBAAwB;AACzC,IAAIC,eAAe,GAAG,KAAK;AAE3B,OAAM,SAAAC,YAAA;EACJ,IAAID,eAAe,IAAI,OAAOE,MAAM,KAAK,WAAW,EAAE;IACpD;EACF;EAEA,IAAMC,OAAO,GAAGC,QAAQ,CAACC,aAAa,CAAC,OAAO,CAAC;EAC/CF,OAAO,CAACG,EAAE,GAAGP,QAAQ;EACrBI,OAAO,CAACI,WAAW,GAAGT,eAAe;EAErCM,QAAQ,CAACI,IAAI,CAACC,WAAW,CAACN,OAAO,CAAC;EAElCH,eAAe,GAAG,IAAI;AACxB;AAEA,OAAM,SAAAU,YAAA;EACJ,IAAI,CAACV,eAAe,IAAI,OAAOE,MAAM,KAAK,WAAW,EAAE;IACrD;EACF;EAEA,IAAMC,OAAO,GAAGC,QAAQ,CAACO,cAAc,CAACZ,QAAQ,CAAC;EAEjD,IAAI,CAACI,OAAO,IAAI,CAACA,OAAO,CAACS,UAAU,EAAE;IACnC;EACF;EAEAT,OAAO,CAACS,UAAU,CAACC,WAAW,CAACV,OAAO,CAAC;EAEvCH,eAAe,GAAG,KAAK;AACzB"},"metadata":{},"sourceType":"module","externalDependencies":[]}