Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
loop = _useSealedState$loop === void 0 ? true : _useSealedState$loop,
[38000] Fix | Delete
sealed = Object(_rollupPluginBabelHelpers_1f0bf8c2["a" /* _ */])(_useSealedState, ["state", "loop"]);
[38001] Fix | Delete
[38002] Fix | Delete
var _React$useState = Object(external_React_["useState"])(initialValue),
[38003] Fix | Delete
state = _React$useState[0],
[38004] Fix | Delete
setState = _React$useState[1];
[38005] Fix | Delete
[38006] Fix | Delete
var composite = useCompositeState(Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])(Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({}, sealed), {}, {
[38007] Fix | Delete
loop: loop
[38008] Fix | Delete
}));
[38009] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])(Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({}, composite), {}, {
[38010] Fix | Delete
state: state,
[38011] Fix | Delete
setState: setState
[38012] Fix | Delete
});
[38013] Fix | Delete
}
[38014] Fix | Delete
[38015] Fix | Delete
[38016] Fix | Delete
[38017] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/es/Radio/RadioGroup.js
[38018] Fix | Delete
[38019] Fix | Delete
[38020] Fix | Delete
[38021] Fix | Delete
[38022] Fix | Delete
[38023] Fix | Delete
[38024] Fix | Delete
[38025] Fix | Delete
[38026] Fix | Delete
[38027] Fix | Delete
[38028] Fix | Delete
[38029] Fix | Delete
[38030] Fix | Delete
[38031] Fix | Delete
[38032] Fix | Delete
[38033] Fix | Delete
[38034] Fix | Delete
[38035] Fix | Delete
[38036] Fix | Delete
[38037] Fix | Delete
[38038] Fix | Delete
[38039] Fix | Delete
[38040] Fix | Delete
[38041] Fix | Delete
[38042] Fix | Delete
[38043] Fix | Delete
[38044] Fix | Delete
[38045] Fix | Delete
[38046] Fix | Delete
[38047] Fix | Delete
[38048] Fix | Delete
[38049] Fix | Delete
var useRadioGroup = Object(createHook["a" /* createHook */])({
[38050] Fix | Delete
name: "RadioGroup",
[38051] Fix | Delete
compose: useComposite,
[38052] Fix | Delete
keys: RADIO_GROUP_KEYS,
[38053] Fix | Delete
useProps: function useProps(_, htmlProps) {
[38054] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2["b" /* a */])({
[38055] Fix | Delete
role: "radiogroup"
[38056] Fix | Delete
}, htmlProps);
[38057] Fix | Delete
}
[38058] Fix | Delete
});
[38059] Fix | Delete
var RadioGroup = Object(createComponent["a" /* createComponent */])({
[38060] Fix | Delete
as: "div",
[38061] Fix | Delete
useHook: useRadioGroup,
[38062] Fix | Delete
useCreateElement: function useCreateElement$1(type, props, children) {
[38063] Fix | Delete
false ? undefined : void 0;
[38064] Fix | Delete
return Object(useCreateElement["a" /* useCreateElement */])(type, props, children);
[38065] Fix | Delete
}
[38066] Fix | Delete
});
[38067] Fix | Delete
[38068] Fix | Delete
[38069] Fix | Delete
[38070] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-group/index.js
[38071] Fix | Delete
[38072] Fix | Delete
[38073] Fix | Delete
[38074] Fix | Delete
[38075] Fix | Delete
[38076] Fix | Delete
function radio_group_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[38077] Fix | Delete
[38078] Fix | Delete
function radio_group_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { radio_group_ownKeys(Object(source), true).forEach(function (key) { Object(esm_defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { radio_group_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[38079] Fix | Delete
[38080] Fix | Delete
/**
[38081] Fix | Delete
* External dependencies
[38082] Fix | Delete
*/
[38083] Fix | Delete
[38084] Fix | Delete
/**
[38085] Fix | Delete
* WordPress dependencies
[38086] Fix | Delete
*/
[38087] Fix | Delete
[38088] Fix | Delete
[38089] Fix | Delete
/**
[38090] Fix | Delete
* Internal dependencies
[38091] Fix | Delete
*/
[38092] Fix | Delete
[38093] Fix | Delete
[38094] Fix | Delete
[38095] Fix | Delete
[38096] Fix | Delete
function radio_group_RadioGroup(_ref, ref) {
[38097] Fix | Delete
var label = _ref.label,
[38098] Fix | Delete
checked = _ref.checked,
[38099] Fix | Delete
defaultChecked = _ref.defaultChecked,
[38100] Fix | Delete
disabled = _ref.disabled,
[38101] Fix | Delete
onChange = _ref.onChange,
[38102] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["label", "checked", "defaultChecked", "disabled", "onChange"]);
[38103] Fix | Delete
[38104] Fix | Delete
var radioState = useRadioState({
[38105] Fix | Delete
state: defaultChecked,
[38106] Fix | Delete
baseId: props.id
[38107] Fix | Delete
});
[38108] Fix | Delete
[38109] Fix | Delete
var radioContext = radio_group_objectSpread(radio_group_objectSpread({}, radioState), {}, {
[38110] Fix | Delete
disabled: disabled,
[38111] Fix | Delete
// controlled or uncontrolled
[38112] Fix | Delete
state: checked !== null && checked !== void 0 ? checked : radioState.state,
[38113] Fix | Delete
setState: onChange !== null && onChange !== void 0 ? onChange : radioState.setState
[38114] Fix | Delete
});
[38115] Fix | Delete
[38116] Fix | Delete
return Object(external_wp_element_["createElement"])(radio_context.Provider, {
[38117] Fix | Delete
value: radioContext
[38118] Fix | Delete
}, Object(external_wp_element_["createElement"])(RadioGroup, Object(esm_extends["a" /* default */])({
[38119] Fix | Delete
ref: ref,
[38120] Fix | Delete
as: button_group,
[38121] Fix | Delete
"aria-label": label
[38122] Fix | Delete
}, radioState, props)));
[38123] Fix | Delete
}
[38124] Fix | Delete
[38125] Fix | Delete
/* harmony default export */ var radio_group = (Object(external_wp_element_["forwardRef"])(radio_group_RadioGroup));
[38126] Fix | Delete
[38127] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/radio-control/index.js
[38128] Fix | Delete
[38129] Fix | Delete
[38130] Fix | Delete
/**
[38131] Fix | Delete
* External dependencies
[38132] Fix | Delete
*/
[38133] Fix | Delete
[38134] Fix | Delete
[38135] Fix | Delete
/**
[38136] Fix | Delete
* WordPress dependencies
[38137] Fix | Delete
*/
[38138] Fix | Delete
[38139] Fix | Delete
[38140] Fix | Delete
/**
[38141] Fix | Delete
* Internal dependencies
[38142] Fix | Delete
*/
[38143] Fix | Delete
[38144] Fix | Delete
[38145] Fix | Delete
function RadioControl(_ref) {
[38146] Fix | Delete
var label = _ref.label,
[38147] Fix | Delete
className = _ref.className,
[38148] Fix | Delete
selected = _ref.selected,
[38149] Fix | Delete
help = _ref.help,
[38150] Fix | Delete
onChange = _ref.onChange,
[38151] Fix | Delete
_ref$options = _ref.options,
[38152] Fix | Delete
options = _ref$options === void 0 ? [] : _ref$options;
[38153] Fix | Delete
var instanceId = Object(external_wp_compose_["useInstanceId"])(RadioControl);
[38154] Fix | Delete
var id = "inspector-radio-control-".concat(instanceId);
[38155] Fix | Delete
[38156] Fix | Delete
var onChangeValue = function onChangeValue(event) {
[38157] Fix | Delete
return onChange(event.target.value);
[38158] Fix | Delete
};
[38159] Fix | Delete
[38160] Fix | Delete
return !Object(external_lodash_["isEmpty"])(options) && Object(external_wp_element_["createElement"])(base_control, {
[38161] Fix | Delete
label: label,
[38162] Fix | Delete
id: id,
[38163] Fix | Delete
help: help,
[38164] Fix | Delete
className: classnames_default()(className, 'components-radio-control')
[38165] Fix | Delete
}, options.map(function (option, index) {
[38166] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[38167] Fix | Delete
key: "".concat(id, "-").concat(index),
[38168] Fix | Delete
className: "components-radio-control__option"
[38169] Fix | Delete
}, Object(external_wp_element_["createElement"])("input", {
[38170] Fix | Delete
id: "".concat(id, "-").concat(index),
[38171] Fix | Delete
className: "components-radio-control__input",
[38172] Fix | Delete
type: "radio",
[38173] Fix | Delete
name: id,
[38174] Fix | Delete
value: option.value,
[38175] Fix | Delete
onChange: onChangeValue,
[38176] Fix | Delete
checked: option.value === selected,
[38177] Fix | Delete
"aria-describedby": !!help ? "".concat(id, "__help") : undefined
[38178] Fix | Delete
}), Object(external_wp_element_["createElement"])("label", {
[38179] Fix | Delete
htmlFor: "".concat(id, "-").concat(index)
[38180] Fix | Delete
}, option.label));
[38181] Fix | Delete
}));
[38182] Fix | Delete
}
[38183] Fix | Delete
[38184] Fix | Delete
// CONCATENATED MODULE: ./node_modules/re-resizable/lib/resizer.js
[38185] Fix | Delete
var resizer_extends = (undefined && undefined.__extends) || (function () {
[38186] Fix | Delete
var extendStatics = function (d, b) {
[38187] Fix | Delete
extendStatics = Object.setPrototypeOf ||
[38188] Fix | Delete
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
[38189] Fix | Delete
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
[38190] Fix | Delete
return extendStatics(d, b);
[38191] Fix | Delete
};
[38192] Fix | Delete
return function (d, b) {
[38193] Fix | Delete
extendStatics(d, b);
[38194] Fix | Delete
function __() { this.constructor = d; }
[38195] Fix | Delete
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
[38196] Fix | Delete
};
[38197] Fix | Delete
})();
[38198] Fix | Delete
var resizer_assign = (undefined && undefined.__assign) || function () {
[38199] Fix | Delete
resizer_assign = Object.assign || function(t) {
[38200] Fix | Delete
for (var s, i = 1, n = arguments.length; i < n; i++) {
[38201] Fix | Delete
s = arguments[i];
[38202] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
[38203] Fix | Delete
t[p] = s[p];
[38204] Fix | Delete
}
[38205] Fix | Delete
return t;
[38206] Fix | Delete
};
[38207] Fix | Delete
return resizer_assign.apply(this, arguments);
[38208] Fix | Delete
};
[38209] Fix | Delete
[38210] Fix | Delete
var resizer_styles = {
[38211] Fix | Delete
top: {
[38212] Fix | Delete
width: '100%',
[38213] Fix | Delete
height: '10px',
[38214] Fix | Delete
top: '-5px',
[38215] Fix | Delete
left: '0px',
[38216] Fix | Delete
cursor: 'row-resize',
[38217] Fix | Delete
},
[38218] Fix | Delete
right: {
[38219] Fix | Delete
width: '10px',
[38220] Fix | Delete
height: '100%',
[38221] Fix | Delete
top: '0px',
[38222] Fix | Delete
right: '-5px',
[38223] Fix | Delete
cursor: 'col-resize',
[38224] Fix | Delete
},
[38225] Fix | Delete
bottom: {
[38226] Fix | Delete
width: '100%',
[38227] Fix | Delete
height: '10px',
[38228] Fix | Delete
bottom: '-5px',
[38229] Fix | Delete
left: '0px',
[38230] Fix | Delete
cursor: 'row-resize',
[38231] Fix | Delete
},
[38232] Fix | Delete
left: {
[38233] Fix | Delete
width: '10px',
[38234] Fix | Delete
height: '100%',
[38235] Fix | Delete
top: '0px',
[38236] Fix | Delete
left: '-5px',
[38237] Fix | Delete
cursor: 'col-resize',
[38238] Fix | Delete
},
[38239] Fix | Delete
topRight: {
[38240] Fix | Delete
width: '20px',
[38241] Fix | Delete
height: '20px',
[38242] Fix | Delete
position: 'absolute',
[38243] Fix | Delete
right: '-10px',
[38244] Fix | Delete
top: '-10px',
[38245] Fix | Delete
cursor: 'ne-resize',
[38246] Fix | Delete
},
[38247] Fix | Delete
bottomRight: {
[38248] Fix | Delete
width: '20px',
[38249] Fix | Delete
height: '20px',
[38250] Fix | Delete
position: 'absolute',
[38251] Fix | Delete
right: '-10px',
[38252] Fix | Delete
bottom: '-10px',
[38253] Fix | Delete
cursor: 'se-resize',
[38254] Fix | Delete
},
[38255] Fix | Delete
bottomLeft: {
[38256] Fix | Delete
width: '20px',
[38257] Fix | Delete
height: '20px',
[38258] Fix | Delete
position: 'absolute',
[38259] Fix | Delete
left: '-10px',
[38260] Fix | Delete
bottom: '-10px',
[38261] Fix | Delete
cursor: 'sw-resize',
[38262] Fix | Delete
},
[38263] Fix | Delete
topLeft: {
[38264] Fix | Delete
width: '20px',
[38265] Fix | Delete
height: '20px',
[38266] Fix | Delete
position: 'absolute',
[38267] Fix | Delete
left: '-10px',
[38268] Fix | Delete
top: '-10px',
[38269] Fix | Delete
cursor: 'nw-resize',
[38270] Fix | Delete
},
[38271] Fix | Delete
};
[38272] Fix | Delete
var resizer_Resizer = /** @class */ (function (_super) {
[38273] Fix | Delete
resizer_extends(Resizer, _super);
[38274] Fix | Delete
function Resizer() {
[38275] Fix | Delete
var _this = _super !== null && _super.apply(this, arguments) || this;
[38276] Fix | Delete
_this.onMouseDown = function (e) {
[38277] Fix | Delete
_this.props.onResizeStart(e, _this.props.direction);
[38278] Fix | Delete
};
[38279] Fix | Delete
_this.onTouchStart = function (e) {
[38280] Fix | Delete
_this.props.onResizeStart(e, _this.props.direction);
[38281] Fix | Delete
};
[38282] Fix | Delete
return _this;
[38283] Fix | Delete
}
[38284] Fix | Delete
Resizer.prototype.render = function () {
[38285] Fix | Delete
return (external_React_["createElement"]("div", { className: this.props.className || '', style: resizer_assign(resizer_assign({ position: 'absolute', userSelect: 'none' }, resizer_styles[this.props.direction]), (this.props.replaceStyles || {})), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart }, this.props.children));
[38286] Fix | Delete
};
[38287] Fix | Delete
return Resizer;
[38288] Fix | Delete
}(external_React_["PureComponent"]));
[38289] Fix | Delete
[38290] Fix | Delete
[38291] Fix | Delete
// EXTERNAL MODULE: ./node_modules/fast-memoize/src/index.js
[38292] Fix | Delete
var fast_memoize_src = __webpack_require__("75pU");
[38293] Fix | Delete
var src_default = /*#__PURE__*/__webpack_require__.n(fast_memoize_src);
[38294] Fix | Delete
[38295] Fix | Delete
// CONCATENATED MODULE: ./node_modules/re-resizable/lib/index.js
[38296] Fix | Delete
var lib_extends = (undefined && undefined.__extends) || (function () {
[38297] Fix | Delete
var extendStatics = function (d, b) {
[38298] Fix | Delete
extendStatics = Object.setPrototypeOf ||
[38299] Fix | Delete
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
[38300] Fix | Delete
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
[38301] Fix | Delete
return extendStatics(d, b);
[38302] Fix | Delete
};
[38303] Fix | Delete
return function (d, b) {
[38304] Fix | Delete
extendStatics(d, b);
[38305] Fix | Delete
function __() { this.constructor = d; }
[38306] Fix | Delete
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
[38307] Fix | Delete
};
[38308] Fix | Delete
})();
[38309] Fix | Delete
var lib_assign = (undefined && undefined.__assign) || function () {
[38310] Fix | Delete
lib_assign = Object.assign || function(t) {
[38311] Fix | Delete
for (var s, i = 1, n = arguments.length; i < n; i++) {
[38312] Fix | Delete
s = arguments[i];
[38313] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
[38314] Fix | Delete
t[p] = s[p];
[38315] Fix | Delete
}
[38316] Fix | Delete
return t;
[38317] Fix | Delete
};
[38318] Fix | Delete
return lib_assign.apply(this, arguments);
[38319] Fix | Delete
};
[38320] Fix | Delete
[38321] Fix | Delete
[38322] Fix | Delete
[38323] Fix | Delete
var DEFAULT_SIZE = {
[38324] Fix | Delete
width: 'auto',
[38325] Fix | Delete
height: 'auto',
[38326] Fix | Delete
};
[38327] Fix | Delete
var clamp = src_default()(function (n, min, max) { return Math.max(Math.min(n, max), min); });
[38328] Fix | Delete
var snap = src_default()(function (n, size) { return Math.round(n / size) * size; });
[38329] Fix | Delete
var hasDirection = src_default()(function (dir, target) {
[38330] Fix | Delete
return new RegExp(dir, 'i').test(target);
[38331] Fix | Delete
});
[38332] Fix | Delete
// INFO: In case of window is a Proxy and does not porxy Events correctly, use isTouchEvent & isMouseEvent to distinguish event type instead of `instanceof`.
[38333] Fix | Delete
var isTouchEvent = function (event) {
[38334] Fix | Delete
return Boolean(event.touches && event.touches.length);
[38335] Fix | Delete
};
[38336] Fix | Delete
var isMouseEvent = function (event) {
[38337] Fix | Delete
return Boolean((event.clientX || event.clientX === 0) &&
[38338] Fix | Delete
(event.clientY || event.clientY === 0));
[38339] Fix | Delete
};
[38340] Fix | Delete
var findClosestSnap = src_default()(function (n, snapArray, snapGap) {
[38341] Fix | Delete
if (snapGap === void 0) { snapGap = 0; }
[38342] Fix | Delete
var closestGapIndex = snapArray.reduce(function (prev, curr, index) { return (Math.abs(curr - n) < Math.abs(snapArray[prev] - n) ? index : prev); }, 0);
[38343] Fix | Delete
var gap = Math.abs(snapArray[closestGapIndex] - n);
[38344] Fix | Delete
return snapGap === 0 || gap < snapGap ? snapArray[closestGapIndex] : n;
[38345] Fix | Delete
});
[38346] Fix | Delete
var endsWith = src_default()(function (str, searchStr) {
[38347] Fix | Delete
return str.substr(str.length - searchStr.length, searchStr.length) === searchStr;
[38348] Fix | Delete
});
[38349] Fix | Delete
var getStringSize = src_default()(function (n) {
[38350] Fix | Delete
n = n.toString();
[38351] Fix | Delete
if (n === 'auto') {
[38352] Fix | Delete
return n;
[38353] Fix | Delete
}
[38354] Fix | Delete
if (endsWith(n, 'px')) {
[38355] Fix | Delete
return n;
[38356] Fix | Delete
}
[38357] Fix | Delete
if (endsWith(n, '%')) {
[38358] Fix | Delete
return n;
[38359] Fix | Delete
}
[38360] Fix | Delete
if (endsWith(n, 'vh')) {
[38361] Fix | Delete
return n;
[38362] Fix | Delete
}
[38363] Fix | Delete
if (endsWith(n, 'vw')) {
[38364] Fix | Delete
return n;
[38365] Fix | Delete
}
[38366] Fix | Delete
if (endsWith(n, 'vmax')) {
[38367] Fix | Delete
return n;
[38368] Fix | Delete
}
[38369] Fix | Delete
if (endsWith(n, 'vmin')) {
[38370] Fix | Delete
return n;
[38371] Fix | Delete
}
[38372] Fix | Delete
return n + "px";
[38373] Fix | Delete
});
[38374] Fix | Delete
var getPixelSize = function (size, parentSize, innerWidth, innerHeight) {
[38375] Fix | Delete
if (size && typeof size === 'string') {
[38376] Fix | Delete
if (endsWith(size, 'px')) {
[38377] Fix | Delete
return Number(size.replace('px', ''));
[38378] Fix | Delete
}
[38379] Fix | Delete
if (endsWith(size, '%')) {
[38380] Fix | Delete
var ratio = Number(size.replace('%', '')) / 100;
[38381] Fix | Delete
return parentSize * ratio;
[38382] Fix | Delete
}
[38383] Fix | Delete
if (endsWith(size, 'vw')) {
[38384] Fix | Delete
var ratio = Number(size.replace('vw', '')) / 100;
[38385] Fix | Delete
return innerWidth * ratio;
[38386] Fix | Delete
}
[38387] Fix | Delete
if (endsWith(size, 'vh')) {
[38388] Fix | Delete
var ratio = Number(size.replace('vh', '')) / 100;
[38389] Fix | Delete
return innerHeight * ratio;
[38390] Fix | Delete
}
[38391] Fix | Delete
}
[38392] Fix | Delete
return size;
[38393] Fix | Delete
};
[38394] Fix | Delete
var calculateNewMax = src_default()(function (parentSize, innerWidth, innerHeight, maxWidth, maxHeight, minWidth, minHeight) {
[38395] Fix | Delete
maxWidth = getPixelSize(maxWidth, parentSize.width, innerWidth, innerHeight);
[38396] Fix | Delete
maxHeight = getPixelSize(maxHeight, parentSize.height, innerWidth, innerHeight);
[38397] Fix | Delete
minWidth = getPixelSize(minWidth, parentSize.width, innerWidth, innerHeight);
[38398] Fix | Delete
minHeight = getPixelSize(minHeight, parentSize.height, innerWidth, innerHeight);
[38399] Fix | Delete
return {
[38400] Fix | Delete
maxWidth: typeof maxWidth === 'undefined' ? undefined : Number(maxWidth),
[38401] Fix | Delete
maxHeight: typeof maxHeight === 'undefined' ? undefined : Number(maxHeight),
[38402] Fix | Delete
minWidth: typeof minWidth === 'undefined' ? undefined : Number(minWidth),
[38403] Fix | Delete
minHeight: typeof minHeight === 'undefined' ? undefined : Number(minHeight),
[38404] Fix | Delete
};
[38405] Fix | Delete
});
[38406] Fix | Delete
var definedProps = [
[38407] Fix | Delete
'as',
[38408] Fix | Delete
'style',
[38409] Fix | Delete
'className',
[38410] Fix | Delete
'grid',
[38411] Fix | Delete
'snap',
[38412] Fix | Delete
'bounds',
[38413] Fix | Delete
'boundsByDirection',
[38414] Fix | Delete
'size',
[38415] Fix | Delete
'defaultSize',
[38416] Fix | Delete
'minWidth',
[38417] Fix | Delete
'minHeight',
[38418] Fix | Delete
'maxWidth',
[38419] Fix | Delete
'maxHeight',
[38420] Fix | Delete
'lockAspectRatio',
[38421] Fix | Delete
'lockAspectRatioExtraWidth',
[38422] Fix | Delete
'lockAspectRatioExtraHeight',
[38423] Fix | Delete
'enable',
[38424] Fix | Delete
'handleStyles',
[38425] Fix | Delete
'handleClasses',
[38426] Fix | Delete
'handleWrapperStyle',
[38427] Fix | Delete
'handleWrapperClass',
[38428] Fix | Delete
'children',
[38429] Fix | Delete
'onResizeStart',
[38430] Fix | Delete
'onResize',
[38431] Fix | Delete
'onResizeStop',
[38432] Fix | Delete
'handleComponent',
[38433] Fix | Delete
'scale',
[38434] Fix | Delete
'resizeRatio',
[38435] Fix | Delete
'snapGap',
[38436] Fix | Delete
];
[38437] Fix | Delete
// HACK: This class is used to calculate % size.
[38438] Fix | Delete
var baseClassName = '__resizable_base__';
[38439] Fix | Delete
var lib_Resizable = /** @class */ (function (_super) {
[38440] Fix | Delete
lib_extends(Resizable, _super);
[38441] Fix | Delete
function Resizable(props) {
[38442] Fix | Delete
var _this = _super.call(this, props) || this;
[38443] Fix | Delete
_this.ratio = 1;
[38444] Fix | Delete
_this.resizable = null;
[38445] Fix | Delete
// For parent boundary
[38446] Fix | Delete
_this.parentLeft = 0;
[38447] Fix | Delete
_this.parentTop = 0;
[38448] Fix | Delete
// For boundary
[38449] Fix | Delete
_this.resizableLeft = 0;
[38450] Fix | Delete
_this.resizableRight = 0;
[38451] Fix | Delete
_this.resizableTop = 0;
[38452] Fix | Delete
_this.resizableBottom = 0;
[38453] Fix | Delete
// For target boundary
[38454] Fix | Delete
_this.targetLeft = 0;
[38455] Fix | Delete
_this.targetTop = 0;
[38456] Fix | Delete
_this.appendBase = function () {
[38457] Fix | Delete
if (!_this.resizable || !_this.window) {
[38458] Fix | Delete
return null;
[38459] Fix | Delete
}
[38460] Fix | Delete
var parent = _this.parentNode;
[38461] Fix | Delete
if (!parent) {
[38462] Fix | Delete
return null;
[38463] Fix | Delete
}
[38464] Fix | Delete
var element = _this.window.document.createElement('div');
[38465] Fix | Delete
element.style.width = '100%';
[38466] Fix | Delete
element.style.height = '100%';
[38467] Fix | Delete
element.style.position = 'absolute';
[38468] Fix | Delete
element.style.transform = 'scale(0, 0)';
[38469] Fix | Delete
element.style.left = '0';
[38470] Fix | Delete
element.style.flex = '0';
[38471] Fix | Delete
if (element.classList) {
[38472] Fix | Delete
element.classList.add(baseClassName);
[38473] Fix | Delete
}
[38474] Fix | Delete
else {
[38475] Fix | Delete
element.className += baseClassName;
[38476] Fix | Delete
}
[38477] Fix | Delete
parent.appendChild(element);
[38478] Fix | Delete
return element;
[38479] Fix | Delete
};
[38480] Fix | Delete
_this.removeBase = function (base) {
[38481] Fix | Delete
var parent = _this.parentNode;
[38482] Fix | Delete
if (!parent) {
[38483] Fix | Delete
return;
[38484] Fix | Delete
}
[38485] Fix | Delete
parent.removeChild(base);
[38486] Fix | Delete
};
[38487] Fix | Delete
_this.ref = function (c) {
[38488] Fix | Delete
if (c) {
[38489] Fix | Delete
_this.resizable = c;
[38490] Fix | Delete
}
[38491] Fix | Delete
};
[38492] Fix | Delete
_this.state = {
[38493] Fix | Delete
isResizing: false,
[38494] Fix | Delete
width: typeof (_this.propsSize && _this.propsSize.width) === 'undefined'
[38495] Fix | Delete
? 'auto'
[38496] Fix | Delete
: _this.propsSize && _this.propsSize.width,
[38497] Fix | Delete
height: typeof (_this.propsSize && _this.propsSize.height) === 'undefined'
[38498] Fix | Delete
? 'auto'
[38499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function