{"version":3,"file":"poodll_flashsnapshotrecorder.min.js","sources":["../src/poodll_flashsnapshotrecorder.js"],"sourcesContent":["/* jshint ignore:start */\ndefine(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzloader'], function ($, log, utils, uploader, lz) {\n\n    \"use strict\"; // jshint ;\n\n    log.debug('PoodLL Flash Snapshot Recorder: initialising');\n\n    return {\n\n        savebutton: null,\n        snapshotdatacontrol: null,\n\n        // This recorder supports the current browser\n        supports_current_browser: function (config) {\n            var iOS = utils.is_ios();\n            var isAndroid = utils.is_android();\n            if (iOS || (!config.flashonandroid && isAndroid)) {\n                return false;\n            } else {\n                if (config.mediatype != 'snapshot') {\n                    return false;\n                }\n\n                log.debug('PoodLL Flash Snapshot Recorder: supports this browser');\n                return true;\n            }\n        },\n\n        // Perform the embed of this recorder on the page\n        //into the element passed in. with config\n        embed: function (element, config) {\n\n            //swf recorder\n            var swfopts = $.parseJSON(config.flashsnapshot_widgetjson);\n            lz.embed.swf(swfopts);\n            //the save part fails quieltly with this .. atto_poodll: No filename control or value could be found.\n            //I think it cant poke outside the iframe ..but not sure.. all the params to teh recoder are ok. J 20160910\n        }\n    }//end of returned object\n});//total end\n"],"names":["define","$","log","utils","uploader","lz","debug","savebutton","snapshotdatacontrol","supports_current_browser","config","iOS","is_ios","isAndroid","is_android","flashonandroid","mediatype","embed","element","swfopts","parseJSON","flashsnapshot_widgetjson","swf"],"mappings":"AACAA,oDAAO,CAAC,SAAU,WAAY,0BAA2B,yBAA0B,2BAA2B,SAAUC,EAAGC,IAAKC,MAAOC,SAAUC,WAI7IH,IAAII,MAAM,gDAEH,CAEHC,WAAY,KACZC,oBAAqB,KAGrBC,yBAA0B,SAAUC,YAC5BC,IAAMR,MAAMS,SACZC,UAAYV,MAAMW,qBAClBH,MAASD,OAAOK,gBAAkBF,aAGV,YAApBH,OAAOM,YAIXd,IAAII,MAAM,0DACH,KAMfW,MAAO,SAAUC,QAASR,YAGlBS,QAAUlB,EAAEmB,UAAUV,OAAOW,0BACjChB,GAAGY,MAAMK,IAAIH"}