New:Socket for Asana Is Now Available.Learn more
Get Started

Cardmarket Companion: Pricing & Order Tools

Package Overview
Versions
2
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zagoadev@gmail.com - firefox Package Compare versions

Comparing version
0.3.0
to
0.4.0
+1
assets/default-comment-CIJQTeiv.js
import{r as l}from"./client-DHAoYkl4.js";function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _=l();const P=I(_);var T=(e=>(e.TREND="trend",e.PRICE_MODE="priceMode",e.MIN_PRICE="minPrice",e.ITEMS_LISTED="itemsListed",e.ITEMS_LISTED_VALUE="itemsListedValue",e.DISMISSED_VERSION="dismissedVersion",e.LAST_SUPPORT_REQUEST="lastSupportRequest",e.LAST_SUPPORT_MILESTONE="lastSupportMilestone",e.PRO_USE_PROFESSIONAL_SELLER="proUseProfessionalSeller",e.PRO_SELLER_COUNTRY="proSellerCountry",e.PRO_PRICE_REDUCTION_TYPE="proPriceReductionType",e.PRO_PRICE_REDUCTION_VALUE="proPriceReductionValue",e.SHIPPING_DESTINATION_COUNTRY="shippingDestinationCountry",e.SHIPPING_COST_CACHE="shippingCostCache",e.SHIPPING_ENABLED="shippingEnabled",e.HIDE_SOCIAL_MEDIA="hideSocialMedia",e.BMAC_SUPPORTER_COUNT_CACHE="bmacSupporterCountCache",e.PREDEFINED_COMMENTS="predefinedComments",e.MESSAGE_SIGNATURE="messageSignature",e.SIGNATURE_BANNER_DISMISSED="signatureBannerDismissed",e))(T||{}),t=(e=>(e.EN="en",e.DE="de",e.FR="fr",e.ES="es",e.IT="it",e.JP="jp",e.CN="cn",e.PT="pt",e.RU="ru",e.KR="kr",e.TW="tw",e))(t||{}),s;(e=>{function i(r){switch(r){case"1":return t.EN;case"2":return t.FR;case"3":return t.DE;case"4":return t.ES;case"5":return t.IT;case"6":return t.CN;case"7":return t.JP;case"8":return t.PT;case"9":return t.RU;case"10":return t.KR;case"11":return t.TW;default:return t.EN}}e.getLanguageVersionFromId=i;function E(){return location.pathname.split("/")[1]??t.EN}e.getLanguage=E;function u(r){return`https://flagcdn.com/${r===t.EN?"gb":r}.svg`}e.getFlagUrl=u;function o(){return document.getElementById("account-dropdown")!==null}e.isUserConnected=o;function d(){}e.getRatingUrl=d;function c(r){const n=document.querySelectorAll(r);return Array.from(n).filter(R=>R instanceof HTMLElement)}e.selectAllBySelector=c;function p(){return"https://docs.google.com/forms/d/e/1FAIpQLSeEiv-JxkFAsD_To7SPBu7LRDGFb-aceu3cyYQqv5hQSZDLUQ/viewform?usp=publish-editor"}e.getGoogleFormUrl=p})(s||(s={}));const C="Listed with Cardmarket Companion";export{s as C,C as D,T as L,P as R,_ as r};
+6
-2
{
"manifest_version": 3,
"name": "Cardmarket Companion",
"version": "0.3.0",
"version": "0.4.0",
"description": "A simple extension to prefill sell inputs",

@@ -66,4 +66,8 @@ "browser_specific_settings": {

"https://www.cardmarket.com/*/Products/*",
"https://www.cardmarket.com/*/Orders/Sales/Paid/Articles?presale=0"
"https://www.cardmarket.com/*/Orders/Sales/Paid/Articles?presale=0",
"https://www.cardmarket.com/*/Wants/*"
],
"exclude_matches": [
"https://www.cardmarket.com/*/Products/Singles/*"
],
"js": [

@@ -70,0 +74,0 @@ "src/pages/content/icon-to-card.js"

@@ -1,5 +0,5 @@

var i=(e=>(e.TREND="trend",e.PRICE_MODE="priceMode",e.MIN_PRICE="minPrice",e.ITEMS_LISTED="itemsListed",e.ITEMS_LISTED_VALUE="itemsListedValue",e.DISMISSED_VERSION="dismissedVersion",e.LAST_SUPPORT_REQUEST="lastSupportRequest",e.LAST_SUPPORT_MILESTONE="lastSupportMilestone",e.PRO_USE_PROFESSIONAL_SELLER="proUseProfessionalSeller",e.PRO_SELLER_COUNTRY="proSellerCountry",e.PRO_PRICE_REDUCTION_TYPE="proPriceReductionType",e.PRO_PRICE_REDUCTION_VALUE="proPriceReductionValue",e.SHIPPING_DESTINATION_COUNTRY="shippingDestinationCountry",e.SHIPPING_COST_CACHE="shippingCostCache",e.SHIPPING_ENABLED="shippingEnabled",e.HIDE_SOCIAL_MEDIA="hideSocialMedia",e.BMAC_SUPPORTER_COUNT_CACHE="bmacSupporterCountCache",e.PREDEFINED_COMMENTS="predefinedComments",e.MESSAGE_SIGNATURE="messageSignature",e.SIGNATURE_BANNER_DISMISSED="signatureBannerDismissed",e))(i||{});function a(){chrome.storage.local.get([i.MESSAGE_SIGNATURE,i.SIGNATURE_BANNER_DISMISSED],e=>{const n=e[i.MESSAGE_SIGNATURE],t=e[i.SIGNATURE_BANNER_DISMISSED];n?d(n):t||p()})}function d(e){const n=document.querySelector('textarea[name="textMessage"]');n&&(n.value=`
(function(){"use strict";var i=(e=>(e.TREND="trend",e.PRICE_MODE="priceMode",e.MIN_PRICE="minPrice",e.ITEMS_LISTED="itemsListed",e.ITEMS_LISTED_VALUE="itemsListedValue",e.DISMISSED_VERSION="dismissedVersion",e.LAST_SUPPORT_REQUEST="lastSupportRequest",e.LAST_SUPPORT_MILESTONE="lastSupportMilestone",e.PRO_USE_PROFESSIONAL_SELLER="proUseProfessionalSeller",e.PRO_SELLER_COUNTRY="proSellerCountry",e.PRO_PRICE_REDUCTION_TYPE="proPriceReductionType",e.PRO_PRICE_REDUCTION_VALUE="proPriceReductionValue",e.SHIPPING_DESTINATION_COUNTRY="shippingDestinationCountry",e.SHIPPING_COST_CACHE="shippingCostCache",e.SHIPPING_ENABLED="shippingEnabled",e.HIDE_SOCIAL_MEDIA="hideSocialMedia",e.BMAC_SUPPORTER_COUNT_CACHE="bmacSupporterCountCache",e.PREDEFINED_COMMENTS="predefinedComments",e.MESSAGE_SIGNATURE="messageSignature",e.SIGNATURE_BANNER_DISMISSED="signatureBannerDismissed",e))(i||{});function o(){chrome.storage.local.get([i.MESSAGE_SIGNATURE,i.SIGNATURE_BANNER_DISMISSED],e=>{const n=e[i.MESSAGE_SIGNATURE],t=e[i.SIGNATURE_BANNER_DISMISSED];n?a(n):t||d()})}function a(e){const n=document.querySelector('textarea[name="textMessage"]');n&&(n.value=`
`+e,n.dispatchEvent(new Event("input",{bubbles:!0})),n.addEventListener("focus",()=>{n.setSelectionRange(0,0)},{once:!0}))}function p(){var s,r;const e=document.createElement("style");e.textContent=`
`+e,n.dispatchEvent(new Event("input",{bubbles:!0})),n.addEventListener("focus",()=>{n.setSelectionRange(0,0)},{once:!0}))}function d(){var s,r;const e=document.createElement("style");e.textContent=`
@keyframes cmcBannerSlideIn {

@@ -62,2 +62,2 @@ from { transform: translateX(110%); opacity: 0; }

</div>
`,document.body.appendChild(t),(s=document.getElementById("cmc-banner-close"))==null||s.addEventListener("click",()=>{t.style.animation="cmcBannerSlideOut 0.3s ease-in forwards",setTimeout(()=>t.remove(),310),chrome.storage.local.set({[i.SIGNATURE_BANNER_DISMISSED]:!0})}),(r=document.getElementById("cmc-banner-settings-link"))==null||r.addEventListener("click",o=>{o.preventDefault(),chrome.runtime.sendMessage({action:"openOptions"})})}a();
`,document.body.appendChild(t),(s=document.getElementById("cmc-banner-close"))==null||s.addEventListener("click",()=>{t.style.animation="cmcBannerSlideOut 0.3s ease-in forwards",setTimeout(()=>t.remove(),310),chrome.storage.local.set({[i.SIGNATURE_BANNER_DISMISSED]:!0})}),(r=document.getElementById("cmc-banner-settings-link"))==null||r.addEventListener("click",p=>{p.preventDefault(),chrome.runtime.sendMessage({action:"openOptions"})})}o()})();

@@ -1,1 +0,1 @@

{"version":3,"file":"messages.js","sources":["../../../../src/types/local-storage-key.enum.ts","../../../../src/pages/content/messages.tsx"],"sourcesContent":["export enum LocalStorageKey {\n TREND = \"trend\",\n PRICE_MODE = \"priceMode\",\n MIN_PRICE = \"minPrice\",\n ITEMS_LISTED = \"itemsListed\",\n ITEMS_LISTED_VALUE = \"itemsListedValue\",\n DISMISSED_VERSION = \"dismissedVersion\",\n LAST_SUPPORT_REQUEST = \"lastSupportRequest\",\n LAST_SUPPORT_MILESTONE = \"lastSupportMilestone\",\n PRO_USE_PROFESSIONAL_SELLER = \"proUseProfessionalSeller\",\n PRO_SELLER_COUNTRY = \"proSellerCountry\",\n PRO_PRICE_REDUCTION_TYPE = \"proPriceReductionType\",\n PRO_PRICE_REDUCTION_VALUE = \"proPriceReductionValue\",\n /** Destination country ID used to estimate shipping costs in the article table. */\n SHIPPING_DESTINATION_COUNTRY = \"shippingDestinationCountry\",\n /** Persistent shipping cost cache with timestamps, keyed by \"fromCountry-toCountry-locale\". */\n SHIPPING_COST_CACHE = \"shippingCostCache\",\n /** Whether the shipping cost estimation feature is enabled (default: true). */\n SHIPPING_ENABLED = \"shippingEnabled\",\n /** Whether to hide social media sharing buttons on article pages (default: false). */\n HIDE_SOCIAL_MEDIA = \"hideSocialMedia\",\n BMAC_SUPPORTER_COUNT_CACHE = \"bmacSupporterCountCache\",\n /** List of predefined comment templates saved by the user. */\n PREDEFINED_COMMENTS = \"predefinedComments\",\n /** Custom signature text appended to outgoing messages. */\n MESSAGE_SIGNATURE = \"messageSignature\",\n /** Whether the no-signature info banner has been dismissed by the user. */\n SIGNATURE_BANNER_DISMISSED = \"signatureBannerDismissed\",\n}\n","import { LocalStorageKey } from \"../../types/local-storage-key.enum\";\n\nfunction init() {\n chrome.storage.local.get(\n [LocalStorageKey.MESSAGE_SIGNATURE, LocalStorageKey.SIGNATURE_BANNER_DISMISSED],\n (result) => {\n const signature = result[LocalStorageKey.MESSAGE_SIGNATURE] as string | undefined;\n const bannerDismissed = result[LocalStorageKey.SIGNATURE_BANNER_DISMISSED] as boolean | undefined;\n\n if (signature) {\n prefillTextarea(signature);\n } else if (!bannerDismissed) {\n showNoSignatureBanner();\n }\n },\n );\n}\n\nfunction prefillTextarea(signature: string) {\n const textarea = document.querySelector('textarea[name=\"textMessage\"]') as HTMLTextAreaElement | null;\n if (!textarea) return;\n\n textarea.value = \"\\n\\n\\n\" + signature;\n textarea.dispatchEvent(new Event(\"input\", { bubbles: true }));\n\n // Move cursor to the very start on first focus so the user types their message above the signature\n textarea.addEventListener(\n \"focus\",\n () => {\n textarea.setSelectionRange(0, 0);\n },\n { once: true },\n );\n}\n\nfunction showNoSignatureBanner() {\n const style = document.createElement(\"style\");\n style.textContent = `\n @keyframes cmcBannerSlideIn {\n from { transform: translateX(110%); opacity: 0; }\n to { transform: translateX(0); opacity: 1; }\n }\n @keyframes cmcBannerSlideOut {\n from { transform: translateX(0); opacity: 1; }\n to { transform: translateX(110%); opacity: 0; }\n }\n `;\n document.head.appendChild(style);\n\n const iconUrl = chrome.runtime.getURL(\"128.png\");\n\n const banner = document.createElement(\"div\");\n banner.id = \"cmc-signature-banner\";\n banner.style.cssText = `\n position: fixed;\n bottom: 24px;\n right: 24px;\n z-index: 99999;\n width: 360px;\n background: #fff8e1;\n border: 1px solid #ffc107;\n border-left: 4px solid #f39c12;\n border-radius: 8px;\n box-shadow: 0 4px 20px rgba(0,0,0,0.18);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n animation: cmcBannerSlideIn 0.3s ease-out;\n `;\n\n banner.innerHTML = `\n <div style=\"padding: 14px 16px;\">\n <div style=\"display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;\">\n <div style=\"display:flex; align-items:center; gap:7px;\">\n <img src=\"${iconUrl}\" alt=\"\" style=\"width:18px; height:18px; border-radius:3px; flex-shrink:0;\" />\n <span style=\"font-size:11px; font-weight:700; color:#7d6608; text-transform:uppercase; letter-spacing:0.6px;\">\n Cardmarket Companion\n </span>\n </div>\n <button\n id=\"cmc-banner-close\"\n title=\"Dismiss forever\"\n style=\"background:none; border:none; cursor:pointer; color:#aaa; font-size:16px; line-height:1; padding:0 2px; display:flex; align-items:center;\"\n >✕</button>\n </div>\n\n <div style=\"display:flex; gap:10px; align-items:flex-start;\">\n <div style=\"font-size:18px; flex-shrink:0; margin-top:1px;\">⚠️</div>\n <div>\n <p style=\"margin:0 0 5px; font-size:13px; font-weight:700; color:#5d4e00;\">\n No message signature configured\n </p>\n <p style=\"margin:0 0 12px; font-size:12px; color:#7a6200; line-height:1.45;\">\n Add a signature to your messages so buyers can easily identify who you are.\n </p>\n <a\n id=\"cmc-banner-settings-link\"\n href=\"#\"\n style=\"display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700;\n color:#e67e22; text-decoration:none; border-bottom:1px solid #e67e22; padding-bottom:1px;\"\n >\n ⚙️ Configure signature in Settings\n </a>\n </div>\n </div>\n </div>\n `;\n\n document.body.appendChild(banner);\n\n document.getElementById(\"cmc-banner-close\")?.addEventListener(\"click\", () => {\n banner.style.animation = \"cmcBannerSlideOut 0.3s ease-in forwards\";\n setTimeout(() => banner.remove(), 310);\n chrome.storage.local.set({ [LocalStorageKey.SIGNATURE_BANNER_DISMISSED]: true });\n });\n\n document.getElementById(\"cmc-banner-settings-link\")?.addEventListener(\"click\", (e) => {\n e.preventDefault();\n chrome.runtime.sendMessage({ action: \"openOptions\" });\n });\n}\n\ninit();\n"],"names":["LocalStorageKey","init","result","signature","bannerDismissed","prefillTextarea","showNoSignatureBanner","textarea","_a","_b","style","iconUrl","banner","e"],"mappings":"AAAY,IAAAA,GAAAA,IACVA,EAAA,MAAQ,QACRA,EAAA,WAAa,YACbA,EAAA,UAAY,WACZA,EAAA,aAAe,cACfA,EAAA,mBAAqB,mBACrBA,EAAA,kBAAoB,mBACpBA,EAAA,qBAAuB,qBACvBA,EAAA,uBAAyB,uBACzBA,EAAA,4BAA8B,2BAC9BA,EAAA,mBAAqB,mBACrBA,EAAA,yBAA2B,wBAC3BA,EAAA,0BAA4B,yBAE5BA,EAAA,6BAA+B,6BAE/BA,EAAA,oBAAsB,oBAEtBA,EAAA,iBAAmB,kBAEnBA,EAAA,kBAAoB,kBACpBA,EAAA,2BAA6B,0BAE7BA,EAAA,oBAAsB,qBAEtBA,EAAA,kBAAoB,mBAEpBA,EAAA,2BAA6B,2BA3BnBA,IAAAA,GAAA,CAAA,CAAA,ECEZ,SAASC,GAAO,CACd,OAAO,QAAQ,MAAM,IACnB,CAACD,EAAgB,kBAAmBA,EAAgB,0BAA0B,EAC7EE,GAAW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A,EAAO,OAAO,EAAG,GAAG,EAC9B,OAAA,QAAQ,MAAM,IAAI,CAAE,CAACZ,EAAgB,0BAA0B,EAAG,GAAM,CAAA,IAGjFS,EAAA,SAAS,eAAe,0BAA0B,IAAlD,MAAAA,EAAqD,iBAAiB,QAAUI,GAAM,CACpFA,EAAE,eAAe,EACjB,OAAO,QAAQ,YAAY,CAAE,OAAQ,cAAe,CAAA,EAExD,CAEAZ,EAAK"}
{"version":3,"file":"messages.js","sources":["../../../../src/types/local-storage-key.enum.ts","../../../../src/pages/content/messages.tsx"],"sourcesContent":["export enum LocalStorageKey {\n TREND = \"trend\",\n PRICE_MODE = \"priceMode\",\n MIN_PRICE = \"minPrice\",\n ITEMS_LISTED = \"itemsListed\",\n ITEMS_LISTED_VALUE = \"itemsListedValue\",\n DISMISSED_VERSION = \"dismissedVersion\",\n LAST_SUPPORT_REQUEST = \"lastSupportRequest\",\n LAST_SUPPORT_MILESTONE = \"lastSupportMilestone\",\n PRO_USE_PROFESSIONAL_SELLER = \"proUseProfessionalSeller\",\n PRO_SELLER_COUNTRY = \"proSellerCountry\",\n PRO_PRICE_REDUCTION_TYPE = \"proPriceReductionType\",\n PRO_PRICE_REDUCTION_VALUE = \"proPriceReductionValue\",\n /** Destination country ID used to estimate shipping costs in the article table. */\n SHIPPING_DESTINATION_COUNTRY = \"shippingDestinationCountry\",\n /** Persistent shipping cost cache with timestamps, keyed by \"fromCountry-toCountry-locale\". */\n SHIPPING_COST_CACHE = \"shippingCostCache\",\n /** Whether the shipping cost estimation feature is enabled (default: true). */\n SHIPPING_ENABLED = \"shippingEnabled\",\n /** Whether to hide social media sharing buttons on article pages (default: false). */\n HIDE_SOCIAL_MEDIA = \"hideSocialMedia\",\n BMAC_SUPPORTER_COUNT_CACHE = \"bmacSupporterCountCache\",\n /** List of predefined comment templates saved by the user. */\n PREDEFINED_COMMENTS = \"predefinedComments\",\n /** Custom signature text appended to outgoing messages. */\n MESSAGE_SIGNATURE = \"messageSignature\",\n /** Whether the no-signature info banner has been dismissed by the user. */\n SIGNATURE_BANNER_DISMISSED = \"signatureBannerDismissed\",\n}\n","import { LocalStorageKey } from \"../../types/local-storage-key.enum\";\n\nfunction init() {\n chrome.storage.local.get(\n [LocalStorageKey.MESSAGE_SIGNATURE, LocalStorageKey.SIGNATURE_BANNER_DISMISSED],\n (result) => {\n const signature = result[LocalStorageKey.MESSAGE_SIGNATURE] as string | undefined;\n const bannerDismissed = result[LocalStorageKey.SIGNATURE_BANNER_DISMISSED] as boolean | undefined;\n\n if (signature) {\n prefillTextarea(signature);\n } else if (!bannerDismissed) {\n showNoSignatureBanner();\n }\n },\n );\n}\n\nfunction prefillTextarea(signature: string) {\n const textarea = document.querySelector('textarea[name=\"textMessage\"]') as HTMLTextAreaElement | null;\n if (!textarea) return;\n\n textarea.value = \"\\n\\n\\n\" + signature;\n textarea.dispatchEvent(new Event(\"input\", { bubbles: true }));\n\n // Move cursor to the very start on first focus so the user types their message above the signature\n textarea.addEventListener(\n \"focus\",\n () => {\n textarea.setSelectionRange(0, 0);\n },\n { once: true },\n );\n}\n\nfunction showNoSignatureBanner() {\n const style = document.createElement(\"style\");\n style.textContent = `\n @keyframes cmcBannerSlideIn {\n from { transform: translateX(110%); opacity: 0; }\n to { transform: translateX(0); opacity: 1; }\n }\n @keyframes cmcBannerSlideOut {\n from { transform: translateX(0); opacity: 1; }\n to { transform: translateX(110%); opacity: 0; }\n }\n `;\n document.head.appendChild(style);\n\n const iconUrl = chrome.runtime.getURL(\"128.png\");\n\n const banner = document.createElement(\"div\");\n banner.id = \"cmc-signature-banner\";\n banner.style.cssText = `\n position: fixed;\n bottom: 24px;\n right: 24px;\n z-index: 99999;\n width: 360px;\n background: #fff8e1;\n border: 1px solid #ffc107;\n border-left: 4px solid #f39c12;\n border-radius: 8px;\n box-shadow: 0 4px 20px rgba(0,0,0,0.18);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\n animation: cmcBannerSlideIn 0.3s ease-out;\n `;\n\n banner.innerHTML = `\n <div style=\"padding: 14px 16px;\">\n <div style=\"display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;\">\n <div style=\"display:flex; align-items:center; gap:7px;\">\n <img src=\"${iconUrl}\" alt=\"\" style=\"width:18px; height:18px; border-radius:3px; flex-shrink:0;\" />\n <span style=\"font-size:11px; font-weight:700; color:#7d6608; text-transform:uppercase; letter-spacing:0.6px;\">\n Cardmarket Companion\n </span>\n </div>\n <button\n id=\"cmc-banner-close\"\n title=\"Dismiss forever\"\n style=\"background:none; border:none; cursor:pointer; color:#aaa; font-size:16px; line-height:1; padding:0 2px; display:flex; align-items:center;\"\n >✕</button>\n </div>\n\n <div style=\"display:flex; gap:10px; align-items:flex-start;\">\n <div style=\"font-size:18px; flex-shrink:0; margin-top:1px;\">⚠️</div>\n <div>\n <p style=\"margin:0 0 5px; font-size:13px; font-weight:700; color:#5d4e00;\">\n No message signature configured\n </p>\n <p style=\"margin:0 0 12px; font-size:12px; color:#7a6200; line-height:1.45;\">\n Add a signature to your messages so buyers can easily identify who you are.\n </p>\n <a\n id=\"cmc-banner-settings-link\"\n href=\"#\"\n style=\"display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700;\n color:#e67e22; text-decoration:none; border-bottom:1px solid #e67e22; padding-bottom:1px;\"\n >\n ⚙️ Configure signature in Settings\n </a>\n </div>\n </div>\n </div>\n `;\n\n document.body.appendChild(banner);\n\n document.getElementById(\"cmc-banner-close\")?.addEventListener(\"click\", () => {\n banner.style.animation = \"cmcBannerSlideOut 0.3s ease-in forwards\";\n setTimeout(() => banner.remove(), 310);\n chrome.storage.local.set({ [LocalStorageKey.SIGNATURE_BANNER_DISMISSED]: true });\n });\n\n document.getElementById(\"cmc-banner-settings-link\")?.addEventListener(\"click\", (e) => {\n e.preventDefault();\n chrome.runtime.sendMessage({ action: \"openOptions\" });\n });\n}\n\ninit();\n"],"names":["LocalStorageKey","init","result","signature","bannerDismissed","prefillTextarea","showNoSignatureBanner","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AYA,CAAK,EAE/B,MAAMC,EAAU,OAAO,QAAQ,OAAO,SAAS,EAEzCC,EAAS,SAAS,cAAc,KAAK,EAC3CA,EAAO,GAAK,uBACZA,EAAO,MAAM,QAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAevBA,EAAO,UAAY;AAAA;AAAA;AAAA;AAAA,sBAICD,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAkClB,SAAA,KAAK,YAAYC,CAAM,GAEhCC,EAAA,SAAS,eAAe,kBAAkB,IAA1C,MAAAA,EAA6C,iBAAiB,QAAS,IAAM,CAC3ED,EAAO,MAAM,UAAY,0CACzB,WAAW,IAAMA,EAAO,OAAO,EAAG,GAAG,EAC9B,OAAA,QAAQ,MAAM,IAAI,CAAE,CAACV,EAAgB,0BAA0B,EAAG,GAAM,CAAA,IAGjFY,EAAA,SAAS,eAAe,0BAA0B,IAAlD,MAAAA,EAAqD,iBAAiB,QAAUC,GAAM,CACpFA,EAAE,eAAe,EACjB,OAAO,QAAQ,YAAY,CAAE,OAAQ,cAAe,CAAA,EAExD,CAEAZ,EAAK"}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display