text: !function(t,e){"use strict";var i={"font-styles":function(t,e){var i=e&&e.size?" btn-"+e.size:"";return"<li class='dropdown'><a class='btn dropdown-toggle btn-white"+i+"' data-toggle='dropdown' href='#'>"+"<i class='fa fa-font'></i>&nbsp;<span class='current-font'>"+t.font_styles.normal+"</span>&nbsp;<b class='caret'></b>"+"</a>"+"<ul class='dropdown-menu'>"+"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='div'>"+t.font_styles.normal+"</a></li>"+"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h1'>"+t.font_styles.h1+"</a></li>"+"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h2'>"+t.font_styles.h2+"</a></li>"+"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h3'>"+t.font_styles.h3+"</a></li>"+"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h4'>"+t.font_styles.h4+"</a></li>"+"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h5'>"+t.font_styles.h5+"</a></li>"+"<li><a data-wysihtml5-command='formatBlock' data-wysihtml5-command-value='h6'>"+t.font_styles.h6+"</a></li>"+"</ul>"+"</li>"},emphasis:function(t,e){var i=e&&e.size?" btn-"+e.size:"";return"<li><div class='btn-group '><a class='btn btn-white"+i+"' data-wysihtml5-command='bold' title='CTRL+B'>"+t.emphasis.bold+"</a>"+"<a class='btn btn-white"+i+"' data-wysihtml5-command='italic' title='CTRL+I'>"+t.emphasis.italic+"</a>"+"<a class='btn btn-white"+i+"' data-wysihtml5-command='underline' title='CTRL+U'>"+t.emphasis.underline+"</a>"+"</div>"+"</li>"},lists:function(t,e){var i=e&&e.size?" btn-"+e.size:"";return"<li><div class='btn-group'><a class='btn btn-white"+i+"' data-wysihtml5-command='insertUnorderedList' title='"+t.lists.unordered+"'><i class='fa fa-list'></i></a>"+"<a class='btn btn-white"+i+"' data-wysihtml5-command='insertOrderedList' title='"+t.lists.ordered+"'><i class='fa fa-th-list'></i></a>"+"<a class='btn btn-white"+i+"' data-wysihtml5-command='Outdent' title='"+t.lists.outdent+"'><i class='fa fa-align-right'></i></a>"+"<a class='btn btn-white"+i+"' data-wysihtml5-command='Indent' title='"+t.lists.indent+"'><i class='fa fa-align-left'></i></a>"+"</div>"+"</li>"},link:function(t,e){var i=e&&e.size?" btn-"+e.size:"";return"<li><div class='bootstrap-wysihtml5-insert-link-modal modal fade' id='linkmodal' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><a class='close' data-dismiss='modal'></a><h3>"+t.link.insert+"</h3>"+"</div>"+"<div class='modal-body'>"+"<input value='http://' class='bootstrap-wysihtml5-insert-link-url m-wrap large' type='text'>"+"</div>"+"<div class='modal-footer'>"+"<a href='#' class='btn' data-dismiss='modal'>"+t.link.cancel+"</a>"+"<a href='#' class='btn green  btn-primary' data-dismiss='modal'>"+t.link.insert+"</a>"+"</div>"+"</div></div></div>"+"<a class='btn btn-white"+i+"' data-wysihtml5-command='createLink' title='"+t.link.insert+"' data-toggle='modal' data-target='#linkmodal'><i class='fa fa-share'></i></a>"+"</li>"},image:function(t,e){var i=e&&e.size?" btn-"+e.size:"";return"<li><div class='bootstrap-wysihtml5-insert-image-modal modal fade' id='imgmodal' tabindex='-1' role='dialog' aria-labelledby='myModalLabel' aria-hidden='true'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><a class='close' data-dismiss='modal'></a><h3>"+t.image.insert+"</h3>"+"</div>"+"<div class='modal-body'>"+"<input value='http://' class='bootstrap-wysihtml5-insert-image-url m-wrap large' type='text'>"+"</div>"+"<div class='modal-footer'>"+"<a href='#' class='btn' data-dismiss='modal'>"+t.image.cancel+"</a>"+"<a href='#' class='btn  green btn-primary' data-dismiss='modal'>"+t.image.insert+"</a>"+"</div>"+"</div></div></div>"+"<a class='btn btn-white"+i+"' data-wysihtml5-command='insertImage' title='"+t.image.insert+"' data-toggle='modal' data-target='#imgmodal'><i class='fa fa-picture-o'></i></a>"+"</li>"},html:function(t,e){var i=e&&e.size?" btn-"+e.size:"";return"<li><div class='btn-group'><a class='btn"+i+"' data-wysihtml5-action='change_view' title='"+t.html.edit+"'><i class='fa fa-pencil'></i></a>"+"</div>"+"</li>"},color:function(t,e){var i=e&&e.size?" btn-"+e.size:"";return"<li class='dropdown'><a class='btn dropdown-toggle btn-white"+i+"' data-toggle='dropdown' href='#'>"+"<span class='current-color'>"+t.colours.black+"</span>&nbsp;<b class='caret'></b>"+"</a>"+"<ul class='dropdown-menu'>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='black'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='black'>"+t.colours.black+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='silver'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='silver'>"+t.colours.silver+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='gray'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='gray'>"+t.colours.gray+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='maroon'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='maroon'>"+t.colours.maroon+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='red'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='red'>"+t.colours.red+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='purple'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='purple'>"+t.colours.purple+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='green'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='green'>"+t.colours.green+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='olive'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='olive'>"+t.colours.olive+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='navy'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='navy'>"+t.colours.navy+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='blue'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='blue'>"+t.colours.blue+"</a></li>"+"<li><div class='wysihtml5-colors' data-wysihtml5-command-value='orange'></div><a class='wysihtml5-colors-title' data-wysihtml5-command='foreColor' data-wysihtml5-command-value='orange'>"+t.colours.orange+"</a></li>"+"</ul>"+"</li>"}},n=function(t,e,n){return i[t](e,n)},a=function(e,n){this.el=e;var a=n||o;for(var s in a.customTemplates)i[s]=a.customTemplates[s];this.toolbar=this.createToolbar(e,a),this.editor=this.createEditor(n),window.editor=this.editor,t("iframe.wysihtml5-sandbox").each(function(e,i){t(i.contentWindow).off("focus.wysihtml5").on({"focus.wysihtml5":function(){t("li.dropdown").removeClass("open")}})})};a.prototype={constructor:a,createEditor:function(t){t=t||{},t.toolbar=this.toolbar[0];var i=new e.Editor(this.el[0],t);if(t&&t.events)for(var n in t.events)i.on(n,t.events[n]);return i},createToolbar:function(e,i){var a=this,s=t("<ul/>",{"class":"wysihtml5-toolbar",style:"display:none"}),l=i.locale||o.locale||"en";for(var h in o){var c=!1;void 0!==i[h]?i[h]===!0&&(c=!0):c=o[h],c===!0&&(s.append(n(h,r[l],i)),"html"===h&&this.initHtml(s),"link"===h&&this.initInsertLink(s),"image"===h&&this.initInsertImage(s))}if(i.toolbar)for(h in i.toolbar)s.append(i.toolbar[h]);return s.find("a[data-wysihtml5-command='formatBlock']").click(function(e){var i=e.target||e.srcElement,n=t(i);a.toolbar.find(".current-font").text(n.html())}),s.find("a[data-wysihtml5-command='foreColor']").click(function(e){var i=e.target||e.srcElement,n=t(i);a.toolbar.find(".current-color").text(n.html())}),this.el.before(s),s},initHtml:function(t){var e="a[data-wysihtml5-action='change_view']";t.find(e).click(function(){t.find("a.btn").not(e).toggleClass("disabled")})},initInsertImage:function(e){var i=this,n=e.find(".bootstrap-wysihtml5-insert-image-modal"),a=n.find(".bootstrap-wysihtml5-insert-image-url"),s=n.find("a.btn-primary"),o=a.val(),r=function(){var t=a.val();a.val(o),i.editor.currentView.element.focus(),i.editor.composer.commands.exec("insertImage",t)};a.keypress(function(t){13==t.which&&(r(),n.modal("hide"))}),s.click(r),n.on("shown",function(){a.focus()}),n.on("hide",function(){i.editor.currentView.element.focus()}),e.find("a[data-wysihtml5-command=insertImage]").click(function(){var e=t(this).hasClass("wysihtml5-command-active");return e?!0:(n.modal("show"),n.on("click.dismiss.modal",'[data-dismiss="modal"]',function(t){t.stopPropagation()}),!1)})},initInsertLink:function(e){var i=this,n=e.find(".bootstrap-wysihtml5-insert-link-modal"),a=n.find(".bootstrap-wysihtml5-insert-link-url"),s=n.find("a.btn-primary"),o=a.val(),r=function(){var t=a.val();a.val(o),i.editor.currentView.element.focus(),i.editor.composer.commands.exec("createLink",{href:t,target:"_blank",rel:"nofollow"})};a.keypress(function(t){13==t.which&&(r(),n.modal("hide"))}),s.click(r),n.on("shown",function(){a.focus()}),n.on("hide",function(){i.editor.currentView.element.focus()}),e.find("a[data-wysihtml5-command=createLink]").click(function(){var e=t(this).hasClass("wysihtml5-command-active");return e?!0:(n.appendTo("body").modal("show"),n.on("click.dismiss.modal",'[data-dismiss="modal"]',function(t){t.stopPropagation()}),!1)})}};var s={resetDefaults:function(){t.fn.wysihtml5.defaultOptions=t.extend(!0,{},t.fn.wysihtml5.defaultOptionsCache)},bypassDefaults:function(e){return this.each(function(){var i=t(this);i.data("wysihtml5",new a(i,e))})},shallowExtend:function(e){var i=t.extend({},t.fn.wysihtml5.defaultOptions,e||{}),n=this;return s.bypassDefaults.apply(n,[i])},deepExtend:function(e){var i=t.extend(!0,{},t.fn.wysihtml5.defaultOptions,e||{}),n=this;return s.bypassDefaults.apply(n,[i])},init:function(t){var e=this;return s.shallowExtend.apply(e,[t])}};t.fn.wysihtml5=function(e){return s[e]?s[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?(t.error("Method "+e+" does not exist on jQuery.wysihtml5"),void 0):s.init.apply(this,arguments)},t.fn.wysihtml5.Constructor=a;var o=t.fn.wysihtml5.defaultOptions={"font-styles":!0,color:!0,emphasis:!0,lists:!0,html:!1,link:!0,image:!0,events:{},parserRules:{classes:{"wysiwyg-color-silver":1,"wysiwyg-color-gray":1,"wysiwyg-color-white":1,"wysiwyg-color-maroon":1,"wysiwyg-color-red":1,"wysiwyg-color-purple":1,"wysiwyg-color-fuchsia":1,"wysiwyg-color-green":1,"wysiwyg-color-lime":1,"wysiwyg-color-olive":1,"wysiwyg-color-yellow":1,"wysiwyg-color-navy":1,"wysiwyg-color-blue":1,"wysiwyg-color-teal":1,"wysiwyg-color-aqua":1,"wysiwyg-color-orange":1},tags:{b:{},i:{},br:{},ol:{},ul:{},li:{},h1:{},h2:{},h3:{},blockquote:{},u:1,img:{check_attributes:{width:"numbers",alt:"alt",src:"url",height:"numbers"}},a:{set_attributes:{target:"_blank",rel:"nofollow"},check_attributes:{href:"url"}},span:1,div:1}},stylesheets:["<?=Config::get('app.url')?>/assets/plugins/bootstrap-wysihtml5/wysiwyg-color.css"],locale:"en"};"undefined"==typeof t.fn.wysihtml5.defaultOptionsCache&&(t.fn.wysihtml5.defaultOptionsCache=t.extend(!0,{},t.fn.wysihtml5.defaultOptions));var r=t.fn.wysihtml5.locale={en:{font_styles:{normal:"Normal text",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6"},emphasis:{bold:"Bold",italic:"Italic",underline:"Underline"},lists:{unordered:"Unordered list",ordered:"Ordered list",outdent:"Outdent",indent:"Indent"},link:{insert:"Insert link",cancel:"Cancel"},image:{insert:"Insert image",cancel:"Cancel"},html:{edit:"Edit HTML"},colours:{black:"Black",silver:"Silver",gray:"Grey",maroon:"Maroon",red:"Red",purple:"Purple",green:"Green",olive:"Olive",navy:"Navy",blue:"Blue",orange:"Orange"}}}}(window.jQuery,window.wysihtml5);