"use strict";(globalThis.webpackChunkbooktics=globalThis.webpackChunkbooktics||[]).push([[3788,6349],{13788:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(51609),s=n(47143),l=n(9953),i=n(40309),r=n(22564),a=n(27723);const c=e=>{const{keys:t=[],children:n,title:c}=e,{isStripeConfigModalOpen:u,editLoading:b,setFields:m}=(0,s.useSelect)(e=>e(i.settings).getSettingsState(),[]),{setSettingsState:d}=(0,s.useDispatch)(i.settings);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(r.ConfigureBtn,{text:(0,a.__)("Configure","booktics"),onClick:()=>d({isStripeConfigModalOpen:!0})}),(0,o.createElement)(r.Modal,{title:c,open:u,onCancel:()=>d({isStripeConfigModalOpen:!1}),footer:null,className:"bkt-config-modal",centered:!0},(0,o.createElement)(l.A,null,n,(0,o.createElement)(r.Flex,{justify:"flex-end",gap:"small"},(0,o.createElement)(r.SecondaryButton,{size:"middle",onClick:()=>{const e=Object.fromEntries(t.map(e=>[e,""]));m(e)},text:(0,a.__)("Clear","booktics"),className:"bkt-neutral-soft-light-btn"}),(0,o.createElement)(r.PrimaryButton,{size:"middle",htmlType:"submit",text:(0,a.__)("Save","booktics"),loading:b})))))}},66349:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});var o=n(51609),s=n(22564),l=n(13788),i=n(27723);const{wrapWithTheme:r,SettingsConfigureDescription:a}=window?.booktics?.components||{},{INTEGRATIONS_DOCUMENTATION:c}=window?.booktics?.globalConstant||{},u=r(()=>{const e=["stripe_publishable_key","stripe_secret_key"];return(0,o.createElement)(o.Fragment,null,window?.location.href.includes("/settings")?(0,o.createElement)(a,{className:"bkt-configure-description"},(0,i.__)("Configure your Stripe settings here. Please ","booktics"),(0,o.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:c?.stripeDoc||"#"},(0,i.__)(" read documentation","booktics")),(0,i.__)(" for further assistance.")):null,(0,o.createElement)(l.default,{title:(0,i.__)("Stripe","booktics"),keys:e},(0,o.createElement)(s.TextInput,{label:(0,i.__)("Publishable Key","booktics"),name:e[0],rules:[{required:!0,message:(0,i.__)("Please enter Publishable Key","booktics")}],placeholder:(0,i.__)("Enter Publishable Key","booktics")}),(0,o.createElement)(s.TextInput,{label:(0,i.__)("Secret Key","booktics"),name:e[1],rules:[{required:!0,message:(0,i.__)("Please enter Secret Key","booktics")}],placeholder:(0,i.__)("Enter Secret Key","booktics")})))})}}]);