PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.21
Booktics – Appointment Booking Calendar for Service Businesses v1.0.21
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
booktics / assets / build / chunks / js / 6349.js

6349.js in Booktics – Appointment Booking Calendar for Service Businesses 1.0.21, at assets/build/chunks/js/6349.js

1 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "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")})))})}}]);