PageSourceSearch

https://riflepaperco.com/cdn/shop/t/469/assets/bundled-scroll-to-top.directive.js

js riflepaperco.com collected 2026-09-24 17:12:33 UTC 883 bytes, 6 lines download raw bytes

1import { a as autobind } from './bundled-app.js';
2import { D as Directive } from './bundled-Directive.js';
3
4function e(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}class ScrollToTop extends Directive{onAppInit(){this.host.addEventListener("click",this.onClick);}onClick(){window.scrollTo({top:0,behavior:"smooth"});}}ScrollToTop.selector="[scroll-to-top]",function(e,t,o,r){var c,n=arguments.length,l=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var i=e.length-1;i>=0;i--)(c=e[i])&&(l=(n<3?c(l):n>3?c(t,o,l):c(t,o))||l);n>3&&l&&Object.defineProperty(t,o,l);}([autobind,e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],ScrollToTop.prototype,"onClick",null);
5
6export { ScrollToTop };

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.