!function(){"use strict";var M=window.wp.element,I=window.wp.blocks;window.React,window.wp.i18n;var D=window.wp.blockEditor,e=window.wp.primitives,j=window.wp.components;(0,I.registerBlockType)("checkoutpage/embed",{edit:function(I){let{attributes:N,setAttributes:g}=I;return(0,M.createElement)(e.View,(0,D.useBlockProps)(),(0,M.createElement)(j.Placeholder,{icon:()=>(0,M.createElement)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjQwMCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjIwMCIgY3k9IjIwMCIgcj0iMjAwIiBmaWxsPSJibGFjayIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI4Ny41NjcgMTU0LjQyNUMyODcuMDU3IDE0Ni43MDUgMjg0LjM5OCAxMzkuOTcyIDI3OC40NTcgMTM0LjczM0wyODcuNTY3IDE1NC40MjVaTTEzNi44MTEgMjE5LjA1QzEzOC41NjIgMjI4LjMwMiAxNDIuOTU3IDIzNi4wMyAxNDkuNTggMjQyLjU0MUMxNDUuMzI1IDIzNC43MDkgMTQxLjA2OCAyMjYuODc5IDEzNi44MTEgMjE5LjA1Wk0xMDUuMTg1IDE5Ny44NDlDMTAwLjM0MSAxNjQuNzggMTEwLjQ4IDEyNi4xNzUgMTMzLjE3IDEwNi43MTVDMTU1Ljg2IDg3LjI1NjEgMTc3LjE5MyA4NC4yNjc4IDIwMS4wMjQgODQuMDA2NEMyMjguOTE3IDgzLjY5OTQgMjUyLjU2OCA5NC40ODkzIDI3Mi41NDMgMTEzLjAwNkMyOTEuODUzIDEzMC45IDMwMC4yMzMgMTUzLjM2IDI5NS44NzEgMTc5Ljg5NEMyOTQuMzg1IDE4OC45MzIgMjg4LjgzOSAxOTUuMDE0IDI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NC42MTYgMTUyLjQ2OSAyOTEuNDIyIDE0OS44NjUgMjg4Ljk2OUMxMjQuNjI5IDI2NS4yMjcgMTA4LjY4OSAyMzYuNzMxIDEwNS4xODUgMTk3Ljg0OVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",className:"cp-logo"}),label:"Checkout Page",instructions:"Add a checkout to your posts & pages."},(0,M.createElement)("div",{style:{width:"100%"}},(0,M.createElement)("div",{style:{marginBottom:"1rem",width:"100%"}},(0,M.createElement)(j.TextControl,{label:"Checkout link",value:N.checkoutUrl,onChange:M=>g({checkoutUrl:M})}),"Paste your checkout's payment link here."," ",(0,M.createElement)(j.ExternalLink,{href:"https://checkoutpage.co/help/wordpress-plugin"},"Learn more")))))},save:function(I){let{attributes:D}=I;const{checkoutUrl:e}=D;return(0,M.createElement)("div",{class:"cp-checkout","data-checkout":e,style:"width: 100%;"})},icon:(0,M.createElement)("svg",{width:"400",height:"400",viewBox:"0 0 400 400",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,M.createElement)("circle",{cx:"200",cy:"200",r:"200",fill:"black"}),(0,M.createElement)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M287.567 154.425C287.057 146.705 284.398 139.972 278.457 134.733L287.567 154.425ZM136.811 219.05C138.562 228.302 142.957 236.03 149.58 242.541C145.325 234.709 141.068 226.879 136.811 219.05ZM105.185 197.849C100.341 164.78 110.48 126.175 133.17 106.715C155.86 87.2561 177.193 84.2678 201.024 84.0064C228.917 83.6994 252.568 94.4893 272.543 113.006C291.853 130.9 300.233 153.36 295.871 179.894C294.385 188.932 288.839 195.014 281.328 199.552C279.118 200.887 276.483 201.774 274.15 199.886C271.921 198.088 273.84 196.019 274.231 194.044C276.388 183.129 272.118 173.558 267.442 164.282C258.945 147.429 246.558 132.446 230.428 122.931C212.334 112.256 191.523 109.958 175.313 113.202C159.103 116.445 150.673 126.174 142.892 139.147C135.111 152.119 134.175 184.011 143.793 211.849C153.681 240.466 172.501 263.154 198.594 278.566C225.351 294.373 252.137 293.139 276.985 273.567C281.193 270.252 285.658 271.247 289.962 270.437C292.57 269.943 294.181 272.418 294.18 275.593C294.181 282.613 290.624 287.508 285.621 291.903C274.191 301.938 260.691 307.803 246.255 311.786C220.317 318.945 195.188 317.271 171.15 304.541C169.502 303.664 167.883 302.925 166.773 301.078C162.344 298.06 162.431 296.125 158.431 295.284C155.266 294.616 152.469 291.422 149.865 288.969C124.629 265.227 108.689 236.731 105.185 197.849Z",fill:"white"}))})}();