(()=>{"use strict";var e={20:(e,t,o)=>{var r=o(609),i=Symbol.for("react.element"),s=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,o){var r,l={},a=null,p=null;for(r in void 0!==o&&(a=""+o),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(p=t.ref),t)s.call(t,r)&&!n.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:i,type:e,key:a,ref:p,props:l,_owner:c.current}}},848:(e,t,o)=>{e.exports=o(20)},609:e=>{e.exports=window.React}},t={};const o=window.wp.blocks,r=window.wp.element,i=(0,r.forwardRef)((function({icon:e,size:t=24,...o},i){return(0,r.cloneElement)(e,{width:t,height:t,...o,ref:i})})),s=window.wp.i18n,c=window.wp.blockEditor;var n=function o(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,o),s.exports}(848);const l={display:"flex",background:"#eeeeee",height:"600px",padding:"10px","align-items":"center","justify-content":"center"},a=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"cdek/checkout-map-block","version":"1.0.0","title":"CDEK Delivery Map","category":"widgets","description":"Adds a map on checkout to allow user select office to pickup from.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-shipping-methods-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}},"text":{"type":"string","default":""}},"textdomain":"cdekdelivery"}'),p=window.wp.primitives,d=(0,n.jsx)(p.SVG,{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,n.jsx)(p.Path,{fill:"#009C47",fillRule:"evenodd",clipRule:"evenodd",d:"M16 3c7.18 0 13 5.82 13 13s-5.82 13-13 13S3 23.18 3 16 8.82 3 16 3ZM8.72 9.183c.087 0 .17.019.246.052l.001-.001c.377.15.822.305 1.204.398 1.559.387 3.15.629 4.873.689 2.606.099 5.46.029 8.77.005h.02a.617.617 0 0 1 .152 1.216c-5.471 1.967-10.039 4.66-13.577 9.51-.263.361-.533.736-.776 1.113l-.022.034a.616.616 0 0 1-1.118-.45l.002-.01c.435-2.544.997-5.037 2.044-7.362-.738-1.155-1.612-2.482-2.374-4.3l.002-.002a.617.617 0 0 1 .553-.892Zm2.302 15.515a.617.617 0 1 1-1.083-.59l.002-.004.503-.824c3.587-5.558 8.146-8.41 14.044-10.537a.635.635 0 0 1 .271-.063.617.617 0 0 1 .234 1.19h-.004a.587.587 0 0 1-.042.016c-6.052 2.163-10.353 4.92-13.925 10.812Z"})});(0,o.registerBlockType)(a,{icon:{src:(0,n.jsx)(i,{icon:d})},edit:()=>{const e=(0,c.useBlockProps)();return(0,n.jsx)("div",{...e,className:"admin-block-cdek-map",style:l,children:(0,s.__)("Pickups map from CDEK","cdekdelivery")})},save:()=>(0,n.jsx)("div",{...c.useBlockProps.save()})})})();