(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b1efcbb"],{1247:function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.templates?s("div",{staticClass:"relative min-h-screen top-0 mt-8 overflow-y-auto w-full"},[s("div",{staticClass:"flex flex-wrap items-center justify-center cursor-pointer"},[e._l(Object.keys(e.templatesIcon),(function(t){return[s("div",{key:t,staticClass:"bg-gray-100 m-1 hover:bg-gray-300 flex flex-col items-center h-16 w-16 ml-01 text-xs justify-center text-center text-gray-500 rounded hover:text-indigo-500 shadow",attrs:{title:t},on:{click:function(s){e.library(e.templatesIcon[t].template),e.$dialogBus("closeDialog")}}},[s("m-icon",{attrs:{css:"material-icons text-3xl",icon:e.templatesIcon[t].icon}}),s("span",{staticClass:"text-xs",staticStyle:{"font-size":".5rem"}},[e._v(e._s(t))])],1)]}))],2)]):e._e()},o=[],i=(s("159b"),s("d9b4"),s("4e49")),a={name:"BlockLibrary",data:function(){return{template:null}},computed:{templates:function(){return(new i["a"]).templates},templatesIcon:function(){return(new i["a"]).templatesIcon}},methods:{library:function(e){var t=this;this.template=(new i["a"]).Build(e),this.template&&this.template.blocks.forEach((function(e){t.$store.state.editor.current.blocks.push(e)}))}}},l=a,r=s("2877"),c=Object(r["a"])(l,n,o,!1,null,null,null);t["default"]=c.exports},"4e49":function(e,t,s){"use strict";s.d(t,"a",(function(){return c}));var n=s("d4ec"),o=s("bee2"),i=(s("b0c0"),s("d9b4")),a={Empty:{icon:"highlight_alt",template:"empty"},Navbar:{icon:"more_horiz",template:"navbar"},"Call To Action":{icon:"call_to_action",template:"cta"},"Call To Action Hor":{icon:"call_to_action",template:"ctaHorizontal"},"Info Card":{icon:"feed",template:"infoCard"},Feature:{icon:"featured_video",template:"feature"},"Pricing Box":{icon:"price_change",template:"pricing"},Hero:{icon:"art_track",template:"hero"},Slider:{icon:"view_carousel",template:"slider"},Team:{icon:"account_box",template:"team"},"Simple form":{icon:"call_to_action",template:"simpleForm"},"Rounded Input":{icon:"input",template:"roundedInput"},"Input Icon":{icon:"input",template:"inputIcon"},"Input Icon(R)":{icon:"input",template:"inputIconR"},Article:{icon:"article",template:"article"},"Classic Page":{icon:"web",template:"classicPage"},"Blog Homepage":{icon:"web",template:"blog"}},l={Empty:"empty",Navbar:"navbar","Call To Action":"cta","Call To Action Hor":"ctaHorizontal","Info Card":"infoCard",Feature:"feature",Team:"team",Slider:"slider","Simple form":"simpleForm","Rounded Input":"roundedInput","Input Icon":"inputIcon","Input Icon(R)":"inputIconR",Article:"article","Classic Page":"classicPage","Blog Homepage":"blog"},r=[{name:"Navigation",url:"https://whoobe-one-studio.vercel.app/kits/Navigation-UI-Kit.json"},{name:"Hero",url:"https://whoobe-one-studio.vercel.app/kits/Hero-UI-Kit.json"},{name:"Leading",url:"https://whoobe-one-studio.vercel.app/kits/Leading-UI-Kit.json"},{name:"CTA",url:"https://whoobe-one-studio.vercel.app/kits/CTA-UI-Kit.json"},{name:"Form",url:"https://whoobe-one-studio.vercel.app/kits/Form-UI-Kit.json"},{name:"Landing pages",url:"https://whoobe-one-studio.vercel.app/kits/Landing-Pages-UI-Kit.json"}],c=function(){function e(){Object(n["a"])(this,e),this.blocks=[],this.templates=l,this.templatesIcon=a}return Object(o["a"])(e,[{key:"Build",value:function(e){return"empty"===e?this.empty():"article"===e?this.article():"classicPage"===e?this.classicPage():"blog"===e?this.blog():"navbar"===e?this.navbar():"infoCard"===e?this.infoCard():"hero"===e?this.hero():"slider"===e?this.slider():"cta"===e?this.cta():"ctaHorizontal"===e?this.ctaHorizontal():"feature"===e?this.feature():"pricing"===e?this.pricing():"team"===e?this.team():"simpleForm"===e?this.simpleForm():"roundedInput"===e?this.roundedInput():"inputIcon"===e?this.inputIcon():"inputIconR"===e?this.inputIconRight():null}},{key:"empty",value:function(){return this.blocks.push((new i["a"]).Flexbox({direction:"col",colspan:1})),this}},{key:"kits",value:function(){return r}},{key:"blog",value:function(){var e=(new i["a"]).Grid().Cols(12).setCss("min-h-screen w-full"),t=(new i["a"]).Flexbox({direction:"col",colspan:3}),s=(new i["a"]).Flexbox({direction:"col",colspan:9});return e.blocks.push(t),e.blocks.push(s),this.blocks.push(e),this}},{key:"classicPage",value:function(){var e=(new i["a"]).Grid().Cols(3),t=(new i["a"]).Grid().Cols(1).setCss("h-3/4"),s=(new i["a"]).Grid().Cols(2);return e.setSemantic("Header"),t.setSemantic("Main"),s.setSemantic("Footer"),e.blocks.push((new i["a"]).Flexbox({direction:"row",colspan:1})),e.blocks.push((new i["a"]).Flexbox({direction:"row",colspan:2})),e.blocks[0].blocks.push((new i["a"]).Heading(1).setContent("Logo/Name")),t.blocks.push((new i["a"]).Flexbox()),t.blocks[0].blocks.push((new i["a"]).Paragraph().setCss("w-full")),s.blocks.push((new i["a"]).Flexbox()),s.blocks.push((new i["a"]).Flexbox()),this.blocks.push(e),this.blocks.push(t),this.blocks.push(s),this}},{key:"navbar",value:function(){var e=(new i["a"]).Grid().Cols(12).setCss("w-full bg-white shadow-lg"),t=(new i["a"]).Flexbox({direction:"col",colspan:3}).setCss("items-center justify-center"),s=(new i["a"]).Heading(2).setContent("Title");t.blocks.push(s);for(var n=(new i["a"]).Flexbox({direction:"row",colspan:9}).setCss("items-center justify-center"),o=0;o<3;o++){var a=(new i["a"]).InlineText().setCss("border-b border-transparent hover:border-black mx-6").setContent("Item_"+(parseInt(o)+1));n.blocks.push(a)}return e.blocks.push(t),e.blocks.push(n),this.blocks.push(e),this}},{key:"cta",value:function(){var e=(new i["a"]).Grid().Cols(12).setCss("w-full bg-white shadow-lg"),t=(new i["a"]).Flexbox({direction:"col",colspan:12}).setCss("w-full items-center justify-center"),s=(new i["a"]).Heading(2).setContent("Call To Action"),n=(new i["a"]).Heading(4).setContent("Some CTA description"),o=(new i["a"]).Button().setCss("px-4 py-2 bg-blue-500");return e.blocks.push(t),t.blocks.push(s),t.blocks.push(n),t.blocks.push(o),this.blocks.push(e),this}},{key:"ctaHorizontal",value:function(){var e=(new i["a"]).Grid().Cols(12).setCss("w-full bg-white shadow-lg"),t=(new i["a"]).Flexbox({direction:"col",colspan:8}).setCss("w-full items-center justify-center"),s=(new i["a"]).Flexbox({direction:"col",colspan:4}).setCss("w-full items-center justify-center"),n=(new i["a"]).Heading(2).setContent("Call To Action"),o=(new i["a"]).Heading(4).setContent("Some CTA description"),a=(new i["a"]).Button().setCss("px-4 py-2 bg-blue-500");return e.blocks.push(t),e.blocks.push(s),t.blocks.push(n),t.blocks.push(o),s.blocks.push(a),this.blocks.push(e),this}},{key:"card",value:function(){var e=(new i["a"]).Flexbox({direction:"col"}).setCss("w-64 justify-center items-center shadow"),t=(new i["a"]).Flexbox({direction:"col"}).setCss("w-full p-4 justify-start");return e.blocks.push(t),e}},{key:"_iconInput",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mi:home",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=(new i["a"]).Flexbox({direction:"row"});"text"===s&&(e=(new i["a"]).InputText().setCss("rounded-r-lg outline-none focus:ring-1 ring-blue-400")),"email"===s&&(e=(new i["a"]).InputEmail().setCss("rounded-r-lg  outline-none focus:ring-1 ring-blue-400"));var a=(new i["a"]).Iconify().setCss("rounded-l-lg w-10 h-10 flex justify-center items-center text-2xl text-gray-400 border border-r-0");return a.data.icon=t,n&&(e.data.attributes.name=n),o.blocks.push(a),o.blocks.push(e),o}},{key:"article",value:function(){var e=(new i["a"]).Flexbox({direction:"col"}).setCss("justify-start items-start"),t=(new i["a"]).Heading(1),s=(new i["a"]).InlineText().setCss("italic text-sm"),n=(new i["a"]).Paragraph().setCss("my-4 px-4");return e.blocks=[t,s,n],this.blocks.push(e),this}},{key:"simpleForm",value:function(){var e=(new i["a"]).Flexbox({direction:"col"}).setCss("justify-center items-center shadow");e.data.attributes={name:"form",id:"form-id",action:"",method:"post"},e.semantic="form";var t=(new i["a"]).Flexbox({direction:"col"}).setCss("w-full p-4 justify-start"),s=(new i["a"]).Button().setCss("px-4 py-2 rounded bg-blue-400 text-white hover:bg-blue-700 my-4").setContent("Send");t.blocks.push((new i["a"]).InlineText().setContent("Name"));var n=this._iconInput("wpf:name");t.blocks.push(n),t.blocks.push((new i["a"]).InlineText().setContent("Address"));var o=this._iconInput("entypo:address");t.blocks.push(o),t.blocks.push((new i["a"]).InlineText().setContent("Email"));var a=this._iconInput("mi:email","email");return t.blocks.push(a),t.blocks.push(s),e.blocks.push(t),this.blocks.push(e),this}},{key:"infoCard",value:function(){var e=(new i["a"]).Flexbox({direction:"col"}).setCss("w-64 justify-center items-center shadow"),t=(new i["a"]).Flexbox({direction:"col"}).setCss("w-full p-4 justify-start"),s=(new i["a"]).Image().setCss("w-full h-auto object-cover");s.image.url="https://res.cloudinary.com/moodgiver/image/upload/v1633344243/adventure_woman_rujic1.webp";var n=(new i["a"]).Heading(4).setContent("Info Card").setCss("border-b-2"),o=(new i["a"]).Paragraph(),a=(new i["a"]).Button().setCss("my-4 px-4 py-2 bg-blue-500").setContent("Read more");return e.blocks.push(s),t.blocks.push(n),t.blocks.push(o),t.blocks.push(a),e.blocks.push(t),this.blocks.push(e),this}},{key:"hero",value:function(){var e=(new i["a"]).Grid().Cols(2).setCss("w-full p-2 md:p-20"),t=(new i["a"]).Flexbox({direction:"col"}).setCss("h-1/2 p-4 items-start justify-center"),s=(new i["a"]).Flexbox({direction:"col"}).setCss("h-1/2 bg-contain bg-no-repeat bg-center"),n=(new i["a"]).Heading(1).setContent("I am a Hero").setCss("font-bold"),o=(new i["a"]).Paragraph().setCss("text-lg my-2"),a=(new i["a"]).Button().setContent("Click Me").setCss("px-4 py-2 rounded bg-blue-400 text-white hover:bg-blue-700 my-4");return s.image.url="https://res.cloudinary.com/moodgiver/image/upload/v1617306150/Web_design_SVG_tsvcpl.svg",t.blocks=[n,o,a],e.blocks=[t,s],this.blocks.push(e),this}},{key:"feature",value:function(){var e=(new i["a"]).Flexbox({direction:"col"}).setCss("w-full md:w-56 justify-center items-center shadow px-6 py-4"),t=(new i["a"]).Iconify().setCss("text-3xl");t.data.icon="mi:laptop";var s=(new i["a"]).Heading(4).setContent("Feature").setCss("my-8"),n=(new i["a"]).Paragraph().setCss("text-center");return e.blocks.push(t),e.blocks.push(s),e.blocks.push(n),this.blocks.push(e),this}},{key:"pricing",value:function(){var e=(new i["a"]).Flexbox({direction:"col"}).setCss("w-full md:w-56 justify-center items-center shadow px-6 py-4"),t=(new i["a"]).Heading(3).setContent("<small>$</small> <b>99</b>.<small>00</small>"),s=(new i["a"]).Heading(4).setContent("Basic").setCss("mb-4 border-t"),n=(new i["a"]).Paragraph().setCss("my-4").setContent("<ul></ul><li>Unlimited users</li><li>Unlimited Bandwidth</li><li>Free Plugins</li></ul>"),o=(new i["a"]).Button().setContent("Buy now").setCss("bg-blue-400 text-base text-white px-4 py-2 rounded hover:bg-blue-700");return e.blocks.push(t),e.blocks.push(s),e.blocks.push(n),e.blocks.push(o),this.blocks.push(e),this}},{key:"team",value:function(){var e=(new i["a"]).Flexbox({direction:"col"}).setCss("w-56 justify-center items-center shadow px-6 py-4"),t=(new i["a"]).Image().setCss("rounded-full h-40 w-40 object-cover");t.image.url="https://res.cloudinary.com/moodgiver/image/upload/v1608198254/thumbnail_fashion_1_d66f5610d2.jpg";var s=(new i["a"]).Heading(4).setContent("Sara Doe").setCss("mt-8 border-b-2"),n=(new i["a"]).InlineText().setCss("text-center capitalize").setContent("CEO");return e.blocks.push(t),e.blocks.push(s),e.blocks.push(n),this.blocks.push(e),this}},{key:"roundedInput",value:function(){var e=(new i["a"]).Flexbox({direction:"row"}),t=(new i["a"]).InputText().setCss("rounded-l-lg  outline-none focus:ring-1 ring-blue-400"),s=(new i["a"]).Button().setCss("rounded-r-lg bg-blue-400 px-2");return e.blocks.push(t),e.blocks.push(s),this.blocks.push(e),this}},{key:"inputIcon",value:function(){var e=(new i["a"]).Flexbox({direction:"row"}),t=(new i["a"]).InputText().setCss("rounded-r-lg outline-none focus:ring-1 ring-blue-400"),s=(new i["a"]).Iconify().setCss("rounded-l-lg w-10 h-10 flex justify-center items-center text-2xl text-gray-400 border border-r-0");return s.data.icon="mi:email",e.blocks.push(s),e.blocks.push(t),this.blocks.push(e),this}},{key:"inputIconRight",value:function(){var e=(new i["a"]).Flexbox({direction:"row"}),t=(new i["a"]).InputText().setCss("rounded-l-lg outline-none focus:ring-1 ring-blue-400"),s=(new i["a"]).Iconify().setCss("rounded-r-lg w-10 h-10 flex justify-center items-center text-2xl text-gray-400 border border-l-0");return s.data.icon="mi:email",e.blocks.push(t),e.blocks.push(s),this.blocks.push(e),this}},{key:"slider",value:function(){var e=(new i["a"]).Slider().setCss("h-auto"),t=(new i["a"]).Grid().Cols(2).setCss("w-full p-2 md:p-20"),s=(new i["a"]).Flexbox({direction:"col"}).setCss("h-1/2 p-4 items-start justify-center"),n=(new i["a"]).Flexbox({direction:"col"}).setCss("h-1/2 bg-contain bg-no-repeat bg-center"),o=(new i["a"]).Heading(1).setContent("I am a Hero").setCss("font-bold"),a=(new i["a"]).Paragraph().setCss("text-lg my-2"),l=(new i["a"]).Button().setContent("Click Me").setCss("px-4 py-2 rounded bg-blue-400 text-white hover:bg-blue-700 my-4");return n.image.url="https://res.cloudinary.com/moodgiver/image/upload/v1617306150/Web_design_SVG_tsvcpl.svg",s.blocks=[o,a,l],t.blocks=[s,n],e.blocks.push(t),this.blocks.push(e),this}}]),e}()}}]);