From f4459cc6a00c023bfad1befbe674e7ddf8677184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=81=BC=E3=81=84=E3=82=93?= <50550561+Robot-Inventor@users.noreply.github.com> Date: Sun, 10 Dec 2023 16:47:55 +0900 Subject: [PATCH] v3.0.0 #269 (#422) * docs: update release note URL * 3.0.0 --- package-lock.json | 4 ++-- package.json | 2 +- src/ts/common/constants.ts | 4 ++-- userScript/en.user.js | 4 ++-- userScript/ja.user.js | 4 ++-- userScript/ko.user.js | 4 ++-- userScript/zh_TW.user.js | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index d7c2a7da..b21a8880 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "shadowban-scanner", - "version": "2.2.0", + "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "shadowban-scanner", - "version": "2.2.0", + "version": "3.0.0", "license": "MIT", "dependencies": { "@material/web": "^1.0.0", diff --git a/package.json b/package.json index e934fbf0..c2fc7188 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shadowban-scanner", - "version": "2.2.0", + "version": "3.0.0", "description": "A browser extension that detects shadowbans on Twitter.", "main": "index.js", "scripts": { diff --git a/src/ts/common/constants.ts b/src/ts/common/constants.ts index a9997d7f..5d8bb084 100644 --- a/src/ts/common/constants.ts +++ b/src/ts/common/constants.ts @@ -8,8 +8,8 @@ const ALLOWED_TWEMOJI = ["✅", "🚫", "⚠️"]; const ONBOARDING_PATH = "dist/html/initialSetup.html"; const RELEASE_NOTE_URL = { - en: "https://roboin.io/article/2023/11/10/shadowban-scanner-v2-2-release/en/", - ja: "https://roboin.io/article/2023/11/10/shadowban-scanner-v2-2-release/" + en: "https://roboin.io/article/2023/12/10/shadowban-scanner-v3-release/en/", + ja: "https://roboin.io/article/2023/12/10/shadowban-scanner-v3-release/" } as const; const INSTRUCTION_URL = { en: "https://roboin.io/article/2023/09/30/detect-twitter-shadowban/en/#usage", diff --git a/userScript/en.user.js b/userScript/en.user.js index cfb4e0ac..15e5507f 100644 --- a/userScript/en.user.js +++ b/userScript/en.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Shadowban Scanner (English) // @namespace https://github.com/Robot-Inventor/shadowban-scanner/ -// @version 2.2.0 +// @version 3.0.0 // @description A browser extension that detects shadowbans on Twitter. // @author Robot-Inventor (ろぼいん / @keita_roboin) // @match https://twitter.com/* @@ -14,7 +14,7 @@ // ==/UserScript== /*! For license information please see en.user.js.LICENSE.txt */ -(()=>{"use strict";var e={4016:function(e,t){var s=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))((function(n,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncQuerySelectorAll=t.asyncQuerySelector=void 0;const r=(e,t)=>new Promise((s=>{const r=e();if(r instanceof Element&&r||r instanceof NodeList&&r.length)return void s(r);let n=null;const o=new MutationObserver((()=>{const t=e();t&&(o.disconnect(),n&&clearTimeout(n),s(t))}));n=setTimeout((()=>{o.disconnect(),s(null)}),t),o.observe(document.body,{attributes:!0,childList:!0,subtree:!0})}));t.asyncQuerySelector=(e,t=document,n=500)=>s(void 0,void 0,void 0,(function*(){return yield r((()=>t.querySelector(e)),n)})),t.asyncQuerySelectorAll=(e,t=document,n=500)=>s(void 0,void 0,void 0,(function*(){var s;return null!==(s=yield r((()=>t.querySelectorAll(e)),n))&&void 0!==s?s:document.createDocumentFragment().childNodes}))},1402:(e,t,s)=>{s.d(t,{Z:()=>a});var r=s(8081),n=s.n(r),o=s(3645),i=s.n(o)()(n());i.push([e.id,".shadowban-scanner-message {\n --message-background-color: rgb(255, 0, 0, 0.2);\n\n padding: 1em;\n border-radius: 0.5em;\n background: var(--message-background-color);\n margin: 1em 0 0 0;\n font-family: sans-serif;\n}\n\n.shadowban-scanner-message.focal-mode {\n margin: 0 0 1em 0;\n}\n\n.shadowban-scanner-message .twemoji {\n height: 1em;\n width: 1em;\n margin-right: 0.25em;\n vertical-align: middle;\n}\n\n.shadowban-scanner-message-no-problem {\n --message-background-color: rgb(0, 255, 0, 0.2);\n}\n\n.shadowban-scanner-message button {\n cursor: pointer;\n color: inherit;\n border: none;\n background: none;\n}\n\n.shadowban-scanner-message .shadowban-scanner-collapsed-content {\n display: none;\n}\n\n.shadowban-scanner-message ul {\n font-family: inherit;\n line-height: inherit;\n margin: 0.75rem 0 0 0;\n padding: 0;\n}\n\n.shadowban-scanner-message ul li {\n list-style: none;\n}\n\n.shadowban-scanner-message-note {\n opacity: 0.8;\n font-size: 0.8em;\n margin-top: 0.75em;\n}\n\n.shadowban-scanner-message-note + .shadowban-scanner-message-note {\n margin-top: 0.5em;\n}\n\n.shadowban-scanner-message-note a {\n color: inherit;\n}\n\n.shadowban-scanner-message md-filled-button {\n margin-top: 0.5em;\n width: 100%;\n --md-filled-button-container-color: var(--message-background-color);\n --md-ripple-hover-color: white;\n --md-ripple-pressed-color: white;\n --_container-shadow-color: rgba(0, 0, 0, 0.3);\n}\n\n[data-sb-translation] {\n display: inline-block;\n min-width: 15em;\n min-height: 1em;\n border-radius: 0.25em;\n background-image: linear-gradient(90deg, transparent 40%, rgba(175, 175, 175, 0.7) 80%, transparent 100%);\n background-size: 200% 100%;\n animation: loading-animation 1.5s linear infinite;\n}\n\n@keyframes loading-animation {\n 0% {\n background-position: 200% 0%;\n opacity: 1;\n }\n 100% {\n background-position: 0% 0%;\n opacity: 1;\n }\n}\n",""]);const a=i},3645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var s="",r=void 0!==t[5];return t[4]&&(s+="@supports (".concat(t[4],") {")),t[2]&&(s+="@media ".concat(t[2]," {")),r&&(s+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),s+=e(t),r&&(s+="}"),t[2]&&(s+="}"),t[4]&&(s+="}"),s})).join("")},t.i=function(e,s,r,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),s&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=s):d[2]=s),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),t.push(d))}},t}},8081:e=>{e.exports=function(e){return e[1]}},6962:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var r=s(3379),n=s.n(r),o=s(7795),i=s.n(o),a=s(569),l=s.n(a),c=s(3565),d=s.n(c),h=s(9216),p=s.n(h),u=s(4589),m=s.n(u),f=s(1402),b={};b.styleTagTransform=m(),b.setAttributes=d(),b.insert=l().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=p(),n()(f.Z,b);const g=f.Z&&f.Z.locals?f.Z.locals:void 0},3379:e=>{var t=[];function s(e){for(var s=-1,r=0;r{var t={};e.exports=function(e,s){var r=function(e){if(void 0===t[e]){var s=document.querySelector(e);if(window.HTMLIFrameElement&&s instanceof window.HTMLIFrameElement)try{s=s.contentDocument.head}catch(e){s=null}t[e]=s}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(s)}},9216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,s)=>{e.exports=function(e){var t=s.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(s){!function(e,t,s){var r="";s.supports&&(r+="@supports (".concat(s.supports,") {")),s.media&&(r+="@media ".concat(s.media," {"));var n=void 0!==s.layer;n&&(r+="@layer".concat(s.layer.length>0?" ".concat(s.layer):""," {")),r+=s.css,n&&(r+="}"),s.media&&(r+="}"),s.supports&&(r+="}");var o=s.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,s)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1434:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isTranslationSubstitutions=void 0,t.isTranslationSubstitutions=function(e){const t=e;return void 0===t||"string"==typeof t||Array.isArray(t)&&t.every((e=>"string"==typeof e))}},8725:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isProfileReactPropsData=t.isFocalTweetOuterReactPropsData=t.isTweetOuterReactPropsData=t.isMenuBarReactPropsData=void 0,t.isMenuBarReactPropsData=function(e){const t=e;return(null!==t&&"object"==typeof t||"function"==typeof t)&&Array.isArray(t.children)&&(null!==t.children[1]&&"object"==typeof t.children[1]||"function"==typeof t.children[1])&&(null!==t.children[1].props&&"object"==typeof t.children[1].props||"function"==typeof t.children[1].props)&&(null!==t.children[1].props.retweetWithCommentLink&&"object"==typeof t.children[1].props.retweetWithCommentLink||"function"==typeof t.children[1].props.retweetWithCommentLink)&&(null!==t.children[1].props.retweetWithCommentLink.state&&"object"==typeof t.children[1].props.retweetWithCommentLink.state||"function"==typeof t.children[1].props.retweetWithCommentLink.state)&&(null!==t.children[1].props.retweetWithCommentLink.state.quotedStatus&&"object"==typeof t.children[1].props.retweetWithCommentLink.state.quotedStatus||"function"==typeof t.children[1].props.retweetWithCommentLink.state.quotedStatus)&&(void 0===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive||null===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive||!1===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive||!0===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive)&&(void 0===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive_editable||null===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive_editable||!1===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive_editable||!0===t.children[1].props.retweetWithCommentLink.state.quotedStatus.possibly_sensitive_editable)&&"string"==typeof t.children[1].props.retweetWithCommentLink.state.quotedStatus.permalink&&(null!==t.children[1].props.retweetWithCommentLink.state.quotedStatus.user&&"object"==typeof t.children[1].props.retweetWithCommentLink.state.quotedStatus.user||"function"==typeof t.children[1].props.retweetWithCommentLink.state.quotedStatus.user)&&(void 0===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.possibly_sensitive||null===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.possibly_sensitive||!1===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.possibly_sensitive||!0===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.possibly_sensitive)&&"string"==typeof t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.screen_name&&(""===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.profile_interstitial_type||"sensitive_media"===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.profile_interstitial_type||"fake_account"===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.profile_interstitial_type||"offensive_profile_content"===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.profile_interstitial_type||"timeout"===t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.profile_interstitial_type)&&Array.isArray(t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.withheld_in_countries)&&t.children[1].props.retweetWithCommentLink.state.quotedStatus.user.withheld_in_countries.every((e=>"string"==typeof e))},t.isTweetOuterReactPropsData=function(e){const t=e;return(null!==t&&"object"==typeof t||"function"==typeof t)&&Array.isArray(t.children)&&Array.isArray(t.children[0])&&(null!==t.children[0][1]&&"object"==typeof t.children[0][1]||"function"==typeof t.children[0][1])&&(null!==t.children[0][1].props&&"object"==typeof t.children[0][1].props||"function"==typeof t.children[0][1].props)&&Array.isArray(t.children[0][1].props.children)&&(null!==t.children[0][1].props.children[0]&&"object"==typeof t.children[0][1].props.children[0]||"function"==typeof t.children[0][1].props.children[0])&&(null!==t.children[0][1].props.children[0].props&&"object"==typeof t.children[0][1].props.children[0].props||"function"==typeof t.children[0][1].props.children[0].props)&&Array.isArray(t.children[0][1].props.children[0].props.children)&&(null!==t.children[0][1].props.children[0].props.children[1]&&"object"==typeof t.children[0][1].props.children[0].props.children[1]||"function"==typeof t.children[0][1].props.children[0].props.children[1])&&(null!==t.children[0][1].props.children[0].props.children[1].props&&"object"==typeof t.children[0][1].props.children[0].props.children[1].props||"function"==typeof t.children[0][1].props.children[0].props.children[1].props)&&Array.isArray(t.children[0][1].props.children[0].props.children[1].props.children)&&Array.isArray(t.children[0][1].props.children[0].props.children[1].props.children[1])&&(null!==t.children[0][1].props.children[0].props.children[1].props.children[1][2]&&"object"==typeof t.children[0][1].props.children[0].props.children[1].props.children[1][2]||"function"==typeof t.children[0][1].props.children[0].props.children[1].props.children[1][2])&&(null!==t.children[0][1].props.children[0].props.children[1].props.children[1][2].props&&"object"==typeof t.children[0][1].props.children[0].props.children[1].props.children[1][2].props||"function"==typeof t.children[0][1].props.children[0].props.children[1].props.children[1][2].props)&&(null!==t.children[0][1].props.children[0].props.children[1].props.children[1][2].props.loggedInUser&&"object"==typeof t.children[0][1].props.children[0].props.children[1].props.children[1][2].props.loggedInUser||"function"==typeof t.children[0][1].props.children[0].props.children[1].props.children[1][2].props.loggedInUser)&&"string"==typeof t.children[0][1].props.children[0].props.children[1].props.children[1][2].props.loggedInUser.screen_name},t.isFocalTweetOuterReactPropsData=function(e){const t=e;return(null!==t&&"object"==typeof t||"function"==typeof t)&&Array.isArray(t.children)&&Array.isArray(t.children[0])&&(null!==t.children[0][1]&&"object"==typeof t.children[0][1]||"function"==typeof t.children[0][1])&&(null!==t.children[0][1].props&&"object"==typeof t.children[0][1].props||"function"==typeof t.children[0][1].props)&&Array.isArray(t.children[0][1].props.children)&&(null!==t.children[0][1].props.children[0]&&"object"==typeof t.children[0][1].props.children[0]||"function"==typeof t.children[0][1].props.children[0])&&(null!==t.children[0][1].props.children[0].props&&"object"==typeof t.children[0][1].props.children[0].props||"function"==typeof t.children[0][1].props.children[0].props)&&Array.isArray(t.children[0][1].props.children[0].props.children)&&(null!==t.children[0][1].props.children[0].props.children[2]&&"object"==typeof t.children[0][1].props.children[0].props.children[2]||"function"==typeof t.children[0][1].props.children[0].props.children[2])&&(null!==t.children[0][1].props.children[0].props.children[2].props&&"object"==typeof t.children[0][1].props.children[0].props.children[2].props||"function"==typeof t.children[0][1].props.children[0].props.children[2].props)&&Array.isArray(t.children[0][1].props.children[0].props.children[2].props.children)&&(null!==t.children[0][1].props.children[0].props.children[2].props.children[7]&&"object"==typeof t.children[0][1].props.children[0].props.children[2].props.children[7]||"function"==typeof t.children[0][1].props.children[0].props.children[2].props.children[7])&&(null!==t.children[0][1].props.children[0].props.children[2].props.children[7].props&&"object"==typeof t.children[0][1].props.children[0].props.children[2].props.children[7].props||"function"==typeof t.children[0][1].props.children[0].props.children[2].props.children[7].props)&&(null!==t.children[0][1].props.children[0].props.children[2].props.children[7].props.loggedInUser&&"object"==typeof t.children[0][1].props.children[0].props.children[2].props.children[7].props.loggedInUser||"function"==typeof t.children[0][1].props.children[0].props.children[2].props.children[7].props.loggedInUser)&&"string"==typeof t.children[0][1].props.children[0].props.children[2].props.children[7].props.loggedInUser.screen_name},t.isProfileReactPropsData=function(e){const t=e;return(null!==t&&"object"==typeof t||"function"==typeof t)&&Array.isArray(t.children)&&(null!==t.children[1]&&"object"==typeof t.children[1]||"function"==typeof t.children[1])&&(null!==t.children[1].props&&"object"==typeof t.children[1].props||"function"==typeof t.children[1].props)&&(null!==t.children[1].props.user&&"object"==typeof t.children[1].props.user||"function"==typeof t.children[1].props.user)&&(void 0===t.children[1].props.user.possibly_sensitive||null===t.children[1].props.user.possibly_sensitive||!1===t.children[1].props.user.possibly_sensitive||!0===t.children[1].props.user.possibly_sensitive)&&"string"==typeof t.children[1].props.user.screen_name&&(""===t.children[1].props.user.profile_interstitial_type||"sensitive_media"===t.children[1].props.user.profile_interstitial_type||"fake_account"===t.children[1].props.user.profile_interstitial_type||"offensive_profile_content"===t.children[1].props.user.profile_interstitial_type||"timeout"===t.children[1].props.user.profile_interstitial_type)&&Array.isArray(t.children[1].props.user.withheld_in_countries)&&t.children[1].props.user.withheld_in_countries.every((e=>"string"==typeof e))}},3216:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INSTRUCTION_URL=t.RELEASE_NOTE_URL=t.ONBOARDING_PATH=t.ALLOWED_TWEMOJI=t.TWEMOJI_ATTRIBUTE=t.SHADOW_TRANSLATION_ATTRIBUTE=t.TRANSLATION_ATTRIBUTE=t.EVENT_GENERATOR_SETTINGS_ATTRIBUTE=t.EVENT_GENERATOR_ID=t.CHECKED_DATA_ATTRIBUTE=void 0,t.CHECKED_DATA_ATTRIBUTE="data-shadowban-checked",t.EVENT_GENERATOR_ID="shadowban-scanner-event-generator",t.EVENT_GENERATOR_SETTINGS_ATTRIBUTE="data-sb-settings",t.TRANSLATION_ATTRIBUTE="data-sb-translation",t.SHADOW_TRANSLATION_ATTRIBUTE="data-sb-shadow-translation",t.TWEMOJI_ATTRIBUTE="data-sb-enable-twemoji",t.ALLOWED_TWEMOJI=["✅","🚫","⚠️"],t.ONBOARDING_PATH="dist/html/initialSetup.html",t.RELEASE_NOTE_URL={en:"https://roboin.io/article/2023/11/10/shadowban-scanner-v2-2-release/en/",ja:"https://roboin.io/article/2023/11/10/shadowban-scanner-v2-2-release/"},t.INSTRUCTION_URL={en:"https://roboin.io/article/2023/09/30/detect-twitter-shadowban/en/#usage",ja:"https://roboin.io/article/2023/09/30/detect-twitter-shadowban/#%E4%BD%BF%E3%81%84%E6%96%B9"}},2238:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SETTINGS=void 0,t.DEFAULT_SETTINGS={alwaysDetailedView:!1,enableForOtherUsersProfiles:!0,enableForOtherUsersTweets:!0,showMessagesInUnproblematicProfiles:!0,showMessagesInUnproblematicTweets:!1,showNotesInMessages:!0,showTweetButton:!0}},2983:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Translator=void 0;const r=s(3216),n=s(1434);t.Translator=class{constructor(e,t){this.translationFunction=e,this.twemojiEndpoint=t}convertEmojiToTwemoji(e){let t=e;for(const e of r.ALLOWED_TWEMOJI){const s=[...e].map((e=>e.codePointAt(0)?.toString(16))).join("-"),r=`${e}`;t=t.replaceAll(e,r)}return t}translateElements(){const e=[...document.querySelectorAll(`[${r.TRANSLATION_ATTRIBUTE}]`)],t=document.querySelectorAll(`sbs-message[${r.SHADOW_TRANSLATION_ATTRIBUTE}]`);for(const s of t){const{shadowRoot:t}=s;if(!t)return;const n=t.querySelectorAll(`[${r.TRANSLATION_ATTRIBUTE}]`);e.push(...n),n.length&&s.removeAttribute(r.SHADOW_TRANSLATION_ATTRIBUTE)}e.forEach((e=>{const t=e.getAttribute(r.TRANSLATION_ATTRIBUTE),s=e.getAttribute("data-sb-translation-substitutions"),o=s?JSON.parse(s):null,i=(0,n.isTranslationSubstitutions)(o)?this.translationFunction(t,o):this.translationFunction(t);e.hasAttribute(r.TWEMOJI_ATTRIBUTE)?e.innerHTML=this.convertEmojiToTwemoji(i):e.innerHTML=i,e.removeAttribute(r.TRANSLATION_ATTRIBUTE)}))}}},3584:function(e,t,s){var r,n=this&&this.__decorate||function(e,t,s,r){var n,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,s,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,s,i):n(t,s))||i);return o>3&&i&&Object.defineProperty(t,s,i),i};Object.defineProperty(t,"__esModule",{value:!0}),t.SbsMessage=void 0,s(3284);const o=s(1814),i=s(5595),a=s(8810);let l=r=class extends o.LitElement{constructor(){super(...arguments),this.summary="tweetNoProblem",this.details=[],this.notes=[],this.isAlert=!1,this.isExpanded=!1,this.isFocalMode=!1,this.isTweetButtonShown=!1,this.isNoteShown=!1,this.textColor="white"}expand(){this.isExpanded=!0}tweetButtonClicked(){const e=new Event("tweetButtonClick",{bubbles:!0,composed:!0});this.dispatchEvent(e)}firstUpdated(e){this.onRenderedCallback&&this.onRenderedCallback(),super.firstUpdated(e)}getShowMoreButton(){return this.isExpanded?"":o.html``}getDetails(){return this.details.length?o.html`