{"version":3,"sources":["keditor-components.js"],"names":["$","KEditor","keditor","flog","log","components","getContent","component","componentContent","children","audio","find","unwrap","html","settingEnabled","settingTitle","initSettingForm","form","append","showSettingForm","options","fileInput","btnAudioFileInput","off","on","e","preventDefault","trigger","file","this","files","test","type","attr","URL","createObjectURL","load","showSettingPanel","alert","autoplayToggle","checked","removeAttr","showcontrolsToggle","audioWidth","css","value","jQuery","initFormBuilder","self","formBuilderArea","formData","formContent","prepend","btnEditForm","btnPreviewForm","formBuilder","disableInjectedStyle","showActionButtons","dataType","disableFields","disabledAttrs","typeUserDisabledAttrs","checkbox-group","hasClass","show","hide","addClass","removeClass","renderForm","data","formRender","actions","getData","each","div","dataGrid","split","wrap","label","input","subDiv","length","init","contentArea","container","remove","getSettingComponent","layout","val","iframe","wrapper","parent","initIframeCover","btnEdit","inputData","prompt","src","btn169","btn43","img","photoEdit","next","reader","FileReader","addEventListener","target","result","width","height","readAsDataURL","inputAlign","panel","inputResponsive","cbbStyle","inputWidth","inputHeight","newWidth","newHeight","Math","round","ratio","algin","prop","CKEDITOR","disableAutoInline","toolbarGroups","name","groups","title","allowedContent","bodyId","templates_replaceContent","enterMode","forceEnterMode","format_tags","removePlugins","removeButtons","minimumChangeMilliseconds","onComponentChanged","call","onContainerChanged","onContentChanged","editor","ckeditor","onComponentReady","id","instances","destroy","video","is","btnVideoFileInput","removeProp","loopToggle","currentWidth","replace","currentRatio","videoWidth","vimeoRegex","match","chkAutoplay","embedItem","currentUrl","newUrl","indexOf","youtubeRegex"],"mappings":"CAAA,SAAWA,GACP,GAAIC,GAAUD,EAAEE,QACZC,EAAOF,EAAQG,GAEnBH,GAAQI,WAAkB,OACtBC,WAAY,SAAUC,EAAWL,GAC7BC,EAAK,0CAEL,IAAIK,GAAmBD,EAAUE,SAAS,8BACtCC,EAAQF,EAAiBG,KAAK,QAGlC,OAFAD,GAAME,SAECJ,EAAiBK,QAG5BC,gBAAgB,EAEhBC,aAAc,iBAEdC,gBAAiB,SAAUC,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AM,GACf5J,EAAQoF,sBAAsB3E,KAAK,0BAA0BsB,KAAK,MAAO,iCAAmC6H,EAAM,IAElHxH,MAAM,iCAId,IAAI2D,GAAShF,EAAKN,KAAK,mBACvBsF,GAAOzE,GAAG,QAAS,SAAUC,GACzBA,EAAEC,iBAEFxB,EAAQoF,sBAAsB3E,KAAK,qBAAqBwD,YAAY,yBAAyBD,SAAS,2BAG1G,IAAIgC,GAAQjF,EAAKN,KAAK,kBACtBuF,GAAM1E,GAAG,QAAS,SAAUC,GACxBA,EAAEC,iBAEFxB,EAAQoF,sBAAsB3E,KAAK,qBAAqBwD,YAAY,0BAA0BD,SAAS,0BAG3G,IAAI6F,GAAc9I,EAAKN,KAAK,oBAC5BoJ,GAAYvI,GAAG,QAAS,WACpB,GAAIwI,GAAY9J,EAAQoF,sBAAsB3E,KAAK,0BAC/CsJ,EAAaD,EAAU/H,KAAK,OAC5BiI,EAAUD,EAAWP,QAAQ,UAAW,IAAO,cAAgBK,EAAYV,GAAG,YAAc,EAAI,EAEpGlJ,GAAK,gBAAkB8J,EAAY,YAAcC,GACjDF,EAAU/H,KAAK,MAAOiI,MAI9B/I,gBAAiB,SAAUF,EAAMV,EAAWL,GACxCC,EAAK,sCAAuCI,EAE5C,IAAIyJ,GAAYzJ,EAAUI,KAAK,0BAC3BoJ,EAAc9I,EAAKN,KAAK,qBACxBqF,EAAMgE,EAAU/H,KAAK,MAEzB8H,GAAYrC,KAAK,UAAW1B,EAAImE,QAAQ,uBAIjDrH","file":"keditor-components.min.js","sourcesContent":["(function ($) {\r\n var KEditor = $.keditor;\r\n var flog = KEditor.log;\r\n \r\n KEditor.components['audio'] = {\r\n getContent: function (component, keditor) {\r\n flog('getContent \"audio\" component, component');\r\n \r\n var componentContent = component.children('.keditor-component-content');\r\n var audio = componentContent.find('audio');\r\n audio.unwrap();\r\n \r\n return componentContent.html();\r\n },\r\n \r\n settingEnabled: true,\r\n \r\n settingTitle: 'Audio Settings',\r\n \r\n initSettingForm: function (form, keditor) {\r\n flog('init \"audio\" settings', form);\r\n \r\n form.append(\r\n '
'\r\n );\r\n },\r\n \r\n showSettingForm: function (form, component, keditor) {\r\n flog('showSettingForm \"audio\" component', form, component);\r\n \r\n var options = keditor.options;\r\n \r\n var audio = component.find('audio');\r\n var fileInput = form.find('#audioFileInput');\r\n var btnAudioFileInput = form.find('.btn-audioFileInput');\r\n btnAudioFileInput.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 var file = this.files[0];\r\n if (/audio/.test(file.type)) {\r\n // Todo: Upload to your server :)\r\n \r\n audio.attr('src', URL.createObjectURL(file));\r\n \r\n audio.load(function () {\r\n keditor.showSettingPanel(component, options);\r\n });\r\n } else {\r\n alert('Your selected file is not an audio file!');\r\n }\r\n });\r\n \r\n var autoplayToggle = form.find('#audio-autoplay');\r\n autoplayToggle.off('click').on('click', function (e) {\r\n if (this.checked) {\r\n audio.attr('autoplay', 'autoplay');\r\n } else {\r\n audio.removeAttr('autoplay');\r\n }\r\n });\r\n \r\n var showcontrolsToggle = form.find('#audio-showcontrols');\r\n showcontrolsToggle.off('click').on('click', function (e) {\r\n if (this.checked) {\r\n audio.attr('controls', 'controls');\r\n } else {\r\n audio.removeAttr('controls');\r\n }\r\n });\r\n \r\n var audioWidth = form.find('#audio-width');\r\n audioWidth.off('change').on('change', function () {\r\n audio.css('width', this.value + '%');\r\n });\r\n }\r\n };\r\n})(jQuery);\r\n\r\n(function ($) {\r\n var KEditor = $.keditor;\r\n var flog = KEditor.log;\r\n \r\n KEditor.components['form'] = {\r\n initFormBuilder: function (component) {\r\n var self = this;\r\n \r\n var formBuilderArea = component.find('.form-builder-area');\r\n var formData = component.find('.form-data');\r\n var formContent = component.find('.form-content');\r\n \r\n component.find('.keditor-component-content').prepend(\r\n '' +\r\n ' Preview form ' +\r\n ' Edit form' +\r\n '
'\r\n );\r\n \r\n var btnEditForm = component.find('.btn-edit-form');\r\n var btnPreviewForm = component.find('.btn-preview-form');\r\n \r\n formBuilderArea.formBuilder({\r\n disableInjectedStyle: true,\r\n showActionButtons: false,\r\n dataType: 'json',\r\n formData: formData.html(),\r\n disableFields: [\r\n 'autocomplete',\r\n 'paragraph',\r\n 'header'\r\n ],\r\n disabledAttrs: ['access'],\r\n \r\n typeUserDisabledAttrs: {\r\n 'checkbox-group': [\r\n 'toggle',\r\n 'inline'\r\n ]\r\n }\r\n });\r\n \r\n btnEditForm.on('click', function (e) {\r\n e.preventDefault();\r\n \r\n if (!btnEditForm.hasClass('disabled')) {\r\n formBuilderArea.show();\r\n formContent.hide();\r\n btnEditForm.addClass('disabled');\r\n btnPreviewForm.removeClass('disabled');\r\n }\r\n });\r\n \r\n btnPreviewForm.on('click', function (e) {\r\n e.preventDefault();\r\n \r\n if (!btnPreviewForm.hasClass('disabled')) {\r\n self.renderForm(component);\r\n \r\n formBuilderArea.hide();\r\n formContent.show();\r\n btnEditForm.removeClass('disabled');\r\n btnPreviewForm.addClass('disabled');\r\n }\r\n });\r\n },\r\n \r\n renderForm: function (component, formBuilder) {\r\n var formContent = component.find('.form-content');\r\n \r\n if (!formBuilder) {\r\n var formBuilderArea = component.find('.form-builder-area');\r\n formBuilder = formBuilderArea.data('formBuilder');\r\n }\r\n \r\n formContent.formRender({\r\n dataType: 'json',\r\n formData: formBuilder.actions.getData('json')\r\n });\r\n \r\n if (formContent.hasClass('form-horizontal')) {\r\n formContent.children('div').each(function () {\r\n var div = $(this);\r\n var dataGrid = formContent.attr('data-grid') || '4-8';\r\n dataGrid = dataGrid.split('-');\r\n \r\n if (div.attr('class')) {\r\n if (div.hasClass('fb-button')) {\r\n div.find('button').wrap('');\r\n } else {\r\n var label = div.children('label');\r\n var input = div.children('input, select, textarea');\r\n var subDiv = div.children('div');\r\n \r\n label.addClass('control-label col-sm-' + dataGrid[0]);\r\n \r\n if (subDiv.length > 0) {\r\n subDiv.addClass('col-sm-' + dataGrid[1]);\r\n } else {\r\n input.addClass('form-control').wrap('');\r\n }\r\n }\r\n }\r\n });\r\n }\r\n },\r\n \r\n init: function (contentArea, container, component, keditor) {\r\n flog('init \"form\" component', component);\r\n \r\n var componentContent = component.find('.keditor-component-content');\r\n var formBuilder = component.find('.form-builder-area');\r\n var formContent = component.find('.form-content');\r\n var formData = component.find('.form-data');\r\n \r\n if (formData.length === 0) {\r\n componentContent.append('')\r\n }\r\n \r\n if (formContent.length === 0) {\r\n componentContent.append('')\r\n } else {\r\n formContent.hide()\r\n }\r\n \r\n if (formBuilder.length === 0) {\r\n formBuilder = $('');\r\n componentContent.append(formBuilder);\r\n }\r\n \r\n this.initFormBuilder(component);\r\n },\r\n \r\n getContent: function (component, keditor) {\r\n flog('getContent \"form\" component', component);\r\n \r\n var self = this;\r\n var componentContent = component.find('.keditor-component-content');\r\n var formData = component.find('.form-data');\r\n var formBuilderArea = $('#' + component.attr('id')).find('.form-builder-area');\r\n var formBuilder = formBuilderArea.data('formBuilder');\r\n \r\n self.renderForm(component, formBuilder);\r\n formData.html(formBuilder.actions.getData('json'));\r\n component.find('.form-builder-area, .form-builder-tools').remove();\r\n component.find('.form-content').show();\r\n \r\n return componentContent.html();\r\n },\r\n \r\n settingEnabled: true,\r\n \r\n settingTitle: 'Form Settings',\r\n \r\n initSettingForm: function (form, keditor) {\r\n flog('initSettingForm \"form\" component');\r\n \r\n var self = this;\r\n \r\n form.html(\r\n '