UNPKG

2.92 kBSource Map (JSON)View Raw
1{"version":3,"sources":["@wordpress/block-library/src/embed/embed-controls.js"],"names":["__","Fragment","IconButton","Toolbar","PanelBody","ToggleControl","BlockControls","InspectorControls","EmbedControls","props","blockSupportsResponsive","showEditButton","themeSupportsResponsive","allowResponsive","getResponsiveHelp","toggleResponsive","switchBackToURLInput"],"mappings":";;AAAA;;;AAGA,SAASA,EAAT,QAAmB,iBAAnB;AACA,SAASC,QAAT,QAAyB,oBAAzB;AACA,SAASC,UAAT,EAAqBC,OAArB,EAA8BC,SAA9B,EAAyCC,aAAzC,QAA8D,uBAA9D;AACA,SAASC,aAAT,EAAwBC,iBAAxB,QAAiD,yBAAjD;;AAEA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,CAAEC,KAAF,EAAa;AAAA,MAEjCC,uBAFiC,GAS9BD,KAT8B,CAEjCC,uBAFiC;AAAA,MAGjCC,cAHiC,GAS9BF,KAT8B,CAGjCE,cAHiC;AAAA,MAIjCC,uBAJiC,GAS9BH,KAT8B,CAIjCG,uBAJiC;AAAA,MAKjCC,eALiC,GAS9BJ,KAT8B,CAKjCI,eALiC;AAAA,MAMjCC,iBANiC,GAS9BL,KAT8B,CAMjCK,iBANiC;AAAA,MAOjCC,gBAPiC,GAS9BN,KAT8B,CAOjCM,gBAPiC;AAAA,MAQjCC,oBARiC,GAS9BP,KAT8B,CAQjCO,oBARiC;AAUlC,SACC,cAAC,QAAD,QACC,cAAC,aAAD,QACC,cAAC,OAAD,QACGL,cAAc,IACf,cAAC,UAAD;AACC,IAAA,SAAS,EAAC,6BADX;AAEC,IAAA,KAAK,EAAGX,EAAE,CAAE,UAAF,CAFX;AAGC,IAAA,IAAI,EAAC,MAHN;AAIC,IAAA,OAAO,EAAGgB;AAJX,IAFF,CADD,CADD,EAaGJ,uBAAuB,IAAIF,uBAA3B,IACD,cAAC,iBAAD,QACC,cAAC,SAAD;AAAW,IAAA,KAAK,EAAGV,EAAE,CAAE,gBAAF,CAArB;AAA4C,IAAA,SAAS,EAAC;AAAtD,KACC,cAAC,aAAD;AACC,IAAA,KAAK,EAAGA,EAAE,CAAE,4BAAF,CADX;AAEC,IAAA,OAAO,EAAGa,eAFX;AAGC,IAAA,IAAI,EAAGC,iBAHR;AAIC,IAAA,QAAQ,EAAGC;AAJZ,IADD,CADD,CAdF,CADD;AA4BA,CAtCD;;AAwCA,eAAeP,aAAf","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Fragment } from '@wordpress/element';\nimport { IconButton, Toolbar, PanelBody, ToggleControl } from '@wordpress/components';\nimport { BlockControls, InspectorControls } from '@wordpress/block-editor';\n\nconst EmbedControls = ( props ) => {\n\tconst {\n\t\tblockSupportsResponsive,\n\t\tshowEditButton,\n\t\tthemeSupportsResponsive,\n\t\tallowResponsive,\n\t\tgetResponsiveHelp,\n\t\ttoggleResponsive,\n\t\tswitchBackToURLInput,\n\t} = props;\n\treturn (\n\t\t<Fragment>\n\t\t\t<BlockControls>\n\t\t\t\t<Toolbar>\n\t\t\t\t\t{ showEditButton && (\n\t\t\t\t\t\t<IconButton\n\t\t\t\t\t\t\tclassName=\"components-toolbar__control\"\n\t\t\t\t\t\t\tlabel={ __( 'Edit URL' ) }\n\t\t\t\t\t\t\ticon=\"edit\"\n\t\t\t\t\t\t\tonClick={ switchBackToURLInput }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t</Toolbar>\n\t\t\t</BlockControls>\n\t\t\t{ themeSupportsResponsive && blockSupportsResponsive && (\n\t\t\t\t<InspectorControls>\n\t\t\t\t\t<PanelBody title={ __( 'Media Settings' ) } className=\"blocks-responsive\">\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Resize for smaller devices' ) }\n\t\t\t\t\t\t\tchecked={ allowResponsive }\n\t\t\t\t\t\t\thelp={ getResponsiveHelp }\n\t\t\t\t\t\t\tonChange={ toggleResponsive }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</PanelBody>\n\t\t\t\t</InspectorControls>\n\t\t\t) }\n\t\t</Fragment>\n\t);\n};\n\nexport default EmbedControls;\n"]}
\No newline at end of file