Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
84 lines
2.6 KiB
TypeScript
84 lines
2.6 KiB
TypeScript
// Module ID: 13185
|
|
// Function ID: 13186
|
|
// Name: vibegrationsPreviewOperationSurfaces
|
|
// Dependencies: [13182, 2]
|
|
// Exports: createPreviewOperationSurfaces
|
|
|
|
// Module 13185 (vibegrationsPreviewOperationSurfaces)
|
|
import vibegrationsPreviewControlLease from "vibegrationsPreviewControlLease" /* 13182 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
function bestEffort(arg0, fn) {
|
|
try {
|
|
fn();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
let result = size.fileFinishedImporting("modules/vibegrations/lib/vibegrationsPreviewOperationSurfaces.tsx");
|
|
|
|
export const createPreviewOperationSurfaces = function createPreviewOperationSurfaces(arg0) {
|
|
closure_0 = arg0;
|
|
const map = new Map();
|
|
return {
|
|
begin(TableRowGroup) {
|
|
let result = TableRowGroup(map[0]).beginVibegrationsControlOperation(TableRowGroup);
|
|
const tmp2 = TableRowGroup(TableRowGroup);
|
|
if (null != tmp2) {
|
|
value = map.get(TableRowGroup);
|
|
closure_2 = value;
|
|
if (null != value) {
|
|
obj2.delete(TableRowGroup);
|
|
bestEffort(0, () => value.end());
|
|
}
|
|
bestEffort(0, () => closure_1.dismiss());
|
|
bestEffort(0, () => {
|
|
const openResult = closure_1.open();
|
|
TableRowGroup = openResult;
|
|
closure_1 = TableRowGroup(map[0]).subscribeVibegrationsControl(() => {
|
|
if (!obj.isVibegrationsControlActive(openResult)) {
|
|
value = closure_1.get(tmp);
|
|
if (null != value) {
|
|
obj2.delete(tmp);
|
|
closure_1_2(0, () => value.end());
|
|
}
|
|
const result = value(closure_1[0]).endVibegrationsControlOperation(tmp);
|
|
obj2 = closure_1;
|
|
const obj3 = value(closure_1[0]);
|
|
}
|
|
});
|
|
let result = closure_1.set(TableRowGroup, {
|
|
iframeId: openResult.iframeId,
|
|
drain() {
|
|
return openResult.drain();
|
|
},
|
|
end() {
|
|
closure_1();
|
|
openResult.end();
|
|
}
|
|
});
|
|
});
|
|
obj2 = map;
|
|
}
|
|
},
|
|
end(openResult) {
|
|
value = map.get(openResult);
|
|
closure_0 = value;
|
|
if (null != value) {
|
|
map.delete(openResult);
|
|
bestEffort(0, () => value.end());
|
|
}
|
|
const result = vibegrationsPreviewControlLease.endVibegrationsControlOperation(openResult);
|
|
},
|
|
drain(arg0) {
|
|
value = map.get(arg0);
|
|
let drainResult;
|
|
if (value != null) {
|
|
drainResult = value.drain();
|
|
}
|
|
if (drainResult == null) {
|
|
drainResult = [];
|
|
}
|
|
return drainResult;
|
|
}
|
|
};
|
|
};
|