Skip to content

Commit

Permalink
Update frontend dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed May 26, 2024
1 parent 04aeb72 commit bc20a47
Show file tree
Hide file tree
Showing 4 changed files with 2,364 additions and 2,643 deletions.
77 changes: 36 additions & 41 deletions assets/dist/googlemaps_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _stimulus = require("@hotwired/stimulus");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var _default = /*#__PURE__*/function (_Controller) {
(0, _inherits2["default"])(_default, _Controller);
var _super = _createSuper(_default);
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
var _default = exports["default"] = /*#__PURE__*/function (_Controller) {
function _default() {
(0, _classCallCheck2["default"])(this, _default);
return _super.apply(this, arguments);
return _callSuper(this, _default, arguments);
}
(0, _createClass2["default"])(_default, [{
(0, _inherits2["default"])(_default, _Controller);
return (0, _createClass2["default"])(_default, [{
key: "connect",
value: function connect() {
var _this = this;
Expand Down Expand Up @@ -80,35 +79,33 @@ var _default = /*#__PURE__*/function (_Controller) {
var _prepareApi2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(apiKey) {
var get, myPromises;
return _regenerator["default"].wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
get = function _get(src) {
return new Promise(function (resolve, reject) {
var el = document.createElement('script');
el.async = true;
el.addEventListener('error', function () {
reject(src);
}, false);
el.src = src;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(el);
window.googleMapsInitialized = function () {
resolve(src);
};
});
};
_context.next = 3;
return get('https://maps.googleapis.com/maps/api/js?key=' + apiKey + '&callback=googleMapsInitialized');
case 3:
myPromises = _context.sent;
_context.next = 6;
return Promise.all(myPromises);
case 6:
return _context.abrupt("return", _context.sent);
case 7:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
get = function _get(src) {
return new Promise(function (resolve, reject) {
var el = document.createElement('script');
el.async = true;
el.addEventListener('error', function () {
reject(src);
}, false);
el.src = src;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(el);
window.googleMapsInitialized = function () {
resolve(src);
};
});
};
_context.next = 3;
return get('https://maps.googleapis.com/maps/api/js?key=' + apiKey + '&callback=googleMapsInitialized');
case 3:
myPromises = _context.sent;
_context.next = 6;
return Promise.all(myPromises);
case 6:
return _context.abrupt("return", _context.sent);
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
Expand Down Expand Up @@ -136,9 +133,7 @@ var _default = /*#__PURE__*/function (_Controller) {
this.element.dispatchEvent(userEvent);
}
}]);
return _default;
}(_stimulus.Controller);
exports["default"] = _default;
(0, _defineProperty2["default"])(_default, "values", {
latitude: Number,
longitude: Number,
Expand Down
21 changes: 9 additions & 12 deletions assets/dist/openstreetmap_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ Object.defineProperty(exports, "__esModule", {
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _stimulus = require("@hotwired/stimulus");
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var _default = /*#__PURE__*/function (_Controller) {
(0, _inherits2["default"])(_default, _Controller);
var _super = _createSuper(_default);
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
var _default = exports["default"] = /*#__PURE__*/function (_Controller) {
function _default() {
(0, _classCallCheck2["default"])(this, _default);
return _super.apply(this, arguments);
return _callSuper(this, _default, arguments);
}
(0, _createClass2["default"])(_default, [{
(0, _inherits2["default"])(_default, _Controller);
return (0, _createClass2["default"])(_default, [{
key: "connect",
value: function connect() {
var _this = this;
Expand Down Expand Up @@ -121,9 +120,7 @@ var _default = /*#__PURE__*/function (_Controller) {
this.element.dispatchEvent(userEvent);
}
}]);
return _default;
}(_stimulus.Controller);
exports["default"] = _default;
(0, _defineProperty2["default"])(_default, "values", {
latitude: Number,
longitude: Number,
Expand Down
8 changes: 4 additions & 4 deletions assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@
"@babel/plugin-transform-runtime": "^7.18.2",
"@babel/preset-env": "^7.18.2",
"@hotwired/stimulus": "^3.0.1",
"@size-limit/esbuild": "^9.0.0",
"@size-limit/preset-small-lib": "^9.0.0",
"@size-limit/esbuild": "^11.1.4",
"@size-limit/preset-small-lib": "^11.1.4",
"@symfony/stimulus-testing": "^2.0.1",
"eslint": "^8.32.0",
"eslint": "^9.3.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^28.0.0",
"prettier": "^3.0.0",
"sass": "^1.57.1",
"sass-loader": "^14.0.0",
"size-limit": "^9.0.0"
"size-limit": "^11.1.4"
},
"scripts": {
"build": "babel src -d dist && yarn sass:build",
Expand Down
Loading

0 comments on commit bc20a47

Please sign in to comment.