text: /*! grapesjs-accordion - 1.0.4 */
  !function(t,e){'object'==typeof exports&&'object'==typeof module?module.exports=e():'function'==typeof define&&define.amd?define([],e):'object'==typeof exports?exports["grapesjs-accordion"]=e():t["grapesjs-accordion"]=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(t,'__esModule',{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&'object'==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,'default',{enumerable:!0,value:t}),2&e&&'string'!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t['default']}:function(){return t};return r.d(e,'a',e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){var n=r(2);t.exports=function(t,e){if(null==t)return{};var r,o,c=n(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(c[r]=t[r])}return c}},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,o={},c=Object.keys(t);for(n=0;n<c.length;n++)r=c[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}},function(t,e,r){"use strict";r.r(e);var n=r(0),o=r.n(n),c=r(1),i=r.n(c);function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var s=function(t,e){var r=e.linkModel,n=e.linkView,c=i()(e,["linkModel","linkView"]),a="accordion",s=c.attrAccordion,l=c.classAccordion,u=c.selectorAccordion;t.addType(a,{model:r.extend({defaults:d(d({},r.prototype.defaults),{},{name:"Accordion",draggable:"[".concat(c.attrAccordionContainer,"]"),droppable:!1,copyable:!1,removable:!1,selectable:!1},c.accordionProps),init:function(){var t=this.getAttributes();t[s]=1,this.setAttributes(t),l&&this.addClass(l)},clone:function(){var t=r.prototype.clone.apply(this,arguments);return t.addAttributes(o()({},u,"")),t}},{isComponent:function(t){if(t.hasAttribute&&t.hasAttribute(s))return{type:a}}}),view:n})};function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var p=function(t,e){var r=e.defaultModel,n=e.defaultView,o=i()(e,["defaultModel","defaultView"]),c="accordions",a=o.attrAccordions;t.addType(c,{model:r.extend({defaults:u(u({},r.prototype.defaults),{},{copyable:!1,droppable:!1,name:"Accordions","attr-accordions":o.attrAccordions,"attr-accordion":o.attrAccordion,"attr-accordion-content":o.attrAccordionContent,"attr-accordion-container":o.attrAccordionContainer,"class-accordion-active":o.classAccordionActive,"selector-accordion":o.selectorAccordion,script:function(){var t,e=this,r="["+"{[ attr-accordion-content ]}"+"]",n="["+"{[ attr-accordion-container ]}"+"]",o="{[ class-accordion-active ]}",c="{[ selector-accordion ]}",i=document.body,a=(i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector,function(c){var i=e.querySelectorAll(n)||[];for(t=0;t<i.length;t++){var a=i[t],d=a.className.replace(o,"").trim();a.className=d}!function(){var n=e.querySelectorAll(r)||[];for(t=0;t<n.length;t++)n[t].style.display="none"}(),c.className+=" "+o});e.addEventListener("click",(function(t){var r,n,i=t.target;"block"===e.querySelector(i.getAttribute(c)).style.display?(r=i.parentElement,n=r.className.replace(o,"").trim(),r.className=n,e.querySelector(i.getAttribute(c)).style.display="none"):(a(i.parentElement),e.querySelector(i.getAttribute(c)).style.display="block")}))}},o.accordionsProps),init:function(){var t=this.getAttributes();t[o.attrAccordions]=1,this.setAttributes(t)}},{isComponent:function(t){if(t.hasAttribute&&t.hasAttribute(a))return{type:c}}}),view:n.extend({init:function(){var t=this.model.components();!t.length&&t.add(o.template)},onRender:function(){}})})};function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var y=function(t,e){var r=e.defaultModel,n=e.defaultView,o=i()(e,["defaultModel","defaultView"]),c="accordion-content",a=o.attrAccordionContent,d=o.classAccordionContent;t.addType(c,{model:r.extend({defaults:b(b({},r.prototype.defaults),{},{name:"Accordion Content",draggable:"[".concat(o.attrAccordionContainer,"]"),copyable:!1,removable:!1,selectable:!0},o.accordionContentProps),init:function(){var t=this.getAttributes();t[a]=1,this.setAttributes(t),d&&this.addClass(d)}},{isComponent:function(t){if(t.hasAttribute&&t.hasAttribute(a))return{type:c}}}),view:n})};function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g=function(t,e){var r=e.defaultModel,n=e.defaultView,c=i()(e,["defaultModel","defaultView"]),a="accordion-container",d=c.attrAccordions,s=c.attrAccordionContainer,l=c.classAccordionContainer,u=c.attrAccordionContent,p=c.selectorAccordion;t.addType(a,{model:r.extend({defaults:v(v({},r.prototype.defaults),{},{name:"Accordion Container",draggable:"[".concat(d,", ").concat(u,"]"),droppable:!1,copyable:!0,removable:!0},c.accordionContainerProps),init:function(){var t=this.getAttributes();t[s]=1,this.setAttributes(t),l&&this.addClass(l),this.listenTo(this,"add",this.onAdd)},onAdd:function(){var t=this.components().models;if(t&&Array.isArray(t))for(var e,r=t.length-1;r>=0;r--){var n=t[r];n.getAttributes()["".concat(u)]?(e=n.getId(),n.setId(e)):n.addAttributes(o()({},p,"#".concat(e)))}}},{isComponent:function(t){if(t.hasAttribute&&t.hasAttribute(s))return{type:a}}}),view:n})};function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.DomComponents,n=r.getType('default'),o=r.getType('link'),c=n.model,i=n.view,a=o.model,d=o.view,l=h(h({},e),{},{defaultModel:c,defaultView:i,linkModel:a,linkView:d});s(r,l),p(r,l),y(r,l),g(r,l)};function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.BlockManager,n=e.accordionsBlock,o=e.style,c="accordions",i="<div data-gjs-type=\"".concat(c,"\"></div>\n    ").concat(o?"<style>".concat(o,"</style>"):"");n&&r.add(c,P({label:"Accordions Menu",attributes:{class:"fa fa-arrow-circle-down"},content:i},n))};function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?C(Object(r),!0).forEach((function(e){o()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var x="data-accordion",D="data-accordions",k="data-accordion-content",M="data-accordion-container";e["default"]=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=S(S({},{accordionsBlock:{},accordionsProps:{},accordionProps:{},accordionContentProps:{},accordionContainerProps:{},attrAccordions:D,attrAccordion:x,attrAccordionContent:k,attrAccordionContainer:M,classAccordion:"accordion",classAccordionActive:"accordion-active",classAccordionContent:"accordion-content",classAccordionContainer:"accordion-container",selectorAccordion:"href",template:"\n      <div ".concat(M,">\n        <a href=\"#accordion1\" ").concat(x,">Accordion 1</a>\n        <div id=\"accordion1\" ").concat(k,">\n          <div>Accordion 1 Content</div>\n        </div>\n      </div>\n      <div ").concat(M,">\n        <a href=\"#accordion2\" ").concat(x,">Accordion 2</a>\n        <div id=\"accordion2\" ").concat(k,">\n          <div>Accordion 2 Content</div>\n        </div>      \n      </div>\n      <div ").concat(M,">\n        <a href=\"#accordion3\" ").concat(x,">Accordion 3</a>\n        <div id=\"accordion3\" ").concat(k,">\n          <div>Accordion 3 Content</div>\n        </div>\n      </div>\n    "),templateAccordionContent:"<div>New Accordion Content</div>",style:"\n      .accordion {\n        text-decoration: none;\n        color: inherit;\n        padding: 7px 14px;\n        transition: opacity 0.3s;\n        display: block;\n        border-radius: 3px;\n        margin-right: 10px;\n        background-color: #eee;\n        margin-top: 5px;\n      }\n\n      .accordion-content {\n        display: none;\n        padding: 6px 12px;\n        min-height: 100px;\n        border: solid 1px #eee;\n      }\n\n    "}),e);m(t,r),w(t,r)}}])}));
  //# sourceMappingURL=grapesjs-accordion.min.js.map