FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
cozy-addons
/
cozy-blocks
/
dist
/
cta
/
build
Edit File: index.js
(()=>{"use strict";var e,t={360:()=>{const e=window.wp.blocks,t=window.wp.i18n,i=window.wp.blockEditor,o=window.wp.element,n=window.ReactJSXRuntime,s=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"16px",marginBottom:"10px"},children:[(0,n.jsx)("p",{children:(0,n.jsxs)("svg",{width:"41",height:"48",viewBox:"0 0 41 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M0 34.7721L6.88004 38.677V15.8055L20.4542 7.80977L23.9872 9.4833L30.4953 5.57841L20.4542 -7.62939e-06L0 11.9006V34.7721Z",fill:"#38DAC7"}),(0,n.jsx)("path",{d:"M32.9284 6.87939L34.2126 7.61318L12.3825 19.904L12.1991 40.45L20.6376 45.8616L41.0001 33.6625V35.4969L20.6376 47.6043L10.8232 41.2755V18.9868L32.9284 6.87939Z",fill:"#5566CA"}),(0,n.jsx)("path",{d:"M37.6063 9.53936L36.2305 8.71385L14.217 21.3716V38.9824L20.5459 43.5685L41.0001 31.3694V29.5349L20.5459 41.8258L15.5928 38.2486V22.1054L37.6063 9.53936Z",fill:"#5566CA"}),(0,n.jsx)("path",{d:"M41.0001 11.3738L39.5325 10.5483L17.3356 23.2061V37.2397L20.5459 39.6244L41.0001 27.4253V25.6826L20.5459 37.79L18.9866 36.5976V24.1233L41.0001 11.3738Z",fill:"#5566CA"})]})}),(0,n.jsx)("h2",{style:{fontSize:"18px",fontFamily:"Inter",marginTop:"-5px",marginBottom:"15px"},children:(0,t.__)("Access Without Limits!","cozy-addons")}),(0,n.jsx)("p",{style:{textAlign:"center",lineHeight:"20px"},children:(0,t.__)("Access more blocks and advanced features for effortless design. Upgrade today for a richer web-building experience!","cozy-addons")}),(0,n.jsx)("a",{href:"https://cozythemes.com/pricing-and-plans/",target:"_blank",children:(0,n.jsx)("button",{className:"cozy-block-premium-button",style:{backgroundColor:"#5566ca",borderRadius:"20px",padding:"10px",border:"none",color:"#fff",fontFamily:"Inter",fontSize:"10px",fontWeight:"500",cursor:"pointer"},children:(0,n.jsxs)("div",{style:{display:"flex",gap:"5px",margin:"0"},children:[(0,n.jsx)("div",{children:(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.29768 0.0630875L0.24397 5.2847C-0.109583 5.48778 -0.0646564 5.97987 0.286944 6.12828L2.36334 6.99919L7.97527 2.05487C8.0827 1.95919 8.23506 2.10565 8.14325 2.21695L3.43767 7.94822V9.52017C3.43767 9.98102 3.99437 10.1626 4.26784 9.8287L5.50821 8.31924L7.94206 9.33857C8.21943 9.45573 8.53588 9.28194 8.58666 8.98317L9.99306 0.547365C10.0595 0.152913 9.6356 -0.132186 9.29768 0.0630875Z",fill:"white"})})}),(0,n.jsx)("div",{children:(0,t.__)("Upgrade to Pro","cozy-addons")})]})})})]})}),r=(0,o.memo)((()=>{const e=(0,i.useInnerBlocksProps)({className:"cozy-block-cta"},{template:[["core/cover",{customOverlayColor:"#5566ca",style:{spacing:{blockGap:"var:preset|spacing|40"}},layout:{type:"constrained",contentSize:"660px"}},[["core/image",{align:"center",id:611,width:"100px",aspectRatio:"1",scale:"cover",sizeSlug:"full",linkDestination:"none",style:{border:{radius:"50px"}},url:cozyBlockAssets.imageDir+"image_placeholder.jpg"}],["core/heading",{textAlign:"center",level:2,placeholder:(0,t.__)("Call to Action Heading","cozy-addons")}],["core/paragraph",{align:"center",placeholder:(0,t.__)("Lorem IpsumĀ is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard","cozy-addons"),style:{typography:{lineHeight:"1.5"},spacing:{margin:{bottom:"30px"}}},fontSize:"normal"}],["cozy-block/button"]]]]});return(0,n.jsx)("div",{...e})})),l=JSON.parse('{"UU":"cozy-block/cta","DD":"Call to Action"}'),a=(0,n.jsxs)("svg",{width:"27",height:"22",viewBox:"0 0 27 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{fill:"none",x:"1",y:"1",width:"25",height:"20",stroke:"#0C50FF",strokeWidth:"2"}),(0,n.jsx)("path",{d:"M11 6.5C11 5.11929 12.1193 4 13.5 4C14.8807 4 16 5.11929 16 6.5C16 7.88071 14.8807 9 13.5 9C12.1193 9 11 7.88071 11 6.5Z",fill:"#0C50FF"}),(0,n.jsx)("path",{d:"M5 10.5H15V11.5H5V10.5Z",fill:"#0C50FF",fillOpacity:"0.5"}),(0,n.jsx)("rect",{x:"12.5",y:"12",width:"10",height:"1",fill:"#0C50FF",fillOpacity:"0.5"}),(0,n.jsx)("path",{d:"M7.5 13.5H19.5V14.5H7.5V13.5Z",fill:"#0C50FF",fillOpacity:"0.5"}),(0,n.jsx)("path",{d:"M15.5 10.5H21.5V11.5H15.5V10.5Z",fill:"#0C50FF",fillOpacity:"0.5"}),(0,n.jsx)("path",{d:"M4 12H12V13H4V12Z",fill:"#0C50FF",fillOpacity:"0.5"}),(0,n.jsx)("rect",{x:"10",y:"16",width:"7",height:"2",fill:"#0C50FF"})]});(0,e.registerBlockType)(l.UU,{title:(0,t.__)(l.DD,"cozy-addons"),description:(0,t.__)("Boost interaction with our 'Call to Action' block, strategically placed to inspire users to take the next step, whether it's making a purchase or subscribing.","cozy-addons"),icon:{src:a},edit:function(e){const t=(0,i.useBlockProps)({className:"cozy-block-wrapper"});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{...t,children:(0,n.jsx)(r,{})}),(0,n.jsx)(i.InspectorControls,{children:!cozyBlockAssets.isPremium&&(0,n.jsx)(s,{})})]})},save:function({attributes:e}){return(0,n.jsx)("div",{className:"cozy-block-cta",children:(0,n.jsx)(i.InnerBlocks.Content,{})})}})}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var s=i[e]={exports:{}};return t[e](s,s.exports,o),s.exports}o.m=t,e=[],o.O=(t,i,n,s)=>{if(!i){var r=1/0;for(d=0;d<e.length;d++){for(var[i,n,s]=e[d],l=!0,a=0;a<i.length;a++)(!1&s||r>=s)&&Object.keys(o.O).every((e=>o.O[e](i[a])))?i.splice(a--,1):(l=!1,s<r&&(r=s));if(l){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[i,n,s]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};o.O.j=t=>0===e[t];var t=(t,i)=>{var n,s,[r,l,a]=i,c=0;if(r.some((t=>0!==e[t]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(a)var d=a(o)}for(t&&t(i);c<r.length;c++)s=r[c],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return o.O(d)},i=globalThis.webpackChunkcta=globalThis.webpackChunkcta||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n=o.O(void 0,[350],(()=>o(360)));n=o.O(n)})();
Save
Back