File "view.min.js.map"
Full Path: /home/pumpbmko/public_html/wp-content-20250114100547/plugins/gutenberg/build/block-library/blocks/file/view.min.js.map
File size: 2.89 KB
MIME-type: application/json
Charset: utf-8
{"version":3,"file":"./build/block-library/blocks/file/view.min.js","mappings":"mBAAA,MAAM,EAA+BA,OAAW,GAAiB,cC+C3DC,EAAwBC,IAC7B,IAAIC,EACJ,IACCA,EAAK,IAAIH,OAAOI,cAAeF,EAChC,CAAE,MAAQG,GACTF,OAAKG,CACN,CACA,OAAOH,CAAE,GC7CVI,EAAAA,EAAAA,OACC,YACA,CACCC,MAAO,CACN,iBAAIC,GACH,QDNET,OAAOU,UAAUC,UAAUC,QAAS,SAAY,GAKhDZ,OAAOU,UAAUC,UAAUC,QAAS,YAAe,GAMvDZ,OAAOU,UAAUC,UAAUC,QAAS,cAAiB,GACrDZ,OAAOU,UAAUG,gBACjBb,OAAOU,UAAUG,eAAiB,IAO7Bb,OAAOI,eAAiB,kBAAmBJ,UAE/CC,EAAqB,iBACrBA,EAAqB,eChBrB,IAGF,CAAEa,MAAM,G","sources":["webpack://wp/external window [\"wp\",\"interactivity\"]","webpack://wp/./packages/block-library/build-module/file/utils/@wordpress/block-library/src/file/utils/index.js","webpack://wp/./packages/block-library/build-module/file/@wordpress/block-library/src/file/view.js"],"sourcesContent":["const __WEBPACK_NAMESPACE_OBJECT__ = window[\"wp\"][\"interactivity\"];","/**\n * Uses a combination of user agent matching and feature detection to determine whether\n * the current browser supports rendering PDFs inline.\n *\n * @return {boolean} Whether or not the browser supports inline PDFs.\n */\nexport const browserSupportsPdfs = () => {\n\t// Most mobile devices include \"Mobi\" in their UA.\n\tif ( window.navigator.userAgent.indexOf( 'Mobi' ) > -1 ) {\n\t\treturn false;\n\t}\n\n\t// Android tablets are the noteable exception.\n\tif ( window.navigator.userAgent.indexOf( 'Android' ) > -1 ) {\n\t\treturn false;\n\t}\n\n\t// iPad pretends to be a Mac.\n\tif (\n\t\twindow.navigator.userAgent.indexOf( 'Macintosh' ) > -1 &&\n\t\twindow.navigator.maxTouchPoints &&\n\t\twindow.navigator.maxTouchPoints > 2\n\t) {\n\t\treturn false;\n\t}\n\n\t// IE only supports PDFs when there's an ActiveX object available for it.\n\tif (\n\t\t!! ( window.ActiveXObject || 'ActiveXObject' in window ) &&\n\t\t! (\n\t\t\tcreateActiveXObject( 'AcroPDF.PDF' ) ||\n\t\t\tcreateActiveXObject( 'PDF.PdfCtrl' )\n\t\t)\n\t) {\n\t\treturn false;\n\t}\n\n\treturn true;\n};\n\n/**\n * Helper function for creating ActiveX objects, catching any errors that are thrown\n * when it's generated.\n *\n * @param {string} type The name of the ActiveX object to create.\n * @return {window.ActiveXObject|undefined} The generated ActiveXObject, or null if it failed.\n */\nconst createActiveXObject = ( type ) => {\n\tlet ax;\n\ttry {\n\t\tax = new window.ActiveXObject( type );\n\t} catch ( e ) {\n\t\tax = undefined;\n\t}\n\treturn ax;\n};\n","/**\n * WordPress dependencies\n */\nimport { store } from '@wordpress/interactivity';\n/**\n * Internal dependencies\n */\nimport { browserSupportsPdfs } from './utils';\n\nstore(\n\t'core/file',\n\t{\n\t\tstate: {\n\t\t\tget hasPdfPreview() {\n\t\t\t\treturn browserSupportsPdfs();\n\t\t\t},\n\t\t},\n\t},\n\t{ lock: true }\n);\n"],"names":["window","createActiveXObject","type","ax","ActiveXObject","e","undefined","store","state","hasPdfPreview","navigator","userAgent","indexOf","maxTouchPoints","lock"],"sourceRoot":""}