mashlib 1.7.18 → 1.7.19-2bedbec8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dist/browse.html +0 -0
- package/dist/databrowser.html +0 -0
- package/dist/mash.css +0 -0
- package/dist/mash.css.map +0 -0
- package/dist/mashlib.js +223 -191
- package/dist/mashlib.js.map +1 -1
- package/dist/mashlib.min.js +4 -4
- package/dist/mashlib.min.js.map +1 -1
- package/package.json +4 -4
package/dist/mashlib.js
CHANGED
|
@@ -41774,7 +41774,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41774
41774
|
* Copyright 2017 Google LLC
|
|
41775
41775
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41776
41776
|
*/
|
|
41777
|
-
var t;const i=globalThis.trustedTypes,s=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,e=`lit$${(Math.random()+"").slice(9)}$`,o="?"+e,n=`<${o}>`,l=document,h=(t="")=>l.createComment(t),r=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,u=t=>{var i;return d(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])},c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,a=/>/g,f=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,m=/"/g,g=/^(?:script|style|textarea)$/i,p=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),$=p(1),y=p(2),b=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),T=new WeakMap,x=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new N(i.insertBefore(h(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l},A=l.createTreeWalker(l,129,null,!1),C=(t,i)=>{const o=t.length-1,l=[];let h,r=2===i?"<svg>":"",d=c;for(let i=0;i<o;i++){const s=t[i];let o,u,p=-1,$=0;for(;$<s.length&&(d.lastIndex=$,u=d.exec(s),null!==u);)$=d.lastIndex,d===c?"!--"===u[1]?d=v:void 0!==u[1]?d=a:void 0!==u[2]?(g.test(u[2])&&(h=RegExp("</"+u[2],"g")),d=f):void 0!==u[3]&&(d=f):d===f?">"===u[0]?(d=null!=h?h:c,p=-1):void 0===u[1]?p=-2:(p=d.lastIndex-u[2].length,o=u[1],d=void 0===u[3]?f:'"'===u[3]?m:_):d===m||d===_?d=f:d===v||d===a?d=c:(d=f,h=void 0);const y=d===f&&t[i+1].startsWith("/>")?" ":"";r+=d===c?s+n:p>=0?(l.push(o),s.slice(0,p)+"$lit$"+s.slice(p)+e+y):s+e+(-2===p?(l.push(void 0),i):y)}const u=r+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s?s.createHTML(u):u,l]};class E{constructor({strings:t,_$litType$:s},n){let l;this.parts=[];let r=0,d=0;const u=t.length-1,c=this.parts,[v,a]=C(t,s);if(this.el=E.createElement(v,n),A.currentNode=this.el.content,2===s){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(l=A.nextNode())&&c.length<u;){if(1===l.nodeType){if(l.hasAttributes()){const t=[];for(const i of l.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(e)){const s=a[d++];if(t.push(i),void 0!==s){const t=l.getAttribute(s.toLowerCase()+"$lit$").split(e),i=/([.?@])?(.*)/.exec(s);c.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?M:"?"===i[1]?H:"@"===i[1]?I:S})}else c.push({type:6,index:r})}for(const i of t)l.removeAttribute(i)}if(g.test(l.tagName)){const t=l.textContent.split(e),s=t.length-1;if(s>0){l.textContent=i?i.emptyScript:"";for(let i=0;i<s;i++)l.append(t[i],h()),A.nextNode(),c.push({type:2,index:++r});l.append(t[s],h())}}}else if(8===l.nodeType)if(l.data===o)c.push({type:2,index:r});else{let t=-1;for(;-1!==(t=l.data.indexOf(e,t+1));)c.push({type:7,index:r}),t+=e.length-1}r++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function P(t,i,s=t,e){var o,n,l,h;if(i===b)return i;let d=void 0!==e?null===(o=s._$Cl)||void 0===o?void 0:o[e]:s._$Cu;const u=r(i)?void 0:i._$litDirective$;return(null==d?void 0:d.constructor)!==u&&(null===(n=null==d?void 0:d._$AO)||void 0===n||n.call(d,!1),void 0===u?d=void 0:(d=new u(t),d._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Cl)&&void 0!==l?l:h._$Cl=[])[e]=d:s._$Cu=d),void 0!==d&&(i=P(t,d._$AS(t,i.values),d,e)),i}class V{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:l).importNode(s,!0);A.currentNode=o;let n=A.nextNode(),h=0,r=0,d=e[0];for(;void 0!==d;){if(h===d.index){let i;2===d.type?i=new N(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new L(n,this,t)),this.v.push(i),d=e[++r]}h!==(null==d?void 0:d.index)&&(n=A.nextNode(),h++)}return o}m(t){let i=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class N{constructor(t,i,s,e){var o;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cg=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=P(this,t,i),r(t)?t===w||null==t||""===t?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==b&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):u(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==w&&r(this._$AH)?this._$AA.nextSibling.data=t:this.S(l.createTextNode(t)),this._$AH=t}T(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=E.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.m(s);else{const t=new V(o,this),i=t.p(this.options);t.m(s),this.S(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new E(t)),i}A(t){d(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new N(this.M(h()),this.M(h()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class S{constructor(t,i,s,e,o){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,i,0),n=!r(t)||t!==this._$AH&&t!==b,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=P(this,e[s+l],i,l),h===b&&(h=this._$AH[l]),n||(n=!r(h)||h!==this._$AH[l]),h===w?t=w:t!==w&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h}n&&!e&&this.k(t)}k(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class M extends S{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===w?void 0:t}}const k=i?i.emptyScript:"";class H extends S{constructor(){super(...arguments),this.type=4}k(t){t&&t!==w?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends S{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=P(this,t,i,0))&&void 0!==s?s:w)===b)return;const e=this._$AH,o=t===w&&e!==w||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==w&&(e===w||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const R={P:"$lit$",V:e,L:o,I:1,N:C,R:V,D:u,j:P,H:N,O:S,F:H,B:I,W:M,Z:L},z=window.litHtmlPolyfillSupport;null==z||z(E,N),(null!==(t=globalThis.litHtmlVersions)&&void 0!==t?t:globalThis.litHtmlVersions=[]).push("2.1.
|
|
41777
|
+
var t;const i=globalThis.trustedTypes,s=i?i.createPolicy("lit-html",{createHTML:t=>t}):void 0,e=`lit$${(Math.random()+"").slice(9)}$`,o="?"+e,n=`<${o}>`,l=document,h=(t="")=>l.createComment(t),r=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,u=t=>{var i;return d(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])},c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,a=/>/g,f=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,_=/'/g,m=/"/g,g=/^(?:script|style|textarea|title)$/i,p=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),$=p(1),y=p(2),b=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),T=new WeakMap,x=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new N(i.insertBefore(h(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l},A=l.createTreeWalker(l,129,null,!1),C=(t,i)=>{const o=t.length-1,l=[];let h,r=2===i?"<svg>":"",d=c;for(let i=0;i<o;i++){const s=t[i];let o,u,p=-1,$=0;for(;$<s.length&&(d.lastIndex=$,u=d.exec(s),null!==u);)$=d.lastIndex,d===c?"!--"===u[1]?d=v:void 0!==u[1]?d=a:void 0!==u[2]?(g.test(u[2])&&(h=RegExp("</"+u[2],"g")),d=f):void 0!==u[3]&&(d=f):d===f?">"===u[0]?(d=null!=h?h:c,p=-1):void 0===u[1]?p=-2:(p=d.lastIndex-u[2].length,o=u[1],d=void 0===u[3]?f:'"'===u[3]?m:_):d===m||d===_?d=f:d===v||d===a?d=c:(d=f,h=void 0);const y=d===f&&t[i+1].startsWith("/>")?" ":"";r+=d===c?s+n:p>=0?(l.push(o),s.slice(0,p)+"$lit$"+s.slice(p)+e+y):s+e+(-2===p?(l.push(void 0),i):y)}const u=r+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s?s.createHTML(u):u,l]};class E{constructor({strings:t,_$litType$:s},n){let l;this.parts=[];let r=0,d=0;const u=t.length-1,c=this.parts,[v,a]=C(t,s);if(this.el=E.createElement(v,n),A.currentNode=this.el.content,2===s){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(l=A.nextNode())&&c.length<u;){if(1===l.nodeType){if(l.hasAttributes()){const t=[];for(const i of l.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(e)){const s=a[d++];if(t.push(i),void 0!==s){const t=l.getAttribute(s.toLowerCase()+"$lit$").split(e),i=/([.?@])?(.*)/.exec(s);c.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?M:"?"===i[1]?H:"@"===i[1]?I:S})}else c.push({type:6,index:r})}for(const i of t)l.removeAttribute(i)}if(g.test(l.tagName)){const t=l.textContent.split(e),s=t.length-1;if(s>0){l.textContent=i?i.emptyScript:"";for(let i=0;i<s;i++)l.append(t[i],h()),A.nextNode(),c.push({type:2,index:++r});l.append(t[s],h())}}}else if(8===l.nodeType)if(l.data===o)c.push({type:2,index:r});else{let t=-1;for(;-1!==(t=l.data.indexOf(e,t+1));)c.push({type:7,index:r}),t+=e.length-1}r++}}static createElement(t,i){const s=l.createElement("template");return s.innerHTML=t,s}}function P(t,i,s=t,e){var o,n,l,h;if(i===b)return i;let d=void 0!==e?null===(o=s._$Cl)||void 0===o?void 0:o[e]:s._$Cu;const u=r(i)?void 0:i._$litDirective$;return(null==d?void 0:d.constructor)!==u&&(null===(n=null==d?void 0:d._$AO)||void 0===n||n.call(d,!1),void 0===u?d=void 0:(d=new u(t),d._$AT(t,s,e)),void 0!==e?(null!==(l=(h=s)._$Cl)&&void 0!==l?l:h._$Cl=[])[e]=d:s._$Cu=d),void 0!==d&&(i=P(t,d._$AS(t,i.values),d,e)),i}class V{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:l).importNode(s,!0);A.currentNode=o;let n=A.nextNode(),h=0,r=0,d=e[0];for(;void 0!==d;){if(h===d.index){let i;2===d.type?i=new N(n,n.nextSibling,this,t):1===d.type?i=new d.ctor(n,d.name,d.strings,this,t):6===d.type&&(i=new L(n,this,t)),this.v.push(i),d=e[++r]}h!==(null==d?void 0:d.index)&&(n=A.nextNode(),h++)}return o}m(t){let i=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class N{constructor(t,i,s,e){var o;this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cg=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=P(this,t,i),r(t)?t===w||null==t||""===t?(this._$AH!==w&&this._$AR(),this._$AH=w):t!==this._$AH&&t!==b&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):u(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==w&&r(this._$AH)?this._$AA.nextSibling.data=t:this.S(l.createTextNode(t)),this._$AH=t}T(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=E.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.m(s);else{const t=new V(o,this),i=t.p(this.options);t.m(s),this.S(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new E(t)),i}A(t){d(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new N(this.M(h()),this.M(h()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class S{constructor(t,i,s,e,o){this.type=1,this._$AH=w,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,i,0),n=!r(t)||t!==this._$AH&&t!==b,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=P(this,e[s+l],i,l),h===b&&(h=this._$AH[l]),n||(n=!r(h)||h!==this._$AH[l]),h===w?t=w:t!==w&&(t+=(null!=h?h:"")+o[l+1]),this._$AH[l]=h}n&&!e&&this.k(t)}k(t){t===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class M extends S{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===w?void 0:t}}const k=i?i.emptyScript:"";class H extends S{constructor(){super(...arguments),this.type=4}k(t){t&&t!==w?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class I extends S{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=P(this,t,i,0))&&void 0!==s?s:w)===b)return;const e=this._$AH,o=t===w&&e!==w||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==w&&(e===w||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const R={P:"$lit$",V:e,L:o,I:1,N:C,R:V,D:u,j:P,H:N,O:S,F:H,B:I,W:M,Z:L},z=window.litHtmlPolyfillSupport;null==z||z(E,N),(null!==(t=globalThis.litHtmlVersions)&&void 0!==t?t:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
41778
41778
|
//# sourceMappingURL=lit-html.js.map
|
|
41779
41779
|
|
|
41780
41780
|
|
|
@@ -112583,23 +112583,23 @@ function _default(context) {
|
|
|
112583
112583
|
}
|
|
112584
112584
|
|
|
112585
112585
|
function _getDashboardItems() {
|
|
112586
|
-
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112586
|
+
_getDashboardItems = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
112587
112587
|
var me, div, _yield$Promise$all, _yield$Promise$all2, books, pods, getPods, _getPods, getAddressBooks, _getAddressBooks;
|
|
112588
112588
|
|
|
112589
|
-
return regeneratorRuntime.wrap(function
|
|
112589
|
+
return regeneratorRuntime.wrap(function _callee7$(_context8) {
|
|
112590
112590
|
while (1) {
|
|
112591
|
-
switch (
|
|
112591
|
+
switch (_context8.prev = _context8.next) {
|
|
112592
112592
|
case 0:
|
|
112593
112593
|
_getAddressBooks = function _getAddressBooks3() {
|
|
112594
|
-
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112595
|
-
var
|
|
112594
|
+
_getAddressBooks = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
112595
|
+
var _context6;
|
|
112596
112596
|
|
|
112597
|
-
return regeneratorRuntime.wrap(function
|
|
112597
|
+
return regeneratorRuntime.wrap(function _callee6$(_context7) {
|
|
112598
112598
|
while (1) {
|
|
112599
|
-
switch (
|
|
112599
|
+
switch (_context7.prev = _context7.next) {
|
|
112600
112600
|
case 0:
|
|
112601
|
-
|
|
112602
|
-
|
|
112601
|
+
_context7.prev = 0;
|
|
112602
|
+
_context7.next = 3;
|
|
112603
112603
|
return UI.authn.findAppInstances({
|
|
112604
112604
|
me: me,
|
|
112605
112605
|
div: div,
|
|
@@ -112607,8 +112607,8 @@ function _default(context) {
|
|
|
112607
112607
|
}, ns.vcard('AddressBook'));
|
|
112608
112608
|
|
|
112609
112609
|
case 3:
|
|
112610
|
-
|
|
112611
|
-
return
|
|
112610
|
+
_context6 = _context7.sent;
|
|
112611
|
+
return _context7.abrupt("return", (_context6.instances || []).map(function (book, index) {
|
|
112612
112612
|
return {
|
|
112613
112613
|
paneName: 'contact',
|
|
112614
112614
|
tabName: "contact-".concat(index),
|
|
@@ -112619,19 +112619,19 @@ function _default(context) {
|
|
|
112619
112619
|
}));
|
|
112620
112620
|
|
|
112621
112621
|
case 7:
|
|
112622
|
-
|
|
112623
|
-
|
|
112622
|
+
_context7.prev = 7;
|
|
112623
|
+
_context7.t0 = _context7["catch"](0);
|
|
112624
112624
|
console.error('oops in globalAppTabs AddressBook');
|
|
112625
112625
|
|
|
112626
112626
|
case 10:
|
|
112627
|
-
return
|
|
112627
|
+
return _context7.abrupt("return", []);
|
|
112628
112628
|
|
|
112629
112629
|
case 11:
|
|
112630
112630
|
case "end":
|
|
112631
|
-
return
|
|
112631
|
+
return _context7.stop();
|
|
112632
112632
|
}
|
|
112633
112633
|
}
|
|
112634
|
-
},
|
|
112634
|
+
}, _callee6, null, [[0, 7]]);
|
|
112635
112635
|
}));
|
|
112636
112636
|
return _getAddressBooks.apply(this, arguments);
|
|
112637
112637
|
};
|
|
@@ -112641,142 +112641,173 @@ function _default(context) {
|
|
|
112641
112641
|
};
|
|
112642
112642
|
|
|
112643
112643
|
_getPods = function _getPods3() {
|
|
112644
|
-
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112645
|
-
var
|
|
112644
|
+
_getPods = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
112645
|
+
var addPodStorage, _addPodStorage, addPodStorageFromUrl, _addPodStorageFromUrl, pods, uri, podUrl, uniques;
|
|
112646
112646
|
|
|
112647
|
-
return regeneratorRuntime.wrap(function
|
|
112647
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
112648
112648
|
while (1) {
|
|
112649
|
-
switch (
|
|
112649
|
+
switch (_context5.prev = _context5.next) {
|
|
112650
112650
|
case 0:
|
|
112651
|
-
|
|
112652
|
-
|
|
112653
|
-
|
|
112654
|
-
|
|
112651
|
+
uniques = function _uniques(nodes) {
|
|
112652
|
+
var uniqueNodes = [];
|
|
112653
|
+
nodes.forEach(function (node) {
|
|
112654
|
+
if (!uniqueNodes.find(function (uniqueNode) {
|
|
112655
|
+
return uniqueNode.equals(node);
|
|
112656
|
+
})) uniqueNodes.push(node);
|
|
112657
|
+
});
|
|
112658
|
+
return uniqueNodes;
|
|
112659
|
+
};
|
|
112660
|
+
|
|
112661
|
+
_addPodStorageFromUrl = function _addPodStorageFromUrl3() {
|
|
112662
|
+
_addPodStorageFromUrl = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(url) {
|
|
112663
|
+
var podStorage, pathStorage;
|
|
112664
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
112655
112665
|
while (1) {
|
|
112656
|
-
switch (
|
|
112666
|
+
switch (_context4.prev = _context4.next) {
|
|
112657
112667
|
case 0:
|
|
112658
|
-
podStorage = new URL(url); // check
|
|
112659
|
-
|
|
112660
|
-
if (pods.some(function (pod) {
|
|
112661
|
-
return pod.uri.includes(podStorage.origin);
|
|
112662
|
-
})) {
|
|
112663
|
-
_context3.next = 10;
|
|
112664
|
-
break;
|
|
112665
|
-
}
|
|
112668
|
+
podStorage = new URL(url); // check for predicate pim:Storage in containers up the path tree
|
|
112666
112669
|
|
|
112667
|
-
|
|
112670
|
+
pathStorage = podStorage.pathname;
|
|
112668
112671
|
|
|
112669
|
-
|
|
112670
|
-
|
|
112672
|
+
case 2:
|
|
112673
|
+
if (!pathStorage.length) {
|
|
112674
|
+
_context4.next = 10;
|
|
112671
112675
|
break;
|
|
112672
112676
|
}
|
|
112673
112677
|
|
|
112674
|
-
|
|
112675
|
-
|
|
112678
|
+
pathStorage = pathStorage.substring(0, pathStorage.lastIndexOf('/'));
|
|
112679
|
+
_context4.next = 6;
|
|
112680
|
+
return addPodStorage(kb.sym("".concat(podStorage.origin).concat(pathStorage, "/")));
|
|
112676
112681
|
|
|
112677
112682
|
case 6:
|
|
112678
|
-
|
|
112679
|
-
|
|
112680
|
-
case 7:
|
|
112681
|
-
if (!_context3.t0) {
|
|
112682
|
-
_context3.next = 10;
|
|
112683
|
+
if (!_context4.sent) {
|
|
112684
|
+
_context4.next = 8;
|
|
112683
112685
|
break;
|
|
112684
112686
|
}
|
|
112685
112687
|
|
|
112686
|
-
|
|
112687
|
-
|
|
112688
|
+
return _context4.abrupt("return");
|
|
112689
|
+
|
|
112690
|
+
case 8:
|
|
112691
|
+
_context4.next = 2;
|
|
112692
|
+
break;
|
|
112688
112693
|
|
|
112689
112694
|
case 10:
|
|
112690
112695
|
case "end":
|
|
112691
|
-
return
|
|
112696
|
+
return _context4.stop();
|
|
112692
112697
|
}
|
|
112693
112698
|
}
|
|
112694
|
-
},
|
|
112699
|
+
}, _callee4);
|
|
112695
112700
|
}));
|
|
112696
|
-
return
|
|
112701
|
+
return _addPodStorageFromUrl.apply(this, arguments);
|
|
112697
112702
|
};
|
|
112698
112703
|
|
|
112699
|
-
|
|
112700
|
-
return
|
|
112704
|
+
addPodStorageFromUrl = function _addPodStorageFromUrl2(_x8) {
|
|
112705
|
+
return _addPodStorageFromUrl.apply(this, arguments);
|
|
112701
112706
|
};
|
|
112702
112707
|
|
|
112703
|
-
|
|
112704
|
-
|
|
112705
|
-
return regeneratorRuntime.wrap(function
|
|
112708
|
+
_addPodStorage = function _addPodStorage3() {
|
|
112709
|
+
_addPodStorage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(pod) {
|
|
112710
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
112706
112711
|
while (1) {
|
|
112707
|
-
switch (
|
|
112712
|
+
switch (_context3.prev = _context3.next) {
|
|
112708
112713
|
case 0:
|
|
112709
|
-
|
|
112710
|
-
return
|
|
112714
|
+
_context3.next = 2;
|
|
112715
|
+
return loadContainerRepresentation(pod);
|
|
112711
112716
|
|
|
112712
112717
|
case 2:
|
|
112713
112718
|
if (!kb.holds(pod, ns.rdf('type'), ns.space('Storage'), pod.doc())) {
|
|
112714
|
-
|
|
112719
|
+
_context3.next = 5;
|
|
112715
112720
|
break;
|
|
112716
112721
|
}
|
|
112717
112722
|
|
|
112718
112723
|
pods.push(pod);
|
|
112719
|
-
return
|
|
112724
|
+
return _context3.abrupt("return", true);
|
|
112720
112725
|
|
|
112721
112726
|
case 5:
|
|
112722
|
-
return
|
|
112727
|
+
return _context3.abrupt("return", false);
|
|
112723
112728
|
|
|
112724
112729
|
case 6:
|
|
112725
112730
|
case "end":
|
|
112726
|
-
return
|
|
112731
|
+
return _context3.stop();
|
|
112727
112732
|
}
|
|
112728
112733
|
}
|
|
112729
|
-
},
|
|
112734
|
+
}, _callee3);
|
|
112730
112735
|
}));
|
|
112731
|
-
return
|
|
112736
|
+
return _addPodStorage.apply(this, arguments);
|
|
112732
112737
|
};
|
|
112733
112738
|
|
|
112734
|
-
|
|
112735
|
-
return
|
|
112739
|
+
addPodStorage = function _addPodStorage2(_x7) {
|
|
112740
|
+
return _addPodStorage.apply(this, arguments);
|
|
112736
112741
|
};
|
|
112737
112742
|
|
|
112738
|
-
|
|
112739
|
-
|
|
112743
|
+
_context5.prev = 5;
|
|
112744
|
+
_context5.next = 8;
|
|
112740
112745
|
return kb.fetcher.load(me.doc());
|
|
112741
112746
|
|
|
112742
|
-
case
|
|
112743
|
-
|
|
112747
|
+
case 8:
|
|
112748
|
+
_context5.next = 14;
|
|
112744
112749
|
break;
|
|
112745
112750
|
|
|
112746
|
-
case
|
|
112747
|
-
|
|
112748
|
-
|
|
112749
|
-
console.error('Unable to load profile',
|
|
112750
|
-
return
|
|
112751
|
+
case 10:
|
|
112752
|
+
_context5.prev = 10;
|
|
112753
|
+
_context5.t0 = _context5["catch"](5);
|
|
112754
|
+
console.error('Unable to load profile', _context5.t0);
|
|
112755
|
+
return _context5.abrupt("return", []);
|
|
112751
112756
|
|
|
112752
|
-
case
|
|
112757
|
+
case 14:
|
|
112758
|
+
// load pod's storages from profile
|
|
112753
112759
|
pods = kb.each(me, ns.space('storage'), null, me.doc());
|
|
112754
|
-
|
|
112760
|
+
pods.map( /*#__PURE__*/function () {
|
|
112761
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(pod) {
|
|
112762
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
112763
|
+
while (1) {
|
|
112764
|
+
switch (_context2.prev = _context2.next) {
|
|
112765
|
+
case 0:
|
|
112766
|
+
_context2.next = 2;
|
|
112767
|
+
return loadContainerRepresentation(pod);
|
|
112768
|
+
|
|
112769
|
+
case 2:
|
|
112770
|
+
case "end":
|
|
112771
|
+
return _context2.stop();
|
|
112772
|
+
}
|
|
112773
|
+
}
|
|
112774
|
+
}, _callee2);
|
|
112775
|
+
}));
|
|
112776
|
+
|
|
112777
|
+
return function (_x9) {
|
|
112778
|
+
return _ref.apply(this, arguments);
|
|
112779
|
+
};
|
|
112780
|
+
}());
|
|
112781
|
+
_context5.prev = 16;
|
|
112755
112782
|
// if uri then SolidOS is a browse.html web app
|
|
112756
112783
|
uri = new URL(window.location.href).searchParams.get('uri');
|
|
112757
112784
|
podUrl = uri || window.location.href;
|
|
112758
|
-
|
|
112759
|
-
return
|
|
112785
|
+
_context5.next = 21;
|
|
112786
|
+
return addPodStorageFromUrl(podUrl);
|
|
112760
112787
|
|
|
112761
|
-
case
|
|
112762
|
-
|
|
112788
|
+
case 21:
|
|
112789
|
+
_context5.next = 26;
|
|
112763
112790
|
break;
|
|
112764
112791
|
|
|
112765
|
-
case
|
|
112766
|
-
|
|
112767
|
-
|
|
112768
|
-
console.error('cannot load container',
|
|
112792
|
+
case 23:
|
|
112793
|
+
_context5.prev = 23;
|
|
112794
|
+
_context5.t1 = _context5["catch"](16);
|
|
112795
|
+
console.error('cannot load container', _context5.t1);
|
|
112796
|
+
|
|
112797
|
+
case 26:
|
|
112798
|
+
pods = uniques(pods);
|
|
112799
|
+
console.log('return pods');
|
|
112800
|
+
console.log(pods);
|
|
112769
112801
|
|
|
112770
|
-
case 24:
|
|
112771
112802
|
if (pods.length) {
|
|
112772
|
-
|
|
112803
|
+
_context5.next = 31;
|
|
112773
112804
|
break;
|
|
112774
112805
|
}
|
|
112775
112806
|
|
|
112776
|
-
return
|
|
112807
|
+
return _context5.abrupt("return", []);
|
|
112777
112808
|
|
|
112778
|
-
case
|
|
112779
|
-
return
|
|
112809
|
+
case 31:
|
|
112810
|
+
return _context5.abrupt("return", pods.map(function (pod, index) {
|
|
112780
112811
|
function split(item) {
|
|
112781
112812
|
return item.uri.split('//')[1].slice(0, -1);
|
|
112782
112813
|
}
|
|
@@ -112791,12 +112822,12 @@ function _default(context) {
|
|
|
112791
112822
|
};
|
|
112792
112823
|
}));
|
|
112793
112824
|
|
|
112794
|
-
case
|
|
112825
|
+
case 32:
|
|
112795
112826
|
case "end":
|
|
112796
|
-
return
|
|
112827
|
+
return _context5.stop();
|
|
112797
112828
|
}
|
|
112798
112829
|
}
|
|
112799
|
-
},
|
|
112830
|
+
}, _callee5, null, [[5, 10], [16, 23]]);
|
|
112800
112831
|
}));
|
|
112801
112832
|
return _getPods.apply(this, arguments);
|
|
112802
112833
|
};
|
|
@@ -112808,23 +112839,23 @@ function _default(context) {
|
|
|
112808
112839
|
me = UI.authn.currentUser();
|
|
112809
112840
|
|
|
112810
112841
|
if (me) {
|
|
112811
|
-
|
|
112842
|
+
_context8.next = 7;
|
|
112812
112843
|
break;
|
|
112813
112844
|
}
|
|
112814
112845
|
|
|
112815
|
-
return
|
|
112846
|
+
return _context8.abrupt("return", []);
|
|
112816
112847
|
|
|
112817
112848
|
case 7:
|
|
112818
112849
|
div = dom.createElement('div');
|
|
112819
|
-
|
|
112850
|
+
_context8.next = 10;
|
|
112820
112851
|
return Promise.all([getAddressBooks(), getPods()]);
|
|
112821
112852
|
|
|
112822
112853
|
case 10:
|
|
112823
|
-
_yield$Promise$all =
|
|
112854
|
+
_yield$Promise$all = _context8.sent;
|
|
112824
112855
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
112825
112856
|
books = _yield$Promise$all2[0];
|
|
112826
112857
|
pods = _yield$Promise$all2[1];
|
|
112827
|
-
return
|
|
112858
|
+
return _context8.abrupt("return", [{
|
|
112828
112859
|
paneName: 'home',
|
|
112829
112860
|
label: 'Your stuff',
|
|
112830
112861
|
icon: UI.icons.iconBase + 'noun_547570.svg'
|
|
@@ -112840,10 +112871,10 @@ function _default(context) {
|
|
|
112840
112871
|
|
|
112841
112872
|
case 15:
|
|
112842
112873
|
case "end":
|
|
112843
|
-
return
|
|
112874
|
+
return _context8.stop();
|
|
112844
112875
|
}
|
|
112845
112876
|
}
|
|
112846
|
-
},
|
|
112877
|
+
}, _callee7);
|
|
112847
112878
|
}));
|
|
112848
112879
|
return _getDashboardItems.apply(this, arguments);
|
|
112849
112880
|
}
|
|
@@ -112862,7 +112893,7 @@ function _default(context) {
|
|
|
112862
112893
|
}
|
|
112863
112894
|
|
|
112864
112895
|
function _showDashboard() {
|
|
112865
|
-
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112896
|
+
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
112866
112897
|
var options,
|
|
112867
112898
|
dashboardContainer,
|
|
112868
112899
|
outlineContainer,
|
|
@@ -112870,23 +112901,23 @@ function _default(context) {
|
|
|
112870
112901
|
dashboard,
|
|
112871
112902
|
tab,
|
|
112872
112903
|
closeDashboard,
|
|
112873
|
-
|
|
112904
|
+
_args8 = arguments;
|
|
112874
112905
|
|
|
112875
|
-
return regeneratorRuntime.wrap(function
|
|
112906
|
+
return regeneratorRuntime.wrap(function _callee8$(_context9) {
|
|
112876
112907
|
while (1) {
|
|
112877
|
-
switch (
|
|
112908
|
+
switch (_context9.prev = _context9.next) {
|
|
112878
112909
|
case 0:
|
|
112879
112910
|
closeDashboard = function _closeDashboard() {
|
|
112880
112911
|
dashboardContainer.style.display = 'none';
|
|
112881
112912
|
outlineContainer.style.display = 'inherit';
|
|
112882
112913
|
};
|
|
112883
112914
|
|
|
112884
|
-
options =
|
|
112915
|
+
options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
112885
112916
|
dashboardContainer = getDashboardContainer();
|
|
112886
112917
|
outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
|
|
112887
112918
|
|
|
112888
112919
|
if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
|
|
112889
|
-
|
|
112920
|
+
_context9.next = 12;
|
|
112890
112921
|
break;
|
|
112891
112922
|
}
|
|
112892
112923
|
|
|
@@ -112895,26 +112926,26 @@ function _default(context) {
|
|
|
112895
112926
|
_tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
|
|
112896
112927
|
|
|
112897
112928
|
if (!_tab) {
|
|
112898
|
-
|
|
112929
|
+
_context9.next = 11;
|
|
112899
112930
|
break;
|
|
112900
112931
|
}
|
|
112901
112932
|
|
|
112902
112933
|
_tab.click();
|
|
112903
112934
|
|
|
112904
|
-
return
|
|
112935
|
+
return _context9.abrupt("return");
|
|
112905
112936
|
|
|
112906
112937
|
case 11:
|
|
112907
112938
|
console.warn('Did not find the referred tab in global dashboard, will open first one');
|
|
112908
112939
|
|
|
112909
112940
|
case 12:
|
|
112910
|
-
|
|
112941
|
+
_context9.next = 14;
|
|
112911
112942
|
return globalAppTabs({
|
|
112912
112943
|
selectedTab: options.pane,
|
|
112913
112944
|
onClose: closeDashboard
|
|
112914
112945
|
});
|
|
112915
112946
|
|
|
112916
112947
|
case 14:
|
|
112917
|
-
dashboard =
|
|
112948
|
+
dashboard = _context9.sent;
|
|
112918
112949
|
// close the dashboard if user log out
|
|
112919
112950
|
UI.authn.authSession.onLogout(closeDashboard); // finally - switch to showing dashboard
|
|
112920
112951
|
|
|
@@ -112928,10 +112959,10 @@ function _default(context) {
|
|
|
112928
112959
|
|
|
112929
112960
|
case 20:
|
|
112930
112961
|
case "end":
|
|
112931
|
-
return
|
|
112962
|
+
return _context9.stop();
|
|
112932
112963
|
}
|
|
112933
112964
|
}
|
|
112934
|
-
},
|
|
112965
|
+
}, _callee8);
|
|
112935
112966
|
}));
|
|
112936
112967
|
return _showDashboard.apply(this, arguments);
|
|
112937
112968
|
}
|
|
@@ -112962,23 +112993,23 @@ function _default(context) {
|
|
|
112962
112993
|
}();
|
|
112963
112994
|
}
|
|
112964
112995
|
|
|
112965
|
-
function
|
|
112966
|
-
return
|
|
112996
|
+
function loadContainerRepresentation(_x) {
|
|
112997
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
112967
112998
|
}
|
|
112968
112999
|
|
|
112969
|
-
function
|
|
112970
|
-
|
|
113000
|
+
function _loadContainerRepresentation() {
|
|
113001
|
+
_loadContainerRepresentation = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(subject) {
|
|
112971
113002
|
var response, containerTurtle;
|
|
112972
|
-
return regeneratorRuntime.wrap(function
|
|
113003
|
+
return regeneratorRuntime.wrap(function _callee9$(_context10) {
|
|
112973
113004
|
while (1) {
|
|
112974
|
-
switch (
|
|
113005
|
+
switch (_context10.prev = _context10.next) {
|
|
112975
113006
|
case 0:
|
|
112976
113007
|
if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
|
|
112977
|
-
|
|
113008
|
+
_context10.next = 6;
|
|
112978
113009
|
break;
|
|
112979
113010
|
}
|
|
112980
113011
|
|
|
112981
|
-
|
|
113012
|
+
_context10.next = 3;
|
|
112982
113013
|
return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
|
|
112983
113014
|
headers: {
|
|
112984
113015
|
accept: 'text/turtle'
|
|
@@ -112986,18 +113017,18 @@ function _default(context) {
|
|
|
112986
113017
|
}));
|
|
112987
113018
|
|
|
112988
113019
|
case 3:
|
|
112989
|
-
response =
|
|
113020
|
+
response = _context10.sent;
|
|
112990
113021
|
containerTurtle = response.responseText;
|
|
112991
113022
|
$rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
|
|
112992
113023
|
|
|
112993
113024
|
case 6:
|
|
112994
113025
|
case "end":
|
|
112995
|
-
return
|
|
113026
|
+
return _context10.stop();
|
|
112996
113027
|
}
|
|
112997
113028
|
}
|
|
112998
|
-
},
|
|
113029
|
+
}, _callee9);
|
|
112999
113030
|
}));
|
|
113000
|
-
return
|
|
113031
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
113001
113032
|
}
|
|
113002
113033
|
|
|
113003
113034
|
function getRelevantPanes(_x2, _x3) {
|
|
@@ -113005,19 +113036,19 @@ function _default(context) {
|
|
|
113005
113036
|
}
|
|
113006
113037
|
|
|
113007
113038
|
function _getRelevantPanes() {
|
|
113008
|
-
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113039
|
+
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(subject, context) {
|
|
113009
113040
|
var panes, relevantPanes, filteredPanes, firstRelevantPaneIndex, firstFilteredPaneIndex;
|
|
113010
|
-
return regeneratorRuntime.wrap(function
|
|
113041
|
+
return regeneratorRuntime.wrap(function _callee10$(_context11) {
|
|
113011
113042
|
while (1) {
|
|
113012
|
-
switch (
|
|
113043
|
+
switch (_context11.prev = _context11.next) {
|
|
113013
113044
|
case 0:
|
|
113014
113045
|
if (!subject.uri.endsWith('/')) {
|
|
113015
|
-
|
|
113046
|
+
_context11.next = 3;
|
|
113016
113047
|
break;
|
|
113017
113048
|
}
|
|
113018
113049
|
|
|
113019
|
-
|
|
113020
|
-
return
|
|
113050
|
+
_context11.next = 3;
|
|
113051
|
+
return loadContainerRepresentation(subject);
|
|
113021
113052
|
|
|
113022
113053
|
case 3:
|
|
113023
113054
|
panes = context.session.paneRegistry;
|
|
@@ -113026,38 +113057,38 @@ function _default(context) {
|
|
|
113026
113057
|
});
|
|
113027
113058
|
|
|
113028
113059
|
if (!(relevantPanes.length === 0)) {
|
|
113029
|
-
|
|
113060
|
+
_context11.next = 7;
|
|
113030
113061
|
break;
|
|
113031
113062
|
}
|
|
113032
113063
|
|
|
113033
|
-
return
|
|
113064
|
+
return _context11.abrupt("return", [panes.byName('internal')]);
|
|
113034
113065
|
|
|
113035
113066
|
case 7:
|
|
113036
|
-
|
|
113067
|
+
_context11.next = 9;
|
|
113037
113068
|
return UI.authn.filterAvailablePanes(relevantPanes);
|
|
113038
113069
|
|
|
113039
113070
|
case 9:
|
|
113040
|
-
filteredPanes =
|
|
113071
|
+
filteredPanes = _context11.sent;
|
|
113041
113072
|
|
|
113042
113073
|
if (!(filteredPanes.length === 0)) {
|
|
113043
|
-
|
|
113074
|
+
_context11.next = 12;
|
|
113044
113075
|
break;
|
|
113045
113076
|
}
|
|
113046
113077
|
|
|
113047
|
-
return
|
|
113078
|
+
return _context11.abrupt("return", [relevantPanes[0]]);
|
|
113048
113079
|
|
|
113049
113080
|
case 12:
|
|
113050
113081
|
firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
|
|
113051
113082
|
firstFilteredPaneIndex = panes.list.indexOf(filteredPanes[0]); // if the first relevant pane is loaded before the panes available wrt role, we still want to offer the most relevant pane
|
|
113052
113083
|
|
|
113053
|
-
return
|
|
113084
|
+
return _context11.abrupt("return", firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
|
|
113054
113085
|
|
|
113055
113086
|
case 15:
|
|
113056
113087
|
case "end":
|
|
113057
|
-
return
|
|
113088
|
+
return _context11.stop();
|
|
113058
113089
|
}
|
|
113059
113090
|
}
|
|
113060
|
-
},
|
|
113091
|
+
}, _callee10);
|
|
113061
113092
|
}));
|
|
113062
113093
|
return _getRelevantPanes.apply(this, arguments);
|
|
113063
113094
|
}
|
|
@@ -113095,50 +113126,50 @@ function _default(context) {
|
|
|
113095
113126
|
|
|
113096
113127
|
|
|
113097
113128
|
function _expandedHeaderTR() {
|
|
113098
|
-
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113129
|
+
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(subject, requiredPane, options) {
|
|
113099
113130
|
var renderPaneIconTray, _renderPaneIconTray, tr, td, header, showHeader, icon, strong;
|
|
113100
113131
|
|
|
113101
|
-
return regeneratorRuntime.wrap(function
|
|
113132
|
+
return regeneratorRuntime.wrap(function _callee12$(_context13) {
|
|
113102
113133
|
while (1) {
|
|
113103
|
-
switch (
|
|
113134
|
+
switch (_context13.prev = _context13.next) {
|
|
113104
113135
|
case 0:
|
|
113105
113136
|
_renderPaneIconTray = function _renderPaneIconTray3() {
|
|
113106
|
-
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113137
|
+
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(td) {
|
|
113107
113138
|
var options,
|
|
113108
113139
|
paneShownStyle,
|
|
113109
113140
|
paneHiddenStyle,
|
|
113110
113141
|
paneIconTray,
|
|
113111
113142
|
relevantPanes,
|
|
113112
113143
|
paneNumber,
|
|
113113
|
-
|
|
113114
|
-
return regeneratorRuntime.wrap(function
|
|
113144
|
+
_args11 = arguments;
|
|
113145
|
+
return regeneratorRuntime.wrap(function _callee11$(_context12) {
|
|
113115
113146
|
while (1) {
|
|
113116
|
-
switch (
|
|
113147
|
+
switch (_context12.prev = _context12.next) {
|
|
113117
113148
|
case 0:
|
|
113118
|
-
options =
|
|
113149
|
+
options = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
|
|
113119
113150
|
paneShownStyle = 'width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;';
|
|
113120
113151
|
paneHiddenStyle = 'width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px';
|
|
113121
113152
|
paneIconTray = td.appendChild(dom.createElement('nav'));
|
|
113122
113153
|
paneIconTray.style = 'display:flex; justify-content: flex-start; align-items: center;';
|
|
113123
113154
|
|
|
113124
113155
|
if (!options.hideList) {
|
|
113125
|
-
|
|
113156
|
+
_context12.next = 9;
|
|
113126
113157
|
break;
|
|
113127
113158
|
}
|
|
113128
113159
|
|
|
113129
|
-
|
|
113130
|
-
|
|
113160
|
+
_context12.t0 = [];
|
|
113161
|
+
_context12.next = 12;
|
|
113131
113162
|
break;
|
|
113132
113163
|
|
|
113133
113164
|
case 9:
|
|
113134
|
-
|
|
113165
|
+
_context12.next = 11;
|
|
113135
113166
|
return getRelevantPanes(subject, context);
|
|
113136
113167
|
|
|
113137
113168
|
case 11:
|
|
113138
|
-
|
|
113169
|
+
_context12.t0 = _context12.sent;
|
|
113139
113170
|
|
|
113140
113171
|
case 12:
|
|
113141
|
-
relevantPanes =
|
|
113172
|
+
relevantPanes = _context12.t0;
|
|
113142
113173
|
tr.firstPane = requiredPane || getPane(relevantPanes, subject);
|
|
113143
113174
|
paneNumber = relevantPanes.indexOf(tr.firstPane);
|
|
113144
113175
|
|
|
@@ -113255,19 +113286,19 @@ function _default(context) {
|
|
|
113255
113286
|
});
|
|
113256
113287
|
}
|
|
113257
113288
|
|
|
113258
|
-
return
|
|
113289
|
+
return _context12.abrupt("return", paneIconTray);
|
|
113259
113290
|
|
|
113260
113291
|
case 17:
|
|
113261
113292
|
case "end":
|
|
113262
|
-
return
|
|
113293
|
+
return _context12.stop();
|
|
113263
113294
|
}
|
|
113264
113295
|
}
|
|
113265
|
-
},
|
|
113296
|
+
}, _callee11);
|
|
113266
113297
|
}));
|
|
113267
113298
|
return _renderPaneIconTray.apply(this, arguments);
|
|
113268
113299
|
};
|
|
113269
113300
|
|
|
113270
|
-
renderPaneIconTray = function _renderPaneIconTray2(
|
|
113301
|
+
renderPaneIconTray = function _renderPaneIconTray2(_x10) {
|
|
113271
113302
|
return _renderPaneIconTray.apply(this, arguments);
|
|
113272
113303
|
};
|
|
113273
113304
|
|
|
@@ -113299,16 +113330,16 @@ function _default(context) {
|
|
|
113299
113330
|
UI.widgets.makeDraggable(strong, subject);
|
|
113300
113331
|
}
|
|
113301
113332
|
|
|
113302
|
-
|
|
113303
|
-
|
|
113333
|
+
_context13.t0 = header;
|
|
113334
|
+
_context13.next = 16;
|
|
113304
113335
|
return renderPaneIconTray(td, {
|
|
113305
113336
|
hideList: showHeader
|
|
113306
113337
|
});
|
|
113307
113338
|
|
|
113308
113339
|
case 16:
|
|
113309
|
-
|
|
113340
|
+
_context13.t1 = _context13.sent;
|
|
113310
113341
|
|
|
113311
|
-
|
|
113342
|
+
_context13.t0.appendChild.call(_context13.t0, _context13.t1);
|
|
113312
113343
|
|
|
113313
113344
|
// set DOM methods
|
|
113314
113345
|
tr.firstChild.tabulatorSelect = function () {
|
|
@@ -113319,14 +113350,14 @@ function _default(context) {
|
|
|
113319
113350
|
setSelected(this, false);
|
|
113320
113351
|
};
|
|
113321
113352
|
|
|
113322
|
-
return
|
|
113353
|
+
return _context13.abrupt("return", tr);
|
|
113323
113354
|
|
|
113324
113355
|
case 21:
|
|
113325
113356
|
case "end":
|
|
113326
|
-
return
|
|
113357
|
+
return _context13.stop();
|
|
113327
113358
|
}
|
|
113328
113359
|
}
|
|
113329
|
-
},
|
|
113360
|
+
}, _callee12);
|
|
113330
113361
|
}));
|
|
113331
113362
|
return _expandedHeaderTR.apply(this, arguments);
|
|
113332
113363
|
}
|
|
@@ -121963,25 +121994,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
121963
121994
|
});
|
|
121964
121995
|
exports["default"] = void 0;
|
|
121965
121996
|
var _default = {
|
|
121966
|
-
buildTime: '2022-
|
|
121967
|
-
commit: '
|
|
121997
|
+
buildTime: '2022-02-09T16:31:11Z',
|
|
121998
|
+
commit: '0d8bceeba53c989c3ab9d5b9a86b786c6977b999',
|
|
121968
121999
|
npmInfo: {
|
|
121969
|
-
'solid-panes': '3.5.
|
|
121970
|
-
npm: '6.
|
|
121971
|
-
ares: '1.
|
|
121972
|
-
brotli: '1.0.
|
|
121973
|
-
cldr: '
|
|
121974
|
-
|
|
121975
|
-
|
|
121976
|
-
|
|
121977
|
-
|
|
121978
|
-
|
|
121979
|
-
|
|
121980
|
-
|
|
121981
|
-
|
|
121982
|
-
|
|
121983
|
-
|
|
121984
|
-
|
|
122000
|
+
'solid-panes': '3.5.16-alpha',
|
|
122001
|
+
npm: '6.10.0',
|
|
122002
|
+
ares: '1.15.0',
|
|
122003
|
+
brotli: '1.0.7',
|
|
122004
|
+
cldr: '35.1',
|
|
122005
|
+
http_parser: '2.8.0',
|
|
122006
|
+
icu: '64.2',
|
|
122007
|
+
llhttp: '1.1.4',
|
|
122008
|
+
modules: '72',
|
|
122009
|
+
napi: '4',
|
|
122010
|
+
nghttp2: '1.39.1',
|
|
122011
|
+
node: '12.7.0',
|
|
122012
|
+
openssl: '1.1.1c',
|
|
122013
|
+
tz: '2019a',
|
|
122014
|
+
unicode: '12.1',
|
|
122015
|
+
uv: '1.30.1',
|
|
122016
|
+
v8: '7.5.288.22-node.16',
|
|
121985
122017
|
zlib: '1.2.11'
|
|
121986
122018
|
}
|
|
121987
122019
|
};
|
|
@@ -149059,25 +149091,25 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
149059
149091
|
"use strict";
|
|
149060
149092
|
__webpack_require__.r(__webpack_exports__);
|
|
149061
149093
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
149062
|
-
buildTime: '2022-
|
|
149063
|
-
commit: '
|
|
149094
|
+
buildTime: '2022-02-09T19:58:54Z',
|
|
149095
|
+
commit: '2bedbec8be64fd2a78d0ffc51b9d942beae08543',
|
|
149064
149096
|
npmInfo: {
|
|
149065
|
-
mashlib: '1.7.
|
|
149066
|
-
npm: '6.14.
|
|
149067
|
-
ares: '1.
|
|
149097
|
+
mashlib: '1.7.19',
|
|
149098
|
+
npm: '6.14.15',
|
|
149099
|
+
ares: '1.18.1',
|
|
149068
149100
|
brotli: '1.0.9',
|
|
149069
149101
|
cldr: '39.0',
|
|
149070
149102
|
icu: '69.1',
|
|
149071
|
-
llhttp: '2.1.
|
|
149103
|
+
llhttp: '2.1.4',
|
|
149072
149104
|
modules: '83',
|
|
149073
149105
|
napi: '8',
|
|
149074
149106
|
nghttp2: '1.42.0',
|
|
149075
|
-
node: '14.
|
|
149076
|
-
openssl: '1.1.
|
|
149107
|
+
node: '14.18.3',
|
|
149108
|
+
openssl: '1.1.1l',
|
|
149077
149109
|
tz: '2021a',
|
|
149078
149110
|
unicode: '13.0',
|
|
149079
|
-
uv: '1.
|
|
149080
|
-
v8: '8.4.371.23-node.
|
|
149111
|
+
uv: '1.42.0',
|
|
149112
|
+
v8: '8.4.371.23-node.85',
|
|
149081
149113
|
zlib: '1.2.11'
|
|
149082
149114
|
}
|
|
149083
149115
|
});
|