Cardmarket Companion: Pricing & Order Tools
| import{r as _}from"./client-CE_2pG7d.js";function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l=_();const P=I(l);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.PRICE_ADJUSTMENT_GLOBAL="priceAdjustmentGlobal",e.PRICE_ADJUSTMENT_OVERRIDES="priceAdjustmentOverrides",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 E(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=E;function i(){const r=location.pathname.split("/")[1];return console.debug("getLanguage",r),r??t.EN}e.getLanguage=i;function u(r){return`https://flagcdn.com/${r===t.EN?"gb":r}.svg`}e.getFlagUrl=u;function d(){return document.getElementById("account-dropdown")!==null}e.isUserConnected=d;function c(){return"https://chromewebstore.google.com/detail/cardmarket-companion/mpbncolfefkegmaccdejhngjcjkjoaep?hl=en"}e.getRatingUrl=c;function o(r){const n=document.querySelectorAll(r);return Array.from(n).filter(p=>p instanceof HTMLElement)}e.selectAllBySelector=o;function R(){return"https://docs.google.com/forms/d/e/1FAIpQLSeEiv-JxkFAsD_To7SPBu7LRDGFb-aceu3cyYQqv5hQSZDLUQ/viewform?usp=publish-editor"}e.getGoogleFormUrl=R})(s||(s={}));const N="Listed with Cardmarket Companion";export{s as C,N as D,T as L,P as R,l as r}; | ||
| //# sourceMappingURL=default-comment-dM9mANzi.js.map |
| {"version":3,"file":"default-comment-dM9mANzi.js","sources":["../../src/types/local-storage-key.enum.ts","../../src/types/language.ts","../../src/services/common.service.ts","../../src/constants/default-comment.ts"],"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 /** @deprecated superseded by PRICE_ADJUSTMENT_*; kept only for one-time migration. */\n PRO_PRICE_REDUCTION_TYPE = \"proPriceReductionType\",\n /** @deprecated superseded by PRICE_ADJUSTMENT_*; kept only for one-time migration. */\n PRO_PRICE_REDUCTION_VALUE = \"proPriceReductionValue\",\n /** Global default signed offset ({type,value}) applied to every pricing mode. */\n PRICE_ADJUSTMENT_GLOBAL = \"priceAdjustmentGlobal\",\n /** Per-mode signed offset overrides: { [mode]: {type,value} }. */\n PRICE_ADJUSTMENT_OVERRIDES = \"priceAdjustmentOverrides\",\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","export enum Language {\n EN = \"en\",\n DE = \"de\",\n FR = \"fr\",\n ES = \"es\",\n IT = \"it\",\n JP = \"jp\",\n CN = \"cn\",\n PT = \"pt\",\n RU = \"ru\",\n KR = \"kr\",\n TW = \"tw\",\n}\n","import { Language } from \"../types/language\";\n\nexport namespace CommonService {\n export function getLanguageVersionFromId(language: string): Language {\n switch (language) {\n case \"1\":\n return Language.EN;\n case \"2\":\n return Language.FR;\n case \"3\":\n return Language.DE;\n case \"4\":\n return Language.ES;\n case \"5\":\n return Language.IT;\n case \"6\":\n return Language.CN;\n case \"7\":\n return Language.JP;\n case \"8\":\n return Language.PT;\n case \"9\":\n return Language.RU;\n case \"10\":\n return Language.KR;\n case \"11\":\n return Language.TW;\n default:\n return Language.EN;\n }\n }\n\n export function getLanguage(): Language {\n const language = location.pathname.split(\"/\")[1];\n console.debug(\"getLanguage\", language);\n return (language as Language) ?? Language.EN;\n }\n\n export function getFlagUrl(language: Language): string {\n const flagCode = language === Language.EN ? \"gb\" : language;\n return `https://flagcdn.com/${flagCode}.svg`;\n }\n\n export function isUserConnected(): boolean {\n const userName = document.getElementById(\"account-dropdown\");\n return userName !== null;\n }\n\n export function getRatingUrl(): string | undefined {\n switch (import.meta.env.VITE_BROWSER_TARGETED) {\n case \"CHROME\":\n return \"https://chromewebstore.google.com/detail/cardmarket-companion/mpbncolfefkegmaccdejhngjcjkjoaep?hl=en\";\n case \"FIREFOX\":\n return \"https://addons.mozilla.org/en-CA/android/addon/cardmarket-companion\";\n default:\n return undefined;\n }\n }\n\n /**\n * Helper that selects elements by a CSS selector or by a class name (without the dot).\n * Returns an array of HTMLElement for easier manipulation in content scripts.\n * Example usages:\n * - selectAllBySelector('.price')\n * - selectAllBySelector('price') // treated as class name\n */\n export function selectAllBySelector(selector: string): HTMLElement[] {\n const nodeList = document.querySelectorAll(selector);\n return Array.from(nodeList).filter((n): n is HTMLElement => n instanceof HTMLElement);\n }\n\n export function getGoogleFormUrl(): string {\n return \"https://docs.google.com/forms/d/e/1FAIpQLSeEiv-JxkFAsD_To7SPBu7LRDGFb-aceu3cyYQqv5hQSZDLUQ/viewform?usp=publish-editor\";\n }\n}\n","/** Default comment always shown in the template list; it cannot be removed. */\nexport const DEFAULT_COMMENT = \"Listed with Cardmarket Companion\";\n"],"names":["LocalStorageKey","Language","CommonService","getLanguageVersionFromId","language","getLanguage","getFlagUrl","isUserConnected","getRatingUrl","selectAllBySelector","selector","nodeList","n","getGoogleFormUrl","DEFAULT_COMMENT"],"mappings":"oKAAY,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,mBAErBA,EAAA,yBAA2B,wBAE3BA,EAAA,0BAA4B,yBAE5BA,EAAA,wBAA0B,wBAE1BA,EAAA,2BAA6B,2BAE7BA,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,2BAjCnBA,IAAAA,GAAA,CAAA,CAAA,ECAAC,GAAAA,IACVA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KACLA,EAAA,GAAK,KAXKA,IAAAA,GAAA,CAAA,CAAA,ECEKC,GAAAA,GAAV,CACE,SAASC,EAAyBC,EAA4B,CACnE,OAAQA,EAAU,CAChB,IAAK,IACH,OAAOH,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,IACH,OAAOA,EAAS,GAClB,IAAK,KACH,OAAOA,EAAS,GAClB,IAAK,KACH,OAAOA,EAAS,GAClB,QACE,OAAOA,EAAS,EAAA,CACpB,CA1BKC,EAAS,yBAAAC,EA6BT,SAASE,GAAwB,CACtC,MAAMD,EAAW,SAAS,SAAS,MAAM,GAAG,EAAE,CAAC,EACvC,eAAA,MAAM,cAAeA,CAAQ,EAC7BA,GAAyBH,EAAS,EAAA,CAHrCC,EAAS,YAAAG,EAMT,SAASC,EAAWF,EAA4B,CAErD,MAAO,uBADUA,IAAaH,EAAS,GAAK,KAAOG,CACb,MAAA,CAFjCF,EAAS,WAAAI,EAKT,SAASC,GAA2B,CAEzC,OADiB,SAAS,eAAe,kBAAkB,IACvC,IAAA,CAFfL,EAAS,gBAAAK,EAKT,SAASC,GAAmC,CAGtC,MAAA,sGAKX,CARKN,EAAS,aAAAM,EAkBT,SAASC,EAAoBC,EAAiC,CAC7D,MAAAC,EAAW,SAAS,iBAAiBD,CAAQ,EAC5C,OAAA,MAAM,KAAKC,CAAQ,EAAE,OAAQC,GAAwBA,aAAa,WAAW,CAAA,CAF/EV,EAAS,oBAAAO,EAKT,SAASI,GAA2B,CAClC,MAAA,wHAAA,CADFX,EAAS,iBAAAW,CAAA,GArEDX,IAAAA,EAAA,CAAA,EAAA,ECDV,MAAMY,EAAkB"} |
| import{r as _}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(l);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.PRICE_ADJUSTMENT_GLOBAL="priceAdjustmentGlobal",e.PRICE_ADJUSTMENT_OVERRIDES="priceAdjustmentOverrides",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 E(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=E;function i(){return location.pathname.split("/")[1]??t.EN}e.getLanguage=i;function u(r){return`https://flagcdn.com/${r===t.EN?"gb":r}.svg`}e.getFlagUrl=u;function d(){return document.getElementById("account-dropdown")!==null}e.isUserConnected=d;function c(){return"https://chromewebstore.google.com/detail/cardmarket-companion/mpbncolfefkegmaccdejhngjcjkjoaep?hl=en"}e.getRatingUrl=c;function o(r){const n=document.querySelectorAll(r);return Array.from(n).filter(p=>p instanceof HTMLElement)}e.selectAllBySelector=o;function R(){return"https://docs.google.com/forms/d/e/1FAIpQLSeEiv-JxkFAsD_To7SPBu7LRDGFb-aceu3cyYQqv5hQSZDLUQ/viewform?usp=publish-editor"}e.getGoogleFormUrl=R})(s||(s={}));const N="Listed with Cardmarket Companion";export{s as C,N as D,T as L,P as R,l as r}; |
| import{r as I}from"./client-DHAoYkl4.js";function _(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l=I();const C=_(l);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.PRICE_ADJUSTMENT_GLOBAL="priceAdjustmentGlobal",e.PRICE_ADJUSTMENT_OVERRIDES="priceAdjustmentOverrides",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 E(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=E;function i(){return location.pathname.split("/")[1]??t.EN}e.getLanguage=i;function u(r){return`https://flagcdn.com/${r===t.EN?"gb":r}.svg`}e.getFlagUrl=u;function d(){return document.getElementById("account-dropdown")!==null}e.isUserConnected=d;function c(){return"https://addons.mozilla.org/en-CA/android/addon/cardmarket-companion"}e.getRatingUrl=c;function o(r){const n=document.querySelectorAll(r);return Array.from(n).filter(p=>p instanceof HTMLElement)}e.selectAllBySelector=o;function R(){return"https://docs.google.com/forms/d/e/1FAIpQLSeEiv-JxkFAsD_To7SPBu7LRDGFb-aceu3cyYQqv5hQSZDLUQ/viewform?usp=publish-editor"}e.getGoogleFormUrl=R})(s||(s={}));const N="Listed with Cardmarket Companion";export{s as C,N as D,T as L,C as R,l as r}; |
| .container{width:100%;min-height:100vh;background-color:#f3f4f6}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-4{right:1rem}.right-6{right:1.5rem}.top-1\/2{top:50%}.top-6{top:1.5rem}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.me-1{margin-inline-end:.25rem}.me-2{margin-inline-end:.5rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-9{width:2.25rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-6xl{max-width:72rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-y-2{row-gap:.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-cardmarket-blue{--tw-text-opacity: 1;color:rgb(59 89 152 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.hover\:text-green-800:hover{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.hover\:opacity-70:hover{opacity:.7}.hover\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.peer:checked~.peer-checked\:bg-blue-950{--tw-bg-opacity: 1;background-color:rgb(23 37 84 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))} |
| .container{width:100%;min-height:100vh;background-color:#f3f4f6}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-4{right:1rem}.right-6{right:1.5rem}.top-1\/2{top:50%}.top-6{top:1.5rem}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.me-1{margin-inline-end:.25rem}.me-2{margin-inline-end:.5rem}.ml-2{margin-left:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-9{width:2.25rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-6xl{max-width:72rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-y-2{row-gap:.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-cardmarket-blue{--tw-text-opacity: 1;color:rgb(59 89 152 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.hover\:text-green-800:hover{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.hover\:opacity-70:hover{opacity:.7}.hover\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.peer:checked~.peer-checked\:bg-blue-950{--tw-bg-opacity: 1;background-color:rgb(23 37 84 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))} |
| body{width:300px;height:auto;min-height:260px;max-height:600px;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-4{right:1rem}.right-6{right:1.5rem}.top-1\/2{top:50%}.top-6{top:1.5rem}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.me-1{margin-inline-end:.25rem}.me-2{margin-inline-end:.5rem}.ml-2{margin-left:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-9{width:2.25rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-6xl{max-width:72rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-y-2{row-gap:.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-cardmarket-blue{--tw-text-opacity: 1;color:rgb(59 89 152 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.hover\:text-green-800:hover{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.hover\:opacity-70:hover{opacity:.7}.hover\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.peer:checked~.peer-checked\:bg-blue-950{--tw-bg-opacity: 1;background-color:rgb(23 37 84 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))} |
| body{width:300px;height:auto;min-height:260px;max-height:600px;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-4{right:1rem}.right-6{right:1.5rem}.top-1\/2{top:50%}.top-6{top:1.5rem}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.me-1{margin-inline-end:.25rem}.me-2{margin-inline-end:.5rem}.ml-2{margin-left:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-9{width:2.25rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-6xl{max-width:72rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-y-2{row-gap:.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-cardmarket-blue{--tw-text-opacity: 1;color:rgb(59 89 152 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\:text-blue-800:hover{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.hover\:text-green-800:hover{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.hover\:opacity-70:hover{opacity:.7}.hover\:shadow-2xl:hover{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.peer:checked~.peer-checked\:bg-blue-950{--tw-bg-opacity: 1;background-color:rgb(23 37 84 / var(--tw-bg-opacity))}.peer:checked~.peer-checked\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))} |
+1
-1
| { | ||
| "manifest_version": 3, | ||
| "name": "Cardmarket Companion", | ||
| "version": "0.4.1", | ||
| "version": "0.5.0", | ||
| "description": "A simple extension to prefill sell inputs", | ||
@@ -6,0 +6,0 @@ "browser_specific_settings": { |
@@ -1,2 +0,2 @@ | ||
| (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=` | ||
| (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.PRICE_ADJUSTMENT_GLOBAL="priceAdjustmentGlobal",e.PRICE_ADJUSTMENT_OVERRIDES="priceAdjustmentOverrides",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=` | ||
@@ -3,0 +3,0 @@ |
@@ -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","style","iconUrl","banner","_a","_b","e"],"mappings":"yBAAY,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,CACJ,MAAAC,EAAYD,EAAOF,EAAgB,iBAAiB,EACpDI,EAAkBF,EAAOF,EAAgB,0BAA0B,EAErEG,EACFE,EAAgBF,CAAS,EACfC,GACYE,EAAA,CACxB,CAEJ,CACF,CAEA,SAASD,EAAgBF,EAAmB,CACpC,MAAAI,EAAW,SAAS,cAAc,8BAA8B,EACjEA,IAELA,EAAS,MAAQ;AAAA;AAAA;AAAA,EAAWJ,EACnBI,EAAA,cAAc,IAAI,MAAM,QAAS,CAAE,QAAS,EAAA,CAAM,CAAC,EAGnDA,EAAA,iBACP,QACA,IAAM,CACKA,EAAA,kBAAkB,EAAG,CAAC,CACjC,EACA,CAAE,KAAM,EAAK,CACf,EACF,CAEA,SAASD,GAAwB,SACzB,MAAAE,EAAQ,SAAS,cAAc,OAAO,EAC5CA,EAAM,YAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUX,SAAA,KAAK,YAAYA,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"} | ||
| {"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 /** @deprecated superseded by PRICE_ADJUSTMENT_*; kept only for one-time migration. */\n PRO_PRICE_REDUCTION_TYPE = \"proPriceReductionType\",\n /** @deprecated superseded by PRICE_ADJUSTMENT_*; kept only for one-time migration. */\n PRO_PRICE_REDUCTION_VALUE = \"proPriceReductionValue\",\n /** Global default signed offset ({type,value}) applied to every pricing mode. */\n PRICE_ADJUSTMENT_GLOBAL = \"priceAdjustmentGlobal\",\n /** Per-mode signed offset overrides: { [mode]: {type,value} }. */\n PRICE_ADJUSTMENT_OVERRIDES = \"priceAdjustmentOverrides\",\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","style","iconUrl","banner","_a","_b","e"],"mappings":"yBAAY,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,mBAErBA,EAAA,yBAA2B,wBAE3BA,EAAA,0BAA4B,yBAE5BA,EAAA,wBAA0B,wBAE1BA,EAAA,2BAA6B,2BAE7BA,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,2BAjCnBA,IAAAA,GAAA,CAAA,CAAA,ECEZ,SAASC,GAAO,CACd,OAAO,QAAQ,MAAM,IACnB,CAACD,EAAgB,kBAAmBA,EAAgB,0BAA0B,EAC7EE,GAAW,CACJ,MAAAC,EAAYD,EAAOF,EAAgB,iBAAiB,EACpDI,EAAkBF,EAAOF,EAAgB,0BAA0B,EAErEG,EACFE,EAAgBF,CAAS,EACfC,GACYE,EAAA,CACxB,CAEJ,CACF,CAEA,SAASD,EAAgBF,EAAmB,CACpC,MAAAI,EAAW,SAAS,cAAc,8BAA8B,EACjEA,IAELA,EAAS,MAAQ;AAAA;AAAA;AAAA,EAAWJ,EACnBI,EAAA,cAAc,IAAI,MAAM,QAAS,CAAE,QAAS,EAAA,CAAM,CAAC,EAGnDA,EAAA,iBACP,QACA,IAAM,CACKA,EAAA,kBAAkB,EAAG,CAAC,CACjC,EACA,CAAE,KAAM,EAAK,CACf,EACF,CAEA,SAASD,GAAwB,SACzB,MAAAE,EAAQ,SAAS,cAAc,OAAO,EAC5CA,EAAM,YAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUX,SAAA,KAAK,YAAYA,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"} |
@@ -8,4 +8,4 @@ <!doctype html> | ||
| <link rel="modulepreload" crossorigin href="/assets/client-DHAoYkl4.js"> | ||
| <link rel="modulepreload" crossorigin href="/assets/default-comment-BIe9HDxc.js"> | ||
| <link rel="stylesheet" crossorigin href="/assets/options-B6DKQXVg.css"> | ||
| <link rel="modulepreload" crossorigin href="/assets/default-comment-N7Yb-HYv.js"> | ||
| <link rel="stylesheet" crossorigin href="/assets/options-DcR2q3fN.css"> | ||
| </head> | ||
@@ -12,0 +12,0 @@ |
@@ -1,3 +0,3 @@ | ||
| import{j as e,c as te}from"../../../assets/client-DHAoYkl4.js";import{R as y,r as c,L as i,D as L,C as ae}from"../../../assets/default-comment-BIe9HDxc.js";const se=[{id:1,name:"Austria"},{id:2,name:"Belgium"},{id:3,name:"Bulgaria"},{id:35,name:"Croatia"},{id:5,name:"Cyprus"},{id:6,name:"Czech Republic"},{id:8,name:"Denmark"},{id:9,name:"Estonia"},{id:11,name:"Finland"},{id:12,name:"France"},{id:7,name:"Germany"},{id:14,name:"Greece"},{id:15,name:"Hungary"},{id:37,name:"Iceland"},{id:16,name:"Ireland"},{id:17,name:"Italy"},{id:36,name:"Japan"},{id:21,name:"Latvia"},{id:18,name:"Liechtenstein"},{id:19,name:"Lithuania"},{id:20,name:"Luxembourg"},{id:22,name:"Malta"},{id:23,name:"Netherlands"},{id:24,name:"Norway"},{id:25,name:"Poland"},{id:26,name:"Portugal"},{id:27,name:"Romania"},{id:29,name:"Singapore"},{id:31,name:"Slovakia"},{id:30,name:"Slovenia"},{id:10,name:"Spain"},{id:28,name:"Sweden"},{id:4,name:"Switzerland"},{id:13,name:"United Kingdom"},{id:33,name:"Canada"}];var U={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},B=y.createContext&&y.createContext(U),re=["attr","size","title"];function le(a,s){if(a==null)return{};var r=ne(a,s),l,d;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(d=0;d<m.length;d++)l=m[d],!(s.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(a,l)&&(r[l]=a[l])}return r}function ne(a,s){if(a==null)return{};var r={};for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){if(s.indexOf(l)>=0)continue;r[l]=a[l]}return r}function E(){return E=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var r=arguments[s];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a[l]=r[l])}return a},E.apply(this,arguments)}function H(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);s&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),r.push.apply(r,l)}return r}function S(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?H(Object(r),!0).forEach(function(l){ie(a,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(r,l))})}return a}function ie(a,s,r){return s=oe(s),s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function oe(a){var s=ce(a,"string");return typeof s=="symbol"?s:s+""}function ce(a,s){if(typeof a!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var l=r.call(a,s);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}function G(a){return a&&a.map((s,r)=>y.createElement(s.tag,S({key:r},s.attr),G(s.child)))}function f(a){return s=>y.createElement(de,E({attr:S({},a.attr)},s),G(a.child))}function de(a){var s=r=>{var{attr:l,size:d,title:m}=a,k=le(a,re),v=d||r.size||"1em",g;return r.className&&(g=r.className),a.className&&(g=(g?g+" ":"")+a.className),y.createElement("svg",E({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,l,k,{className:g,style:S(S({color:a.color||r.color},r.style),a.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),m&&y.createElement("title",null,m),a.children)};return B!==void 0?y.createElement(B.Consumer,null,r=>s(r)):s(U)}function F(a){return f({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Chat_1"},child:[{tag:"path",attr:{d:"M3.316,19.937A1.251,1.251,0,0,1,2.065,18.69l0-1.716L2.068,6.56a2.5,2.5,0,0,1,2.5-2.5H19.44a2.5,2.5,0,0,1,2.5,2.5v8.41a2.5,2.5,0,0,1-2.5,2.5H6.918a1.49,1.49,0,0,0-1.06.439L4.2,19.57A1.246,1.246,0,0,1,3.316,19.937ZM4.568,5.062a1.5,1.5,0,0,0-1.5,1.5L3.06,16.973l0,1.714a.25.25,0,0,0,.427.176L5.151,17.2a2.482,2.482,0,0,1,1.767-.732H19.44a1.5,1.5,0,0,0,1.5-1.5V6.562a1.5,1.5,0,0,0-1.5-1.5Z"},child:[]}]}]})(a)}function me(a){return f({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Check"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M15.81,10.4a.5.5,0,0,0-.71-.71l-3.56,3.56L9.81,11.52a.5.5,0,0,0-.71.71l2.08,2.08a.513.513,0,0,0,.71,0Z"},child:[]},{tag:"path",attr:{d:"M12,21.934A9.934,9.934,0,1,1,21.933,12,9.945,9.945,0,0,1,12,21.934ZM12,3.067A8.934,8.934,0,1,0,20.933,12,8.944,8.944,0,0,0,12,3.067Z"},child:[]}]}]}]})(a)}function p(a){return f({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(a)}function _(a){return f({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Globe"},child:[{tag:"path",attr:{d:"M14.645,2.428a8.1,8.1,0,0,0-1.61-.3,9.332,9.332,0,0,0-3.6.28l-.07.02a9.928,9.928,0,0,0,.01,19.15,9.091,9.091,0,0,0,2.36.34,1.274,1.274,0,0,0,.27.02,9.65,9.65,0,0,0,2.63-.36,9.931,9.931,0,0,0,.01-19.15Zm-.27.96a8.943,8.943,0,0,1,5.84,5.11h-4.26a13.778,13.778,0,0,0-2.74-5.35A8.254,8.254,0,0,1,14.375,3.388Zm-2.37-.09a12.78,12.78,0,0,1,2.91,5.2H9.075A12.545,12.545,0,0,1,12.005,3.3Zm3.16,6.2a13.193,13.193,0,0,1,0,5.01H8.845a12.185,12.185,0,0,1-.25-2.5,12.353,12.353,0,0,1,.25-2.51Zm-5.6-6.09.07-.02a9.152,9.152,0,0,1,1.16-.23A13.618,13.618,0,0,0,8.045,8.5H3.8A9,9,0,0,1,9.565,3.408Zm-6.5,8.6a8.71,8.71,0,0,1,.37-2.51h4.39a13.95,13.95,0,0,0-.23,2.51,13.757,13.757,0,0,0,.23,2.5H3.435A8.591,8.591,0,0,1,3.065,12.008Zm6.57,8.61a8.9,8.9,0,0,1-5.84-5.11h4.24a13.632,13.632,0,0,0,2.77,5.35A8.1,8.1,0,0,1,9.635,20.618Zm-.56-5.11h5.84a12.638,12.638,0,0,1-2.91,5.21A12.872,12.872,0,0,1,9.075,15.508Zm5.3,5.11a11.551,11.551,0,0,1-1.17.24,13.8,13.8,0,0,0,2.75-5.35h4.26A8.924,8.924,0,0,1,14.375,20.618Zm1.8-6.11a13.611,13.611,0,0,0,0-5.01h4.39a8.379,8.379,0,0,1,.37,2.51,8.687,8.687,0,0,1-.36,2.5Z"},child:[]}]}]})(a)}function P(a){return f({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Mail"},child:[{tag:"path",attr:{d:"M19.435,4.065H4.565a2.5,2.5,0,0,0-2.5,2.5v10.87a2.5,2.5,0,0,0,2.5,2.5h14.87a2.5,2.5,0,0,0,2.5-2.5V6.565A2.5,2.5,0,0,0,19.435,4.065Zm-14.87,1h14.87a1.489,1.489,0,0,1,1.49,1.39c-2.47,1.32-4.95,2.63-7.43,3.95a6.172,6.172,0,0,1-1.06.53,2.083,2.083,0,0,1-1.67-.39c-1.42-.75-2.84-1.51-4.25-2.26-1.14-.6-2.3-1.21-3.44-1.82A1.491,1.491,0,0,1,4.565,5.065Zm16.37,12.37a1.5,1.5,0,0,1-1.5,1.5H4.565a1.5,1.5,0,0,1-1.5-1.5V7.6c2.36,1.24,4.71,2.5,7.07,3.75a5.622,5.622,0,0,0,1.35.6,2.872,2.872,0,0,0,2-.41c1.45-.76,2.89-1.53,4.34-2.29,1.04-.56,2.07-1.1,3.11-1.65Z"},child:[]}]}]})(a)}function xe(a){return f({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Shopping_Tag"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M20.605,5.988a2.8,2.8,0,0,0-2.6-2.59l-4.56-.32a2.842,2.842,0,0,0-2.17.81L3.9,11.278a2.794,2.794,0,0,0,0,3.95l4.87,4.88a2.8,2.8,0,0,0,3.96,0l7.38-7.39a2.779,2.779,0,0,0,.81-2.17ZM12.015,19.4a1.8,1.8,0,0,1-2.54,0l-4.87-4.87a1.793,1.793,0,0,1,0-2.55l1.17-1.17,7.42,7.42Zm7.38-7.38-5.5,5.5L6.485,10.1l5.5-5.5a1.786,1.786,0,0,1,1.27-.53c.04,0,.08.01.12.01l4.56.32a1.8,1.8,0,0,1,1.67,1.66l.32,4.56A1.829,1.829,0,0,1,19.4,12.018Z"},child:[]},{tag:"circle",attr:{cx:"17",cy:"6.999",r:"0.862"},child:[]}]}]}]})(a)}function V(a){return f({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"User"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M17.438,21.937H6.562a2.5,2.5,0,0,1-2.5-2.5V18.61c0-3.969,3.561-7.2,7.938-7.2s7.938,3.229,7.938,7.2v.827A2.5,2.5,0,0,1,17.438,21.937ZM12,12.412c-3.826,0-6.938,2.78-6.938,6.2v.827a1.5,1.5,0,0,0,1.5,1.5H17.438a1.5,1.5,0,0,0,1.5-1.5V18.61C18.938,15.192,15.826,12.412,12,12.412Z"},child:[]},{tag:"path",attr:{d:"M12,9.911a3.924,3.924,0,1,1,3.923-3.924A3.927,3.927,0,0,1,12,9.911Zm0-6.847a2.924,2.924,0,1,0,2.923,2.923A2.926,2.926,0,0,0,12,3.064Z"},child:[]}]}]}]})(a)}const n="#2F3133",N="rgba(47,49,51,0.05)",h="rgba(47,49,51,0.09)",b="rgba(47,49,51,0.18)",he="rgba(47,49,51,0.07)",ge="#1a1c1e",C="rgba(255,255,255,0.65)",ue=[{label:"General Settings",id:"section-general",Icon:_},{label:"Professional Seller",id:"section-pro",Icon:V},{label:"Comment Templates",id:"section-comments",Icon:F},{label:"Messages",id:"section-messages",Icon:P}];function pe(){const[a,s]=c.useState("amount"),[r,l]=c.useState(""),[d,m]=c.useState(""),[k,v]=c.useState(""),[g,M]=c.useState(!1),[z,O]=c.useState(""),[Y,R]=c.useState(!1),[j,I]=c.useState([]),[w,T]=c.useState(""),K=c.useRef(null);c.useEffect(()=>{chrome.storage.local.get([i.PRO_PRICE_REDUCTION_TYPE,i.PRO_PRICE_REDUCTION_VALUE,i.MIN_PRICE,i.SHIPPING_DESTINATION_COUNTRY,i.HIDE_SOCIAL_MEDIA,i.PREDEFINED_COMMENTS,i.MESSAGE_SIGNATURE],function(t){s(t[i.PRO_PRICE_REDUCTION_TYPE]??"amount"),l(t[i.PRO_PRICE_REDUCTION_VALUE]??""),m(t[i.MIN_PRICE]??""),v(t[i.SHIPPING_DESTINATION_COUNTRY]??""),M(t[i.HIDE_SOCIAL_MEDIA]??!1),I(t[i.PREDEFINED_COMMENTS]??[]),O(t[i.MESSAGE_SIGNATURE]??"")})},[]);function x(){R(!0),setTimeout(()=>R(!1),2e3)}async function A(t){await chrome.storage.local.set({[i.PRO_PRICE_REDUCTION_TYPE]:t}),s(t),x()}async function W(t){const o=t.replace(/,/g,".");await chrome.storage.local.set({[i.PRO_PRICE_REDUCTION_VALUE]:o}),l(t),x()}async function q(t){const o=t.replace(/,/g,".");await chrome.storage.local.set({[i.MIN_PRICE]:o}),m(t),x()}async function $(t){await chrome.storage.local.set({[i.SHIPPING_DESTINATION_COUNTRY]:t}),v(t),x()}async function J(t){await chrome.storage.local.set({[i.HIDE_SOCIAL_MEDIA]:t}),M(t),x()}async function D(){const t=w.trim();if(!t||j.includes(t))return;const o=[...j,t];await chrome.storage.local.set({[i.PREDEFINED_COMMENTS]:o}),I(o),T(""),x()}async function Q(t){const o=j.filter((Z,u)=>u!==t);await chrome.storage.local.set({[i.PREDEFINED_COMMENTS]:o}),I(o),x()}async function X(t){await chrome.storage.local.set({[i.MESSAGE_SIGNATURE]:t,[i.SIGNATURE_BANNER_DISMISSED]:!1}),O(t),x()}function ee(t){var o;(o=document.getElementById(t))==null||o.scrollIntoView({behavior:"smooth",block:"start"})}return e.jsxs("div",{className:"min-h-screen",style:{background:"#ecf0f1"},children:[e.jsx("div",{className:"bg-white shadow-sm border-b border-gray-200",children:e.jsx("div",{className:"max-w-6xl mx-auto px-6 py-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg overflow-hidden",style:{background:n},children:e.jsx("img",{src:chrome.runtime.getURL("128.png"),alt:"Cardmarket Companion",style:{width:32,height:32}})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold",style:{color:n},children:"Settings"}),e.jsx("p",{className:"text-gray-500 text-sm mt-1",children:"Advanced configuration for CardMarket Companion"})]})]})})}),Y&&e.jsx("div",{className:"fixed top-6 right-6 z-50 animate-in slide-in-from-top duration-300",children:e.jsxs("div",{className:"text-white px-6 py-3 rounded-lg shadow-lg flex items-center gap-3",style:{background:"#27ae60"},children:[e.jsx(me,{className:"w-6 h-6"}),e.jsx("span",{className:"font-medium",children:"Settings saved!"})]})}),e.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-8 flex gap-8 items-start",children:[e.jsx("aside",{style:{width:200,flexShrink:0},children:e.jsxs("nav",{className:"sticky bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden",style:{top:24},children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-100",style:{background:n},children:e.jsx("p",{className:"text-xs font-bold text-white uppercase tracking-wider",children:"Navigation"})}),e.jsx("ul",{style:{listStyle:"none",margin:0,padding:"8px 0"},children:ue.map(({label:t,id:o,Icon:Z})=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>ee(o),style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"10px 16px",fontSize:13,fontWeight:500,color:"#374151",background:"none",border:"none",cursor:"pointer",textAlign:"left",transition:"background 0.15s, color 0.15s"},onMouseEnter:u=>{u.currentTarget.style.background=he,u.currentTarget.style.color=n},onMouseLeave:u=>{u.currentTarget.style.background="",u.currentTarget.style.color="#374151"},children:[e.jsx(Z,{style:{width:16,height:16,color:n,flexShrink:0}}),t]})},o))})]})}),e.jsxs("div",{className:"flex-1",style:{paddingBottom:80},children:[e.jsxs("div",{id:"section-general",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:h},children:e.jsx(_,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"General Settings"}),e.jsx("p",{className:"text-sm mt-1",style:{color:C},children:"Global preferences for all pages"})]})]})}),e.jsxs("div",{className:"p-8",children:[e.jsx("div",{className:"rounded-xl p-6 border-2",style:{background:N,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:h},children:e.jsx(_,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"destination-country",className:"block text-sm font-semibold text-gray-800 mb-2",children:"Your Destination Country"}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:"Select your country to display estimated shipping costs in the article table on product pages."}),e.jsxs("select",{id:"destination-country",value:k,onChange:t=>$(t.target.value),className:"w-full max-w-xs rounded-lg border-2 border-gray-300 px-4 py-3 text-sm focus:outline-none transition-all shadow-sm",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor="",children:[e.jsx("option",{value:"",children:"— Not configured —"}),se.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]})]}),e.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[e.jsx(p,{className:"w-4 h-4",style:{color:n}}),"Shipping costs are an estimation based on the destination country and may not reflect actual costs at checkout."]})]})]})}),e.jsx("div",{className:"rounded-xl p-6 border-2 mt-4",style:{background:N,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:h},children:e.jsx(p,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("label",{htmlFor:"hide-social-media",className:"block text-sm font-semibold text-gray-800 mb-1",children:"Hide Social Media Buttons"}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:"Remove the social media sharing buttons (Facebook, Twitter, Reddit, Mail) from article pages."}),e.jsxs("label",{className:"relative flex items-center gap-3 cursor-pointer w-fit",children:[e.jsx("input",{id:"hide-social-media",type:"checkbox",checked:g,onChange:t=>J(t.target.checked),className:"w-5 h-5 rounded",style:{accentColor:n}}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable"})]})]})]})})]})]}),e.jsxs("div",{id:"section-pro",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:h},children:e.jsx(V,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"Professional Seller Pricing"}),e.jsx("p",{className:"text-sm mt-1",style:{color:C},children:"Configure settings for Pro Mode pricing"})]})]})}),e.jsxs("div",{className:"p-8 space-y-6",children:[e.jsx("div",{className:"rounded-xl border-2 p-5",style:{background:N,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(p,{className:"w-6 h-6 flex-shrink-0 mt-0.5",style:{color:n}}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-800 font-semibold mb-1",children:"Activate Pro Mode in the extension popup"}),e.jsx("p",{className:"text-xs text-gray-500",children:'Select "Pro Mode" from the pricing mode dropdown to use these settings.'})]})]})}),e.jsx("div",{className:"rounded-xl p-6 border-2",style:{background:N,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:h},children:e.jsx(xe,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"Price Reduction Strategy"}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:"To stay competitive and maximise your profit margin, ensure your price is below the first professional or power seller's price by a fixed amount or percentage."}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("label",{className:`relative flex items-center gap-3 p-4 border-2 rounded-lg cursor-pointer transition-all bg-white ${a==="amount"?"shadow-md":"border-gray-300 hover:border-gray-400"}`,style:a==="amount"?{borderColor:n}:{},children:[e.jsx("input",{type:"radio",name:"reduction-type",value:"amount",checked:a==="amount",onChange:()=>A("amount"),className:"w-5 h-5",style:{accentColor:n}}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-semibold text-gray-800",children:"Fixed Amount"}),e.jsx("p",{className:"text-xs text-gray-500",children:"Subtract euros"})]})]}),e.jsxs("label",{className:`relative flex items-center gap-3 p-4 border-2 rounded-lg cursor-pointer transition-all bg-white ${a==="percentage"?"shadow-md":"border-gray-300 hover:border-gray-400"}`,style:a==="percentage"?{borderColor:n}:{},children:[e.jsx("input",{type:"radio",name:"reduction-type",value:"percentage",checked:a==="percentage",onChange:()=>A("percentage"),className:"w-5 h-5",style:{accentColor:n}}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-semibold text-gray-800",children:"Percentage"}),e.jsx("p",{className:"text-xs text-gray-500",children:"Reduce by %"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"Reduction Value"}),e.jsxs("div",{className:"relative flex-1 max-w-xs",children:[e.jsx("input",{type:"text",inputMode:"decimal",value:r,onChange:t=>W(t.target.value),placeholder:a==="percentage"?"e.g., 5":"e.g., 0.50",pattern:"[0-9]*[.,]?[0-9]*",className:"w-full rounded-lg border-2 border-gray-300 pl-4 pr-12 py-3 text-sm focus:outline-none transition-all shadow-sm",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""}),e.jsx("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-lg font-semibold",style:{color:n},children:a==="percentage"?"%":"€"})]}),e.jsxs("p",{className:"text-xs text-gray-500 mt-2 flex items-center gap-1",children:[e.jsx(p,{className:"w-4 h-4",style:{color:n}}),a==="percentage"?"Your price will be lower by this percentage":"Your price will be lower by this fixed amount"]})]}),a==="amount"&&e.jsxs("div",{className:"pt-4 border-t",style:{borderColor:b},children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"Minimum Price"}),e.jsxs("div",{className:"relative flex-1 max-w-xs",children:[e.jsx("input",{type:"text",inputMode:"decimal",value:d,onChange:t=>q(t.target.value),placeholder:"e.g., 0.50",pattern:"[0-9]*[.,]?[0-9]*",className:"w-full rounded-lg border-2 border-gray-300 pl-4 pr-12 py-3 text-sm focus:outline-none transition-all shadow-sm",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""}),e.jsx("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-lg font-semibold",style:{color:n},children:"€"})]}),e.jsxs("p",{className:"text-xs text-gray-500 mt-2 flex items-center gap-1",children:[e.jsx(p,{className:"w-4 h-4",style:{color:n}}),"Prevent negative prices by setting a minimum threshold (synced with popup)"]})]})]})]})})]})]}),e.jsxs("div",{id:"section-comments",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:h},children:e.jsx(F,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"Comment Templates"}),e.jsx("p",{className:"text-sm mt-1",style:{color:C},children:"Predefined comments selectable on product pages"})]})]})}),e.jsxs("div",{className:"p-8 space-y-4",children:[e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-center justify-between gap-3 rounded-lg border border-gray-200 px-4 py-3 bg-gray-50",children:[e.jsx("span",{className:"text-sm text-gray-800 flex-1 break-words",children:L}),e.jsx("span",{className:"flex-shrink-0 text-xs text-gray-400 italic",children:"default"})]}),j.length===0?null:j.map((t,o)=>e.jsxs("li",{className:"flex items-center justify-between gap-3 rounded-lg border border-gray-200 px-4 py-3 bg-gray-50",children:[e.jsx("span",{className:"text-sm text-gray-800 flex-1 break-words",children:t}),e.jsx("button",{onClick:()=>Q(o),title:"Remove template",className:"flex-shrink-0 text-red-400 hover:text-red-600 transition-colors text-lg font-bold leading-none",children:"✕"})]},o))]}),e.jsxs("div",{className:"rounded-xl p-5 border-2",style:{background:N,borderColor:b},children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"New Template"}),e.jsx("textarea",{ref:K,value:w,onChange:t=>T(t.target.value),onKeyDown:t=>{t.key==="Enter"&&(t.ctrlKey||t.metaKey)&&D()},rows:3,placeholder:"Type a comment template…",className:"w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-sm focus:outline-none transition-all shadow-sm resize-none",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""}),e.jsxs("div",{className:"flex items-center justify-between mt-3",children:[e.jsx("p",{className:"text-xs text-gray-500",children:"Ctrl+Enter to add quickly"}),e.jsx("button",{onClick:D,disabled:!w.trim()||w.trim()===L||j.includes(w.trim()),className:"px-5 py-2 text-white text-sm font-semibold rounded-lg shadow-sm transition-all disabled:opacity-40 disabled:cursor-not-allowed",style:{background:n},onMouseEnter:t=>{t.target.disabled||(t.target.style.background=ge)},onMouseLeave:t=>{t.target.style.background=n},children:"Add Template"})]})]})]})]}),e.jsxs("div",{id:"section-messages",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:h},children:e.jsx(P,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"Messages"}),e.jsx("p",{className:"text-sm mt-1",style:{color:C},children:"Personalise your outgoing messages"})]})]})}),e.jsx("div",{className:"p-8",children:e.jsx("div",{className:"rounded-xl p-6 border-2",style:{background:N,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:h},children:e.jsx(P,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message-signature",className:"block text-sm font-semibold text-gray-800 mb-2",children:"Message Signature"}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:"This text will be automatically appended to every message you compose. Leave it empty to disable."}),e.jsx("textarea",{id:"message-signature",rows:4,value:z,onChange:t=>X(t.target.value),placeholder:`e.g. | ||
| import{j as e,c as ae}from"../../../assets/client-DHAoYkl4.js";import{R as v,r as h,L as o,D as F,C as se}from"../../../assets/default-comment-N7Yb-HYv.js";const re=[{id:1,name:"Austria"},{id:2,name:"Belgium"},{id:3,name:"Bulgaria"},{id:35,name:"Croatia"},{id:5,name:"Cyprus"},{id:6,name:"Czech Republic"},{id:8,name:"Denmark"},{id:9,name:"Estonia"},{id:11,name:"Finland"},{id:12,name:"France"},{id:7,name:"Germany"},{id:14,name:"Greece"},{id:15,name:"Hungary"},{id:37,name:"Iceland"},{id:16,name:"Ireland"},{id:17,name:"Italy"},{id:36,name:"Japan"},{id:21,name:"Latvia"},{id:18,name:"Liechtenstein"},{id:19,name:"Lithuania"},{id:20,name:"Luxembourg"},{id:22,name:"Malta"},{id:23,name:"Netherlands"},{id:24,name:"Norway"},{id:25,name:"Poland"},{id:26,name:"Portugal"},{id:27,name:"Romania"},{id:29,name:"Singapore"},{id:31,name:"Slovakia"},{id:30,name:"Slovenia"},{id:10,name:"Spain"},{id:28,name:"Sweden"},{id:4,name:"Switzerland"},{id:13,name:"United Kingdom"},{id:33,name:"Canada"}];var H={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},G=v.createContext&&v.createContext(H),le=["attr","size","title"];function ne(a,s){if(a==null)return{};var r=ie(a,s),l,d;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;d<g.length;d++)l=g[d],!(s.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(a,l)&&(r[l]=a[l])}return r}function ie(a,s){if(a==null)return{};var r={};for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){if(s.indexOf(l)>=0)continue;r[l]=a[l]}return r}function _(){return _=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var r=arguments[s];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a[l]=r[l])}return a},_.apply(this,arguments)}function U(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);s&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),r.push.apply(r,l)}return r}function T(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?U(Object(r),!0).forEach(function(l){oe(a,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(r,l))})}return a}function oe(a,s,r){return s=ce(s),s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function ce(a){var s=de(a,"string");return typeof s=="symbol"?s:s+""}function de(a,s){if(typeof a!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var l=r.call(a,s);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}function V(a){return a&&a.map((s,r)=>v.createElement(s.tag,T({key:r},s.attr),V(s.child)))}function N(a){return s=>v.createElement(me,_({attr:T({},a.attr)},s),V(a.child))}function me(a){var s=r=>{var{attr:l,size:d,title:g}=a,k=ne(a,le),f=d||r.size||"1em",u;return r.className&&(u=r.className),a.className&&(u=(u?u+" ":"")+a.className),v.createElement("svg",_({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,l,k,{className:u,style:T(T({color:a.color||r.color},r.style),a.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),g&&v.createElement("title",null,g),a.children)};return G!==void 0?v.createElement(G.Consumer,null,r=>s(r)):s(H)}function z(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Chat_1"},child:[{tag:"path",attr:{d:"M3.316,19.937A1.251,1.251,0,0,1,2.065,18.69l0-1.716L2.068,6.56a2.5,2.5,0,0,1,2.5-2.5H19.44a2.5,2.5,0,0,1,2.5,2.5v8.41a2.5,2.5,0,0,1-2.5,2.5H6.918a1.49,1.49,0,0,0-1.06.439L4.2,19.57A1.246,1.246,0,0,1,3.316,19.937ZM4.568,5.062a1.5,1.5,0,0,0-1.5,1.5L3.06,16.973l0,1.714a.25.25,0,0,0,.427.176L5.151,17.2a2.482,2.482,0,0,1,1.767-.732H19.44a1.5,1.5,0,0,0,1.5-1.5V6.562a1.5,1.5,0,0,0-1.5-1.5Z"},child:[]}]}]})(a)}function he(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Check"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M15.81,10.4a.5.5,0,0,0-.71-.71l-3.56,3.56L9.81,11.52a.5.5,0,0,0-.71.71l2.08,2.08a.513.513,0,0,0,.71,0Z"},child:[]},{tag:"path",attr:{d:"M12,21.934A9.934,9.934,0,1,1,21.933,12,9.945,9.945,0,0,1,12,21.934ZM12,3.067A8.934,8.934,0,1,0,20.933,12,8.944,8.944,0,0,0,12,3.067Z"},child:[]}]}]}]})(a)}function S(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(a)}function O(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Globe"},child:[{tag:"path",attr:{d:"M14.645,2.428a8.1,8.1,0,0,0-1.61-.3,9.332,9.332,0,0,0-3.6.28l-.07.02a9.928,9.928,0,0,0,.01,19.15,9.091,9.091,0,0,0,2.36.34,1.274,1.274,0,0,0,.27.02,9.65,9.65,0,0,0,2.63-.36,9.931,9.931,0,0,0,.01-19.15Zm-.27.96a8.943,8.943,0,0,1,5.84,5.11h-4.26a13.778,13.778,0,0,0-2.74-5.35A8.254,8.254,0,0,1,14.375,3.388Zm-2.37-.09a12.78,12.78,0,0,1,2.91,5.2H9.075A12.545,12.545,0,0,1,12.005,3.3Zm3.16,6.2a13.193,13.193,0,0,1,0,5.01H8.845a12.185,12.185,0,0,1-.25-2.5,12.353,12.353,0,0,1,.25-2.51Zm-5.6-6.09.07-.02a9.152,9.152,0,0,1,1.16-.23A13.618,13.618,0,0,0,8.045,8.5H3.8A9,9,0,0,1,9.565,3.408Zm-6.5,8.6a8.71,8.71,0,0,1,.37-2.51h4.39a13.95,13.95,0,0,0-.23,2.51,13.757,13.757,0,0,0,.23,2.5H3.435A8.591,8.591,0,0,1,3.065,12.008Zm6.57,8.61a8.9,8.9,0,0,1-5.84-5.11h4.24a13.632,13.632,0,0,0,2.77,5.35A8.1,8.1,0,0,1,9.635,20.618Zm-.56-5.11h5.84a12.638,12.638,0,0,1-2.91,5.21A12.872,12.872,0,0,1,9.075,15.508Zm5.3,5.11a11.551,11.551,0,0,1-1.17.24,13.8,13.8,0,0,0,2.75-5.35h4.26A8.924,8.924,0,0,1,14.375,20.618Zm1.8-6.11a13.611,13.611,0,0,0,0-5.01h4.39a8.379,8.379,0,0,1,.37,2.51,8.687,8.687,0,0,1-.36,2.5Z"},child:[]}]}]})(a)}function P(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Mail"},child:[{tag:"path",attr:{d:"M19.435,4.065H4.565a2.5,2.5,0,0,0-2.5,2.5v10.87a2.5,2.5,0,0,0,2.5,2.5h14.87a2.5,2.5,0,0,0,2.5-2.5V6.565A2.5,2.5,0,0,0,19.435,4.065Zm-14.87,1h14.87a1.489,1.489,0,0,1,1.49,1.39c-2.47,1.32-4.95,2.63-7.43,3.95a6.172,6.172,0,0,1-1.06.53,2.083,2.083,0,0,1-1.67-.39c-1.42-.75-2.84-1.51-4.25-2.26-1.14-.6-2.3-1.21-3.44-1.82A1.491,1.491,0,0,1,4.565,5.065Zm16.37,12.37a1.5,1.5,0,0,1-1.5,1.5H4.565a1.5,1.5,0,0,1-1.5-1.5V7.6c2.36,1.24,4.71,2.5,7.07,3.75a5.622,5.622,0,0,0,1.35.6,2.872,2.872,0,0,0,2-.41c1.45-.76,2.89-1.53,4.34-2.29,1.04-.56,2.07-1.1,3.11-1.65Z"},child:[]}]}]})(a)}function xe(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Shopping_Tag"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M20.605,5.988a2.8,2.8,0,0,0-2.6-2.59l-4.56-.32a2.842,2.842,0,0,0-2.17.81L3.9,11.278a2.794,2.794,0,0,0,0,3.95l4.87,4.88a2.8,2.8,0,0,0,3.96,0l7.38-7.39a2.779,2.779,0,0,0,.81-2.17ZM12.015,19.4a1.8,1.8,0,0,1-2.54,0l-4.87-4.87a1.793,1.793,0,0,1,0-2.55l1.17-1.17,7.42,7.42Zm7.38-7.38-5.5,5.5L6.485,10.1l5.5-5.5a1.786,1.786,0,0,1,1.27-.53c.04,0,.08.01.12.01l4.56.32a1.8,1.8,0,0,1,1.67,1.66l.32,4.56A1.829,1.829,0,0,1,19.4,12.018Z"},child:[]},{tag:"circle",attr:{cx:"17",cy:"6.999",r:"0.862"},child:[]}]}]}]})(a)}function J(a){return N({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"User"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M17.438,21.937H6.562a2.5,2.5,0,0,1-2.5-2.5V18.61c0-3.969,3.561-7.2,7.938-7.2s7.938,3.229,7.938,7.2v.827A2.5,2.5,0,0,1,17.438,21.937ZM12,12.412c-3.826,0-6.938,2.78-6.938,6.2v.827a1.5,1.5,0,0,0,1.5,1.5H17.438a1.5,1.5,0,0,0,1.5-1.5V18.61C18.938,15.192,15.826,12.412,12,12.412Z"},child:[]},{tag:"path",attr:{d:"M12,9.911a3.924,3.924,0,1,1,3.923-3.924A3.927,3.927,0,0,1,12,9.911Zm0-6.847a2.924,2.924,0,1,0,2.923,2.923A2.926,2.926,0,0,0,12,3.064Z"},child:[]}]}]}]})(a)}function ge({mode:a}){const[s,r]=h.useState(null),[l,d]=h.useState("");h.useEffect(()=>{chrome.storage.local.get(o.PRICE_ADJUSTMENT_OVERRIDES,c=>{const x=(c[o.PRICE_ADJUSTMENT_OVERRIDES]??{})[a]??null;r(x),d(x?String(x.value):"")})},[a]);async function g(c){const x=(await chrome.storage.local.get(o.PRICE_ADJUSTMENT_OVERRIDES))[o.PRICE_ADJUSTMENT_OVERRIDES]??{};c?x[a]=c:delete x[a],await chrome.storage.local.set({[o.PRICE_ADJUSTMENT_OVERRIDES]:x})}function k(c){const m=c?s??{type:"percentage",value:0}:null;r(m),d(m?String(m.value):""),g(m)}function f(c){if(!s)return;const m={...s,type:c};r(m),g(m)}function u(c){if(d(c),!s)return;const m=Number.parseFloat(c.replace(",",".")),x={...s,value:Number.isFinite(m)?m:0};r(x),g(x)}return e.jsxs("div",{style:{fontSize:"0.85rem"},children:[e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.4rem",cursor:"pointer"},children:[e.jsx("input",{type:"checkbox",checked:s!==null,onChange:c=>k(c.target.checked)}),"Custom offset for this mode"]}),s!==null?e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.4rem",marginTop:"0.4rem"},children:[e.jsxs("select",{value:s.type,onChange:c=>f(c.target.value),style:{fontSize:"0.85rem",padding:"0.2rem"},children:[e.jsx("option",{value:"percentage",children:"%"}),e.jsx("option",{value:"amount",children:"€"})]}),e.jsx("input",{type:"text",inputMode:"decimal",value:l,onChange:c=>u(c.target.value),placeholder:"e.g. -5",pattern:"-?[0-9]*[.,]?[0-9]*",style:{width:"6rem",fontSize:"0.85rem",padding:"0.2rem"}})]}):e.jsx("div",{style:{color:"#888",marginTop:"0.2rem"},children:"Falls back to the global default. Negative = cheaper."})]})}const n="#2F3133",E="rgba(47,49,51,0.05)",p="rgba(47,49,51,0.09)",b="rgba(47,49,51,0.18)",ue="rgba(47,49,51,0.07)",pe="#1a1c1e",M="rgba(255,255,255,0.65)",be=[{label:"General Settings",id:"section-general",Icon:O},{label:"Price Adjustment",id:"section-pro",Icon:J},{label:"Comment Templates",id:"section-comments",Icon:z},{label:"Messages",id:"section-messages",Icon:P}];function fe(){const[a,s]=h.useState("amount"),[r,l]=h.useState(""),[d,g]=h.useState(""),[k,f]=h.useState(""),[u,c]=h.useState(!1),[m,x]=h.useState(""),[K,R]=h.useState(!1),[w,A]=h.useState([]),[I,D]=h.useState(""),Y=h.useRef(null);h.useEffect(()=>{chrome.storage.local.get([o.PRICE_ADJUSTMENT_GLOBAL,o.MIN_PRICE,o.SHIPPING_DESTINATION_COUNTRY,o.HIDE_SOCIAL_MEDIA,o.PREDEFINED_COMMENTS,o.MESSAGE_SIGNATURE],function(t){const i=t[o.PRICE_ADJUSTMENT_GLOBAL];s((i==null?void 0:i.type)??"percentage"),l(i?String(i.value):""),g(t[o.MIN_PRICE]??""),f(t[o.SHIPPING_DESTINATION_COUNTRY]??""),c(t[o.HIDE_SOCIAL_MEDIA]??!1),A(t[o.PREDEFINED_COMMENTS]??[]),x(t[o.MESSAGE_SIGNATURE]??"")})},[]);function y(){R(!0),setTimeout(()=>R(!1),2e3)}async function L(t,i){const C=Number.parseFloat(i.replace(/,/g,"."));Number.isFinite(C)&&C!==0?await chrome.storage.local.set({[o.PRICE_ADJUSTMENT_GLOBAL]:{type:t,value:C}}):await chrome.storage.local.remove(o.PRICE_ADJUSTMENT_GLOBAL),y()}async function B(t){s(t),await L(t,r)}async function W(t){l(t),await L(a,t)}async function q(t){const i=t.replace(/,/g,".");await chrome.storage.local.set({[o.MIN_PRICE]:i}),g(t),y()}async function $(t){await chrome.storage.local.set({[o.SHIPPING_DESTINATION_COUNTRY]:t}),f(t),y()}async function Q(t){await chrome.storage.local.set({[o.HIDE_SOCIAL_MEDIA]:t}),c(t),y()}async function Z(){const t=I.trim();if(!t||w.includes(t))return;const i=[...w,t];await chrome.storage.local.set({[o.PREDEFINED_COMMENTS]:i}),A(i),D(""),y()}async function X(t){const i=w.filter((C,j)=>j!==t);await chrome.storage.local.set({[o.PREDEFINED_COMMENTS]:i}),A(i),y()}async function ee(t){await chrome.storage.local.set({[o.MESSAGE_SIGNATURE]:t,[o.SIGNATURE_BANNER_DISMISSED]:!1}),x(t),y()}function te(t){var i;(i=document.getElementById(t))==null||i.scrollIntoView({behavior:"smooth",block:"start"})}return e.jsxs("div",{className:"min-h-screen",style:{background:"#ecf0f1"},children:[e.jsx("div",{className:"bg-white shadow-sm border-b border-gray-200",children:e.jsx("div",{className:"max-w-6xl mx-auto px-6 py-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center shadow-lg overflow-hidden",style:{background:n},children:e.jsx("img",{src:chrome.runtime.getURL("128.png"),alt:"Cardmarket Companion",style:{width:32,height:32}})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold",style:{color:n},children:"Settings"}),e.jsx("p",{className:"text-gray-500 text-sm mt-1",children:"Advanced configuration for CardMarket Companion"})]})]})})}),K&&e.jsx("div",{className:"fixed top-6 right-6 z-50 animate-in slide-in-from-top duration-300",children:e.jsxs("div",{className:"text-white px-6 py-3 rounded-lg shadow-lg flex items-center gap-3",style:{background:"#27ae60"},children:[e.jsx(he,{className:"w-6 h-6"}),e.jsx("span",{className:"font-medium",children:"Settings saved!"})]})}),e.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-8 flex gap-8 items-start",children:[e.jsx("aside",{style:{width:200,flexShrink:0},children:e.jsxs("nav",{className:"sticky bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden",style:{top:24},children:[e.jsx("div",{className:"px-4 py-3 border-b border-gray-100",style:{background:n},children:e.jsx("p",{className:"text-xs font-bold text-white uppercase tracking-wider",children:"Navigation"})}),e.jsx("ul",{style:{listStyle:"none",margin:0,padding:"8px 0"},children:be.map(({label:t,id:i,Icon:C})=>e.jsx("li",{children:e.jsxs("button",{onClick:()=>te(i),style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"10px 16px",fontSize:13,fontWeight:500,color:"#374151",background:"none",border:"none",cursor:"pointer",textAlign:"left",transition:"background 0.15s, color 0.15s"},onMouseEnter:j=>{j.currentTarget.style.background=ue,j.currentTarget.style.color=n},onMouseLeave:j=>{j.currentTarget.style.background="",j.currentTarget.style.color="#374151"},children:[e.jsx(C,{style:{width:16,height:16,color:n,flexShrink:0}}),t]})},i))})]})}),e.jsxs("div",{className:"flex-1",style:{paddingBottom:80},children:[e.jsxs("div",{id:"section-general",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:p},children:e.jsx(O,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"General Settings"}),e.jsx("p",{className:"text-sm mt-1",style:{color:M},children:"Global preferences for all pages"})]})]})}),e.jsxs("div",{className:"p-8",children:[e.jsx("div",{className:"rounded-xl p-6 border-2",style:{background:E,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:p},children:e.jsx(O,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"destination-country",className:"block text-sm font-semibold text-gray-800 mb-2",children:"Your Destination Country"}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:"Select your country to display estimated shipping costs in the article table on product pages."}),e.jsxs("select",{id:"destination-country",value:k,onChange:t=>$(t.target.value),className:"w-full max-w-xs rounded-lg border-2 border-gray-300 px-4 py-3 text-sm focus:outline-none transition-all shadow-sm",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor="",children:[e.jsx("option",{value:"",children:"— Not configured —"}),re.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]})]}),e.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[e.jsx(S,{className:"w-4 h-4",style:{color:n}}),"Shipping costs are an estimation based on the destination country and may not reflect actual costs at checkout."]})]})]})}),e.jsx("div",{className:"rounded-xl p-6 border-2 mt-4",style:{background:E,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:p},children:e.jsx(S,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("label",{htmlFor:"hide-social-media",className:"block text-sm font-semibold text-gray-800 mb-1",children:"Hide Social Media Buttons"}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:"Remove the social media sharing buttons (Facebook, Twitter, Reddit, Mail) from article pages."}),e.jsxs("label",{className:"relative flex items-center gap-3 cursor-pointer w-fit",children:[e.jsx("input",{id:"hide-social-media",type:"checkbox",checked:u,onChange:t=>Q(t.target.checked),className:"w-5 h-5 rounded",style:{accentColor:n}}),e.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Enable"})]})]})]})})]})]}),e.jsxs("div",{id:"section-pro",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:p},children:e.jsx(J,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"Price Adjustment"}),e.jsx("p",{className:"text-sm mt-1",style:{color:M},children:"Shift your price relative to each mode's reference price"})]})]})}),e.jsxs("div",{className:"p-8 space-y-6",children:[e.jsx("div",{className:"rounded-xl p-6 border-2",style:{background:E,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:p},children:e.jsx(xe,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"Price Adjustment (global default)"}),e.jsxs("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:["Shift your price relative to the reference price of the selected mode. Use a negative value to undercut (e.g. −5 = 5% cheaper), a positive value to sell above it. ",e.jsx("br",{}),e.jsx("b",{children:"Any pricing mode can override this."})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("label",{className:`relative flex items-center gap-3 p-4 border-2 rounded-lg cursor-pointer transition-all bg-white ${a==="amount"?"shadow-md":"border-gray-300 hover:border-gray-400"}`,style:a==="amount"?{borderColor:n}:{},children:[e.jsx("input",{type:"radio",name:"reduction-type",value:"amount",checked:a==="amount",onChange:()=>B("amount"),className:"w-5 h-5",style:{accentColor:n}}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-semibold text-gray-800",children:"Fixed Amount"}),e.jsx("p",{className:"text-xs text-gray-500",children:"Shift by euros (±)"})]})]}),e.jsxs("label",{className:`relative flex items-center gap-3 p-4 border-2 rounded-lg cursor-pointer transition-all bg-white ${a==="percentage"?"shadow-md":"border-gray-300 hover:border-gray-400"}`,style:a==="percentage"?{borderColor:n}:{},children:[e.jsx("input",{type:"radio",name:"reduction-type",value:"percentage",checked:a==="percentage",onChange:()=>B("percentage"),className:"w-5 h-5",style:{accentColor:n}}),e.jsxs("div",{children:[e.jsx("span",{className:"text-sm font-semibold text-gray-800",children:"Percentage"}),e.jsx("p",{className:"text-xs text-gray-500",children:"Shift by % (±)"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"Adjustment Value"}),e.jsxs("div",{className:"relative flex-1 max-w-xs",children:[e.jsx("input",{type:"text",inputMode:"decimal",value:r,onChange:t=>W(t.target.value),placeholder:a==="percentage"?"e.g., -5":"e.g., -0.50",pattern:"-?[0-9]*[.,]?[0-9]*",className:"w-full rounded-lg border-2 border-gray-300 pl-4 pr-12 py-3 text-sm focus:outline-none transition-all shadow-sm",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""}),e.jsx("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-lg font-semibold",style:{color:n},children:a==="percentage"?"%":"€"})]}),e.jsxs("p",{className:"text-xs text-gray-500 mt-2 flex items-center gap-1",children:[e.jsx(S,{className:"w-4 h-4",style:{color:n}}),"Negative = cheaper than the reference, positive = more expensive."]})]}),e.jsxs("div",{className:"pt-4 border-t",style:{borderColor:b},children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"Minimum Price"}),e.jsxs("div",{className:"relative flex-1 max-w-xs",children:[e.jsx("input",{type:"text",inputMode:"decimal",value:d,onChange:t=>q(t.target.value),placeholder:"e.g., 0.50",pattern:"[0-9]*[.,]?[0-9]*",className:"w-full rounded-lg border-2 border-gray-300 pl-4 pr-12 py-3 text-sm focus:outline-none transition-all shadow-sm",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""}),e.jsx("span",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-lg font-semibold",style:{color:n},children:"€"})]}),e.jsxs("p",{className:"text-xs text-gray-500 mt-2 flex items-center gap-1",children:[e.jsx(S,{className:"w-4 h-4",style:{color:n}}),"Prevent negative prices by setting a minimum threshold (synced with popup)"]})]})]})]})}),e.jsxs("details",{className:"rounded-xl border-2",style:{background:E,borderColor:b},children:[e.jsx("summary",{className:"cursor-pointer select-none p-5 text-sm font-semibold text-gray-800",children:"Fine-tune per mode (optional)"}),e.jsxs("div",{className:"px-6 pb-6 space-y-4",children:[e.jsx("p",{className:"text-xs text-gray-500",children:"Each mode falls back to the global default above unless you set a custom offset here."}),[{mode:"pro",label:"Pro Mode — cheapest commercial price"},{mode:"trend",label:"Trend — average price"},{mode:"first",label:"First price — lowest listing"},{mode:"avg",label:"Average — mean of listings"}].map(({mode:t,label:i})=>e.jsxs("div",{className:"rounded-lg border p-4 bg-white",style:{borderColor:b},children:[e.jsx("div",{className:"text-sm font-semibold text-gray-800 mb-2",children:i}),e.jsx(ge,{mode:t})]},t))]})]})]})]}),e.jsxs("div",{id:"section-comments",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:p},children:e.jsx(z,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"Comment Templates"}),e.jsx("p",{className:"text-sm mt-1",style:{color:M},children:"Predefined comments selectable on product pages"})]})]})}),e.jsxs("div",{className:"p-8 space-y-4",children:[e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-center justify-between gap-3 rounded-lg border border-gray-200 px-4 py-3 bg-gray-50",children:[e.jsx("span",{className:"text-sm text-gray-800 flex-1 break-words",children:F}),e.jsx("span",{className:"flex-shrink-0 text-xs text-gray-400 italic",children:"default"})]}),w.length===0?null:w.map((t,i)=>e.jsxs("li",{className:"flex items-center justify-between gap-3 rounded-lg border border-gray-200 px-4 py-3 bg-gray-50",children:[e.jsx("span",{className:"text-sm text-gray-800 flex-1 break-words",children:t}),e.jsx("button",{onClick:()=>X(i),title:"Remove template",className:"flex-shrink-0 text-red-400 hover:text-red-600 transition-colors text-lg font-bold leading-none",children:"✕"})]},i))]}),e.jsxs("div",{className:"rounded-xl p-5 border-2",style:{background:E,borderColor:b},children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-800 mb-2",children:"New Template"}),e.jsx("textarea",{ref:Y,value:I,onChange:t=>D(t.target.value),onKeyDown:t=>{t.key==="Enter"&&(t.ctrlKey||t.metaKey)&&Z()},rows:3,placeholder:"Type a comment template…",className:"w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-sm focus:outline-none transition-all shadow-sm resize-none",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""}),e.jsxs("div",{className:"flex items-center justify-between mt-3",children:[e.jsx("p",{className:"text-xs text-gray-500",children:"Ctrl+Enter to add quickly"}),e.jsx("button",{onClick:Z,disabled:!I.trim()||I.trim()===F||w.includes(I.trim()),className:"px-5 py-2 text-white text-sm font-semibold rounded-lg shadow-sm transition-all disabled:opacity-40 disabled:cursor-not-allowed",style:{background:n},onMouseEnter:t=>{t.target.disabled||(t.target.style.background=pe)},onMouseLeave:t=>{t.target.style.background=n},children:"Add Template"})]})]})]})]}),e.jsxs("div",{id:"section-messages",className:"bg-white rounded-2xl shadow-xl border border-gray-100 overflow-hidden mb-6 transition-all hover:shadow-2xl",children:[e.jsx("div",{className:"px-8 py-6",style:{background:n},children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center",style:{background:p},children:e.jsx(P,{className:"w-7 h-7 text-white"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold text-white",children:"Messages"}),e.jsx("p",{className:"text-sm mt-1",style:{color:M},children:"Personalise your outgoing messages"})]})]})}),e.jsx("div",{className:"p-8",children:e.jsx("div",{className:"rounded-xl p-6 border-2",style:{background:E,borderColor:b},children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0 mt-1",style:{background:p},children:e.jsx(P,{className:"w-6 h-6",style:{color:n}})}),e.jsxs("div",{className:"flex-1 space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message-signature",className:"block text-sm font-semibold text-gray-800 mb-2",children:"Message Signature"}),e.jsx("p",{className:"text-sm text-gray-600 leading-relaxed mb-4",children:"This text will be automatically appended to every message you compose. Leave it empty to disable."}),e.jsx("textarea",{id:"message-signature",rows:4,value:m,onChange:t=>ee(t.target.value),placeholder:`e.g. | ||
| Best regards, | ||
| Your Name`,className:"w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-sm focus:outline-none transition-all shadow-sm resize-y font-mono",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""})]}),e.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[e.jsx(p,{className:"w-4 h-4",style:{color:n}}),"The signature is placed at the bottom of the message with 3 blank lines of spacing."]})]})]})})})]})]})]}),e.jsx("div",{style:{position:"fixed",bottom:0,left:0,right:0,zIndex:40,background:"white",borderTop:"1px solid #e5e7eb",boxShadow:"0 -4px 12px rgba(0,0,0,0.06)"},children:e.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-4 flex gap-4 items-center justify-between",children:[e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:"#d5f5e3"},children:e.jsx(p,{className:"w-6 h-6",style:{color:"#27ae60"}})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-800 text-sm",children:"Have feedback or ideas?"}),e.jsx("p",{className:"text-xs text-gray-500",children:"Share your thoughts to help improve the extension"})]})]}),e.jsx("button",{onClick:()=>window.open(ae.getGoogleFormUrl(),"_blank"),className:"px-5 py-2 text-white text-sm font-semibold rounded-lg shadow-md transition-all hover:shadow-lg",style:{background:"#27ae60"},onMouseEnter:t=>t.target.style.background="#229954",onMouseLeave:t=>t.target.style.background="#27ae60",children:"Share Feedback"})]})})]})}function be(){const a=document.querySelector("#__root");if(!a)throw new Error("Can't find Options root element");te.createRoot(a).render(e.jsx(pe,{}))}be(); | ||
| Your Name`,className:"w-full rounded-lg border-2 border-gray-300 px-4 py-3 text-sm focus:outline-none transition-all shadow-sm resize-y font-mono",onFocus:t=>t.target.style.borderColor=n,onBlur:t=>t.target.style.borderColor=""})]}),e.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[e.jsx(S,{className:"w-4 h-4",style:{color:n}}),"The signature is placed at the bottom of the message with 3 blank lines of spacing."]})]})]})})})]})]})]}),e.jsx("div",{style:{position:"fixed",bottom:0,left:0,right:0,zIndex:40,background:"white",borderTop:"1px solid #e5e7eb",boxShadow:"0 -4px 12px rgba(0,0,0,0.06)"},children:e.jsxs("div",{className:"max-w-6xl mx-auto px-6 py-4 flex gap-4 items-center justify-between",children:[e.jsxs("div",{className:"flex gap-4 items-center",children:[e.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center flex-shrink-0",style:{background:"#d5f5e3"},children:e.jsx(S,{className:"w-6 h-6",style:{color:"#27ae60"}})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-gray-800 text-sm",children:"Have feedback or ideas?"}),e.jsx("p",{className:"text-xs text-gray-500",children:"Share your thoughts to help improve the extension"})]})]}),e.jsx("button",{onClick:()=>window.open(se.getGoogleFormUrl(),"_blank"),className:"px-5 py-2 text-white text-sm font-semibold rounded-lg shadow-md transition-all hover:shadow-lg",style:{background:"#27ae60"},onMouseEnter:t=>t.target.style.background="#229954",onMouseLeave:t=>t.target.style.background="#27ae60",children:"Share Feedback"})]})})]})}function ye(){const a=document.querySelector("#__root");if(!a)throw new Error("Can't find Options root element");ae.createRoot(a).render(e.jsx(fe,{}))}ye(); |
@@ -8,4 +8,4 @@ <!doctype html> | ||
| <link rel="modulepreload" crossorigin href="/assets/client-DHAoYkl4.js"> | ||
| <link rel="modulepreload" crossorigin href="/assets/default-comment-BIe9HDxc.js"> | ||
| <link rel="stylesheet" crossorigin href="/assets/popup-B0DqMSHr.css"> | ||
| <link rel="modulepreload" crossorigin href="/assets/default-comment-N7Yb-HYv.js"> | ||
| <link rel="stylesheet" crossorigin href="/assets/popup-DG5lQsU5.css"> | ||
| </head> | ||
@@ -12,0 +12,0 @@ |
@@ -1,3 +0,3 @@ | ||
| import{j as r,c as A}from"../../../assets/client-DHAoYkl4.js";import{r as _,L as w,R as z,C as Y,D as F}from"../../../assets/default-comment-BIe9HDxc.js";function L(i){const b=f=>{if(f.key==="Enter"||f.key===" "){f.preventDefault();const j=document.getElementById(i.id);j&&j.click()}};return r.jsxs("div",{children:[r.jsx("input",{id:i.id,className:"peer hidden",type:"radio",name:"trend-price",value:i.value,checked:i.selectedValue===i.value,onChange:()=>i.valueChange(i.value)}),r.jsx("label",{htmlFor:i.id,role:"button",tabIndex:0,onKeyDown:b,className:"block cursor-pointer select-none rounded-md p-2 text-center peer-checked:bg-blue-950 peer-checked:text-white w-12",children:i.label})]})}var v=(i=>(i.TREND_PRICE_1_DAY="trendPrice1Day",i.TREND_PRICE_7_DAY="trendPrice7Day",i.TREND_PRICE_30_DAY="trendPrice30Day",i))(v||{});function O({onModeChange:i,onTrendChange:b}){const[f,j]=_.useState("trend"),[S,D]=_.useState(v.TREND_PRICE_7_DAY);_.useEffect(()=>{chrome.storage.local.get([w.PRICE_MODE,w.TREND],y=>{const l=y.priceMode??"trend",s=y.trend??v.TREND_PRICE_7_DAY;j(l),D(s)})},[]);const k=y=>{const l=y.target.value;j(l),i(l)},M=y=>{const l=y.target.value;D(l),b(l)};return r.jsxs("div",{id:"injected-mode-selector",className:"form-group row",style:{border:"1px solid var(--bs-highlight-color)",borderRadius:"0.25rem",marginBottom:"1rem",padding:"0.5rem"},children:[r.jsx("label",{className:"col-form-label col-form-label-sm col col-md-5 col-xl-4",style:{fontWeight:"bold"},children:"Pricing Mode"}),r.jsxs("div",{className:"col col-md-7 col-xl-8",children:[r.jsxs("select",{id:"price-mode-select-injected",className:"form-select form-select-sm",value:f,onChange:k,style:{marginBottom:"0.5rem"},children:[r.jsx("option",{value:"first",children:"First price"}),r.jsx("option",{value:"trend",children:"Trend"}),r.jsx("option",{value:"avg",children:"Average (all cards)"}),r.jsx("option",{value:"pro",children:"Pro Mode"})]}),f==="trend"&&r.jsxs("div",{id:"trend-selector-container",style:{marginTop:"0.5rem"},children:[r.jsx("label",{style:{fontSize:"0.875rem",display:"block",marginBottom:"0.25rem"},children:"Trend to use:"}),r.jsx("div",{style:{display:"flex",gap:"0.5rem"},children:[{value:v.TREND_PRICE_1_DAY,label:"1d"},{value:v.TREND_PRICE_7_DAY,label:"7d"},{value:v.TREND_PRICE_30_DAY,label:"30d"}].map(y=>r.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[r.jsx("input",{type:"radio",name:"trend-price-injected",value:y.value,id:`trend-${y.value}-injected`,className:"form-check-input",checked:S===y.value,onChange:M,style:{marginRight:"0.25rem"}}),r.jsx("label",{htmlFor:`trend-${y.value}-injected`,className:"form-check-label",style:{fontSize:"0.875rem",cursor:"pointer"},children:y.label})]},y.value))})]}),f==="pro"&&r.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},children:r.jsx("button",{onClick:()=>chrome.runtime.sendMessage({action:"openOptions"}),style:{fontSize:"0.75rem",color:"#1976d2",textDecoration:"underline",cursor:"pointer",fontWeight:"500",background:"none",border:"none",padding:"0"},children:"Pro Settings"})})]})]})}var B;(i=>{let b=null;function f(l,s,p){const u=document.querySelector(l);if(!u)return;const n=u.querySelector(":scope > div");if(!n)return;const e=Array.from(n.children);if(e.length<2)return;const t=e[1],o=document.querySelector("#mode-selector-react-root");o&&(b&&(b.unmount(),b=null),o.remove());const d=document.createElement("div");d.id="mode-selector-react-root",t.firstChild?t.insertBefore(d,t.firstChild):t.appendChild(d),b=A.createRoot(d),b.render(z.createElement(O,{onModeChange:s,onTrendChange:p}))}i.injectModeSelectorReact=f;function j(l,s,p,u="before"){const n=document.querySelector(s),e=document.querySelector(`#${l.id}`);e&&e.remove();const t=document.createElement("div");t.id=l.id,t.className=`form-group row ${p??""}`,t.style.border="1px solid var(--bs-highlight-color)",t.style.borderRadius="0.25rem";const o=document.createElement("label");o.textContent="Selling summary",o.className="col-form-label col-form-label-sm col col-md-5 col-xl-4",t.appendChild(o);const d=document.createElement("div");d.className="col col-md-7 col-xl-8 d-flex flex-wrap justify-content-between align-items-center",t.appendChild(d);const c=document.createElement("span");c.className="text-align-right",c.textContent=`${l.itemNumber}x`;const g=document.createElement("img");g.src=l.flagUrl,g.width=18,g.alt="Flag";const m=document.createElement("a");m.className=`article-condition condition-${l.condition.toLowerCase()} me-1`,m.style.display="flex",m.href="https://help.cardmarket.com/en/CardCondition",m.target="_blank",m.style.cursor="pointer";const N=document.createElement("span");N.className="badge",N.textContent=l.condition,m.appendChild(N);const a=document.createElement("span");a.textContent=l.price+"€",a.className="text-align-right";const E=document.createElement("span");E.className="justify-content-center align-items-center",E.style.display="flex",E.textContent=l.isFoil?"⭐️":"",E.style.width="18px",E.style.height="18px";const R=new URLSearchParams(window.location.search).get("isFoil");let x;R==="Y"&&!l.isFoil?(x=document.createElement("span"),x.textContent="⚠️ Price based on foil, please remove foil filter"):(R==="N"||!R)&&l.isFoil&&(x=document.createElement("span"),x.textContent="⚠️ Price based on non-foil, please add foil filter"),x&&(x.style.fontSize="0.8rem",x.style.textAlign="right",t.appendChild(x)),d.appendChild(c),d.appendChild(m),d.appendChild(g),d.appendChild(E),d.appendChild(a),u==="before"?n==null||n.before(t):n==null||n.after(t)}i.injectSellingSummary=j;function S(l,s){const p="inject-selling-metrics-overlay",u=document.querySelector(`#${p}`);u&&u.remove();const n=document.createElement("div");n.id=p,n.className="border rounded border-1",n.style.position="fixed",n.style.top="94px",n.style.right="4px",n.style.width="124px",n.style.height="auto",n.style.backgroundColor="var(--bs-body-bg)",n.style.color="var(--bs-body-color)",n.style.borderColor="var(--bs-body-color)",n.style.zIndex="9998",n.style.overflowY="auto",n.style.overflowX="hidden",n.style.padding="8px",n.style.boxShadow="0 4px 8px rgba(0, 0, 0, 0.2)";const e=document.createElement("p");e.textContent="Session total",e.style.fontWeight="bold",e.style.marginBottom="0.25rem",e.style.textAlign="center",n.appendChild(e),i.injectLabelValueItem({name:"🃏 ",title:"Total items"},`${l.totalItems}`,n,{label:"1.25rem",value:"0.8rem"},"mb-1"),i.injectLabelValueItem({name:"💰",title:"Total value"},`${l.totalValue.toFixed(2)}€`,n,{label:"1.25rem",value:"0.8rem"},"mb-1");const t=document.createElement("a");t.textContent="Reset",t.style.display="flex",t.style.justifyContent="center",t.style.color="var(--bs-danger-color)",t.style.cursor="pointer",t.style.fontSize="0.8rem",t.style.marginTop="0.1rem",t.style.textDecoration="underline",t.addEventListener("click",()=>{s()}),n.appendChild(t);const o=document.createElement("div");o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.padding="4px",o.style.marginTop="6px",n.appendChild(o),k(o,{text:"Support",size:"tiny"}),document.body.appendChild(n)}i.injectSellingMetricsOverlay=S;function D(l,s,p,u,n){const e=document.createElement("div");e.className=`d-flex justify-content-between align-items-center ${n??""}`;const t=document.createElement("span");t.textContent=l.name,t.title=l.title,t.style.fontSize=(u==null?void 0:u.label)??"1rem",t.style.textOverflow="ellipsis",t.style.overflow="hidden",t.style.whiteSpace="nowrap";const o=document.createElement("span");o.textContent=s,o.style.fontSize=(u==null?void 0:u.value)??"1rem",o.style.fontWeight="bold",o.style.textOverflow="ellipsis",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e.appendChild(t),e.appendChild(o),p.appendChild(e)}i.injectLabelValueItem=D;function k(l,s){const p=(s==null?void 0:s.url)??"https://buymeacoffee.com/zagoadev",u=(s==null?void 0:s.text)??"Buy me a coffee",n=(s==null?void 0:s.size)??"normal",e=document.createElement("a");e.href=p,e.target="_blank",e.rel="noopener noreferrer",e.role="button",e.className=(s==null?void 0:s.className)??"",e.setAttribute("aria-label",(s==null?void 0:s.ariaLabel)??u),e.title=(s==null?void 0:s.ariaLabel)??u,e.style.display="inline-flex",e.style.alignItems="center",e.style.gap="8px",e.style.textDecoration="none",e.style.border="none",e.style.cursor="pointer",e.style.borderRadius="6px",e.style.backgroundColor="#FFDD00",e.style.color="#000",e.style.boxShadow="0 2px 6px rgba(0,0,0,0.12)",e.style.transition="transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease",e.style.padding=n==="tiny"?"4px":"6px 12px",e.style.fontSize=n==="tiny"?"8px":"12px",e.style.fontWeight="600",e.style.lineHeight="1";const t=document.createElement("span");t.setAttribute("aria-hidden","true"),t.style.display="inline-flex",t.style.alignItems="center",t.style.justifyContent="center";const o=n==="tiny"?12:16;t.innerHTML=` | ||
| <svg width="${o}" height="${o}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> | ||
| import{j as n,c as F}from"../../../assets/client-DHAoYkl4.js";import{r as R,L as v,R as O,C as $,D as A}from"../../../assets/default-comment-N7Yb-HYv.js";function L(o){const x=y=>{if(y.key==="Enter"||y.key===" "){y.preventDefault();const C=document.getElementById(o.id);C&&C.click()}};return n.jsxs("div",{children:[n.jsx("input",{id:o.id,className:"peer hidden",type:"radio",name:"trend-price",value:o.value,checked:o.selectedValue===o.value,onChange:()=>o.valueChange(o.value)}),n.jsx("label",{htmlFor:o.id,role:"button",tabIndex:0,onKeyDown:x,className:"block cursor-pointer select-none rounded-md p-2 text-center peer-checked:bg-blue-950 peer-checked:text-white w-12",children:o.label})]})}var E=(o=>(o.TREND_PRICE_1_DAY="trendPrice1Day",o.TREND_PRICE_7_DAY="trendPrice7Day",o.TREND_PRICE_30_DAY="trendPrice30Day",o))(E||{});function V(o){if(!o||!Number.isFinite(o.value)||o.value===0)return"none";const x=o.value>0?"+":"";return o.type==="percentage"?`${x}${o.value}%`:`${x}${o.value} €`}function U(o,x,y){return(y==null?void 0:y[o])??x??null}function z({mode:o}){const[x,y]=R.useState(null),[C,S]=R.useState({});R.useEffect(()=>{function D(){chrome.storage.local.get([v.PRICE_ADJUSTMENT_GLOBAL,v.PRICE_ADJUSTMENT_OVERRIDES],h=>{y(h[v.PRICE_ADJUSTMENT_GLOBAL]??null),S(h[v.PRICE_ADJUSTMENT_OVERRIDES]??{})})}return D(),chrome.storage.onChanged.addListener(D),()=>chrome.storage.onChanged.removeListener(D)},[]);const N=C[o]!=null,j=U(o,x,C);return n.jsxs("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"space-between",gap:"0.4rem",marginTop:"0.4rem",fontSize:"0.8rem"},children:[n.jsxs("span",{children:["Price offset:"," ",n.jsxs("strong",{style:{color:N?"#1976d2":"#555"},children:[V(j)," (",N?"custom":"global",")"]})]}),n.jsx("button",{onClick:()=>chrome.runtime.sendMessage({action:"openOptions"}),style:{fontSize:"0.75rem",color:"#1976d2",textDecoration:"underline",cursor:"pointer",background:"none",border:"none",padding:0},children:"Configure in Settings"})]})}function W({onModeChange:o,onTrendChange:x}){const[y,C]=R.useState("trend"),[S,N]=R.useState(E.TREND_PRICE_7_DAY);R.useEffect(()=>{chrome.storage.local.get([v.PRICE_MODE,v.TREND],h=>{const r=h.priceMode??"trend",a=h.trend??E.TREND_PRICE_7_DAY;C(r),N(a)})},[]);const j=h=>{const r=h.target.value;C(r),o(r)},D=h=>{const r=h.target.value;N(r),x(r)};return n.jsxs("div",{id:"injected-mode-selector",className:"form-group",style:{border:"1px solid var(--bs-highlight-color)",borderRadius:"0.25rem",marginBottom:"1rem",padding:"0.5rem"},children:[n.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[n.jsx("label",{htmlFor:"price-mode-select-injected",className:"col-form-label col-form-label-sm",style:{fontWeight:"bold",marginBottom:0,whiteSpace:"nowrap"},children:"Pricing Mode"}),n.jsxs("select",{id:"price-mode-select-injected",className:"form-select form-select-sm",value:y,onChange:j,style:{flex:1},children:[n.jsx("option",{value:"first",children:"First price"}),n.jsx("option",{value:"trend",children:"Trend"}),n.jsx("option",{value:"avg",children:"Average (all cards)"}),n.jsx("option",{value:"pro",children:"Pro Mode"})]})]}),y==="trend"&&n.jsxs("div",{id:"trend-selector-container",style:{marginTop:"0.5rem",justifySelf:"center"},children:[n.jsx("label",{style:{fontSize:"0.875rem",display:"block",marginBottom:"0.25rem"},children:"Trend to use:"}),n.jsx("div",{style:{display:"flex",gap:"0.5rem"},children:[{value:E.TREND_PRICE_1_DAY,label:"1d"},{value:E.TREND_PRICE_7_DAY,label:"7d"},{value:E.TREND_PRICE_30_DAY,label:"30d"}].map(h=>n.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[n.jsx("input",{type:"radio",name:"trend-price-injected",value:h.value,id:`trend-${h.value}-injected`,className:"form-check-input",checked:S===h.value,onChange:D,style:{marginRight:"0.25rem"}}),n.jsx("label",{htmlFor:`trend-${h.value}-injected`,className:"form-check-label",style:{fontSize:"0.875rem",cursor:"pointer"},children:h.label})]},h.value))})]}),n.jsx(z,{mode:y})]})}var B;(o=>{let x=null;function y(r,a,p){const u=document.querySelector(r);if(!u)return;const l=u.querySelector(":scope > div");if(!l)return;const e=Array.from(l.children);if(e.length<2)return;const t=e[1],s=document.querySelector("#mode-selector-react-root");s&&(x&&(x.unmount(),x=null),s.remove());const c=document.createElement("div");c.id="mode-selector-react-root",t.firstChild?t.insertBefore(c,t.firstChild):t.appendChild(c),x=F.createRoot(c),x.render(O.createElement(W,{onModeChange:a,onTrendChange:p}))}o.injectModeSelectorReact=y;function C(r,a,p,u="before"){const l=document.querySelector(a),e=document.querySelector(`#${r.id}`);e&&e.remove();const t=document.createElement("div");t.id=r.id,t.className=`form-group row ${p??""}`,t.style.border="1px solid var(--bs-highlight-color)",t.style.borderRadius="0.25rem";const s=document.createElement("label");s.textContent="Selling summary",s.className="col-form-label col-form-label-sm col col-md-5 col-xl-4",t.appendChild(s);const c=document.createElement("div");c.className="col col-md-7 col-xl-8 d-flex flex-wrap justify-content-between align-items-center",t.appendChild(c);const d=document.createElement("span");d.className="text-align-right",d.textContent=`${r.itemNumber}x`;const b=document.createElement("img");b.src=r.flagUrl,b.width=18,b.alt="Flag";const m=document.createElement("a");m.className=`article-condition condition-${r.condition.toLowerCase()} me-1`,m.style.display="flex",m.href="https://help.cardmarket.com/en/CardCondition",m.target="_blank",m.style.cursor="pointer";const _=document.createElement("span");_.className="badge",_.textContent=r.condition,m.appendChild(_);const i=document.createElement("span");i.textContent=r.price+"€",i.className="text-align-right";const k=document.createElement("span");k.className="justify-content-center align-items-center",k.style.display="flex",k.textContent=r.isFoil?"⭐️":"",k.style.width="18px",k.style.height="18px";const T=new URLSearchParams(window.location.search).get("isFoil");let g;T==="Y"&&!r.isFoil?(g=document.createElement("span"),g.textContent="⚠️ Price based on foil, please remove foil filter"):(T==="N"||!T)&&r.isFoil&&(g=document.createElement("span"),g.textContent="⚠️ Price based on non-foil, please add foil filter"),g&&(g.style.fontSize="0.8rem",g.style.textAlign="right",t.appendChild(g)),c.appendChild(d),c.appendChild(m),c.appendChild(b),c.appendChild(k),c.appendChild(i),u==="before"?l==null||l.before(t):l==null||l.after(t)}o.injectSellingSummary=C;function S(r,a){const p="inject-selling-metrics-overlay",u=document.querySelector(`#${p}`);u&&u.remove();const l=document.createElement("div");l.id=p,l.className="border rounded border-1",l.style.position="fixed",l.style.top="94px",l.style.right="4px",l.style.width="124px",l.style.height="auto",l.style.backgroundColor="var(--bs-body-bg)",l.style.color="var(--bs-body-color)",l.style.borderColor="var(--bs-body-color)",l.style.zIndex="9998",l.style.overflowY="auto",l.style.overflowX="hidden",l.style.padding="8px",l.style.boxShadow="0 4px 8px rgba(0, 0, 0, 0.2)";const e=document.createElement("p");e.textContent="Session total",e.style.fontWeight="bold",e.style.marginBottom="0.25rem",e.style.textAlign="center",l.appendChild(e),o.injectLabelValueItem({name:"🃏 ",title:"Total items"},`${r.totalItems}`,l,{label:"1.25rem",value:"0.8rem"},"mb-1"),o.injectLabelValueItem({name:"💰",title:"Total value"},`${r.totalValue.toFixed(2)}€`,l,{label:"1.25rem",value:"0.8rem"},"mb-1");const t=document.createElement("a");t.textContent="Reset",t.style.display="flex",t.style.justifyContent="center",t.style.color="var(--bs-danger-color)",t.style.cursor="pointer",t.style.fontSize="0.8rem",t.style.marginTop="0.1rem",t.style.textDecoration="underline",t.addEventListener("click",()=>{a()}),l.appendChild(t);const s=document.createElement("div");s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",s.style.padding="4px",s.style.marginTop="6px",l.appendChild(s),j(s,{text:"Support",size:"tiny"}),document.body.appendChild(l)}o.injectSellingMetricsOverlay=S;function N(r,a,p,u,l){const e=document.createElement("div");e.className=`d-flex justify-content-between align-items-center ${l??""}`;const t=document.createElement("span");t.textContent=r.name,t.title=r.title,t.style.fontSize=(u==null?void 0:u.label)??"1rem",t.style.textOverflow="ellipsis",t.style.overflow="hidden",t.style.whiteSpace="nowrap";const s=document.createElement("span");s.textContent=a,s.style.fontSize=(u==null?void 0:u.value)??"1rem",s.style.fontWeight="bold",s.style.textOverflow="ellipsis",s.style.overflow="hidden",s.style.whiteSpace="nowrap",e.appendChild(t),e.appendChild(s),p.appendChild(e)}o.injectLabelValueItem=N;function j(r,a){const p=(a==null?void 0:a.url)??"https://buymeacoffee.com/zagoadev",u=(a==null?void 0:a.text)??"Buy me a coffee",l=(a==null?void 0:a.size)??"normal",e=document.createElement("a");e.href=p,e.target="_blank",e.rel="noopener noreferrer",e.role="button",e.className=(a==null?void 0:a.className)??"",e.setAttribute("aria-label",(a==null?void 0:a.ariaLabel)??u),e.title=(a==null?void 0:a.ariaLabel)??u,e.style.display="inline-flex",e.style.alignItems="center",e.style.gap="8px",e.style.textDecoration="none",e.style.border="none",e.style.cursor="pointer",e.style.borderRadius="6px",e.style.backgroundColor="#FFDD00",e.style.color="#000",e.style.boxShadow="0 2px 6px rgba(0,0,0,0.12)",e.style.transition="transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease",e.style.padding=l==="tiny"?"4px":"6px 12px",e.style.fontSize=l==="tiny"?"8px":"12px",e.style.fontWeight="600",e.style.lineHeight="1";const t=document.createElement("span");t.setAttribute("aria-hidden","true"),t.style.display="inline-flex",t.style.alignItems="center",t.style.justifyContent="center";const s=l==="tiny"?12:16;t.innerHTML=` | ||
| <svg width="${s}" height="${s}" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> | ||
| <path d="M18 8h1a3 3 0 0 1 0 6h-1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> | ||
@@ -7,5 +7,5 @@ <path d="M3 8h14v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V8z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> | ||
| </svg> | ||
| `.trim(),t.style.width=`${o}px`,t.style.height=`${o}px`,t.style.flex="0 0 auto";const d=document.createElement("span");return d.textContent=u,d.style.display="inline-block",d.style.overflow="hidden",d.style.textOverflow="ellipsis",d.style.whiteSpace="nowrap",e.appendChild(t),e.appendChild(d),e.addEventListener("mouseenter",()=>{e.style.transform="translateY(-2px)",e.style.backgroundColor="#FFED4E",e.style.boxShadow="0 6px 14px rgba(0,0,0,0.16)",e.style.opacity="0.98"}),e.addEventListener("mouseleave",()=>{e.style.transform="none",e.style.backgroundColor="#FFDD00",e.style.boxShadow="0 2px 6px rgba(0,0,0,0.12)",e.style.opacity="1"}),e.addEventListener("focus",()=>{e.style.outline="3px solid rgba(255,173,0,0.18)",e.style.outlineOffset="2px"}),e.addEventListener("blur",()=>{e.style.outline="none"}),l&&l.appendChild(e),e}i.createBuyMeCoffeeButton=k;function M(l,s){const p=l.id,u=document.querySelector(`#${p}`);u&&u.remove();const n=document.createElement("div");switch(n.id=p,n.style.position="fixed",n.style.top="94px",n.style.right="20px",n.style.width="380px",n.style.zIndex="9999",n.style.borderRadius="8px",n.style.padding="16px",n.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",n.style.fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",n.style.animation="slideInRight 0.3s ease-out",n.style.backgroundColor="var(--bs-body-bg)",n.style.color="var(--bs-body-color)",l.type){case"info":n.style.borderLeft="4px solid #3b82f6";break;case"warning":n.style.borderLeft="4px solid #f59e0b";break;case"success":n.style.borderLeft="4px solid #10b981";break}const e=document.createElement("div");e.style.display="flex",e.style.justifyContent="space-between",e.style.alignItems="flex-start",n.appendChild(e);const t=document.createElement("div");t.style.flex="1",e.appendChild(t);const o=document.createElement("h3");o.style.margin="0 0 8px 0",o.style.fontSize="15px",o.style.fontWeight="bold",o.textContent=l.title,t.appendChild(o);const d=document.createElement("p");if(d.style.margin="0",d.style.fontSize="13px",d.style.lineHeight="1.5",d.style.whiteSpace="pre-wrap",d.textContent=l.message,t.appendChild(d),l.showRatingButton||l.showSupportButton){const m=document.createElement("div");m.style.marginTop="12px",m.style.display="flex",m.style.gap="8px",m.style.flexWrap="wrap";const N=Y.getRatingUrl();if(l.showSupportButton&&k(m),l.showRatingButton&&N){const a=document.createElement("a");a.href=N,a.target="_blank",a.textContent="⭐ Rate Extension",a.style.display="inline-block",a.style.padding="6px 12px",a.style.fontSize="12px",a.style.fontWeight="600",a.style.borderRadius="6px",a.style.textDecoration="none",a.style.backgroundColor="#3b82f6",a.style.color="white",a.style.border="none",a.style.cursor="pointer",a.style.transition="background-color 0.2s",a.onmouseover=()=>a.style.backgroundColor="#2563eb",a.onmouseout=()=>a.style.backgroundColor="#3b82f6",m.appendChild(a)}t.appendChild(m)}if(l.showExtensionCredit!==!1){const m=document.createElement("div");m.style.marginTop="12px",m.style.paddingTop="12px",m.style.borderTop="1px solid var(--bs-border-color)",m.style.fontSize="11px",m.style.opacity="0.8",m.innerHTML=` | ||
| `.trim(),t.style.width=`${s}px`,t.style.height=`${s}px`,t.style.flex="0 0 auto";const c=document.createElement("span");return c.textContent=u,c.style.display="inline-block",c.style.overflow="hidden",c.style.textOverflow="ellipsis",c.style.whiteSpace="nowrap",e.appendChild(t),e.appendChild(c),e.addEventListener("mouseenter",()=>{e.style.transform="translateY(-2px)",e.style.backgroundColor="#FFED4E",e.style.boxShadow="0 6px 14px rgba(0,0,0,0.16)",e.style.opacity="0.98"}),e.addEventListener("mouseleave",()=>{e.style.transform="none",e.style.backgroundColor="#FFDD00",e.style.boxShadow="0 2px 6px rgba(0,0,0,0.12)",e.style.opacity="1"}),e.addEventListener("focus",()=>{e.style.outline="3px solid rgba(255,173,0,0.18)",e.style.outlineOffset="2px"}),e.addEventListener("blur",()=>{e.style.outline="none"}),r&&r.appendChild(e),e}o.createBuyMeCoffeeButton=j;function D(r,a){const p=r.id,u=document.querySelector(`#${p}`);u&&u.remove();const l=document.createElement("div");switch(l.id=p,l.style.position="fixed",l.style.top="94px",l.style.right="20px",l.style.width="380px",l.style.zIndex="9999",l.style.borderRadius="8px",l.style.padding="16px",l.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",l.style.fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",l.style.animation="slideInRight 0.3s ease-out",l.style.backgroundColor="var(--bs-body-bg)",l.style.color="var(--bs-body-color)",r.type){case"info":l.style.borderLeft="4px solid #3b82f6";break;case"warning":l.style.borderLeft="4px solid #f59e0b";break;case"success":l.style.borderLeft="4px solid #10b981";break}const e=document.createElement("div");e.style.display="flex",e.style.justifyContent="space-between",e.style.alignItems="flex-start",l.appendChild(e);const t=document.createElement("div");t.style.flex="1",e.appendChild(t);const s=document.createElement("h3");s.style.margin="0 0 8px 0",s.style.fontSize="15px",s.style.fontWeight="bold",s.textContent=r.title,t.appendChild(s);const c=document.createElement("p");if(c.style.margin="0",c.style.fontSize="13px",c.style.lineHeight="1.5",c.style.whiteSpace="pre-wrap",c.textContent=r.message,t.appendChild(c),r.showRatingButton||r.showSupportButton){const m=document.createElement("div");m.style.marginTop="12px",m.style.display="flex",m.style.gap="8px",m.style.flexWrap="wrap";const _=$.getRatingUrl();if(r.showSupportButton&&j(m),r.showRatingButton&&_){const i=document.createElement("a");i.href=_,i.target="_blank",i.textContent="⭐ Rate Extension",i.style.display="inline-block",i.style.padding="6px 12px",i.style.fontSize="12px",i.style.fontWeight="600",i.style.borderRadius="6px",i.style.textDecoration="none",i.style.backgroundColor="#3b82f6",i.style.color="white",i.style.border="none",i.style.cursor="pointer",i.style.transition="background-color 0.2s",i.onmouseover=()=>i.style.backgroundColor="#2563eb",i.onmouseout=()=>i.style.backgroundColor="#3b82f6",m.appendChild(i)}t.appendChild(m)}if(r.showExtensionCredit!==!1){const m=document.createElement("div");m.style.marginTop="12px",m.style.paddingTop="12px",m.style.borderTop="1px solid var(--bs-border-color)",m.style.fontSize="11px",m.style.opacity="0.8",m.innerHTML=` | ||
| <div style="margin-bottom: 4px;">🧑💻<i> This extension is built by a passionate on his free time</i></div> | ||
| `,t.appendChild(m)}const c=document.createElement("button");c.textContent="×",c.style.marginLeft="12px",c.style.border="none",c.style.background="transparent",c.style.color="var(--bs-body-color)",c.style.fontSize="24px",c.style.fontWeight="bold",c.style.lineHeight="1",c.style.cursor="pointer",c.style.opacity="0.6",c.style.transition="opacity 0.2s",c.setAttribute("aria-label","Dismiss"),c.onmouseover=()=>c.style.opacity="1",c.onmouseout=()=>c.style.opacity="0.6",c.onclick=()=>{n.style.animation="slideOutRight 0.3s ease-out",setTimeout(()=>{n.remove(),s()},300)},e.appendChild(c);const g=document.createElement("style");g.textContent=` | ||
| `,t.appendChild(m)}const d=document.createElement("button");d.textContent="×",d.style.marginLeft="12px",d.style.border="none",d.style.background="transparent",d.style.color="var(--bs-body-color)",d.style.fontSize="24px",d.style.fontWeight="bold",d.style.lineHeight="1",d.style.cursor="pointer",d.style.opacity="0.6",d.style.transition="opacity 0.2s",d.setAttribute("aria-label","Dismiss"),d.onmouseover=()=>d.style.opacity="1",d.onmouseout=()=>d.style.opacity="0.6",d.onclick=()=>{l.style.animation="slideOutRight 0.3s ease-out",setTimeout(()=>{l.remove(),a()},300)},e.appendChild(d);const b=document.createElement("style");b.textContent=` | ||
| @keyframes slideInRight { | ||
@@ -31,2 +31,2 @@ from { | ||
| } | ||
| `,document.head.appendChild(g),document.body.appendChild(n)}i.injectNotificationBanner=M;async function y(){const l="cmc-comment-selector",s="cmc-comment-dropdown";if(document.getElementById(l))return;const p=document.getElementById("comments");if(!p)return;const u=p.parentElement;if(!u)return;const n=document.createElement("div");n.id=l,n.style.cssText="display:flex;gap:4px;align-items:flex-start;",u.insertBefore(n,p),n.appendChild(p),p.style.flex="1",p.style.minWidth="0";const e=document.createElement("button");e.type="button",e.title="Comment templates",e.style.cssText=["display:inline-flex","align-items:center","gap:4px","padding:4px 8px","font-size:0.75rem","font-weight:600","border-radius:4px","border:1px solid var(--bs-border-color)","background:var(--bs-body-bg)","color:var(--bs-body-color)","cursor:pointer","white-space:nowrap","flex-shrink:0"].join(";"),e.innerHTML='<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg> Templates',n.appendChild(e);const t=document.createElement("div");t.id=s,t.style.cssText=["position:fixed","z-index:99999","min-width:220px","max-width:340px","border-radius:6px","border:1px solid var(--bs-border-color)","background:var(--bs-body-bg)","color:var(--bs-body-color)","box-shadow:0 4px 12px rgba(0,0,0,0.15)","display:none","overflow:hidden"].join(";"),document.body.appendChild(t);async function o(){t.innerHTML="";const c=(await chrome.storage.local.get([w.PREDEFINED_COMMENTS]))[w.PREDEFINED_COMMENTS]??[],g=document.createElement("div");g.style.cssText="max-height:220px;overflow-y:auto;";function m(x,I){const C=document.createElement("div");C.style.cssText=["display:flex","align-items:center","gap:6px","padding:7px 10px","cursor:pointer","border-bottom:1px solid var(--bs-border-color)","font-size:0.82rem"].join(";"),C.addEventListener("mouseenter",()=>C.style.background="var(--bs-secondary-bg, rgba(0,0,0,0.05))"),C.addEventListener("mouseleave",()=>C.style.background="");const P=document.createElement("span");if(P.style.cssText="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",P.textContent=x,P.title=x,C.addEventListener("click",()=>{p.value=x,p.dispatchEvent(new Event("input",{bubbles:!0})),t.style.display="none"}),C.appendChild(P),I){const h=document.createElement("button");h.type="button",h.title="Remove template",h.style.cssText=["flex-shrink:0","border:none","background:transparent","cursor:pointer","color:var(--bs-danger-color, #dc3545)","font-size:0.9rem","line-height:1","padding:0 2px","opacity:0.6"].join(";"),h.textContent="✕",h.addEventListener("mouseenter",()=>h.style.opacity="1"),h.addEventListener("mouseleave",()=>h.style.opacity="0.6"),h.addEventListener("click",async $=>{$.stopPropagation(),I()}),C.appendChild(h)}else{const h=document.createElement("span");h.style.cssText="flex-shrink:0;font-size:0.7rem;opacity:0.45;font-style:italic;",h.textContent="default",C.appendChild(h)}return C}g.appendChild(m(F)),c.forEach((x,I)=>{g.appendChild(m(x,async()=>{const C=c.filter((P,h)=>h!==I);await chrome.storage.local.set({[w.PREDEFINED_COMMENTS]:C}),await o()}))}),t.appendChild(g);const N=document.createElement("div");N.style.cssText="border-top:1px solid var(--bs-border-color);",t.appendChild(N);const a=document.createElement("button");a.type="button";const E=p.value.trim(),T=E===F||c.includes(E),R=E==="";a.disabled=R||T,a.style.cssText=["display:flex","align-items:center","gap:6px","width:100%","padding:8px 12px","font-size:0.8rem","font-weight:600","border:none","background:transparent","cursor:"+(R||T?"default":"pointer"),"color:"+(R||T?"var(--bs-secondary-color, #888)":"var(--bs-body-color)"),"text-align:left"].join(";"),a.innerHTML=`<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg> ${T?"Already saved":"Save current as template"}`,!R&&!T&&(a.addEventListener("mouseenter",()=>a.style.background="var(--bs-secondary-bg, rgba(0,0,0,0.05))"),a.addEventListener("mouseleave",()=>a.style.background="transparent"),a.addEventListener("click",async()=>{const x=[...c,E];await chrome.storage.local.set({[w.PREDEFINED_COMMENTS]:x}),await o()})),t.appendChild(a)}e.addEventListener("click",async d=>{if(d.stopPropagation(),t.style.display!=="none"){t.style.display="none";return}await o();const g=e.getBoundingClientRect();t.style.top=`${g.bottom+4}px`,t.style.left=`${g.left}px`,t.style.display="block"}),document.addEventListener("click",d=>{!t.contains(d.target)&&d.target!==e&&(t.style.display="none")})}i.injectCommentSelector=y})(B||(B={}));function V(){const[i,b]=z.useState(),[f,j]=_.useState("trend"),[S,D]=_.useState("");_.useEffect(()=>{chrome.storage.local.get([w.TREND,w.PRICE_MODE,w.MIN_PRICE],function(l){b(l.trend??v.TREND_PRICE_7_DAY),j(l.priceMode??"trend"),D(l.minPrice??"")})},[]),_.useEffect(()=>{const l=document.getElementById("buy-me-a-coffee");l&&B.createBuyMeCoffeeButton(l)},[]);async function k(l){await chrome.storage.local.set({trend:l}),b(l)}async function M(l){const s={[w.PRICE_MODE]:l};await chrome.storage.local.set(s),j(l)}async function y(l){const s=l.replace(/,/g,".");await chrome.storage.local.set({[w.MIN_PRICE]:s}),D(l)}return r.jsxs("div",{className:"h-full w-full overflow-y-auto overflow-x-hidden min-w-0 p-4 flex flex-col gap-y-2 justify-center",children:[r.jsx("h1",{className:"text-cardmarket-blue text-2xl font-medium break-words",children:"CardMarket Companion"}),r.jsx("span",{className:"text-gray-500 font-light break-words",children:"Pick your pricing mode"}),r.jsx("div",{className:"px-2 w-full border-gray-300 border-t"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("label",{htmlFor:"price-mode-select",className:"text-sm text-gray-700 font-medium",children:"Mode:"}),r.jsxs("select",{id:"price-mode-select",value:f,onChange:l=>M(l.target.value),className:"rounded-md p-1 border border-gray-300 text-sm",children:[r.jsx("option",{value:"first",children:"First price"}),r.jsx("option",{value:"trend",children:"Trend"}),r.jsx("option",{value:"avg",children:"Average (all cards)"}),r.jsx("option",{value:"pro",children:"Pro Mode"})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("label",{htmlFor:"min-price-input",className:"text-sm text-gray-700 font-medium",children:"Min Price:"}),r.jsx("input",{id:"min-price-input",type:"text",inputMode:"decimal",value:S,onChange:l=>y(l.target.value),placeholder:"No minimum",pattern:"[0-9]*[.,]?[0-9]*",className:"rounded-md p-1 border border-gray-300 text-sm flex-1"})]}),r.jsx("div",{className:"text-xs text-gray-500 break-words",children:"Override suggested prices lower than this value"}),r.jsx("div",{className:"px-2 w-full border-gray-300 border-t"}),r.jsxs("div",{className:"flex flex-col space-y-2",children:[f==="trend"?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"block text-gray-700 text-sm font-bold mb-2 break-words",children:"Trend to use"}),r.jsxs("div",{className:"flex justify-around",children:[r.jsx(L,{value:v.TREND_PRICE_1_DAY,selectedValue:i,id:"others"+v.TREND_PRICE_1_DAY,valueChange:k,label:"1d"}),r.jsx(L,{value:v.TREND_PRICE_7_DAY,selectedValue:i,id:"others"+v.TREND_PRICE_7_DAY,valueChange:k,label:"7d"}),r.jsx(L,{value:v.TREND_PRICE_30_DAY,selectedValue:i,id:"others"+v.TREND_PRICE_30_DAY,valueChange:k,label:"30d"})]})]}):null,f==="avg"?r.jsxs("div",{className:"text-sm text-gray-600 break-words text-center",children:["The average price is calculated from all prices found on the current page. ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("i",{className:"text-xs",children:"Setup correctly your filters on Cardmarket to get the best results."})]}):null,f==="first"?r.jsxs("div",{className:"text-sm text-gray-600 break-words text-center",children:["The first price found on the current page will be used. ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("i",{className:"text-xs",children:"Setup correctly your filters on Cardmarket to get the best results."})]}):null,f==="pro"?r.jsxs("div",{className:"text-sm text-gray-600 break-words text-center",children:["Uses professional seller pricing with your configured settings. ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("i",{className:"text-xs",children:"Configure reduction and min price in Pro Settings."})]}):null]}),r.jsx("div",{className:"px-2 w-full border-gray-300 border-t"}),r.jsxs("div",{className:"flex justify-center items-center gap-4 mt-1",children:[r.jsx("button",{onClick:()=>{chrome.runtime.openOptionsPage()},className:"text-sm text-blue-600 hover:text-blue-800 underline",children:"Settings"}),r.jsx("button",{onClick:()=>{window.open(Y.getGoogleFormUrl(),"_blank")},className:"text-sm text-green-600 hover:text-green-800 underline",children:"Share Feedback"})]}),r.jsx("div",{className:"flex justify-center items-center mt-1",id:"buy-me-a-coffee"})]})}function W(){const i=document.querySelector("#__root");if(!i)throw new Error("Can't find Popup root element");A.createRoot(i).render(r.jsx(V,{}))}W(); | ||
| `,document.head.appendChild(b),document.body.appendChild(l)}o.injectNotificationBanner=D;async function h(){const r="cmc-comment-selector",a="cmc-comment-dropdown";if(document.getElementById(r))return;const p=document.getElementById("comments");if(!p)return;const u=p.parentElement;if(!u)return;const l=document.createElement("div");l.id=r,l.style.cssText="display:flex;gap:4px;align-items:flex-start;",u.insertBefore(l,p),l.appendChild(p),p.style.flex="1",p.style.minWidth="0";const e=document.createElement("button");e.type="button",e.title="Comment templates",e.style.cssText=["display:inline-flex","align-items:center","gap:4px","padding:4px 8px","font-size:0.75rem","font-weight:600","border-radius:4px","border:1px solid var(--bs-border-color)","background:var(--bs-body-bg)","color:var(--bs-body-color)","cursor:pointer","white-space:nowrap","flex-shrink:0"].join(";"),e.innerHTML='<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg> Templates',l.appendChild(e);const t=document.createElement("div");t.id=a,t.style.cssText=["position:fixed","z-index:99999","min-width:220px","max-width:340px","border-radius:6px","border:1px solid var(--bs-border-color)","background:var(--bs-body-bg)","color:var(--bs-body-color)","box-shadow:0 4px 12px rgba(0,0,0,0.15)","display:none","overflow:hidden"].join(";"),document.body.appendChild(t);async function s(){t.innerHTML="";const d=(await chrome.storage.local.get([v.PREDEFINED_COMMENTS]))[v.PREDEFINED_COMMENTS]??[],b=document.createElement("div");b.style.cssText="max-height:220px;overflow-y:auto;";function m(g,I){const w=document.createElement("div");w.style.cssText=["display:flex","align-items:center","gap:6px","padding:7px 10px","cursor:pointer","border-bottom:1px solid var(--bs-border-color)","font-size:0.82rem"].join(";"),w.addEventListener("mouseenter",()=>w.style.background="var(--bs-secondary-bg, rgba(0,0,0,0.05))"),w.addEventListener("mouseleave",()=>w.style.background="");const P=document.createElement("span");if(P.style.cssText="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;",P.textContent=g,P.title=g,w.addEventListener("click",()=>{p.value=g,p.dispatchEvent(new Event("input",{bubbles:!0})),t.style.display="none"}),w.appendChild(P),I){const f=document.createElement("button");f.type="button",f.title="Remove template",f.style.cssText=["flex-shrink:0","border:none","background:transparent","cursor:pointer","color:var(--bs-danger-color, #dc3545)","font-size:0.9rem","line-height:1","padding:0 2px","opacity:0.6"].join(";"),f.textContent="✕",f.addEventListener("mouseenter",()=>f.style.opacity="1"),f.addEventListener("mouseleave",()=>f.style.opacity="0.6"),f.addEventListener("click",async Y=>{Y.stopPropagation(),I()}),w.appendChild(f)}else{const f=document.createElement("span");f.style.cssText="flex-shrink:0;font-size:0.7rem;opacity:0.45;font-style:italic;",f.textContent="default",w.appendChild(f)}return w}b.appendChild(m(A)),d.forEach((g,I)=>{b.appendChild(m(g,async()=>{const w=d.filter((P,f)=>f!==I);await chrome.storage.local.set({[v.PREDEFINED_COMMENTS]:w}),await s()}))}),t.appendChild(b);const _=document.createElement("div");_.style.cssText="border-top:1px solid var(--bs-border-color);",t.appendChild(_);const i=document.createElement("button");i.type="button";const k=p.value.trim(),M=k===A||d.includes(k),T=k==="";i.disabled=T||M,i.style.cssText=["display:flex","align-items:center","gap:6px","width:100%","padding:8px 12px","font-size:0.8rem","font-weight:600","border:none","background:transparent","cursor:"+(T||M?"default":"pointer"),"color:"+(T||M?"var(--bs-secondary-color, #888)":"var(--bs-body-color)"),"text-align:left"].join(";"),i.innerHTML=`<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg> ${M?"Already saved":"Save current as template"}`,!T&&!M&&(i.addEventListener("mouseenter",()=>i.style.background="var(--bs-secondary-bg, rgba(0,0,0,0.05))"),i.addEventListener("mouseleave",()=>i.style.background="transparent"),i.addEventListener("click",async()=>{const g=[...d,k];await chrome.storage.local.set({[v.PREDEFINED_COMMENTS]:g}),await s()})),t.appendChild(i)}e.addEventListener("click",async c=>{if(c.stopPropagation(),t.style.display!=="none"){t.style.display="none";return}await s();const b=e.getBoundingClientRect();t.style.top=`${b.bottom+4}px`,t.style.left=`${b.left}px`,t.style.display="block"}),document.addEventListener("click",c=>{!t.contains(c.target)&&c.target!==e&&(t.style.display="none")})}o.injectCommentSelector=h})(B||(B={}));function H(){const[o,x]=O.useState(),[y,C]=R.useState("trend"),[S,N]=R.useState("");R.useEffect(()=>{chrome.storage.local.get([v.TREND,v.PRICE_MODE,v.MIN_PRICE],function(r){x(r.trend??E.TREND_PRICE_7_DAY),C(r.priceMode??"trend"),N(r.minPrice??"")})},[]),R.useEffect(()=>{const r=document.getElementById("buy-me-a-coffee");r&&B.createBuyMeCoffeeButton(r)},[]);async function j(r){await chrome.storage.local.set({trend:r}),x(r)}async function D(r){const a={[v.PRICE_MODE]:r};await chrome.storage.local.set(a),C(r)}async function h(r){const a=r.replace(/,/g,".");await chrome.storage.local.set({[v.MIN_PRICE]:a}),N(r)}return n.jsxs("div",{className:"h-full w-full overflow-y-auto overflow-x-hidden min-w-0 p-4 flex flex-col gap-y-2 justify-center",children:[n.jsx("h1",{className:"text-cardmarket-blue text-2xl font-medium break-words",children:"CardMarket Companion"}),n.jsx("span",{className:"text-gray-500 font-light break-words",children:"Pick your pricing mode"}),n.jsx("div",{className:"px-2 w-full border-gray-300 border-t"}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("label",{htmlFor:"price-mode-select",className:"text-sm text-gray-700 font-medium",children:"Mode:"}),n.jsxs("select",{id:"price-mode-select",value:y,onChange:r=>D(r.target.value),className:"rounded-md p-1 border border-gray-300 text-sm",children:[n.jsx("option",{value:"first",children:"First price"}),n.jsx("option",{value:"trend",children:"Trend"}),n.jsx("option",{value:"avg",children:"Average (all cards)"}),n.jsx("option",{value:"pro",children:"Pro Mode"})]})]}),n.jsx(z,{mode:y}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("label",{htmlFor:"min-price-input",className:"text-sm text-gray-700 font-medium",children:"Min Price:"}),n.jsx("input",{id:"min-price-input",type:"text",inputMode:"decimal",value:S,onChange:r=>h(r.target.value),placeholder:"No minimum",pattern:"[0-9]*[.,]?[0-9]*",className:"rounded-md p-1 border border-gray-300 text-sm flex-1"})]}),n.jsx("div",{className:"text-xs text-gray-500 break-words",children:"Override suggested prices lower than this value"}),n.jsx("div",{className:"px-2 w-full border-gray-300 border-t"}),n.jsxs("div",{className:"flex flex-col space-y-2",children:[y==="trend"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"block text-gray-700 text-sm font-bold mb-2 break-words",children:"Trend to use"}),n.jsxs("div",{className:"flex justify-around",children:[n.jsx(L,{value:E.TREND_PRICE_1_DAY,selectedValue:o,id:"others"+E.TREND_PRICE_1_DAY,valueChange:j,label:"1d"}),n.jsx(L,{value:E.TREND_PRICE_7_DAY,selectedValue:o,id:"others"+E.TREND_PRICE_7_DAY,valueChange:j,label:"7d"}),n.jsx(L,{value:E.TREND_PRICE_30_DAY,selectedValue:o,id:"others"+E.TREND_PRICE_30_DAY,valueChange:j,label:"30d"})]})]}):null,y==="avg"?n.jsxs("div",{className:"text-sm text-gray-600 break-words text-center",children:["The average price is calculated from all prices found on the current page. ",n.jsx("br",{}),n.jsx("br",{})," ",n.jsx("i",{className:"text-xs",children:"Setup correctly your filters on Cardmarket to get the best results."})]}):null,y==="first"?n.jsxs("div",{className:"text-sm text-gray-600 break-words text-center",children:["The first price found on the current page will be used. ",n.jsx("br",{}),n.jsx("br",{})," ",n.jsx("i",{className:"text-xs",children:"Setup correctly your filters on Cardmarket to get the best results."})]}):null,y==="pro"?n.jsxs("div",{className:"text-sm text-gray-600 break-words text-center",children:["Uses the first professional/power-seller price as the reference. ",n.jsx("br",{}),n.jsx("br",{})," ",n.jsx("i",{className:"text-xs",children:"Set a global default in Settings; override per mode above."})]}):null]}),n.jsx("div",{className:"px-2 w-full border-gray-300 border-t"}),n.jsxs("div",{className:"flex justify-center items-center gap-4 mt-1",children:[n.jsx("button",{onClick:()=>{chrome.runtime.openOptionsPage()},className:"text-sm text-blue-600 hover:text-blue-800 underline",children:"Settings"}),n.jsx("button",{onClick:()=>{window.open($.getGoogleFormUrl(),"_blank")},className:"text-sm text-green-600 hover:text-green-800 underline",children:"Share Feedback"})]}),n.jsx("div",{className:"flex justify-center items-center mt-1",id:"buy-me-a-coffee"})]})}function q(){const o=document.querySelector("#__root");if(!o)throw new Error("Can't find Popup root element");F.createRoot(o).render(n.jsx(H,{}))}q(); |
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 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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display