!function(t){"function"==typeof define&&define.amd?define("shortcodes",t):t()}(function(){"use strict";if(document.getElementById("case27-shortcode-generator"))new Vue({el:"#case27-shortcode-generator",data:{shortcode:null,shortcodes:[]},created:function(){this.shortcodes=jQuery("#case27-shortcode-generator").data("shortcodes"),this.shortcode=this.shortcodes[0]},methods:{},computed:{generated_shortcode:function(){var e=this,o="";return e.shortcode&&(o="["+e.shortcode.name,e.shortcode.attributes&&Object.keys(e.shortcode.attributes).forEach(function(t){"string"==typeof e.shortcode.attributes[t]&&e.shortcode.attributes[t].length&&(o+=" "+t+'="'+e.shortcode.attributes[t]+'"'),jQuery.isArray(e.shortcode.attributes[t])&&e.shortcode.attributes[t].length&&(o+=" "+t+'="'+e.shortcode.attributes[t].join(",")+'"')}),e.shortcode.content&&(o+="]"+e.shortcode.content+"[/"+e.shortcode.name)),o+="]"}}})});
