/*! grapesjs-blocks-flexbox - 1.0.1 */
!function(e,t){'object'==typeof exports&&'object'==typeof module?module.exports=t():'function'==typeof define&&define.amd?define([],t):'object'==typeof exports?exports["grapesjs-blocks-flexbox"]=t():e["grapesjs-blocks-flexbox"]=t()}('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:this,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(e,'__esModule',{value:!0})}},t={};e.r(t),e.d(t,{default:()=>a});var n=void 0&&(void 0).__assign||function(){return n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},n.apply(this,arguments)};var o=void 0&&(void 0).__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)};const a=function(e,t){void 0===t&&(t={}),function(e,t){void 0===t&&(t={});var o=e.BlockManager,a=t.stylePrefix,c="".concat(a,"row"),r="".concat(a,"cell"),l=t.labelRow,i=t.labelColumn,s=function(e){var t=[];for(var n in e){var o=e[n],a=o instanceof Array||o instanceof Object;o=a?JSON.stringify(o):o,t.push("".concat(n,"=").concat(a?"'".concat(o,"'"):"\"".concat(o,"\"")))}return t.length?" ".concat(t.join(' ')):''},d=1,f={tl:0,tc:0,tr:0,cl:0,cr:0,bl:0,br:0,minDim:d},b=n(n({},f),{cr:1,bc:0,keyWidth:'flex-basis',currentUnit:1,minDim:d,step:.2}),p={class:c,'data-gjs-droppable':".".concat(r),'data-gjs-resizable':f,'data-gjs-custom-name':l},u={class:r,'data-gjs-draggable':".".concat(c),'data-gjs-resizable':b,'data-gjs-custom-name':i,'data-gjs-unstylable':['width'],'data-gjs-stylable-require':['flex-basis']},g=[".".concat(c),".".concat(r)];e.on('selector:add',(function(e){return g.indexOf(e.getFullName())>=0&&e.set('private',1)}));var y=s(p),x=s(u),v="\n    .".concat(c," {\n      display: flex;\n      justify-content: flex-start;\n      align-items: stretch;\n      flex-wrap: nowrap;\n      padding: 10px;\n    }\n    @media (max-width: 768px) {\n      .").concat(c," {\n        flex-wrap: wrap;\n      }\n    }\n    "),j="\n    .".concat(r," {\n      min-height: 75px;\n      flex-grow: 1;\n      flex-basis: 100%;\n    }");o.add('flexbox',n({label:'Flexbox',category:'Basic',attributes:{class:'gjs-fonts gjs-f-b2'},content:"\n        <div ".concat(y,">\n          <div ").concat(x,"></div>\n          <div ").concat(x,"></div>\n        </div>\n        <style>\n          ").concat(v,"\n          ").concat(j,"\n        </style>\n        ")},t.flexboxBlock))}(e,o({flexboxBlock:{},stylePrefix:'',labelRow:'Row',labelColumn:'Column'},t))};return t})()));
//# sourceMappingURL=index.js.map