mashlib 1.7.18 → 1.7.20
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/dist/mashlib.js +198 -169
- 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 +2 -2
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,171 @@ 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
|
|
112668
|
+
podStorage = new URL(url); // check for predicate pim:Storage in containers up the path tree
|
|
112659
112669
|
|
|
112660
|
-
|
|
112661
|
-
return pod.uri.includes(podStorage.origin);
|
|
112662
|
-
})) {
|
|
112663
|
-
_context3.next = 10;
|
|
112664
|
-
break;
|
|
112665
|
-
}
|
|
112670
|
+
pathStorage = podStorage.pathname;
|
|
112666
112671
|
|
|
112667
|
-
|
|
112668
|
-
|
|
112669
|
-
|
|
112670
|
-
_context3.next = 7;
|
|
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);
|
|
112769
112799
|
|
|
112770
|
-
case 24:
|
|
112771
112800
|
if (pods.length) {
|
|
112772
|
-
|
|
112801
|
+
_context5.next = 29;
|
|
112773
112802
|
break;
|
|
112774
112803
|
}
|
|
112775
112804
|
|
|
112776
|
-
return
|
|
112805
|
+
return _context5.abrupt("return", []);
|
|
112777
112806
|
|
|
112778
|
-
case
|
|
112779
|
-
return
|
|
112807
|
+
case 29:
|
|
112808
|
+
return _context5.abrupt("return", pods.map(function (pod, index) {
|
|
112780
112809
|
function split(item) {
|
|
112781
112810
|
return item.uri.split('//')[1].slice(0, -1);
|
|
112782
112811
|
}
|
|
@@ -112791,12 +112820,12 @@ function _default(context) {
|
|
|
112791
112820
|
};
|
|
112792
112821
|
}));
|
|
112793
112822
|
|
|
112794
|
-
case
|
|
112823
|
+
case 30:
|
|
112795
112824
|
case "end":
|
|
112796
|
-
return
|
|
112825
|
+
return _context5.stop();
|
|
112797
112826
|
}
|
|
112798
112827
|
}
|
|
112799
|
-
},
|
|
112828
|
+
}, _callee5, null, [[5, 10], [16, 23]]);
|
|
112800
112829
|
}));
|
|
112801
112830
|
return _getPods.apply(this, arguments);
|
|
112802
112831
|
};
|
|
@@ -112808,23 +112837,23 @@ function _default(context) {
|
|
|
112808
112837
|
me = UI.authn.currentUser();
|
|
112809
112838
|
|
|
112810
112839
|
if (me) {
|
|
112811
|
-
|
|
112840
|
+
_context8.next = 7;
|
|
112812
112841
|
break;
|
|
112813
112842
|
}
|
|
112814
112843
|
|
|
112815
|
-
return
|
|
112844
|
+
return _context8.abrupt("return", []);
|
|
112816
112845
|
|
|
112817
112846
|
case 7:
|
|
112818
112847
|
div = dom.createElement('div');
|
|
112819
|
-
|
|
112848
|
+
_context8.next = 10;
|
|
112820
112849
|
return Promise.all([getAddressBooks(), getPods()]);
|
|
112821
112850
|
|
|
112822
112851
|
case 10:
|
|
112823
|
-
_yield$Promise$all =
|
|
112852
|
+
_yield$Promise$all = _context8.sent;
|
|
112824
112853
|
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
112825
112854
|
books = _yield$Promise$all2[0];
|
|
112826
112855
|
pods = _yield$Promise$all2[1];
|
|
112827
|
-
return
|
|
112856
|
+
return _context8.abrupt("return", [{
|
|
112828
112857
|
paneName: 'home',
|
|
112829
112858
|
label: 'Your stuff',
|
|
112830
112859
|
icon: UI.icons.iconBase + 'noun_547570.svg'
|
|
@@ -112840,10 +112869,10 @@ function _default(context) {
|
|
|
112840
112869
|
|
|
112841
112870
|
case 15:
|
|
112842
112871
|
case "end":
|
|
112843
|
-
return
|
|
112872
|
+
return _context8.stop();
|
|
112844
112873
|
}
|
|
112845
112874
|
}
|
|
112846
|
-
},
|
|
112875
|
+
}, _callee7);
|
|
112847
112876
|
}));
|
|
112848
112877
|
return _getDashboardItems.apply(this, arguments);
|
|
112849
112878
|
}
|
|
@@ -112862,7 +112891,7 @@ function _default(context) {
|
|
|
112862
112891
|
}
|
|
112863
112892
|
|
|
112864
112893
|
function _showDashboard() {
|
|
112865
|
-
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
112894
|
+
_showDashboard = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
112866
112895
|
var options,
|
|
112867
112896
|
dashboardContainer,
|
|
112868
112897
|
outlineContainer,
|
|
@@ -112870,23 +112899,23 @@ function _default(context) {
|
|
|
112870
112899
|
dashboard,
|
|
112871
112900
|
tab,
|
|
112872
112901
|
closeDashboard,
|
|
112873
|
-
|
|
112902
|
+
_args8 = arguments;
|
|
112874
112903
|
|
|
112875
|
-
return regeneratorRuntime.wrap(function
|
|
112904
|
+
return regeneratorRuntime.wrap(function _callee8$(_context9) {
|
|
112876
112905
|
while (1) {
|
|
112877
|
-
switch (
|
|
112906
|
+
switch (_context9.prev = _context9.next) {
|
|
112878
112907
|
case 0:
|
|
112879
112908
|
closeDashboard = function _closeDashboard() {
|
|
112880
112909
|
dashboardContainer.style.display = 'none';
|
|
112881
112910
|
outlineContainer.style.display = 'inherit';
|
|
112882
112911
|
};
|
|
112883
112912
|
|
|
112884
|
-
options =
|
|
112913
|
+
options = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
|
|
112885
112914
|
dashboardContainer = getDashboardContainer();
|
|
112886
112915
|
outlineContainer = getOutlineContainer(); // reuse dashboard if already children already is inserted
|
|
112887
112916
|
|
|
112888
112917
|
if (!(dashboardContainer.childNodes.length > 0 && options.pane)) {
|
|
112889
|
-
|
|
112918
|
+
_context9.next = 12;
|
|
112890
112919
|
break;
|
|
112891
112920
|
}
|
|
112892
112921
|
|
|
@@ -112895,26 +112924,26 @@ function _default(context) {
|
|
|
112895
112924
|
_tab = dashboardContainer.querySelector("[data-global-pane-name=\"".concat(options.pane, "\"]"));
|
|
112896
112925
|
|
|
112897
112926
|
if (!_tab) {
|
|
112898
|
-
|
|
112927
|
+
_context9.next = 11;
|
|
112899
112928
|
break;
|
|
112900
112929
|
}
|
|
112901
112930
|
|
|
112902
112931
|
_tab.click();
|
|
112903
112932
|
|
|
112904
|
-
return
|
|
112933
|
+
return _context9.abrupt("return");
|
|
112905
112934
|
|
|
112906
112935
|
case 11:
|
|
112907
112936
|
console.warn('Did not find the referred tab in global dashboard, will open first one');
|
|
112908
112937
|
|
|
112909
112938
|
case 12:
|
|
112910
|
-
|
|
112939
|
+
_context9.next = 14;
|
|
112911
112940
|
return globalAppTabs({
|
|
112912
112941
|
selectedTab: options.pane,
|
|
112913
112942
|
onClose: closeDashboard
|
|
112914
112943
|
});
|
|
112915
112944
|
|
|
112916
112945
|
case 14:
|
|
112917
|
-
dashboard =
|
|
112946
|
+
dashboard = _context9.sent;
|
|
112918
112947
|
// close the dashboard if user log out
|
|
112919
112948
|
UI.authn.authSession.onLogout(closeDashboard); // finally - switch to showing dashboard
|
|
112920
112949
|
|
|
@@ -112928,10 +112957,10 @@ function _default(context) {
|
|
|
112928
112957
|
|
|
112929
112958
|
case 20:
|
|
112930
112959
|
case "end":
|
|
112931
|
-
return
|
|
112960
|
+
return _context9.stop();
|
|
112932
112961
|
}
|
|
112933
112962
|
}
|
|
112934
|
-
},
|
|
112963
|
+
}, _callee8);
|
|
112935
112964
|
}));
|
|
112936
112965
|
return _showDashboard.apply(this, arguments);
|
|
112937
112966
|
}
|
|
@@ -112962,23 +112991,23 @@ function _default(context) {
|
|
|
112962
112991
|
}();
|
|
112963
112992
|
}
|
|
112964
112993
|
|
|
112965
|
-
function
|
|
112966
|
-
return
|
|
112994
|
+
function loadContainerRepresentation(_x) {
|
|
112995
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
112967
112996
|
}
|
|
112968
112997
|
|
|
112969
|
-
function
|
|
112970
|
-
|
|
112998
|
+
function _loadContainerRepresentation() {
|
|
112999
|
+
_loadContainerRepresentation = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(subject) {
|
|
112971
113000
|
var response, containerTurtle;
|
|
112972
|
-
return regeneratorRuntime.wrap(function
|
|
113001
|
+
return regeneratorRuntime.wrap(function _callee9$(_context10) {
|
|
112973
113002
|
while (1) {
|
|
112974
|
-
switch (
|
|
113003
|
+
switch (_context10.prev = _context10.next) {
|
|
112975
113004
|
case 0:
|
|
112976
113005
|
if (kb.any(subject, ns.ldp('contains'), undefined, subject.doc())) {
|
|
112977
|
-
|
|
113006
|
+
_context10.next = 6;
|
|
112978
113007
|
break;
|
|
112979
113008
|
}
|
|
112980
113009
|
|
|
112981
|
-
|
|
113010
|
+
_context10.next = 3;
|
|
112982
113011
|
return kb.fetcher.webOperation('GET', subject.uri, kb.fetcher.initFetchOptions(subject.uri, {
|
|
112983
113012
|
headers: {
|
|
112984
113013
|
accept: 'text/turtle'
|
|
@@ -112986,18 +113015,18 @@ function _default(context) {
|
|
|
112986
113015
|
}));
|
|
112987
113016
|
|
|
112988
113017
|
case 3:
|
|
112989
|
-
response =
|
|
113018
|
+
response = _context10.sent;
|
|
112990
113019
|
containerTurtle = response.responseText;
|
|
112991
113020
|
$rdf.parse(containerTurtle, kb, subject.uri, 'text/turtle');
|
|
112992
113021
|
|
|
112993
113022
|
case 6:
|
|
112994
113023
|
case "end":
|
|
112995
|
-
return
|
|
113024
|
+
return _context10.stop();
|
|
112996
113025
|
}
|
|
112997
113026
|
}
|
|
112998
|
-
},
|
|
113027
|
+
}, _callee9);
|
|
112999
113028
|
}));
|
|
113000
|
-
return
|
|
113029
|
+
return _loadContainerRepresentation.apply(this, arguments);
|
|
113001
113030
|
}
|
|
113002
113031
|
|
|
113003
113032
|
function getRelevantPanes(_x2, _x3) {
|
|
@@ -113005,19 +113034,19 @@ function _default(context) {
|
|
|
113005
113034
|
}
|
|
113006
113035
|
|
|
113007
113036
|
function _getRelevantPanes() {
|
|
113008
|
-
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113037
|
+
_getRelevantPanes = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(subject, context) {
|
|
113009
113038
|
var panes, relevantPanes, filteredPanes, firstRelevantPaneIndex, firstFilteredPaneIndex;
|
|
113010
|
-
return regeneratorRuntime.wrap(function
|
|
113039
|
+
return regeneratorRuntime.wrap(function _callee10$(_context11) {
|
|
113011
113040
|
while (1) {
|
|
113012
|
-
switch (
|
|
113041
|
+
switch (_context11.prev = _context11.next) {
|
|
113013
113042
|
case 0:
|
|
113014
113043
|
if (!subject.uri.endsWith('/')) {
|
|
113015
|
-
|
|
113044
|
+
_context11.next = 3;
|
|
113016
113045
|
break;
|
|
113017
113046
|
}
|
|
113018
113047
|
|
|
113019
|
-
|
|
113020
|
-
return
|
|
113048
|
+
_context11.next = 3;
|
|
113049
|
+
return loadContainerRepresentation(subject);
|
|
113021
113050
|
|
|
113022
113051
|
case 3:
|
|
113023
113052
|
panes = context.session.paneRegistry;
|
|
@@ -113026,38 +113055,38 @@ function _default(context) {
|
|
|
113026
113055
|
});
|
|
113027
113056
|
|
|
113028
113057
|
if (!(relevantPanes.length === 0)) {
|
|
113029
|
-
|
|
113058
|
+
_context11.next = 7;
|
|
113030
113059
|
break;
|
|
113031
113060
|
}
|
|
113032
113061
|
|
|
113033
|
-
return
|
|
113062
|
+
return _context11.abrupt("return", [panes.byName('internal')]);
|
|
113034
113063
|
|
|
113035
113064
|
case 7:
|
|
113036
|
-
|
|
113065
|
+
_context11.next = 9;
|
|
113037
113066
|
return UI.authn.filterAvailablePanes(relevantPanes);
|
|
113038
113067
|
|
|
113039
113068
|
case 9:
|
|
113040
|
-
filteredPanes =
|
|
113069
|
+
filteredPanes = _context11.sent;
|
|
113041
113070
|
|
|
113042
113071
|
if (!(filteredPanes.length === 0)) {
|
|
113043
|
-
|
|
113072
|
+
_context11.next = 12;
|
|
113044
113073
|
break;
|
|
113045
113074
|
}
|
|
113046
113075
|
|
|
113047
|
-
return
|
|
113076
|
+
return _context11.abrupt("return", [relevantPanes[0]]);
|
|
113048
113077
|
|
|
113049
113078
|
case 12:
|
|
113050
113079
|
firstRelevantPaneIndex = panes.list.indexOf(relevantPanes[0]);
|
|
113051
113080
|
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
113081
|
|
|
113053
|
-
return
|
|
113082
|
+
return _context11.abrupt("return", firstRelevantPaneIndex < firstFilteredPaneIndex ? [relevantPanes[0]].concat(filteredPanes) : filteredPanes);
|
|
113054
113083
|
|
|
113055
113084
|
case 15:
|
|
113056
113085
|
case "end":
|
|
113057
|
-
return
|
|
113086
|
+
return _context11.stop();
|
|
113058
113087
|
}
|
|
113059
113088
|
}
|
|
113060
|
-
},
|
|
113089
|
+
}, _callee10);
|
|
113061
113090
|
}));
|
|
113062
113091
|
return _getRelevantPanes.apply(this, arguments);
|
|
113063
113092
|
}
|
|
@@ -113095,50 +113124,50 @@ function _default(context) {
|
|
|
113095
113124
|
|
|
113096
113125
|
|
|
113097
113126
|
function _expandedHeaderTR() {
|
|
113098
|
-
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113127
|
+
_expandedHeaderTR = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(subject, requiredPane, options) {
|
|
113099
113128
|
var renderPaneIconTray, _renderPaneIconTray, tr, td, header, showHeader, icon, strong;
|
|
113100
113129
|
|
|
113101
|
-
return regeneratorRuntime.wrap(function
|
|
113130
|
+
return regeneratorRuntime.wrap(function _callee12$(_context13) {
|
|
113102
113131
|
while (1) {
|
|
113103
|
-
switch (
|
|
113132
|
+
switch (_context13.prev = _context13.next) {
|
|
113104
113133
|
case 0:
|
|
113105
113134
|
_renderPaneIconTray = function _renderPaneIconTray3() {
|
|
113106
|
-
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
113135
|
+
_renderPaneIconTray = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(td) {
|
|
113107
113136
|
var options,
|
|
113108
113137
|
paneShownStyle,
|
|
113109
113138
|
paneHiddenStyle,
|
|
113110
113139
|
paneIconTray,
|
|
113111
113140
|
relevantPanes,
|
|
113112
113141
|
paneNumber,
|
|
113113
|
-
|
|
113114
|
-
return regeneratorRuntime.wrap(function
|
|
113142
|
+
_args11 = arguments;
|
|
113143
|
+
return regeneratorRuntime.wrap(function _callee11$(_context12) {
|
|
113115
113144
|
while (1) {
|
|
113116
|
-
switch (
|
|
113145
|
+
switch (_context12.prev = _context12.next) {
|
|
113117
113146
|
case 0:
|
|
113118
|
-
options =
|
|
113147
|
+
options = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
|
|
113119
113148
|
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
113149
|
paneHiddenStyle = 'width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px';
|
|
113121
113150
|
paneIconTray = td.appendChild(dom.createElement('nav'));
|
|
113122
113151
|
paneIconTray.style = 'display:flex; justify-content: flex-start; align-items: center;';
|
|
113123
113152
|
|
|
113124
113153
|
if (!options.hideList) {
|
|
113125
|
-
|
|
113154
|
+
_context12.next = 9;
|
|
113126
113155
|
break;
|
|
113127
113156
|
}
|
|
113128
113157
|
|
|
113129
|
-
|
|
113130
|
-
|
|
113158
|
+
_context12.t0 = [];
|
|
113159
|
+
_context12.next = 12;
|
|
113131
113160
|
break;
|
|
113132
113161
|
|
|
113133
113162
|
case 9:
|
|
113134
|
-
|
|
113163
|
+
_context12.next = 11;
|
|
113135
113164
|
return getRelevantPanes(subject, context);
|
|
113136
113165
|
|
|
113137
113166
|
case 11:
|
|
113138
|
-
|
|
113167
|
+
_context12.t0 = _context12.sent;
|
|
113139
113168
|
|
|
113140
113169
|
case 12:
|
|
113141
|
-
relevantPanes =
|
|
113170
|
+
relevantPanes = _context12.t0;
|
|
113142
113171
|
tr.firstPane = requiredPane || getPane(relevantPanes, subject);
|
|
113143
113172
|
paneNumber = relevantPanes.indexOf(tr.firstPane);
|
|
113144
113173
|
|
|
@@ -113255,19 +113284,19 @@ function _default(context) {
|
|
|
113255
113284
|
});
|
|
113256
113285
|
}
|
|
113257
113286
|
|
|
113258
|
-
return
|
|
113287
|
+
return _context12.abrupt("return", paneIconTray);
|
|
113259
113288
|
|
|
113260
113289
|
case 17:
|
|
113261
113290
|
case "end":
|
|
113262
|
-
return
|
|
113291
|
+
return _context12.stop();
|
|
113263
113292
|
}
|
|
113264
113293
|
}
|
|
113265
|
-
},
|
|
113294
|
+
}, _callee11);
|
|
113266
113295
|
}));
|
|
113267
113296
|
return _renderPaneIconTray.apply(this, arguments);
|
|
113268
113297
|
};
|
|
113269
113298
|
|
|
113270
|
-
renderPaneIconTray = function _renderPaneIconTray2(
|
|
113299
|
+
renderPaneIconTray = function _renderPaneIconTray2(_x10) {
|
|
113271
113300
|
return _renderPaneIconTray.apply(this, arguments);
|
|
113272
113301
|
};
|
|
113273
113302
|
|
|
@@ -113299,16 +113328,16 @@ function _default(context) {
|
|
|
113299
113328
|
UI.widgets.makeDraggable(strong, subject);
|
|
113300
113329
|
}
|
|
113301
113330
|
|
|
113302
|
-
|
|
113303
|
-
|
|
113331
|
+
_context13.t0 = header;
|
|
113332
|
+
_context13.next = 16;
|
|
113304
113333
|
return renderPaneIconTray(td, {
|
|
113305
113334
|
hideList: showHeader
|
|
113306
113335
|
});
|
|
113307
113336
|
|
|
113308
113337
|
case 16:
|
|
113309
|
-
|
|
113338
|
+
_context13.t1 = _context13.sent;
|
|
113310
113339
|
|
|
113311
|
-
|
|
113340
|
+
_context13.t0.appendChild.call(_context13.t0, _context13.t1);
|
|
113312
113341
|
|
|
113313
113342
|
// set DOM methods
|
|
113314
113343
|
tr.firstChild.tabulatorSelect = function () {
|
|
@@ -113319,14 +113348,14 @@ function _default(context) {
|
|
|
113319
113348
|
setSelected(this, false);
|
|
113320
113349
|
};
|
|
113321
113350
|
|
|
113322
|
-
return
|
|
113351
|
+
return _context13.abrupt("return", tr);
|
|
113323
113352
|
|
|
113324
113353
|
case 21:
|
|
113325
113354
|
case "end":
|
|
113326
|
-
return
|
|
113355
|
+
return _context13.stop();
|
|
113327
113356
|
}
|
|
113328
113357
|
}
|
|
113329
|
-
},
|
|
113358
|
+
}, _callee12);
|
|
113330
113359
|
}));
|
|
113331
113360
|
return _expandedHeaderTR.apply(this, arguments);
|
|
113332
113361
|
}
|
|
@@ -121963,10 +121992,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
121963
121992
|
});
|
|
121964
121993
|
exports["default"] = void 0;
|
|
121965
121994
|
var _default = {
|
|
121966
|
-
buildTime: '2022-
|
|
121967
|
-
commit: '
|
|
121995
|
+
buildTime: '2022-02-09T21:57:45Z',
|
|
121996
|
+
commit: '4a26c02f8dd05c09ac1514e14ddcb6755a0a28cc',
|
|
121968
121997
|
npmInfo: {
|
|
121969
|
-
'solid-panes': '3.5.
|
|
121998
|
+
'solid-panes': '3.5.18',
|
|
121970
121999
|
npm: '6.14.13',
|
|
121971
122000
|
ares: '1.17.1',
|
|
121972
122001
|
brotli: '1.0.9',
|
|
@@ -149059,10 +149088,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
149059
149088
|
"use strict";
|
|
149060
149089
|
__webpack_require__.r(__webpack_exports__);
|
|
149061
149090
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
149062
|
-
buildTime: '2022-
|
|
149063
|
-
commit: '
|
|
149091
|
+
buildTime: '2022-02-09T22:01:15Z',
|
|
149092
|
+
commit: '9376b47580604186ad3e7a0e86746e548712a3e5',
|
|
149064
149093
|
npmInfo: {
|
|
149065
|
-
mashlib: '1.7.
|
|
149094
|
+
mashlib: '1.7.20',
|
|
149066
149095
|
npm: '6.14.13',
|
|
149067
149096
|
ares: '1.17.1',
|
|
149068
149097
|
brotli: '1.0.9',
|