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AC;AAAClF,qBAAA,GAAAmE,aAAA;;;;;;;;;;;;ACnEF;;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA,yCAAyC,yBAAyB,SAAS,yBAAyB;;;;;;UCLpG;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;ACNAjE,mBAAA;AACA,IAAA2F,QAAA,GAAA3F,mBAAA;AACA,IAAA4F,aAAA,GAAA5F,mBAAA;AAEA,MAAM6F,GAAG,GAAGA,MAAM;EACjB,oBAAOvG,KAAA,CAAAC,aAAA,CAACqG,aAAA,CAAA/D,YAAY,MAAE,CAAC;AACxB,CAAC;AAEDiE,QAAQ,CAACC,gBAAgB,CAAE,kBAAkB,EAAE,MAAM;EACpD,MAAMC,WAAW,GAAGF,QAAQ,CAACG,cAAc,CAAE,0BAA2B,CAAC;EAEzE,IAAKD,WAAW,EAAG;IAClB,IAAAE,eAAM,gBACL5G,KAAA,CAAAC,aAAA,CAACsG,GAAG,MAAE,CAAC,EACPG,WACD,CAAC;EACF;AACD,CAAE,CAAC,C","sources":["webpack://elementor-hello-theme/./assets/dev/js/admin/components/action-links.js","webpack://elementor-hello-theme/./assets/dev/js/admin/pages/settings-page.js","webpack://elementor-hello-theme/./assets/dev/js/admin/panels/action-links-panel.js","webpack://elementor-hello-theme/./assets/dev/js/admin/panels/settings-panel.js","webpack://elementor-hello-theme/./assets/dev/js/admin/hello-admin.scss?7ccb","webpack://elementor-hello-theme/external window \"React\"","webpack://elementor-hello-theme/external window [\"wp\",\"api\"]","webpack://elementor-hello-theme/external window [\"wp\",\"components\"]","webpack://elementor-hello-theme/external window [\"wp\",\"data\"]","webpack://elementor-hello-theme/external window [\"wp\",\"element\"]","webpack://elementor-hello-theme/external window [\"wp\",\"i18n\"]","webpack://elementor-hello-theme/external window [\"wp\",\"notices\"]","webpack://elementor-hello-theme/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://elementor-hello-theme/webpack/bootstrap","webpack://elementor-hello-theme/webpack/runtime/make namespace object","webpack://elementor-hello-theme/./assets/dev/js/admin/hello-admin.js"],"sourcesContent":["export const ActionLinks = ( { image, title, message, button, link } ) => {\n\treturn (\n\t\t<div className=\"hello_elementor__action_links\">\n\t\t\t<img src={ image } alt=\"Elementor\" />\n\t\t\t<p className=\"hello_elementor__action_links__title\">{ title }</p>\n\t\t\t<p className=\"hello_elementor__action_links__message\">{ message }</p>\n\t\t\t<a className=\"components-button is-secondary\" href={ link } target=\"_blank\" rel=\"noreferrer\">{ button }</a>\n\t\t</div>\n\t);\n};\n","import { useState, useEffect, Fragment } from 'react';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { dispatch, useDispatch, useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport api from '@wordpress/api';\nimport { Button, Panel, Placeholder, Spinner, SnackbarList } from '@wordpress/components';\nimport { SettingsPanel } from './../panels/settings-panel.js';\nimport { ActionLinksPanel } from '../panels/action-links-panel.js';\n\nconst Notices = () => {\n\tconst notices = useSelect(\n\t\t( select ) =>\n\t\t\tselect( noticesStore )\n\t\t\t\t.getNotices()\n\t\t\t\t.filter( ( notice ) => 'snackbar' === notice.type ),\n\t\t[],\n\t);\n\n\tconst { removeNotice } = useDispatch( noticesStore );\n\n\treturn (\n\t\t<SnackbarList\n\t\t\tclassName=\"edit-site-notices\"\n\t\t\tnotices={ notices }\n\t\t\tonRemove={ removeNotice }\n\t\t/>\n\t);\n};\n\nconst SETTINGS = {\n\tDESCRIPTION_META_TAG: '_description_meta_tag',\n\tSKIP_LINK: '_skip_link',\n\tHEADER_FOOTER: '_header_footer',\n\tPAGE_TITLE: '_page_title',\n\tHELLO_STYLE: '_hello_style',\n\tHELLO_THEME: '_hello_theme',\n};\n\nexport const SettingsPage = () => {\n\tconst [ hasLoaded, setHasLoaded ] = useState( false );\n\tconst [ settingsData, setSettingsData ] = useState( {} );\n\n\tconst settingsPrefix = 'hello_elementor_settings';\n\n\t/**\n\t * Update settings data.\n\t *\n\t * @param {string} settingsName\n\t * @param {string} settingsValue\n\t */\n\tconst updateSettings = ( settingsName, settingsValue ) => {\n\t\tsetSettingsData( {\n\t\t\t...settingsData,\n\t\t\t[ settingsName ]: settingsValue,\n\t\t} );\n\t};\n\n\t/**\n\t * Save settings to server.\n\t */\n\tconst saveSettings = () => {\n\t\tconst data = {};\n\n\t\tObject.values( SETTINGS ).forEach( ( value ) => data[ `${ settingsPrefix }${ value }` ] = settingsData[ value ] ? 'true' : '' );\n\n\t\tconst settings = new api.models.Settings( data );\n\n\t\tsettings.save();\n\n\t\tdispatch( 'core/notices' ).createNotice(\n\t\t\t'success',\n\t\t\t__( 'Settings Saved', 'hello-elementor' ),\n\t\t\t{\n\t\t\t\ttype: 'snackbar',\n\t\t\t\tisDismissible: true,\n\t\t\t},\n\t\t);\n\t};\n\n\tuseEffect( () => {\n\t\tconst fetchSettings = async () => {\n\t\t\ttry {\n\t\t\t\tawait api.loadPromise;\n\t\t\t\tconst settings = new api.models.Settings();\n\t\t\t\tconst response = await settings.fetch();\n\n\t\t\t\tconst data = {};\n\t\t\t\tObject.values( SETTINGS ).forEach( ( value ) => data[ value ] = response[ `${ settingsPrefix }${ value }` ] );\n\n\t\t\t\tsetSettingsData( data );\n\t\t\t\tsetHasLoaded( true );\n\t\t\t} catch ( error ) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error( error );\n\t\t\t}\n\t\t};\n\n\t\tif ( hasLoaded ) {\n\t\t\treturn;\n\t\t}\n\n\t\tfetchSettings();\n\t}, [ settingsData ] );\n\n\tif ( ! hasLoaded ) {\n\t\treturn (\n\t\t\t<Placeholder>\n\t\t\t\t<Spinner />\n\t\t\t</Placeholder>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Fragment>\n\t\t\t<div className=\"hello_elementor__header\">\n\t\t\t\t<div className=\"hello_elementor__container\">\n\t\t\t\t\t<div className=\"hello_elementor__title\">\n\t\t\t\t\t\t<h1>{ __( 'Hello Theme Settings', 'hello-elementor' ) }</h1>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className=\"hello_elementor__main\">\n\t\t\t\t<Panel>\n\n\t\t\t\t\t<SettingsPanel { ...{ SETTINGS, settingsData, updateSettings } } />\n\n\t\t\t\t\t<Button isPrimary onClick={ saveSettings }>\n\t\t\t\t\t\t{ __( 'Save Settings', 'hello-elementor' ) }\n\t\t\t\t\t</Button>\n\n\t\t\t\t</Panel>\n\t\t\t\t<ActionLinksPanel />\n\t\t\t</div>\n\t\t\t<div className=\"hello_elementor__notices\">\n\t\t\t\t<Notices />\n\t\t\t</div>\n\t\t</Fragment>\n\t);\n};\n","import { __ } from '@wordpress/i18n';\nimport { ActionLinks } from '../components/action-links.js';\n\nconst actionLinks = {\n\t'install-elementor':\n\t\t{\n\t\t\timage: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg',\n\t\t\ttitle: __( 'Install Elementor', 'hello-elementor' ),\n\t\t\tmessage: __( 'Create cross-site header & footer using Elementor.', 'hello-elementor' ),\n\t\t\tbutton: __( 'Install Elementor', 'hello-elementor' ),\n\t\t\tlink: helloAdminData.actionLinkURL,\n\t\t},\n\t'activate-elementor':\n\t\t{\n\t\t\timage: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg',\n\t\t\ttitle: __( 'Activate Elementor', 'hello-elementor' ),\n\t\t\tmessage: __( 'Create cross-site header & footer using Elementor.', 'hello-elementor' ),\n\t\t\tbutton: __( 'Activate Elementor', 'hello-elementor' ),\n\t\t\tlink: helloAdminData.actionLinkURL,\n\t\t},\n\t'activate-header-footer-experiment':\n\t\t{\n\t\t\timage: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg',\n\t\t\ttitle: __( 'Style using Elementor', 'hello-elementor' ),\n\t\t\tmessage: __( 'Design your cross-site header & footer from Elementor’s \"Site Settings\" panel.', 'hello-elementor' ),\n\t\t\tbutton: __( 'Activate Hello theme header & footer experiment', 'hello-elementor' ),\n\t\t\tlink: helloAdminData.actionLinkURL,\n\t\t},\n\t'style-header-footer':\n\t\t{\n\t\t\timage: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg',\n\t\t\ttitle: __( 'Style cross-site header & footer', 'hello-elementor' ),\n\t\t\tmessage: __( 'Customize your cross-site header & footer from Elementor’s \"Site Settings\" panel.', 'hello-elementor' ),\n\t\t\tbutton: __( 'Start Designing', 'hello-elementor' ),\n\t\t\tlink: helloAdminData.actionLinkURL,\n\t\t},\n};\n\nexport const ActionLinksPanel = () => {\n\tif ( ! helloAdminData.actionLinkType ) {\n\t\treturn;\n\t}\n\n\treturn <ActionLinks { ...actionLinks[ helloAdminData.actionLinkType ] } />;\n};\n","import { __ } from '@wordpress/i18n';\nimport { PanelBody, ToggleControl, Notice, Dashicon } from '@wordpress/components';\n\nexport const SettingsPanel = ( { SETTINGS, settingsData, updateSettings } ) => {\n\tconst protocol = window.location.protocol || 'https:';\n\tconst hostname = window.location.hostname || 'example.com';\n\tconst prefix = protocol + '//' + hostname;\n\n\treturn (\n\t\t<PanelBody title={ __( 'Hello Theme Settings', 'hello-elementor' ) } >\n\n\t\t\t<Notice status=\"warning\" isDismissible=\"false\">\n\t\t\t\t<Dashicon icon=\"flag\" />\n\t\t\t\t{ __( 'Be cautious, disabling some of the following options may break your website.', 'hello-elementor' ) }\n\t\t\t</Notice>\n\n\t\t\t<ToggleControl\n\t\t\t\tlabel={ __( 'Disable description meta tag', 'hello-elementor' ) }\n\t\t\t\thelp={ __( 'Remove the description meta tag in singular content pages that contain an excerpt.', 'hello-elementor' ) }\n\t\t\t\tchecked={ !! settingsData[ SETTINGS.DESCRIPTION_META_TAG ] || false }\n\t\t\t\tonChange={ ( value ) => updateSettings( SETTINGS.DESCRIPTION_META_TAG, value ) }\n\t\t\t/>\n\t\t\t<code className=\"code-example\"> <meta name="description" content="..." /> </code>\n\n\t\t\t<ToggleControl\n\t\t\t\tlabel={ __( 'Disable skip link', 'hello-elementor' ) }\n\t\t\t\thelp={ __( 'Remove the \"Skip to content\" link used by screen-readers and users navigating with a keyboard.', 'hello-elementor' ) }\n\t\t\t\tchecked={ !! settingsData[ SETTINGS.SKIP_LINK ] || false }\n\t\t\t\tonChange={ ( value ) => updateSettings( SETTINGS.SKIP_LINK, value ) }\n\t\t\t/>\n\t\t\t<code className=\"code-example\"> <a class="skip-link screen-reader-text" href="#content"> Skip to content </a> </code>\n\n\t\t\t<ToggleControl\n\t\t\t\tlabel={ __( 'Disable cross-site header & footer', 'hello-elementor' ) }\n\t\t\t\thelp={ __( 'Remove the header & footer sections from all pages, and their CSS/JS files.', 'hello-elementor' ) }\n\t\t\t\tchecked={ !! settingsData[ SETTINGS.HEADER_FOOTER ] || false }\n\t\t\t\tonChange={ ( value ) => updateSettings( SETTINGS.HEADER_FOOTER, value ) }\n\t\t\t/>\n\t\t\t<code className=\"code-example\"> <header id="site-header" class="site-header"> ... </header> </code>\n\t\t\t<code className=\"code-example\"> <footer id="site-footer" class="site-footer"> ... </footer> </code>\n\n\t\t\t<ToggleControl\n\t\t\t\tlabel={ __( 'Disable page title', 'hello-elementor' ) }\n\t\t\t\thelp={ __( 'Remove the section above the content that contains the main heading of the page.', 'hello-elementor' ) }\n\t\t\t\tchecked={ !! settingsData[ SETTINGS.PAGE_TITLE ] || false }\n\t\t\t\tonChange={ ( value ) => updateSettings( SETTINGS.PAGE_TITLE, value ) }\n\t\t\t/>\n\t\t\t<code className=\"code-example\"> <header class="page-header"> <h1 class="entry-title"> Post title </h1> </header> </code>\n\n\t\t\t<ToggleControl\n\t\t\t\tlabel={ __( 'Unregister Hello style.css', 'hello-elementor' ) }\n\t\t\t\thelp={ __( \"Disable Hello theme's style.css file which contains CSS reset rules for unified cross-browser view.\", 'hello-elementor' ) }\n\t\t\t\tchecked={ !! settingsData[ SETTINGS.HELLO_STYLE ] || false }\n\t\t\t\tonChange={ ( value ) => updateSettings( SETTINGS.HELLO_STYLE, value ) }\n\t\t\t/>\n\t\t\t<code className=\"code-example\"> <link rel="stylesheet" href="{ prefix }/wp-content/themes/hello-elementor/style.min.css" /> </code>\n\n\t\t\t<ToggleControl\n\t\t\t\tlabel={ __( 'Unregister Hello theme.css', 'hello-elementor' ) }\n\t\t\t\thelp={ __( \"Disable Hello theme's theme.css file which contains CSS rules that style WordPress elements.\", 'hello-elementor' ) }\n\t\t\t\tchecked={ !! settingsData[ SETTINGS.HELLO_THEME ] || false }\n\t\t\t\tonChange={ ( value ) => updateSettings( SETTINGS.HELLO_THEME, value ) }\n\t\t\t/>\n\t\t\t<code className=\"code-example\"> <link rel="stylesheet" href="{ prefix }/wp-content/themes/hello-elementor/theme.min.css" /> </code>\n\n\t\t</PanelBody>\n\t);\n};\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"api\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"notices\"];","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import './hello-admin.scss';\nimport { render } from '@wordpress/element';\nimport { SettingsPage } from './pages/settings-page.js';\n\nconst App = () => {\n\treturn <SettingsPage />;\n};\n\ndocument.addEventListener( 'DOMContentLoaded', () => {\n\tconst rootElement = document.getElementById( 'hello-elementor-settings' );\n\n\tif ( rootElement ) {\n\t\trender(\n\t\t\t<App />,\n\t\t\trootElement,\n\t\t);\n\t}\n} );\n"],"names":["ActionLinks","image","title","message","button","link","React","createElement","className","src","alt","href","target","rel","exports","_react","require","_notices","_data","_i18n","_api","_interopRequireDefault","_components","_settingsPanel","_actionLinksPanel","Notices","notices","useSelect","select","noticesStore","getNotices","filter","notice","type","removeNotice","useDispatch","SnackbarList","onRemove","SETTINGS","DESCRIPTION_META_TAG","SKIP_LINK","HEADER_FOOTER","PAGE_TITLE","HELLO_STYLE","HELLO_THEME","SettingsPage","hasLoaded","setHasLoaded","useState","settingsData","setSettingsData","settingsPrefix","updateSettings","settingsName","settingsValue","saveSettings","data","Object","values","forEach","value","settings","api","models","Settings","save","dispatch","createNotice","__","isDismissible","useEffect","fetchSettings","loadPromise","response","fetch","error","console","Placeholder","Spinner","Fragment","Panel","SettingsPanel","Button","isPrimary","onClick","ActionLinksPanel","_actionLinks","actionLinks","helloAdminData","templateDirectoryURI","actionLinkURL","actionLinkType","protocol","window","location","hostname","prefix","PanelBody","Notice","status","Dashicon","icon","ToggleControl","label","help","checked","onChange","_element","_settingsPage","App","document","addEventListener","rootElement","getElementById","render"],"sourceRoot":""}