{"version":3,"sources":["components/ActionList.js","components/TopBar.js","components/ComposeModal.js","components/SideNavigation.js","components/TopBodyBar.js","components/EmailTable.js","components/InfoBanner.js","components/BodySection.js","App.js","reportWebVitals.js","index.js"],"names":["TopMenuActionList","props","useState","active","setActive","toggleActive","useCallback","activator","Button","icon","onClick","disclosure","className","Popover","onClose","ActionList","items","dropdownArray","AppTopBar","isUserMenuOpen","setIsUserMenuOpen","setIsSecondaryMenuOpen","isSearchActive","setIsSearchActive","searchValue","setSearchValue","themeIrl","theme","console","log","imgUrl","toggleIsUserMenuOpen","handleSearchResultsDismiss","isSecondaryMenuOpen","handleSearchChange","value","length","handleNavigationToggle","radioValue","setRadioValue","handleRadioChange","_checked","newValue","setTheme","GearMenu","Stack","vertical","RadioButton","label","helpText","checked","id","name","onChange","logo","width","topBarSource","url","accessibilityLabel","userMenuMarkup","TopBar","UserMenu","actions","content","ArrowLeftMinor","initials","open","onToggle","AppsMegaMenu","class","Icon","source","description","IconMenu","QuestionMarkMajor","SettingsMajor","CircleDotsMajor","AccessibilityMajor","ChatMajor","ClockMajor","DomainsMajor","FeaturedCollectionMajor","GlobeMajor","LegalMajor","AutomationMajor","PaintBrushMajor","searchResultsMarkup","searchFieldMarkup","SearchField","placeholder","showFocusBorder","AppProvider","showNavigationToggle","userMenu","secondaryMenu","searchResultsVisible","searchField","searchResults","onSearchResultsDismiss","onNavigationToggle","ModalForm","FormLayout","TextField","type","autoComplete","multiline","ComposeModal","handleChange","size","Modal","title","primaryAction","onAction","secondaryActions","Section","TextContainer","SideNavigation","Navigation","location","OrdersMajor","SendMajor","DraftOrdersMajor","InventoryMajor","separator","TopBodyBar","handleImportedAction","handleExportedAction","ListMajor","style","height","marginTop","justifyContent","display","flexDirection","maxHeight","minWidth","RefreshMajor","MobileVerticalDotsMajor","SimpleIndexTableExample","emails","useIndexResourceState","selectedResources","allResourcesSelected","handleSelectionChange","rowMarkup","map","index","from","message","date","IndexTable","Row","selected","includes","position","Cell","TextStyle","variation","Card","resourceName","singular","plural","itemCount","selectedItemsCount","onSelectionChange","headings","App","Banner","action","status","onDismiss","document","getElementById","classList","add","React","Component","SectionTabs","setSelected","handleTabChange","selectedTabIndex","tabs","bodyContent","panelID","filter","item","Tabs","onSelect","BodySection","Page","fullWidth","Layout","themeColor","i18n","enTranslations","ThemeProvider","colorScheme","Frame","navigation","topBar","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode"],"mappings":"obAGe,SAASA,EAAkBC,GACxC,MAA4BC,oBAAS,GAArC,mBAAOC,EAAP,KAAeC,EAAf,KAEMC,EAAeC,uBAAY,kBAAMF,GAAU,SAACD,GAAD,OAAaA,OAAS,IAEjEI,EACJ,cAACC,EAAA,EAAD,CAAQC,KAAMR,EAAMQ,KAAMC,QAASL,EAAcM,YAAU,IAG7D,OACE,qBAAKC,UAAU,qBAAf,SACE,cAACC,EAAA,EAAD,CAASV,QAASA,EAAQI,UAAWA,EAAWO,QAAST,EAAzD,SACE,cAACU,EAAA,EAAD,CAAYC,MAAOf,EAAMgB,oBCWlB,SAASC,EAAUjB,GAChC,MAA4CC,oBAAS,GAArD,mBAAOiB,EAAP,KAAuBC,EAAvB,KACA,EAAsDlB,oBAAS,GAA/D,mBAA4BmB,GAA5B,WACA,EAA4CnB,oBAAS,GAArD,mBAAOoB,EAAP,KAAuBC,EAAvB,KACA,EAAsCrB,mBAAS,IAA/C,mBAAOsB,EAAP,KAAoBC,EAApB,KACMC,EAAWzB,EAAM0B,MACvBC,QAAQC,IAAIH,GACZ,IAAMI,EAAS7B,EAAM0B,MACjB,0DACA,oDAEEI,EAAuBzB,uBAC3B,kBAAMc,GAAkB,SAACD,GAAD,OAAqBA,OAC7C,IAQIa,GAL4B1B,uBAChC,kBAAMe,GAAuB,SAACY,GAAD,OAA0BA,OACvD,IAGiC3B,uBAAY,WAC7CiB,GAAkB,GAClBE,EAAe,MACd,KAEGS,EAAqB5B,uBAAY,SAAC6B,GACt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OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,OCDdQ,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,GAAD,MAEFxC,SAASC,eAAe,SAM1B4B,O","file":"static/js/main.cd1f584c.chunk.js","sourcesContent":["import React, { useCallback, useState } from \"react\";\nimport { ActionList, Button, Popover } from \"@shopify/polaris\";\n\nexport default function TopMenuActionList(props) {\n const [active, setActive] = useState(true);\n\n const toggleActive = useCallback(() => setActive((active) => !active), []);\n\n const activator = (\n \n );\n\n return (\n
\n \n \n \n
\n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport {\n AppProvider,\n ActionList,\n Icon,\n TopBar,\n RadioButton,\n Stack,\n} from \"@shopify/polaris\";\nimport {\n ArrowLeftMinor,\n QuestionMarkMajor,\n CircleDotsMajor,\n PaintBrushMajor,\n GlobeMajor,\n LegalMajor,\n SettingsMajor,\n AutomationMajor,\n AccessibilityMajor,\n ChatMajor,\n ClockMajor,\n DomainsMajor,\n FeaturedCollectionMajor,\n} from \"@shopify/polaris-icons\";\nimport TopMenuActionList from \"./ActionList\";\n\nexport default function AppTopBar(props) {\n const [isUserMenuOpen, setIsUserMenuOpen] = useState(false);\n const [isSecondaryMenuOpen, setIsSecondaryMenuOpen] = useState(false);\n const [isSearchActive, setIsSearchActive] = useState(false);\n const [searchValue, setSearchValue] = useState(\"\");\n const themeIrl = props.theme;\n console.log(themeIrl);\n const imgUrl = props.theme\n ? \"https://b7d9f7a1.polaris-6z7.pages.dev/logo-light-2.JPG\"\n : \"https://b7d9f7a1.polaris-6z7.pages.dev/logo-2.JPG\";\n\n const toggleIsUserMenuOpen = useCallback(\n () => setIsUserMenuOpen((isUserMenuOpen) => !isUserMenuOpen),\n []\n );\n\n const toggleIsSecondaryMenuOpen = useCallback(\n () => setIsSecondaryMenuOpen((isSecondaryMenuOpen) => !isSecondaryMenuOpen),\n []\n );\n\n const handleSearchResultsDismiss = useCallback(() => {\n setIsSearchActive(false);\n setSearchValue(\"\");\n }, []);\n\n const handleSearchChange = useCallback((value) => {\n setSearchValue(value);\n setIsSearchActive(value.length > 0);\n }, []);\n\n const handleNavigationToggle = useCallback(() => {\n console.log(\"toggle navigation visibility\");\n }, []);\n\n const [radioValue, setRadioValue] = useState(\"disabled\");\n\n const handleRadioChange = useCallback((_checked, newValue) => {\n props.setTheme(!props.theme);\n setRadioValue(newValue);\n });\n\n function GearMenu() {\n return (\n \n \n \n \n );\n }\n\n function bbb() {\n return (\n
\n

Hello World

\n
\n );\n }\n const theme = {\n logo: {\n width: 124,\n topBarSource: imgUrl,\n url: \"https://google.com\",\n accessibilityLabel: \"Polaris / Gmail\",\n },\n };\n\n const userMenuMarkup = (\n \n );\n\n function AppsMegaMenu(props) {\n return (\n
\n \n

{props.description}

\n
\n );\n }\n\n function IconMenu() {\n return (\n
\n \n }]}\n />\n \n ),\n },\n { content: },\n {\n content: ,\n },\n {\n content: (\n \n ),\n },\n {\n content: (\n \n ),\n },\n {\n content: (\n \n ),\n },\n {\n content: ,\n },\n {\n content: (\n \n ),\n },\n {\n content: (\n \n ),\n },\n ]}\n />\n
\n );\n }\n\n const searchResultsMarkup = (\n \n );\n\n const searchFieldMarkup = (\n \n );\n\n return (\n
\n \n }\n IconMenu={IconMenu}\n searchResultsVisible={isSearchActive}\n searchField={searchFieldMarkup}\n searchResults={searchResultsMarkup}\n onSearchResultsDismiss={handleSearchResultsDismiss}\n onNavigationToggle={handleNavigationToggle}\n />\n \n
\n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport {\n Button,\n Modal,\n TextContainer,\n FormLayout,\n TextField,\n} from \"@shopify/polaris\";\n\nfunction ModalForm() {\n return (\n \n {}}\n autoComplete=\"email\"\n />\n {}} autoComplete=\"off\" />\n {}}\n autoComplete=\"off\"\n multiline={10}\n />\n \n );\n}\n\nexport default function ComposeModal() {\n const [active, setActive] = useState(false);\n\n const handleChange = useCallback(() => setActive(!active), [active]);\n\n const activator = (\n \n );\n\n return (\n
\n \n \n \n \n \n \n \n
\n );\n}\n","import React from \"react\";\nimport { Navigation } from \"@shopify/polaris\";\nimport {\n OrdersMajor,\n SendMajor,\n InventoryMajor,\n DraftOrdersMajor\n} from \"@shopify/polaris-icons\";\nimport ComposeModal from './ComposeModal';\n\n\nexport default function SideNavigation() {\n\n return (\n \n \n \n \n \n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport { Icon, ActionList, Button, Popover } from \"@shopify/polaris\";\nimport {\n ListMajor,\n MobileVerticalDotsMajor,\n RefreshMajor,\n} from \"@shopify/polaris-icons\";\n\nexport default function TopBodyBar() {\n const [active, setActive] = useState(true);\n\n const toggleActive = useCallback(() => setActive((active) => !active), []);\n\n const handleImportedAction = useCallback(\n () => console.log(\"Imported action\"),\n []\n );\n\n const handleExportedAction = useCallback(\n () => console.log(\"Exported action\"),\n []\n );\n\n const activator = (\n \n );\n\n return (\n \n \n \n \n \n \n \n \n \n );\n}\n","import React from 'react';\nimport {useIndexResourceState, Card, IndexTable, TextStyle} from '@shopify/polaris';\n\nexport default function SimpleIndexTableExample(props) {\n\n const emails = props.emails; \n const resourceName = {\n singular: 'Email',\n plural: 'Emails',\n };\n\n const {selectedResources, allResourcesSelected, handleSelectionChange} =\n useIndexResourceState(emails);\n\n const rowMarkup = emails.map(\n ({id, from, message, date}, index) => (\n \n \n {from}\n \n {message}\n {date}\n \n ),\n );\n\n return (\n \n \n {rowMarkup}\n \n \n );\n}\n","import React from 'react';\nimport {Banner} from '@shopify/polaris';\n\nexport default class App extends React.Component {\n render() {\n return (\n \n {\n document.getElementById('info-banner').classList.add('bye-banner');\n }}\n>\n

