UNPKG

@cocalc/static

Version:

CoCalc's static frontend Webpack-based build system and framework

1 lines 1.97 kB
"use strict";(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[29],{60029:(t,n,e)=>{e.r(n),e.d(n,{Actions:()=>f});var r=e(5010);function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function i(t,n){return!n||"object"!==s(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function u(t,n){return u=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},u(t,n)}var s=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};var f=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&u(t,n)}(s,t);var n,e,r=(n=s,e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=c(n);if(e){var o=c(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return i(this,t)});function s(){var t;return o(this,s),(t=r.apply(this,arguments)).doctype="syncdb",t.primary_keys=["table","id"],t.string_cols=[],t}var f=s.prototype;return f._init2=function(){},f._raw_default_frame_tree=function(){return{type:"tables"}},f.undo=function(t){null!=this._syncstring&&(this._syncstring.undo(),this._syncstring.commit())},f.redo=function(t){null!=this._syncstring&&(this._syncstring.redo(),this._syncstring.commit())},f.in_undo_mode=function(){var t;return null===(t=this._syncstring)||void 0===t?void 0:t.in_undo_mode()},s}(r.e)}}]);