{"version":3,"file":"screen-background.mjs","names":["blockEditorPrivateApis","WCText"],"sources":["../src/screen-background.tsx"],"sourcesContent":["import { __ } from '@wordpress/i18n';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { __experimentalText as WCText } from '@wordpress/components';\nimport BackgroundPanel from './background-panel';\nimport { ScreenHeader } from './screen-header';\nimport { useSetting } from './hooks';\nimport { unlock } from './lock-unlock';\n\nconst { useHasBackgroundPanel } = unlock( blockEditorPrivateApis );\n\nfunction ScreenBackground() {\n\tconst [ settings ] = useSetting( '' );\n\tconst hasBackgroundPanel = useHasBackgroundPanel( settings );\n\treturn (\n\t\t<>\n\t\t\t<ScreenHeader\n\t\t\t\ttitle={ __( 'Background' ) }\n\t\t\t\tdescription={\n\t\t\t\t\t<WCText>\n\t\t\t\t\t\t{ __( \"Set styles for the site's background.\" ) }\n\t\t\t\t\t</WCText>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t{ hasBackgroundPanel && <BackgroundPanel /> }\n\t\t</>\n\t);\n}\n\nexport default ScreenBackground;\n"],"mappings":";;;;;;;;;AAQA,MAAM,EAAE,0BAA0B,OAAQA,WAAuB;AAEjE,SAAS,mBAAmB;CAC3B,MAAM,CAAE,YAAa,WAAY,EAAG;CACpC,MAAM,qBAAqB,sBAAuB,QAAS;CAC3D,OACC,qBAAA,UAAA,EAAA,UAAA,CACC,oBAAC,cAAD;EACC,OAAQ,GAAI,YAAa;EACzB,aACC,oBAACC,oBAAD,EAAA,UACG,GAAI,uCAAwC,EACvC,CAAA;CAET,CAAA,GACC,sBAAsB,oBAAC,iBAAD,CAAkB,CAAA,CACzC,EAAA,CAAA;AAEJ"}