Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = assert;
var _devtoolsEnvironment = require("devtools/client/debugger/dist/vendors").vendored["devtools-environment"];
function assert(condition, message) {
if ((0, _devtoolsEnvironment.isDevelopment)() && !condition) {
throw new Error(`Assertion failure: ${message}`);
}
} /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("devtools/client/shared/vendor/react");
var _react2 = _interopRequireDefault(_react);
var _classnames = require("devtools/client/debugger/dist/vendors").vendored["classnames"];
var _classnames2 = _interopRequireDefault(_classnames);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
class OutlineFilter extends _react.Component {
constructor(...args) {
var _temp;
return _temp = super(...args), this.state = { focused: false }, this.setFocus = shouldFocus => {
this.setState({ focused: shouldFocus });
}, this.onChange = e => {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MODIFIERS = undefined;
exports.parseQuickOpenQuery = parseQuickOpenQuery;
exports.parseLineColumn = parseLineColumn;
exports.formatSourcesForList = formatSourcesForList;
exports.formatSymbol = formatSymbol;
exports.formatSymbols = formatSymbols;
exports.formatShortcutResults = formatShortcutResults;
exports.formatSources = formatSources;
var _classnames = require("devtools/client/debugger/dist/vendors").vendored["classnames"];
var _classnames2 = _interopRequireDefault(_classnames);
var _utils = require("./utils");
var _source = require("./source");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const MODIFIERS = exports.MODIFIERS = {
"@": "functions",
"#": "variables",
":": "goto",
"?": "shortcuts"
}; /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
// eslint-disable-next-line import/named
var _react = require("devtools/client/shared/vendor/react");
var _react2 = _interopRequireDefault(_react);
var _connect = require("../../utils/connect");
var _classnames = require("devtools/client/debugger/dist/vendors").vendored["classnames"];
var _classnames2 = _interopRequireDefault(_classnames);
var _prefs = require("../../utils/prefs");
var _devtoolsReps = require("devtools/client/shared/components/reps/reps.js");
var _actions = require("../../actions/index");
var _actions2 = _interopRequireDefault(_actions);
var _selectors = require("../../selectors/index");
var _expressions = require("../../utils/expressions");
var _firefox = require("../../client/firefox");
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("devtools/client/shared/vendor/react");
var _classnames = require("devtools/client/debugger/dist/vendors").vendored["classnames"];
var _classnames2 = _interopRequireDefault(_classnames);
var _devtoolsContextmenu = require("devtools/client/debugger/dist/vendors").vendored["devtools-contextmenu"];
var _editor = require("../../utils/editor/index");
var _breakpoints = require("./menus/breakpoints");
var _selectedLocation = require("../../utils/selected-location");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// eslint-disable-next-line max-len
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
const breakpointButton = document.createElement("button");
breakpointButton.innerHTML = '<svg height="13" width="11" viewBox="0 0 11 13" xmlns="http://www.w3.org/2000/svg"><path d="M5.07.5H1.5c-.54 0-1 .46-1 1v10c0 .54.46 1 1 1h3.57c.58 0 1.15-.26 1.53-.7l3.7-5.3-3.7-5.3C6.22.76 5.65.5 5.07.5z"></path></svg>';
exports.Modal = exports.transitionTimeout = undefined;
exports.default = Slide;
var _propTypes = require("devtools/client/shared/vendor/react-prop-types");
var _propTypes2 = _interopRequireDefault(_propTypes);
var _react = require("devtools/client/shared/vendor/react");
var _react2 = _interopRequireDefault(_react);
var _classnames = require("devtools/client/debugger/dist/vendors").vendored["classnames"];
var _classnames2 = _interopRequireDefault(_classnames);
var _Transition = require("devtools/client/debugger/dist/vendors").vendored["react-transition-group/Transition"];
var _Transition2 = _interopRequireDefault(_Transition);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
const transitionTimeout = exports.transitionTimeout = 175;
class Modal extends _react2.default.Component {
constructor(...args) {
var _temp;
return _temp = super(...args), this.onClick = e => {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = FrameMenu;
var _devtoolsContextmenu = require("devtools/client/debugger/dist/vendors").vendored["devtools-contextmenu"];
var _clipboard = require("../../../utils/clipboard");
var _lodash = require("devtools/client/shared/vendor/lodash");
const blackboxString = "sourceFooter.blackbox"; /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
const unblackboxString = "sourceFooter.unblackbox";
function formatMenuElement(labelString, click, disabled = false) {
const label = L10N.getStr(labelString);
const accesskey = L10N.getStr(`${labelString}.accesskey`);
const id = `node-menu-${(0, _lodash.kebabCase)(label)}`;
return {
value: true
});
var _react = require("devtools/client/shared/vendor/react");
var _classnames = require("devtools/client/debugger/dist/vendors").vendored["classnames"];
var _classnames2 = _interopRequireDefault(_classnames);
var _editor = require("../../utils/editor/index");
var _selectedLocation = require("../../utils/selected-location");
var _prefs = require("../../utils/prefs");
var _devtoolsContextmenu = require("devtools/client/debugger/dist/vendors").vendored["devtools-contextmenu"];
var _breakpoints = require("./menus/breakpoints");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const breakpointSvg = document.createElement("div"); /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at . */
breakpointSvg.innerHTML = '<svg height="15" width="60" viewBox="0 0 60 15" xmlns="http://www.w3.org/2000/svg"><path d="M53.07.5H1.5c-.54 0-1 .46-1 1v12c0 .54.46 1 1 1h51.57c.58 0 1.15-.26 1.53-.7l4.7-6.3-4.7-6.3c-.38-.44-.95-.7-1.53-.7z"></path></svg>';
class Breakpoint extends _react.PureComponent {
constructor(...args) {
var _temp;
return _temp = super(...args), this.onClick = event => {
var _A11yIntention = require("./A11yIntention");
var _A11yIntention2 = _interopRequireDefault(_A11yIntention);
var _ShortcutsModal = require("./ShortcutsModal");
var _selectors = require("../selectors/index");
var _devtoolsModules = require("devtools/client/debugger/dist/vendors").vendored["devtools-modules"];
var _devtoolsServices = require("Services");
var _devtoolsServices2 = _interopRequireDefault(_devtoolsServices);
var _devtoolsSplitter = require("devtools/client/debugger/dist/vendors").vendored["devtools-splitter"];
var _devtoolsSplitter2 = _interopRequireDefault(_devtoolsSplitter);
var _ProjectSearch = require("./ProjectSearch");
var _ProjectSearch2 = _interopRequireDefault(_ProjectSearch);
var _PrimaryPanes = require("./PrimaryPanes/index");
var _PrimaryPanes2 = _interopRequireDefault(_PrimaryPanes);
var _Editor = require("./Editor/index");
var _Editor2 = _interopRequireDefault(_Editor);
var _SecondaryPanes = require("./SecondaryPanes/index");
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("devtools/client/shared/vendor/react");
var _react2 = _interopRequireDefault(_react);
var _connect = require("../../../utils/connect");
var _reselect = require("devtools/client/debugger/dist/vendors").vendored["reselect"];
var _classnames = require("devtools/client/debugger/dist/vendors").vendored["classnames"];
var _classnames2 = _interopRequireDefault(_classnames);
var _actions = require("../../../actions/index");
var _actions2 = _interopRequireDefault(_actions);
var _lodash = require("devtools/client/shared/vendor/lodash");
var _BreakpointsContextMenu = require("./BreakpointsContextMenu");
var _BreakpointsContextMenu2 = _interopRequireDefault(_BreakpointsContextMenu);
var _Button = require("../../shared/Button/index");
var _breakpoint = require("../../../utils/breakpoint/index");