| 1 |
(()=>{"use strict";var e={20:(e,r,t)=>{var o=t(609),i=Symbol.for("react.element"),s=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),n=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,r,t){var o,l={},p=null,c=null;for(o in void 0!==t&&(p=""+t),void 0!==r.key&&(p=""+r.key),void 0!==r.ref&&(c=r.ref),r)s.call(r,o)&&!a.hasOwnProperty(o)&&(l[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===l[o]&&(l[o]=r[o]);return{$$typeof:i,type:e,key:p,ref:c,props:l,_owner:n.current}}r.jsx=l,r.jsxs=l},848:(e,r,t)=>{e.exports=t(20)},609:e=>{e.exports=window.React}},r={};const t=window.wp.blocks,o=window.wp.components,i=window.wp.i18n,s=window.wc.blockTemplates;var n=function t(o){var i=r[o];if(void 0!==i)return i.exports;var s=r[o]={exports:{}};return e[o](s,s.exports,t),s.exports}(848);const a={background:"#f0f6fc",padding:"15px 20px",display:"flex",justifyContent:"space-between",gap:"2rem",margin:"10px 0",alignItems:"center"},l=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"tiered-pricing-table/upgrade-notice","title":"Woo blocks-based product editor: Upgrade Notice","category":"tiered-pricing-table","description":"","keywords":["products"],"textdomain":"tier-pricing-table","attributes":{"upgradeUrl":{"type":"string","default":""}},"supports":{"align":false,"html":false,"multiple":true,"reusable":false,"inserter":false,"lock":false,"__experimentalToolbar":false},"editorScript":"file:./index.js","editorStyle":"file:./editor.css"}');(0,t.registerBlockType)(l,{edit:function({attributes:e}){const{upgradeUrl:r}=e,t=(0,s.useWooBlockProps)(e);return(0,n.jsx)("div",{...t,children:(0,n.jsxs)("div",{style:a,className:"tpt__admin_editor__upgrade_notice",children:[(0,n.jsx)("h4",{style:{margin:0},className:"tpt__admin_editor__upgrade_notice___title",children:(0,i.__)("Upgrade to unlock special features","todo")}),(0,n.jsx)(o.Button,{href:r,variant:"secondary",children:(0,i.__)("Upgrade Now","tier-pricing-table")})]})})}})})(); |