@snippyly/plugin-staging 1.0.38 → 1.0.40
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/package.json +1 -1
- package/snippyly.js +525 -438
package/package.json
CHANGED
package/snippyly.js
CHANGED
|
@@ -3,493 +3,580 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const t=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new Map;class s{constructor(t,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let i=o.get(this.cssText);return t&&void 0===i&&(o.set(this.cssText,i=new CSSStyleSheet),i.replaceSync(this.cssText)),i}toString(){return this.cssText}}const e=(t,...o)=>{const e=1===t.length?t[0]:o.reduce(((i,o,s)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[s+1]),t[0]);return new s(e,i)},n=t?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const i of t.cssRules)o+=i.cssText;return(t=>new s("string"==typeof t?t:t+"",i))(o)})(t):t
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/;var r;const l=window.trustedTypes,
|
|
11
|
+
*/;var r;const l=window.trustedTypes,a=l?l.emptyScript:"",d=window.reactiveElementPolyfillSupport,c={toAttribute(t,i){switch(i){case Boolean:t=t?a:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let o=t;switch(i){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},h=(t,i)=>i!==t&&(i==i||t==t),v={attribute:!0,type:String,converter:c,reflect:!1,hasChanged:h};class p extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,o)=>{const s=this._$Eh(o,i);void 0!==s&&(this._$Eu.set(s,o),t.push(s))})),t}static createProperty(t,i=v){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const o="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,o,i);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,i,o){return{get(){return this[i]},set(s){const e=this[t];this[i]=s,this.requestUpdate(t,e,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of i)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)i.unshift(n(t))}else void 0!==t&&i.push(n(t));return i}static _$Eh(t,i){const o=i.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,o;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(o=t.hostConnected)||void 0===o||o.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var i;const o=null!==(i=this.shadowRoot)&&void 0!==i?i:this.attachShadow(this.constructor.shadowRootOptions);return((i,o)=>{t?i.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((t=>{const o=document.createElement("style"),s=window.litNonce;void 0!==s&&o.setAttribute("nonce",s),o.textContent=t.cssText,i.appendChild(o)}))})(o,this.constructor.elementStyles),o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,o){this._$AK(t,o)}_$ES(t,i,o=v){var s,e;const n=this.constructor._$Eh(t,o);if(void 0!==n&&!0===o.reflect){const r=(null!==(e=null===(s=o.converter)||void 0===s?void 0:s.toAttribute)&&void 0!==e?e:c.toAttribute)(i,o.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,i){var o,s,e;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(e=null!==(s=null===(o=l)||void 0===o?void 0:o.fromAttribute)&&void 0!==s?s:"function"==typeof l?l:null)&&void 0!==e?e:c.fromAttribute;this._$Ei=r,this[r]=a(i,t.type),this._$Ei=null}}requestUpdate(t,i,o){let s=!0;void 0!==t&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||h)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===o.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,o))):s=!1),!this.isUpdatePending&&s&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(o)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(o)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2017 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var u;p.finalized=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:p}),(null!==(r=globalThis.reactiveElementVersions)&&void 0!==r?r:globalThis.reactiveElementVersions=[]).push("1.3.2");const y=globalThis.trustedTypes,g=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,C="?"+w,b=`<${C}>`,m=document,f=(t="")=>m.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$=/-->/g,E=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,M=/'/g,k=/"/g,_=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...o)=>({_$litType$:t,strings:i,values:o}))(1),U=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),j=new WeakMap,B=m.createTreeWalker(m,129,null,!1),V=(t,i)=>{const o=t.length-1,s=[];let e,n=2===i?"<svg>":"",r=F;for(let i=0;i<o;i++){const o=t[i];let l,a,d=-1,c=0;for(;c<o.length&&(r.lastIndex=c,a=r.exec(o),null!==a);)c=r.lastIndex,r===F?"!--"===a[1]?r=$:void 0!==a[1]?r=E:void 0!==a[2]?(_.test(a[2])&&(e=RegExp("</"+a[2],"g")),r=L):void 0!==a[3]&&(r=L):r===L?">"===a[0]?(r=null!=e?e:F,d=-1):void 0===a[1]?d=-2:(d=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?L:'"'===a[3]?k:M):r===k||r===M?r=L:r===$||r===E?r=F:(r=L,e=void 0);const h=r===L&&t[i+1].startsWith("/>")?" ":"";n+=r===F?o+b:d>=0?(s.push(l),o.slice(0,d)+"$lit$"+o.slice(d)+w+h):o+w+(-2===d?(s.push(void 0),i):h)}const l=n+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(l):l,s]};class O{constructor({strings:t,_$litType$:i},o){let s;this.parts=[];let e=0,n=0;const r=t.length-1,l=this.parts,[a,d]=V(t,i);if(this.el=O.createElement(a,o),B.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(s=B.nextNode())&&l.length<r;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const i of s.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const o=d[n++];if(t.push(i),void 0!==o){const t=s.getAttribute(o.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(o);l.push({type:1,index:e,name:i[2],strings:t,ctor:"."===i[1]?N:"?"===i[1]?P:"@"===i[1]?H:D})}else l.push({type:6,index:e})}for(const i of t)s.removeAttribute(i)}if(_.test(s.tagName)){const t=s.textContent.split(w),i=t.length-1;if(i>0){s.textContent=y?y.emptyScript:"";for(let o=0;o<i;o++)s.append(t[o],f()),B.nextNode(),l.push({type:2,index:++e});s.append(t[i],f())}}}else if(8===s.nodeType)if(s.data===C)l.push({type:2,index:e});else{let t=-1;for(;-1!==(t=s.data.indexOf(w,t+1));)l.push({type:7,index:e}),t+=w.length-1}e++}}static createElement(t,i){const o=m.createElement("template");return o.innerHTML=t,o}}function I(t,i,o=t,s){var e,n,r,l;if(i===U)return i;let a=void 0!==s?null===(e=o._$Cl)||void 0===e?void 0:e[s]:o._$Cu;const d=x(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==d&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===d?a=void 0:(a=new d(t),a._$AT(t,o,s)),void 0!==s?(null!==(r=(l=o)._$Cl)&&void 0!==r?r:l._$Cl=[])[s]=a:o._$Cu=a),void 0!==a&&(i=I(t,a._$AS(t,i.values),a,s)),i}class R{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:o},parts:s}=this._$AD,e=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:m).importNode(o,!0);B.currentNode=e;let n=B.nextNode(),r=0,l=0,a=s[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new T(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new K(n,this,t)),this.v.push(i),a=s[++l]}r!==(null==a?void 0:a.index)&&(n=B.nextNode(),r++)}return e}m(t){let i=0;for(const o of this.v)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}}class T{constructor(t,i,o,s){var e;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=s,this._$Cg=null===(e=null==s?void 0:s.isConnected)||void 0===e||e}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=I(this,t,i),x(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==U&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return S(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==Z&&x(this._$AH)?this._$AA.nextSibling.data=t:this.k(m.createTextNode(t)),this._$AH=t}T(t){var i;const{values:o,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=O.createElement(s.h,this.options)),s);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===e)this._$AH.m(o);else{const t=new R(e,this),i=t.p(this.options);t.m(o),this.k(i),this._$AH=t}}_$AC(t){let i=j.get(t.strings);return void 0===i&&j.set(t.strings,i=new O(t)),i}S(t){S(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,s=0;for(const e of t)s===i.length?i.push(o=new T(this.M(f()),this.M(f()),this,this.options)):o=i[s],o._$AI(e),s++;s<i.length&&(this._$AR(o&&o._$AB.nextSibling,s),i.length=s)}_$AR(t=this._$AA.nextSibling,i){var o;for(null===(o=this._$AP)||void 0===o||o.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 D{constructor(t,i,o,s,e){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=s,this.options=e,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,s){const e=this.strings;let n=!1;if(void 0===e)t=I(this,t,i,0),n=!x(t)||t!==this._$AH&&t!==U,n&&(this._$AH=t);else{const s=t;let r,l;for(t=e[0],r=0;r<e.length-1;r++)l=I(this,s[o+r],i,r),l===U&&(l=this._$AH[r]),n||(n=!x(l)||l!==this._$AH[r]),l===Z?t=Z:t!==Z&&(t+=(null!=l?l:"")+e[r+1]),this._$AH[r]=l}n&&!s&&this.C(t)}C(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class N extends D{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===Z?void 0:t}}const z=y?y.emptyScript:"";class P extends D{constructor(){super(...arguments),this.type=4}C(t){t&&t!==Z?this.element.setAttribute(this.name,z):this.element.removeAttribute(this.name)}}class H extends D{constructor(t,i,o,s,e){super(t,i,o,s,e),this.type=5}_$AI(t,i=this){var o;if((t=null!==(o=I(this,t,i,0))&&void 0!==o?o:Z)===U)return;const s=this._$AH,e=t===Z&&s!==Z||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==Z&&(s===Z||e);e&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class K{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const J=window.litHtmlPolyfillSupport;
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
var W,G;null==
|
|
23
|
+
var W,G;null==J||J(O,T),(null!==(u=globalThis.litHtmlVersions)&&void 0!==u?u:globalThis.litHtmlVersions=[]).push("2.2.6");class X extends p{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const o=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=o.firstChild),o}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,o)=>{var s,e;const n=null!==(s=null==o?void 0:o.renderBefore)&&void 0!==s?s:i;let r=n._$litPart$;if(void 0===r){const t=null!==(e=null==o?void 0:o.renderBefore)&&void 0!==e?e:null;n._$litPart$=r=new T(i.insertBefore(f(),t),t,void 0,null!=o?o:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return U}}X.finalized=!0,X._$litElement$=!0,null===(W=globalThis.litElementHydrateSupport)||void 0===W||W.call(globalThis,{LitElement:X});const q=globalThis.litElementPolyfillSupport;null==q||q({LitElement:X}),(null!==(G=globalThis.litElementVersions)&&void 0!==G?G:globalThis.litElementVersions=[]).push("3.2.0");
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
28
|
*/
|
|
29
|
-
const Q=(i
|
|
29
|
+
const Q=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(o){o.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(o){o.createProperty(i.key,t)}};
|
|
30
30
|
/**
|
|
31
31
|
* @license
|
|
32
32
|
* Copyright 2017 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/function Y(
|
|
34
|
+
*/function Y(t){return(i,o)=>void 0!==o?((t,i,o)=>{i.constructor.createProperty(o,t)})(t,i,o):Q(t,i)
|
|
35
35
|
/**
|
|
36
36
|
* @license
|
|
37
37
|
* Copyright 2017 Google LLC
|
|
38
38
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/}function
|
|
39
|
+
*/}function tt(t){return Y({...t,state:!0})}
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2021 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/var
|
|
44
|
+
*/var it;null===(it=window.HTMLSlotElement)||void 0===it||it.prototype.assignedElements;
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
const
|
|
50
|
+
const ot=1;
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2018 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
const
|
|
57
|
-
calc(${
|
|
58
|
-
calc(${i[2]}rem * var(--snippyly-base-rem-unit, 1)) calc(${i[3]}rem * var(--snippyly-base-rem-unit, 1))`}return s`0`};var yi=function(i,t,e,n){for(var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,e):n,l=i.length-1;l>=0;l--)(s=i[l])&&(r=(o<3?s(r):o>3?s(t,e,r):s(t,e))||r);return o>3&&r&&Object.defineProperty(t,e,r),r};let vi=class extends q{constructor(){super(),this._loadPlugin=!1,this.comments=[],this.addCommentMode=!1,this._expanded=!0,this.staging=true,this.copyLinkTooltip="Copy Link",this.invalidApiKey=!1,this.isUserGlobalContact=!1,this.addWindowClickEventListener=()=>{try{this.windowClickEventListener||(this.windowClickEventListener=()=>{this.menuOpenedId&&(this.menuOpenedId=void 0)},window.addEventListener("click",this.windowClickEventListener))}catch(i){console.warn("Error in addWindowClickEventListener: ",i)}},this.removeWindowClickEventListener=()=>{try{window.removeEventListener("click",this.windowClickEventListener),this.windowClickEventListener=void 0}catch(i){console.warn("Error in removeWindowClickEventListener: ",i)}},this.setWindowEventListner=()=>{try{window.addEventListener("locationchange",(()=>{this.checkUrl()}))}catch(i){console.warn("Error in setWindowEventListner: ",i)}},this.urlChangeListener=()=>{try{const i=history.pushState;history.pushState=function(){const t=i.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};const t=history.replaceState;history.replaceState=function(){const i=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),i},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))}))}catch(i){console.warn("Error in urlChangeListener: ",i)}},this.checkUrl=()=>{var i;try{const t=new URL(document.location),e=t.searchParams;if(e.has("snippyly_google_token")){const n=JSON.parse(atob(e.get("snippyly_google_token"))),s={},o=(null===(i=n.providerData)||void 0===i?void 0:i.length)?n.providerData[0]:null;s.userId=n.uid,s.name=n.displayName||(null==o?void 0:o.displayName),s.email=n.email||(null==o?void 0:o.email),s.photoUrl=(null==n?void 0:n.photoURL)||(null==o?void 0:o.photoURL),s.contacts=window.SNIPPYLY_USER_CONTACTS||[],di("snippyly-user",JSON.stringify(s),!0),e.delete("snippyly_google_token"),window.history.replaceState({},document.title,t.href)}e.has("review")?(di("review","true",!1,"sessionStorage"),"true"!==e.get("review")&&(e.delete("review"),e.append("review","true"),window.history.replaceState({},document.title,t.href)),this.loadPluginUI()):ci("review",!1,"sessionStorage")&&(e.append("review","true"),window.history.replaceState({},document.title,t.href),this.loadPluginUI()),this.setVersionInUrl()}catch(i){console.warn("Error in checkUrl: ",i)}},this.detectVersion=()=>{try{if(this.projectVersionKey){const i=new URL(document.location).searchParams;if(i.get(this.projectVersionKey))this.projectVersion=i.get(this.projectVersionKey);else if(window.snippylyInitialLoadUrl){const i=new URL(window.snippylyInitialLoadUrl).searchParams;i.get(this.projectVersionKey)&&(this.projectVersion=i.get(this.projectVersionKey))}this.projectVersion&&di("projectVersion",this.projectVersion,!1,"sessionStorage")}}catch(i){console.warn("Error in detectVersion: ",i)}},this.setVersionInUrl=()=>{try{const i=this.projectVersionKey||ci("projectVersionKey",!1,"sessionStorage"),t=this.projectVersion||ci("projectVersion",!1,"sessionStorage");if(i&&t){const e=new URL(document.location),n=e.searchParams;n.get(i)||(n.set(i,t),window.history.replaceState({},document.title,e.href))}}catch(i){console.warn("Error in setVersionInUrl: ",i)}},this.loadPluginUI=()=>{try{if(this.loadPlugin)return this.generateLocation(),void this.setViewMode(this.viewMode);if(this.loadPlugin=!0,!document.querySelector(oi)){const i=document.createElement(oi);null==i||i.addEventListener("signIn",(()=>{this.loginWithGoogle()})),window.document.body.appendChild(i)}if(!document.querySelector(ri)){const i=document.createElement(ri);i.setAttribute(ai,"true"),window.document.body.appendChild(i)}if(!document.querySelector(si)){const i=document.createElement(si);window.document.body.appendChild(i)}if(!document.querySelector(li)){const i=document.createElement(li);window.document.body.appendChild(i)}if(!document.querySelector(hi)){const i=document.createElement(hi);window.document.body.appendChild(i)}((i="",t=!1,e)=>{if(console.log("load snippyly called"),document.getElementById("snippylyScript"))e&&e();else{const n=document.createElement("script");n.src=`https://cdn.jsdelivr.net/npm/@snippyly/sdk${t?"-staging":""}${i?"@"+i:""}/snippyly.js`,n.id="snippylyScript",n.type="module",document.body.appendChild(n),n.onload=()=>{e&&e()}}})(void 0,this.staging,(()=>{window.Snippyly&&this.initializeSnippyly()}))}catch(i){console.warn("Error in loadPluginUI: ",i)}},this.initializeSnippyly=async()=>{try{await(null===Snippyly||void 0===Snippyly?void 0:Snippyly.init(this.apiKey)),this.documentId=((i,t=0)=>{try{let e=3735928559^t,n=1103547991^t;for(let t,s=0;s<i.length;s++)t=i.charCodeAt(s),e=Math.imul(e^t,2654435761),n=Math.imul(n^t,1597334677);return e=Math.imul(e^e>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(e^e>>>13,3266489909),4294967296*(2097151&n)+(e>>>0)}catch(i){return console.warn("Error in cyrb53: ",i),0}})((i=>{let t;return t=i.includes("http")?new URL(i):new URL("http://"+i),t.hostname.replace("www.","")})(window.location.origin))+"",null===Snippyly||void 0===Snippyly||Snippyly.setDocumentId(this.documentId+""),this.generateLocation(),this.setLocation(),this.commentElement=null===Snippyly||void 0===Snippyly?void 0:Snippyly.getCommentElement(),this.commentElement&&(this.commentElement.enableTextComments(!0),this.commentElement.enableSignInButton(!0),this.commentElement.enableAttachment(!0),this.commentElement.showScreenSizeInfo(!0),this.commentElement.addCommentModeChange&&this.commentElement.addCommentModeChange().subscribe((i=>{this.addCommentMode=i}))),this.selectionElement=Snippyly.getSelectionElement(),this.selectionElement&&this.selectionElement.enableLiveSelection(!0),this.identifySnippyly()}catch(i){console.warn("Error in initializeSnippyly: ",i)}},this.generateLocation=()=>{try{const i=new URL(document.location).searchParams,t=new URL(document.location);t.searchParams.delete("review"),t.searchParams.delete("sreviewId"),t.searchParams.delete("scommentId");const e=i.get("sversion")||this.projectVersion;this.location={url:t.href,version:e}}catch(i){console.warn("Error in generateLocation: ",i)}},this.setLocation=()=>{try{window.Snippyly&&(null===Snippyly||void 0===Snippyly?void 0:Snippyly.setLocation)&&(null===Snippyly||void 0===Snippyly||Snippyly.setLocation(JSON.parse(JSON.stringify(this.location))))}catch(i){console.warn("Error in setLocation: ",i)}},this.identifySnippyly=async()=>{var i;try{this.invalidApiKey=!1;let i={name:"Anonymous User",email:"anonymous@snippyly.com",userId:"anonymous",isAnonymous:!0};if(ci("snippyly-user",!0)){const t=JSON.parse(ci("snippyly-user",!0));(null==t?void 0:t.email)&&(i=t)}i.contacts=window.SNIPPYLY_USER_CONTACTS||[],i.isAnonymous?delete i.groupId:i.groupId=Snippyly.getDocumentId()+"",await Snippyly.identify(i),(null==i?void 0:i.isAnonymous)||(this.snippylyUser=JSON.parse(JSON.stringify(i))),this.getComments(),this.checkGlobalUserContact()}catch(t){t&&"string"==typeof t&&(null===(i=null==t?void 0:t.toLowerCase())||void 0===i?void 0:i.includes("invalid"))&&(this.invalidApiKey=!0),console.warn("Error in identifySnippyly: ",t)}},this.getComments=()=>{try{this.commentElement&&(this.commentSubscription&&this.commentSubscription.unsubscribe(),this.commentSubscription=this.commentElement.getAllCommentAnnotations(this.documentId).subscribe((i=>{this.comments=i,"All"!==this.viewMode&&(this.viewMode?this.comments=i.filter((i=>{var t;return(null===(t=null==i?void 0:i.location)||void 0===t?void 0:t.view)===this.viewMode})):this.comments=this.comments.filter((i=>{var t;return!(null===(t=null==i?void 0:i.location)||void 0===t?void 0:t.view)})))})))}catch(i){console.warn("Error in getComments: ",i)}},this.checkGlobalUserContact=()=>{try{this.commentElement&&this.commentElement.isUserGlobalContact().subscribe((i=>{!this.isUserGlobalContact&&i&&this.setViewMode("All"),this.isUserGlobalContact=i,i||this.setViewMode(null)}))}catch(i){console.warn("Error in checkGlobalUserContact: ",i)}},this.toggleCommentSidebar=()=>{try{this.commentElement&&this.commentElement.toggleCommentSidebar()}catch(i){console.warn("Error in toggleCommentSidebar: ",i)}},this.toggleSnippylyPluginToolbar=()=>{try{this.expanded=!this.expanded}catch(i){console.warn("Error in toggleSnippylyPluginToolbar: ",i)}},this.loginWithGoogle=()=>{try{window.open(`https://snippyly-login-staging.web.app/?redirect_url=${encodeURIComponent(window.location.href)}`,"_self")}catch(i){console.warn("Error in loginWithGoogle: ",i)}},this.removeSnippyly=async()=>{try{pi("review","sessionStorage"),pi("sreviewId","sessionStorage"),pi("projectVersionKey","sessionStorage"),pi("projectVersion","sessionStorage");const i=new URL(document.location),t=i.searchParams;t.delete("sreviewId"),t.delete("review"),this.projectVersionKey&&t.delete(this.projectVersionKey),this.projectVersion=void 0,this.projectVersionKey=void 0,delete window.snippylyInitialLoadUrl,window.history.replaceState({},document.title,i.href),window.location.reload()}catch(i){console.warn("Error in removeSnippyly: ",i)}},this.signOutUser=async()=>{try{await Snippyly.signOutUser(),pi("snippyly-user"),this.snippylyUser=void 0,window.open(`https://snippyly-login-staging.web.app/?signout=true&redirect_url=${encodeURIComponent(window.location.href)}`,"_self")}catch(i){console.warn("Error in signOutUser: ",i)}},this.toggleMenu=(i,t)=>{try{i.stopPropagation(),this.menuOpenedId===t?this.menuOpenedId=void 0:this.menuOpenedId=t}catch(i){console.warn("Error in toggleMenu: ",i)}},this.copyLink=()=>{try{navigator.clipboard.writeText(window.location.href),this.copyLinkTooltip="Link copied!",setTimeout((()=>{this.copyLinkTooltip="Copy Link"}),2e3)}catch(i){console.warn("Error in copyLink: ",i)}},this.setViewMode=i=>{try{this.viewMode=i,i?this.location.view=i:delete this.location.view,this.setLocation(),this.getComments()}catch(i){console.warn("Error in setViewMode: ",i)}},this.setAttribute("snippyly-comment-disabled","true");try{this.expanded=!0,this.detectVersion(),this.setWindowEventListner(),this.urlChangeListener(),this.checkUrl(),console.log("*** Staging Mode ON! ***")}catch(i){console.warn("Error in constructor: ",i)}}get loadPlugin(){return this._loadPlugin}set loadPlugin(i){this._loadPlugin=i,this.loadPlugin?this.classList.add("visible"):this.classList.remove("visible")}get expanded(){return this._expanded}set expanded(i){this._expanded=i,this.expanded?this.classList.add("expanded"):this.classList.remove("expanded")}get projectVersionKey(){return this._projectVersionKey}set projectVersionKey(i){try{this._projectVersionKey=i,this.projectVersionKey&&di("projectVersionKey",this.projectVersionKey,!1,"sessionStorage"),this.detectVersion()}catch(i){console.warn("Error in set projectVersionKey: ",i)}}get menuOpenedId(){return this._menuOpenedId}set menuOpenedId(i){this._menuOpenedId=i,this.menuOpenedId?this.addWindowClickEventListener():this.removeWindowClickEventListener()}render(){var i,t,e,n,s,o,r,l,h,a,d,c,p,u,y;return this.loadPlugin?U`
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
56
|
+
const st=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,o){this._$Ct=t,this._$AM=i,this._$Ci=o}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}{constructor(t){var i;if(super(t),t.type!==ot||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var o,s;if(void 0===this.et){this.et=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(o=this.st)||void 0===o?void 0:o.has(t))&&this.et.add(t);return this.render(i)}const e=t.element.classList;this.et.forEach((t=>{t in i||(e.remove(t),this.et.delete(t))}));for(const t in i){const o=!!i[t];o===this.et.has(t)||(null===(s=this.st)||void 0===s?void 0:s.has(t))||(o?(e.add(t),this.et.add(t)):(e.remove(t),this.et.delete(t)))}return U}}),et="snippyly-cursor",nt="snippyly-comments",rt="snippyly-comments-sidebar",lt="snippyly-huddle",at="snippyly-recorder-notes",dt="enable-url-navigation",ct=(t,i,o=!1,s="localStorage")=>{try{const e=o?btoa(i):i;"localStorage"===s?localStorage.setItem(t,e):sessionStorage.setItem(t,e)}catch(t){console.warn("Error in setLocalStorage: ",t)}},ht=(t,i=!1,o="localStorage")=>{try{let s=null;return s="localStorage"===o?localStorage.getItem(t):sessionStorage.getItem(t),s&&i?atob(s):s}catch(t){return console.warn("Error in getLocalStorage: ",t),null}},vt=(t,i="localStorage")=>{try{"localStorage"===i?localStorage.removeItem(t):sessionStorage.removeItem(t)}catch(t){console.warn("Error in removeLocalStorageData: ",t)}},pt=(...t)=>{if(t)switch(t.length){case 1:return e`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1))`;case 2:return e`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))`;case 3:return e`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))
|
|
57
|
+
calc(${t[2]}rem * var(--snippyly-base-rem-unit, 1))`;case 4:return e`calc(${t[0]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[1]}rem * var(--snippyly-base-rem-unit, 1))
|
|
58
|
+
calc(${t[2]}rem * var(--snippyly-base-rem-unit, 1)) calc(${t[3]}rem * var(--snippyly-base-rem-unit, 1))`}return e`0`},ut=e`
|
|
59
|
+
|
|
60
|
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
61
|
+
|
|
62
|
+
* {
|
|
63
|
+
font-family: 'Poppins', sans-serif;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.snippyly-plugin-container {
|
|
67
|
+
position: fixed;
|
|
68
|
+
bottom: 0;
|
|
69
|
+
right: 0;
|
|
70
|
+
z-index: 99999999;
|
|
71
|
+
margin: ${pt(1.5)};
|
|
72
|
+
margin-bottom: ${pt(3)}; // Added to prevent overlap between plugin UI and webflow badge
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.wrap {
|
|
76
|
+
padding: 32px;
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
gap: 32px 32px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
* {
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: 0;
|
|
88
|
+
font-family: 'Poppins', sans-serif;
|
|
89
|
+
font-style: normal;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
line-height: 1.14em;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
.toolbar {
|
|
96
|
+
padding: 1.14em;
|
|
97
|
+
background: #FFFFFF;
|
|
98
|
+
border: 1px solid #E6E8EC;
|
|
99
|
+
box-shadow: 0px 8px 16px rgba(143, 149, 178, 0.15);
|
|
100
|
+
border-radius: 3.78em;
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
justify-content: left;
|
|
103
|
+
gap: 0.57em;
|
|
104
|
+
flex-basis: auto;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.toolbar-section,
|
|
108
|
+
.toolbar-avatars,
|
|
109
|
+
.toolbar-actions,
|
|
110
|
+
.toolbar-actions1,
|
|
111
|
+
.toolbar-actions2,
|
|
112
|
+
.action,
|
|
113
|
+
.action-border {
|
|
114
|
+
display: flex;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
align-items: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.toolbar-icon-context,
|
|
120
|
+
.toolbar-icon {
|
|
121
|
+
width: 32px;
|
|
122
|
+
height: 32px;
|
|
123
|
+
border-radius: 50px;
|
|
124
|
+
fill: #8F95B2;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.toolbar-icon:hover {
|
|
129
|
+
background: #EAE8F9;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.toolbar-icon:active {
|
|
133
|
+
fill: #FFFFFF;
|
|
134
|
+
background: #625DF5;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.toolbar-icon-border {
|
|
138
|
+
width: 24px;
|
|
139
|
+
height: 24px;
|
|
140
|
+
fill: #8F95B2;
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.toolbar-icon-arrow {
|
|
145
|
+
width: 32px;
|
|
146
|
+
height: 32px;
|
|
147
|
+
fill: #8F95B2;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.toolbar-icon-arrow:active {
|
|
152
|
+
transition: 0.3s;
|
|
153
|
+
transform: rotate(90deg);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.toolbar-icon-dropdown-arrow {
|
|
157
|
+
width: 16px;
|
|
158
|
+
height: 16px;
|
|
159
|
+
fill: #8F95B2;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.toolbar-icon-dropdown-arrow:active {
|
|
164
|
+
transition: 0.3s;
|
|
165
|
+
transform: rotate(-90deg);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.toolbar-logo {
|
|
169
|
+
height: 1.82em;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.toolbar-divider {
|
|
173
|
+
width: 1px;
|
|
174
|
+
height: 1.57em;
|
|
175
|
+
flex-grow: 0;
|
|
176
|
+
border-radius: 0.57em;
|
|
177
|
+
background-color: #d4d6df;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.toolbar-button {
|
|
181
|
+
display: block;
|
|
182
|
+
background: #625DF5;
|
|
183
|
+
border-radius: 4em;
|
|
184
|
+
padding: 0.78em 1.28em;
|
|
185
|
+
text-decoration: none;
|
|
186
|
+
color: #FFFFFF;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.toolbar-button a {
|
|
190
|
+
text-decoration: none;
|
|
191
|
+
color: #FFFFFF;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
font-size: 1em;
|
|
194
|
+
line-height: 1.14em;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.toolbar-avatars {
|
|
198
|
+
margin: 0px 6px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.avatar {
|
|
202
|
+
display: flex;
|
|
203
|
+
justify-content: center;
|
|
204
|
+
align-items: center;
|
|
205
|
+
text-align: center;
|
|
206
|
+
width: 35px;
|
|
207
|
+
height: 35px;
|
|
208
|
+
border-radius: 3.42em;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.avatar.blue {
|
|
212
|
+
border: 2px solid #3772FF;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.avatar.gray {
|
|
216
|
+
border: 2px solid #B1B5C3;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.avatar.yellow {
|
|
220
|
+
border: 2px solid #FFD166;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.avatar-img,
|
|
224
|
+
.avatar-text {
|
|
225
|
+
border-radius: 3.42em;
|
|
226
|
+
width: 32px;
|
|
227
|
+
height: 32px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.avatar-text {
|
|
231
|
+
display: flex;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
align-items: center;
|
|
234
|
+
color: #FFFFFF;
|
|
235
|
+
text-align: center;
|
|
236
|
+
font-weight: 500;
|
|
237
|
+
font-size: 0.79em;
|
|
238
|
+
line-height: 1.71em;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.avatar.overlapped {
|
|
242
|
+
margin: 0px -6px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.avatar-text.yellow {
|
|
246
|
+
background-color: #FFD166;
|
|
247
|
+
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.avatar-text.more {
|
|
251
|
+
color: #000000 !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.toolbar-actions {
|
|
255
|
+
padding: 0px 4px !important;
|
|
256
|
+
gap: 4px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.action.dropdown {
|
|
260
|
+
padding: 0px 6px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.toolbar-actions1 {
|
|
264
|
+
padding: 0px 8px !important;
|
|
265
|
+
gap: 8px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.toolbar-actions2 {
|
|
269
|
+
gap: 8px;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.action-border {
|
|
273
|
+
padding: 4px 8px;
|
|
274
|
+
border: 1px solid #D4D6DF;
|
|
275
|
+
border-radius: 50px;
|
|
276
|
+
cursor: pointer;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.action-border:hover, .action-border:hover * {
|
|
280
|
+
background: #EAE8F9;
|
|
281
|
+
border-color: rgba(98, 93, 245, 1);
|
|
282
|
+
color: #625DF5;
|
|
283
|
+
fill: #625DF5;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.action-border:active, .action-border:active * {
|
|
287
|
+
background: #625DF5;
|
|
288
|
+
border-color: #625DF5;
|
|
289
|
+
color: #FFFFFF;
|
|
290
|
+
fill: #FFFFFF;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.action-text {
|
|
294
|
+
margin: 0px 8px 0px 4px;
|
|
295
|
+
color: #8F95B2;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.toolbar-img {
|
|
299
|
+
width: 32px;
|
|
300
|
+
height: 32px;
|
|
301
|
+
border-radius: 50px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
.toolbar:not(.expanded) .toolbar-icon-arrow {
|
|
307
|
+
transform: rotate(180deg);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
snippyly-huddle-tool.toolbar-icon {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
justify-content: center;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
snippyly-huddle-tool.toolbar-icon svg {
|
|
317
|
+
width: 24px !important;
|
|
318
|
+
height: 24px !important;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
snippyly-huddle-tool.toolbar-icon .mat-menu-trigger {
|
|
322
|
+
display: flex;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
snippyly-huddle-tool.toolbar-icon svg path:first-child {
|
|
326
|
+
stroke: rgb(143, 149, 178);
|
|
327
|
+
stroke-width: 1.5px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
snippyly-huddle-tool.toolbar-icon svg path:not(:first-child) {
|
|
331
|
+
fill: rgb(143, 149, 178);
|
|
332
|
+
stroke: rgb(143, 149, 178);
|
|
333
|
+
stroke-width: 0.5px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
snippyly-huddle-tool.toolbar-icon:active svg path:first-child {
|
|
337
|
+
stroke: white;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
snippyly-huddle-tool.toolbar-icon:active svg path:not(:first-child) {
|
|
341
|
+
fill: white;
|
|
342
|
+
stroke: white;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
snippyly-recorder-tool.toolbar-icon {
|
|
346
|
+
display: flex;
|
|
347
|
+
align-items: center;
|
|
348
|
+
justify-content: center;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
snippyly-recorder-tool.toolbar-icon .mat-menu-trigger {
|
|
352
|
+
display: flex;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
snippyly-recorder-tool.toolbar-icon svg {
|
|
356
|
+
width: 24px !important;
|
|
357
|
+
height: 24px !important;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
snippyly-recorder-tool.toolbar-icon svg path:first-child {
|
|
361
|
+
fill: rgb(143, 149, 178);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
snippyly-recorder-tool.toolbar-icon svg path:not(:first-child) {
|
|
365
|
+
fill: rgb(143, 149, 178);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
snippyly-recorder-tool.toolbar-icon:active svg path:first-child {
|
|
369
|
+
fill: white;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
snippyly-recorder-tool.toolbar-icon:active svg path:not(:first-child) {
|
|
373
|
+
fill: white;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.d-none {
|
|
377
|
+
display: none;
|
|
378
|
+
}
|
|
379
|
+
`;var yt=function(t,i,o,s){for(var e,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s,l=t.length-1;l>=0;l--)(e=t[l])&&(r=(n<3?e(r):n>3?e(i,o,r):e(i,o))||r);return n>3&&r&&Object.defineProperty(i,o,r),r};let gt=class extends X{constructor(){super(),this._loadPlugin=!1,this.comments=[],this.addCommentMode=!1,this._expanded=!0,this.staging=true,this.copyLinkTooltip="Copy Link",this.invalidApiKey=!1,this.isUserGlobalContact=!1,this.addWindowClickEventListener=()=>{try{this.windowClickEventListener||(this.windowClickEventListener=()=>{this.menuOpenedId&&(this.menuOpenedId=void 0)},window.addEventListener("click",this.windowClickEventListener))}catch(t){console.warn("Error in addWindowClickEventListener: ",t)}},this.removeWindowClickEventListener=()=>{try{window.removeEventListener("click",this.windowClickEventListener),this.windowClickEventListener=void 0}catch(t){console.warn("Error in removeWindowClickEventListener: ",t)}},this.setWindowEventListner=()=>{try{window.addEventListener("locationchange",(()=>{this.checkUrl()}))}catch(t){console.warn("Error in setWindowEventListner: ",t)}},this.urlChangeListener=()=>{try{const t=history.pushState;history.pushState=function(){const i=t.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),i};const i=history.replaceState;history.replaceState=function(){const t=i.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),t},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("locationchange"))}))}catch(t){console.warn("Error in urlChangeListener: ",t)}},this.checkUrl=()=>{var t;try{const i=new URL(document.location),o=i.searchParams;if(o.has("snippyly_google_token")){const s=JSON.parse(atob(o.get("snippyly_google_token"))),e={},n=(null===(t=s.providerData)||void 0===t?void 0:t.length)?s.providerData[0]:null;e.userId=s.uid,e.name=s.displayName||(null==n?void 0:n.displayName),e.email=s.email||(null==n?void 0:n.email),e.photoUrl=(null==s?void 0:s.photoURL)||(null==n?void 0:n.photoURL),e.contacts=window.SNIPPYLY_USER_CONTACTS||[],ct("snippyly-user",JSON.stringify(e),!0),o.delete("snippyly_google_token"),window.history.replaceState({},document.title,i.href)}o.has("review")?(ct("review","true",!1,"sessionStorage"),"true"!==o.get("review")&&(o.delete("review"),o.append("review","true"),window.history.replaceState({},document.title,i.href)),this.loadPluginUI()):ht("review",!1,"sessionStorage")&&(o.append("review","true"),window.history.replaceState({},document.title,i.href),this.loadPluginUI()),this.setVersionInUrl()}catch(t){console.warn("Error in checkUrl: ",t)}},this.detectVersion=()=>{try{if(this.projectVersionKey){const t=new URL(document.location).searchParams;if(t.get(this.projectVersionKey))this.projectVersion=t.get(this.projectVersionKey);else if(window.snippylyInitialLoadUrl){const t=new URL(window.snippylyInitialLoadUrl).searchParams;t.get(this.projectVersionKey)&&(this.projectVersion=t.get(this.projectVersionKey))}this.projectVersion&&ct("projectVersion",this.projectVersion,!1,"sessionStorage")}}catch(t){console.warn("Error in detectVersion: ",t)}},this.setVersionInUrl=()=>{try{const t=this.projectVersionKey||ht("projectVersionKey",!1,"sessionStorage"),i=this.projectVersion||ht("projectVersion",!1,"sessionStorage");if(t&&i){const o=new URL(document.location),s=o.searchParams;s.get(t)||(s.set(t,i),window.history.replaceState({},document.title,o.href))}}catch(t){console.warn("Error in setVersionInUrl: ",t)}},this.loadPluginUI=()=>{try{if(this.loadPlugin)return this.generateLocation(),void this.setViewMode(this.viewMode);if(this.loadPlugin=!0,!document.querySelector(nt)){const t=document.createElement(nt);null==t||t.addEventListener("signIn",(()=>{this.loginWithGoogle()})),window.document.body.appendChild(t)}if(!document.querySelector(rt)){const t=document.createElement(rt);t.setAttribute(dt,"true"),window.document.body.appendChild(t)}if(!document.querySelector(et)){const t=document.createElement(et);window.document.body.appendChild(t)}if(!document.querySelector(lt)){const t=document.createElement(lt);window.document.body.appendChild(t)}if(!document.querySelector(at)){const t=document.createElement(at);window.document.body.appendChild(t)}((t="",i=!1,o)=>{if(console.log("load snippyly called"),document.getElementById("snippylyScript"))o&&o();else{const s=document.createElement("script");s.src=`https://cdn.jsdelivr.net/npm/@snippyly/sdk${i?"-staging":""}${t?"@"+t:""}/snippyly.js`,s.id="snippylyScript",s.type="module",document.body.appendChild(s),s.onload=()=>{o&&o()}}})(void 0,this.staging,(()=>{window.Snippyly&&this.initializeSnippyly()}))}catch(t){console.warn("Error in loadPluginUI: ",t)}},this.initializeSnippyly=async()=>{try{await(null===Snippyly||void 0===Snippyly?void 0:Snippyly.init(this.apiKey)),this.documentId=((t,i=0)=>{try{let o=3735928559^i,s=1103547991^i;for(let i,e=0;e<t.length;e++)i=t.charCodeAt(e),o=Math.imul(o^i,2654435761),s=Math.imul(s^i,1597334677);return o=Math.imul(o^o>>>16,2246822507)^Math.imul(s^s>>>13,3266489909),s=Math.imul(s^s>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),4294967296*(2097151&s)+(o>>>0)}catch(t){return console.warn("Error in cyrb53: ",t),0}})((t=>{let i;return i=t.includes("http")?new URL(t):new URL("http://"+t),i.hostname.replace("www.","")})(window.location.origin))+"",null===Snippyly||void 0===Snippyly||Snippyly.setDocumentId(this.documentId+""),this.generateLocation(),this.setLocation(),this.commentElement=null===Snippyly||void 0===Snippyly?void 0:Snippyly.getCommentElement(),this.commentElement&&(this.commentElement.enableTextComments(!0),this.commentElement.enableSignInButton(!0),this.commentElement.enableAttachment(!0),this.commentElement.showScreenSizeInfo(!0),this.commentElement.addCommentModeChange&&this.commentElement.addCommentModeChange().subscribe((t=>{this.addCommentMode=t}))),this.selectionElement=Snippyly.getSelectionElement(),this.selectionElement&&this.selectionElement.enableLiveSelection(!0),this.identifySnippyly()}catch(t){console.warn("Error in initializeSnippyly: ",t)}},this.generateLocation=()=>{try{const t=new URL(document.location).searchParams,i=new URL(document.location);i.searchParams.delete("review"),i.searchParams.delete("sreviewId"),i.searchParams.delete("scommentId");const o=t.get("sversion")||this.projectVersion;this.location={url:i.href,version:o}}catch(t){console.warn("Error in generateLocation: ",t)}},this.setLocation=()=>{try{window.Snippyly&&(null===Snippyly||void 0===Snippyly?void 0:Snippyly.setLocation)&&(null===Snippyly||void 0===Snippyly||Snippyly.setLocation(JSON.parse(JSON.stringify(this.location))))}catch(t){console.warn("Error in setLocation: ",t)}},this.identifySnippyly=async()=>{var t;try{this.invalidApiKey=!1;let t={name:"Anonymous User",email:"anonymous@snippyly.com",userId:"anonymous",isAnonymous:!0};if(ht("snippyly-user",!0)){const i=JSON.parse(ht("snippyly-user",!0));(null==i?void 0:i.email)&&(t=i)}t.contacts=window.SNIPPYLY_USER_CONTACTS||[],t.isAnonymous?delete t.groupId:t.groupId=Snippyly.getDocumentId()+"",await Snippyly.identify(t),(null==t?void 0:t.isAnonymous)||(this.snippylyUser=JSON.parse(JSON.stringify(t))),this.getComments(),this.checkGlobalUserContact()}catch(i){i&&"string"==typeof i&&(null===(t=null==i?void 0:i.toLowerCase())||void 0===t?void 0:t.includes("invalid"))&&(this.invalidApiKey=!0),console.warn("Error in identifySnippyly: ",i)}},this.getComments=()=>{try{this.commentElement&&(this.commentSubscription&&this.commentSubscription.unsubscribe(),this.commentSubscription=this.commentElement.getAllCommentAnnotations(this.documentId).subscribe((t=>{this.comments=t,"All"!==this.viewMode&&(this.viewMode?this.comments=t.filter((t=>{var i;return(null===(i=null==t?void 0:t.location)||void 0===i?void 0:i.view)===this.viewMode})):this.comments=this.comments.filter((t=>{var i;return!(null===(i=null==t?void 0:t.location)||void 0===i?void 0:i.view)})))})))}catch(t){console.warn("Error in getComments: ",t)}},this.checkGlobalUserContact=()=>{try{this.commentElement&&this.commentElement.isUserGlobalContact().subscribe((t=>{!this.isUserGlobalContact&&t&&this.setViewMode("All"),this.isUserGlobalContact=t,t||this.setViewMode(null)}))}catch(t){console.warn("Error in checkGlobalUserContact: ",t)}},this.toggleCommentSidebar=()=>{try{this.commentElement&&this.commentElement.toggleCommentSidebar()}catch(t){console.warn("Error in toggleCommentSidebar: ",t)}},this.toggleSnippylyPluginToolbar=()=>{try{this.expanded=!this.expanded}catch(t){console.warn("Error in toggleSnippylyPluginToolbar: ",t)}},this.loginWithGoogle=()=>{try{window.open(`https://snippyly-login-staging.web.app/?redirect_url=${encodeURIComponent(window.location.href)}`,"_self")}catch(t){console.warn("Error in loginWithGoogle: ",t)}},this.removeSnippyly=async()=>{try{vt("review","sessionStorage"),vt("sreviewId","sessionStorage"),vt("projectVersionKey","sessionStorage"),vt("projectVersion","sessionStorage");const t=new URL(document.location),i=t.searchParams;i.delete("sreviewId"),i.delete("review"),this.projectVersionKey&&i.delete(this.projectVersionKey),this.projectVersion=void 0,this.projectVersionKey=void 0,delete window.snippylyInitialLoadUrl,window.history.replaceState({},document.title,t.href),window.location.reload()}catch(t){console.warn("Error in removeSnippyly: ",t)}},this.signOutUser=async()=>{try{await Snippyly.signOutUser(),vt("snippyly-user"),this.snippylyUser=void 0,window.open(`https://snippyly-login-staging.web.app/?signout=true&redirect_url=${encodeURIComponent(window.location.href)}`,"_self")}catch(t){console.warn("Error in signOutUser: ",t)}},this.toggleMenu=(t,i)=>{try{t.stopPropagation(),this.menuOpenedId===i?this.menuOpenedId=void 0:this.menuOpenedId=i}catch(t){console.warn("Error in toggleMenu: ",t)}},this.copyLink=()=>{try{navigator.clipboard.writeText(window.location.href),this.copyLinkTooltip="Link copied!",setTimeout((()=>{this.copyLinkTooltip="Copy Link"}),2e3)}catch(t){console.warn("Error in copyLink: ",t)}},this.setViewMode=t=>{try{this.viewMode=t,t?this.location.view=t:delete this.location.view,this.setLocation(),this.getComments()}catch(t){console.warn("Error in setViewMode: ",t)}},this.setAttribute("snippyly-comment-disabled","true");try{this.expanded=!0,this.detectVersion(),this.setWindowEventListner(),this.urlChangeListener(),this.checkUrl(),console.log("*** Staging Mode ON! ***")}catch(t){console.warn("Error in constructor: ",t)}}get loadPlugin(){return this._loadPlugin}set loadPlugin(t){this._loadPlugin=t,this.loadPlugin?this.classList.add("visible"):this.classList.remove("visible")}get expanded(){return this._expanded}set expanded(t){this._expanded=t,this.expanded?this.classList.add("expanded"):this.classList.remove("expanded")}get projectVersionKey(){return this._projectVersionKey}set projectVersionKey(t){try{this._projectVersionKey=t,this.projectVersionKey&&ct("projectVersionKey",this.projectVersionKey,!1,"sessionStorage"),this.detectVersion()}catch(t){console.warn("Error in set projectVersionKey: ",t)}}get menuOpenedId(){return this._menuOpenedId}set menuOpenedId(t){this._menuOpenedId=t,this.menuOpenedId?this.addWindowClickEventListener():this.removeWindowClickEventListener()}render(){var t,i;return this.loadPlugin?this.snippylyUser?A`
|
|
380
|
+
<div class="snippyly-plugin-container">
|
|
381
|
+
<div class="toolbar ${st({expanded:this.expanded})}">
|
|
382
|
+
|
|
383
|
+
<!-- icon + logo -->
|
|
384
|
+
<div class="toolbar-section toolbar-toggle-icon" @click=${()=>this.toggleSnippylyPluginToolbar()}>
|
|
385
|
+
<svg class="toolbar-icon-arrow" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
386
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
387
|
+
d="M14.1607 12.4941C13.8353 12.8195 13.8353 13.3472 14.1607 13.6726L16.4882 16L14.1607 18.3274C13.8353 18.6528 13.8353 19.1805 14.1607 19.5059C14.4862 19.8314 15.0138 19.8314 15.3393 19.5059L18.2559 16.5893C18.5814 16.2638 18.5814 15.7362 18.2559 15.4107L15.3393 12.4941C15.0138 12.1686 14.4862 12.1686 14.1607 12.4941Z" />
|
|
388
|
+
</svg>
|
|
92
389
|
</div>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
390
|
+
|
|
391
|
+
<div class="toolbar-section snippyly-logo">
|
|
392
|
+
<!-- <img class="toolbar-logo"
|
|
393
|
+
src="https://drive.google.com/uc?export=view&id=1x4HyR7dk3bbCXoeWS-Sy8NZ_EI-f6nR2"> -->
|
|
394
|
+
<svg class="toolbar-logo" width="28" height="28" viewBox="0 0 20 20" fill="none"
|
|
395
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
396
|
+
<path
|
|
397
|
+
d="M7.27564 0.223149C6.79031 0.00346224 6.25358 -0.0557657 5.73589 0.0532382C5.21819 0.162242 4.74372 0.434385 4.37475 0.833949C3.99784 1.2249 3.74112 1.72714 3.63818 2.275C3.53523 2.82287 3.59085 3.39088 3.79775 3.90475C3.99487 4.42252 4.33503 4.86527 4.77372 5.17507C5.21241 5.48487 5.72921 5.64732 6.25653 5.64115H8.91823V2.82595C8.92404 2.26743 8.77031 1.72008 8.4772 1.25563C8.1841 0.791185 7.76528 0.431303 7.27564 0.223149Z"
|
|
398
|
+
fill="#FFCB00" />
|
|
399
|
+
<path
|
|
400
|
+
d="M16.9736 3.72115C16.3509 3.06258 15.5579 2.61408 14.6946 2.43229C13.8313 2.25049 12.9365 2.34355 12.1231 2.69972C11.3097 3.05588 10.6143 3.65918 10.1246 4.43343C9.63489 5.20769 9.37289 6.11818 9.37167 7.04995V11.7611H13.8313C14.714 11.771 15.5791 11.4985 16.3131 10.9793C17.0471 10.46 17.616 9.7183 17.9451 8.85115C18.2892 7.9918 18.3806 7.04259 18.2072 6.12744C18.0339 5.21229 17.604 4.3737 16.9736 3.72115Z"
|
|
401
|
+
fill="#FF7162" />
|
|
402
|
+
<path
|
|
403
|
+
d="M14.4933 13.9835C14.2962 13.4652 13.956 13.0218 13.5172 12.7114C13.0783 12.401 12.5612 12.2379 12.0334 12.2435H9.37167V15.0611C9.36611 15.6198 9.52006 16.1671 9.81336 16.6316C10.1067 17.096 10.5256 17.4558 11.0154 17.6639C11.3431 17.8099 11.6949 17.8853 12.0504 17.8859C12.4867 17.8813 12.9153 17.7635 13.2987 17.5429C13.682 17.3223 14.0085 17.0057 14.2496 16.6206C14.4906 16.2356 14.6388 15.7939 14.6813 15.3342C14.7238 14.8745 14.6593 14.4107 14.4933 13.9835Z"
|
|
404
|
+
fill="#0DCF82" />
|
|
405
|
+
<path
|
|
406
|
+
d="M0.351589 9.03355C0.00514201 9.8932 -0.0880133 10.8436 0.0843205 11.7602C0.256654 12.6768 0.686445 13.517 1.31742 14.1708C1.72451 14.6098 2.20989 14.9589 2.74541 15.1979C3.28094 15.4368 3.85595 15.5608 4.4371 15.5628C5.03193 15.5613 5.62062 15.4353 6.16924 15.192C6.9885 14.8437 7.68929 14.2415 8.17981 13.4645C8.67033 12.6874 8.92771 11.7717 8.91823 10.8372V6.12115H4.46544C3.58239 6.11147 2.71718 6.38434 1.98312 6.90402C1.24906 7.4237 0.680388 8.16595 0.351589 9.03355Z"
|
|
407
|
+
fill="#A259FE" />
|
|
408
|
+
</svg>
|
|
409
|
+
</div>
|
|
410
|
+
|
|
411
|
+
<!-- divider -->
|
|
412
|
+
<div class="toolbar-section ${st({"d-none":!this.expanded})}">
|
|
413
|
+
<div class="toolbar-divider"></div>
|
|
414
|
+
</div>
|
|
415
|
+
|
|
416
|
+
<!-- avatars -->
|
|
417
|
+
<div class="toolbar-section presence-section ${st({"d-none":!this.expanded})}">
|
|
418
|
+
<div class="toolbar-avatars">
|
|
419
|
+
<snippyly-presence max-users="4"></snippyly-presence>
|
|
420
|
+
<!-- <div class="avatar blue overlapped">
|
|
421
|
+
<img class="avatar-img"
|
|
422
|
+
src="https://drive.google.com/uc?export=view&id=1QHXtKZg8I7-wIapZJDs-x8YenlHMvzP4">
|
|
423
|
+
</div>
|
|
424
|
+
<div class="avatar gray overlapped">
|
|
425
|
+
<img class="avatar-img"
|
|
426
|
+
src="https://drive.google.com/uc?export=view&id=19Q76zC8mmLXjnMoRqio6EVtfO4AoB-hm">
|
|
427
|
+
</div>
|
|
428
|
+
<div class="avatar yellow overlapped">
|
|
429
|
+
<div class="avatar-text yellow">K</div>
|
|
430
|
+
</div>
|
|
431
|
+
<div class="avatar overlapped">
|
|
432
|
+
<div class="avatar-text more">+2</div>
|
|
433
|
+
</div> -->
|
|
105
434
|
</div>
|
|
106
435
|
</div>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
436
|
+
|
|
437
|
+
<!-- divider -->
|
|
438
|
+
<!-- <div class="toolbar-section">
|
|
439
|
+
<div class="toolbar-divider"></div>
|
|
440
|
+
</div> -->
|
|
441
|
+
|
|
442
|
+
<!-- actions -->
|
|
443
|
+
<div class="toolbar-section huddle-recorder-section ${st({"d-none":!this.expanded})}">
|
|
444
|
+
<div class="toolbar-actions">
|
|
445
|
+
<snippyly-comment-tool class="custom-tool">
|
|
446
|
+
<div class="action">
|
|
447
|
+
<svg class="toolbar-icon" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
448
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
449
|
+
d="M17.7608 6.03888C21.6888 6.64595 24.7153 9.3481 25.7503 13.1722C26.0832 14.4028 26.0832 16.5981 25.7503 17.8287C24.8136 21.2897 22.3047 23.7986 18.8437 24.7353C18.1546 24.9217 17.6783 24.9695 16.5154 24.9685C14.9367 24.9672 14.1823 24.8254 12.8496 24.2792L12.1364 23.9869L9.93697 24.5342C7.8786 25.0464 7.71866 25.071 7.44436 24.917C6.90064 24.6118 6.90443 24.3818 7.49147 22.0353L8.03021 19.8823L7.73728 19.1677C7.19053 17.8336 7.04867 17.0796 7.04737 15.5005C7.0464 14.3376 7.09415 13.8613 7.28063 13.1722C8.21127 9.73361 10.737 7.1939 14.1308 6.28405C14.9298 6.06985 17.0392 5.92745 17.7608 6.03888ZM14.2233 8.05664C12.9452 8.46912 12.019 9.04056 11.0373 10.0223C9.57907 11.4805 8.85364 13.0991 8.75174 15.1214C8.68947 16.3572 8.85884 17.3544 9.31582 18.4435C9.47381 18.8201 9.65855 19.2624 9.72624 19.4266C9.82922 19.6761 9.78471 19.9865 9.45432 21.3204C9.23688 22.1979 9.06827 22.9251 9.07953 22.9364C9.09079 22.9476 9.81796 22.779 10.6955 22.5616C12.0294 22.2312 12.3398 22.1867 12.5893 22.2897C12.7535 22.3573 13.1958 22.5421 13.5724 22.7001C14.6615 23.1571 15.6587 23.3264 16.8945 23.2642C18.9168 23.1623 20.5354 22.4368 21.9936 20.9786C22.968 20.0042 23.5361 19.0878 23.9685 17.7926C24.2112 17.0656 24.2457 16.7805 24.2457 15.5005C24.2457 14.2204 24.2112 13.9353 23.9685 13.2083C23.5361 11.9132 22.968 10.9967 21.9936 10.0223C20.3414 8.37025 18.566 7.66777 16.2447 7.74769C15.3595 7.77823 14.8403 7.8575 14.2233 8.05664Z" />
|
|
450
|
+
</svg>
|
|
114
451
|
</div>
|
|
452
|
+
</snippyly-comment-tool>
|
|
453
|
+
<div class="action dropdown">
|
|
454
|
+
<snippyly-huddle-tool class="toolbar-icon" type="all"></snippyly-huddle-tool>
|
|
455
|
+
|
|
456
|
+
<svg class="toolbar-icon-dropdown-arrow" viewBox="0 0 16 16" fill="none"
|
|
457
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
458
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
459
|
+
d="M10.8047 6.5286C10.5444 6.26825 10.1223 6.26825 9.86193 6.5286L8 8.39052L6.13807 6.5286C5.87772 6.26825 5.45561 6.26825 5.19526 6.5286C4.93491 6.78894 4.93491 7.21105 5.19526 7.4714L7.5286 9.80474C7.78894 10.0651 8.21105 10.0651 8.4714 9.80474L10.8047 7.4714C11.0651 7.21105 11.0651 6.78894 10.8047 6.5286Z" />
|
|
460
|
+
</svg>
|
|
461
|
+
|
|
115
462
|
</div>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
463
|
+
<div class="action dropdown">
|
|
464
|
+
<snippyly-recorder-tool class="toolbar-icon" type="all"></snippyly-recorder-tool>
|
|
465
|
+
|
|
466
|
+
<svg class="toolbar-icon-dropdown-arrow" viewBox="0 0 16 16" fill="none"
|
|
467
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
468
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
469
|
+
d="M10.8047 6.5286C10.5444 6.26825 10.1223 6.26825 9.86193 6.5286L8 8.39052L6.13807 6.5286C5.87772 6.26825 5.45561 6.26825 5.19526 6.5286C4.93491 6.78894 4.93491 7.21105 5.19526 7.4714L7.5286 9.80474C7.78894 10.0651 8.21105 10.0651 8.4714 9.80474L10.8047 7.4714C11.0651 7.21105 11.0651 6.78894 10.8047 6.5286Z" />
|
|
470
|
+
</svg>
|
|
471
|
+
</div>
|
|
472
|
+
</div>
|
|
473
|
+
</div>
|
|
474
|
+
|
|
475
|
+
<!-- divider -->
|
|
476
|
+
<div class="toolbar-section ${st({"d-none":!this.expanded})}">
|
|
477
|
+
<div class="toolbar-divider"></div>
|
|
478
|
+
</div>
|
|
479
|
+
|
|
480
|
+
<!-- actions 1 -->
|
|
481
|
+
<div class="toolbar-section comment-viewmode-section ${st({"d-none":!this.expanded})}">
|
|
482
|
+
<div class="toolbar-actions1">
|
|
483
|
+
<div class="action-border" @click=${()=>this.toggleCommentSidebar()}>
|
|
484
|
+
<svg class="toolbar-icon-border" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
485
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.7608 2.03888C17.6888 2.64595 20.7153 5.3481 21.7503 9.17223C22.0832 10.4028 22.0832 12.5981 21.7503 13.8287C20.8136 17.2897 18.3047 19.7986 14.8437 20.7353C14.1546 20.9217 13.6783 20.9695 12.5154 20.9685C10.9367 20.9672 10.1823 20.8254 8.84963 20.2792L8.13643 19.9869L5.93697 20.5342C3.8786 21.0464 3.71866 21.071 3.44436 20.917C2.90064 20.6118 2.90443 20.3818 3.49147 18.0353L4.03021 15.8823L3.73728 15.1677C3.19053 13.8336 3.04867 13.0796 3.04737 11.5005C3.0464 10.3376 3.09415 9.86128 3.28063 9.17223C4.21127 5.73361 6.73701 3.1939 10.1308 2.28405C10.9298 2.06985 13.0392 1.92745 13.7608 2.03888ZM10.2233 4.05664C8.94525 4.46912 8.01905 5.04056 7.0373 6.02231C5.57907 7.48054 4.85364 9.09914 4.75174 11.1214C4.68947 12.3572 4.85884 13.3544 5.31582 14.4435C5.47381 14.8201 5.65855 15.2624 5.72624 15.4266C5.82922 15.6761 5.78471 15.9865 5.45432 17.3204C5.23688 18.1979 5.06827 18.9251 5.07953 18.9364C5.09079 18.9476 5.81796 18.779 6.69553 18.5616C8.02944 18.2312 8.3398 18.1867 8.5893 18.2897C8.75347 18.3573 9.19583 18.5421 9.57235 18.7001C10.6615 19.1571 11.6587 19.3264 12.8945 19.2642C14.9168 19.1623 16.5354 18.4368 17.9936 16.9786C18.968 16.0042 19.5361 15.0878 19.9685 13.7926C20.2112 13.0656 20.2457 12.7805 20.2457 11.5005C20.2457 10.2204 20.2112 9.93535 19.9685 9.20829C19.5361 7.91315 18.968 6.9967 17.9936 6.02231C16.3414 4.37025 14.566 3.66777 12.2447 3.74769C11.3595 3.77823 10.8403 3.8575 10.2233 4.05664Z" />
|
|
486
|
+
</svg>
|
|
487
|
+
<p class="action-text">${null===(t=this.comments)||void 0===t?void 0:t.length}</p>
|
|
121
488
|
</div>
|
|
122
|
-
<div class="
|
|
123
|
-
<
|
|
124
|
-
|
|
125
|
-
|
|
489
|
+
<div class="action-border dropdown">
|
|
490
|
+
<svg width="16" height="24" viewBox="0 0 16 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
491
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99939 16.3333C10.7497 16.3333 12.7055 14.6051 13.8509 13.1658C14.2482 12.6665 14.2482 12.0001 13.8509 11.5009C12.7055 10.0616 10.7497 8.33333 7.99939 8.33333C5.24906 8.33333 3.29326 10.0616 2.14788 11.5009C1.75062 12.0001 1.75062 12.6665 2.14788 13.1658C3.29325 14.6051 5.24906 16.3333 7.99939 16.3333ZM14.8942 13.996C15.6782 13.0108 15.6782 11.6558 14.8942 10.6707C13.6487 9.10551 11.3504 7 7.99939 7C4.64837 7 2.3501 9.10551 1.10458 10.6707C0.320609 11.6558 0.320609 13.0108 1.10458 13.996C2.3501 15.5612 4.64837 17.6667 7.99939 17.6667C11.3504 17.6667 13.6487 15.5612 14.8942 13.996Z" fill="#8F95B2"/>
|
|
492
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.33301 12.3332C9.33301 13.0696 8.73605 13.6665 7.99967 13.6665C7.26329 13.6665 6.66634 13.0696 6.66634 12.3332C6.66634 12.3142 6.66674 12.2954 6.66752 12.2767C6.77144 12.3133 6.88324 12.3332 6.99967 12.3332C7.55196 12.3332 7.99967 11.8855 7.99967 11.3332C7.99967 11.2167 7.97977 11.1049 7.94319 11.001C7.96192 11.0002 7.98075 10.9998 7.99967 10.9998C8.73605 10.9998 9.33301 11.5968 9.33301 12.3332ZM10.6663 12.3332C10.6663 13.8059 9.47243 14.9998 7.99967 14.9998C6.52692 14.9998 5.33301 13.8059 5.33301 12.3332C5.33301 10.8604 6.52692 9.6665 7.99967 9.6665C9.47243 9.6665 10.6663 10.8604 10.6663 12.3332Z" fill="#8F95B2"/>
|
|
493
|
+
</svg>
|
|
494
|
+
<p class="action-text" style="margin-left:4px">All</p>
|
|
495
|
+
<svg class="toolbar-icon-dropdown-arrow" viewBox="0 0 16 16" fill="none"
|
|
496
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
497
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
498
|
+
d="M10.8047 6.5286C10.5444 6.26825 10.1223 6.26825 9.86193 6.5286L8 8.39052L6.13807 6.5286C5.87772 6.26825 5.45561 6.26825 5.19526 6.5286C4.93491 6.78894 4.93491 7.21105 5.19526 7.4714L7.5286 9.80474C7.78894 10.0651 8.21105 10.0651 8.4714 9.80474L10.8047 7.4714C11.0651 7.21105 11.0651 6.78894 10.8047 6.5286Z" />
|
|
499
|
+
</svg>
|
|
126
500
|
</div>
|
|
127
501
|
</div>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
502
|
+
</div>
|
|
503
|
+
|
|
504
|
+
<!-- divider -->
|
|
505
|
+
<div class="toolbar-section">
|
|
506
|
+
<div class="toolbar-divider"></div>
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
<!-- actions 2 -->
|
|
510
|
+
<div class="toolbar-section">
|
|
511
|
+
<div class="toolbar-actions2">
|
|
512
|
+
<div class="action" @click=${()=>this.copyLink()}>
|
|
513
|
+
<svg class="toolbar-icon" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
514
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
515
|
+
d="M12.9986 14.0398C13.028 14.5913 12.6047 15.0622 12.0532 15.0916C11.3005 15.1318 10.7044 15.1808 10.2385 15.23C9.61292 15.2959 9.23278 15.6802 9.16959 16.233C9.07886 17.0267 9 18.2277 9 19.9999C9 21.7722 9.07886 22.9732 9.16959 23.7669C9.23289 24.3206 9.61207 24.7038 10.2368 24.7697C11.3308 24.8852 13.1392 24.9999 16 24.9999C18.8608 24.9999 20.6692 24.8852 21.7632 24.7697C22.3879 24.7038 22.7671 24.3206 22.8304 23.7669C22.9211 22.9732 23 21.7722 23 19.9999C23 18.2277 22.9211 17.0267 22.8304 16.233C22.7672 15.6802 22.3871 15.2959 21.7615 15.23C21.2956 15.1808 20.6995 15.1318 19.9468 15.0916C19.3953 15.0622 18.972 14.5913 19.0014 14.0398C19.0308 13.4883 19.5017 13.0651 20.0532 13.0945C20.8361 13.1362 21.4669 13.1878 21.9712 13.241C23.4556 13.3975 24.6397 14.4506 24.8175 16.0059C24.9188 16.8922 25 18.1715 25 19.9999C25 21.8284 24.9188 23.1077 24.8175 23.994C24.6398 25.5483 23.4585 26.6019 21.9732 26.7587C20.7919 26.8834 18.9108 26.9999 16 26.9999C13.0892 26.9999 11.2081 26.8834 10.0268 26.7587C8.54151 26.6019 7.36021 25.5483 7.18253 23.994C7.0812 23.1077 7 21.8284 7 19.9999C7 18.1715 7.0812 16.8922 7.18253 16.0059C7.36031 14.4506 8.54436 13.3975 10.0288 13.241C10.5331 13.1878 11.1639 13.1362 11.9468 13.0945C12.4983 13.0651 12.9692 13.4883 12.9986 14.0398Z" />
|
|
516
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
517
|
+
d="M13.2071 10.2071C12.8166 10.5976 12.1834 10.5976 11.7929 10.2071C11.4024 9.81658 11.4024 9.18342 11.7929 8.79289L15.2929 5.29289C15.6834 4.90237 16.3166 4.90237 16.7071 5.29289L20.2071 8.79289C20.5976 9.18342 20.5976 9.81658 20.2071 10.2071C19.8166 10.5976 19.1834 10.5976 18.7929 10.2071L17 8.41421V18C17 18.5523 16.5523 19 16 19C15.4477 19 15 18.5523 15 18V8.41421L13.2071 10.2071Z" />
|
|
518
|
+
</svg>
|
|
519
|
+
|
|
520
|
+
</div>
|
|
521
|
+
<div class="action">
|
|
522
|
+
<img class="toolbar-img" src=${null===(i=this.snippylyUser)||void 0===i?void 0:i.photoUrl}>
|
|
523
|
+
</div>
|
|
132
524
|
</div>
|
|
133
|
-
${(null===(r=this.snippylyUser)||void 0===r?void 0:r.userId)?U`
|
|
134
|
-
<div class="snippyly-presence-container snippyly-menu-trigger">
|
|
135
|
-
<snippyly-recorder-tool type="all"></snippyly-recorder-tool>
|
|
136
|
-
</div>
|
|
137
|
-
<div class="snippyly-presence-container snippyly-menu-trigger">
|
|
138
|
-
<snippyly-huddle-tool type="all"></snippyly-huddle-tool>
|
|
139
|
-
</div>
|
|
140
|
-
`:null}
|
|
141
|
-
${(null===(l=this.snippylyUser)||void 0===l?void 0:l.userId)?U`
|
|
142
|
-
<div class="snippyly-share-container snippyly-menu-trigger" @click=${()=>this.copyLink()}>
|
|
143
|
-
<button class="snippyly-btn snippyly-primary-btn signin-btn">
|
|
144
|
-
Share
|
|
145
|
-
</button>
|
|
146
|
-
<div class="snippyly-menu snippyly-tooltip">
|
|
147
|
-
<div class="menu-item">${this.copyLinkTooltip}</div>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
`:null}
|
|
151
|
-
${(null===(h=this.snippylyUser)||void 0===h?void 0:h.userId)?null:U`
|
|
152
|
-
<div class="snippyly-signin-container snippyly-menu-trigger">
|
|
153
|
-
<button class="snippyly-btn snippyly-primary-btn signin-btn" @click=${()=>this.loginWithGoogle()}>
|
|
154
|
-
Sign in
|
|
155
|
-
</button>
|
|
156
|
-
</div>
|
|
157
|
-
`}
|
|
158
|
-
`:null}
|
|
159
|
-
|
|
160
|
-
<div class="snippyly-menu-container snippyly-menu-trigger ${ni({opened:"userMenu"===this.menuOpenedId})}" id="userMenu" @click=${i=>this.toggleMenu(i,"userMenu")}>
|
|
161
|
-
${this.expanded&&this.snippylyUser?(null===(a=this.snippylyUser)||void 0===a?void 0:a.photoUrl)?U`
|
|
162
|
-
<img src=${null===(d=this.snippylyUser)||void 0===d?void 0:d.photoUrl} class="profile-img" referrerpolicy="no-referrer" title=${null===(c=this.snippylyUser)||void 0===c?void 0:c.name} />
|
|
163
|
-
`:U`
|
|
164
|
-
<div class="profile-initial"><span>${(null===(u=null===(p=this.snippylyUser)||void 0===p?void 0:p.name)||void 0===u?void 0:u.charAt(0))||"-"}</span></div>
|
|
165
|
-
`:null}
|
|
166
|
-
<svg width="4" height="14" viewBox="0 0 4 14" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
167
|
-
class="more-menu-icon">
|
|
168
|
-
<path
|
|
169
|
-
d="M3.5 12C3.5 12.3978 3.34196 12.7794 3.06066 13.0607C2.77936 13.342 2.39782 13.5 2 13.5C1.60218 13.5 1.22064 13.342 0.93934 13.0607C0.658035 12.7794 0.5 12.3978 0.5 12C0.5 11.6022 0.658035 11.2206 0.93934 10.9393C1.22064 10.658 1.60218 10.5 2 10.5C2.39782 10.5 2.77936 10.658 3.06066 10.9393C3.34196 11.2206 3.5 11.6022 3.5 12ZM3.5 7C3.5 7.39782 3.34196 7.77936 3.06066 8.06066C2.77936 8.34196 2.39782 8.5 2 8.5C1.60218 8.5 1.22064 8.34196 0.93934 8.06066C0.658035 7.77936 0.5 7.39782 0.5 7C0.5 6.60218 0.658035 6.22064 0.93934 5.93934C1.22064 5.65804 1.60218 5.5 2 5.5C2.39782 5.5 2.77936 5.65804 3.06066 5.93934C3.34196 6.22064 3.5 6.60218 3.5 7ZM3.5 2C3.5 2.39782 3.34196 2.77936 3.06066 3.06066C2.77936 3.34196 2.39782 3.5 2 3.5C1.60218 3.5 1.22064 3.34196 0.93934 3.06066C0.658035 2.77936 0.5 2.39782 0.5 2C0.5 1.60218 0.658035 1.22064 0.93934 0.93934C1.22064 0.658035 1.60218 0.5 2 0.5C2.39782 0.5 2.77936 0.658035 3.06066 0.93934C3.34196 1.22064 3.5 1.60218 3.5 2Z"
|
|
170
|
-
fill="black" />
|
|
171
|
-
</svg>
|
|
172
|
-
<div class="snippyly-menu">
|
|
173
|
-
<div class="menu-item" @click=${()=>this.toggleSnippylyPluginToolbar()}>${this.expanded?"Hide Toolbar":"Show Toolbar"}</div>
|
|
174
|
-
<div class="menu-item" @click=${()=>this.removeSnippyly()}>Exit Review Mode</div>
|
|
175
|
-
${(null===(y=this.snippylyUser)||void 0===y?void 0:y.userId)?U`
|
|
176
|
-
<div class="menu-item-divider"></div>
|
|
177
|
-
<div class="menu-item" @click=${()=>this.signOutUser()}>Sign out</div>
|
|
178
|
-
`:null}
|
|
179
525
|
</div>
|
|
526
|
+
|
|
527
|
+
<!-- context menu icon -->
|
|
528
|
+
<div class="toolbar-section" @click=${()=>this.signOutUser()}>
|
|
529
|
+
<svg class="toolbar-icon-context" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
530
|
+
<path
|
|
531
|
+
d="M14 23C14 24.1 14.9 25 16 25C17.1 25 18 24.1 18 23C18 21.9 17.1 21 16 21C14.9 21 14 21.9 14 23ZM14 9C14 10.1 14.9 11 16 11C17.1 11 18 10.1 18 9C18 7.9 17.1 7 16 7C14.9 7 14 7.9 14 9ZM14 16C14 17.1 14.9 18 16 18C17.1 18 18 17.1 18 16C18 14.9 17.1 14 16 14C14.9 14 14 14.9 14 16Z" />
|
|
532
|
+
</svg>
|
|
533
|
+
</div>
|
|
534
|
+
|
|
180
535
|
</div>
|
|
181
|
-
|
|
182
|
-
`:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
.snippyly-plugin-container.expanded .snippyly-logo-container {
|
|
230
|
-
border-right: 1px solid rgba(0, 0, 0, 0.12);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.snippyly-logo-container:hover,
|
|
234
|
-
.snippyly-comment-tool-container:hover,
|
|
235
|
-
.snippyly-menu-container:hover {
|
|
236
|
-
background-color: #f5f5f5;
|
|
237
|
-
cursor: pointer;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.snippyly-logo-container {
|
|
241
|
-
border-top-left-radius: ${ui(.5)};
|
|
242
|
-
border-bottom-left-radius: ${ui(.5)};
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.snippyly-menu-container {
|
|
246
|
-
border-top-right-radius: ${ui(.5)};
|
|
247
|
-
border-bottom-right-radius: ${ui(.5)};
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.snippyly-plugin-container.expanded .snippyly-logo {
|
|
251
|
-
margin-right: ${ui(.5)};
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.snippyly-plugin-container:not(.expanded) .snippyly-logo {
|
|
255
|
-
margin-left: ${ui(.5)};
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.snippyly-comment-tool-container {
|
|
259
|
-
padding: 0;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.comment-mode-enabled * {
|
|
263
|
-
cursor: not-allowed !important;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.comment-mode-enabled .snippyly-comment-tool-container * {
|
|
267
|
-
background-color: #a259fe;
|
|
268
|
-
cursor: pointer !important;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.comment-mode-enabled .snippyly-comment-tool-container svg path {
|
|
272
|
-
fill: white;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.snippyly-comment-tool-container .custom-tool {
|
|
276
|
-
font-size: ${ui(1)};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
snippyly-comment-tool {
|
|
280
|
-
height: 100%;
|
|
281
|
-
padding: ${ui(1)};
|
|
282
|
-
box-sizing: border-box;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.snippyly-comments-container {
|
|
286
|
-
padding-left: ${ui(.5)};
|
|
287
|
-
padding-right: ${ui(.5)};
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.comment-counter {
|
|
291
|
-
border: 1px solid rgb(0, 0, 0, 0.25);
|
|
292
|
-
padding: ${ui(.3,.5)};
|
|
293
|
-
border-radius: ${ui(.5)};
|
|
294
|
-
font-size: ${ui(.8)};
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.comment-counter:hover {
|
|
298
|
-
background-color: #f5f5f5;
|
|
299
|
-
cursor: pointer;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.snippyly-btn {
|
|
303
|
-
cursor: pointer;
|
|
304
|
-
padding: ${ui(.3,.5)};
|
|
305
|
-
font-size: ${ui(.8)};
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.snippyly-primary-btn {
|
|
309
|
-
/* height: 36px; */
|
|
310
|
-
background: rgb(24, 160, 251);
|
|
311
|
-
border-radius: 6px;
|
|
312
|
-
border: 0;
|
|
313
|
-
box-shadow: none;
|
|
314
|
-
outline: none;
|
|
315
|
-
/* padding: 0 12px; */
|
|
316
|
-
color: white;
|
|
317
|
-
/* margin: 0 12px; */
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.snippyly-menu-trigger {
|
|
321
|
-
position: relative;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.snippyly-plugin-container:not(.comment-mode-enabled) .snippyly-menu-trigger:hover .snippyly-menu,
|
|
325
|
-
.snippyly-plugin-container:not(.comment-mode-enabled) .snippyly-menu-trigger.opened .snippyly-menu {
|
|
326
|
-
display: block;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.snippyly-menu {
|
|
330
|
-
position: absolute;
|
|
331
|
-
background: #222222;
|
|
332
|
-
color: white;
|
|
333
|
-
top: 0;
|
|
334
|
-
left: 50%;
|
|
335
|
-
white-space: nowrap;
|
|
336
|
-
transform: translate(-50%, calc(-100% - ${ui(1)}));
|
|
337
|
-
display: none;
|
|
338
|
-
border-radius: 4px;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.menu-item {
|
|
342
|
-
padding: ${ui(.25,.5)};
|
|
343
|
-
cursor: pointer;
|
|
344
|
-
font-size: ${ui(.8)};
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.menu-item:first-child {
|
|
348
|
-
padding-top: ${ui(.5)};
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.menu-item:last-child {
|
|
352
|
-
padding-bottom: ${ui(.5)};
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.menu-item-divider {
|
|
356
|
-
background: black;
|
|
357
|
-
height: 1px;
|
|
358
|
-
margin: ${ui(.2)} 0;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.snippyly-menu:not(.snippyly-tooltip):after {
|
|
362
|
-
content: '';
|
|
363
|
-
position: absolute;
|
|
364
|
-
display: block;
|
|
365
|
-
width: 0px;
|
|
366
|
-
z-index: 1;
|
|
367
|
-
border-style: solid;
|
|
368
|
-
border-color: #222222 transparent;
|
|
369
|
-
border-width: 8px 8px 0px;
|
|
370
|
-
bottom: -7px;
|
|
371
|
-
left: 50%;
|
|
372
|
-
transform: translateX(-50%);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.spacer {
|
|
376
|
-
flex: 1 0 auto;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.profile-img {
|
|
380
|
-
width: ${ui(1.5)};
|
|
381
|
-
height: ${ui(1.5)};
|
|
382
|
-
border-radius: 100%;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.profile-initial {
|
|
386
|
-
background: rgb(162, 89, 254);
|
|
387
|
-
width: ${ui(1.5)};
|
|
388
|
-
height: ${ui(1.5)};
|
|
389
|
-
border-radius: 100%;
|
|
390
|
-
display: flex;
|
|
391
|
-
justify-content: center;
|
|
392
|
-
align-items: center;
|
|
393
|
-
color: white;
|
|
394
|
-
font-size: ${ui(.7)};
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.snippyly-logo-container.snippyly-menu-trigger .snippyly-menu {
|
|
398
|
-
left: 85%;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.snippyly-logo-container.snippyly-menu-trigger .snippyly-menu:after {
|
|
402
|
-
left: 30%;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.snippyly-menu-container.snippyly-menu-trigger .snippyly-menu {
|
|
406
|
-
left: -50%;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
.snippyly-plugin-container.expanded.active .snippyly-menu-container.snippyly-menu-trigger .snippyly-menu {
|
|
410
|
-
left: 5%;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.snippyly-menu-container.snippyly-menu-trigger .snippyly-menu:after {
|
|
414
|
-
left: 75%;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
.more-menu-icon {
|
|
418
|
-
margin: ${ui(.5)};
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.disabled {
|
|
422
|
-
cursor: not-allowed !important;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.arrow-icon {
|
|
426
|
-
transform: rotate(90deg);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.snippyly-plugin-container.expanded .arrow-icon {
|
|
430
|
-
transform: rotate(270deg);
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
snippyly-presence {
|
|
434
|
-
display: flex;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.s-presence-container {
|
|
438
|
-
display: inline-flex;
|
|
439
|
-
flex-direction: row-reverse;
|
|
440
|
-
align-items: center;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.s-presence-avatar {
|
|
444
|
-
position: relative;
|
|
445
|
-
box-shadow: 0px 0px 0px 3px;
|
|
446
|
-
border-radius: 50%;
|
|
447
|
-
overflow: hidden;
|
|
448
|
-
width: 24px;
|
|
449
|
-
height: 24px;
|
|
450
|
-
display: flex;
|
|
451
|
-
align-items: center;
|
|
452
|
-
justify-content: center;
|
|
453
|
-
font-size: 12px;
|
|
454
|
-
// background-color: white;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.s-presence-avatar.more-users {
|
|
458
|
-
background: #4578a7;
|
|
459
|
-
box-shadow: 0px 0px 0px 3px #4578a7;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.s-presence-avatar:not(:last-child):not(.more-users) {
|
|
463
|
-
margin-left: -6px !important;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.s-presence-avatar-image {
|
|
467
|
-
width: 100%;
|
|
468
|
-
height: auto;
|
|
469
|
-
display: block;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.s-presence-avatar-image-small {
|
|
473
|
-
width: ${ui(1.6)};
|
|
474
|
-
height: auto;
|
|
475
|
-
display: block;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.s-presence-avatar-initial {
|
|
479
|
-
color: white;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
.away {
|
|
483
|
-
filter: grayscale(1);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
snippyly-recorder-tool .mat-menu-trigger {
|
|
487
|
-
display: flex;
|
|
488
|
-
align-items: center;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
snippyly-huddle-tool .mat-menu-trigger {
|
|
492
|
-
display: flex;
|
|
493
|
-
align-items: center;
|
|
494
|
-
}
|
|
495
|
-
`,yi([ii()],vi.prototype,"loadPlugin",null),yi([ii()],vi.prototype,"comments",void 0),yi([ii()],vi.prototype,"commentElement",void 0),yi([ii()],vi.prototype,"commentSubscription",void 0),yi([ii()],vi.prototype,"selectionElement",void 0),yi([ii()],vi.prototype,"addCommentMode",void 0),yi([ii()],vi.prototype,"_expanded",void 0),yi([ii()],vi.prototype,"snippylyUser",void 0),yi([Y()],vi.prototype,"apiKey",void 0),yi([ii()],vi.prototype,"staging",void 0),yi([Y()],vi.prototype,"projectVersionKey",null),yi([ii()],vi.prototype,"projectVersion",void 0),yi([ii()],vi.prototype,"_menuOpenedId",void 0),yi([ii()],vi.prototype,"copyLinkTooltip",void 0),yi([ii()],vi.prototype,"invalidApiKey",void 0),yi([ii()],vi.prototype,"documentId",void 0),yi([ii()],vi.prototype,"isUserGlobalContact",void 0),yi([ii()],vi.prototype,"location",void 0),yi([ii()],vi.prototype,"viewMode",void 0),vi=yi([(i=>t=>"function"==typeof t?((i,t)=>(window.customElements.define(i,t),t))(i,t):((i,t)=>{const{kind:e,elements:n}=t;return{kind:e,elements:n,finisher(t){window.customElements.define(i,t)}}})(i,t))("snippyly-plugin")],vi);export{vi as SnippylyPlugin};
|
|
536
|
+
</div>
|
|
537
|
+
`:A`
|
|
538
|
+
<div class="snippyly-plugin-container">
|
|
539
|
+
<div class="toolbar" id="smallToolbar">
|
|
540
|
+
<!-- <div class="toolbar-section">
|
|
541
|
+
<svg class="toolbar-icon-arrow" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
542
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
543
|
+
d="M14.1607 12.4941C13.8353 12.8195 13.8353 13.3472 14.1607 13.6726L16.4882 16L14.1607 18.3274C13.8353 18.6528 13.8353 19.1805 14.1607 19.5059C14.4862 19.8314 15.0138 19.8314 15.3393 19.5059L18.2559 16.5893C18.5814 16.2638 18.5814 15.7362 18.2559 15.4107L15.3393 12.4941C15.0138 12.1686 14.4862 12.1686 14.1607 12.4941Z" />
|
|
544
|
+
</svg>
|
|
545
|
+
</div> -->
|
|
546
|
+
<div class="toolbar-section">
|
|
547
|
+
<svg class="toolbar-logo" width="28" height="28" viewBox="0 0 20 20" fill="none"
|
|
548
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
549
|
+
<path
|
|
550
|
+
d="M7.27564 0.223149C6.79031 0.00346224 6.25358 -0.0557657 5.73589 0.0532382C5.21819 0.162242 4.74372 0.434385 4.37475 0.833949C3.99784 1.2249 3.74112 1.72714 3.63818 2.275C3.53523 2.82287 3.59085 3.39088 3.79775 3.90475C3.99487 4.42252 4.33503 4.86527 4.77372 5.17507C5.21241 5.48487 5.72921 5.64732 6.25653 5.64115H8.91823V2.82595C8.92404 2.26743 8.77031 1.72008 8.4772 1.25563C8.1841 0.791185 7.76528 0.431303 7.27564 0.223149Z"
|
|
551
|
+
fill="#FFCB00" />
|
|
552
|
+
<path
|
|
553
|
+
d="M16.9736 3.72115C16.3509 3.06258 15.5579 2.61408 14.6946 2.43229C13.8313 2.25049 12.9365 2.34355 12.1231 2.69972C11.3097 3.05588 10.6143 3.65918 10.1246 4.43343C9.63489 5.20769 9.37289 6.11818 9.37167 7.04995V11.7611H13.8313C14.714 11.771 15.5791 11.4985 16.3131 10.9793C17.0471 10.46 17.616 9.7183 17.9451 8.85115C18.2892 7.9918 18.3806 7.04259 18.2072 6.12744C18.0339 5.21229 17.604 4.3737 16.9736 3.72115Z"
|
|
554
|
+
fill="#FF7162" />
|
|
555
|
+
<path
|
|
556
|
+
d="M14.4933 13.9835C14.2962 13.4652 13.956 13.0218 13.5172 12.7114C13.0783 12.401 12.5612 12.2379 12.0334 12.2435H9.37167V15.0611C9.36611 15.6198 9.52006 16.1671 9.81336 16.6316C10.1067 17.096 10.5256 17.4558 11.0154 17.6639C11.3431 17.8099 11.6949 17.8853 12.0504 17.8859C12.4867 17.8813 12.9153 17.7635 13.2987 17.5429C13.682 17.3223 14.0085 17.0057 14.2496 16.6206C14.4906 16.2356 14.6388 15.7939 14.6813 15.3342C14.7238 14.8745 14.6593 14.4107 14.4933 13.9835Z"
|
|
557
|
+
fill="#0DCF82" />
|
|
558
|
+
<path
|
|
559
|
+
d="M0.351589 9.03355C0.00514201 9.8932 -0.0880133 10.8436 0.0843205 11.7602C0.256654 12.6768 0.686445 13.517 1.31742 14.1708C1.72451 14.6098 2.20989 14.9589 2.74541 15.1979C3.28094 15.4368 3.85595 15.5608 4.4371 15.5628C5.03193 15.5613 5.62062 15.4353 6.16924 15.192C6.9885 14.8437 7.68929 14.2415 8.17981 13.4645C8.67033 12.6874 8.92771 11.7717 8.91823 10.8372V6.12115H4.46544C3.58239 6.11147 2.71718 6.38434 1.98312 6.90402C1.24906 7.4237 0.680388 8.16595 0.351589 9.03355Z"
|
|
560
|
+
fill="#A259FE" />
|
|
561
|
+
</svg>
|
|
562
|
+
</div>
|
|
563
|
+
<div class="toolbar-section">
|
|
564
|
+
<div class="toolbar-divider"></div>
|
|
565
|
+
</div>
|
|
566
|
+
<div class="toolbar-section" @click=${()=>this.loginWithGoogle()}>
|
|
567
|
+
<a class="toolbar-button " href="#">
|
|
568
|
+
Sign up
|
|
569
|
+
</a>
|
|
570
|
+
</div>
|
|
571
|
+
<div class="toolbar-section">
|
|
572
|
+
<div class="toolbar-divider"></div>
|
|
573
|
+
</div>
|
|
574
|
+
<div class="toolbar-section">
|
|
575
|
+
<svg class="toolbar-icon-context" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
576
|
+
<path
|
|
577
|
+
d="M14 23C14 24.1 14.9 25 16 25C17.1 25 18 24.1 18 23C18 21.9 17.1 21 16 21C14.9 21 14 21.9 14 23ZM14 9C14 10.1 14.9 11 16 11C17.1 11 18 10.1 18 9C18 7.9 17.1 7 16 7C14.9 7 14 7.9 14 9ZM14 16C14 17.1 14.9 18 16 18C17.1 18 18 17.1 18 16C18 14.9 17.1 14 16 14C14.9 14 14 14.9 14 16Z" />
|
|
578
|
+
</svg>
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
</div>
|
|
582
|
+
`:A``}};gt.styles=ut,yt([tt()],gt.prototype,"loadPlugin",null),yt([tt()],gt.prototype,"comments",void 0),yt([tt()],gt.prototype,"commentElement",void 0),yt([tt()],gt.prototype,"commentSubscription",void 0),yt([tt()],gt.prototype,"selectionElement",void 0),yt([tt()],gt.prototype,"addCommentMode",void 0),yt([tt()],gt.prototype,"_expanded",void 0),yt([tt()],gt.prototype,"snippylyUser",void 0),yt([Y()],gt.prototype,"apiKey",void 0),yt([tt()],gt.prototype,"staging",void 0),yt([Y()],gt.prototype,"projectVersionKey",null),yt([tt()],gt.prototype,"projectVersion",void 0),yt([tt()],gt.prototype,"_menuOpenedId",void 0),yt([tt()],gt.prototype,"copyLinkTooltip",void 0),yt([tt()],gt.prototype,"invalidApiKey",void 0),yt([tt()],gt.prototype,"documentId",void 0),yt([tt()],gt.prototype,"isUserGlobalContact",void 0),yt([tt()],gt.prototype,"location",void 0),yt([tt()],gt.prototype,"viewMode",void 0),gt=yt([(t=>i=>"function"==typeof i?((t,i)=>(window.customElements.define(t,i),i))(t,i):((t,i)=>{const{kind:o,elements:s}=i;return{kind:o,elements:s,finisher(i){window.customElements.define(t,i)}}})(t,i))("snippyly-plugin")],gt);export{gt as SnippylyPlugin};
|