{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///external \"KEditor\"","webpack:///external \"jQuery\"","webpack:///external \"CKEDITOR\"","webpack:///./src/components/keditor-component-audio.js","webpack:///./src/components/keditor-component-form.js","webpack:///./src/components/keditor-component-googlemap.js","webpack:///./src/components/keditor-component-photo.js","webpack:///./src/components/keditor-component-text.js","webpack:///./src/components/keditor-component-video.js","webpack:///./src/components/keditor-component-vimeo.js","webpack:///./src/components/keditor-component-youtube.js"],"names":["root","factory","exports","module","require","define","amd","a","i","self","this","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__1__","__WEBPACK_EXTERNAL_MODULE__2__","installedModules","__webpack_require__","moduleId","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","KEditor","components","settingEnabled","settingTitle","init","contentArea","container","component","keditor","componentContent","find","length","wrapInner","initSettingForm","form","append","fileInput","off","on","e","preventDefault","trigger","file","files","test","type","getSettingComponent","attr","URL","createObjectURL","alert","prop","checked","audio","parent","css","showSettingForm","wrapper","autoplayToggle","controlsToggle","audioWidth","val","modal","formBuilder","emptyContent","renderForm","formContent","temp","$","formRender","dataType","formData","actions","getData","html","hasClass","children","each","div","dataGrid","split","wrap","label","input","subDiv","addClass","initModal","visibility","display","opacity","showActionButtons","disableFields","disabledAttrs","typeUserDisabledAttrs","hideModal","setTimeout","setData","showModal","removeClass","layout","iframe","initIframeCover","inputData","prompt","src","options","photoEdit","next","reader","FileReader","addEventListener","img","target","result","width","height","load","readAsDataURL","inputWidth","inputHeight","newWidth","newHeight","Math","round","ratio","inputAlign","inputResponsive","cbbStyle","panel","algin","CKEDITOR","disableAutoInline","dom","element","scrollIntoView","selection","range","toolbarGroups","groups","title","allowedContent","bodyId","templates_replaceContent","enterMode","forceEnterMode","format_tags","removePlugins","removeButtons","minimumChangeMilliseconds","onComponentChanged","onContainerChanged","onContentChanged","editor","inline","appendTo","onComponentReady","event","data","domEvent","ctrlKey","keyCode","console","log","iframeBody","scrollTop","offset","top","getContent","id","instances","destroy","video","is","unwrap","currentRatio","filter","match","chkAutoplay","embedItem","newUrl","replace","indexOf"],"mappings":";CAAA,SAA2CA,EAAMC,GAChD,GAAsB,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,WAAYA,QAAQ,UAAWA,QAAQ,kBACpE,GAAqB,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,UAAW,SAAU,YAAaJ,OACtC,CACJ,IAAIM,EAAuB,iBAAZL,QAAuBD,EAAQG,QAAQ,WAAYA,QAAQ,UAAWA,QAAQ,aAAeH,EAAQD,EAAc,QAAGA,EAAa,OAAGA,EAAe,UACpK,IAAI,IAAIQ,KAAKD,GAAuB,iBAAZL,QAAuBA,QAAUF,GAAMQ,GAAKD,EAAEC,IAPxE,CASmB,oBAATC,KAAuBA,KAAOC,MAAM,SAASC,EAAgCC,EAAgCC,GACvH,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUd,QAGnC,IAAIC,EAASW,EAAiBE,GAAY,CACzCR,EAAGQ,EACHC,GAAG,EACHf,QAAS,IAUV,OANAgB,EAAQF,GAAUG,KAAKhB,EAAOD,QAASC,EAAQA,EAAOD,QAASa,GAG/DZ,EAAOc,GAAI,EAGJd,EAAOD,QA0Df,OArDAa,EAAoBK,EAAIF,EAGxBH,EAAoBM,EAAIP,EAGxBC,EAAoBO,EAAI,SAASpB,EAASqB,EAAMC,GAC3CT,EAAoBU,EAAEvB,EAASqB,IAClCG,OAAOC,eAAezB,EAASqB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhET,EAAoBe,EAAI,SAAS5B,GACX,oBAAX6B,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAezB,EA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4IAEfA,GAASA,EAAM,GACfpJ,EAAQkB,sBAAsBhB,KAAK,0BAA0BiB,KAAK,MAAO,iCAAmCiI,EAAM,IAElH9H,MAAM,mCAIDhB,EAAKJ,KAAK,oBAChBQ,GAAG,SAAS,SAAUC,GACzBA,EAAEC,iBAEFZ,EAAQkB,sBAAsBhB,KAAK,qBAAqBoE,YAAY,yBAAyBb,SAAS,6BAG9FnD,EAAKJ,KAAK,mBAChBQ,GAAG,SAAS,SAAUC,GACxBA,EAAEC,iBAEFZ,EAAQkB,sBAAsBhB,KAAK,qBAAqBoE,YAAY,0BAA0Bb,SAAS,4BAG3G,IAAI4F,EAAc/I,EAAKJ,KAAK,qBAC5BmJ,EAAY3I,GAAG,SAAS,WACpB,IAAI4I,EAAYtJ,EAAQkB,sBAAsBhB,KAAK,0BAE/CqJ,EADaD,EAAUnI,KAAK,OACPqI,QAAQ,UAAW,IAAO,cAAgBH,EAAYL,GAAG,YAAc,EAAI,GACpGM,EAAUnI,KAAK,MAAOoI,OAI9B3H,gBAAiB,SAAUtB,EAAMP,EAAWC,GACxC,IAAIsJ,EAAYvJ,EAAUG,KAAK,0BAC3BmJ,EAAc/I,EAAKJ,KAAK,qBACxB0E,EAAM0E,EAAUnI,KAAK,OAEzBkI,EAAY9H,KAAK,WAA0C,IAA/BqD,EAAI6E,QAAQ","file":"js/keditor-components.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"KEditor\"), require(\"jQuery\"), require(\"CKEDITOR\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"KEditor\", \"jQuery\", \"CKEDITOR\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"KEditor\"), require(\"jQuery\"), require(\"CKEDITOR\")) : factory(root[\"KEditor\"], root[\"jQuery\"], root[\"CKEDITOR\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1__;","module.exports = __WEBPACK_EXTERNAL_MODULE__2__;","import KEditor from 'keditor';\r\n\r\nKEditor.components['audio'] = {\r\n settingEnabled: true,\r\n \r\n settingTitle: 'Audio Settings',\r\n \r\n init: function (contentArea, container, component, keditor) {\r\n let componentContent = component.find('.keditor-component-content');\r\n \r\n if (componentContent.find('.audio-wrapper').length === 0) {\r\n componentContent.wrapInner('
');\r\n }\r\n },\r\n \r\n initSettingForm: function (form, keditor) {\r\n form.append(\r\n ''\r\n );\r\n \r\n let fileInput = form.find('.audio-upload');\r\n let btnAudioUpload = form.find('.btn-audio-upload');\r\n btnAudioUpload.off('click').on('click', function (e) {\r\n e.preventDefault();\r\n \r\n fileInput.trigger('click');\r\n });\r\n fileInput.off('change').on('change', function () {\r\n let file = this.files[0];\r\n if (/audio/.test(file.type)) {\r\n // Todo: Upload to your server :)\r\n \r\n let audio = keditor.getSettingComponent().find('audio');\r\n audio.attr('src', URL.createObjectURL(file));\r\n } else {\r\n alert('Your selected file is not an audio file!');\r\n }\r\n });\r\n \r\n let autoplayToggle = form.find('.audio-autoplay');\r\n autoplayToggle.on('click', function () {\r\n let audio = keditor.getSettingComponent().find('audio');\r\n audio.prop('autoplay', this.checked);\r\n });\r\n \r\n let controlsToggle = form.find('.audio-controls');\r\n controlsToggle.on('click', function () {\r\n let audio = keditor.getSettingComponent().find('audio');\r\n audio.prop('controls', this.checked);\r\n });\r\n \r\n let audioWidth = form.find('.audio-width');\r\n audioWidth.on('change', function () {\r\n let audio = keditor.getSettingComponent().find('audio');\r\n let wrapper = audio.parent();\r\n \r\n wrapper.attr('data-width', this.value);\r\n audio.css('width', this.value + '%');\r\n });\r\n },\r\n \r\n showSettingForm: function (form, component, keditor) {\r\n let audio = component.find('audio');\r\n let wrapper = audio.parent();\r\n \r\n let autoplayToggle = form.find('.audio-autoplay');\r\n let controlsToggle = form.find('.audio-controls');\r\n let audioWidth = form.find('.audio-width');\r\n \r\n autoplayToggle.prop('checked', !!audio.attr('autoplay'));\r\n controlsToggle.prop('checked', !!audio.attr('controls'));\r\n audioWidth.val(wrapper.attr('data-width') || 100);\r\n }\r\n};\r\n","import '../styles/keditor-component-form.less';\r\n\r\nimport $ from 'jquery';\r\nimport KEditor from 'keditor';\r\n\r\nlet modal;\r\nlet formBuilder;\r\n\r\nKEditor.components['form'] = {\r\n emptyContent: '
[No form content]