Some Interactive Features:

\n
    \n
  • \n Dark / Light Theme changes\n
  • \n
  • \n Compose Mail Modal\n
  • \n
  • \n Sorted Mail Buckets (Tabs)\n
  • \n
\n\n
\n );\n }\n}","import React, { useCallback, useState } from \"react\";\nimport { Card, Tabs, Page, Layout } from \"@shopify/polaris\";\nimport TopBodyBar from \"./TopBodyBar\";\nimport EmailTable from \"./EmailTable\";\nimport InfoBanner from \"./InfoBanner\";\n\nconst emails = [\n {\n id: 1,\n from: \"Frodo\",\n message: \"Re: The One Ring\",\n date: \"Oct 4\",\n type: \"social\",\n },\n {\n id: 2,\n from: \"Smegol\",\n message: \"The One Ring\",\n date: \"Oct 4\",\n type: \"social\",\n },\n {\n id: 3,\n from: \"Samwise\",\n message: \"100 & 1 Potato Recipies\",\n date: \"Oct 4\",\n type: \"social\",\n },\n {\n id: 4,\n from: \"Merry\",\n message: \"New breakfast descovered by Hobbit Scientists!\",\n date: \"Oct 4\",\n type: \"promotion\",\n },\n {\n id: 5,\n from: \"Troll\",\n message: \"Sunlight Bad\",\n date: \"Oct 3\",\n type: \"social\",\n },\n {\n id: 6,\n from: \"Gandalf\",\n message: \"What shoes go with white robes?\",\n date: \"Oct 3\",\n type: \"social\",\n },\n {\n id: 7,\n from: \"Rivendell Post\",\n message: \"No bake lembas bread recipies\",\n date: \"Oct 3\",\n type: \"promotion\",\n },\n {\n id: 8,\n from: \"Tom Bombadil\",\n message: \"Hello, anyone ???\",\n date: \"Oct 2\",\n type: \"social\",\n },\n ];\n\nfunction SectionTabs() {\n const [selected, setSelected] = useState(0);\n\n const handleTabChange = useCallback(\n (selectedTabIndex) => setSelected(selectedTabIndex),\n []\n );\n\n const tabs = [\n {\n id: \"all-emails\",\n content: \"All Emails\",\n bodyContent: ,\n accessibilityLabel: \"All Emails\",\n panelID: \"all-email-content-1\",\n },\n {\n id: \"social-emails\",\n content: \"Social\",\n bodyContent: (\n item.type === \"social\")} />\n ),\n accessibilityLabel: \"Social Emails\",\n panelID: \"accepts-marketing-content-1\",\n },\n {\n id: \"promotion-emails\",\n content: \"Promotional\",\n bodyContent: (\n item.type === \"promotion\")}\n />\n ),\n accessibilityLabel: \"Promotional Emails\",\n panelID: \"repeat-customers-content-1\",\n },\n ];\n\n return (\n \n \n \n

