From 2a3d16538f3a536d73aa29ed2226828e9e5475e9 Mon Sep 17 00:00:00 2001 From: Mahdi Yazdani Date: Fri, 17 Feb 2023 12:39:11 +0300 Subject: [PATCH] Minified --- assets/js/minified/block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/minified/block.js b/assets/js/minified/block.js index a27118e..8170f42 100644 --- a/assets/js/minified/block.js +++ b/assets/js/minified/block.js @@ -1 +1 @@ -"use strict";(function(wp,wc){"use strict";if(!wp||!wc){return}var el=wp.element.createElement;var registerBlockType=wp.blocks.registerBlockType;var useBlockProps=wp.blockEditor.useBlockProps;var _wp$components=wp.components,Disabled=_wp$components.Disabled,Notice=_wp$components.Notice;var _wp$primitives=wp.primitives,SVG=_wp$primitives.SVG,Path=_wp$primitives.Path;var CheckboxControl=wc.blocksCheckout.CheckboxControl;var _wc$wcSettings=wc.wcSettings,ADMIN_URL=_wc$wcSettings.ADMIN_URL,getSetting=_wc$wcSettings.getSetting;var __=wp.i18n.__;registerBlockType("mypreview/woo-additional-terms",{title:__("Additional Terms","woo-additional-terms"),description:__("Placeholder block for displaying additional terms checkbox.","woo-additional-terms"),icon:{foreground:"#ffffff",background:"#7f54b3",src:el(SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},el(Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}))},category:"woocommerce",parent:["woocommerce/checkout-fields-block"],attributes:{lock:{type:"object","default":{remove:true,move:false}},checkbox:{type:"boolean","default":false}},supports:{align:false,html:false,multiple:false,reusable:false},edit:function edit(){var blockProps=useBlockProps();var _getSetting=getSetting("_woo_additional_terms_data",""),notice=_getSetting.notice;return notice?el(Disabled,{},el("div",blockProps,el(CheckboxControl,{id:"_woo_additional_terms",checked:false},el("span",{dangerouslySetInnerHTML:{__html:notice}})))):el(Notice,{isDismissible:false,status:"warning",actions:[{className:"wc-block-checkout__terms_notice-button",label:__("Setup an additional Terms and Conditions page","woo-additional-terms"),onClick:function onClick(){return window.open("".concat(ADMIN_URL,"admin.php?page=wc-settings&tab=woo-additional-terms"),"_blank")}}]},el("p",{},__("You don\u2019t have additional Terms and Conditions page set up.","woo-additional-terms")))},save:function save(){return el("div",useBlockProps.save())}})})(window.wp,window.wc); \ No newline at end of file +"use strict";(function(wp,wc){"use strict";if(!wp||!wc){return}var el=wp.element.createElement;var registerBlockType=wp.blocks.registerBlockType;var useBlockProps=wp.blockEditor.useBlockProps;var _wp$components=wp.components,Disabled=_wp$components.Disabled,Notice=_wp$components.Notice;var _wp$primitives=wp.primitives,SVG=_wp$primitives.SVG,Path=_wp$primitives.Path;var CheckboxControl=wc.blocksCheckout.CheckboxControl;var _wc$wcSettings=wc.wcSettings,ADMIN_URL=_wc$wcSettings.ADMIN_URL,getSetting=_wc$wcSettings.getSetting;var __=wp.i18n.__;registerBlockType("mypreview/woo-additional-terms",{title:__("Additional Terms","woo-additional-terms"),description:__("Placeholder block for displaying additional terms checkbox.","woo-additional-terms"),icon:{foreground:"#ffffff",background:"#7f54b3",src:el(SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},el(Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}))},category:"woocommerce",parent:["woocommerce/checkout-fields-block"],attributes:{lock:{type:"object","default":{remove:true,move:false}},checkbox:{type:"boolean","default":false}},supports:{align:false,html:false,multiple:false,reusable:false},edit:function edit(){var blockProps=useBlockProps();var _getSetting=getSetting("_woo_additional_terms_data",""),notice=_getSetting.notice;return notice?el(Disabled,{},el("div",blockProps,el(CheckboxControl,{id:"_woo_additional_terms",checked:false},el("span",{style:{fontSize:16},dangerouslySetInnerHTML:{__html:notice}})))):el(Notice,{isDismissible:false,status:"warning",actions:[{className:"wc-block-checkout__terms_notice-button",label:__("Setup an additional Terms and Conditions page","woo-additional-terms"),onClick:function onClick(){return window.open("".concat(ADMIN_URL,"admin.php?page=wc-settings&tab=woo-additional-terms"),"_blank")}}]},el("p",{},__("You don\u2019t have additional Terms and Conditions page set up.","woo-additional-terms")))},save:function save(){return el("div",useBlockProps.save())}})})(window.wp,window.wc); \ No newline at end of file