UNPKG

@cocalc/static

Version:

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

1 lines 1.7 kB
"use strict";(self.webpackChunk_cocalc_static=self.webpackChunk_cocalc_static||[]).push([[5842],{25842:(t,e,n)=>{n.r(e),n.d(e,{TaskStore:()=>a});var o=n(24620),r=n(32295);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function i(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e){return f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},f(t,e)}var s=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};var a=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(s,t);var e,n,r=(e=s,n=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,o=u(e);if(n){var r=u(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return i(this,t)});function s(){return c(this,s),r.apply(this,arguments)}return s.prototype.get_positions=function(){var t,e=[];return null===(t=this.get("tasks"))||void 0===t||t.forEach((function(t){var n=t.get("position");null!=n&&e.push(n)})),e.sort(o.cmp)},s}(r.Store)}}]);