{tabs[selected].bodyContent}

\n
\n
\n
\n );\n}\n\nexport default function BodySection() {\n return (\n \n \n \n \n \n \n \n \n \n \n\n \n );\n}\n","import './App.css';\nimport '@shopify/polaris/build/esm/styles.css';\nimport React, {useState} from 'react';\nimport enTranslations from '@shopify/polaris/locales/en.json';\nimport {AppProvider,Frame, ThemeProvider, Layout, Page, ActionList} from '@shopify/polaris';\nimport TopBar from './components/TopBar';\n//import ActionList from './components/ActionList';\n//import {ArrowLeftMinor, QuestionMarkMajor, CircleDotsMajor, SettingsMajor} from '@shopify/polaris-icons';\n//import TopMenuActionList from './components/ActionList';\nimport SideNavigation from './components/SideNavigation';\nimport TopBodyBar from './components/TopBodyBar'\nimport BodySection from './components/BodySection'\n\n\n\nconst theme = {\n logo: {\n width: 124,\n topBarSource:\n './logo_gmail.png',\n url: 'https://google.com',\n accessibilityLabel: 'Polaris / Gmail',\n },\n};\n\n\n\nfunction App() {\n\n const [theme, setTheme] = useState(true);\n var themeColor = (theme)? 'light':'dark'; \n return (\n\n
\n \n \n }\n topBar={}\n >\n \n \n \n\n\n\n \n \n
\n );\n}\n\nexport default App;\n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}