!function(e){var t={};function l(c){if(t[c])return t[c].exports;var n=t[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.m=e,l.c=t,l.d=function(e,t,c){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(l.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(c,n,function(t){return e[t]}.bind(null,n));return c},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="",l(l.s=833)}({0:function(e,t,l){"use strict";e.exports=l(45)},1:function(e,t){e.exports=wp.i18n},100:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},101:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var l=[],c=!0,n=!1,a=void 0;try{for(var i,r=e[Symbol.iterator]();!(c=(i=r.next()).done)&&(l.push(i.value),!t||l.length!==t);c=!0);}catch(e){n=!0,a=e}finally{try{c||null==r.return||r.return()}finally{if(n)throw a}}return l}}},102:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},146:function(e,t,l){var c=l(65);e.exports=function(e){if(Array.isArray(e))return c(e)}},147:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},148:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},16:function(e,t,l){var c=l(146),n=l(147),a=l(64),i=l(148);e.exports=function(e){return c(e)||n(e)||a(e)||i()}},2:function(e,t,l){var c=l(100),n=l(101),a=l(64),i=l(102);e.exports=function(e,t){return c(e)||n(e,t)||a(e,t)||i()}},43:function(e,t,l){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var c=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},l=0;l<10;l++)t["_"+String.fromCharCode(l)]=l;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach((function(e){c[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},c)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var l,r,o=i(e),s=1;s<arguments.length;s++){for(var u in l=Object(arguments[s]))n.call(l,u)&&(o[u]=l[u]);if(c){r=c(l);for(var m=0;m<r.length;m++)a.call(l,r[m])&&(o[r[m]]=l[r[m]])}}return o}},45:function(e,t,l){"use strict";
/** @license React v16.13.1
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var c=l(43),n="function"==typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,m=n?Symbol.for("react.context"):60110,b=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.memo"):60115,k=n?Symbol.for("react.lazy"):60116,h="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,l=1;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f={};function j(e,t,l){this.props=e,this.context=t,this.refs=f,this.updater=l||O}function y(){}function g(e,t,l){this.props=e,this.context=t,this.refs=f,this.updater=l||O}j.prototype.isReactComponent={},j.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,t,"setState")},j.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=j.prototype;var v=g.prototype=new y;v.constructor=g,c(v,j.prototype),v.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,l){var c,n={},i=null,r=null;if(null!=t)for(c in void 0!==t.ref&&(r=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,c)&&!N.hasOwnProperty(c)&&(n[c]=t[c]);var o=arguments.length-2;if(1===o)n.children=l;else if(1<o){for(var s=Array(o),u=0;u<o;u++)s[u]=arguments[u+2];n.children=s}if(e&&e.defaultProps)for(c in o=e.defaultProps)void 0===n[c]&&(n[c]=o[c]);return{$$typeof:a,type:e,key:i,ref:r,props:n,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var S=/\/+/g,P=[];function T(e,t,l,c){if(P.length){var n=P.pop();return n.result=e,n.keyPrefix=t,n.func=l,n.context=c,n.count=0,n}return{result:e,keyPrefix:t,func:l,context:c,count:0}}function q(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function B(e,t,l){return null==e?0:function e(t,l,c,n){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var o=!1;if(null===t)o=!0;else switch(r){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case a:case i:o=!0}}if(o)return c(n,t,""===l?"."+A(t,0):l),1;if(o=0,l=""===l?".":l+":",Array.isArray(t))for(var s=0;s<t.length;s++){var u=l+A(r=t[s],s);o+=e(r,u,c,n)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=h&&t[h]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),s=0;!(r=t.next()).done;)o+=e(r=r.value,u=l+A(r,s++),c,n);else if("object"===r)throw c=""+t,Error(_(31,"[object Object]"===c?"object with keys {"+Object.keys(t).join(", ")+"}":c,""));return o}(e,"",t,l)}function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function I(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,l){var c=e.result,n=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,c,l,(function(e){return e})):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,n+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(S,"$&/")+"/")+l)),c.push(e))}function R(e,t,l,c,n){var a="";null!=l&&(a=(""+l).replace(S,"$&/")+"/"),B(e,F,t=T(t,a,c,n)),q(t)}var $={current:null};function H(){var e=$.current;if(null===e)throw Error(_(321));return e}var D={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:c};t.Children={map:function(e,t,l){if(null==e)return e;var c=[];return R(e,c,null,t,l),c},forEach:function(e,t,l){if(null==e)return e;B(e,I,t=T(null,null,t,l)),q(t)},count:function(e){return B(e,(function(){return null}),null)},toArray:function(e){var t=[];return R(e,t,null,(function(e){return e})),t},only:function(e){if(!x(e))throw Error(_(143));return e}},t.Component=j,t.Fragment=r,t.Profiler=s,t.PureComponent=g,t.StrictMode=o,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,l){if(null==e)throw Error(_(267,e));var n=c({},e.props),i=e.key,r=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,o=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)E.call(t,u)&&!N.hasOwnProperty(u)&&(n[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)n.children=l;else if(1<u){s=Array(u);for(var m=0;m<u;m++)s[m]=arguments[m+2];n.children=s}return{$$typeof:a,type:e.type,key:i,ref:r,props:n,_owner:o}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:m,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:b,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:k,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return H().useCallback(e,t)},t.useContext=function(e,t){return H().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return H().useEffect(e,t)},t.useImperativeHandle=function(e,t,l){return H().useImperativeHandle(e,t,l)},t.useLayoutEffect=function(e,t){return H().useLayoutEffect(e,t)},t.useMemo=function(e,t){return H().useMemo(e,t)},t.useReducer=function(e,t,l){return H().useReducer(e,t,l)},t.useRef=function(e){return H().useRef(e)},t.useState=function(e){return H().useState(e)},t.version="16.13.1"},64:function(e,t,l){var c=l(65);e.exports=function(e,t){if(e){if("string"==typeof e)return c(e,t);var l=Object.prototype.toString.call(e).slice(8,-1);return"Object"===l&&e.constructor&&(l=e.constructor.name),"Map"===l||"Set"===l?Array.from(e):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?c(e,t):void 0}}},65:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var l=0,c=new Array(t);l<t;l++)c[l]=e[l];return c}},833:function(e,t,l){"use strict";l.r(t);var c=l(0),n=l(1),a=wp.blocks.registerBlockType,i=wp.blockEditor,r=i.useBlockProps,o=i.InspectorControls,s=wp.element.useEffect,u=wp.components,m=u.PanelBody,b=u.TextControl;a("sellkit-inner-blocks/checkout-contact-information",{title:Object(n.__)("Contact Information","sellkit"),categoty:"sellkit-blocks",apiVersion:3,className:!0,edit:function(e){var t=e.attributes,l=e.setAttributes,a=e.clientId,i=t.customClassName,u=t.style,p=t.contactHeadingText,d=t.contactDescriptionText;s((function(){i||l({customClassName:"sellkit-checkout-contact-information-block wp-elements-".concat(a)})}),[]);var k=r({className:"".concat(i),style:u});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(o,null,Object(c.createElement)(m,{title:Object(n.__)("Content","sellkit")},Object(c.createElement)(b,{label:Object(n.__)("Heading","sellkit"),value:p,onChange:function(e){return l({contactHeadingText:e})},type:"text"}),Object(c.createElement)(b,{label:Object(n.__)("Description","sellkit"),value:d,onChange:function(e){return l({contactDescriptionText:e})},type:"text",help:Object(n.__)("Create an account for logged-out users text","sellkit")}))),Object(c.createElement)("div",k,Object(c.createElement)("div",{className:"sellkit-checkout-widget-login-section sellkit-checkout-widget-logged-user sellkit-checkout-local-fields"},Object(c.createElement)("div",{className:"header heading"},p),Object(c.createElement)("div",{className:"sellkit-checkout-widget-email-holder"},Object(c.createElement)("div",{className:"sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields sellkit-checkout-excluded-wrapper-fields sellkit-login-section"},Object(c.createElement)("div",{className:"position:relative"},Object(c.createElement)("span",{className:"mini-title"},Object(n.__)("Email Address","sellkit"))),Object(c.createElement)("p",{className:"log-email"},Object(c.createElement)("span",{className:"woocommerce-input-wrapper"},Object(c.createElement)("input",{type:"email",className:"input-text validate-email filled",name:"billing_email",id:"billing_email",readOnly:!0,placeholder:Object(n.__)("Email Address","sellkit"),value:Object(n.__)("email@example.com","sellkit"),autoComplete:"email"}))))))))},save:function(e){var t=e.attributes.customClassName,l=r.save({className:"".concat(t)});return Object(c.createElement)("div",l)}});var p=l(16),d=l.n(p),k=l(2),h=l.n(k),_=wp.components,O=_.IconButton,f=_.Notice,j=_.PanelBody,y=_.TextControl,g=_.SelectControl,v=_.ToggleControl,w=wp.editor.InspectorControls,E=wp.element,N=E.Fragment,C=E.useState,x=E.useEffect,S=wp.blockEditor.useBlockProps;(0,wp.blocks.registerBlockType)("sellkit-inner-blocks/checkout-form-shipping",{title:Object(n.__)("Form Shipping","sellkit"),categoty:"sellkit-blocks",apiVersion:3,className:!0,edit:function(e){var t,l,a=C(null),i=h()(a,2),r=i[0],o=i[1],s=e.attributes,u=s.customClassName,m=s.style,b=s.shippingHeadingText,p=s.locations;x((function(){u||(e.setAttributes({customClassName:"sellkit-checkout-form-shipping-block wp-elements-".concat(e.clientId)}),E())}),[]);var k,_,E=function(){!e.attributes.locations||e.attributes.locations.length>0||e.setAttributes({locations:[{type:"text",role:"shipping_first_name",width:"w-50",customClass:"",label:"First Name",required:!0},{type:"text",role:"shipping_last_name",width:"w-50",customClass:"",label:"Last Name",required:!1},{type:"text",role:"shipping_address_1",width:"w-100",customClass:"",label:"Address",required:!1},{type:"text",role:"shipping_address_2",width:"w-100",customClass:"",label:"apartment, suit, unit, etc.",required:!1},{type:"select",role:"shipping_country",width:"w-33",customClass:"",label:"Country",required:!1,options:"Country"},{type:"select",role:"shipping_state",width:"w-34",customClass:"",label:"State",required:!1,options:"State"},{type:"text",role:"shipping_postcode",width:"w-33",customClass:"",label:"Postal code",required:!1},{type:"text",role:"shipping_city",width:"w-100",customClass:"",label:"City",required:!1},{type:"text",role:"shipping_company",width:"w-50",customClass:"",label:"Company",required:!1},{type:"tel",role:"shipping_phone",width:"w-50",customClass:"",label:"Phone",required:!1}]})},P=S({className:"".concat(u),style:m}),T=function(t,l,c){var n=d()(e.attributes.locations);n[l][c]=t,e.setAttributes({blockLocations:n})},q=[{label:Object(n.__)("Shipping First Name","sellkit"),value:"shipping_first_name"},{label:Object(n.__)("Shipping Last Name","sellkit"),value:"shipping_last_name"},{label:Object(n.__)("Shipping Company","sellkit"),value:"shipping_company"},{label:Object(n.__)("Shipping Address 1","sellkit"),value:"shipping_address_1"},{label:Object(n.__)("Shipping Address 2","sellkit"),value:"shipping_address_2"},{label:Object(n.__)("Shipping City","sellkit"),value:"shipping_city"},{label:Object(n.__)("Shipping Postcode","sellkit"),value:"shipping_postcode"},{label:Object(n.__)("Shipping Country","sellkit"),value:"shipping_country"},{label:Object(n.__)("Shipping State","sellkit"),value:"shipping_state"},{label:Object(n.__)("Shipping Phone","sellkit"),value:"shipping_phone"}],B=[{label:Object(n.__)("10%","sellkit"),value:"w-10"},{label:Object(n.__)("20%","sellkit"),value:"w-20"},{label:Object(n.__)("30%","sellkit"),value:"w-30"},{label:Object(n.__)("33%","sellkit"),value:"w-33"},{label:Object(n.__)("34%","sellkit"),value:"w-34"},{label:Object(n.__)("40%","sellkit"),value:"w-40"},{label:Object(n.__)("50%","sellkit"),value:"w-50"},{label:Object(n.__)("60%","sellkit"),value:"w-60"},{label:Object(n.__)("70%","sellkit"),value:"w-70"},{label:Object(n.__)("80%","sellkit"),value:"w-80"},{label:Object(n.__)("90%","sellkit"),value:"w-90"},{label:Object(n.__)("100%","sellkit"),value:"w-100"}];if(null==e||null===(t=e.attributes)||void 0===t||null===(l=t.locations)||void 0===l?void 0:l.length){k=e.attributes.locations.map((function(t,l){return Object(c.createElement)(N,{key:l},Object(c.createElement)("div",{className:"sellkit-checkout-repeater-item-wrapper"},Object(c.createElement)("div",{className:"sellkit-checkout-repeater-item-header",onClick:function(){return function(e){o(r!==e?e:null)}(l)}},Object(c.createElement)("span",{className:"sellkit-checkout-repeater-item-name"},e.attributes.locations[l].label||"".concat(Object(n.__)("Item","sellkit")," #").concat(l+1)),Object(c.createElement)(O,{className:"sellkit-checkout-editor-remove",icon:"no-alt",label:Object(n.__)("Remove","sellkit"),onClick:function(){return function(t){p.splice(t,1),e.setAttributes({locations:p}),o(null)}(l)}})),r===l&&Object(c.createElement)("div",{className:"sellkit-checkout-repeater-item-content"},Object(c.createElement)(g,{label:Object(n.__)("Role","sellkit"),value:e.attributes.locations[l].role,options:q,onChange:function(t){return function(t,l){var c=d()(e.attributes.locations),n=c[l].type,a=p.find((function(e){return e.role===t}));n!==(null==a?void 0:a.type)&&(c[l].type=null==a?void 0:a.type),(null==a?void 0:a.options)&&(c[l].options=a.options),(null==a?void 0:a.label)&&(c[l].label=a.label),c[l].role=t,e.setAttributes({locations:c})}(t,l)}}),Object(c.createElement)(g,{label:Object(n.__)("Width","sellkit"),value:e.attributes.locations[l].width,options:B,onChange:function(e){return T(e,l,"width")}}),Object(c.createElement)(y,{className:"sellkit-checkout-editor-label",label:Object(n.__)("Label","sellkit"),placeholder:Object(n.__)("Label","sellkit"),value:e.attributes.locations[l].label,onChange:function(e){return T(e,l,"label")}}),Object(c.createElement)(y,{className:"sellkit-checkout-editor-class",label:Object(n.__)("Class","sellkit"),placeholder:Object(n.__)("Class","sellkit"),value:e.attributes.locations[l].customClass,onChange:function(e){return T(e,l,"customClass")}}),Object(c.createElement)(v,{label:Object(n.__)("Required","sellkit"),className:"sellkit-checkout-editor-required",checked:e.attributes.locations[l].required,onChange:function(e){return T(e,l,"required")}}))))}));_=e.attributes.locations.map((function(e,t){return Object(c.createElement)("div",{className:"sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields ".concat(e.width),key:t,id:"wrapper-".concat(e.role)},(i=e.label,r=e.required,o=Object(n.__)("(optional)","sellkit"),Object(c.createElement)("div",null,Object(c.createElement)("span",{className:"mini-title"},i," ",r?"":" "+o))),"text"===(a=(null==(l=e)?void 0:l.type)||"")||"tel"===a?Object(c.createElement)("p",{id:"".concat(l.role,"_field")},Object(c.createElement)("span",{className:"woocommerce-input-wrapper"},Object(c.createElement)("input",{type:l.type,id:l.role,className:"input-text filled",name:l.role,required:l.required,value:l.label}))):Object(c.createElement)(N,null,Object(c.createElement)("span",{className:"sellkit-select-appearance"},Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},Object(c.createElement)("path",{d:"M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"}))),Object(c.createElement)("p",{id:"".concat(l.role,"_field")},Object(c.createElement)("span",{className:"woocommerce-input-wrapper"},Object(c.createElement)("select",{id:l.role,name:l.role,className:"filled",required:l.required,"data-type":"select"},Object(c.createElement)("option",{value:l.options},l.options))))));var l,a,i,r,o}))}return Object(c.createElement)(N,null,Object(c.createElement)(w,null,Object(c.createElement)(j,{title:Object(n.__)("Heading","sellkit")},Object(c.createElement)(y,{label:Object(n.__)("Heading Text","sellkit"),value:b,onChange:function(t){return e.setAttributes({shippingHeadingText:t})},type:"text"})),Object(c.createElement)(j,{title:Object(n.__)("Shipping Fields","sellkit"),initialOpen:!1},Object(c.createElement)(f,{status:"warning",isDismissible:!1},Object(n.__)('Removing certain fields may cause unexpected problems during the checkout process, such as "Please enter an address to continue."',"sellkit")),k,Object(c.createElement)(O,{isDefault:!0,icon:"plus-alt",onClick:function(){p.push({type:"text",role:"shipping_first_name",width:"w-100",customClass:"",label:"",required:!1}),e.setAttributes({locations:p}),o((null==p?void 0:p.length)-1)}},Object(n.__)("Add Item","sellkit")))),Object(c.createElement)("div",P,Object(c.createElement)("div",{className:"woocommerce-shipping-fields sellkit-one-page-checkout-shipping sellkit-checkout-local-fields"},Object(c.createElement)("div",{className:"shipping_address"},Object(c.createElement)("div",{id:"shipping_text_title",className:"header heading"},b),Object(c.createElement)("div",{className:"woocommerce-shipping-fields__field-wrapper",id:"sellkit-checkout-widget-shipping-fields"},_)))))},save:function(e){var t=e.attributes.customClassName,l=S.save({className:"".concat(t)});return Object(c.createElement)("div",l)}});var P=wp.blocks.registerBlockType,T=wp.blockEditor,q=T.useBlockProps,B=T.InspectorControls,A=wp.element.useEffect,I=wp.components,F=I.PanelBody,R=I.TextControl;P("sellkit-inner-blocks/checkout-cart-shipping",{title:Object(n.__)("Cart Shipping","sellkit"),categoty:"sellkit-blocks",apiVersion:3,className:!0,edit:function(e){var t=e.attributes,l=e.setAttributes,a=e.clientId,i=t.customClassName,r=t.style,o=t.shippingMethodsHeadingText;A((function(){i||(l({customClassName:"sellkit-checkout-cart-shipping-block wp-elements-".concat(a)}),s())}),[]);var s=function(){l({shippingMethodsHeadingText:Object(n.__)("Shipping Methods","sellkit")})},u=q({className:"".concat(i),style:r});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(B,null,Object(c.createElement)(F,{title:Object(n.__)("Content","sellkit")},Object(c.createElement)(R,{label:Object(n.__)("Heading","sellkit"),value:o,onChange:function(e){return l({shippingMethodsHeadingText:e})},type:"text"}))),Object(c.createElement)("div",u,Object(c.createElement)("div",{id:"shipping_header_title",className:"header heading"},o),Object(c.createElement)("table",{id:"shipping_method",className:"woocommerce-shipping-methods sellkit-shipping-methods-one-page sellkit-checkout-widget-divider"},Object(c.createElement)("tbody",null,Object(c.createElement)("tr",{className:"sellkit-checkout-widget-divider"},Object(c.createElement)("td",{id:"sellkit-shipping-method-t1-first",className:"sellkit-shipping-method-t1 sellkit-checkout-widget-divider"},Object(c.createElement)("label",{htmlFor:"sellkit-shipping-method-t1-first",className:"wrp"},Object(c.createElement)("input",{type:"radio",name:"shipping_method[0]","data-index":"0",id:"shipping_method_0_free_shipping2",value:"free_shipping:2",className:"shipping_method",checked:"checked"}),Object(c.createElement)("span",{className:"checkmark"}),Object(c.createElement)("span",{className:"labels"},Object(n.__)("Free shipping","sellkit")))),Object(c.createElement)("td",{className:"sellkit-shipping-method-t3 sellkit-checkout-widget-divider"},Object(c.createElement)("span",{className:"woocommerce-Price-amount amount"},Object(c.createElement)("bdi",null,Object(c.createElement)("span",{className:"woocommerce-Price-currencySymbol"},"£"),"0.00")))),Object(c.createElement)("tr",{className:"sellkit-checkout-widget-divider"},Object(c.createElement)("td",{id:"sellkit-shipping-method-t1-second",className:"sellkit-shipping-method-t1 sellkit-checkout-widget-divider"},Object(c.createElement)("label",{htmlFor:"sellkit-shipping-method-t1-second",className:"wrp"},Object(c.createElement)("input",{type:"radio",name:"shipping_method[0]","data-index":"0",id:"shipping_method_0_flat_rate3",value:"flat_rate:3",className:"shipping_method"}),Object(c.createElement)("span",{className:"checkmark"}),Object(c.createElement)("span",{className:"labels"},Object(n.__)("Flat rate","sellkit")))),Object(c.createElement)("td",{className:"sellkit-shipping-method-t3 sellkit-checkout-widget-divider"},Object(c.createElement)("span",{className:"woocommerce-Price-amount amount"},Object(c.createElement)("bdi",null,Object(c.createElement)("span",{className:"woocommerce-Price-currencySymbol"},"£"),"5.00"))))))))},save:function(e){var t=e.attributes.customClassName,l=q.save({className:"".concat(t)});return Object(c.createElement)("div",l)}});var $=wp.blocks.registerBlockType,H=wp.blockEditor,D=H.useBlockProps,L=H.InspectorControls,M=wp.element.useEffect,V=wp.components,U=V.PanelBody,z=V.TextControl,W=V.ToggleControl;$("sellkit-inner-blocks/checkout-review-order",{title:Object(n.__)("Review Order","sellkit"),categoty:"sellkit-blocks",apiVersion:3,className:!0,edit:function(e){var t,l,a,i=e.attributes,r=e.setAttributes,o=e.clientId,s=i.customClassName,u=i.style,m=i.reviewHeadingText,b=i.disableCartEditing,p=i.disableCoupon,d=i.couponButtonText,k=i.couponPlaceholderText;M((function(){s||(r({customClassName:"sellkit-checkout-review-order-block wp-elements-".concat(o)}),h())}),[]);var h=function(){r({couponButtonText:Object(n.__)("Apply","sellkit")}),r({couponPlaceholderText:Object(n.__)("Enter Promo codes","sellkit")})},_=D({className:"".concat(s),style:u}),O=(null===(t=window)||void 0===t||null===(l=t.sellkitBlocks)||void 0===l||null===(a=l.wc)||void 0===a?void 0:a.placeholder)||"";return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(L,null,Object(c.createElement)(U,{title:Object(n.__)("Content","sellkit")},Object(c.createElement)(z,{label:Object(n.__)("Heading","sellkit"),value:m,onChange:function(e){return r({reviewHeadingText:e})},type:"text"}),Object(c.createElement)(z,{label:Object(n.__)("Apply Coupon Button Text","sellkit"),value:d,onChange:function(e){return r({couponButtonText:e})},type:"text"}),Object(c.createElement)(z,{label:Object(n.__)("Apply Coupon Placeholder Text","sellkit"),value:k,onChange:function(e){return r({couponPlaceholderText:e})},type:"text"})),Object(c.createElement)(U,{title:Object(n.__)("Settings","sellkit")},Object(c.createElement)(W,{label:Object(n.__)("Disable Cart Editing","sellkit"),className:"sellkit-checkout-editor-required",checked:b,onChange:function(e){return r({disableCartEditing:e})}}),Object(c.createElement)(W,{label:Object(n.__)("Disable Coupon","sellkit"),className:"sellkit-checkout-editor-required",checked:p,onChange:function(e){return r({disableCoupon:e})}}))),Object(c.createElement)("div",_,Object(c.createElement)("div",{id:"order_review",className:"woocommerce-checkout-review-order"},Object(c.createElement)("div",{className:"sellkit-checkout-order-review-heading header heading"},m),Object(c.createElement)("div",{id:"sellkit-checkout-widget-order-review-wrap"},Object(c.createElement)("table",{className:"shop_table woocommerce-checkout-review-order-table",cellSpacing:"0"},Object(c.createElement)("thead",null),Object(c.createElement)("tbody",null,Object(c.createElement)("tr",{className:"cart_item variation last-cart-item"},Object(c.createElement)("td",{className:"product-name sellkit-one-page-checkout-product-name"},Object(c.createElement)("div",{className:"sellkit-checkout-widget-item-image"},Object(c.createElement)("img",{width:"300",height:"300",src:O,className:"woocommerce-placeholder wp-post-image",alt:"Placeholder",decoding:"async",sizes:"(max-width: 300px) 100vw, 300px"})),Object(c.createElement)("div",{className:"name-price"},Object(c.createElement)("span",null,Object(n.__)("Test Product","sellkit")),Object(c.createElement)("span",{className:"sellkit-checkout-variations",id:"sellkit-checkout-variations"},Object(c.createElement)("span",{className:"sellkit-checkout-variation-item"},Object(n.__)("Color: Blue","sellkit"))),b?Object(c.createElement)("strong",{className:"product-quantity"},"4"):Object(c.createElement)("input",{type:"number",value:"4",className:"sellkit-one-page-checkout-product-qty"}))),Object(c.createElement)("td",{className:"product-total sellkit-one-page-checkout-product-price"},Object(c.createElement)("span",{className:"woocommerce-Price-amount amount"},Object(c.createElement)("bdi",null,Object(c.createElement)("span",{className:"woocommerce-Price-currencySymbol"},Object(n.__)("£","sellkit")),"120.00")))),!p&&Object(c.createElement)("tr",{className:"coupon-form border-none"},Object(c.createElement)("td",{colSpan:"2"},Object(c.createElement)("div",{className:"sellkit-custom-coupon-form sellkit-normal-coupon-form"},Object(c.createElement)("p",{className:"sellkit-form-row-first"},Object(c.createElement)("input",{className:"sellkit-coupon",type:"text",placeholder:k})),Object(c.createElement)("p",{className:"sellkit-form-row-last"},Object(c.createElement)("span",{className:"sellkit-checkout-widget-secondary-button sellkit-apply-coupon sellkit-apply-coupon"},d)))))),Object(c.createElement)("tfoot",{className:"sellkit-checkout-widget-order-summary-tfoot"},Object(c.createElement)("tr",{className:"cart-subtotal"},Object(c.createElement)("th",{className:"sellkit-checkout-widget-divider"}," ",Object(n.__)("Subtotal","sellkit")),Object(c.createElement)("td",{className:"sellkit-checkout-widget-divider"},Object(c.createElement)("span",{className:"woocommerce-Price-amount amount"},Object(c.createElement)("bdi",null,Object(c.createElement)("span",{className:"woocommerce-Price-currencySymbol"},"£"),"120.00")))),Object(c.createElement)("tr",{className:"sellkit-shipping-total"},Object(c.createElement)("th",null,Object(n.__)("Shipping","sellkit")),Object(c.createElement)("td",null,Object(c.createElement)("span",{className:"woocommerce-Price-amount amount"},Object(c.createElement)("bdi",null,Object(c.createElement)("span",{className:"woocommerce-Price-currencySymbol"},Object(n.__)("£","sellkit")),"0.00")))),Object(c.createElement)("tr",{className:"order-total"},Object(c.createElement)("th",{className:"sellkit-checkout-widget-divider sellkit-order-total"},Object(n.__)("Total","sellkit")),Object(c.createElement)("td",{className:"sellkit-checkout-widget-divider sellkit-order-total"},Object(c.createElement)("strong",null,Object(c.createElement)("span",{className:"woocommerce-Price-amount amount"},Object(c.createElement)("bdi",null,Object(c.createElement)("span",{className:"woocommerce-Price-currencySymbol"},Object(n.__)("£","sellkit")),"120.00")))))))))))},save:function(e){var t=e.attributes.customClassName,l=D.save({className:"".concat(t)});return Object(c.createElement)("div",l)}});var Y=wp.components,G=Y.IconButton,J=Y.Notice,K=Y.PanelBody,Q=Y.TextControl,X=Y.SelectControl,Z=Y.ToggleControl,ee=wp.editor.InspectorControls,te=wp.element,le=te.Fragment,ce=te.useState,ne=te.useEffect,ae=wp.blockEditor.useBlockProps;(0,wp.blocks.registerBlockType)("sellkit-inner-blocks/checkout-billing-details",{title:Object(n.__)("Billing Details","sellkit"),categoty:"sellkit-blocks",apiVersion:3,className:!0,edit:function(e){var t,l,a=ce(null),i=h()(a,2),r=i[0],o=i[1],s=e.attributes,u=s.customClassName,m=s.style,b=s.billingHeadingText,p=s.billingDescriptionText,k=s.locations;ne((function(){u||(e.setAttributes({customClassName:"sellkit-checkout-billing-details-block wp-elements-".concat(e.clientId)}),_())}),[]);var _=function(){!e.attributes.locations||e.attributes.locations.length>0||e.setAttributes({locations:[{type:"text",role:"billing_first_name",width:"w-50",customClass:"",label:"First Name",required:!0},{type:"text",role:"billing_last_name",width:"w-50",customClass:"",label:"Last Name",required:!1},{type:"text",role:"billing_address_1",width:"w-100",customClass:"",label:"Address",required:!1},{type:"text",role:"billing_address_2",width:"w-100",customClass:"",label:"apartment, suit, unit, etc.",required:!1},{type:"select",role:"billing_country",width:"w-33",customClass:"",label:"Country",required:!1,options:"Country"},{type:"select",role:"billing_state",width:"w-34",customClass:"",label:"State",required:!1,options:"State"},{type:"text",role:"billing_postcode",width:"w-33",customClass:"",label:"Postal code",required:!1},{type:"text",role:"billing_city",width:"w-100",customClass:"",label:"City",required:!1},{type:"text",role:"billing_company",width:"w-50",customClass:"",label:"Company",required:!1},{type:"tel",role:"billing_phone",width:"w-50",customClass:"",label:"Phone",required:!1}]})},O=ae({className:"".concat(u),style:m});0!==e.attributes.locations.length&&e.setAttributes({locations:k});var f,j,y=function(t,l,c){var n=d()(e.attributes.locations);n[l][c]=t,e.setAttributes({blockLocations:n})},g=[{label:Object(n.__)("Billing First Name","sellkit"),value:"billing_first_name"},{label:Object(n.__)("Billing Last Name","sellkit"),value:"billing_last_name"},{label:Object(n.__)("Billing Company","sellkit"),value:"billing_company"},{label:Object(n.__)("Billing Address 1","sellkit"),value:"billing_address_1"},{label:Object(n.__)("Billing Address 2","sellkit"),value:"billing_address_2"},{label:Object(n.__)("Billing City","sellkit"),value:"billing_city"},{label:Object(n.__)("Billing Postcode","sellkit"),value:"billing_postcode"},{label:Object(n.__)("Billing Country","sellkit"),value:"billing_country"},{label:Object(n.__)("Billing State","sellkit"),value:"billing_state"},{label:Object(n.__)("Billing Phone","sellkit"),value:"billing_phone"}],v=[{label:Object(n.__)("10%","sellkit"),value:"w-10"},{label:Object(n.__)("20%","sellkit"),value:"w-20"},{label:Object(n.__)("30%","sellkit"),value:"w-30"},{label:Object(n.__)("33%","sellkit"),value:"w-33"},{label:Object(n.__)("34%","sellkit"),value:"w-34"},{label:Object(n.__)("40%","sellkit"),value:"w-40"},{label:Object(n.__)("50%","sellkit"),value:"w-50"},{label:Object(n.__)("60%","sellkit"),value:"w-60"},{label:Object(n.__)("70%","sellkit"),value:"w-70"},{label:Object(n.__)("80%","sellkit"),value:"w-80"},{label:Object(n.__)("90%","sellkit"),value:"w-90"},{label:Object(n.__)("100%","sellkit"),value:"w-100"}];if(null==e||null===(t=e.attributes)||void 0===t||null===(l=t.locations)||void 0===l?void 0:l.length){f=e.attributes.locations.map((function(t,l){return Object(c.createElement)(le,{key:l},Object(c.createElement)("div",{className:"sellkit-checkout-repeater-item-wrapper"},Object(c.createElement)("div",{className:"sellkit-checkout-repeater-item-header",onClick:function(){return function(e){o(r!==e?e:null)}(l)}},Object(c.createElement)("span",{className:"sellkit-checkout-repeater-item-name"},e.attributes.locations[l].label||"".concat(Object(n.__)("Item","sellkit")," #").concat(l+1)),Object(c.createElement)(G,{className:"sellkit-checkout-editor-remove",icon:"no-alt",label:Object(n.__)("Remove","sellkit"),onClick:function(){return function(t){k.splice(t,1),e.setAttributes({locations:k}),o(null)}(l)}})),r===l&&Object(c.createElement)("div",{className:"sellkit-checkout-repeater-item-content"},Object(c.createElement)(X,{label:Object(n.__)("Role","sellkit"),value:e.attributes.locations[l].role,options:g,onChange:function(t){return function(t,l){var c=d()(e.attributes.locations),n=c[l].type,a=k.find((function(e){return e.role===t}));n!==(null==a?void 0:a.type)&&(c[l].type=a.type),(null==a?void 0:a.options)&&(c[l].options=a.options),(null==a?void 0:a.label)&&(c[l].label=a.label),c[l].role=t,e.setAttributes({currentLocations:c})}(t,l)}}),Object(c.createElement)(X,{label:Object(n.__)("Width","sellkit"),value:e.attributes.locations[l].width,options:v,onChange:function(e){return y(e,l,"width")}}),Object(c.createElement)(Q,{className:"sellkit-checkout-editor-label",label:Object(n.__)("Label","sellkit"),placeholder:Object(n.__)("Label","sellkit"),value:e.attributes.locations[l].label,onChange:function(e){return y(e,l,"label")}}),Object(c.createElement)(Q,{className:"sellkit-checkout-editor-class",label:Object(n.__)("Class","sellkit"),placeholder:Object(n.__)("Class","sellkit"),value:e.attributes.locations[l].customClass,onChange:function(e){return y(e,l,"customClass")}}),Object(c.createElement)(Z,{label:Object(n.__)("Required","sellkit"),className:"sellkit-checkout-editor-required",checked:e.attributes.locations[l].required,onChange:function(e){return y(e,l,"required")}}))))}));j=e.attributes.locations.map((function(e,t){return Object(c.createElement)("div",{className:"sellkit-checkout-fields-wrapper sellkit-widget-checkout-fields ".concat(e.width),key:t,id:"wrapper-".concat(e.role)},(i=e.label,r=e.required,o=Object(n.__)("(optional)","sellkit"),Object(c.createElement)("div",null,Object(c.createElement)("span",{className:"mini-title"},i," ",r?"":" "+o))),"text"===(a=(null==(l=e)?void 0:l.type)||"")||"tel"===a?Object(c.createElement)("p",{id:"".concat(l.role,"_field")},Object(c.createElement)("span",{className:"woocommerce-input-wrapper"},Object(c.createElement)("input",{type:l.type,id:l.role,className:"input-text filled",name:l.role,required:l.required,value:l.label}))):Object(c.createElement)(le,null,Object(c.createElement)("span",{className:"sellkit-select-appearance"},Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512"},Object(c.createElement)("path",{d:"M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"}))),Object(c.createElement)("p",{id:"".concat(l.role,"_field")},Object(c.createElement)("span",{className:"woocommerce-input-wrapper"},Object(c.createElement)("select",{id:l.role,name:l.role,className:"filled",required:l.required,"data-type":"select"},Object(c.createElement)("option",{value:l.options},l.options))))));var l,a,i,r,o}))}return Object(c.createElement)(le,null,Object(c.createElement)(ee,null,Object(c.createElement)(K,{title:Object(n.__)("Content","sellkit")},Object(c.createElement)(Q,{label:Object(n.__)("Heading","sellkit"),value:b,onChange:function(t){return e.setAttributes({billingHeadingText:t})},type:"text"}),Object(c.createElement)(Q,{label:Object(n.__)("Description","sellkit"),value:p,onChange:function(t){return e.setAttributes({billingDescriptionText:t})},type:"text"})),Object(c.createElement)(K,{title:Object(n.__)("Billing Fields","sellkit"),initialOpen:!1},Object(c.createElement)(J,{status:"warning",isDismissible:!1},Object(n.__)('Removing certain fields may cause unexpected problems during the checkout process, such as "Please enter an address to continue."',"sellkit")),f,Object(c.createElement)(G,{isDefault:!0,icon:"plus-alt",onClick:function(){k.push({type:"text",role:"billing_first_name",width:"w-100",customClass:"",label:"",required:!1}),e.setAttributes({locations:k}),o((null==k?void 0:k.length)-1)}},Object(n.__)("Add Item","sellkit")))),Object(c.createElement)("div",O,Object(c.createElement)("div",{className:"woocommerce-billing-fields sellkit-one-page-checkout-billing sellkit-checkout-local-fields"},Object(c.createElement)("div",{className:"sellkit-one-page-checkout-billing-header heading"},"billing_only"===window.sellkitBlocks.wc.shipping_destination?Object(n.__)("Billing & Shipping","sellkit"):b),Object(c.createElement)("p",{className:"billing-desc sub-heading"},"billing_only"===window.sellkitBlocks.wc.shipping_destination?"":p),"billing_only"!==window.sellkitBlocks.wc.shipping_destination&&Object(c.createElement)("div",{id:"billing-method",className:"billing-method"},Object(c.createElement)("div",null,Object(c.createElement)("label",{htmlFor:"billing-method",className:"wrp method-a"},Object(c.createElement)("input",{type:"radio",value:"same",name:"billing-method",className:"sellkit-billing-method-a filled"}),Object(c.createElement)("span",{className:"checkmark"}),Object(c.createElement)("span",{className:"labels"},Object(n.__)("Same as shipping address","sellkit")))),Object(c.createElement)("hr",null),Object(c.createElement)("div",null,Object(c.createElement)("label",{htmlFor:"billing-method",className:"wrp method-b"},Object(c.createElement)("input",{type:"radio",value:"diff",name:"billing-method",className:"sellkit-billing-method-b filled",checked:"checked"}),Object(c.createElement)("span",{className:"checkmark"}),Object(c.createElement)("span",{className:"labels"},Object(n.__)("Use a different billing address","sellkit"))))),Object(c.createElement)("div",{className:"woocommerce-billing-fields__field-wrapper"+("billing_only"===window.sellkitBlocks.wc.shipping_destination?" border-top":""),id:"sellkit-checkout-widget-billing-fields"},j))))},save:function(e){var t=e.attributes.customClassName,l=ae.save({className:"".concat(t)});return Object(c.createElement)("div",l)}});var ie=wp.blocks.registerBlockType,re=wp.blockEditor,oe=re.useBlockProps,se=re.InspectorControls,ue=wp.element.useEffect,me=wp.components,be=me.PanelBody,pe=me.TextControl;ie("sellkit-inner-blocks/checkout-payment",{title:Object(n.__)("Payment","sellkit"),categoty:"sellkit-blocks",apiVersion:3,className:!0,edit:function(e){var t=e.attributes,l=e.setAttributes,a=e.clientId,i=t.customClassName,r=t.style,o=t.paymentHeadingText,s=t.paymentDescriptionText;ue((function(){i||l({customClassName:"sellkit-checkout-payment-order-block wp-elements-".concat(a)})}),[]);var u=oe({className:"".concat(i),style:r});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(se,null,Object(c.createElement)(be,{title:Object(n.__)("Content","sellkit")},Object(c.createElement)(pe,{label:Object(n.__)("Heading","sellkit"),value:o,onChange:function(e){return l({paymentHeadingText:e})},type:"text"}),Object(c.createElement)(pe,{label:Object(n.__)("Description","sellkit"),value:s,onChange:function(e){return l({paymentDescriptionText:e})},type:"text"}))),Object(c.createElement)("div",u,Object(c.createElement)("section",null,Object(c.createElement)("div",{id:"payment_method_title",className:"sellkit-one-page-checkout-payment-heading heading"},o),Object(c.createElement)("p",{className:"sellkit-one-page-checkout-payment-desc sub-heading"},s),Object(c.createElement)("div",{id:"payment",className:"woocommerce-checkout-payment sellkit-one-page-checkout-payment-methods sellkit-checkout-widget-divider"},Object(c.createElement)("ul",{className:"wc_payment_methods payment_methods methods"},Object(c.createElement)("li",{id:"payment_method_cheque-list-item",className:"wc_payment_method payment_method_cheque"},Object(c.createElement)("label",{htmlFor:"payment_method_cheque-list-item",className:"wrp"},Object(c.createElement)("input",{id:"payment_method_cheque",type:"radio",className:"input-radio sellkit-one-page-pay-method",name:"payment_method",value:"cheque",checked:"checked","data-order_button_text":""}),Object(c.createElement)("span",{className:"checkmark"}),Object(c.createElement)("label",{htmlFor:"payment_method_cheque"},Object(c.createElement)("div",{className:"sellkit-checkout-payment-gateway-title"},Object(n.__)("Check payments","sellkit"))))),Object(c.createElement)("div",{className:"sellkit_payment_box sellkit-checkout-widget-divider"},Object(c.createElement)("p",null,Object(n.__)("Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode.","sellkit"))),Object(c.createElement)("hr",{className:"sellkit-checkout-widget-divider"}),Object(c.createElement)("li",{id:"payment_method_cod-list-item",className:"wc_payment_method payment_method_cod"},Object(c.createElement)("label",{htmlFor:"payment_method_cod-list-item",id:"payment_method_cod-wrp",className:"wrp"},Object(c.createElement)("input",{id:"payment_method_cod",type:"radio",className:"input-radio sellkit-one-page-pay-method",name:"payment_method",value:"cod","data-order_button_text":""}),Object(c.createElement)("span",{className:"checkmark"}),Object(c.createElement)("label",{id:"payment_method_cod-label",htmlFor:"payment_method_cod"},Object(c.createElement)("div",{className:"sellkit-checkout-payment-gateway-title"},Object(n.__)("Cash on delivery","sellkit"))))),Object(c.createElement)("div",{className:"sellkit_payment_box sellkit-checkout-widget-divider"},Object(c.createElement)("p",null,Object(n.__)("Pay with cash upon delivery.","sellkit"))),Object(c.createElement)("hr",{className:"sellkit-checkout-widget-divider"}))),Object(c.createElement)("div",{className:"sellkit-one-page-checkout-payment-desc sub-heading"},Object(c.createElement)("div",{className:"woocommerce-terms-and-conditions-wrapper"},Object(c.createElement)("div",{className:"woocommerce-privacy-policy-text"},Object(c.createElement)("p",null,Object(n.__)("Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our","sellkit"),Object(c.createElement)("a",{href:"#",className:"woocommerce-privacy-policy-link",target:"_blank"}," ",Object(n.__)("privacy policy","sellkit")),Object(n.__)(".","sellkit"))))),Object(c.createElement)("div",{className:"sellkit-checkout-order-fields sellkit-widget-checkout-fields"},Object(c.createElement)("div",{className:"sellkit-checkout-order-notes"},Object(c.createElement)("div",{className:"sellkit-order-note-field-wrapper"},Object(c.createElement)("input",{id:"sellkit-add-notes-to-order-box",type:"checkbox",className:"filled"}),Object(c.createElement)("label",{id:"sellkit-order-note-field-label",htmlFor:"sellkit-add-notes-to-order-box"},Object(n.__)("Add a note to your order","sellkit"))),Object(c.createElement)("p",{className:"form-row notes",id:"order_comments_field","data-priority":""},Object(c.createElement)("label",{htmlFor:"order_comments_field"},Object(n.__)("Order notes","sellkit"),Object(c.createElement)("span",{className:"optional"},Object(n.__)("(optional)","sellkit"))),Object(c.createElement)("span",{className:"woocommerce-input-wrapper"},Object(c.createElement)("textarea",{name:"order_comments",className:"input-text empty",id:"order_comments",placeholder:Object(n.__)("Notes about your order, e.g. special notes for delivery.","sellkit"),rows:"2",cols:"5"}))))))))},save:function(e){var t=e.attributes.customClassName,l=oe.save({className:"".concat(t)});return Object(c.createElement)("div",l)}});var de=wp.blocks.registerBlockType,ke=wp.blockEditor,he=ke.useBlockProps,_e=ke.InspectorControls,Oe=wp.element.useEffect,fe=wp.components,je=fe.PanelBody,ye=fe.TextControl;de("sellkit-inner-blocks/checkout-payment-continue",{title:Object(n.__)("Payment Continue","sellkit"),categoty:"sellkit-blocks",apiVersion:3,className:!0,edit:function(e){var t=e.attributes,l=e.setAttributes,a=e.clientId,i=t.customClassName,r=t.style,o=t.paymentContinueButtonText;Oe((function(){i||l({customClassName:"sellkit-checkout-payment-continue-order-block wp-elements-".concat(a)})}),[]);var s=he({className:"".concat(i),style:r});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(_e,null,Object(c.createElement)(je,{title:Object(n.__)("Content","sellkit")},Object(c.createElement)(ye,{label:Object(n.__)("Button","sellkit"),value:o,onChange:function(e){return l({paymentContinueButtonText:e})},type:"text"}))),Object(c.createElement)("div",s,Object(c.createElement)("section",{className:"place-order sellkit-one-page-checkout-place-order"},Object(c.createElement)("button",{type:"submit",className:"button alt sellkit-checkout-widget-primary-button",name:"woocommerce_checkout_place_order",id:"place_order",value:"Place Order","data-value":"Place Order"},o))))},save:function(e){var t=e.attributes.customClassName,l=he.save({className:"".concat(t)});return Object(c.createElement)("div",l)}})}});