|
11
|
|
-var r=n(1594),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,p=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(p=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:s,type:e,key:c,ref:p,props:i,_owner:o.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1594(e){e.exports=React},4848(e,t,n){e.exports=n(1020)}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})();const r=wp.element,s=wp.i18n;var i=n(4848);const a=function(){return(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M15 1.33989C16.5083 2.21075 17.7629 3.46042 18.6398 4.96519C19.5167 6.46997 19.9854 8.17766 19.9994 9.91923C20.0135 11.6608 19.5725 13.3758 18.72 14.8946C17.8676 16.4133 16.6332 17.6831 15.1392 18.5782C13.6452 19.4733 11.9434 19.9627 10.2021 19.998C8.46083 20.0332 6.74055 19.6131 5.21155 18.7791C3.68256 17.9452 2.39787 16.7264 1.48467 15.2434C0.571462 13.7604 0.0614093 12.0646 0.00500011 10.3239L0 9.99989L0.00500011 9.67589C0.0610032 7.94888 0.563548 6.26585 1.46364 4.79089C2.36373 3.31592 3.63065 2.09934 5.14089 1.25977C6.65113 0.420205 8.35315 -0.0137108 10.081 0.000330246C11.8089 0.0143713 13.5036 0.47589 15 1.33989ZM13.707 7.29289C13.5348 7.12072 13.3057 7.01729 13.0627 7.002C12.8197 6.98672 12.5794 7.06064 12.387 7.20989L12.293 7.29289L9 10.5849L7.707 9.29289L7.613 9.20989C7.42058 9.06075 7.18037 8.98692 6.9374 9.00225C6.69444 9.01757 6.46541 9.12101 6.29326 9.29315C6.12112 9.4653 6.01768 9.69433 6.00235 9.9373C5.98702 10.1803 6.06086 10.4205 6.21 10.6129L6.293 10.7069L8.293 12.7069L8.387 12.7899C8.56237 12.926 8.77803 12.9998 9 12.9998C9.22197 12.9998 9.43763 12.926 9.613 12.7899L9.707 12.7069L13.707 8.70689L13.79 8.61289C13.9393 8.42049 14.0132 8.18024 13.9979 7.93721C13.9826 7.69419 13.8792 7.46509 13.707 7.29289Z",fill:"#6E58F7"})})};const o=function(){return(0,i.jsx)("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M0.75 0.75L4.75 4.75L0.75 8.75",stroke:"#CBD1DA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})};const l=function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_16394)",children:[(0,i.jsx)("path",{d:"M4 13.0001C5.78309 13.212 7.44305 14.0177 8.71276 15.2874C9.98247 16.5571 10.7881 18.217 11 20.0001C11.8839 19.4905 12.6233 18.764 13.1482 17.8891C13.6732 17.0142 13.9663 16.0199 14 15.0001C15.6791 14.4094 17.1454 13.3341 18.2133 11.9101C19.2813 10.4862 19.9031 8.77746 20 7.00012C20 6.20447 20.0626 5.06273 19.5 4.50012C18.9374 3.93751 17.7956 4.00012 17 4.00012C15.2227 4.09703 13.514 4.71879 12.09 5.78677C10.666 6.85476 9.59069 8.32101 9 10.0001C7.98026 10.0338 6.98596 10.327 6.11106 10.8519C5.23617 11.3768 4.50959 12.1162 4 13.0001Z",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.00048 14C5.95971 14.5876 5.11814 15.4726 4.58364 16.5416C4.04914 17.6106 3.84608 18.8148 4.00048 20C5.18564 20.1544 6.38991 19.9513 7.4589 19.4168C8.5279 18.8823 9.41291 18.0408 10.0005 17",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M14 9C14 9.26522 14.1054 9.51957 14.2929 9.70711C14.4804 9.89464 14.7348 10 15 10C15.2652 10 15.5196 9.89464 15.7071 9.70711C15.8946 9.51957 16 9.26522 16 9C16 8.73478 15.8946 8.48043 15.7071 8.29289C15.5196 8.10536 15.2652 8 15 8C14.7348 8 14.4804 8.10536 14.2929 8.29289C14.1054 8.48043 14 8.73478 14 9Z",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_16394",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const c=function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_16405)",children:[(0,i.jsx)("path",{d:"M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_16405",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const p=function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_16405)",children:[(0,i.jsx)("path",{d:"M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_16405",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const d=function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_16415)",children:[(0,i.jsx)("path",{d:"M17 8V5C17 4.73478 16.8946 4.48043 16.7071 4.29289C16.5196 4.10536 16.2652 4 16 4H6C5.46957 4 4.96086 4.21071 4.58579 4.58579C4.21071 4.96086 4 5.46957 4 6M4 6C4 6.53043 4.21071 7.03914 4.58579 7.41421C4.96086 7.78929 5.46957 8 6 8H18C18.2652 8 18.5196 8.10536 18.7071 8.29289C18.8946 8.48043 19 8.73478 19 9V12M4 6V18C4 18.5304 4.21071 19.0391 4.58579 19.4142C4.96086 19.7893 5.46957 20 6 20H18C18.2652 20 18.5196 19.8946 18.7071 19.7071C18.8946 19.5196 19 19.2652 19 19V16",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M20 12V16H16C15.4696 16 14.9609 15.7893 14.5858 15.4142C14.2107 15.0391 14 14.5304 14 14C14 13.4696 14.2107 12.9609 14.5858 12.5858C14.9609 12.2107 15.4696 12 16 12H20Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_16415",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const u=function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_16415)",children:[(0,i.jsx)("path",{d:"M17 8V5C17 4.73478 16.8946 4.48043 16.7071 4.29289C16.5196 4.10536 16.2652 4 16 4H6C5.46957 4 4.96086 4.21071 4.58579 4.58579C4.21071 4.96086 4 5.46957 4 6M4 6C4 6.53043 4.21071 7.03914 4.58579 7.41421C4.96086 7.78929 5.46957 8 6 8H18C18.2652 8 18.5196 8.10536 18.7071 8.29289C18.8946 8.48043 19 8.73478 19 9V12M4 6V18C4 18.5304 4.21071 19.0391 4.58579 19.4142C4.96086 19.7893 5.46957 20 6 20H18C18.2652 20 18.5196 19.8946 18.7071 19.7071C18.8946 19.5196 19 19.2652 19 19V16",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M20 12V16H16C15.4696 16 14.9609 15.7893 14.5858 15.4142C14.2107 15.0391 14 14.5304 14 14C14 13.4696 14.2107 12.9609 14.5858 12.5858C14.9609 12.2107 15.4696 12 16 12H20Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_16415",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const h=function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("g",{clipPath:"url(#clip0_6613_16425)",children:(0,i.jsx)("path",{d:"M12.4657 17.9953C12.1743 17.8417 11.8258 17.8416 11.5342 17.9949L7.62164 20.052C6.888 20.4377 6.03054 19.8147 6.17068 18.9978L6.91812 14.6406C6.97381 14.3159 6.86605 13.9847 6.63002 13.7549L3.46097 10.6702C2.8667 10.0917 3.1943 9.08289 4.01506 8.96394L8.38655 8.33039C8.71241 8.28317 8.99413 8.07856 9.13985 7.78329L11.0963 3.81897C11.4632 3.07571 12.523 3.07571 12.8898 3.81897L14.8463 7.78329C14.992 8.07856 15.2738 8.28317 15.5996 8.33039L19.9711 8.96394C20.7919 9.08289 21.1195 10.0917 20.5252 10.6702L17.3561 13.7549C17.1201 13.9847 17.0124 14.3159 17.068 14.6406L17.8151 18.9954C17.9553 19.8128 17.0969 20.4358 16.3633 20.0492L12.4657 17.9953Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_16425",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const m=function(){return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("g",{clipPath:"url(#clip0_6613_16425)",children:(0,i.jsx)("path",{d:"M12.4657 17.9953C12.1743 17.8417 11.8258 17.8416 11.5342 17.9949L7.62164 20.052C6.888 20.4377 6.03054 19.8147 6.17068 18.9978L6.91812 14.6406C6.97381 14.3159 6.86605 13.9847 6.63002 13.7549L3.46097 10.6702C2.8667 10.0917 3.1943 9.08289 4.01506 8.96394L8.38655 8.33039C8.71241 8.28317 8.99413 8.07856 9.13985 7.78329L11.0963 3.81897C11.4632 3.07571 12.523 3.07571 12.8898 3.81897L14.8463 7.78329C14.992 8.07856 15.2738 8.28317 15.5996 8.33039L19.9711 8.96394C20.7919 9.08289 21.1195 10.0917 20.5252 10.6702L17.3561 13.7549C17.1201 13.9847 17.0124 14.3159 17.068 14.6406L17.8151 18.9954C17.9553 19.8128 17.0969 20.4358 16.3633 20.0492L12.4657 17.9953Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_16425",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};var _=[{id:"start",label:"Start",icon:(0,i.jsx)(l,{}),activeIcon:(0,i.jsx)(l,{}),completedIcon:(0,i.jsx)(a,{}),arrowIcon:(0,i.jsx)(o,{}),completed:!1,active:!0},{id:"settings",label:"Settings",icon:(0,i.jsx)(p,{}),activeIcon:(0,i.jsx)(c,{}),completedIcon:(0,i.jsx)(a,{}),arrowIcon:(0,i.jsx)(o,{}),completed:!1,active:!1},{id:"payment",label:"Payment",icon:(0,i.jsx)(d,{}),activeIcon:(0,i.jsx)(u,{}),completedIcon:(0,i.jsx)(a,{}),arrowIcon:(0,i.jsx)(o,{}),completed:!1,active:!1},{id:"features",label:"Features",icon:(0,i.jsx)(h,{}),activeIcon:(0,i.jsx)(m,{}),completedIcon:(0,i.jsx)(a,{}),completed:!1,active:!1}],b="paypal",j="stripe",C="paystack";function g(e){var t=e.steps;e.onNext;return(0,i.jsx)("div",{className:"bp-wizard__progress",children:null==t?void 0:t.map(function(e,t){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"bp-progress-step ".concat(null!=e&&e.active?"":"bp-progress-step-border"," ").concat(null!=e&&e.active?"bp-progress-step--active":""," ").concat(null!=e&&e.completed?"bp-progress-step--completed":""),children:[(null==e?void 0:e.icon)&&!(null!=e&&e.completed)&&!(null!=e&&e.active)&&(0,i.jsx)("div",{className:"bp-progress-step__icon",children:null==e?void 0:e.icon}),(null==e?void 0:e.activeIcon)&&!(null!=e&&e.completed)&&(null==e?void 0:e.active)&&(0,i.jsx)("div",{className:"bp-progress-step__icon",children:null==e?void 0:e.activeIcon}),(null==e?void 0:e.completedIcon)&&(null==e?void 0:e.completed)&&!(null!=e&&e.active)&&(0,i.jsx)("div",{className:"bp-progress-step__icon",children:null==e?void 0:e.completedIcon}),(0,i.jsx)("span",{className:"bp-progress-step__label",children:null==e?void 0:e.label})]}),(null==e?void 0:e.arrowIcon)&&(0,i.jsx)("div",{className:"bp-progress-step__arrow",children:null==e?void 0:e.arrowIcon})]})})})}const f=function(e){var t=e.onBack,n=e.onNext,r=e.onFinish,s=e.currentStep,a=e.isTrackingOptedIn,o=e.isPro;return(0,i.jsxs)("div",{className:"bp-wizard__navigation",children:[!(a&&1===s)&&(0,i.jsxs)("button",{className:"bp-btn bp-btn--secondary",onClick:t,type:"button",children:[(0,i.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M11.625 14.25L6.375 9L11.625 3.75",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"square"})}),"Back"]}),(0,i.jsxs)("button",{className:"bp-btn bp-btn--primary",onClick:function(){3===s?r():n()},type:"button",children:[3===s?"1"===o?"Finish":"Finish Without PRO":"Next",(0,i.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M6.375 3.75L11.625 9L6.375 14.25",stroke:"#F7F8FA",strokeWidth:"1.5",strokeLinecap:"square"})})]})]})},y=n.p+"quick-setup/images/hero.png";function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,a,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||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.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const k=function(e){var t=e.onNext,n=e.onTrackingOptIn,s=x((0,r.useState)(!1),2),a=s[0],o=s[1],l=function(){return o(!1)};return(0,i.jsxs)("div",{className:"bp-wizard__content bp-wizard__content--start",children:[(0,i.jsxs)("div",{className:"bp-wizard__hero",children:[(0,i.jsx)("img",{src:y,alt:"img"}),(0,i.jsx)("h1",{className:"bp-wizard__title",children:"Begin Smooth Payment Experience With Better Payment"}),(0,i.jsx)("p",{className:"bp-wizard__description",children:"Thank you for choosing Better Payment for managing your WordPress payments. Simply follow these easy setup wizard steps and elevate your payment handling workflow!"}),(0,i.jsxs)("div",{className:"bp-wizard__actions",children:[(0,i.jsxs)("button",{className:"bp-btn bp-btn--primary bp-btn--process",onClick:function(){var e=new FormData;e.append("action","bp_quick_setup_save_tracking"),e.append("_wpnonce",window.betterPaymentObjWizard.admin_nonce),e.append("is_tracking","true"),fetch(window.betterPaymentObjWizard.ajaxUrl,{method:"POST",body:e}).then(function(e){return e.json()}).then(function(e){e.success?(n(!0),t()):console.error("Failed to save tracking data:",e.data)}).catch(function(e){console.error("AJAX error:",e)})},children:["Proceed To Next Step",(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6480_19667)",children:[(0,i.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M10.832 15L15.832 10",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M10.832 5L15.832 10",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6480_19667",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})]}),(0,i.jsx)("span",{className:"bp-link",onClick:function(){t()},children:"Skip It"})]}),(0,i.jsxs)("div",{className:"bp-wizard__notice",children:[(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6480_19545)",children:[(0,i.jsx)("path",{d:"M2 8C2 8.78793 2.15519 9.56815 2.45672 10.2961C2.75825 11.0241 3.20021 11.6855 3.75736 12.2426C4.31451 12.7998 4.97595 13.2417 5.7039 13.5433C6.43185 13.8448 7.21207 14 8 14C8.78793 14 9.56815 13.8448 10.2961 13.5433C11.0241 13.2417 11.6855 12.7998 12.2426 12.2426C12.7998 11.6855 13.2417 11.0241 13.5433 10.2961C13.8448 9.56815 14 8.78793 14 8C14 6.4087 13.3679 4.88258 12.2426 3.75736C11.1174 2.63214 9.5913 2 8 2C6.4087 2 4.88258 2.63214 3.75736 3.75736C2.63214 4.88258 2 6.4087 2 8Z",stroke:"#FEBD25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8 6H8.00667",stroke:"#FEBD25",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.33594 8H8.0026V10.6667H8.66927",stroke:"#FEBD25",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6480_19545",children:(0,i.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),(0,i.jsxs)("span",{children:["By proceeding, you grant permission for this plugin to collect your information. ",(0,i.jsx)("span",{className:"bp-link",onClick:function(){return o(!0)},children:"Find out what we collect?"})]})]})]}),a&&(0,i.jsx)("div",{className:"bp-modal-overlay",onClick:l,children:(0,i.jsxs)("div",{className:"bp-modal-box",onClick:function(e){return e.stopPropagation()},children:[(0,i.jsxs)("div",{className:"bp-modal-header",children:[(0,i.jsx)("h4",{children:"What Do We Collect?"}),(0,i.jsx)("span",{className:"close-btn",onClick:l,children:(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6692_21867)",children:[(0,i.jsx)("path",{d:"M18 6L6 18",stroke:"#B9BFCA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M6 6L18 18",stroke:"#B9BFCA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6692_21867",children:(0,i.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})})]}),(0,i.jsx)("div",{className:"bp-modal-body",children:(0,i.jsx)("p",{children:"We collect non-sensitive diagnostic data and plugin usage information. Your site URL, WordPress & PHP version, plugins & themes, and email address to send you the discount coupon. This data lets us make sure this plugin always stays compatible with the most popular plugins and themes. No spam, we promise."})})]})})]})};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach(function(t){P(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,a,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||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.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M(e){var t=e.data,n=e.currencies,s=e.onDataChange,a=(e.onNext,e.isPro),o=S((0,r.useState)(!1),2),l=o[0],c=o[1],p=(0,r.useRef)(null);(0,r.useEffect)(function(){var e=function(e){p.current&&!p.current.contains(e.target)&&c(!1)};if(l)return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[l]);return(0,i.jsx)("div",{className:"bp-wizard__content bp-wizard__content--settings",children:(0,i.jsx)("div",{className:"bp-settings",children:(0,i.jsxs)("div",{className:"bp-settings__grid",children:[(0,i.jsxs)("div",{className:"bp-setting-card",children:[(0,i.jsxs)("div",{className:"bp-setting-card__details",children:[(0,i.jsx)("h3",{className:"bp-setting-card__title",children:"PayPal"}),(0,i.jsxs)("p",{className:"bp-setting-card__description",children:["Enable PayPal if you want to offer payment options through PayPal.",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paypal-account-with-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_paypal",value:null==t?void 0:t.better_payment_settings_general_general_paypal,checked:"yes"===t.better_payment_settings_general_general_paypal,onChange:function(e){return s(N(N({},t),{},{better_payment_settings_general_general_paypal:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,i.jsxs)("div",{className:"bp-setting-card",children:[(0,i.jsxs)("div",{className:"bp-setting-card__details",children:[(0,i.jsx)("h3",{className:"bp-setting-card__title",children:"Stripe"}),(0,i.jsxs)("p",{className:"bp-setting-card__description",children:["Enable Stripe if you want to offer payment options through Stripe.",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_stripe",value:null==t?void 0:t.better_payment_settings_general_general_stripe,checked:"yes"===t.better_payment_settings_general_general_stripe,onChange:function(e){return s(N(N({},t),{},{better_payment_settings_general_general_stripe:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,i.jsxs)("div",{className:"bp-setting-card",children:[(0,i.jsxs)("div",{className:"bp-setting-card__details",children:[(0,i.jsx)("h3",{className:"bp-setting-card__title",children:"Paystack"}),(0,i.jsxs)("p",{className:"bp-setting-card__description",children:["Enable Paystack if you want to offer payment options through Paystack.",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_paystack",value:null==t?void 0:t.better_payment_settings_general_general_paystack,checked:"yes"===t.better_payment_settings_general_general_paystack,onChange:function(e){return s(N(N({},t),{},{better_payment_settings_general_general_paystack:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,i.jsxs)("div",{className:"bp-setting-card",children:[(0,i.jsxs)("div",{className:"bp-setting-card__details",children:[(0,i.jsxs)("div",{className:"bp-setting-card__title-wrap",children:[(0,i.jsx)("h3",{className:"bp-setting-card__title",children:"Subscriber Dashboard"}),"1"!==a&&(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M1.41864 10.4887C1.11449 8.51172 0.810337 6.53477 0.506187 4.55777C0.438737 4.11952 0.937387 3.82062 1.29209 4.08667C2.23969 4.79737 3.18724 5.50802 4.13484 6.21872C4.44684 6.45272 4.89134 6.37657 5.10764 6.05207L7.47429 2.50207C7.72439 2.12692 8.27559 2.12692 8.52569 2.50207L10.8923 6.05207C11.1086 6.37657 11.5531 6.45267 11.8651 6.21872C12.8127 5.50802 13.7603 4.79737 14.7079 4.08667C15.0626 3.82062 15.5612 4.11952 15.4938 4.55777C15.1897 6.53477 14.8855 8.51172 14.5814 10.4887H1.41864Z",fill:"#FF8F1E"}),(0,i.jsx)("path",{d:"M13.8931 13.7797H2.10294C1.72394 13.7797 1.41669 13.4724 1.41669 13.0934V11.5859H14.5794V13.0934C14.5794 13.4724 14.2721 13.7797 13.8931 13.7797Z",fill:"#FF8F1E"})]})]}),(0,i.jsxs)("p",{className:"bp-setting-card__description",children:["Enable User Dashboard to provide personalized subscriber transaction previews.",(0,i.jsx)("a",{href:"//betterpayment.co/docs/user-dashboard-using-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),"1"===a?(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_user_dashboard",value:null==t?void 0:t.better_payment_settings_general_general_user_dashboard,checked:"yes"===t.better_payment_settings_general_general_user_dashboard,onChange:function(e){return s(N(N({},t),{},{better_payment_settings_general_general_user_dashboard:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]}):(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_user_dashboard",disabled:!0}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,i.jsxs)("div",{className:"bp-setting-card",children:[(0,i.jsxs)("div",{className:"bp-setting-card__header",children:[(0,i.jsx)("h3",{className:"bp-setting-card__title",children:"Fundraising Campaign"}),(0,i.jsxs)("p",{className:"bp-setting-card__description",children:["Enable Fundraising Campaign to run donations, crowdfunding or any kind of campaign.",(0,i.jsx)("a",{href:"//betterpayment.co/docs/configure-fundraising-campaign-in-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_fundraising_campaign",value:null==t?void 0:t.better_payment_settings_general_general_fundraising_campaign,checked:"yes"===t.better_payment_settings_general_general_fundraising_campaign,onChange:function(e){return s(N(N({},t),{},{better_payment_settings_general_general_fundraising_campaign:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,i.jsxs)("div",{className:"bp-setting-card",children:[(0,i.jsxs)("div",{className:"bp-setting-card__details",children:[(0,i.jsx)("h3",{className:"bp-setting-card__title",children:"Email Notifications"}),(0,i.jsx)("p",{className:"bp-setting-card__description",children:"Turn on email notifications to get real-time updates on status of each payment transaction for both owner & customer."})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_email",value:null==t?void 0:t.better_payment_settings_general_general_email,checked:"yes"===t.better_payment_settings_general_general_email,onChange:function(e){return s(N(N({},t),{},{better_payment_settings_general_general_email:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,i.jsxs)("div",{className:"bp-setting-card bp-setting-card--full",children:[(0,i.jsxs)("div",{className:"bp-setting-card__info",children:[(0,i.jsx)("h3",{className:"bp-setting-card__title",children:"Currency"}),(0,i.jsx)("p",{className:"bp-setting-card__description",children:"Select the default currency for each transaction. You can also overwrite this setting from each form control."})]}),(0,i.jsxs)("div",{ref:p,className:"bp-currency-dropdown",onClick:function(){return c(!l)},children:[(0,i.jsxs)("button",{className:"bp-currency-dropdown__trigger",type:"button",children:[(0,i.jsx)("span",{className:"bp-currency-dropdown__value",children:(null==t?void 0:t.better_payment_settings_general_general_currency)||"USD"}),(0,i.jsx)("span",{className:"bp-currency-dropdown__icon",children:(0,i.jsx)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l?"bp-currency-dropdown-icon-open":"",children:(0,i.jsx)("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:"#6B7280",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),l&&(0,i.jsx)("ul",{className:"bp-currency-dropdown__list",children:Object.keys(n).map(function(e){return(0,i.jsx)("li",{className:"bp-currency-dropdown__item ".concat(((null==t?void 0:t.better_payment_settings_general_general_currency)||"USD")===e?"bp-currency-dropdown__item--active":""),onClick:function(){return function(e){s(N(N({},t),{},{better_payment_settings_general_general_currency:e})),c(!1)}(e)},role:"option","aria-selected":((null==t?void 0:t.better_payment_settings_general_general_currency)||"USD")===e,children:e},e)})})]})]})]})})})}function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const F=function(e){var t=e.data,n=e.onDataChange;return(0,i.jsxs)("div",{className:"bp-payment__content",children:[(0,i.jsxs)("div",{className:"bp-payment__field live__mode",children:[(0,i.jsxs)("div",{className:"bp-payment__field-details",children:[(0,i.jsx)("h3",{className:"bp-payment__field-title",children:"Live Mode"}),(0,i.jsx)("p",{className:"bp-payment__field-description",children:"Live mode allows you to process real transactions. You will need a PayPal business email to accept real payments."})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",checked:"yes"===(null==t?void 0:t.better_payment_settings_payment_paypal_live_mode),onChange:function(e){return n(W(W({},t),{},{better_payment_settings_payment_paypal_live_mode:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,i.jsxs)("div",{className:"bp-payment__field email__field",children:[(0,i.jsxs)("div",{className:"bp-payment__field-details",children:[(0,i.jsx)("label",{className:"bp-label",children:"Business Email"}),(0,i.jsx)("p",{className:"bp-payment__field-description",children:"Your PayPal account email address to accept payments via PayPal."})]}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M13.3274 5.88867C13.3274 5.88867 10.6523 9.0992 8.69579 9.0992C6.74007 9.0992 4.03497 5.88867 4.03497 5.88867",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 8.34733C0.75 2.64891 2.73413 0.75 8.68651 0.75C14.6389 0.75 16.623 2.64891 16.623 8.34733C16.623 14.0449 14.6389 15.9447 8.68651 15.9447C2.73413 15.9447 0.75 14.0449 0.75 8.34733Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"email",className:"bp-input",placeholder:"Email Address",value:null==t?void 0:t.better_payment_settings_payment_paypal_email,onChange:function(e){return n(W(W({},t),{},{better_payment_settings_payment_paypal_email:e.target.value}))}})]})]}),"no"===(null==t?void 0:t.better_payment_settings_payment_paypal_live_mode)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Test/Sandbox Client ID"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"text",className:"bp-input",placeholder:"Client ID",value:null==t?void 0:t.better_payment_settings_payment_paypal_test_client_id,onChange:function(e){return n(W(W({},t),{},{better_payment_settings_payment_paypal_test_client_id:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["Test/sandbox client ID is required to process a refund via PayPal. For more help, visit ",(0,i.jsx)("a",{href:"https://developer.paypal.com/developer/applications",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paypal-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Test/Sandbox Secret"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_paypal_test_secret,onChange:function(e){return n(W(W({},t),{},{better_payment_settings_payment_paypal_test_secret:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["This test/sandbox Secret Key is required to do refund via PayPal. For more help, visit ",(0,i.jsx)("a",{href:"https://developer.paypal.com/developer/applications",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paypal-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Live Client ID"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"text",className:"bp-input",placeholder:"Client ID",value:null==t?void 0:t.better_payment_settings_payment_paypal_live_client_id,onChange:function(e){return n(W(W({},t),{},{better_payment_settings_payment_paypal_live_client_id:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["To refund via PayPal, you must have a PayPal live client ID. For more help, visit ",(0,i.jsx)("a",{href:"https://developer.paypal.com/developer/applications",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paypal-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Live Secret"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_paypal_live_secret,onChange:function(e){return n(W(W({},t),{},{better_payment_settings_payment_paypal_live_secret:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["This live Secret Key is required to process a refund via PayPal. For more help, visit ",(0,i.jsx)("a",{href:"https://developer.paypal.com/developer/applications",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paypal-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]})]})};function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const T=function(e){var t=e.data,n=e.onDataChange;return(0,i.jsxs)("div",{className:"bp-payment__content",children:[(0,i.jsxs)("div",{className:"bp-payment__field live__mode",children:[(0,i.jsxs)("div",{className:"bp-payment__field-details",children:[(0,i.jsx)("h3",{className:"bp-payment__field-title",children:"Live Mode"}),(0,i.jsx)("p",{className:"bp-payment__field-description",children:"Live mode allows you to process real transactions. You will need Stripe credentials to accept real payments."})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",checked:"yes"===(null==t?void 0:t.better_payment_settings_payment_stripe_live_mode),onChange:function(e){return n(V(V({},t),{},{better_payment_settings_payment_stripe_live_mode:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),"no"===(null==t?void 0:t.better_payment_settings_payment_stripe_live_mode)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Test Public Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_test_public,onChange:function(e){return n(V(V({},t),{},{better_payment_settings_payment_stripe_test_public:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["A Stripe test Public Key is required to make payments via Stripe. For more help, visit ",(0,i.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Test Secret Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_test_secret,onChange:function(e){return n(V(V({},t),{},{better_payment_settings_payment_stripe_test_secret:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["Stripe test Secret Key is required to make payments via Stripe. For more help, visit ",(0,i.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Live Public Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_live_public,onChange:function(e){return n(V(V({},t),{},{better_payment_settings_payment_stripe_live_public:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["A Stripe live Public Key is required to make payments via Stripe. For more help, visit ",(0,i.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Live Secret Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_live_secret,onChange:function(e){return n(V(V({},t),{},{better_payment_settings_payment_stripe_live_secret:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["Stripe live Secret Key is required to make payments via Stripe. For more help, visit ",(0,i.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]})]})};function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==I(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const q=function(e){var t=e.data,n=e.onDataChange;return(0,i.jsxs)("div",{className:"bp-payment__content",children:[(0,i.jsxs)("div",{className:"bp-payment__field live__mode",children:[(0,i.jsxs)("div",{className:"bp-payment__field-details",children:[(0,i.jsx)("h3",{className:"bp-payment__field-title",children:"Live Mode"}),(0,i.jsx)("p",{className:"bp-payment__field-description",children:"Live mode allows you to process real transactions. You will need Paystack credentials to accept real payments."})]}),(0,i.jsxs)("label",{className:"bp-toggle",children:[(0,i.jsx)("input",{type:"checkbox",checked:"yes"===(null==t?void 0:t.better_payment_settings_payment_paystack_live_mode),onChange:function(e){return n(z(z({},t),{},{better_payment_settings_payment_paystack_live_mode:e.target.checked?"yes":"no"}))}}),(0,i.jsx)("span",{className:"bp-toggle__slider"})]})]}),"no"===(null==t?void 0:t.better_payment_settings_payment_paystack_live_mode)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Test Public Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_test_public,onChange:function(e){return n(z(z({},t),{},{better_payment_settings_payment_paystack_test_public:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["This test Public Key is required to make payments via Paystack. For more help, visit ",(0,i.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Test Secret Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_test_secret,onChange:function(e){return n(z(z({},t),{},{better_payment_settings_payment_paystack_test_secret:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["This test Secret Key is required to make payments via Paystack. For more help, visit ",(0,i.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Live Public Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_live_public,onChange:function(e){return n(z(z({},t),{},{better_payment_settings_payment_paystack_live_public:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["This live Public Key is required to make payments via Paystack. For more help, visit ",(0,i.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,i.jsxs)("div",{className:"bp-payment__field",children:[(0,i.jsx)("label",{className:"bp-label",children:"Live Secret Key"}),(0,i.jsxs)("div",{className:"bp-input-wrapper",children:[(0,i.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_live_secret,onChange:function(e){return n(z(z({},t),{},{better_payment_settings_payment_paystack_live_secret:e.target.value}))}})]}),(0,i.jsxs)("p",{className:"bp-payment__field-info",children:["This live Secret Key is required to make payments via Paystack. For more help, visit ",(0,i.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,i.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]})]})};function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,a,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(e,t)||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.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Y=function(e){var t=e.data,n=e.onDataChange,s=U((0,r.useState)(b),2),a=s[0],o=s[1],l=function(e){o(e)};return(0,i.jsx)("div",{className:"bp-wizard__content bp-wizard__content--payment",children:(0,i.jsxs)("div",{className:"bp-payment",children:[(0,i.jsxs)("div",{className:"bp-payment__sidebar",children:[(0,i.jsxs)("button",{className:"bp-payment-tab ".concat(a===b?"bp-payment-tab--active":""),onClick:function(){return l(b)},children:[(0,i.jsx)("svg",{width:"15",height:"17",viewBox:"0 0 15 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M7.91667 0C10.5108 0 12.3408 1.4875 12.8025 3.80417C14.24 4.79167 15 6.43083 15 8.33333C15 10.7775 12.71 12.82 10.1808 12.9133L10 12.9167H8.53833L8.15 15.25C8.0776 15.6076 7.88972 15.9316 7.61524 16.1721C7.34076 16.4125 6.9949 16.5561 6.63083 16.5808L6.5 16.5833H4.26667C4.07925 16.587 3.89341 16.5484 3.72291 16.4705C3.5524 16.3926 3.4016 16.2774 3.28167 16.1333C3.07257 15.8852 2.96853 15.5653 2.99167 15.2417L3.02667 15H1.66667C0.83 15 0.0716667 14.28 0.00500003 13.4525L0 13.3333L0.00833333 13.2158L1.66917 1.5875L1.67167 1.5475C1.73167 0.8025 2.35083 0.145833 3.08417 0.0208334L3.21417 0.00416676L3.33333 0H7.91667ZM12.76 6.125L12.74 6.1975C12.1517 8.2 10.18 9.89417 8.11083 9.995L7.91667 10H5.83083V10.0417L5.81 10.1942L4.81 14.3608C4.80542 14.3805 4.80014 14.3999 4.79417 14.4192L4.72083 14.9167H6.51583L7.01167 11.9467C7.04111 11.7691 7.12724 11.6059 7.25717 11.4813C7.3871 11.3568 7.55386 11.2777 7.7325 11.2558L7.83333 11.25H10C11.7275 11.25 13.3333 9.85833 13.3333 8.33333C13.3333 7.48167 13.1367 6.73 12.76 6.125Z",fill:"#0070E0"})}),"PayPal"]}),(0,i.jsxs)("button",{className:"bp-payment-tab ".concat(a===j?"bp-payment-tab--active":""),onClick:function(){return l(j)},children:[(0,i.jsx)("svg",{width:"13",height:"17",viewBox:"0 0 13 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M6.25 0C8.29167 0 10.0358 0.366667 11.19 0.913333C11.3485 0.988469 11.4793 1.11173 11.5637 1.26555C11.6481 1.41937 11.6818 1.59591 11.66 1.77L11.2433 5.10333C11.227 5.2348 11.1795 5.36046 11.1048 5.46991C11.0302 5.57935 10.9305 5.66942 10.8141 5.73264C10.6976 5.79586 10.5678 5.83041 10.4354 5.83343C10.3029 5.83645 10.1717 5.80785 10.0525 5.75C9.18 5.32583 7.87083 5.06417 6.57917 5.06417C6.46472 5.06472 6.3725 5.07194 6.3025 5.08583L6.32583 5.10583L6.38417 5.145C6.64583 5.3175 7.0775 5.50917 7.7775 5.76667C10.9642 6.8925 12.5 8.46667 12.5 11.25C12.5 13.025 11.8683 14.36 10.5875 15.3533C9.51 16.2058 7.73583 16.6667 5.83333 16.6667C3.83333 16.6667 1.9 16.13 0.428333 15.3117C0.283147 15.2309 0.165426 15.1085 0.0902903 14.9603C0.0151542 14.8121 -0.0139671 14.6449 0.00666658 14.48L0.423333 11.1467C0.440405 11.0101 0.491043 10.8799 0.570723 10.7676C0.650403 10.6554 0.756644 10.5646 0.879954 10.5035C1.00326 10.4423 1.1398 10.4126 1.27738 10.4171C1.41495 10.4216 1.54927 10.4601 1.66833 10.5292C2.745 11.1542 4.70167 11.6667 5.83333 11.6667C6.15833 11.6667 6.42 11.5442 6.55833 11.4208L6.5875 11.3917L6.5125 11.3625C6.37333 11.3125 5.19333 10.9517 4.71833 10.7842C1.69667 9.6975 0 7.77667 0 5C0 3.4275 0.735 2.03083 1.975 1.01917C2.99167 0.196667 4.0725 0 6.25 0Z",fill:"#8F9AB0"})}),"Stripe"]}),(0,i.jsxs)("button",{className:"bp-payment-tab ".concat(a===C?"bp-payment-tab--active":""),onClick:function(){return l(C)},children:[(0,i.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M14.5462 0H0.851649C0.391759 0 0 0.393422 0 0.872369V2.42895C0 2.90789 0.391759 3.30132 0.851649 3.30132H14.5462C15.0231 3.30132 15.3978 2.90789 15.4149 2.42895V0.889473C15.4149 0.39342 15.0231 0 14.5462 0ZM14.5462 8.63816H0.851649C0.63022 8.63816 0.408792 8.72369 0.255495 8.89474C0.0851649 9.06579 0 9.27105 0 9.51052V11.0671C0 11.5461 0.391759 11.9395 0.851649 11.9395H14.5462C15.0231 11.9395 15.3978 11.5632 15.4149 11.0671V9.51052C15.3978 9.01447 15.0231 8.63816 14.5462 8.63816ZM8.56759 12.9487H0.851649C0.63022 12.9487 0.408792 13.0342 0.255495 13.2053C0.102198 13.3763 0 13.5816 0 13.8211V15.3776C0 15.8566 0.391759 16.25 0.851649 16.25H8.55056C9.02748 16.25 9.40221 15.8566 9.40221 15.3947V13.8382C9.41924 13.325 9.04451 12.9316 8.56759 12.9487ZM15.4149 4.31052H0.851649C0.63022 4.31052 0.408792 4.39605 0.255495 4.5671C0.102198 4.73816 0 4.94342 0 5.18289V6.73947C0 7.21842 0.391759 7.61184 0.851649 7.61184H15.3978C15.8747 7.61184 16.2495 7.21842 16.2495 6.73947V5.18289C16.2665 4.70395 15.8747 4.32763 15.4149 4.31052Z",fill:"#8F9AB0"})}),"Paystack"]})]}),function(){switch(a){case b:return(0,i.jsx)(F,{data:t,onDataChange:n});case j:return(0,i.jsx)(T,{data:t,onDataChange:n});case C:return(0,i.jsx)(q,{data:t,onDataChange:n});default:return null}}()]})})},$=n.p+"quick-setup/images/features-page-bg.png";function J(e){e.data,e.onDataChange;var t=e.isPro;return(0,i.jsx)("div",{className:"bp-wizard__content bp-wizard__content--features",children:(0,i.jsx)("div",{className:"bp-features",children:(0,i.jsxs)("div",{className:"bp-features__section",children:[(0,i.jsxs)("div",{className:"bp-features__details",children:[(0,i.jsxs)("div",{className:"bp-features__content",children:[(0,i.jsx)("h2",{className:"bp-features__title",children:"Everything You Need to Get Paid Smarter At A Glance"}),(0,i.jsx)("p",{className:"bp-features__description",children:"From collecting 1-click payments to running subscription or fundraising campaigns, you can do it all with Better Payment. Moreover, you are getting transaction details, analytics, and so on."})]}),(0,i.jsxs)("div",{className:"bp-features__grid",children:[(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"12",viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("g",{clipPath:"url(#clip0_6480_19809)",children:(0,i.jsx)("path",{d:"M16.8631 3.38705C16.5371 3.42455 16.2651 3.62411 16.1251 3.90201L16.1224 3.90737C15.9224 4.1846 15.7724 4.51272 15.6924 4.86696L15.6891 4.88505C15.6524 5.05714 15.6318 5.25402 15.6318 5.45625C15.6318 5.46629 15.6318 5.47567 15.6318 5.48571V5.48438C15.6358 5.75424 15.6891 6.01071 15.7844 6.24576L15.7791 6.2317C15.9018 6.55112 16.0658 6.72455 16.2618 6.7654C16.2831 6.76741 16.3084 6.76875 16.3338 6.76875C16.5684 6.76875 16.7791 6.66563 16.9231 6.5029L16.9238 6.50223C17.2458 6.18482 17.4684 5.76696 17.5431 5.29955L17.5444 5.2875C17.5798 5.10603 17.6011 4.89576 17.6024 4.68147V4.68013C17.5991 4.41027 17.5451 4.15379 17.4498 3.91875L17.4551 3.93281C17.3318 3.61339 17.1684 3.44062 16.9718 3.39978C16.9391 3.39308 16.9018 3.38839 16.8631 3.38772V3.38705ZM11.7378 3.38705C11.4118 3.42455 11.1398 3.62411 10.9998 3.90201L10.9971 3.90737C10.7971 4.1846 10.6471 4.51272 10.5671 4.86696L10.5638 4.88505C10.5271 5.05513 10.5058 5.25067 10.5058 5.45089C10.5058 5.46228 10.5058 5.47433 10.5058 5.48571V5.48371C10.5098 5.75357 10.5631 6.01005 10.6584 6.24509L10.6531 6.23103C10.7758 6.55045 10.9391 6.72388 11.1358 6.76473C11.1571 6.76674 11.1824 6.76808 11.2078 6.76808C11.4424 6.76808 11.6531 6.66496 11.7971 6.50223L11.7978 6.50156C12.1198 6.18415 12.3424 5.76629 12.4171 5.29888L12.4184 5.28683C12.4551 5.11607 12.4764 4.9192 12.4764 4.71763C12.4764 4.70424 12.4764 4.69085 12.4764 4.67746V4.67946C12.4731 4.4096 12.4198 4.15313 12.3251 3.91808L12.3298 3.93214C12.2064 3.61272 12.0431 3.43996 11.8464 3.39911C11.8138 3.39241 11.7764 3.38772 11.7378 3.38772V3.38705ZM16.8251 2.01027C16.9824 2.01161 17.1344 2.02969 17.2811 2.06317L17.2671 2.06049C17.8344 2.16897 18.3038 2.52121 18.5704 3.00201L18.5751 3.01138C18.8224 3.44799 18.9684 3.97098 18.9684 4.52746C18.9684 4.56295 18.9678 4.59844 18.9664 4.63393V4.62857C18.9664 4.64062 18.9664 4.65402 18.9664 4.66808C18.9664 5.5125 18.7291 6.30134 18.3184 6.97098L18.3291 6.95223C17.9724 7.67478 17.2498 8.16696 16.4111 8.18371H16.4091C16.2518 8.18237 16.0998 8.16429 15.9531 8.13147L15.9678 8.13415C15.3998 8.02567 14.9304 7.67277 14.6644 7.1913L14.6598 7.18192C14.4118 6.73929 14.2664 6.2096 14.2664 5.64643C14.2664 5.61496 14.2671 5.58281 14.2678 5.55134V5.55603C14.2678 5.5433 14.2678 5.52857 14.2678 5.51317C14.2678 4.6721 14.5051 3.88728 14.9158 3.22165L14.9051 3.2404C15.2658 2.52054 15.9864 2.03036 16.8231 2.00893H16.8258L16.8251 2.01027ZM11.7004 2.01027C11.8578 2.01161 12.0098 2.02969 12.1564 2.06317L12.1424 2.06049C12.7091 2.17098 13.1778 2.52254 13.4458 3.00201L13.4504 3.01138C13.6978 3.44799 13.8438 3.97031 13.8438 4.52746C13.8438 4.56295 13.8431 4.59844 13.8418 4.63393V4.62857C13.8418 4.64062 13.8418 4.65402 13.8418 4.66808C13.8418 5.5125 13.6044 6.30134 13.1931 6.97098L13.2038 6.95223C12.8471 7.67478 12.1244 8.16696 11.2858 8.18371H11.2838C11.1264 8.18237 10.9744 8.16429 10.8278 8.13147L10.8424 8.13415C10.2744 8.02567 9.80511 7.67277 9.53911 7.1913L9.53444 7.18192C9.28644 6.73929 9.14044 6.2096 9.14044 5.64643C9.14044 5.61496 9.14111 5.58281 9.14177 5.55134V5.55603C9.14177 5.5433 9.14177 5.52857 9.14177 5.51384C9.14177 4.67277 9.37911 3.88795 9.79044 3.22232L9.77977 3.24107C10.1404 2.52121 10.8611 2.03103 11.6978 2.0096H11.7004V2.01027ZM8.58911 1.12098C8.75977 1.12433 8.91511 1.18728 9.03577 1.28906L9.03444 1.28839C9.17844 1.39821 9.27377 1.56496 9.28777 1.75513V1.75714C9.28911 1.77455 9.28977 1.79397 9.28977 1.81406C9.28977 1.93728 9.25844 2.05312 9.20377 2.15357L9.20577 2.14955C8.81444 3.01406 8.53444 4.01652 8.41777 5.06853L8.41377 5.11339C8.26377 5.9183 8.17777 6.84442 8.17777 7.79063C8.17777 7.94933 8.18044 8.10804 8.18511 8.2654L8.18444 8.24197C8.18777 8.27277 8.18977 8.30893 8.18977 8.34509C8.18977 8.50513 8.15111 8.6558 8.08377 8.78839L8.08644 8.78304C8.00444 8.94844 7.84377 9.06362 7.65511 9.07835H7.65311C7.65044 9.07835 7.64711 9.07835 7.64377 9.07835C7.38777 9.07835 7.15911 8.96116 7.00844 8.77701L7.00711 8.77567C6.15777 7.81339 5.52911 6.63482 5.21177 5.33371L5.20044 5.27813C4.80133 6.0625 4.40889 6.85045 4.02311 7.64196C3.54177 8.57076 3.13244 9.04621 2.78911 9.07098C2.56844 9.08772 2.38111 8.89888 2.21644 8.50447C1.63711 6.7279 1.16444 4.6192 0.886441 2.45022L0.867775 2.2721C0.861775 2.23661 0.858441 2.19576 0.858441 2.15424C0.858441 1.99219 0.911108 1.84152 1.00044 1.72031L0.999108 1.72232C1.11977 1.5683 1.30511 1.4692 1.51377 1.46786C1.54844 1.46049 1.58777 1.45647 1.62777 1.45647C1.95777 1.45647 2.22511 1.725 2.22511 2.05647C2.22511 2.05714 2.22511 2.05781 2.22511 2.05848C2.47844 3.77478 2.75644 5.22857 3.05044 6.41853L4.84044 2.99598C4.94111 2.73482 5.17111 2.54531 5.44911 2.50379L5.45311 2.50313C5.81244 2.47835 6.03311 2.70804 6.12311 3.19286C6.31577 4.26228 6.58444 5.20513 6.93577 6.10647L6.89977 6.00134C6.98577 4.34933 7.37444 2.80848 8.01111 1.40625L7.97911 1.48527C8.07844 1.27835 8.28044 1.13571 8.51777 1.12433H8.51911C8.54222 1.1221 8.56555 1.12098 8.58911 1.12098ZM1.85777 0.0241071C0.833108 0.0247767 0.00244141 0.859152 0.00244141 1.88839C0.00244141 1.89107 0.00244141 1.89375 0.00244141 1.89643V8.13616C0.00244141 9.16942 0.836441 10.0085 1.86577 10.0085H9.57511L13.0984 11.9792L12.2971 10.0085H18.1338C18.1338 10.0085 18.1344 10.0085 18.1351 10.0085C19.1638 10.0085 19.9978 9.17076 19.9978 8.1375C19.9978 8.13683 19.9978 8.13683 19.9978 8.13616V1.89576C19.9978 1.89509 19.9978 1.89509 19.9978 1.89442C19.9978 0.861161 19.1638 0.0234375 18.1351 0.0234375C18.1344 0.0234375 18.1344 0.0234375 18.1338 0.0234375L1.85777 0.0241071Z",fill:"#6E58F7"})}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6480_19809",children:(0,i.jsx)("rect",{width:"20",height:"12",fill:"white"})})})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"Woo Integrations"})]}),(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_2418)",children:[(0,i.jsx)("path",{d:"M10 15.8346H5C4.33696 15.8346 3.70107 15.5712 3.23223 15.1024C2.76339 14.6336 2.5 13.9977 2.5 13.3346V6.66797C2.5 6.00493 2.76339 5.36904 3.23223 4.9002C3.70107 4.43136 4.33696 4.16797 5 4.16797H15C15.663 4.16797 16.2989 4.43136 16.7678 4.9002C17.2366 5.36904 17.5 6.00493 17.5 6.66797V10.418",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M2.5 8.33203H17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.3335 15.832H18.3335",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.8335 13.332L18.3335 15.832L15.8335 18.332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M5.83838 12.5H5.84255",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9.1665 12.5H10.8332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_2418",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"Subscriber Dashboard"})]}),(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_17099)",children:[(0,i.jsx)("path",{d:"M2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H15.8333C16.2754 2.5 16.6993 2.67559 17.0118 2.98816C17.3244 3.30072 17.5 3.72464 17.5 4.16667V15.8333C17.5 16.2754 17.3244 16.6993 17.0118 17.0118C16.6993 17.3244 16.2754 17.5 15.8333 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333Z",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9.16797 10.832H10.8346",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.5 8.33203H12.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8.33203 5.83203H11.6654",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_17099",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"Ready Payment Forms"})]}),(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_19814)",children:[(0,i.jsx)("path",{d:"M2.5 2.5V17.5H17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M16.6665 15V17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.3335 13.332V17.4987",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M10 10.832V17.4987",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M6.6665 13.332V17.4987",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M2.5 9.16667C7.5 9.16667 6.66667 5 10 5C13.3333 5 12.5 9.16667 17.5 9.16667",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_19814",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"Detailed Analytics"})]}),(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6480_19818)",children:[(0,i.jsx)("path",{d:"M11.4516 10.7419C11.4516 10.7491 11.4571 10.7455 11.4425 10.7298C11.4265 10.7126 11.3857 10.6824 11.3065 10.6472C11.1417 10.574 10.8737 10.5161 10.5565 10.5161H9.44355C8.87569 10.5161 8.29601 10.4166 7.83468 10.2117C7.37287 10.0064 7 9.67472 7 9.25806C7 8.84141 7.37287 8.50969 7.83468 8.30444C8.29601 8.09948 8.87569 8 9.44355 8H12.2258C12.6534 8 13 8.23108 13 8.51613C13 8.80118 12.6534 9.03226 12.2258 9.03226H9.44355C9.12632 9.03226 8.85832 9.09017 8.69355 9.16331C8.61431 9.19852 8.57355 9.22871 8.55746 9.24597C8.54285 9.26164 8.54839 9.26526 8.54839 9.25806C8.54839 9.25087 8.54285 9.25448 8.55746 9.27016C8.57355 9.28742 8.61431 9.3176 8.69355 9.35282C8.85832 9.42596 9.12632 9.48387 9.44355 9.48387H10.5565C11.1243 9.48387 11.704 9.58336 12.1653 9.78831C12.6271 9.99356 13 10.3253 13 10.7419C13 11.1586 12.6271 11.4903 12.1653 11.6956C11.704 11.9005 11.1243 12 10.5565 12H7.77419C7.34662 12 7 11.7689 7 11.4839C7 11.1988 7.34662 10.9677 7.77419 10.9677H10.5565C10.8737 10.9677 11.1417 10.9098 11.3065 10.8367C11.3857 10.8015 11.4265 10.7713 11.4425 10.754C11.4571 10.7384 11.4516 10.7347 11.4516 10.7419Z",fill:"#6E58F7"}),(0,i.jsx)("path",{d:"M9 13.4074V12.5556C9 12.2283 9.44772 11.963 10 11.963C10.5523 11.963 11 12.2283 11 12.5556V13.4074C11 13.7347 10.5523 14 10 14C9.44772 14 9 13.7347 9 13.4074ZM9 7.44444V6.59259C9 6.26531 9.44772 6 10 6C10.5523 6 11 6.26531 11 6.59259V7.44444C11 7.77172 10.5523 8.03704 10 8.03704C9.44772 8.03704 9 7.77172 9 7.44444Z",fill:"#6E58F7"}),(0,i.jsxs)("g",{clipPath:"url(#clip1_6480_19818)",children:[(0,i.jsx)("path",{d:"M16.6654 8.16854C16.4616 6.70205 15.7813 5.34325 14.7292 4.30145C13.6772 3.25965 12.3118 2.59264 10.8434 2.40316C9.37502 2.21369 7.88505 2.51227 6.60303 3.25291C5.32101 3.99355 4.31807 5.13515 3.7487 6.50187M3.33203 3.16854V6.50187H6.66536",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M3.33203 11.832C3.53583 13.2985 4.21614 14.6573 5.26817 15.6991C6.32019 16.7409 7.68557 17.4079 9.15397 17.5974C10.6224 17.7869 12.1123 17.4883 13.3944 16.7477C14.6764 16.007 15.6793 14.8654 16.2487 13.4987M16.6654 16.832V13.4987H13.332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),(0,i.jsxs)("defs",{children:[(0,i.jsx)("clipPath",{id:"clip0_6480_19818",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})}),(0,i.jsx)("clipPath",{id:"clip1_6480_19818",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})]})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"Recurring Payment"})]}),(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_19415)",children:[(0,i.jsx)("path",{d:"M11.6665 2.5V5.83333C11.6665 6.05435 11.7543 6.26631 11.9106 6.42259C12.0669 6.57887 12.2788 6.66667 12.4998 6.66667H15.8332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.8334 10V15.8333C15.8729 16.1478 15.8105 16.4667 15.6555 16.7431C15.5005 17.0196 15.261 17.2392 14.9721 17.3696C14.6833 17.5001 14.3602 17.5346 14.0503 17.468C13.7404 17.4015 13.46 17.2375 13.2501 17C13.1215 16.8355 12.9571 16.7024 12.7694 16.6109C12.5817 16.5193 12.3756 16.4718 12.1668 16.4718C11.958 16.4718 11.7519 16.5193 11.5642 16.6109C11.3764 16.7024 11.2121 16.8355 11.0834 17C10.9548 17.1645 10.7905 17.2976 10.6027 17.3891C10.415 17.4807 10.2089 17.5282 10.0001 17.5282C9.79128 17.5282 9.5852 17.4807 9.39749 17.3891C9.20978 17.2976 9.04539 17.1645 8.91678 17C8.78818 16.8355 8.62378 16.7024 8.43608 16.6109C8.24837 16.5193 8.04228 16.4718 7.83345 16.4718C7.62462 16.4718 7.41853 16.5193 7.23082 16.6109C7.04311 16.7024 6.87872 16.8355 6.75012 17C6.54023 17.2375 6.25979 17.4015 5.9499 17.468C5.64 17.5346 5.31695 17.5001 5.02809 17.3696C4.73923 17.2392 4.49975 17.0196 4.34475 16.7431C4.18975 16.4667 4.12738 16.1478 4.16678 15.8333V4.16667C4.16678 3.72464 4.34238 3.30072 4.65494 2.98816C4.9675 2.67559 5.39142 2.5 5.83345 2.5H11.6668L15.8334 6.66667V10.2083",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_19415",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"Transaction Invoices"})]}),(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6613_19832)",children:[(0,i.jsx)("path",{d:"M10 15.8346H5C4.33696 15.8346 3.70107 15.5712 3.23223 15.1024C2.76339 14.6336 2.5 13.9977 2.5 13.3346V6.66797C2.5 6.00493 2.76339 5.36904 3.23223 4.9002C3.70107 4.43136 4.33696 4.16797 5 4.16797H15C15.663 4.16797 16.2989 4.43136 16.7678 4.9002C17.2366 5.36904 17.5 6.00493 17.5 6.66797V10.418",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M2.5 8.33203H17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M13.3335 15.832H18.3335",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15.8335 13.332L18.3335 15.832L15.8335 18.332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M5.83838 12.5H5.84255",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9.1665 12.5H10.8332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6613_19832",children:(0,i.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"Split Payment"})]}),(0,i.jsxs)("div",{className:"bp-features__item",children:[(0,i.jsx)("div",{className:"bp-features__item-icon",children:(0,i.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M9.04803 15H1L2.26302 12.304C2.6338 11.5125 3.4787 11 4.41292 11H14L13.3479 12.3921C12.6063 13.9751 10.9165 15 9.04803 15Z",fill:"#00009F"}),(0,i.jsx)("path",{d:"M15.5253 9H4L4.66398 7.60794C5.419 6.02488 7.13937 5 9.04164 5H19L17.7142 7.69603C17.3366 8.48754 16.4765 9 15.5253 9Z",fill:"#00009F"})]})}),(0,i.jsx)("span",{className:"bp-features__item-label",children:"FluentCart Integration"})]})]}),(0,i.jsxs)("div",{className:"bp-features__all",children:["1"!==t&&(0,i.jsxs)("a",{href:"//betterpayment.co/#pricing-plan",target:"_blank",className:"bp-btn bp-btn--upgrade",children:[(0,i.jsxs)("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M1.03347 9.30151C0.691298 7.07739 0.349129 4.85332 0.00695999 2.6292C-0.0689213 2.13616 0.49206 1.7999 0.891097 2.09921C1.95715 2.89875 3.02314 3.69823 4.08919 4.49776C4.44019 4.76101 4.94025 4.67535 5.18359 4.31028L7.84607 0.316533C8.12743 -0.105511 8.74753 -0.105511 9.0289 0.316533L11.6914 4.31028C11.9347 4.67535 12.4348 4.76096 12.7858 4.49776C13.8518 3.69823 14.9178 2.89875 15.9839 2.09921C16.3829 1.7999 16.9439 2.13616 16.8681 2.6292C16.5259 4.85332 16.1837 7.07739 15.8416 9.30151H1.03347Z",fill:"white"}),(0,i.jsx)("path",{d:"M15.0673 13.0031H1.80328C1.37691 13.0031 1.03125 12.6575 1.03125 12.2311V10.5352H15.8393V12.2311C15.8393 12.6575 15.4936 13.0031 15.0673 13.0031Z",fill:"white"})]}),"Upgrade To PRO"]}),(0,i.jsxs)("a",{href:"//betterpayment.co/",target:"_blank",className:"bp-link bp-link--arrow",children:["Explore All Features",(0,i.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_6480_19935)",children:[(0,i.jsx)("path",{d:"M3.33447 8H12.6678",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8.66553 12L12.6655 8",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8.66553 4L12.6655 8",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_6480_19935",children:(0,i.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})]})]})]}),(0,i.jsx)("img",{src:$,alt:"img"})]})})})}const Q=n.p+"quick-setup/images/finish-page-bg.png";function X(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"bp-modal-overlay",children:(0,i.jsxs)("div",{className:"bp-finish-modal__content",children:[(0,i.jsx)("img",{src:Q,alt:"img"}),(0,i.jsxs)("div",{className:"bp-finish-content",children:[(0,i.jsx)("h1",{className:"bp-finish-modal__title",children:"Congratulations!"}),(0,i.jsx)("p",{className:"bp-finish-modal__description",children:"You are all set to collect and manage payments using the Better Payment plugin. Best wishes."})]})]})})})}n(1594);function ee(){return(0,i.jsx)("div",{className:"bp-preloader-overlay",children:(0,i.jsxs)("div",{className:"bp-preloader",children:[(0,i.jsx)("div",{className:"bp-spinner"}),(0,i.jsx)("p",{children:"Saving..."})]})})}function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function ne(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",s=n.toStringTag||"@@toStringTag";function i(n,r,s,i){var l=r&&r.prototype instanceof o?r:o,c=Object.create(l.prototype);return re(c,"_invoke",function(n,r,s){var i,o,l,c=0,p=s||[],d=!1,u={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,o=0,l=e,u.n=n,a}};function h(n,r){for(o=n,l=r,t=0;!d&&c&&!s&&t<p.length;t++){var s,i=p[t],h=u.p,m=i[2];n>3?(s=m===r)&&(l=i[(o=i[4])?5:(o=3,3)],i[4]=i[5]=e):i[0]<=h&&((s=n<2&&h<i[1])?(o=0,u.v=r,u.n=i[1]):h<m&&(s=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,u.n=m,o=0))}if(s||n>1)return a;throw d=!0,r}return function(s,p,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===p&&h(p,m),o=p,l=m;(t=o<2?e:l)||!d;){i||(o?o<3?(o>1&&(u.n=-1),h(o,l)):u.n=l:u.v=l);try{if(c=2,i){if(o||(s="next"),t=i[s]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,o<2&&(o=0)}else 1===o&&(t=i.return)&&t.call(i),o<2&&(l=TypeError("The iterator does not provide a '"+s+"' method"),o=1);i=e}else if((t=(d=u.n<0)?l:n.call(r,u))!==a)break}catch(t){i=e,o=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,s,i),!0),c}var a={};function o(){}function l(){}function c(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(re(t={},r,function(){return this}),t),d=c.prototype=o.prototype=Object.create(p);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,re(e,s,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,re(d,"constructor",c),re(c,"constructor",l),l.displayName="GeneratorFunction",re(c,s,"GeneratorFunction"),re(d),re(d,s,"Generator"),re(d,r,function(){return this}),re(d,"toString",function(){return"[object Generator]"}),(ne=function(){return{w:i,m:u}})()}function re(e,t,n,r){var s=Object.defineProperty;try{s({},"",{})}catch(e){s=0}re=function(e,t,n,r){function i(t,n){re(e,t,function(e){return this._invoke(t,n,e)})}t?s?s(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},re(e,t,n,r)}function se(e,t,n,r,s,i,a){try{var o=e[i](a),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(r,s)}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i,a,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ae(e,t):void 0}}(e,t)||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.")}()}function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach(function(t){ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==te(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pe=function(){var e,t,n=(null===(e=window)||void 0===e?void 0:e.betterPaymentObjWizard)||{},a="1"===(null==n?void 0:n.is_tracking),o=ie((0,r.useState)(_.map(function(e,t){if(a){if(0===t)return le(le({},e),{},{completed:!0,active:!1});if(1===t)return le(le({},e),{},{completed:!1,active:!0})}return e})),2),l=o[0],c=o[1],p=ie((0,r.useState)(a?1:0),2),d=p[0],u=p[1],h=ie((0,r.useState)({}),2),m=h[0],b=h[1],j=ie((0,r.useState)((null===(t=window)||void 0===t||null===(t=t.betterPaymentObjWizard)||void 0===t?void 0:t.settings)||{}),2),C=j[0],y=j[1],x=ie((0,r.useState)((null==n?void 0:n.currencies)||{}),2),v=x[0],w=(x[1],ie((0,r.useState)(a),2)),L=w[0],N=w[1],P=ie((0,r.useState)(!1),2),S=P[0],O=P[1],H=ie((0,r.useState)(!1),2),B=H[0],W=H[1];(0,r.useEffect)(function(){document.title=(0,s.__)("Quick Setup Wizard - Better Payment","better-payment")},[]);var E=function(){var e=l.map(function(e,t){return t===d?le(le({},e),{},{active:!1,completed:!0}):t===d+1?le(le({},e),{},{active:!0,completed:!1}):e});c(e),d<3&&u(d+1)},F=function(){var e,t=(e=ne().m(function e(){var t,r,s,i;return ne().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,W(!0),t=Object.keys(C).map(function(e){return{name:e,value:C[e]}}),e.n=1,fetch(n.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_setup_wizard_data",nonce:n.admin_nonce,form_data:JSON.stringify(t)})});case 1:return r=e.v,e.n=2,r.json();case 2:(s=e.v).success?(O(!0),W(!1),setTimeout(function(){var e;null!==(e=s.data)&&void 0!==e&&e.redirect_url&&(window.location.href=s.data.redirect_url)},2e3)):(W(!1),b({submit:s.data||"Failed to save settings"})),e.n=4;break;case 3:e.p=3,i=e.v,W(!1),b({submit:i.message||"An error occurred"});case 4:return e.a(2)}},e,null,[[0,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,s){var i=e.apply(t,n);function a(e){se(i,r,s,a,o,"next",e)}function o(e){se(i,r,s,a,o,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return(0,i.jsxs)("div",{className:"bp-wizard bp-wizard-reset",children:[(0,i.jsx)(g,{steps:l}),function(){switch(d){case 0:return(0,i.jsx)(k,{onNext:E,onTrackingOptIn:N});case 1:return(0,i.jsx)(M,{data:C,currencies:v,onDataChange:function(e){return y(e)},onNext:E,isPro:null==n?void 0:n.is_pro});case 2:return(0,i.jsx)(Y,{data:C,onDataChange:function(e){return y(e)},onNext:E});case 3:return(0,i.jsx)(J,{data:C,onDataChange:function(e){return y(e)},onNext:E,isPro:null==n?void 0:n.is_pro});default:return null}}(),d>0&&d<4&&(0,i.jsx)(f,{onBack:function(){if(1!==d||!L){var e=l.map(function(e,t){return t===d?le(le({},e),{},{active:!1,completed:!1}):t===d-1?le(le({},e),{},{active:!0,completed:!1}):e});c(e),d>0&&u(d-1)}},onNext:E,onFinish:F,currentStep:d,isTrackingOptedIn:L,isPro:null==n?void 0:n.is_pro}),(null==m?void 0:m.submit)&&(0,i.jsx)("div",{className:"bp-wizard__error",children:(0,i.jsx)("p",{children:null==m?void 0:m.submit})}),B&&(0,i.jsx)(ee,{}),S&&(0,i.jsx)(X,{})]})};document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("better-payment-quick-setup-wizard-container");e&&(0,r.createRoot)(e).render((0,i.jsx)(pe,{}))})})(); |
|
11
|
+var r=n(1594),i=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,s={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:d,props:s,_owner:o.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},1594(e){e.exports=React},4848(e,t,n){e.exports=n(1020)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=r[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"})();const r=wp.element,i=wp.i18n;var s=n(4848);const a=function(){return(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M15 1.33989C16.5083 2.21075 17.7629 3.46042 18.6398 4.96519C19.5167 6.46997 19.9854 8.17766 19.9994 9.91923C20.0135 11.6608 19.5725 13.3758 18.72 14.8946C17.8676 16.4133 16.6332 17.6831 15.1392 18.5782C13.6452 19.4733 11.9434 19.9627 10.2021 19.998C8.46083 20.0332 6.74055 19.6131 5.21155 18.7791C3.68256 17.9452 2.39787 16.7264 1.48467 15.2434C0.571462 13.7604 0.0614093 12.0646 0.00500011 10.3239L0 9.99989L0.00500011 9.67589C0.0610032 7.94888 0.563548 6.26585 1.46364 4.79089C2.36373 3.31592 3.63065 2.09934 5.14089 1.25977C6.65113 0.420205 8.35315 -0.0137108 10.081 0.000330246C11.8089 0.0143713 13.5036 0.47589 15 1.33989ZM13.707 7.29289C13.5348 7.12072 13.3057 7.01729 13.0627 7.002C12.8197 6.98672 12.5794 7.06064 12.387 7.20989L12.293 7.29289L9 10.5849L7.707 9.29289L7.613 9.20989C7.42058 9.06075 7.18037 8.98692 6.9374 9.00225C6.69444 9.01757 6.46541 9.12101 6.29326 9.29315C6.12112 9.4653 6.01768 9.69433 6.00235 9.9373C5.98702 10.1803 6.06086 10.4205 6.21 10.6129L6.293 10.7069L8.293 12.7069L8.387 12.7899C8.56237 12.926 8.77803 12.9998 9 12.9998C9.22197 12.9998 9.43763 12.926 9.613 12.7899L9.707 12.7069L13.707 8.70689L13.79 8.61289C13.9393 8.42049 14.0132 8.18024 13.9979 7.93721C13.9826 7.69419 13.8792 7.46509 13.707 7.29289Z",fill:"#6E58F7"})})};const o=function(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_16394)",children:[(0,s.jsx)("path",{d:"M4 13.0001C5.78309 13.212 7.44305 14.0177 8.71276 15.2874C9.98247 16.5571 10.7881 18.217 11 20.0001C11.8839 19.4905 12.6233 18.764 13.1482 17.8891C13.6732 17.0142 13.9663 16.0199 14 15.0001C15.6791 14.4094 17.1454 13.3341 18.2133 11.9101C19.2813 10.4862 19.9031 8.77746 20 7.00012C20 6.20447 20.0626 5.06273 19.5 4.50012C18.9374 3.93751 17.7956 4.00012 17 4.00012C15.2227 4.09703 13.514 4.71879 12.09 5.78677C10.666 6.85476 9.59069 8.32101 9 10.0001C7.98026 10.0338 6.98596 10.327 6.11106 10.8519C5.23617 11.3768 4.50959 12.1162 4 13.0001Z",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M7.00048 14C5.95971 14.5876 5.11814 15.4726 4.58364 16.5416C4.04914 17.6106 3.84608 18.8148 4.00048 20C5.18564 20.1544 6.38991 19.9513 7.4589 19.4168C8.5279 18.8823 9.41291 18.0408 10.0005 17",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M14 9C14 9.26522 14.1054 9.51957 14.2929 9.70711C14.4804 9.89464 14.7348 10 15 10C15.2652 10 15.5196 9.89464 15.7071 9.70711C15.8946 9.51957 16 9.26522 16 9C16 8.73478 15.8946 8.48043 15.7071 8.29289C15.5196 8.10536 15.2652 8 15 8C14.7348 8 14.4804 8.10536 14.2929 8.29289C14.1054 8.48043 14 8.73478 14 9Z",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_16394",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const l=function(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_16405)",children:[(0,s.jsx)("path",{d:"M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_16405",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const c=function(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_16405)",children:[(0,s.jsx)("path",{d:"M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_16405",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const d=function(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_16415)",children:[(0,s.jsx)("path",{d:"M17 8V5C17 4.73478 16.8946 4.48043 16.7071 4.29289C16.5196 4.10536 16.2652 4 16 4H6C5.46957 4 4.96086 4.21071 4.58579 4.58579C4.21071 4.96086 4 5.46957 4 6M4 6C4 6.53043 4.21071 7.03914 4.58579 7.41421C4.96086 7.78929 5.46957 8 6 8H18C18.2652 8 18.5196 8.10536 18.7071 8.29289C18.8946 8.48043 19 8.73478 19 9V12M4 6V18C4 18.5304 4.21071 19.0391 4.58579 19.4142C4.96086 19.7893 5.46957 20 6 20H18C18.2652 20 18.5196 19.8946 18.7071 19.7071C18.8946 19.5196 19 19.2652 19 19V16",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M20 12V16H16C15.4696 16 14.9609 15.7893 14.5858 15.4142C14.2107 15.0391 14 14.5304 14 14C14 13.4696 14.2107 12.9609 14.5858 12.5858C14.9609 12.2107 15.4696 12 16 12H20Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_16415",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const p=function(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_16415)",children:[(0,s.jsx)("path",{d:"M17 8V5C17 4.73478 16.8946 4.48043 16.7071 4.29289C16.5196 4.10536 16.2652 4 16 4H6C5.46957 4 4.96086 4.21071 4.58579 4.58579C4.21071 4.96086 4 5.46957 4 6M4 6C4 6.53043 4.21071 7.03914 4.58579 7.41421C4.96086 7.78929 5.46957 8 6 8H18C18.2652 8 18.5196 8.10536 18.7071 8.29289C18.8946 8.48043 19 8.73478 19 9V12M4 6V18C4 18.5304 4.21071 19.0391 4.58579 19.4142C4.96086 19.7893 5.46957 20 6 20H18C18.2652 20 18.5196 19.8946 18.7071 19.7071C18.8946 19.5196 19 19.2652 19 19V16",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M20 12V16H16C15.4696 16 14.9609 15.7893 14.5858 15.4142C14.2107 15.0391 14 14.5304 14 14C14 13.4696 14.2107 12.9609 14.5858 12.5858C14.9609 12.2107 15.4696 12 16 12H20Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_16415",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const u=function(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_6613_16425)",children:(0,s.jsx)("path",{d:"M12.4657 17.9953C12.1743 17.8417 11.8258 17.8416 11.5342 17.9949L7.62164 20.052C6.888 20.4377 6.03054 19.8147 6.17068 18.9978L6.91812 14.6406C6.97381 14.3159 6.86605 13.9847 6.63002 13.7549L3.46097 10.6702C2.8667 10.0917 3.1943 9.08289 4.01506 8.96394L8.38655 8.33039C8.71241 8.28317 8.99413 8.07856 9.13985 7.78329L11.0963 3.81897C11.4632 3.07571 12.523 3.07571 12.8898 3.81897L14.8463 7.78329C14.992 8.07856 15.2738 8.28317 15.5996 8.33039L19.9711 8.96394C20.7919 9.08289 21.1195 10.0917 20.5252 10.6702L17.3561 13.7549C17.1201 13.9847 17.0124 14.3159 17.068 14.6406L17.8151 18.9954C17.9553 19.8128 17.0969 20.4358 16.3633 20.0492L12.4657 17.9953Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_16425",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};const h=function(){return(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_6613_16425)",children:(0,s.jsx)("path",{d:"M12.4657 17.9953C12.1743 17.8417 11.8258 17.8416 11.5342 17.9949L7.62164 20.052C6.888 20.4377 6.03054 19.8147 6.17068 18.9978L6.91812 14.6406C6.97381 14.3159 6.86605 13.9847 6.63002 13.7549L3.46097 10.6702C2.8667 10.0917 3.1943 9.08289 4.01506 8.96394L8.38655 8.33039C8.71241 8.28317 8.99413 8.07856 9.13985 7.78329L11.0963 3.81897C11.4632 3.07571 12.523 3.07571 12.8898 3.81897L14.8463 7.78329C14.992 8.07856 15.2738 8.28317 15.5996 8.33039L19.9711 8.96394C20.7919 9.08289 21.1195 10.0917 20.5252 10.6702L17.3561 13.7549C17.1201 13.9847 17.0124 14.3159 17.068 14.6406L17.8151 18.9954C17.9553 19.8128 17.0969 20.4358 16.3633 20.0492L12.4657 17.9953Z",stroke:"#818DA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_16425",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})};function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==m(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g="upcoming",j="active",C="completed",y=[{id:"start",label:"Start",icon:(0,s.jsx)(o,{}),activeIcon:(0,s.jsx)(o,{}),completedIcon:(0,s.jsx)(a,{})},{id:"settings",label:"Settings",icon:(0,s.jsx)(c,{}),activeIcon:(0,s.jsx)(l,{}),completedIcon:(0,s.jsx)(a,{})},{id:"payment",label:"Payment",icon:(0,s.jsx)(d,{}),activeIcon:(0,s.jsx)(p,{}),completedIcon:(0,s.jsx)(a,{})},{id:"features",label:"Features",icon:(0,s.jsx)(u,{}),activeIcon:(0,s.jsx)(h,{}),completedIcon:(0,s.jsx)(a,{})}],v="paypal",x="stripe",k="paystack";const w=function(){return(0,s.jsx)("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M0.75 0.75L4.75 4.75L0.75 8.75",stroke:"#CBD1DA",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})};function L(e){var t=e.steps,n=void 0===t?[]:t;return(0,s.jsx)("div",{className:"bp-wizard__progress",children:null==n?void 0:n.map(function(e,t){var i,a,o=null!==(i=null==e?void 0:e.status)&&void 0!==i?i:g,l=function(e,t){var n,r,i,s,a;return t===C?null!==(r=null!==(i=null==e?void 0:e.completedIcon)&&void 0!==i?i:null==e?void 0:e.icon)&&void 0!==r?r:null:t===j?null!==(s=null!==(a=null==e?void 0:e.activeIcon)&&void 0!==a?a:null==e?void 0:e.icon)&&void 0!==s?s:null:null!==(n=null==e?void 0:e.icon)&&void 0!==n?n:null}(e,o),c=t===n.length-1;return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsxs)("div",{className:"bp-progress-step bp-progress-step--".concat(o),"aria-current":o===j?"step":void 0,children:[l&&(0,s.jsx)("div",{className:"bp-progress-step__icon",children:l}),(0,s.jsx)("span",{className:"bp-progress-step__label",children:null==e?void 0:e.label})]}),!c&&(0,s.jsx)("div",{className:"bp-progress-step__arrow".concat(o===C?" bp-progress-step__arrow--done":""),children:(0,s.jsx)(w,{})})]},null!==(a=null==e?void 0:e.id)&&void 0!==a?a:t)})})}const N=function(e){var t=e.onBack,n=e.onNext,r=e.onFinish,i=e.currentStep,a=e.isTrackingOptedIn,o=e.isPro;return(0,s.jsxs)("div",{className:"bp-wizard__navigation",children:[!(a&&1===i)&&(0,s.jsxs)("button",{className:"bp-btn bp-btn--secondary",onClick:t,type:"button",children:[(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M11.625 14.25L6.375 9L11.625 3.75",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"square"})}),"Back"]}),(0,s.jsxs)("button",{className:"bp-btn bp-btn--primary",onClick:function(){3===i?r():n()},type:"button",children:[3===i?"1"===o?"Finish":"Finish Without PRO":"Next",(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M6.375 3.75L11.625 9L6.375 14.25",stroke:"#F7F8FA",strokeWidth:"1.5",strokeLinecap:"square"})})]})]})},P=n.p+"quick-setup/images/hero.png";function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e,t)||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.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var M=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"proceed",r=arguments.length>1?arguments[1]:void 0,i=null!==(e=null!=r?r:null===(t=window)||void 0===t?void 0:t.betterPaymentObjWizard)&&void 0!==e?e:{},s=new FormData;return Object.entries(function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"proceed",i=arguments.length>1?arguments[1]:void 0,s=null!==(e=null!=i?i:null===(t=window)||void 0===t?void 0:t.betterPaymentObjWizard)&&void 0!==e?e:{};return{action:"bp_quick_setup_save_tracking",_wpnonce:null!==(n=null==s?void 0:s.admin_nonce)&&void 0!==n?n:"",is_tracking:"true",context:r}}(n,i)).forEach(function(e){var t=S(e,2),n=t[0],r=t[1];return s.append(n,r)}),fetch(null==i?void 0:i.ajaxUrl,{method:"POST",body:s}).then(function(e){return e.json()})};function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||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.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const B=function(e){var t=e.onNext,n=e.onTrackingOptIn,i=H((0,r.useState)(!1),2),a=i[0],o=i[1],l=function(){return o(!1)};return(0,s.jsxs)("div",{className:"bp-wizard__content bp-wizard__content--start",children:[(0,s.jsxs)("div",{className:"bp-wizard__hero",children:[(0,s.jsx)("img",{src:P,alt:"img"}),(0,s.jsx)("h1",{className:"bp-wizard__title",children:"Begin Smooth Payment Experience With Better Payment"}),(0,s.jsx)("p",{className:"bp-wizard__description",children:"Thank you for choosing Better Payment for managing your WordPress payments. Simply follow these easy setup wizard steps and elevate your payment handling workflow!"}),(0,s.jsxs)("div",{className:"bp-wizard__actions",children:[(0,s.jsxs)("button",{className:"bp-btn bp-btn--primary bp-btn--process",onClick:function(){M("proceed").then(function(e){e.success?(n(!0),t()):console.error("Failed to save tracking data:",e.data)}).catch(function(e){console.error("AJAX error:",e)})},children:["Proceed To Next Step",(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6480_19667)",children:[(0,s.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M10.832 15L15.832 10",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M10.832 5L15.832 10",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6480_19667",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})]}),(0,s.jsx)("span",{className:"bp-link",onClick:function(){M("skip").catch(function(e){console.error("AJAX error:",e)}),t()},children:"Skip It"})]}),(0,s.jsxs)("div",{className:"bp-wizard__notice",children:[(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6480_19545)",children:[(0,s.jsx)("path",{d:"M2 8C2 8.78793 2.15519 9.56815 2.45672 10.2961C2.75825 11.0241 3.20021 11.6855 3.75736 12.2426C4.31451 12.7998 4.97595 13.2417 5.7039 13.5433C6.43185 13.8448 7.21207 14 8 14C8.78793 14 9.56815 13.8448 10.2961 13.5433C11.0241 13.2417 11.6855 12.7998 12.2426 12.2426C12.7998 11.6855 13.2417 11.0241 13.5433 10.2961C13.8448 9.56815 14 8.78793 14 8C14 6.4087 13.3679 4.88258 12.2426 3.75736C11.1174 2.63214 9.5913 2 8 2C6.4087 2 4.88258 2.63214 3.75736 3.75736C2.63214 4.88258 2 6.4087 2 8Z",stroke:"#FEBD25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M8 6H8.00667",stroke:"#FEBD25",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M7.33594 8H8.0026V10.6667H8.66927",stroke:"#FEBD25",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6480_19545",children:(0,s.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),(0,s.jsxs)("span",{children:["By proceeding, you grant permission for this plugin to collect your information. ",(0,s.jsx)("span",{className:"bp-link",onClick:function(){return o(!0)},children:"Find out what we collect?"})]})]})]}),a&&(0,s.jsx)("div",{className:"bp-modal-overlay",onClick:l,children:(0,s.jsxs)("div",{className:"bp-modal-box",onClick:function(e){return e.stopPropagation()},children:[(0,s.jsxs)("div",{className:"bp-modal-header",children:[(0,s.jsx)("h4",{children:"What Do We Collect?"}),(0,s.jsx)("span",{className:"close-btn",onClick:l,children:(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6692_21867)",children:[(0,s.jsx)("path",{d:"M18 6L6 18",stroke:"#B9BFCA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M6 6L18 18",stroke:"#B9BFCA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6692_21867",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})})]}),(0,s.jsx)("div",{className:"bp-modal-body",children:(0,s.jsx)("p",{children:"We collect non-sensitive diagnostic data and plugin usage information. Your site URL, WordPress & PHP version, plugins & themes, and email address to send you the discount coupon. This data lets us make sure this plugin always stays compatible with the most popular plugins and themes. No spam, we promise."})})]})})]})};function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=W(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==W(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(e,t):void 0}}(e,t)||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.")}()}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T(e){var t=e.data,n=e.currencies,i=e.onDataChange,a=(e.onNext,e.isPro),o=D((0,r.useState)(!1),2),l=o[0],c=o[1],d=(0,r.useRef)(null);(0,r.useEffect)(function(){var e=function(e){d.current&&!d.current.contains(e.target)&&c(!1)};if(l)return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[l]);return(0,s.jsx)("div",{className:"bp-wizard__content bp-wizard__content--settings",children:(0,s.jsx)("div",{className:"bp-settings",children:(0,s.jsxs)("div",{className:"bp-settings__grid",children:[(0,s.jsxs)("div",{className:"bp-setting-card",children:[(0,s.jsxs)("div",{className:"bp-setting-card__details",children:[(0,s.jsx)("h3",{className:"bp-setting-card__title",children:"PayPal"}),(0,s.jsxs)("p",{className:"bp-setting-card__description",children:["Enable PayPal if you want to offer payment options through PayPal.",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-paypal-account-with-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_paypal",value:null==t?void 0:t.better_payment_settings_general_general_paypal,checked:"yes"===t.better_payment_settings_general_general_paypal,onChange:function(e){return i(A(A({},t),{},{better_payment_settings_general_general_paypal:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,s.jsxs)("div",{className:"bp-setting-card",children:[(0,s.jsxs)("div",{className:"bp-setting-card__details",children:[(0,s.jsx)("h3",{className:"bp-setting-card__title",children:"Stripe"}),(0,s.jsxs)("p",{className:"bp-setting-card__description",children:["Enable Stripe if you want to offer payment options through Stripe.",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_stripe",value:null==t?void 0:t.better_payment_settings_general_general_stripe,checked:"yes"===t.better_payment_settings_general_general_stripe,onChange:function(e){return i(A(A({},t),{},{better_payment_settings_general_general_stripe:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,s.jsxs)("div",{className:"bp-setting-card",children:[(0,s.jsxs)("div",{className:"bp-setting-card__details",children:[(0,s.jsx)("h3",{className:"bp-setting-card__title",children:"Paystack"}),(0,s.jsxs)("p",{className:"bp-setting-card__description",children:["Enable Paystack if you want to offer payment options through Paystack.",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_paystack",value:null==t?void 0:t.better_payment_settings_general_general_paystack,checked:"yes"===t.better_payment_settings_general_general_paystack,onChange:function(e){return i(A(A({},t),{},{better_payment_settings_general_general_paystack:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,s.jsxs)("div",{className:"bp-setting-card",children:[(0,s.jsxs)("div",{className:"bp-setting-card__details",children:[(0,s.jsxs)("div",{className:"bp-setting-card__title-wrap",children:[(0,s.jsx)("h3",{className:"bp-setting-card__title",children:"Subscriber Dashboard"}),"1"!==a&&(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M1.41864 10.4887C1.11449 8.51172 0.810337 6.53477 0.506187 4.55777C0.438737 4.11952 0.937387 3.82062 1.29209 4.08667C2.23969 4.79737 3.18724 5.50802 4.13484 6.21872C4.44684 6.45272 4.89134 6.37657 5.10764 6.05207L7.47429 2.50207C7.72439 2.12692 8.27559 2.12692 8.52569 2.50207L10.8923 6.05207C11.1086 6.37657 11.5531 6.45267 11.8651 6.21872C12.8127 5.50802 13.7603 4.79737 14.7079 4.08667C15.0626 3.82062 15.5612 4.11952 15.4938 4.55777C15.1897 6.53477 14.8855 8.51172 14.5814 10.4887H1.41864Z",fill:"#FF8F1E"}),(0,s.jsx)("path",{d:"M13.8931 13.7797H2.10294C1.72394 13.7797 1.41669 13.4724 1.41669 13.0934V11.5859H14.5794V13.0934C14.5794 13.4724 14.2721 13.7797 13.8931 13.7797Z",fill:"#FF8F1E"})]})]}),(0,s.jsxs)("p",{className:"bp-setting-card__description",children:["Enable User Dashboard to provide personalized subscriber transaction previews.",(0,s.jsx)("a",{href:"//betterpayment.co/docs/user-dashboard-using-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),"1"===a?(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_user_dashboard",value:null==t?void 0:t.better_payment_settings_general_general_user_dashboard,checked:"yes"===t.better_payment_settings_general_general_user_dashboard,onChange:function(e){return i(A(A({},t),{},{better_payment_settings_general_general_user_dashboard:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]}):(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_user_dashboard",disabled:!0}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,s.jsxs)("div",{className:"bp-setting-card",children:[(0,s.jsxs)("div",{className:"bp-setting-card__header",children:[(0,s.jsx)("h3",{className:"bp-setting-card__title",children:"Fundraising Campaign"}),(0,s.jsxs)("p",{className:"bp-setting-card__description",children:["Enable Fundraising Campaign to run donations, crowdfunding or any kind of campaign.",(0,s.jsx)("a",{href:"//betterpayment.co/docs/configure-fundraising-campaign-in-better-payment/",target:"_blank",className:"bp-link",children:"See documentation."})]})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_fundraising_campaign",value:null==t?void 0:t.better_payment_settings_general_general_fundraising_campaign,checked:"yes"===t.better_payment_settings_general_general_fundraising_campaign,onChange:function(e){return i(A(A({},t),{},{better_payment_settings_general_general_fundraising_campaign:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,s.jsxs)("div",{className:"bp-setting-card",children:[(0,s.jsxs)("div",{className:"bp-setting-card__details",children:[(0,s.jsx)("h3",{className:"bp-setting-card__title",children:"Email Notifications"}),(0,s.jsx)("p",{className:"bp-setting-card__description",children:"Turn on email notifications to get real-time updates on status of each payment transaction for both owner & customer."})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",name:"better_payment_settings_general_general_email",value:null==t?void 0:t.better_payment_settings_general_general_email,checked:"yes"===t.better_payment_settings_general_general_email,onChange:function(e){return i(A(A({},t),{},{better_payment_settings_general_general_email:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,s.jsxs)("div",{className:"bp-setting-card bp-setting-card--full",children:[(0,s.jsxs)("div",{className:"bp-setting-card__info",children:[(0,s.jsx)("h3",{className:"bp-setting-card__title",children:"Currency"}),(0,s.jsx)("p",{className:"bp-setting-card__description",children:"Select the default currency for each transaction. You can also overwrite this setting from each form control."})]}),(0,s.jsxs)("div",{ref:d,className:"bp-currency-dropdown",onClick:function(){return c(!l)},children:[(0,s.jsxs)("button",{className:"bp-currency-dropdown__trigger",type:"button",children:[(0,s.jsx)("span",{className:"bp-currency-dropdown__value",children:(null==t?void 0:t.better_payment_settings_general_general_currency)||"USD"}),(0,s.jsx)("span",{className:"bp-currency-dropdown__icon",children:(0,s.jsx)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:l?"bp-currency-dropdown-icon-open":"",children:(0,s.jsx)("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:"#6B7280",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),l&&(0,s.jsx)("ul",{className:"bp-currency-dropdown__list",children:Object.keys(n).map(function(e){return(0,s.jsx)("li",{className:"bp-currency-dropdown__item ".concat(((null==t?void 0:t.better_payment_settings_general_general_currency)||"USD")===e?"bp-currency-dropdown__item--active":""),onClick:function(){return function(e){i(A(A({},t),{},{better_payment_settings_general_general_currency:e})),c(!1)}(e)},role:"option","aria-selected":((null==t?void 0:t.better_payment_settings_general_general_currency)||"USD")===e,children:e},e)})})]})]})]})})})}const I=wp.hooks;function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const G=function(e){var t,n=e.data,r=e.onDataChange,i="no"===(null==(t=n)?void 0:t.better_payment_settings_payment_paypal_live_mode)?"test":"live",a=(0,I.applyFilters)("better_payment_quick_setup_paypal_refund_credentials",null,{mode:i,data:n,onDataChange:r});return(0,s.jsxs)("div",{className:"bp-payment__content",children:[(0,s.jsxs)("div",{className:"bp-payment__field live__mode",children:[(0,s.jsxs)("div",{className:"bp-payment__field-details",children:[(0,s.jsx)("h3",{className:"bp-payment__field-title",children:"Live Mode"}),(0,s.jsx)("p",{className:"bp-payment__field-description",children:"Live mode allows you to process real transactions. You will need a PayPal business email to accept real payments."})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",checked:"yes"===(null==n?void 0:n.better_payment_settings_payment_paypal_live_mode),onChange:function(e){return r(U(U({},n),{},{better_payment_settings_payment_paypal_live_mode:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),(0,s.jsxs)("div",{className:"bp-payment__field email__field",children:[(0,s.jsxs)("div",{className:"bp-payment__field-details",children:[(0,s.jsx)("label",{className:"bp-label",children:"Business Email"}),(0,s.jsx)("p",{className:"bp-payment__field-description",children:"Your PayPal account email address to accept payments via PayPal."})]}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M13.3274 5.88867C13.3274 5.88867 10.6523 9.0992 8.69579 9.0992C6.74007 9.0992 4.03497 5.88867 4.03497 5.88867",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 8.34733C0.75 2.64891 2.73413 0.75 8.68651 0.75C14.6389 0.75 16.623 2.64891 16.623 8.34733C16.623 14.0449 14.6389 15.9447 8.68651 15.9447C2.73413 15.9447 0.75 14.0449 0.75 8.34733Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"email",className:"bp-input",placeholder:"Email Address",value:null==n?void 0:n.better_payment_settings_payment_paypal_email,onChange:function(e){return r(U(U({},n),{},{better_payment_settings_payment_paypal_email:e.target.value}))}})]})]}),a]})};function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const X=function(e){var t=e.data,n=e.onDataChange;return(0,s.jsxs)("div",{className:"bp-payment__content",children:[(0,s.jsxs)("div",{className:"bp-payment__field live__mode",children:[(0,s.jsxs)("div",{className:"bp-payment__field-details",children:[(0,s.jsx)("h3",{className:"bp-payment__field-title",children:"Live Mode"}),(0,s.jsx)("p",{className:"bp-payment__field-description",children:"Live mode allows you to process real transactions. You will need Stripe credentials to accept real payments."})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",checked:"yes"===(null==t?void 0:t.better_payment_settings_payment_stripe_live_mode),onChange:function(e){return n(Y(Y({},t),{},{better_payment_settings_payment_stripe_live_mode:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),"no"===(null==t?void 0:t.better_payment_settings_payment_stripe_live_mode)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Test Public Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_test_public,onChange:function(e){return n(Y(Y({},t),{},{better_payment_settings_payment_stripe_test_public:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["A Stripe test Public Key is required to make payments via Stripe. For more help, visit ",(0,s.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Test Secret Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_test_secret,onChange:function(e){return n(Y(Y({},t),{},{better_payment_settings_payment_stripe_test_secret:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["Stripe test Secret Key is required to make payments via Stripe. For more help, visit ",(0,s.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Live Public Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_live_public,onChange:function(e){return n(Y(Y({},t),{},{better_payment_settings_payment_stripe_live_public:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["A Stripe live Public Key is required to make payments via Stripe. For more help, visit ",(0,s.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Live Secret Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_stripe_live_secret,onChange:function(e){return n(Y(Y({},t),{},{better_payment_settings_payment_stripe_live_secret:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["Stripe live Secret Key is required to make payments via Stripe. For more help, visit ",(0,s.jsx)("a",{href:"https://docs.stripe.com/keys",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-stripe-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]})]})};function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach(function(t){ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const re=function(e){var t=e.data,n=e.onDataChange;return(0,s.jsxs)("div",{className:"bp-payment__content",children:[(0,s.jsxs)("div",{className:"bp-payment__field live__mode",children:[(0,s.jsxs)("div",{className:"bp-payment__field-details",children:[(0,s.jsx)("h3",{className:"bp-payment__field-title",children:"Live Mode"}),(0,s.jsx)("p",{className:"bp-payment__field-description",children:"Live mode allows you to process real transactions. You will need Paystack credentials to accept real payments."})]}),(0,s.jsxs)("label",{className:"bp-toggle",children:[(0,s.jsx)("input",{type:"checkbox",checked:"yes"===(null==t?void 0:t.better_payment_settings_payment_paystack_live_mode),onChange:function(e){return n(te(te({},t),{},{better_payment_settings_payment_paystack_live_mode:e.target.checked?"yes":"no"}))}}),(0,s.jsx)("span",{className:"bp-toggle__slider"})]})]}),"no"===(null==t?void 0:t.better_payment_settings_payment_paystack_live_mode)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Test Public Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_test_public,onChange:function(e){return n(te(te({},t),{},{better_payment_settings_payment_paystack_test_public:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["This test Public Key is required to make payments via Paystack. For more help, visit ",(0,s.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Test Secret Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_test_secret,onChange:function(e){return n(te(te({},t),{},{better_payment_settings_payment_paystack_test_secret:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["This test Secret Key is required to make payments via Paystack. For more help, visit ",(0,s.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Live Public Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M16.1309 9.8816H12.892C11.7126 9.8816 10.7563 8.92525 10.7563 7.74509C10.7563 6.56572 11.7126 5.60938 12.892 5.60938H16.1055",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.2566 7.69761H13.009",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M4.82675 4.43979H8.21008",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.75 7.86587C0.75 2.52857 2.6873 0.75 8.50079 0.75C14.3135 0.75 16.2508 2.52857 16.2508 7.86587C16.2508 13.2024 14.3135 14.9817 8.50079 14.9817C2.6873 14.9817 0.75 13.2024 0.75 7.86587Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"text",className:"bp-input",placeholder:"Public Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_live_public,onChange:function(e){return n(te(te({},t),{},{better_payment_settings_payment_paystack_live_public:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["This live Public Key is required to make payments via Paystack. For more help, visit ",(0,s.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]}),(0,s.jsxs)("div",{className:"bp-payment__field",children:[(0,s.jsx)("label",{className:"bp-label",children:"Live Secret Key"}),(0,s.jsxs)("div",{className:"bp-input-wrapper",children:[(0,s.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.83336 6.58594C8.9841 6.58594 9.9167 7.51854 9.9167 8.66927C9.9167 9.82 8.9841 10.7526 7.83336 10.7526C6.68263 10.7526 5.75003 9.82 5.75003 8.66927C5.75003 7.51854 6.68263 6.58594 7.83336 6.58594Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.64 4.70854V4.70854C14.0704 3.71499 12.8094 3.37503 11.8238 3.94877C10.9665 4.44678 9.89509 3.82365 9.89509 2.82681C9.89509 1.68016 8.9716 0.75 7.83317 0.75V0.75C6.69474 0.75 5.77125 1.68016 5.77125 2.82681C5.77125 3.82365 4.69984 4.44678 3.84336 3.94877C2.85694 3.37503 1.59593 3.71499 1.0263 4.70854C0.457498 5.70208 0.795022 6.97221 1.78144 7.54512C2.63792 8.04395 2.63792 9.28938 1.78144 9.78821C0.795022 10.3619 0.457498 11.6321 1.0263 12.6248C1.59593 13.6183 2.85694 13.9583 3.84254 13.3854H3.84336C4.69984 12.8866 5.77125 13.5097 5.77125 14.5065V14.5065C5.77125 15.6532 6.69474 16.5833 7.83317 16.5833V16.5833C8.9716 16.5833 9.89509 15.6532 9.89509 14.5065V14.5065C9.89509 13.5097 10.9665 12.8866 11.8238 13.3854C12.8094 13.9583 14.0704 13.6183 14.64 12.6248C15.2097 11.6321 14.8713 10.3619 13.8857 9.78821H13.8849C13.0284 9.28938 13.0284 8.04395 13.8857 7.54512C14.8713 6.97221 15.2097 5.70208 14.64 4.70854Z",stroke:"#899AB2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("input",{type:"password",className:"bp-input",placeholder:"Secret Key",value:null==t?void 0:t.better_payment_settings_payment_paystack_live_secret,onChange:function(e){return n(te(te({},t),{},{better_payment_settings_payment_paystack_live_secret:e.target.value}))}})]}),(0,s.jsxs)("p",{className:"bp-payment__field-info",children:["This live Secret Key is required to make payments via Paystack. For more help, visit ",(0,s.jsx)("a",{href:"https://support.paystack.com/en/articles/2123458",className:"bp-link",target:"_blank",children:"Developer Guide"})," or ",(0,s.jsx)("a",{href:"//betterpayment.co/docs/set-up-paystack-account-with-better-payment/",className:"bp-link",target:"_blank",children:"See Documentation."})]})]})]})]})};function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return se(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(e,t):void 0}}(e,t)||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.")}()}function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ae=function(e){var t=e.data,n=e.onDataChange,i=ie((0,r.useState)(v),2),a=i[0],o=i[1],l=function(e){o(e)};return(0,s.jsx)("div",{className:"bp-wizard__content bp-wizard__content--payment",children:(0,s.jsxs)("div",{className:"bp-payment",children:[(0,s.jsxs)("div",{className:"bp-payment__sidebar",children:[(0,s.jsxs)("button",{className:"bp-payment-tab ".concat(a===v?"bp-payment-tab--active":""),onClick:function(){return l(v)},children:[(0,s.jsx)("svg",{width:"15",height:"17",viewBox:"0 0 15 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M7.91667 0C10.5108 0 12.3408 1.4875 12.8025 3.80417C14.24 4.79167 15 6.43083 15 8.33333C15 10.7775 12.71 12.82 10.1808 12.9133L10 12.9167H8.53833L8.15 15.25C8.0776 15.6076 7.88972 15.9316 7.61524 16.1721C7.34076 16.4125 6.9949 16.5561 6.63083 16.5808L6.5 16.5833H4.26667C4.07925 16.587 3.89341 16.5484 3.72291 16.4705C3.5524 16.3926 3.4016 16.2774 3.28167 16.1333C3.07257 15.8852 2.96853 15.5653 2.99167 15.2417L3.02667 15H1.66667C0.83 15 0.0716667 14.28 0.00500003 13.4525L0 13.3333L0.00833333 13.2158L1.66917 1.5875L1.67167 1.5475C1.73167 0.8025 2.35083 0.145833 3.08417 0.0208334L3.21417 0.00416676L3.33333 0H7.91667ZM12.76 6.125L12.74 6.1975C12.1517 8.2 10.18 9.89417 8.11083 9.995L7.91667 10H5.83083V10.0417L5.81 10.1942L4.81 14.3608C4.80542 14.3805 4.80014 14.3999 4.79417 14.4192L4.72083 14.9167H6.51583L7.01167 11.9467C7.04111 11.7691 7.12724 11.6059 7.25717 11.4813C7.3871 11.3568 7.55386 11.2777 7.7325 11.2558L7.83333 11.25H10C11.7275 11.25 13.3333 9.85833 13.3333 8.33333C13.3333 7.48167 13.1367 6.73 12.76 6.125Z",fill:"#0070E0"})}),"PayPal"]}),(0,s.jsxs)("button",{className:"bp-payment-tab ".concat(a===x?"bp-payment-tab--active":""),onClick:function(){return l(x)},children:[(0,s.jsx)("svg",{width:"13",height:"17",viewBox:"0 0 13 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M6.25 0C8.29167 0 10.0358 0.366667 11.19 0.913333C11.3485 0.988469 11.4793 1.11173 11.5637 1.26555C11.6481 1.41937 11.6818 1.59591 11.66 1.77L11.2433 5.10333C11.227 5.2348 11.1795 5.36046 11.1048 5.46991C11.0302 5.57935 10.9305 5.66942 10.8141 5.73264C10.6976 5.79586 10.5678 5.83041 10.4354 5.83343C10.3029 5.83645 10.1717 5.80785 10.0525 5.75C9.18 5.32583 7.87083 5.06417 6.57917 5.06417C6.46472 5.06472 6.3725 5.07194 6.3025 5.08583L6.32583 5.10583L6.38417 5.145C6.64583 5.3175 7.0775 5.50917 7.7775 5.76667C10.9642 6.8925 12.5 8.46667 12.5 11.25C12.5 13.025 11.8683 14.36 10.5875 15.3533C9.51 16.2058 7.73583 16.6667 5.83333 16.6667C3.83333 16.6667 1.9 16.13 0.428333 15.3117C0.283147 15.2309 0.165426 15.1085 0.0902903 14.9603C0.0151542 14.8121 -0.0139671 14.6449 0.00666658 14.48L0.423333 11.1467C0.440405 11.0101 0.491043 10.8799 0.570723 10.7676C0.650403 10.6554 0.756644 10.5646 0.879954 10.5035C1.00326 10.4423 1.1398 10.4126 1.27738 10.4171C1.41495 10.4216 1.54927 10.4601 1.66833 10.5292C2.745 11.1542 4.70167 11.6667 5.83333 11.6667C6.15833 11.6667 6.42 11.5442 6.55833 11.4208L6.5875 11.3917L6.5125 11.3625C6.37333 11.3125 5.19333 10.9517 4.71833 10.7842C1.69667 9.6975 0 7.77667 0 5C0 3.4275 0.735 2.03083 1.975 1.01917C2.99167 0.196667 4.0725 0 6.25 0Z",fill:"#8F9AB0"})}),"Stripe"]}),(0,s.jsxs)("button",{className:"bp-payment-tab ".concat(a===k?"bp-payment-tab--active":""),onClick:function(){return l(k)},children:[(0,s.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M14.5462 0H0.851649C0.391759 0 0 0.393422 0 0.872369V2.42895C0 2.90789 0.391759 3.30132 0.851649 3.30132H14.5462C15.0231 3.30132 15.3978 2.90789 15.4149 2.42895V0.889473C15.4149 0.39342 15.0231 0 14.5462 0ZM14.5462 8.63816H0.851649C0.63022 8.63816 0.408792 8.72369 0.255495 8.89474C0.0851649 9.06579 0 9.27105 0 9.51052V11.0671C0 11.5461 0.391759 11.9395 0.851649 11.9395H14.5462C15.0231 11.9395 15.3978 11.5632 15.4149 11.0671V9.51052C15.3978 9.01447 15.0231 8.63816 14.5462 8.63816ZM8.56759 12.9487H0.851649C0.63022 12.9487 0.408792 13.0342 0.255495 13.2053C0.102198 13.3763 0 13.5816 0 13.8211V15.3776C0 15.8566 0.391759 16.25 0.851649 16.25H8.55056C9.02748 16.25 9.40221 15.8566 9.40221 15.3947V13.8382C9.41924 13.325 9.04451 12.9316 8.56759 12.9487ZM15.4149 4.31052H0.851649C0.63022 4.31052 0.408792 4.39605 0.255495 4.5671C0.102198 4.73816 0 4.94342 0 5.18289V6.73947C0 7.21842 0.391759 7.61184 0.851649 7.61184H15.3978C15.8747 7.61184 16.2495 7.21842 16.2495 6.73947V5.18289C16.2665 4.70395 15.8747 4.32763 15.4149 4.31052Z",fill:"#8F9AB0"})}),"Paystack"]})]}),function(){switch(a){case v:return(0,s.jsx)(G,{data:t,onDataChange:n});case x:return(0,s.jsx)(X,{data:t,onDataChange:n});case k:return(0,s.jsx)(re,{data:t,onDataChange:n});default:return null}}()]})})},oe=n.p+"quick-setup/images/features-page-bg.png";function le(e){e.data,e.onDataChange;var t=e.isPro;return(0,s.jsx)("div",{className:"bp-wizard__content bp-wizard__content--features",children:(0,s.jsx)("div",{className:"bp-features",children:(0,s.jsxs)("div",{className:"bp-features__section",children:[(0,s.jsxs)("div",{className:"bp-features__details",children:[(0,s.jsxs)("div",{className:"bp-features__content",children:[(0,s.jsx)("h2",{className:"bp-features__title",children:"Everything You Need to Get Paid Smarter At A Glance"}),(0,s.jsx)("p",{className:"bp-features__description",children:"From collecting 1-click payments to running subscription or fundraising campaigns, you can do it all with Better Payment. Moreover, you are getting transaction details, analytics, and so on."})]}),(0,s.jsxs)("div",{className:"bp-features__grid",children:[(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"12",viewBox:"0 0 20 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_6480_19809)",children:(0,s.jsx)("path",{d:"M16.8631 3.38705C16.5371 3.42455 16.2651 3.62411 16.1251 3.90201L16.1224 3.90737C15.9224 4.1846 15.7724 4.51272 15.6924 4.86696L15.6891 4.88505C15.6524 5.05714 15.6318 5.25402 15.6318 5.45625C15.6318 5.46629 15.6318 5.47567 15.6318 5.48571V5.48438C15.6358 5.75424 15.6891 6.01071 15.7844 6.24576L15.7791 6.2317C15.9018 6.55112 16.0658 6.72455 16.2618 6.7654C16.2831 6.76741 16.3084 6.76875 16.3338 6.76875C16.5684 6.76875 16.7791 6.66563 16.9231 6.5029L16.9238 6.50223C17.2458 6.18482 17.4684 5.76696 17.5431 5.29955L17.5444 5.2875C17.5798 5.10603 17.6011 4.89576 17.6024 4.68147V4.68013C17.5991 4.41027 17.5451 4.15379 17.4498 3.91875L17.4551 3.93281C17.3318 3.61339 17.1684 3.44062 16.9718 3.39978C16.9391 3.39308 16.9018 3.38839 16.8631 3.38772V3.38705ZM11.7378 3.38705C11.4118 3.42455 11.1398 3.62411 10.9998 3.90201L10.9971 3.90737C10.7971 4.1846 10.6471 4.51272 10.5671 4.86696L10.5638 4.88505C10.5271 5.05513 10.5058 5.25067 10.5058 5.45089C10.5058 5.46228 10.5058 5.47433 10.5058 5.48571V5.48371C10.5098 5.75357 10.5631 6.01005 10.6584 6.24509L10.6531 6.23103C10.7758 6.55045 10.9391 6.72388 11.1358 6.76473C11.1571 6.76674 11.1824 6.76808 11.2078 6.76808C11.4424 6.76808 11.6531 6.66496 11.7971 6.50223L11.7978 6.50156C12.1198 6.18415 12.3424 5.76629 12.4171 5.29888L12.4184 5.28683C12.4551 5.11607 12.4764 4.9192 12.4764 4.71763C12.4764 4.70424 12.4764 4.69085 12.4764 4.67746V4.67946C12.4731 4.4096 12.4198 4.15313 12.3251 3.91808L12.3298 3.93214C12.2064 3.61272 12.0431 3.43996 11.8464 3.39911C11.8138 3.39241 11.7764 3.38772 11.7378 3.38772V3.38705ZM16.8251 2.01027C16.9824 2.01161 17.1344 2.02969 17.2811 2.06317L17.2671 2.06049C17.8344 2.16897 18.3038 2.52121 18.5704 3.00201L18.5751 3.01138C18.8224 3.44799 18.9684 3.97098 18.9684 4.52746C18.9684 4.56295 18.9678 4.59844 18.9664 4.63393V4.62857C18.9664 4.64062 18.9664 4.65402 18.9664 4.66808C18.9664 5.5125 18.7291 6.30134 18.3184 6.97098L18.3291 6.95223C17.9724 7.67478 17.2498 8.16696 16.4111 8.18371H16.4091C16.2518 8.18237 16.0998 8.16429 15.9531 8.13147L15.9678 8.13415C15.3998 8.02567 14.9304 7.67277 14.6644 7.1913L14.6598 7.18192C14.4118 6.73929 14.2664 6.2096 14.2664 5.64643C14.2664 5.61496 14.2671 5.58281 14.2678 5.55134V5.55603C14.2678 5.5433 14.2678 5.52857 14.2678 5.51317C14.2678 4.6721 14.5051 3.88728 14.9158 3.22165L14.9051 3.2404C15.2658 2.52054 15.9864 2.03036 16.8231 2.00893H16.8258L16.8251 2.01027ZM11.7004 2.01027C11.8578 2.01161 12.0098 2.02969 12.1564 2.06317L12.1424 2.06049C12.7091 2.17098 13.1778 2.52254 13.4458 3.00201L13.4504 3.01138C13.6978 3.44799 13.8438 3.97031 13.8438 4.52746C13.8438 4.56295 13.8431 4.59844 13.8418 4.63393V4.62857C13.8418 4.64062 13.8418 4.65402 13.8418 4.66808C13.8418 5.5125 13.6044 6.30134 13.1931 6.97098L13.2038 6.95223C12.8471 7.67478 12.1244 8.16696 11.2858 8.18371H11.2838C11.1264 8.18237 10.9744 8.16429 10.8278 8.13147L10.8424 8.13415C10.2744 8.02567 9.80511 7.67277 9.53911 7.1913L9.53444 7.18192C9.28644 6.73929 9.14044 6.2096 9.14044 5.64643C9.14044 5.61496 9.14111 5.58281 9.14177 5.55134V5.55603C9.14177 5.5433 9.14177 5.52857 9.14177 5.51384C9.14177 4.67277 9.37911 3.88795 9.79044 3.22232L9.77977 3.24107C10.1404 2.52121 10.8611 2.03103 11.6978 2.0096H11.7004V2.01027ZM8.58911 1.12098C8.75977 1.12433 8.91511 1.18728 9.03577 1.28906L9.03444 1.28839C9.17844 1.39821 9.27377 1.56496 9.28777 1.75513V1.75714C9.28911 1.77455 9.28977 1.79397 9.28977 1.81406C9.28977 1.93728 9.25844 2.05312 9.20377 2.15357L9.20577 2.14955C8.81444 3.01406 8.53444 4.01652 8.41777 5.06853L8.41377 5.11339C8.26377 5.9183 8.17777 6.84442 8.17777 7.79063C8.17777 7.94933 8.18044 8.10804 8.18511 8.2654L8.18444 8.24197C8.18777 8.27277 8.18977 8.30893 8.18977 8.34509C8.18977 8.50513 8.15111 8.6558 8.08377 8.78839L8.08644 8.78304C8.00444 8.94844 7.84377 9.06362 7.65511 9.07835H7.65311C7.65044 9.07835 7.64711 9.07835 7.64377 9.07835C7.38777 9.07835 7.15911 8.96116 7.00844 8.77701L7.00711 8.77567C6.15777 7.81339 5.52911 6.63482 5.21177 5.33371L5.20044 5.27813C4.80133 6.0625 4.40889 6.85045 4.02311 7.64196C3.54177 8.57076 3.13244 9.04621 2.78911 9.07098C2.56844 9.08772 2.38111 8.89888 2.21644 8.50447C1.63711 6.7279 1.16444 4.6192 0.886441 2.45022L0.867775 2.2721C0.861775 2.23661 0.858441 2.19576 0.858441 2.15424C0.858441 1.99219 0.911108 1.84152 1.00044 1.72031L0.999108 1.72232C1.11977 1.5683 1.30511 1.4692 1.51377 1.46786C1.54844 1.46049 1.58777 1.45647 1.62777 1.45647C1.95777 1.45647 2.22511 1.725 2.22511 2.05647C2.22511 2.05714 2.22511 2.05781 2.22511 2.05848C2.47844 3.77478 2.75644 5.22857 3.05044 6.41853L4.84044 2.99598C4.94111 2.73482 5.17111 2.54531 5.44911 2.50379L5.45311 2.50313C5.81244 2.47835 6.03311 2.70804 6.12311 3.19286C6.31577 4.26228 6.58444 5.20513 6.93577 6.10647L6.89977 6.00134C6.98577 4.34933 7.37444 2.80848 8.01111 1.40625L7.97911 1.48527C8.07844 1.27835 8.28044 1.13571 8.51777 1.12433H8.51911C8.54222 1.1221 8.56555 1.12098 8.58911 1.12098ZM1.85777 0.0241071C0.833108 0.0247767 0.00244141 0.859152 0.00244141 1.88839C0.00244141 1.89107 0.00244141 1.89375 0.00244141 1.89643V8.13616C0.00244141 9.16942 0.836441 10.0085 1.86577 10.0085H9.57511L13.0984 11.9792L12.2971 10.0085H18.1338C18.1338 10.0085 18.1344 10.0085 18.1351 10.0085C19.1638 10.0085 19.9978 9.17076 19.9978 8.1375C19.9978 8.13683 19.9978 8.13683 19.9978 8.13616V1.89576C19.9978 1.89509 19.9978 1.89509 19.9978 1.89442C19.9978 0.861161 19.1638 0.0234375 18.1351 0.0234375C18.1344 0.0234375 18.1344 0.0234375 18.1338 0.0234375L1.85777 0.0241071Z",fill:"#6E58F7"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6480_19809",children:(0,s.jsx)("rect",{width:"20",height:"12",fill:"white"})})})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"Woo Integrations"})]}),(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_2418)",children:[(0,s.jsx)("path",{d:"M10 15.8346H5C4.33696 15.8346 3.70107 15.5712 3.23223 15.1024C2.76339 14.6336 2.5 13.9977 2.5 13.3346V6.66797C2.5 6.00493 2.76339 5.36904 3.23223 4.9002C3.70107 4.43136 4.33696 4.16797 5 4.16797H15C15.663 4.16797 16.2989 4.43136 16.7678 4.9002C17.2366 5.36904 17.5 6.00493 17.5 6.66797V10.418",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M2.5 8.33203H17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.3335 15.832H18.3335",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M15.8335 13.332L18.3335 15.832L15.8335 18.332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M5.83838 12.5H5.84255",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M9.1665 12.5H10.8332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_2418",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"Subscriber Dashboard"})]}),(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_17099)",children:[(0,s.jsx)("path",{d:"M2.5 15.8333V4.16667C2.5 3.72464 2.67559 3.30072 2.98816 2.98816C3.30072 2.67559 3.72464 2.5 4.16667 2.5H15.8333C16.2754 2.5 16.6993 2.67559 17.0118 2.98816C17.3244 3.30072 17.5 3.72464 17.5 4.16667V15.8333C17.5 16.2754 17.3244 16.6993 17.0118 17.0118C16.6993 17.3244 16.2754 17.5 15.8333 17.5H4.16667C3.72464 17.5 3.30072 17.3244 2.98816 17.0118C2.67559 16.6993 2.5 16.2754 2.5 15.8333Z",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M9.16797 10.832H10.8346",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M7.5 8.33203H12.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M8.33203 5.83203H11.6654",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_17099",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"Ready Payment Forms"})]}),(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_19814)",children:[(0,s.jsx)("path",{d:"M2.5 2.5V17.5H17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M16.6665 15V17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.3335 13.332V17.4987",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M10 10.832V17.4987",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M6.6665 13.332V17.4987",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M2.5 9.16667C7.5 9.16667 6.66667 5 10 5C13.3333 5 12.5 9.16667 17.5 9.16667",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_19814",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"Detailed Analytics"})]}),(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6480_19818)",children:[(0,s.jsx)("path",{d:"M11.4516 10.7419C11.4516 10.7491 11.4571 10.7455 11.4425 10.7298C11.4265 10.7126 11.3857 10.6824 11.3065 10.6472C11.1417 10.574 10.8737 10.5161 10.5565 10.5161H9.44355C8.87569 10.5161 8.29601 10.4166 7.83468 10.2117C7.37287 10.0064 7 9.67472 7 9.25806C7 8.84141 7.37287 8.50969 7.83468 8.30444C8.29601 8.09948 8.87569 8 9.44355 8H12.2258C12.6534 8 13 8.23108 13 8.51613C13 8.80118 12.6534 9.03226 12.2258 9.03226H9.44355C9.12632 9.03226 8.85832 9.09017 8.69355 9.16331C8.61431 9.19852 8.57355 9.22871 8.55746 9.24597C8.54285 9.26164 8.54839 9.26526 8.54839 9.25806C8.54839 9.25087 8.54285 9.25448 8.55746 9.27016C8.57355 9.28742 8.61431 9.3176 8.69355 9.35282C8.85832 9.42596 9.12632 9.48387 9.44355 9.48387H10.5565C11.1243 9.48387 11.704 9.58336 12.1653 9.78831C12.6271 9.99356 13 10.3253 13 10.7419C13 11.1586 12.6271 11.4903 12.1653 11.6956C11.704 11.9005 11.1243 12 10.5565 12H7.77419C7.34662 12 7 11.7689 7 11.4839C7 11.1988 7.34662 10.9677 7.77419 10.9677H10.5565C10.8737 10.9677 11.1417 10.9098 11.3065 10.8367C11.3857 10.8015 11.4265 10.7713 11.4425 10.754C11.4571 10.7384 11.4516 10.7347 11.4516 10.7419Z",fill:"#6E58F7"}),(0,s.jsx)("path",{d:"M9 13.4074V12.5556C9 12.2283 9.44772 11.963 10 11.963C10.5523 11.963 11 12.2283 11 12.5556V13.4074C11 13.7347 10.5523 14 10 14C9.44772 14 9 13.7347 9 13.4074ZM9 7.44444V6.59259C9 6.26531 9.44772 6 10 6C10.5523 6 11 6.26531 11 6.59259V7.44444C11 7.77172 10.5523 8.03704 10 8.03704C9.44772 8.03704 9 7.77172 9 7.44444Z",fill:"#6E58F7"}),(0,s.jsxs)("g",{clipPath:"url(#clip1_6480_19818)",children:[(0,s.jsx)("path",{d:"M16.6654 8.16854C16.4616 6.70205 15.7813 5.34325 14.7292 4.30145C13.6772 3.25965 12.3118 2.59264 10.8434 2.40316C9.37502 2.21369 7.88505 2.51227 6.60303 3.25291C5.32101 3.99355 4.31807 5.13515 3.7487 6.50187M3.33203 3.16854V6.50187H6.66536",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M3.33203 11.832C3.53583 13.2985 4.21614 14.6573 5.26817 15.6991C6.32019 16.7409 7.68557 17.4079 9.15397 17.5974C10.6224 17.7869 12.1123 17.4883 13.3944 16.7477C14.6764 16.007 15.6793 14.8654 16.2487 13.4987M16.6654 16.832V13.4987H13.332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),(0,s.jsxs)("defs",{children:[(0,s.jsx)("clipPath",{id:"clip0_6480_19818",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})}),(0,s.jsx)("clipPath",{id:"clip1_6480_19818",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})]})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"Recurring Payment"})]}),(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_19415)",children:[(0,s.jsx)("path",{d:"M11.6665 2.5V5.83333C11.6665 6.05435 11.7543 6.26631 11.9106 6.42259C12.0669 6.57887 12.2788 6.66667 12.4998 6.66667H15.8332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M15.8334 10V15.8333C15.8729 16.1478 15.8105 16.4667 15.6555 16.7431C15.5005 17.0196 15.261 17.2392 14.9721 17.3696C14.6833 17.5001 14.3602 17.5346 14.0503 17.468C13.7404 17.4015 13.46 17.2375 13.2501 17C13.1215 16.8355 12.9571 16.7024 12.7694 16.6109C12.5817 16.5193 12.3756 16.4718 12.1668 16.4718C11.958 16.4718 11.7519 16.5193 11.5642 16.6109C11.3764 16.7024 11.2121 16.8355 11.0834 17C10.9548 17.1645 10.7905 17.2976 10.6027 17.3891C10.415 17.4807 10.2089 17.5282 10.0001 17.5282C9.79128 17.5282 9.5852 17.4807 9.39749 17.3891C9.20978 17.2976 9.04539 17.1645 8.91678 17C8.78818 16.8355 8.62378 16.7024 8.43608 16.6109C8.24837 16.5193 8.04228 16.4718 7.83345 16.4718C7.62462 16.4718 7.41853 16.5193 7.23082 16.6109C7.04311 16.7024 6.87872 16.8355 6.75012 17C6.54023 17.2375 6.25979 17.4015 5.9499 17.468C5.64 17.5346 5.31695 17.5001 5.02809 17.3696C4.73923 17.2392 4.49975 17.0196 4.34475 16.7431C4.18975 16.4667 4.12738 16.1478 4.16678 15.8333V4.16667C4.16678 3.72464 4.34238 3.30072 4.65494 2.98816C4.9675 2.67559 5.39142 2.5 5.83345 2.5H11.6668L15.8334 6.66667V10.2083",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_19415",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"Transaction Invoices"})]}),(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6613_19832)",children:[(0,s.jsx)("path",{d:"M10 15.8346H5C4.33696 15.8346 3.70107 15.5712 3.23223 15.1024C2.76339 14.6336 2.5 13.9977 2.5 13.3346V6.66797C2.5 6.00493 2.76339 5.36904 3.23223 4.9002C3.70107 4.43136 4.33696 4.16797 5 4.16797H15C15.663 4.16797 16.2989 4.43136 16.7678 4.9002C17.2366 5.36904 17.5 6.00493 17.5 6.66797V10.418",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M2.5 8.33203H17.5",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M13.3335 15.832H18.3335",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M15.8335 13.332L18.3335 15.832L15.8335 18.332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M5.83838 12.5H5.84255",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M9.1665 12.5H10.8332",stroke:"#6E58F7",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6613_19832",children:(0,s.jsx)("rect",{width:"20",height:"20",fill:"white"})})})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"Split Payment"})]}),(0,s.jsxs)("div",{className:"bp-features__item",children:[(0,s.jsx)("div",{className:"bp-features__item-icon",children:(0,s.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9.04803 15H1L2.26302 12.304C2.6338 11.5125 3.4787 11 4.41292 11H14L13.3479 12.3921C12.6063 13.9751 10.9165 15 9.04803 15Z",fill:"#00009F"}),(0,s.jsx)("path",{d:"M15.5253 9H4L4.66398 7.60794C5.419 6.02488 7.13937 5 9.04164 5H19L17.7142 7.69603C17.3366 8.48754 16.4765 9 15.5253 9Z",fill:"#00009F"})]})}),(0,s.jsx)("span",{className:"bp-features__item-label",children:"FluentCart Integration"})]})]}),(0,s.jsxs)("div",{className:"bp-features__all",children:["1"!==t&&(0,s.jsxs)("a",{href:"//betterpayment.co/#pricing-plan",target:"_blank",className:"bp-btn bp-btn--upgrade",children:[(0,s.jsxs)("svg",{width:"17",height:"13",viewBox:"0 0 17 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M1.03347 9.30151C0.691298 7.07739 0.349129 4.85332 0.00695999 2.6292C-0.0689213 2.13616 0.49206 1.7999 0.891097 2.09921C1.95715 2.89875 3.02314 3.69823 4.08919 4.49776C4.44019 4.76101 4.94025 4.67535 5.18359 4.31028L7.84607 0.316533C8.12743 -0.105511 8.74753 -0.105511 9.0289 0.316533L11.6914 4.31028C11.9347 4.67535 12.4348 4.76096 12.7858 4.49776C13.8518 3.69823 14.9178 2.89875 15.9839 2.09921C16.3829 1.7999 16.9439 2.13616 16.8681 2.6292C16.5259 4.85332 16.1837 7.07739 15.8416 9.30151H1.03347Z",fill:"white"}),(0,s.jsx)("path",{d:"M15.0673 13.0031H1.80328C1.37691 13.0031 1.03125 12.6575 1.03125 12.2311V10.5352H15.8393V12.2311C15.8393 12.6575 15.4936 13.0031 15.0673 13.0031Z",fill:"white"})]}),"Upgrade To PRO"]}),(0,s.jsxs)("a",{href:"//betterpayment.co/",target:"_blank",className:"bp-link bp-link--arrow",children:["Explore All Features",(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{clipPath:"url(#clip0_6480_19935)",children:[(0,s.jsx)("path",{d:"M3.33447 8H12.6678",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M8.66553 12L12.6655 8",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M8.66553 4L12.6655 8",stroke:"#6B59EE",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_6480_19935",children:(0,s.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})]})]})]}),(0,s.jsx)("img",{src:oe,alt:"img"})]})})})}const ce=n.p+"quick-setup/images/finish-page-bg.png";function de(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"bp-modal-overlay",children:(0,s.jsxs)("div",{className:"bp-finish-modal__content",children:[(0,s.jsx)("img",{src:ce,alt:"img"}),(0,s.jsxs)("div",{className:"bp-finish-content",children:[(0,s.jsx)("h1",{className:"bp-finish-modal__title",children:"Congratulations!"}),(0,s.jsx)("p",{className:"bp-finish-modal__description",children:"You are all set to collect and manage payments using the Better Payment plugin. Best wishes."})]})]})})})}n(1594);function pe(){return(0,s.jsx)("div",{className:"bp-preloader-overlay",children:(0,s.jsxs)("div",{className:"bp-preloader",children:[(0,s.jsx)("div",{className:"bp-spinner"}),(0,s.jsx)("p",{children:"Saving..."})]})})}function ue(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(n,r,i,s){var l=r&&r.prototype instanceof o?r:o,c=Object.create(l.prototype);return he(c,"_invoke",function(n,r,i){var s,o,l,c=0,d=i||[],p=!1,u={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return s=t,o=0,l=e,u.n=n,a}};function h(n,r){for(o=n,l=r,t=0;!p&&c&&!i&&t<d.length;t++){var i,s=d[t],h=u.p,m=s[2];n>3?(i=m===r)&&(l=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=e):s[0]<=h&&((i=n<2&&h<s[1])?(o=0,u.v=r,u.n=s[1]):h<m&&(i=n<3||s[0]>r||r>m)&&(s[4]=n,s[5]=r,u.n=m,o=0))}if(i||n>1)return a;throw p=!0,r}return function(i,d,m){if(c>1)throw TypeError("Generator is already running");for(p&&1===d&&h(d,m),o=d,l=m;(t=o<2?e:l)||!p;){s||(o?o<3?(o>1&&(u.n=-1),h(o,l)):u.n=l:u.v=l);try{if(c=2,s){if(o||(i="next"),t=s[i]){if(!(t=t.call(s,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,o<2&&(o=0)}else 1===o&&(t=s.return)&&t.call(s),o<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),o=1);s=e}else if((t=(p=u.n<0)?l:n.call(r,u))!==a)break}catch(t){s=e,o=1,l=t}finally{c=1}}return{value:t,done:p}}}(n,i,s),!0),c}var a={};function o(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(he(t={},r,function(){return this}),t),p=c.prototype=o.prototype=Object.create(d);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,he(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,he(p,"constructor",c),he(c,"constructor",l),l.displayName="GeneratorFunction",he(c,i,"GeneratorFunction"),he(p),he(p,i,"Generator"),he(p,r,function(){return this}),he(p,"toString",function(){return"[object Generator]"}),(ue=function(){return{w:s,m:u}})()}function he(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}he=function(e,t,n,r){function s(t,n){he(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},he(e,t,n,r)}function me(e,t,n,r,i,s,a){try{var o=e[s](a),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(r,i)}function _e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,a,o=[],l=!0,c=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return be(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,t):void 0}}(e,t)||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.")}()}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const fe=function(){var e,t,n=(null===(e=window)||void 0===e?void 0:e.betterPaymentObjWizard)||{},a=y.length,o="1"===(null==n?void 0:n.is_tracking),l=_e((0,r.useState)(o?1:0),2),c=l[0],d=l[1],p=(0,r.useMemo)(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,n=Math.min(Math.max(Number.isInteger(e)?e:0,0),t.length-1);return t.map(function(e,t){var r=g;return t<n?r=C:t===n&&(r=j),b(b({},e),{},{status:r})})}(c)},[c]),u=_e((0,r.useState)({}),2),h=u[0],m=u[1],_=_e((0,r.useState)((null===(t=window)||void 0===t||null===(t=t.betterPaymentObjWizard)||void 0===t?void 0:t.settings)||{}),2),f=_[0],v=_[1],x=_e((0,r.useState)((null==n?void 0:n.currencies)||{}),2),k=x[0],w=(x[1],_e((0,r.useState)(o),2)),P=w[0],S=w[1],O=_e((0,r.useState)(!1),2),M=O[0],H=O[1],E=_e((0,r.useState)(!1),2),W=E[0],F=E[1];(0,r.useEffect)(function(){document.title=(0,i.__)("Quick Setup Wizard - Better Payment","better-payment")},[]);var A=function(){c<a-1&&d(c+1)},V=function(){var e,t=(e=ue().m(function e(){var t,r,i,s;return ue().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,F(!0),t=Object.keys(f).map(function(e){return{name:e,value:f[e]}}),e.n=1,fetch(n.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"save_setup_wizard_data",nonce:n.admin_nonce,form_data:JSON.stringify(t)})});case 1:return r=e.v,e.n=2,r.json();case 2:(i=e.v).success?(H(!0),F(!1),setTimeout(function(){var e;null!==(e=i.data)&&void 0!==e&&e.redirect_url&&(window.location.href=i.data.redirect_url)},2e3)):(F(!1),m({submit:i.data||"Failed to save settings"})),e.n=4;break;case 3:e.p=3,s=e.v,F(!1),m({submit:s.message||"An error occurred"});case 4:return e.a(2)}},e,null,[[0,3]])}),function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function a(e){me(s,r,i,a,o,"next",e)}function o(e){me(s,r,i,a,o,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return(0,s.jsxs)("div",{className:"bp-wizard bp-wizard-reset",children:[(0,s.jsx)(L,{steps:p}),function(){switch(c){case 0:return(0,s.jsx)(B,{onNext:A,onTrackingOptIn:S});case 1:return(0,s.jsx)(T,{data:f,currencies:k,onDataChange:function(e){return v(e)},onNext:A,isPro:null==n?void 0:n.is_pro});case 2:return(0,s.jsx)(ae,{data:f,onDataChange:function(e){return v(e)},onNext:A});case 3:return(0,s.jsx)(le,{data:f,onDataChange:function(e){return v(e)},onNext:A,isPro:null==n?void 0:n.is_pro});default:return null}}(),c>0&&c<a&&(0,s.jsx)(N,{onBack:function(){1===c&&P||c>0&&d(c-1)},onNext:A,onFinish:V,currentStep:c,isTrackingOptedIn:P,isPro:null==n?void 0:n.is_pro}),(null==h?void 0:h.submit)&&(0,s.jsx)("div",{className:"bp-wizard__error",children:(0,s.jsx)("p",{children:null==h?void 0:h.submit})}),W&&(0,s.jsx)(pe,{}),M&&(0,s.jsx)(de,{})]})};document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("better-payment-quick-setup-wizard-container");e&&(0,r.createRoot)(e).render((0,s.jsx)(fe,{}))})})(); |