| 1 |
"use strict";(globalThis.webpackChunkbooktics=globalThis.webpackChunkbooktics||[]).push([[7492,8470],{28470:(e,t,o)=>{o.r(t);var i=o(51609),n=o(77492);window.wp?.hooks.addFilter("booktics_select_stripe","booktics",(e,t)=>(0,i.createElement)(n.default,{...t}),10)},77492:(e,t,o)=>{o.r(t),o.d(t,{default:()=>p});var i=o(51609),n=o(47143),s=o(60532);const l=({color:e="#3161F1",width:t="20",height:o="20"})=>(0,i.createElement)("span",{className:"anticon"},(0,i.createElement)("svg",{width:t,height:o,fill:e,viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},(0,i.createElement)("path",{d:"M5.56044 5.95604C5.56044 5.0989 6.26374 4.76923 7.42857 4.76923C9.0989 4.76923 11.2088 5.27472 12.8791 6.17582V1.01099C11.0549 0.285714 9.25275 0 7.42857 0C2.96703 0 0 2.32967 0 6.21978C0 12.2857 8.35165 11.3187 8.35165 13.9341C8.35165 14.9451 7.47253 15.2747 6.24176 15.2747C4.41758 15.2747 2.08791 14.5275 0.241758 13.5165V18.7473C2.28571 19.6264 4.35165 20 6.24176 20C10.8132 20 13.956 17.7363 13.956 13.8022C13.9341 7.25275 5.56044 8.41758 5.56044 5.95604Z"})));var a=o(27723);const{wrapWithTheme:c,PrimaryOutlinedButton:r,SecondaryOutlineButton:d,Tooltip:h}=window?.booktics?.components||{},p=c(({handleSelect:e,form:t})=>{const{settings:o}=(0,n.useSelect)(e=>e(s.H).getFrontendState(),[]),c=o?.stripe_publishable_key,p="stripe"===t?.getFieldValue("payment_method")?r:d;return(0,i.createElement)(h,{...!c&&{title:(0,a.__)("Stripe is not connected! Please contact your administrator.","booktics")}},(0,i.createElement)(p,{icon:(0,i.createElement)(l,null),iconPosition:"end",size:"large",text:(0,a.__)("Stripe","booktics"),onClick:()=>e("stripe"),disabled:!c}))})}}]); |