FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
cozy-addons
/
cozy-blocks
/
dist
/
ad
/
build
Edit File: index.js
(()=>{"use strict";var e,i={12:()=>{const e=window.wp.blocks,i=window.wp.i18n,o=window.wp.blockEditor,a=window.wp.element;function t(e,i){var o,a;return`\n\t#${e} .cozy-block-ad__image-wrapper {\n\t\tmax-width: ${i.media.width};\n\t\tmax-height: ${i.media.height};\n\t}\n\t#${e} .cozy-block-ad__image-wrapper.align-center {\n\t\tmargin: 0 auto;\n\t}\n\t#${e} .cozy-block-ad__image-wrapper.align-right {\n\t\tmargin: 0 0 0 auto;\n\t}\n\t#${e} .cozy-block-ad__image-wrapper.object-fit-contain {\n\t\ttext-align: ${i.media.align};\n\t}\n\t#${e} .cozy-block-ad__image {\n\t\theight: ${i.media.height};\n\t\t${o="border-radius",a=i.media.radius,a&&Object.keys(a).length<4?1===Object.keys(a).length?`\n ${o}: ${a};\n `:`\n ${o}: ${a.width} ${a.style} ${a.color};\n `:a&&4===Object.keys(a).length?`\n ${o}: ${a.top} ${a.right} ${a.bottom} ${a.left};\n `:""}\n\t\tobject-fit: ${i.media.objectFit};\n\t}\n\t#${e} .object-fit-cover .cozy-block-ad__image {\n\t\tobject-position: ${100*parseFloat(i.media.position.x)}% ${100*parseFloat(i.media.position.y)}%;\n\t}\n `}const l=window.wp.components,n=window.wp.primitives,d=window.ReactJSXRuntime,s=(0,d.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(n.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})}),r=(0,d.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(n.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"})}),c=(0,d.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d.jsx)(n.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})}),p=()=>(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"16px",marginBottom:"10px"},children:[(0,d.jsx)("p",{children:(0,d.jsxs)("svg",{width:"41",height:"48",viewBox:"0 0 41 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.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,d.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,d.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,d.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,d.jsx)("h2",{style:{fontSize:"18px",fontFamily:"Inter",marginTop:"-5px",marginBottom:"15px"},children:(0,i.__)("Access Without Limits!","cozy-addons")}),(0,d.jsx)("p",{style:{textAlign:"center",lineHeight:"20px"},children:(0,i.__)("Access more blocks and advanced features for effortless design. Upgrade today for a richer web-building experience!","cozy-addons")}),(0,d.jsx)("a",{href:"https://cozythemes.com/pricing-and-plans/",target:"_blank",children:(0,d.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,d.jsxs)("div",{style:{display:"flex",gap:"5px",margin:"0"},children:[(0,d.jsx)("div",{children:(0,d.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.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,d.jsx)("div",{children:(0,i.__)("Upgrade to Pro","cozy-addons")})]})})})]})}),m=(0,a.memo)((({attributes:e,setAttributes:a})=>(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(o.InspectorControls,{group:"settings",children:[(0,d.jsxs)(l.PanelBody,{title:(0,i.__)("General","cozy-addons"),children:[!cozyBlockAssets.isPremium&&(0,d.jsx)(l.SelectControl,{label:(0,i.__)("Media Type","cozy-addons"),options:[{label:(0,i.__)("Image","cozy-addons"),value:"default"},{label:(0,i.__)("Custom Code(AdSense, Widgets, etc.) (Pro)","cozy-addons"),value:"default"}],value:e.type,onChange:i=>a({...e,type:i})}),cozyBlockAssets.isPremium&&(0,d.jsx)(l.SelectControl,{label:(0,i.__)("Media Type","cozy-addons"),options:[{label:(0,i.__)("Image","cozy-addons"),value:"default"},{label:(0,i.__)("Custom Code (AdSense, Widgets, etc.)","cozy-addons"),value:"script"}],value:e.type,onChange:i=>a({...e,type:i})}),"default"===e.type&&(0,d.jsxs)(d.Fragment,{children:[e.media.url&&(0,d.jsx)(o.MediaUploadCheck,{children:(0,d.jsx)(o.MediaUpload,{onSelect:i=>function(i){a({...e,media:{...e.media,id:i.id,url:i.url}})}(i),allowedTypes:["image"],mode:"browse",render:({open:e})=>(0,d.jsx)("div",{className:"components-base-control",onClick:e,children:(0,d.jsx)(l.Button,{className:"cozy-block__replace-image",text:(0,i.__)("Replace Image","cozy-addons")})})})}),(0,d.jsx)(l.TextControl,{label:(0,i.__)("Add a Link","cozy-addons"),value:e.media.link,placeholder:"#",onChange:i=>a({...e,media:{...e.media,link:i}})}),(0,d.jsx)(l.ToggleControl,{label:(0,i.__)("Open in New Tab","cozy-addons"),checked:e.media.openNewTab,onChange:i=>a({...e,media:{...e.media,openNewTab:i}})}),(0,d.jsx)(l.SelectControl,{label:(0,i.__)("Dimension Type","cozy-addons"),options:[{label:(0,i.__)("Header Banner (765px x 100px)","cozy-addons"),value:"header"},{label:(0,i.__)("Content Banner (1180px x 160px)","cozy-addons"),value:"content"},{label:(0,i.__)("Square (320px x 320px)","cozy-addons"),value:"square"},{label:(0,i.__)("Portrait (320px x 420px)","cozy-addons"),value:"portrait"},{label:(0,i.__)("Custom","cozy-addons"),value:"custom"}],value:e.media.dimensionType,onChange:i=>{switch(i){case"header":a({...e,media:{...e.media,dimensionType:i,width:"765px",height:"100px"}});break;case"content":a({...e,media:{...e.media,dimensionType:i,width:"1180px",height:"160px"}});break;case"square":a({...e,media:{...e.media,dimensionType:i,width:"320px",height:"320px"}});break;case"portrait":a({...e,media:{...e.media,dimensionType:i,width:"320px",height:"420px"}});break;default:a({...e,media:{...e.media,dimensionType:i,width:"",height:""}})}}}),"custom"===e.media.dimensionType&&(0,d.jsxs)(l.BaseControl,{children:[(0,d.jsx)(l.BaseControl.VisualLabel,{children:(0,i.__)("Image Dimension","cozy-addons")}),(0,d.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px"},children:[(0,d.jsx)(l.__experimentalUnitControl,{label:(0,i.__)("Width","cozy-addons"),min:0,max:1e3,value:e.media.width,onChange:i=>a({...e,media:{...e.media,width:i}})}),(0,d.jsx)(l.__experimentalUnitControl,{label:(0,i.__)("Height","cozy-addons"),min:0,max:1e3,value:e.media.height,onChange:i=>a({...e,media:{...e.media,height:i}})})]})]}),(0,d.jsxs)(l.__experimentalToggleGroupControl,{label:(0,i.__)("Image Fit","cozy-addons"),isBlock:!0,value:e.media.objectFit,onChange:i=>a({...e,media:{...e.media,objectFit:i}}),children:[(0,d.jsx)(l.__experimentalToggleGroupControlOption,{label:(0,i.__)("Contain","cozy-addons"),value:"contain"}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{label:(0,i.__)("Cover","cozy-addons"),value:"cover"}),(0,d.jsx)(l.__experimentalToggleGroupControlOption,{label:(0,i.__)("Fill","cozy-addons"),value:"fill"})]}),(0,d.jsxs)(l.__experimentalToggleGroupControl,{label:(0,i.__)("Align","cozy-addons"),value:e.media.align,onChange:i=>a({...e,media:{...e.media,align:i}}),children:[(0,d.jsx)(l.__experimentalToggleGroupControlOptionIcon,{label:(0,i.__)("Left","cozy-addons"),value:"left",icon:s}),(0,d.jsx)(l.__experimentalToggleGroupControlOptionIcon,{label:(0,i.__)("Center","cozy-addons"),value:"center",icon:r}),(0,d.jsx)(l.__experimentalToggleGroupControlOptionIcon,{label:(0,i.__)("Right","cozy-addons"),value:"right",icon:c})]}),"cover"===e.media.objectFit&&(0,d.jsx)(l.FocalPointPicker,{url:e.media.url,value:e.media.position,onChange:i=>a({...e,media:{...e.media,position:i}}),onDrag:i=>a({...e,media:{...e.media,position:i}}),onDragStart:i=>a({...e,media:{...e.media,position:i}})}),(0,d.jsxs)(l.BaseControl,{className:"cozy-box-control",children:[(0,d.jsx)(l.BaseControl.VisualLabel,{children:(0,i.__)("Border Radius","cozy-addons")}),(0,d.jsx)(l.__experimentalBoxControl,{label:"",resetValues:{top:"0px",right:"0px",bottom:"0px",left:"0px"},inputProps:{max:100},values:e.media.radius,onChange:i=>a({...e,media:{...e.media,radius:i}})})]})]}),"script"===e.type&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(l.TextareaControl,{label:(0,i.__)("Custom Script","cozy-addons"),value:e.customScript,onChange:i=>a({...e,customScript:i})})})]}),!cozyBlockAssets.isPremium&&(0,d.jsx)(p,{})]},"setting")}))),h=(0,a.memo)((({blockID:e,attributes:l,setAttributes:n})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:t(e,l)}}),(0,d.jsxs)("div",{className:`cozy-block-ad has-media-${l.type}`,id:e,children:["default"===l.type&&(0,d.jsxs)(d.Fragment,{children:[!l.media.url&&(0,d.jsxs)("div",{style:{padding:"24px",border:"none",borderRadius:"2px",boxShadow:"inset 0 0 0 1px #1e1e1e",color:"#1e1e1e",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"16px",fontSize:"13px",width:"100%",backgroundColor:"#fff"},children:[(0,d.jsxs)("div",{className:"components-placeholder__label",children:[(0,d.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,d.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),(0,i.__)("Image","cozy-addons")]}),(0,d.jsx)("div",{className:"components-placeholder__instructions",children:(0,i.__)("Pick one from your media library.","cozy-addons")}),(0,d.jsx)("div",{className:"components-placeholder__fieldset",children:(0,d.jsx)(o.MediaUploadCheck,{children:(0,d.jsx)(o.MediaUpload,{onSelect:e=>function(e){n({...l,media:{...l.media,id:e.id,url:e.url}})}(e),allowedTypes:["image"],mode:"browse",render:({open:e})=>(0,d.jsx)("div",{className:"components-base-control block-editor-hooks__background__inspector-media-replace-container",onClick:e,children:(0,d.jsx)("button",{type:"button",className:"components-button is-secondary",children:(0,i.__)("Media Library","cozy-addons")})})})})})]}),(0,d.jsx)("figure",{className:`cozy-block-ad__image-wrapper align-${l.media.align} object-fit-${l.media.objectFit}`,children:l.media.url&&(0,d.jsx)("a",{children:(0,d.jsx)("img",{className:"cozy-block-ad__image",src:l.media.url})})})]}),"script"===l.type&&(0,d.jsx)(a.RawHTML,{children:l.customScript})]})]}))),x=JSON.parse('{"UU":"cozy-block/ad","DD":"Advertisement","h_":"\'Advertisement\' block seamlessly integrates custom ad scripts and clickable image links into your WordPress site, enhancing engagement and driving traffic."}'),C=(0,d.jsxs)("svg",{width:"33",height:"24",viewBox:"0 0 33 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 0H27V9.95238H25V1.80952H2V17.1905H18V19H0V0Z",fill:"#0C50FF"}),(0,d.jsx)("rect",{x:"5",y:"6",width:"17",height:"8",rx:"0.4",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.0035 11.959C25.7356 12.2234 26.6238 12.9612 27.6409 14.5716C28.4696 15.8838 28.8261 16.9462 28.8771 17.7348C28.927 18.5076 28.6788 19.0983 28.1916 19.2932C27.7845 19.456 27.3566 19.4208 26.9509 19.2799C26.5472 19.1397 26.1504 18.8902 25.7855 18.5989C25.0557 18.0166 24.4116 17.2339 24.0393 16.6897L24.0339 16.6819L24.0292 16.6738C23.279 15.3781 22.9961 14.3759 22.9615 13.6373C22.9274 12.9065 23.1378 12.4066 23.4132 12.1705L23.4132 12.1705C23.7002 11.9245 24.2544 11.6884 25.0035 11.959ZM24.8328 12.4315C24.2713 12.2286 23.9044 12.4112 23.7402 12.5519C23.6249 12.6507 23.4334 12.9714 23.4634 13.6138C23.493 14.2471 23.7393 15.1682 24.4592 16.4138C24.8134 16.93 25.4225 17.6665 26.0989 18.2063C26.4387 18.4775 26.7851 18.6905 27.1158 18.8053C27.4445 18.9195 27.7423 18.9318 28.005 18.8267C28.1878 18.7536 28.4204 18.4588 28.3757 17.7672C28.3321 17.0915 28.0187 16.1107 27.2161 14.8399C26.2236 13.2684 25.4114 12.6405 24.8328 12.4315Z",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0339 16.7175L23.1845 12.4164L23.6339 12.6411L21.4303 17.0483L20.0306 18.098L20.017 18.1058C19.7959 18.2321 19.6305 18.4712 19.5517 18.7685C19.473 19.0651 19.4877 19.3963 19.6018 19.6772C19.714 19.9535 19.9205 20.1787 20.2342 20.2881C20.547 20.3973 20.9977 20.4021 21.6158 20.1758L22.8189 19.3165L27.5959 18.8925L27.9141 19.3949L22.9947 19.8083L21.8536 20.6233L21.8227 20.6349C21.1168 20.8996 20.5305 20.9237 20.0687 20.7625C19.6026 20.5998 19.2962 20.2598 19.1363 19.8663C18.9783 19.4772 18.9615 19.0339 19.066 18.6397C19.169 18.2514 19.3966 17.8878 19.7535 17.6779L21.0339 16.7175Z",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.8673 19.7047L21.0251 17.0252L21.4391 16.7406L23.2813 19.4201L22.8673 19.7047Z",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.6162 19.2527L25.4604 21.9351C25.6424 22.2081 25.7905 22.5424 25.8158 22.8716C25.8421 23.2127 25.734 23.5619 25.3907 23.7907C25.1869 23.9266 24.9805 23.9934 24.7772 23.9996C24.5751 24.0057 24.3918 23.9515 24.2331 23.8693C23.9228 23.7087 23.6871 23.4316 23.5397 23.2253L23.5371 23.2216L21.695 20.5421L22.109 20.2575L23.9498 22.9351C24.0815 23.119 24.2604 23.3178 24.4641 23.4232C24.5627 23.4742 24.6616 23.5005 24.762 23.4974C24.861 23.4944 24.9774 23.4624 25.112 23.3727C25.2712 23.2666 25.3305 23.1133 25.3149 22.9102C25.2984 22.6955 25.1957 22.4443 25.0433 22.2153L23.2022 19.5373L23.6162 19.2527Z",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.3394 14.9774C25.1923 14.9676 25.0502 14.9855 24.9303 15.0147C24.7955 15.0475 24.6436 14.9974 24.5815 14.8733V14.8733C24.5195 14.7492 24.57 14.5975 24.7026 14.5566C24.8914 14.4983 25.1261 14.4597 25.3728 14.4761C25.7445 14.5009 26.1536 14.6527 26.4572 15.0575C26.8204 15.5418 26.8838 15.9962 26.7826 16.3882C26.7141 16.6534 26.5745 16.8732 26.4354 17.0424C26.3474 17.1496 26.1868 17.1485 26.0887 17.0504V17.0504C25.9906 16.9523 25.9929 16.7948 26.0778 16.6851C26.1729 16.5625 26.2553 16.4206 26.2961 16.2626C26.3558 16.0317 26.3354 15.7325 26.0553 15.3589C25.8564 15.0939 25.5957 14.9945 25.3394 14.9774Z",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.285 15.7106C32.2594 15.847 32.1282 15.9368 31.9918 15.9112L29.8061 15.5014C29.6697 15.4758 29.5799 15.3446 29.6055 15.2082V15.2082C29.6311 15.0718 29.7623 14.982 29.8987 15.0076L32.0844 15.4174C32.2207 15.443 32.3106 15.5742 32.285 15.7106V15.7106Z",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.9308 12.5287C27.7924 12.5195 27.6877 12.3998 27.6969 12.2614L27.8309 10.2506C27.8402 10.1122 27.9599 10.0075 28.0983 10.0167V10.0167C28.2367 10.0259 28.3415 10.1456 28.3322 10.2841L28.1982 12.2948C28.1889 12.4332 28.0692 12.538 27.9308 12.5287V12.5287Z",fill:"#0C50FF"}),(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.4477 12.1938C31.5267 12.3078 31.4982 12.4643 31.3841 12.5433L29.6201 13.7645C29.5061 13.8435 29.3496 13.8151 29.2706 13.701V13.701C29.1916 13.5869 29.2201 13.4304 29.3342 13.3515L31.0982 12.1302C31.2122 12.0513 31.3687 12.0797 31.4477 12.1938V12.1938Z",fill:"#0C50FF"}),(0,d.jsx)("path",{d:"M17.107 9.04496C17.0934 8.90834 17.0353 8.80221 16.9325 8.72656C16.8298 8.65091 16.6903 8.61309 16.5142 8.61309C16.3945 8.61309 16.2935 8.63002 16.211 8.6639C16.1286 8.69664 16.0654 8.74237 16.0214 8.80108C15.9785 8.85979 15.957 8.9264 15.957 9.00092C15.9547 9.06302 15.9677 9.11722 15.996 9.16351C16.0253 9.2098 16.0654 9.24988 16.1162 9.28376C16.167 9.3165 16.2257 9.34529 16.2923 9.37013C16.359 9.39384 16.4301 9.41416 16.5057 9.4311L16.8174 9.50562C16.9687 9.53949 17.1075 9.58465 17.234 9.64111C17.3604 9.69756 17.47 9.767 17.5625 9.84942C17.6551 9.93184 17.7268 10.0289 17.7776 10.1407C17.8296 10.2525 17.8561 10.3807 17.8572 10.5252C17.8561 10.7374 17.8019 10.9215 17.6946 11.0773C17.5885 11.232 17.435 11.3522 17.234 11.438C17.0341 11.5227 16.7931 11.565 16.5108 11.565C16.2308 11.565 15.9869 11.5221 15.7792 11.4363C15.5726 11.3505 15.4111 11.2235 15.2948 11.0553C15.1796 10.8859 15.1192 10.6765 15.1136 10.4269H15.8232C15.8311 10.5432 15.8644 10.6403 15.9231 10.7182C15.983 10.795 16.0626 10.8532 16.1619 10.8927C16.2624 10.9311 16.3759 10.9503 16.5023 10.9503C16.6265 10.9503 16.7344 10.9322 16.8258 10.8961C16.9184 10.8599 16.9901 10.8097 17.0409 10.7453C17.0917 10.681 17.1171 10.607 17.1171 10.5235C17.1171 10.4456 17.094 10.3801 17.0477 10.327C17.0025 10.274 16.9359 10.2288 16.8478 10.1915C16.7609 10.1543 16.6542 10.1204 16.5278 10.0899L16.1501 9.99507C15.8576 9.92394 15.6268 9.81273 15.4574 9.66143C15.288 9.51014 15.2039 9.30634 15.205 9.05004C15.2039 8.84003 15.2598 8.65656 15.3727 8.49962C15.4867 8.34267 15.6431 8.22017 15.8418 8.1321C16.0406 8.04403 16.2664 8 16.5193 8C16.7767 8 17.0014 8.04403 17.1933 8.1321C17.3864 8.22017 17.5366 8.34267 17.6438 8.49962C17.7511 8.65656 17.8064 8.83834 17.8098 9.04496H17.107Z",fill:"white"}),(0,d.jsx)("path",{d:"M12.9852 11.5159H11.7556V8.04742H12.9953C13.3442 8.04742 13.6446 8.11686 13.8963 8.25574C14.1481 8.39349 14.3418 8.59164 14.4772 8.8502C14.6139 9.10875 14.6822 9.41812 14.6822 9.77829C14.6822 10.1396 14.6139 10.4501 14.4772 10.7098C14.3418 10.9695 14.147 11.1687 13.893 11.3076C13.64 11.4465 13.3374 11.5159 12.9852 11.5159ZM12.4889 10.8876H12.9547C13.1715 10.8876 13.3538 10.8492 13.5017 10.7724C13.6508 10.6945 13.7625 10.5743 13.8371 10.4117C13.9127 10.248 13.9505 10.0369 13.9505 9.77829C13.9505 9.52199 13.9127 9.31255 13.8371 9.14996C13.7625 8.98738 13.6513 8.8677 13.5034 8.79092C13.3555 8.71414 13.1732 8.67575 12.9564 8.67575H12.4889V10.8876Z",fill:"white"}),(0,d.jsx)("path",{d:"M8.78584 11.5159H8L9.19738 8.04742H10.1424L11.3381 11.5159H10.5523L9.68345 8.84003H9.65635L8.78584 11.5159ZM8.73672 10.1526H10.5929V10.725H8.73672V10.1526Z",fill:"white"}),(0,d.jsx)("path",{d:"M18.9886 10.5C18.848 10.5 18.7273 10.4503 18.6264 10.3509C18.527 10.25 18.4773 10.1293 18.4773 9.98864C18.4773 9.84943 18.527 9.73011 18.6264 9.63068C18.7273 9.53125 18.848 9.48153 18.9886 9.48153C19.125 9.48153 19.2443 9.53125 19.3466 9.63068C19.4489 9.73011 19.5 9.84943 19.5 9.98864C19.5 10.0824 19.4759 10.1683 19.4276 10.2464C19.3807 10.3232 19.3189 10.3849 19.2422 10.4318C19.1655 10.4773 19.081 10.5 18.9886 10.5Z",fill:"#FFAA05"})]});(0,e.registerBlockType)(x.UU,{title:(0,i.__)(x.DD,"cozy-addons"),description:(0,i.__)(x.h_,"cozy-addons"),icon:{src:C},edit:function({attributes:e,setAttributes:i,clientId:a}){if(e.cover)return(0,d.jsx)("img",{src:e.cover});e.clientId=a;const t=(0,o.useBlockProps)({className:"cozy-block-wrapper"}),l=`cozyBlock_${a.replace(/-/gi,"_")}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{...t,children:(0,d.jsx)(h,{blockID:l,attributes:e,setAttributes:i})}),(0,d.jsx)(m,{attributes:e,setAttributes:i})]})},save:function({attributes:e}){const i=`cozyBlock_${(t=e.clientId,t.replace(/[;=()\s]/g,"")).replace(/-/gi,"_")}`;var t;return(0,d.jsx)("div",{...o.useBlockProps.save(),children:(0,d.jsxs)("div",{className:`cozy-block-ad has-media-${e.type}`,id:i,children:["default"===e.type&&(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("figure",{className:`cozy-block-ad__image-wrapper align-${e.media.align} object-fit-${e.media.objectFit}`,children:e.media.url&&(0,d.jsx)("a",{href:e.media.link,target:e.media.openNewTab?"_blank":"",rel:"noopener",children:(0,d.jsx)("img",{className:"cozy-block-ad__image",src:e.media.url})})})}),"script"===e.type&&(0,d.jsx)(a.RawHTML,{children:e.customScript})]})})}})}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var l=o[e]={exports:{}};return i[e](l,l.exports,a),l.exports}a.m=i,e=[],a.O=(i,o,t,l)=>{if(!o){var n=1/0;for(c=0;c<e.length;c++){for(var[o,t,l]=e[c],d=!0,s=0;s<o.length;s++)(!1&l||n>=l)&&Object.keys(a.O).every((e=>a.O[e](o[s])))?o.splice(s--,1):(d=!1,l<n&&(n=l));if(d){e.splice(c--,1);var r=t();void 0!==r&&(i=r)}}return i}l=l||0;for(var c=e.length;c>0&&e[c-1][2]>l;c--)e[c]=e[c-1];e[c]=[o,t,l]},a.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={57:0,350:0};a.O.j=i=>0===e[i];var i=(i,o)=>{var t,l,[n,d,s]=o,r=0;if(n.some((i=>0!==e[i]))){for(t in d)a.o(d,t)&&(a.m[t]=d[t]);if(s)var c=s(a)}for(i&&i(o);r<n.length;r++)l=n[r],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return a.O(c)},o=globalThis.webpackChunkad=globalThis.webpackChunkad||[];o.forEach(i.bind(null,0)),o.push=i.bind(null,o.push.bind(o))})();var t=a.O(void 0,[350],(()=>a(12)));t=a.O(t)})();
Save
Back