@usesuperflow/toolbar-staging 1.0.216 → 1.0.217

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usesuperflow/toolbar-staging",
3
- "version": "1.0.216",
3
+ "version": "1.0.217",
4
4
  "description": "",
5
5
  "main": "superflow.js",
6
6
  "scripts": {
package/superflow.js CHANGED
@@ -2285,7 +2285,7 @@ class ps extends ro{}ps.Encryptor=class extends ps{processBlock(t,e){const i=t,o
2285
2285
  <path fill-rule="evenodd" clip-rule="evenodd" d="M3.52861 3.52858C3.78896 3.26823 4.21107 3.26823 4.47141 3.52858L8.00001 7.05717L11.5286 3.52858C11.789 3.26823 12.2111 3.26823 12.4714 3.52858C12.7318 3.78892 12.7318 4.21103 12.4714 4.47138L8.94282 7.99998L12.4714 11.5286C12.7318 11.7889 12.7318 12.211 12.4714 12.4714C12.2111 12.7317 11.789 12.7317 11.5286 12.4714L8.00001 8.94279L4.47141 12.4714C4.21107 12.7317 3.78896 12.7317 3.52861 12.4714C3.26826 12.211 3.26826 11.7889 3.52861 11.5286L7.0572 7.99998L3.52861 4.47138C3.26826 4.21103 3.26826 3.78892 3.52861 3.52858Z" fill="#FAFBFF"/>
2286
2286
  </svg>
2287
2287
  </div>
2288
- `:O``}catch(t){return console.warn("Error in disableAddCommentModeButton: ",t),js("Error in disableAddCommentModeButton: ",t),O``}},this.addStyles=()=>{var t,e;try{const i=document.createElement("style");i.textContent=Rs.cssText,null===(t=this.shadowRoot)||void 0===t||t.appendChild(i);const o=document.createElement("style");o.textContent=Ps.cssText,null===(e=this.shadowRoot)||void 0===e||e.appendChild(o)}catch(t){console.warn("Error in addStyles: ",t),js("Error in addStyles: ",t)}},this.guestUserNameUpdated=!!xs("sfGuestUserNameUpdated");const t=new URL(document.location);t.searchParams.has("st")&&t.searchParams.delete("st"),this.signInUrl=`${ht}/signin?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,this.signOutUrl=`${ht}/signout?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,window.Superflow={enableCustomLogin:async()=>{this.customLoginEnabledLocally=!0,Es("_sfut"),await this.checkCustomLoginEnabled()},identify:async t=>{this.providedUser=t,this.customLoginEnabled&&this.loginWithCustomUser()},signInUrl:this.signInUrl,signOutUrl:this.signOutUrl};try{this.detectVersion(),this.setWindowEventListner(),this.urlChangeListener(),this.checkUrl(),console.log("*** Staging Mode ON! ***")}catch(t){console.warn("Error in constructor: ",t),js("Error in constructor: ",t)}}get loadPlugin(){return this._loadPlugin}set loadPlugin(t){var e,i,o,n,s,r,a,l,c,d;this._loadPlugin=t,this.loadPlugin?(this.classList.add("visible"),null===(i=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.style)||void 0===i||i.setProperty("transform","none","important"),null===(s=null===(n=null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.parentElement)||void 0===n?void 0:n.style)||void 0===s||s.setProperty("transform","none","important"),null===(a=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.style)||void 0===a||a.setProperty("perspective","none","important"),null===(d=null===(c=null===(l=null===document||void 0===document?void 0:document.body)||void 0===l?void 0:l.parentElement)||void 0===c?void 0:c.style)||void 0===d||d.setProperty("perspective","none","important")):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 isPlanExpired(){return this._isPlanExpired}set isPlanExpired(t){this._isPlanExpired=t,this.checkToEnableUpgradeButton()}get apiKey(){return this._apiKey}set apiKey(t){this._apiKey=t,this.onApiKeyChange(),Fs({apiKey:this.apiKey}),this.checkUrl()}get projectVersionKey(){return this._projectVersionKey}set projectVersionKey(t){try{this._projectVersionKey=t,this.projectVersionKey&&Cs("projectVersionKey",this.projectVersionKey,!1,"sessionStorage"),this.exitReviewModeCalled||this.detectVersion()}catch(t){console.warn("Error in set projectVersionKey: ",t),js("Error in set projectVersionKey: ",t)}}get autoLocation(){return this._autoLocation}set autoLocation(t){this._autoLocation="true"===t||!0===t}get menuOpenedId(){return this._menuOpenedId}set menuOpenedId(t){this._menuOpenedId=t,this.menuOpenedId?this.addWindowClickEventListener():this.removeWindowClickEventListener()}get isUserGlobalContact(){return this._isUserGlobalContact}set isUserGlobalContact(t){this._isUserGlobalContact=t,this.checkToEnableUpgradeButton()}get privateCommentModeEnabled(){return this._privateCommentModeEnabled}set privateCommentModeEnabled(t){this._privateCommentModeEnabled=t,this.darkMode=!!this.privateCommentModeEnabled}get customerMetadata(){return this._customerMetadata}set customerMetadata(t){this._customerMetadata=t,this.setLogos()}get darkMode(){return this._darkMode}set darkMode(t){this._darkMode=t,this.setLogos()}connectedCallback(){super.connectedCallback(),this.expanded=!0,this.setAttribute("data-velt-comment-disabled","true"),this.style.zIndex="2147483647",setTimeout((()=>{if(!this.superflowToolbarMoved){this.superflowToolbarMoved=!0,document.body.appendChild(this);const t=document.querySelector(".cdk-overlay-container");t&&document.body.appendChild(t)}}),5e3);const t=document.createElement("style");t.innerHTML='body[data-velt-ongoing-recording="screen"] superflow-toolbar { display: none !important; }',document.head.appendChild(t),this.addStyles(),setTimeout((()=>{const t=document.querySelectorAll('script[src*="snippyly.min.js"]');(null==t?void 0:t.length)>1&&console.warn("Multiple superflow scripts installed.")}),1e3)}render(){var t,e,i,o,n,s,r,a,l,c,d,h,u,p,v,m;return this.loadPlugin?!this.snippylyUser||this.loading||null===this.isPlanExpired?O`
2288
+ `:O``}catch(t){return console.warn("Error in disableAddCommentModeButton: ",t),js("Error in disableAddCommentModeButton: ",t),O``}},this.addStyles=()=>{var t,e;try{const i=document.createElement("style");i.textContent=Rs.cssText,null===(t=this.shadowRoot)||void 0===t||t.appendChild(i);const o=document.createElement("style");o.textContent=Ps.cssText,null===(e=this.shadowRoot)||void 0===e||e.appendChild(o)}catch(t){console.warn("Error in addStyles: ",t),js("Error in addStyles: ",t)}},this.guestUserNameUpdated=!!xs("sfGuestUserNameUpdated");const t=new URL(document.location);t.searchParams.has("st")&&t.searchParams.delete("st"),this.signInUrl=`${ht}/signin?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,this.signOutUrl=`${ht}/signout?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,window.Superflow={enableCustomLogin:async()=>{this.customLoginEnabledLocally=!0,Es("_sfut"),await this.checkCustomLoginEnabled()},identify:async t=>{this.providedUser=t,this.customLoginEnabled&&this.loginWithCustomUser()},signInUrl:this.signInUrl,signOutUrl:this.signOutUrl};try{this.detectVersion(),this.setWindowEventListner(),this.urlChangeListener(),this.checkUrl(),console.log("*** Staging Mode ON! ***")}catch(t){console.warn("Error in constructor: ",t),js("Error in constructor: ",t)}}get loadPlugin(){return this._loadPlugin}set loadPlugin(t){var e,i,o,n,s,r,a,l,c,d;this._loadPlugin=t,this.loadPlugin?(this.classList.add("visible"),null===(i=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.style)||void 0===i||i.setProperty("transform","none","important"),null===(s=null===(n=null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.parentElement)||void 0===n?void 0:n.style)||void 0===s||s.setProperty("transform","none","important"),null===(a=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.style)||void 0===a||a.setProperty("perspective","none","important"),null===(d=null===(c=null===(l=null===document||void 0===document?void 0:document.body)||void 0===l?void 0:l.parentElement)||void 0===c?void 0:c.style)||void 0===d||d.setProperty("perspective","none","important")):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 isPlanExpired(){return this._isPlanExpired}set isPlanExpired(t){this._isPlanExpired=t,this.checkToEnableUpgradeButton()}get apiKey(){return this._apiKey}set apiKey(t){this._apiKey=t,this.onApiKeyChange(),Fs({apiKey:this.apiKey}),this.checkUrl()}get projectVersionKey(){return this._projectVersionKey}set projectVersionKey(t){try{this._projectVersionKey=t,this.projectVersionKey&&Cs("projectVersionKey",this.projectVersionKey,!1,"sessionStorage"),this.exitReviewModeCalled||this.detectVersion()}catch(t){console.warn("Error in set projectVersionKey: ",t),js("Error in set projectVersionKey: ",t)}}get autoLocation(){return this._autoLocation}set autoLocation(t){this._autoLocation="true"===t||!0===t}get menuOpenedId(){return this._menuOpenedId}set menuOpenedId(t){this._menuOpenedId=t,this.menuOpenedId?this.addWindowClickEventListener():this.removeWindowClickEventListener()}get isUserGlobalContact(){return this._isUserGlobalContact}set isUserGlobalContact(t){this._isUserGlobalContact=t,this.checkToEnableUpgradeButton()}get privateCommentModeEnabled(){return this._privateCommentModeEnabled}set privateCommentModeEnabled(t){this._privateCommentModeEnabled=t,this.darkMode=!!this.privateCommentModeEnabled}get customerMetadata(){return this._customerMetadata}set customerMetadata(t){this._customerMetadata=t,this.setLogos()}get darkMode(){return this._darkMode}set darkMode(t){this._darkMode=t,this.setLogos()}connectedCallback(){super.connectedCallback(),this.expanded=!0,this.setAttribute("data-velt-comment-disabled","true"),this.style.zIndex="2147483647",setTimeout((()=>{if(!this.superflowToolbarMoved){this.superflowToolbarMoved=!0,document.body.appendChild(this);const t=document.querySelector(".cdk-overlay-container");t&&document.body.appendChild(t)}}),5e3);const t=document.createElement("style");t.innerHTML='body[data-velt-ongoing-recording="screen"] superflow-toolbar { display: none !important; }',document.head.appendChild(t),this.addStyles(),setTimeout((()=>{const t=document.querySelectorAll('script[src*="snippyly.min.js"]');(null==t?void 0:t.length)>1&&console.warn("Multiple superflow scripts installed.")}),1e3)}render(){var t,e,i,o,n,s,r,a,l,c,d,h,u,p,v,m,f;return this.loadPlugin?!this.snippylyUser||this.loading||null===this.isPlanExpired?O`
2289
2289
  <div class="snippyly-plugin-container" part="superflow-toolbar-container">
2290
2290
  <div class="toolbar" id="smallToolbar">
2291
2291
  <!-- <div class="toolbar-section">
@@ -2768,7 +2768,7 @@ class ps extends ro{}ps.Encryptor=class extends ps{processBlock(t,e){const i=t,o
2768
2768
 
2769
2769
  <p>${Bs("Exit Review Mode")}</p>
2770
2770
  </div>
2771
- ${this.customLoginEnabledLocally?null:O`
2771
+ ${this.customLoginEnabledLocally||(null===(u=this.snippylyUser)||void 0===u?void 0:u.isGuest)?null:O`
2772
2772
  <div class="menu-point" @click=${()=>this.signOutUser()}>
2773
2773
  <svg
2774
2774
  width="20"
@@ -2871,7 +2871,7 @@ class ps extends ro{}ps.Encryptor=class extends ps{processBlock(t,e){const i=t,o
2871
2871
  </div>
2872
2872
  <div class="s-modal-subtitle">Tag your comments with your name!</div>
2873
2873
  <input id="guestUserName" class="s-guest-user-name" placeholder="Your name" @input=${t=>{var e;return this.guestUserNameInput=null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.value}} />
2874
- <div class="s-button s-primary s-signin-button ${(null===(u=this.guestUserNameInput)||void 0===u?void 0:u.trim())?"":"s-disabled"}" @click=${()=>{var t;(null===(t=this.snippylyUser)||void 0===t?void 0:t.isGuest)?this.updateGuestUserName():this.updateUserName()}}>
2874
+ <div class="s-button s-primary s-signin-button ${(null===(p=this.guestUserNameInput)||void 0===p?void 0:p.trim())?"":"s-disabled"}" @click=${()=>{var t;(null===(t=this.snippylyUser)||void 0===t?void 0:t.isGuest)?this.updateGuestUserName():this.updateUserName()}}>
2875
2875
  ${this.guestUserNameUpdateLoading?O`
2876
2876
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
2877
2877
  <g transform="rotate(0 50 50)">
@@ -2931,7 +2931,7 @@ class ps extends ro{}ps.Encryptor=class extends ps{processBlock(t,e){const i=t,o
2931
2931
  </div>
2932
2932
  </div>
2933
2933
  `:O``}
2934
- ${(null===(p=this.snippylyUser)||void 0===p?void 0:p.isGuest)?O`
2934
+ ${(null===(v=this.snippylyUser)||void 0===v?void 0:v.isGuest)?O`
2935
2935
  ${this.addCommentMode?O``:O`
2936
2936
  <div class="s-guest-mode-chip">
2937
2937
  <div class="s-guest-mode-chip-title">Guest Mode</div>
@@ -2944,8 +2944,8 @@ class ps extends ro{}ps.Encryptor=class extends ps{processBlock(t,e){const i=t,o
2944
2944
  <div class="s-modal-superflow-logo">
2945
2945
  <img src=${this.wordMark} />
2946
2946
  </div>
2947
- <div class="s-modal-title">${null===(v=this.guestModeSignInModalConfig)||void 0===v?void 0:v.title}</div>
2948
- <div class="s-modal-subtitle">${null===(m=this.guestModeSignInModalConfig)||void 0===m?void 0:m.description}</div>
2947
+ <div class="s-modal-title">${null===(m=this.guestModeSignInModalConfig)||void 0===m?void 0:m.title}</div>
2948
+ <div class="s-modal-subtitle">${null===(f=this.guestModeSignInModalConfig)||void 0===f?void 0:f.description}</div>
2949
2949
  <div class="s-button s-primary s-signin-button" @click=${()=>this.onGuestModeSignInModalSignInButtonClick()}>${Bs("Sign in")}</div>
2950
2950
  ${this.guestModeSignInModalConfig.showLeaveCommentButton?O`
2951
2951
  <div class="s-modal-link-text" @click=${t=>{this.closeGuestModeSignInModal(),this.openGuestModeNameModel(t)}}>Leave Comment Anonymously</div>
package/superflow.min.js CHANGED
@@ -2284,7 +2284,7 @@ class Bs extends jo{}Bs.Encryptor=class extends Bs{processBlock(t,e){const i=t,o
2284
2284
  <path fill-rule="evenodd" clip-rule="evenodd" d="M3.52861 3.52858C3.78896 3.26823 4.21107 3.26823 4.47141 3.52858L8.00001 7.05717L11.5286 3.52858C11.789 3.26823 12.2111 3.26823 12.4714 3.52858C12.7318 3.78892 12.7318 4.21103 12.4714 4.47138L8.94282 7.99998L12.4714 11.5286C12.7318 11.7889 12.7318 12.211 12.4714 12.4714C12.2111 12.7317 11.789 12.7317 11.5286 12.4714L8.00001 8.94279L4.47141 12.4714C4.21107 12.7317 3.78896 12.7317 3.52861 12.4714C3.26826 12.211 3.26826 11.7889 3.52861 11.5286L7.0572 7.99998L3.52861 4.47138C3.26826 4.21103 3.26826 3.78892 3.52861 3.52858Z" fill="#FAFBFF"/>
2285
2285
  </svg>
2286
2286
  </div>
2287
- `:F``}catch(t){return console.warn("Error in disableAddCommentModeButton: ",t),ur("Error in disableAddCommentModeButton: ",t),F``}},this.addStyles=()=>{var t,e;try{const i=document.createElement("style");i.textContent=gr.cssText,null===(t=this.shadowRoot)||void 0===t||t.appendChild(i);const o=document.createElement("style");o.textContent=fr.cssText,null===(e=this.shadowRoot)||void 0===e||e.appendChild(o)}catch(t){console.warn("Error in addStyles: ",t),ur("Error in addStyles: ",t)}},this.guestUserNameUpdated=!!Qs(Mt);const t=new URL(document.location);t.searchParams.has(pt)&&t.searchParams.delete(pt),this.signInUrl=`${Ft}/signin?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,this.signOutUrl=`${Ft}/signout?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,window.Superflow={enableCustomLogin:async()=>{this.customLoginEnabledLocally=!0,Xs(vt),await this.checkCustomLoginEnabled()},identify:async t=>{this.providedUser=t,this.customLoginEnabled&&this.loginWithCustomUser()},signInUrl:this.signInUrl,signOutUrl:this.signOutUrl};try{this.detectVersion(),this.setWindowEventListner(),this.urlChangeListener(),this.checkUrl(),console.log("*** Staging Mode ON! ***")}catch(t){console.warn("Error in constructor: ",t),ur("Error in constructor: ",t)}}get loadPlugin(){return this._loadPlugin}set loadPlugin(t){var e,i,o,n,s,r,a,l,c,d;this._loadPlugin=t,this.loadPlugin?(this.classList.add("visible"),null===(i=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.style)||void 0===i||i.setProperty("transform","none","important"),null===(s=null===(n=null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.parentElement)||void 0===n?void 0:n.style)||void 0===s||s.setProperty("transform","none","important"),null===(a=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.style)||void 0===a||a.setProperty("perspective","none","important"),null===(d=null===(c=null===(l=null===document||void 0===document?void 0:document.body)||void 0===l?void 0:l.parentElement)||void 0===c?void 0:c.style)||void 0===d||d.setProperty("perspective","none","important")):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 isPlanExpired(){return this._isPlanExpired}set isPlanExpired(t){this._isPlanExpired=t,this.checkToEnableUpgradeButton()}get apiKey(){return this._apiKey}set apiKey(t){this._apiKey=t,this.onApiKeyChange(),dr({apiKey:this.apiKey}),this.checkUrl()}get projectVersionKey(){return this._projectVersionKey}set projectVersionKey(t){try{this._projectVersionKey=t,this.projectVersionKey&&qs(gt,this.projectVersionKey,!1,"sessionStorage"),this.exitReviewModeCalled||this.detectVersion()}catch(t){console.warn("Error in set projectVersionKey: ",t),ur("Error in set projectVersionKey: ",t)}}get autoLocation(){return this._autoLocation}set autoLocation(t){this._autoLocation="true"===t||!0===t}get menuOpenedId(){return this._menuOpenedId}set menuOpenedId(t){this._menuOpenedId=t,this.menuOpenedId?this.addWindowClickEventListener():this.removeWindowClickEventListener()}get isUserGlobalContact(){return this._isUserGlobalContact}set isUserGlobalContact(t){this._isUserGlobalContact=t,this.checkToEnableUpgradeButton()}get privateCommentModeEnabled(){return this._privateCommentModeEnabled}set privateCommentModeEnabled(t){this._privateCommentModeEnabled=t,this.darkMode=!!this.privateCommentModeEnabled}get customerMetadata(){return this._customerMetadata}set customerMetadata(t){this._customerMetadata=t,this.setLogos()}get darkMode(){return this._darkMode}set darkMode(t){this._darkMode=t,this.setLogos()}connectedCallback(){super.connectedCallback(),this.expanded=!0,this.setAttribute("data-velt-comment-disabled","true"),this.style.zIndex="2147483647",setTimeout((()=>{if(!this.superflowToolbarMoved){this.superflowToolbarMoved=!0,document.body.appendChild(this);const t=document.querySelector(".cdk-overlay-container");t&&document.body.appendChild(t)}}),5e3);const t=document.createElement("style");t.innerHTML='body[data-velt-ongoing-recording="screen"] superflow-toolbar { display: none !important; }',document.head.appendChild(t),this.addStyles(),setTimeout((()=>{const t=document.querySelectorAll('script[src*="snippyly.min.js"]');(null==t?void 0:t.length)>1&&console.warn("Multiple superflow scripts installed.")}),1e3)}render(){var t,e,i,o,n,s,r,a,l,c,d,h,u,p,v,m;return this.loadPlugin?!this.snippylyUser||this.loading||null===this.isPlanExpired?F`
2287
+ `:F``}catch(t){return console.warn("Error in disableAddCommentModeButton: ",t),ur("Error in disableAddCommentModeButton: ",t),F``}},this.addStyles=()=>{var t,e;try{const i=document.createElement("style");i.textContent=gr.cssText,null===(t=this.shadowRoot)||void 0===t||t.appendChild(i);const o=document.createElement("style");o.textContent=fr.cssText,null===(e=this.shadowRoot)||void 0===e||e.appendChild(o)}catch(t){console.warn("Error in addStyles: ",t),ur("Error in addStyles: ",t)}},this.guestUserNameUpdated=!!Qs(Mt);const t=new URL(document.location);t.searchParams.has(pt)&&t.searchParams.delete(pt),this.signInUrl=`${Ft}/signin?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,this.signOutUrl=`${Ft}/signout?redirect_url=${encodeURIComponent(null==t?void 0:t.toString())}&source=sf`,window.Superflow={enableCustomLogin:async()=>{this.customLoginEnabledLocally=!0,Xs(vt),await this.checkCustomLoginEnabled()},identify:async t=>{this.providedUser=t,this.customLoginEnabled&&this.loginWithCustomUser()},signInUrl:this.signInUrl,signOutUrl:this.signOutUrl};try{this.detectVersion(),this.setWindowEventListner(),this.urlChangeListener(),this.checkUrl(),console.log("*** Staging Mode ON! ***")}catch(t){console.warn("Error in constructor: ",t),ur("Error in constructor: ",t)}}get loadPlugin(){return this._loadPlugin}set loadPlugin(t){var e,i,o,n,s,r,a,l,c,d;this._loadPlugin=t,this.loadPlugin?(this.classList.add("visible"),null===(i=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.style)||void 0===i||i.setProperty("transform","none","important"),null===(s=null===(n=null===(o=null===document||void 0===document?void 0:document.body)||void 0===o?void 0:o.parentElement)||void 0===n?void 0:n.style)||void 0===s||s.setProperty("transform","none","important"),null===(a=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.style)||void 0===a||a.setProperty("perspective","none","important"),null===(d=null===(c=null===(l=null===document||void 0===document?void 0:document.body)||void 0===l?void 0:l.parentElement)||void 0===c?void 0:c.style)||void 0===d||d.setProperty("perspective","none","important")):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 isPlanExpired(){return this._isPlanExpired}set isPlanExpired(t){this._isPlanExpired=t,this.checkToEnableUpgradeButton()}get apiKey(){return this._apiKey}set apiKey(t){this._apiKey=t,this.onApiKeyChange(),dr({apiKey:this.apiKey}),this.checkUrl()}get projectVersionKey(){return this._projectVersionKey}set projectVersionKey(t){try{this._projectVersionKey=t,this.projectVersionKey&&qs(gt,this.projectVersionKey,!1,"sessionStorage"),this.exitReviewModeCalled||this.detectVersion()}catch(t){console.warn("Error in set projectVersionKey: ",t),ur("Error in set projectVersionKey: ",t)}}get autoLocation(){return this._autoLocation}set autoLocation(t){this._autoLocation="true"===t||!0===t}get menuOpenedId(){return this._menuOpenedId}set menuOpenedId(t){this._menuOpenedId=t,this.menuOpenedId?this.addWindowClickEventListener():this.removeWindowClickEventListener()}get isUserGlobalContact(){return this._isUserGlobalContact}set isUserGlobalContact(t){this._isUserGlobalContact=t,this.checkToEnableUpgradeButton()}get privateCommentModeEnabled(){return this._privateCommentModeEnabled}set privateCommentModeEnabled(t){this._privateCommentModeEnabled=t,this.darkMode=!!this.privateCommentModeEnabled}get customerMetadata(){return this._customerMetadata}set customerMetadata(t){this._customerMetadata=t,this.setLogos()}get darkMode(){return this._darkMode}set darkMode(t){this._darkMode=t,this.setLogos()}connectedCallback(){super.connectedCallback(),this.expanded=!0,this.setAttribute("data-velt-comment-disabled","true"),this.style.zIndex="2147483647",setTimeout((()=>{if(!this.superflowToolbarMoved){this.superflowToolbarMoved=!0,document.body.appendChild(this);const t=document.querySelector(".cdk-overlay-container");t&&document.body.appendChild(t)}}),5e3);const t=document.createElement("style");t.innerHTML='body[data-velt-ongoing-recording="screen"] superflow-toolbar { display: none !important; }',document.head.appendChild(t),this.addStyles(),setTimeout((()=>{const t=document.querySelectorAll('script[src*="snippyly.min.js"]');(null==t?void 0:t.length)>1&&console.warn("Multiple superflow scripts installed.")}),1e3)}render(){var t,e,i,o,n,s,r,a,l,c,d,h,u,p,v,m,g;return this.loadPlugin?!this.snippylyUser||this.loading||null===this.isPlanExpired?F`
2288
2288
  <div class="snippyly-plugin-container" part="superflow-toolbar-container">
2289
2289
  <div class="toolbar" id="smallToolbar">
2290
2290
  <!-- <div class="toolbar-section">
@@ -2767,7 +2767,7 @@ class Bs extends jo{}Bs.Encryptor=class extends Bs{processBlock(t,e){const i=t,o
2767
2767
 
2768
2768
  <p>${yr("Exit Review Mode")}</p>
2769
2769
  </div>
2770
- ${this.customLoginEnabledLocally?null:F`
2770
+ ${this.customLoginEnabledLocally||(null===(u=this.snippylyUser)||void 0===u?void 0:u.isGuest)?null:F`
2771
2771
  <div class="menu-point" @click=${()=>this.signOutUser()}>
2772
2772
  <svg
2773
2773
  width="20"
@@ -2870,7 +2870,7 @@ class Bs extends jo{}Bs.Encryptor=class extends Bs{processBlock(t,e){const i=t,o
2870
2870
  </div>
2871
2871
  <div class="s-modal-subtitle">Tag your comments with your name!</div>
2872
2872
  <input id="guestUserName" class="s-guest-user-name" placeholder="Your name" @input=${t=>{var e;return this.guestUserNameInput=null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.value}} />
2873
- <div class="s-button s-primary s-signin-button ${(null===(u=this.guestUserNameInput)||void 0===u?void 0:u.trim())?"":"s-disabled"}" @click=${()=>{var t;(null===(t=this.snippylyUser)||void 0===t?void 0:t.isGuest)?this.updateGuestUserName():this.updateUserName()}}>
2873
+ <div class="s-button s-primary s-signin-button ${(null===(p=this.guestUserNameInput)||void 0===p?void 0:p.trim())?"":"s-disabled"}" @click=${()=>{var t;(null===(t=this.snippylyUser)||void 0===t?void 0:t.isGuest)?this.updateGuestUserName():this.updateUserName()}}>
2874
2874
  ${this.guestUserNameUpdateLoading?F`
2875
2875
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16px" height="16px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid">
2876
2876
  <g transform="rotate(0 50 50)">
@@ -2930,7 +2930,7 @@ class Bs extends jo{}Bs.Encryptor=class extends Bs{processBlock(t,e){const i=t,o
2930
2930
  </div>
2931
2931
  </div>
2932
2932
  `:F``}
2933
- ${(null===(p=this.snippylyUser)||void 0===p?void 0:p.isGuest)?F`
2933
+ ${(null===(v=this.snippylyUser)||void 0===v?void 0:v.isGuest)?F`
2934
2934
  ${this.addCommentMode?F``:F`
2935
2935
  <div class="s-guest-mode-chip">
2936
2936
  <div class="s-guest-mode-chip-title">Guest Mode</div>
@@ -2943,8 +2943,8 @@ class Bs extends jo{}Bs.Encryptor=class extends Bs{processBlock(t,e){const i=t,o
2943
2943
  <div class="s-modal-superflow-logo">
2944
2944
  <img src=${this.wordMark} />
2945
2945
  </div>
2946
- <div class="s-modal-title">${null===(v=this.guestModeSignInModalConfig)||void 0===v?void 0:v.title}</div>
2947
- <div class="s-modal-subtitle">${null===(m=this.guestModeSignInModalConfig)||void 0===m?void 0:m.description}</div>
2946
+ <div class="s-modal-title">${null===(m=this.guestModeSignInModalConfig)||void 0===m?void 0:m.title}</div>
2947
+ <div class="s-modal-subtitle">${null===(g=this.guestModeSignInModalConfig)||void 0===g?void 0:g.description}</div>
2948
2948
  <div class="s-button s-primary s-signin-button" @click=${()=>this.onGuestModeSignInModalSignInButtonClick()}>${yr("Sign in")}</div>
2949
2949
  ${this.guestModeSignInModalConfig.showLeaveCommentButton?F`
2950
2950
  <div class="s-modal-link-text" @click=${t=>{this.closeGuestModeSignInModal(),this.openGuestModeNameModel(t)}}>Leave Comment Anonymously</div>