1function _assert_this_initialized(self) { 2 if (self === void 0) { 3 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 4 } 5 return self; 6} 7function _class_call_check(instance, Constructor) { 8 if (!(instance instanceof Constructor)) { 9 throw new TypeError("Cannot call a class as a function"); 10 } 11} 12function _defineProperties(target, props) { 13 for(var i = 0; i < props.length; i++){ 14 var descriptor = props[i]; 15 descriptor.enumerable = descriptor.enumerable || false; 16 descriptor.configurable = true; 17 if ("value" in descriptor) descriptor.writable = true; 18 Object.defineProperty(target, descriptor.key, descriptor); 19 } 20} 21function _create_class(Constructor, protoProps, staticProps) { 22 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 23 if (staticProps) _defineProperties(Constructor, staticProps); 24 return Constructor; 25} 26function _define_property(obj, key, value) { 27 if (key in obj) { 28 Object.defineProperty(obj, key, { 29 value: value, 30 enumerable: true, 31 configurable: true, 32 writable: true 33 }); 34 } else { 35 obj[key] = value; 36 } 37 return obj; 38} 39function _get_prototype_of(o) { 40 _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) { 41 return o.__proto__ || Object.getPrototypeOf(o); 42 }; 43 return _get_prototype_of(o); 44} 45function _inherits(subClass, superClass) { 46 if (typeof superClass !== "function" && superClass !== null) { 47 throw new TypeError("Super expression must either be null or a function"); 48 } 49 subClass.prototype = Object.create(superClass && superClass.prototype, { 50 constructor: { 51 value: subClass, 52 writable: true, 53 configurable: true 54 } 55 }); 56 if (superClass) _set_prototype_of(subClass, superClass); 57} 58function _possible_constructor_return(self, call) { 59 if (call && (_type_of(call) === "object" || typeof call === "function")) { 60 return call; 61 } 62 return _assert_this_initialized(self); 63} 64function _set_prototype_of(o, p) { 65 _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) { 66 o.__proto__ = p; 67 return o; 68 }; 69 return _set_prototype_of(o, p); 70} 71function _type_of(obj) { 72 "@swc/helpers - typeof"; 73 return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; 74} 75function _is_native_reflect_construct() { 76 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 77 if (Reflect.construct.sham) return false; 78 if (typeof Proxy === "function") return true; 79 try { 80 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); 81 return true; 82 } catch (e) { 83 return false; 84 } 85} 86function _create_super(Derived) { 87 var hasNativeReflectConstruct = _is_native_reflect_construct(); 88 return function _createSuperInternal() { 89 var Super = _get_prototype_of(Derived), result; 90 if (hasNativeReflectConstruct) { 91 var NewTarget = _get_prototype_of(this).constructor; 92 result = Reflect.construct(Super, arguments, NewTarget); 93 } else { 94 result = Super.apply(this, arguments); 95 } 96 return _possible_constructor_return(this, result); 97 }; 98} 99import { Controller } from "@hotwired/stimulus"; 100import { useIntersection } from "stimulus-use"; 101var _class = /*#__PURE__*/ function(Controller) { 102 "use strict"; 103 _inherits(_class, Controller); 104 var _super = _create_super(_class); 105 function _class() { 106 _class_call_check(this, _class); 107 return _super.apply(this, arguments); 108 } 109 _create_class(_class, [ 110 { 111 key: "connect", 112 value: function connect() { 113 if (this.modeValue === "intersection") { 114 useIntersection(this); 115 } 116 } 117 }, 118 { 119 key: "appear", 120 value: function appear() { 121 this.dispatch("load-more-visible", { 122 detail: { 123 triggerEvent: null 124 } 125 }); 126 } 127 }, 128 { 129 key: "trigger", 130 value: function trigger(event) { 131 event.preventDefault(); 132 this.dispatch("load-more-visible", { 133 detail: { 134 triggerEvent: event 135 } 136 }); 137 } 138 } 139 ]); 140 return _class; 141}(Controller); 142_define_property(_class, "values", { 143 mode: { 144 type: String, 145 default: "intersection" 146 } 147}); 148/* stimulusFetch: 'lazy' */ export { _class as default };
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.