"use strict";(globalThis.webpackChunkbooktics=globalThis.webpackChunkbooktics||[]).push([[3788],{13788:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var l=n(51609),i=n(47143),s=n(9953),o=n(40309),a=n(22564),c=n(27723);const r=e=>{const{keys:t=[],children:n,title:r}=e,{isStripeConfigModalOpen:d,editLoading:m,setFields:g}=(0,i.useSelect)(e=>e(o.settings).getSettingsState(),[]),{setSettingsState:u}=(0,i.useDispatch)(o.settings);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(a.ConfigureBtn,{text:(0,c.__)("Configure","booktics"),onClick:()=>u({isStripeConfigModalOpen:!0})}),(0,l.createElement)(a.Modal,{title:r,open:d,onCancel:()=>u({isStripeConfigModalOpen:!1}),footer:null,className:"bkt-config-modal",centered:!0},(0,l.createElement)(s.A,null,n,(0,l.createElement)(a.Flex,{justify:"flex-end",gap:"small"},(0,l.createElement)(a.SecondaryButton,{size:"middle",onClick:()=>{const e=Object.fromEntries(t.map(e=>[e,""]));g(e)},text:(0,c.__)("Clear","booktics"),className:"bkt-neutral-soft-light-btn"}),(0,l.createElement)(a.PrimaryButton,{size:"middle",htmlType:"submit",text:(0,c.__)("Save","booktics"),loading:m})))))}}}]);