"use strict";(globalThis.webpackChunkwp_event_solution=globalThis.webpackChunkwp_event_solution||[]).push([[658],{91(e,t,n){n(51609),n(27723),n(500),n(73296),n(10012);var l=n(40372);n(54725),n(75093),n(7638),n(16370),n(92911),n(60742),n(47152),n(36492);const{useBreakpoint:a}=l.Ay},487(e,t,n){n.d(t,{A:()=>h});var l=n(51609),a=n(73051),i=n(69815),r=n(16370),o=n(60742),c=n(51643),s=n(47152),m=n(99506);const d=i.default.div`
	border: 1px solid #e6e6f0;
	border-radius: 8px;
	padding: 8px 16px;
	margin-bottom: 16px;
	background-color: white;
`,_=i.default.h3`
	font-size: 14px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #334155;
	height: 20px;
`,u=(0,i.default)(c.Ay.Group)`
	width: 100%;
`,p=i.default.div`
	background-color: #ffffff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	height: 100%;
	cursor: pointer;
`,v=i.default.div`
	margin-left: 12px;
`,g=i.default.div`
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 4px;
`,E=i.default.div`
	font-size: 14px;
	color: #747474;
	font-weight: 400;
`,h=({form:e,title:t,tooltipText:n,options:i,name:h,pro:f=!1})=>{const b=!!window.localized_data_obj.evnetin_pro_active,A=f&&!b;return(0,l.createElement)(d,null,(0,l.createElement)(_,null,t,n&&(0,l.createElement)(a.A,{title:n})),A?(0,l.createElement)(m.A,null):(0,l.createElement)(o.A.Item,{name:h,initialValue:i?.[0]?.value},(0,l.createElement)(u,{direction:"horizontal"},(0,l.createElement)(s.A,{gutter:[16,16]},i?.map((t,n)=>(0,l.createElement)(r.A,{sm:24,md:12,key:n},(0,l.createElement)(p,{onClick:()=>e.setFieldsValue({[h]:t.value})},(0,l.createElement)(c.Ay,{value:t.value}),(0,l.createElement)(v,null,(0,l.createElement)(g,null,t.label),(0,l.createElement)(E,null,t.description)))))))))}},4936(e,t,n){n.d(t,{A:()=>m});var l=n(51609),a=n(62567),i=n(60742),r=n(43960),o=n(7638),c=n(61517),s=n(81810);function m(e){const{title:t,description:n,pro:m,form:d,keyName:_,tooltip:u,children:p,sx:v}=e,g=i.A.useWatch(_,{form:d,preserve:!0}),E=!!window.localized_data_obj.evnetin_pro_active,h=m&&!E,f=()=>{d.setFieldsValue({[_]:!g})},b=[{key:"1",label:(0,l.createElement)(c.A,{title:t,description:n,tooltip:u}),children:(0,l.createElement)(s.UH,null,p),showArrow:!1,extra:h?(0,l.createElement)(o.Oc,null):(0,l.createElement)(r.A,{onChange:f,checked:g})}];return(0,l.createElement)(a.A,{activeKey:h?[]:g?["1"]:[],items:b,onChange:f,style:v,collapsible:h?"disabled":"header"})}},14404(e,t,n){n.d(t,{A:()=>f});var l=n(51609),a=n(29491),i=n(47143),r=n(86087),o=n(27723),c=n(60742),s=n(75063),m=n(7638),d=n(4936),_=n(20086),u=n(48842),p=n(13313),v=n(68940),g=n(89348),E=n(93812);const h=(0,i.withSelect)(e=>{const t=e("eventin/global");return{webhooks:t.getWebhookList(),isWebhooksLoading:t.isResolving("getWebhookList")}}),f=(0,a.compose)(h)(function(e){const{webhooks:t,isWebhooksLoading:n}=e,{form:a}=(0,p.EF)();return(0,r.useEffect)(()=>{a.setFieldValue("webhook_list",t)},[t]),(0,l.createElement)(g.LK,null,(0,l.createElement)(_.A,{title:(0,o.__)("Webhook Settings","eventin")},(0,l.createElement)(s.A,{loading:n},(0,l.createElement)(g.zn,null,(0,l.createElement)(d.A,{title:(0,o.__)("Enable Webhooks?","eventin"),description:(0,l.createElement)("span",null,(0,o.__)("Webhooks are used to receive small amounts of data from events and automate workflows.","eventin")," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/event/webhook/?utm_source=doc&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,o.__)("Read Documentation","eventin"))),pro:!0,form:a,keyName:"enable_webhooks",sx:{margin:"10px 0"}},(0,l.createElement)(c.A.List,{name:"webhook_list",initialValue:[]},(e,{add:t,remove:n},{errors:i})=>(0,l.createElement)(l.Fragment,null,e?.length<1&&(0,l.createElement)(u.A,{sx:{display:"block",marginBottom:"8px"}},(0,o.__)("No webhook topic added yet!","eventin")),e.map(e=>(0,l.createElement)(E.A,{key:e.key,field:e,remove:n,form:a})),(0,l.createElement)(m.Ay,{variant:m.Rm,onClick:()=>t(),icon:(0,l.createElement)(v.A,{width:16,height:16}),size:"middle",sx:{width:"100%",fontSize:"14px",fontWeight:500,height:"36px"}},(0,o.__)("Add Webhook","eventin")))))))))})},17526(e,t,n){n.d(t,{A:()=>g});var l=n(51609),a=n(27723),i=n(38181),r=n(16370),o=n(62567),c=n(60742),s=n(47152),m=n(43960),d=n(7638),_=n(61517),u=n(10012),p=n(6836),v=n(13313);function g(){const{form:e}=(0,v.EF)(),t=c.A.useWatch("paypal_status",{form:e,preserve:!0}),n=!!window.localized_data_obj?.evnetin_pro_active;t&&e.setFieldsValue({sell_tickets:null,payment_method:"",surecart_status:!1});const g=[{key:"1",label:(0,l.createElement)(_.A,{title:(0,a.__)("Paypal","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Enable Paypal Payments.","eventin")," "," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/payment-type/paypal/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,a.__)("Read Documentation","eventin")))}),children:(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(s.A,{gutter:10},(0,l.createElement)(r.A,{md:12,sm:24,xs:24},(0,l.createElement)(c.A.Item,{label:(0,a.__)("PayPal Client Id","eventin"),name:"paypal_client_id"},(0,l.createElement)(u.h5,{size:"large",placeholder:(0,a.__)("Enter client id","eventin")}))),(0,l.createElement)(r.A,{md:12,sm:24,xs:24},(0,l.createElement)(c.A.Item,{label:(0,a.__)("PayPal Secret key","eventin"),name:"paypal_client_secret"},(0,l.createElement)(u.h5,{size:"large",placeholder:(0,a.__)("Enter secret key","eventin")})))),(0,l.createElement)(s.A,{gutter:10},(0,l.createElement)(r.A,{md:24,span:24},(0,l.createElement)(c.A.Item,{name:"paypal_sandbox",valuePropName:"checked"},(0,l.createElement)(i.A,null,(0,a.__)("Test payments with PayPal sandbox","timetics-pro")))))),showArrow:!1,extra:n?(0,l.createElement)(c.A.Item,{name:"paypal_status",valuePropName:"checked"},(0,l.createElement)(m.A,{onChange:t=>e.setFieldsValue({paypal_status:!!t})})):(0,l.createElement)(d.Oc,null)}];return(0,l.createElement)(o.A,{activeKey:t&&["1"],items:g,onChange:t=>{e.setFieldsValue({paypal_status:Boolean(t.length)}),(0,p.scrollToTop)()},style:{margin:"20px 0px"},collapsible:n?"header":"disabled"})}},18028(e,t,n){n.d(t,{A:()=>_});var l=n(51609),a=n(29491),i=n(47143),r=n(40372),o=n(75063),c=n(47767),s=n(61953);const{useBreakpoint:m}=r.Ay,d=(0,i.withSelect)(e=>{const t=e("eventin/global");return{userPermissions:t.getUserPermissions(),isUserPermissionListLoading:t.isResolving("getUserPermissions")}}),_=(0,a.compose)(d)(function(e){const{menus:t,userPermissions:n,isUserPermissionListLoading:a}=e,i=(0,c.useNavigate)(),r=(0,c.useLocation)().pathname.split("/").at(-1),d=(m().md,t.filter(e=>"manage-access"!==e.slug||n?.is_super_admin).map(e=>({label:e.label,key:e.slug,icon:e.icon,onClick:()=>i(e.slug)})));return a?(0,l.createElement)(o.A,{active:!0}):(0,l.createElement)("div",null,(0,l.createElement)(s.oe,null,d.map(e=>(0,l.createElement)(s.Dr,{key:e.key,onClick:e.onClick,active:r===e.key},e.icon&&React.cloneElement(e.icon),(0,l.createElement)("span",{className:"sidebar-menu-label"},e.label)))))})},19085(e,t,n){n.d(t,{A:()=>a});var l=n(6836);function a(e){const t={...e};t.attendee_registration=t.attendee_registration?"on":null,t.etn_zoom_api=t.etn_zoom_api?"on":null,t.etn_groundhogg_api=t.etn_groundhogg_api?"on":null,t.etn_googlemap_api=t.etn_googlemap_api?"on":null,t.etn_ai_api=t.etn_ai_api?"on":null,t.enable_purchase_email=t.enable_purchase_email?"on":"off",t.ticket_purchase_timer_enable="off"===t.ticket_purchase_timer_enable||"no"===t.ticket_purchase_timer_enable?t.ticket_purchase_timer_enable:t.ticket_purchase_timer_enable?"on":"off";const n="woocommerce"===t.payment_method?(0,l.getWCDefaultCurrencySettings)({etn_settings_country_currency:t.etn_settings_country_currency,currency_position:t.currency_position,decimal_separator:t.decimal_separator,decimals:t.decimals,currencySymbol:t.currency_symbol}):(0,l.getOtherDefaultCurrencySettings)({etn_settings_country_currency:t.etn_settings_country_currency,currency_position:t.currency_position,decimal_separator:t.decimal_separator,decimals:t.decimals,currencySymbol:t.currency_symbol});return{...t,...n}}},20086(e,t,n){n.d(t,{A:()=>c});var l=n(51609),a=n(67313),i=n(81810);const{Title:r,Text:o}=a.A;function c(e){const{title:t,description:n,children:a}=e;return(0,l.createElement)(i.LK,null,(0,l.createElement)("div",{style:{marginBottom:"20px"}},(0,l.createElement)(r,{level:3,style:{fontSize:"18px",fontWeight:600,marginTop:"0px",color:"#101828"}},t),n&&(0,l.createElement)(o,{style:{fontSize:"14px",color:"#6B7280",fontWeight:400,marginBottom:"20px"}},n)),a)}},22977(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(16370),i=n(60742),r=n(47152),o=n(36492),c=n(90070),s=n(32099),m=n(54725),d=n(7638),_=n(48842),u=n(81810);const p=e=>{const{title:t,description:n,form:p,keyName:v,sx:g,tooltipText:E,pro:h,options:f,multiple:b=!1,placeholder:A,rules:y=[]}=e,x=h&&!window.localized_data_obj.evnetin_pro_active;return(0,l.createElement)(u.VV,null,(0,l.createElement)(r.A,{gutter:[16,16],style:{alignItems:"center"}},(0,l.createElement)(a.A,{sm:24,md:16},(0,l.createElement)(c.A,{direction:"vertical",size:0},(0,l.createElement)(_.A,{sx:{color:"#334155",fontWeight:600,display:"flex",alignItems:"center"}},t,E&&(0,l.createElement)(s.A,{title:E},(0,l.createElement)("span",null,"   ",(0,l.createElement)(m.InfoCircleFilled,{width:15,height:15,fill:"#747474"})))),(0,l.createElement)(_.A,{sx:{fontSize:"14px",color:"#747474"}},n))),(0,l.createElement)(a.A,{sm:24,md:8,style:{width:"100%",minHeight:"40px"}},x?(0,l.createElement)(d.Oc,null):(0,l.createElement)(i.A.Item,{name:v,rules:y,style:{width:"100%"}},(0,l.createElement)(o.A,{options:f,mode:b?"multiple":"default",placeholder:A,style:{minHeight:"40px",width:"100%"}})))))}},25076(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(27723),i=n(16370),r=n(4936),o=n(20086),c=n(487),s=n(73810),m=n(13313),d=n(89348),_=n(27743),u=n(62929);function p(){const{form:e}=(0,m.EF)(),t=[{title:(0,a.__)("Require Last Name","eventin"),description:(0,a.__)("Make last name a required field for event registration and billing","eventin"),keyName:"require_last_name",requirePro:!1},{title:(0,a.__)("Enable Phone Field","eventin"),description:(0,a.__)("Add phone number field to the registration form for attendee contact","eventin"),keyName:"show_phone_number",requirePro:!1},{title:(0,a.__)("Require Phone Field","eventin"),description:(0,a.__)("Make phone number a required field for event registration and billing","eventin"),keyName:"require_phone_number",requirePro:!1},{title:(0,a.__)("Bulk Attendee Registration","eventin"),description:(0,a.__)("Enable automatic fill-up all attendee details by one click.","eventin"),keyName:"enable_attendee_bulk",requirePro:!1}];return(0,l.createElement)(d.LK,null,(0,l.createElement)(o.A,{title:(0,a.__)("Attendees Registration","eventin")},(0,l.createElement)(d.zn,null,(0,l.createElement)(r.A,{title:(0,a.__)("Enable Attendees Registration","eventin"),description:(0,a.__)("Allow attendance tracking and unique ticket management.","eventin"),pro:!1,form:e,keyName:"attendee_registration",sx:{margin:"10px 0"}},(0,l.createElement)("div",{className:"etn-settings-form"},t.map((t,n)=>(0,l.createElement)(i.A,{span:24,key:n},(0,l.createElement)(s.A,{title:t.title,description:t.description,pro:t.requirePro,form:e,keyName:t.keyName,sx:{margin:"10px 0"}}))),(0,l.createElement)(u.A,{title:(0,a.__)("Remove Attendees After Failed Payment","eventin"),description:(0,a.__)("Attendees with failed status will be removed from participant list. Given number will be calculated in days.","eventin"),type:"number",placeholder:(0,a.__)("Enter no. of days","eventin"),pro:!1,form:e,keyName:"attendee_remove",sx:{margin:"10px 0"},tooltipText:(0,a.__)("Given number will be calculated in days.","eventin"),initialValue:30}),(0,l.createElement)(c.A,{form:e,name:"attendee_verification_style",title:(0,a.__)("Attendee's Verification Process","eventin"),tooltipText:(0,a.__)("Select the preferred verification process for attendees.","eventin"),pro:!0,options:[{label:(0,a.__)("Single Step for Auto Check-in","eventin"),description:(0,a.__)("Include event automatically check-in","eventin"),value:"on"},{label:(0,a.__)("Two Step for Manual Check-in","eventin"),description:(0,a.__)("Include event manually check-in","eventin"),value:"off"}]}),(0,l.createElement)(c.A,{form:e,name:"certificate_preference",title:(0,a.__)("Certification Preference","eventin"),tooltipText:(0,a.__)("Send certificates to your preferred attendee groups.","eventin"),pro:!0,options:[{label:(0,a.__)('Send to "Checked-in Attendees"',"eventin"),description:(0,a.__)("Person who checked-in the event","eventin"),value:"on"},{label:(0,a.__)('Send to "All Attendees"',"eventin"),description:(0,a.__)("Sent everyone in the purchase list","eventin"),value:"off"}]}),(0,l.createElement)(_.A,null))))))}},25627(e,t,n){n.d(t,{A:()=>s});var l=n(51609),a=n(27723),i=n(60200),r=n(38412),o=n(89348),c=n(75093);function s(){return(0,l.createElement)(o.ff,{className:"eventin-page-wrapper"},(0,l.createElement)(r.A,{title:(0,a.__)("Settings","eventin")}),(0,l.createElement)(i.A,null),(0,l.createElement)(c.FloatingHelpButton,null))}},26536(e,t,n){n.d(t,{o:()=>c});var l=n(51609),a=(n(29491),n(47143),n(27723)),i=n(75093),r=n(69815),o=n(13313);function c(){const{settings:e}=(0,o.EF)();if("on"!==e?.modules?.automation)return null;const t=r.default.div`
		max-width: 780px;
		border-radius: 12px;
		margin-bottom: 25px;
	`;return(0,l.createElement)(t,null,(0,l.createElement)(i.AlertNotice,{title:(0,a.__)("Automation Modules are Currently Enabled","eventin"),description:(0,a.__)("You can manage emails using the Automation modules. Go to the Automation tab to get started.","eventin"),buttonText:(0,a.__)("Go to Automation","eventin"),redirectUrl:`${window.localized_data_obj.site_url}/wp-admin/admin.php?page=eventin#/automation`}))}},27743(e,t,n){n.d(t,{A:()=>c});var l=n(51609),a=n(27723),i=n(41276),r=n(13313),o=n(89348);function c(){window.localized_data_obj.evnetin_pro_active;const e=(0,r.EF)(),t=(0,r.w6)();return(0,l.createElement)(o.mc,null,(0,l.createElement)(o.hE,null,(0,a.__)("Additional Information Fields","eventin")),(0,l.createElement)("div",{style:{margin:"20px 0px"}},(0,l.createElement)(i.A,{formContextDispatcher:t,formContext:e,isGlobal:!0})))}},28256(e,t,n){n.d(t,{A:()=>u});var l=n(51609),a=n(27723),i=n(16370),r=n(60742),o=n(79888),c=n(47152),s=n(7638),m=n(34932),d=n(20086),_=n(89348);function u(){const e=window.localized_data_obj?.admin_url+"/options-general.php#timezone_string",t=`${window.localized_data_obj?.date_format} ( ${window.localized_data_obj?.date_format_string})`,n=`${window.localized_data_obj?.time_format} ( ${window.localized_data_obj?.time_format_string})`;return(0,l.createElement)(_.LK,null,(0,l.createElement)(d.A,{title:(0,a.__)("General Settings","eventin")},(0,l.createElement)(_.zn,null,(0,l.createElement)(_.mc,null,(0,l.createElement)(c.A,{gutter:16},(0,l.createElement)(i.A,{span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Date Format","eventin")},(0,l.createElement)(o.A,{id:"eventin-date-format",defaultValue:t,disabled:!0,readOnly:!0,suffix:(0,l.createElement)(s.Ay,{variant:s.Vt,size:"default",sx:{height:"36px",padding:"5px 15px"},onClick:()=>window.open(e,"_blank")},(0,a.__)("Change","eventin"))}))),(0,l.createElement)(i.A,{span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Time Format","eventin")},(0,l.createElement)(o.A,{id:"eventin-time-format",defaultValue:n,disabled:!0,readOnly:!0,suffix:(0,l.createElement)(s.Ay,{variant:s.Vt,size:"default",sx:{height:"36px",padding:"5px 15px"},onClick:()=>window.open(e,"_blank")},(0,a.__)("Change","eventin"))}))))),(0,l.createElement)(_.mc,{style:{marginTop:"20px",marginBottom:"0"}},(0,l.createElement)(c.A,{gutter:16},(0,l.createElement)(i.A,{md:12,span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Primary Color","eventin"),getValueFromEvent:e=>"#"+e.toHex(),name:"etn_primary_color"},(0,l.createElement)(m.A,{sx:{width:"100%",justifyContent:"flex-start"}}))),(0,l.createElement)(i.A,{md:12,span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Secondary Color","eventin"),getValueFromEvent:e=>"#"+e.toHex(),name:"etn_secondary_color"},(0,l.createElement)(m.A,{sx:{width:"100%",justifyContent:"flex-start"}}))))))))}},28984(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(27723),i=n(16370),r=n(62567),o=n(60742),c=n(47152),s=n(43960),m=n(61517),d=n(73810),_=(n(10012),n(13313)),u=n(22977);function p(){const{form:e}=(0,_.EF)(),t=o.A.useWatch("sell_tickets",{form:e,preserve:!0}),n=e.getFieldValue("wc_order_status_list",!0),p=n?Object.entries(n).map(([e,t])=>({label:t,value:e})):[],v="woocommerce"===t;v&&e.setFieldsValue({etn_sells_engine_stripe:null,paypal_status:!1,surecart_status:!1});const g=[{title:(0,a.__)("Count Refunded / Failed Booking In Purchase Report","eventin"),description:(0,a.__)("Include cost for refunded / failed tickets in purchase history.","eventin"),keyName:"etn_count_refund_price",requirePro:!0},{title:(0,a.__)("Show Print and Download Invoice Button","eventin"),description:(0,a.__)("Show print and download invoice option after payment.","eventin"),keyName:"etn_show_print_download_on_thankyou",requirePro:!0},{title:(0,a.__)("Require Account Login","eventin"),description:(0,a.__)("Required login to the purchase of event tickets.","eventin"),keyName:"etn_purchase_login_required",requirePro:!1},{title:(0,a.__)("Show Billing Info","eventin"),description:(0,a.__)("Show billing info on woocommerce checkout page.","eventin"),keyName:"etn_show_woo_billing_info",requirePro:!1},{title:(0,a.__)("Include Event Details in Woocommerce Cart & Invoice E-mail","eventin"),description:(0,a.__)("Include event details page link in woocommerce cart and invoice email.","eventin"),keyName:"invoice_include_event_details",requirePro:!0}],E=[{key:"1",label:(0,l.createElement)(m.A,{title:(0,a.__)("WooCommerce","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Enable WooCommerce Payments.","eventin")," "," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/payment-type/woocommerce/?utm_source=doc&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,a.__)("Read Documentation","eventin")))}),children:(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(c.A,null,(0,l.createElement)(i.A,{span:24,rules:[{required:!0}]},(0,l.createElement)(u.A,{title:(0,a.__)("After Adding to Cart, Redirect to ","eventin"),description:(0,a.__)("Select where to redirect after adding tickets to eventin cart.","eventin"),keyName:"add_to_cart_redirect",size:"large",placeholder:(0,a.__)("Select a option","eventin"),allowClear:!0,defaultValue:"checkout",options:[{value:"cart",label:(0,a.__)("Cart","eventin")},{value:"checkout",label:(0,a.__)("Checkout","eventin")}]}))),(0,l.createElement)(c.A,null,(0,l.createElement)(i.A,{span:24,rules:[{required:!0}]},(0,l.createElement)(u.A,{title:(0,a.__)("After Confirming the Order, Redirect To ","eventin"),description:(0,a.__)("Select where to redirect after confirming the order: Eventin thank-you page or WooCommerce thank-you page","eventin"),keyName:"order_thank_you_redirect",size:"large",placeholder:(0,a.__)("Select a option","eventin"),allowClear:!0,defaultValue:"eventin_thankyou",options:[{value:"eventin_thankyou",label:(0,a.__)("Eventin Thank you","eventin")},{value:"woo_thankyou",label:(0,a.__)("Woocommerce Thank you","eventin")}]}))),(0,l.createElement)(c.A,null,g.map((t,n)=>(0,l.createElement)(i.A,{span:24,key:n},(0,l.createElement)(d.A,{title:t.title,description:t.description,pro:t.requirePro,form:e,keyName:t.keyName,sx:{margin:"10px 0"}})))),(0,l.createElement)(c.A,null,(0,l.createElement)(i.A,{span:24},(0,l.createElement)(u.A,{multiple:!0,title:(0,a.__)("Confirm Ticket Based on Payment Status","eventin"),description:(0,a.__)("Select the payment statuses that will trigger ticket confirmation.","eventin"),keyName:"wc_order_statuses",options:p,rules:[{required:!0,message:(0,a.__)("Please select at least one status","eventin")}]})))),showArrow:!1,extra:(0,l.createElement)(o.A.Item,{name:"sell_tickets",valuePropName:"checked"},(0,l.createElement)(s.A,{onChange:t=>e.setFieldsValue({sell_tickets:t?"woocommerce":null,payment_method:t?"woocommerce":""})}))}];return(0,l.createElement)(r.A,{activeKey:v&&["1"],items:E,onChange:t=>{const n=Boolean(t.length)?"woocommerce":null;e.setFieldsValue({sell_tickets:n,payment_method:n?"woocommerce":""})},style:{margin:"20px 0px"}})}},29022(e,t,n){n.d(t,{A:()=>u});var l=n(51609),a=n(86087),i=n(27723),r=n(500),o=n(73296),c=n(10012),s=n(60742),m=n(40372),d=n(36492);const{useBreakpoint:_}=m.Ay,u=e=>{const{modalOpen:t,setModalOpen:n,form:m}=e,[u,p]=(0,a.useState)({width:"95%",height:"auto"}),v=m.getFieldValue(["email","rsv_email","from"]),g=m.getFieldValue(["email","rsv_email","response_type"]),E=m.getFieldValue(["email","rsv_email","subject"]),h=m.getFieldValue(["email","rsv_email","body"]),f=!!_()?.md,b=!!_()?.xxl;return(0,a.useEffect)(()=>{p(b?{width:"680px",height:"700px"}:f?{width:"600px",height:"700px"}:{width:"95%",height:"auto"})},[f,b]),(0,l.createElement)(r.A,{title:(0,i.__)("RSVP Email Notification","eventin"),open:t,onCancel:()=>{m.setFieldValue(["email","rsv_email","from"],v),m.setFieldValue(["email","rsv_email","response_type"],g),m.setFieldValue(["email","rsv_email","subject"],E),m.setFieldValue(["email","rsv_email","body"],h),n(!1)},cancelText:(0,i.__)("Cancel","eventin"),okText:(0,i.__)("Save","eventin"),onOk:()=>{n(!1)},destroyOnHidden:!0,width:u?.width,styles:{body:{height:u?.height,overflowY:"auto"}}},(0,l.createElement)("div",{className:"ant-form ant-form-vertical"},(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"0px 15px"}},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,i.__)("From Email","eventin")),(0,l.createElement)(c.ks,{name:["email","rsv_email","from"],placeholder:(0,i.__)("Enter your email","eventin")})),(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"0px 15px"}},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,i.__)("RSVP Type","eventin")),(0,l.createElement)(s.A.Item,{name:["email","rsv_email","response_type"]},(0,l.createElement)(d.A,{options:[{label:(0,i.__)("Going","eventin"),value:"going"},{label:(0,i.__)("Not Going","eventin"),value:"not_going"},{label:(0,i.__)("Maybe","eventin"),value:"maybe"}],size:"large",style:{height:"40px",marginLeft:"5px"}}))),(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"0px 15px"}},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,i.__)("Email Subject","eventin")),(0,l.createElement)(c.ks,{name:["email","rsv_email","subject"],placeholder:(0,i.__)("Enter email subject","eventin")})),(0,l.createElement)(o.A,{keyName:["email","rsv_email","body"],label:(0,i.__)("Email Body","eventin"),initialValue:h,form:m,sx:{height:"200px"},emailPreset:["{%site_name%}","{%site_link%}","{%event_title%}","{%event_date%}","{%event_time%}","{%event_location%}"]})))}},31658(e,t,n){n.r(t),n.d(t,{default:()=>o});var l=n(51609),a=n(47767),i=n(25627),r=n(39435);function o(){return(0,l.createElement)(a.Routes,null,(0,l.createElement)(a.Route,{path:"/*",element:(0,l.createElement)(i.A,null)},(0,l.createElement)(a.Route,{path:"*",element:(0,l.createElement)(a.Navigate,{replace:!0,to:r.f[0].slug})}),r.f?.map((e,t)=>(0,l.createElement)(a.Route,{key:t,path:`${e.slug}/*`,element:e.element},e.children?.map((e,t)=>(0,l.createElement)(a.Route,{key:t,path:`${e.slug}/*`,element:e.element})),(0,l.createElement)(a.Route,{path:"*",element:(0,l.createElement)(a.Navigate,{replace:!0,to:e.children[0]?.slug||""})})))))}},36862(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(86087),i=n(27723),r=n(20086),o=n(13313),c=n(98553),s=n(89348),m=n(62027),d=n(55390),_=n(92911),u=n(26536);const p=function(){const{form:e}=(0,o.EF)(),[t,n]=(0,a.useState)(!1),[p,v]=(0,a.useState)(!1);return(0,l.createElement)(s.LK,null,(0,l.createElement)(u.o,null),(0,l.createElement)(r.A,{title:(0,i.__)("Email Settings","eventin"),description:(0,l.createElement)("span",null,(0,i.__)("Manage how you want to utilize email settings.","eventin")," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/event/eventin-notifications/?utm_source=doc&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,i.__)("Read Documentation","eventin")))},(0,l.createElement)(s.zn,null,(0,l.createElement)(_.A,{vertical:!0,gap:20},(0,l.createElement)(m.A,{title:(0,i.__)("Purchase Confirmation Email","eventin"),description:(0,i.__)("Send attendees ticket confirmation email with link to register on the event.","eventin"),name:"enable_purchase_email",setModalOpen:n},(0,l.createElement)(d.A,{modalOpen:t,setModalOpen:n,form:e})),(0,l.createElement)(m.A,{title:(0,i.__)("Event Reminder Email","eventin"),description:(0,i.__)("Send event reminder to the attendees.","eventin"),name:"off_remainder",setModalOpen:v,isPro:!0},(0,l.createElement)(c.A,{modalOpen:p,setModalOpen:v,form:e}))))))}},38412(e,t,n){n.d(t,{A:()=>c});var l=n(51609),a=n(92911),i=n(56427),r=n(18062),o=n(27154);function c(e){const{title:t}=e;return(0,l.createElement)(i.Fill,{name:o.PRIMARY_HEADER_NAME},(0,l.createElement)(a.A,{justify:"space-between",align:"center"},(0,l.createElement)(r.A,{title:t})))}},39435(e,t,n){n.d(t,{f:()=>z});var l=n(51609),a=n(54725),i=n(32467),r=n(27723),o=n(89191),c=n(68484),s=n(68482),m=n(28256),d=n(60867),_=n(14404),u=n(70561),p=n(36862),v=n(39928),g=n(62689),E=n(61817),h=n(25076),f=n(76917),b=n(94758),A=n(54007),y=n(77027),x=n(65330),k=n(87318);const w=[{label:(0,r.__)("Event Details","eventin"),title:(0,r.__)("Event Details","eventin"),slug:"event-details",icon:(0,l.createElement)(a.CalendarOutlinedIcon,null),element:(0,l.createElement)(f.A,null)},{label:(0,r.__)("Archive Event","eventin"),title:(0,r.__)("Archive Event","eventin"),slug:"archive-event",icon:(0,l.createElement)(a.ArchiveOutlinedIcon,null),element:(0,l.createElement)(E.A,null)},{label:(0,r.__)("Attendees","eventin"),title:(0,r.__)("Attendees","eventin"),slug:"attendees",icon:(0,l.createElement)(i.A,null),element:(0,l.createElement)(h.A,null)},{label:(0,r.__)("Speaker Details","eventin"),title:(0,r.__)("Speaker Details","eventin"),slug:"speaker-details",icon:(0,l.createElement)(i.A,null),element:(0,l.createElement)(b.A,null)}],S=[{label:(0,r.__)("Payment Method","eventin"),title:(0,r.__)("Payment Method","eventin"),slug:"payment_method",icon:(0,l.createElement)(a.PaymentIcon,null),element:(0,l.createElement)(y.A,null)},{label:(0,r.__)("Checkout Settings","eventin"),title:(0,r.__)("Checkout","eventin"),slug:"checkout",icon:(0,l.createElement)(a.SettingsCircleIcon,null),element:(0,l.createElement)(x.A,null)},{label:(0,r.__)("Currency Settings","eventin"),title:(0,r.__)("Currency","eventin"),slug:"currency",icon:(0,l.createElement)(a.StripeOutlinedIcon,null),element:(0,l.createElement)(k.A,null)}],C=[{label:(0,r.__)("Purchase Email","eventin"),title:(0,r.__)("Purchase Email","eventin"),slug:"purchase-email",icon:(0,l.createElement)(a.EmailIcon,{width:16,height:17}),element:(0,l.createElement)(p.A,null)},{label:(0,r.__)("RSVP Invitation Email","eventin"),title:(0,r.__)("RSVP Invitation Email","eventin"),slug:"rsvp-invitations",icon:(0,l.createElement)(a.MailOpenOutlinedIcon,null),element:(0,l.createElement)(v.A,null)}],P=[{label:(0,r.__)("General","eventin"),title:(0,r.__)("General","eventin"),slug:"general",icon:(0,l.createElement)(a.GearIcon,null),element:(0,l.createElement)(m.A,null)},{label:(0,r.__)("Slug","eventin"),title:(0,r.__)("Slug","eventin"),slug:"slug",icon:(0,l.createElement)(a.SlugOutlinedIcon,null),element:(0,l.createElement)(d.A,null)},{label:(0,r.__)("Webhooks","eventin"),title:(0,r.__)("Webhooks","eventin"),slug:"webhooks",icon:(0,l.createElement)(a.WebhookIcon,null),element:(0,l.createElement)(_.A,null)},{label:(0,r.__)("Domain Registration","eventin"),title:(0,r.__)("Domain Registration","eventin"),slug:"domain-registration",icon:(0,l.createElement)(a.DomainOutlinedIcon,null),element:(0,l.createElement)(s.A,null)},{label:(0,r.__)("Manage Access","eventin"),title:(0,r.__)("Manage Access","eventin"),slug:"manage-access",icon:(0,l.createElement)(a.ControlAccessIcon,null),element:(0,l.createElement)(c.A,null)}],z=[{label:(0,r.__)("Event Settings","eventin"),title:(0,r.__)("Event Settings","eventin"),slug:"event-settings",icon:(0,l.createElement)(a.CalendarIcon,null),element:(0,l.createElement)(g.A,{menus:w}),children:w},{label:(0,r.__)("Payments","eventin"),title:(0,r.__)("Payments","eventin"),slug:"payments",icon:(0,l.createElement)(a.PaymentIcon,null),element:(0,l.createElement)(A.A,{menus:S}),children:S},{label:(0,r.__)("Email","eventin"),title:(0,r.__)("Email","eventin"),slug:"email",icon:(0,l.createElement)(a.EmailIcon,null),element:(0,l.createElement)(u.A,{menus:C}),children:C},{label:(0,r.__)("Advanced","eventin"),title:(0,r.__)("Advanced","eventin"),slug:"advanced",icon:(0,l.createElement)(a.GearIcon,null),element:(0,l.createElement)(o.A,{menus:P}),children:P}]},39928(e,t,n){n.d(t,{A:()=>u});var l=n(51609),a=n(86087),i=n(27723),r=n(20086),o=n(13313),c=(n(91),n(89348)),s=n(92911),m=n(62027),d=n(29022),_=n(26536);const u=function(){const{form:e}=(0,o.EF)(),[t,n]=(0,a.useState)(!1),[u,p]=(0,a.useState)(!1);return(0,l.createElement)(c.LK,null,(0,l.createElement)(_.o,null),(0,l.createElement)(r.A,{title:(0,i.__)("RSVP Email Settings","eventin"),description:(0,l.createElement)("span",null,(0,i.__)("Manage how you want to utilize email settings.","eventin")," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/event/eventin-notifications/?utm_source=doc&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,i.__)("Read Documentation","eventin")))},(0,l.createElement)(c.zn,null,(0,l.createElement)(s.A,{vertical:!0,gap:20},(0,l.createElement)(m.A,{title:(0,i.__)("RSVP Invitation Email","eventin"),description:(0,i.__)("Invite attendees to confirm their attendance with personalized RSVP emails.","eventin"),name:"rsvp_auto_confirm",setModalOpen:n,isPro:!0},(0,l.createElement)(d.A,{form:e,modalOpen:t,setModalOpen:n}))))))}},54007(e,t,n){n.d(t,{A:()=>o});var l=n(51609),a=n(18028),i=n(89348),r=n(47767);function o(e){const{menus:t}=e;return(0,l.createElement)(i.VV,null,(0,l.createElement)(a.A,{menus:t}),(0,l.createElement)(r.Outlet,null))}},55390(e,t,n){n.d(t,{A:()=>_});var l=n(51609),a=n(86087),i=n(27723),r=n(500),o=n(73296),c=n(85982),s=n(10012),m=n(40372);const{useBreakpoint:d}=m.Ay,_=e=>{const{modalOpen:t,setModalOpen:n,form:m}=e,[_,u]=(0,a.useState)({width:"95%",height:"auto"}),p=m.getFieldValue(["email","purchase_email","from"]),v=m.getFieldValue(["email","purchase_email","subject"]),g=m.getFieldValue(["email","purchase_email","body"]),E=!!d()?.md,h=!!d()?.xxl;return(0,a.useEffect)(()=>{u(h?{width:"680px",height:"700px"}:E?{width:"600px",height:"700px"}:{width:"95%",height:"auto"})},[E,h]),(0,l.createElement)(r.A,{title:(0,i.__)("Ticket Confirmation Email","eventin"),open:t,onCancel:()=>{m.setFieldValue(["email","purchase_email","from"],p),m.setFieldValue(["email","purchase_email","subject"],v),m.setFieldValue(["email","purchase_email","body"],g),n(!1)},cancelText:(0,i.__)("Cancel","eventin"),okText:(0,i.__)("Save","eventin"),onOk:()=>{n(!1)},destroyOnHidden:!0,width:_?.width,styles:{body:{height:_?.height,overflowY:"auto"}}},(0,l.createElement)("div",null,(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"4px"}},(0,l.createElement)(c.A,{key:["email","purchase_email","send_to_admin"],title:(0,i.__)("Send Email to Admin","eventin"),description:(0,i.__)("Enable to send email to admin","eventin"),form:m,keyName:["email","purchase_email","send_to_admin"],sx:{margin:"10px 0"}}),(0,l.createElement)(c.A,{key:["email","purchase_email","send_email_to_attendees"],title:(0,i.__)("Send Email to Attendees","eventin"),description:(0,i.__)("Enable to send email to attendees","eventin"),form:m,keyName:["email","purchase_email","send_email_to_attendees"],sx:{margin:"10px 0"}}),(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,i.__)("From Email","eventin")),(0,l.createElement)(s.ks,{name:["email","purchase_email","from"],placeholder:(0,i.__)("Enter your email","eventin"),rules:[{type:"email",message:"Please enter a valid email address"}]})),(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"0px 15px"}},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,i.__)("Email Subject","eventin")),(0,l.createElement)(s.ks,{name:["email","purchase_email","subject"],placeholder:(0,i.__)("Enter email subject","eventin")})),(0,l.createElement)(o.A,{keyName:["email","purchase_email","body"],label:(0,i.__)("Email Body","eventin"),initialValue:g,form:m,sx:{height:"200px"}})))}},60200(e,t,n){n.d(t,{A:()=>d});var l=n(51609),a=n(29491),i=n(47143),r=n(75063),o=n(13313),c=n(60992),s=n(61953);const m=(0,i.withSelect)(e=>{const t=e("eventin/global");return{userPermissions:t.getUserPermissions(),isUserPermissionListLoading:t.isResolving("getUserPermissions")}}),d=(0,a.compose)(m)(function(e){const{isUserPermissionListLoading:t}=e;return t?(0,l.createElement)(r.A,{active:!0}):(0,l.createElement)(s.wn,null,(0,l.createElement)(o.Ay,null,(0,l.createElement)(c.A,null)))})},60867(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(27723),i=n(16370),r=n(60742),o=n(47152),c=n(67313),s=n(13313),m=n(20086),d=n(10012),_=n(89348),u=n(69815);function p(){const{form:e}=(0,s.EF)(),t=window.localized_data_obj?.admin_url+"options-permalink.php",n=r.A.useWatch("event_slug",{form:e,preserve:!0}),p=r.A.useWatch("speaker_slug",{form:e,preserve:!0}),v=u.default.p`
		font-size: 14px;
		color: #6b7280;
		line-height: 14.4px;
		margin-top: 10px;
		font-weight: 400;
		overflow-wrap: break-word;
		span {
			color: #020617;
			text-wrap: break-word;
		}
	`;return(0,l.createElement)(_.LK,null,(0,l.createElement)(m.A,{title:(0,a.__)("Slug Settings","eventin")},(0,l.createElement)(c.A.Paragraph,{style:{fontSize:"14px",color:"#6B7280",fontWeight:400,marginBottom:"20px"}},(0,a.__)("A flash is required for the Permalink setting if the slug name changes.","eventin"),(0,l.createElement)("a",{href:t,target:"_blank"}," ",(0,a.__)("Click here","eventin"))),(0,l.createElement)(_.zn,null,(0,l.createElement)(_.mc,{style:{marginBottom:"0"}},(0,l.createElement)(o.A,{gutter:10},(0,l.createElement)(i.A,{md:12,span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Event Slug Name","eventin"),name:"event_slug"},(0,l.createElement)(d.ks,{size:"large",placeholder:(0,a.__)("Enter event slug","eventin")})),n?(0,l.createElement)(v,null,(0,a.__)("Example: http://eventin.com/","eventin"),(0,l.createElement)("span",null,n)):(0,l.createElement)(v,null,(0,a.__)("Example: http://eventin.com/","eventin"),(0,l.createElement)("span",null,(0,a.__)("etn","eventin")))),(0,l.createElement)(i.A,{md:12,span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Speaker Slug Name","eventin"),name:"speaker_slug"},(0,l.createElement)(d.ks,{size:"large",placeholder:(0,a.__)("Enter speaker slug ","eventin")})),p?(0,l.createElement)(v,null,(0,a.__)("Example: http://eventin.com/","eventin"),(0,l.createElement)("span",null,p)):(0,l.createElement)(v,null,(0,a.__)("Example: http://eventin.com/","eventin"),(0,l.createElement)("span",null,(0,a.__)("author","eventin")))))))))}},60992(e,t,n){n.d(t,{A:()=>E});var l=n(51609),a=n(52619),i=n(27723),r=n(29491),o=n(47143),c=n(86087),s=n(13313),m=n(64016),d=n(64282),_=n(60742),u=n(75063),p=n(47767),v=n(19085);const g=(0,o.withDispatch)(e=>{const t=e("eventin/global");return{invalidateSettings:()=>t.invalidateResolution("getSettings")}}),E=(0,r.compose)(g)(function(e){const{invalidateSettings:t}=e,[n,r]=(0,c.useState)(!1),{form:o,isLoading:g,settings:E}=(0,s.EF)(),{setSaveButtonLoading:h}=(0,s.w6)();return(0,c.useEffect)(()=>{n&&(t(),r(!1))},[n]),g&&!E?(0,l.createElement)(u.A,{active:!0}):(0,l.createElement)(_.A,{form:o,name:"settings-form",layout:"vertical",autoComplete:"on",scrollToFirstError:!0,onFinishFailed:e=>{e.errorFields.length>0&&scrollToField(e.errorFields[0].name[0])},onFinish:async()=>{const e={...o.getFieldsValue(!0)};delete e?.webhook_list;const t=(0,v.A)(e);h(!0);try{await d.A.settings.updateSettings(t),r(!0),(0,a.doAction)("eventin_notification",{type:"success",message:(0,i.__)("Successfully updated settings!","eventin")})}catch(e){console.error("Error saving settings!"),console.error(e),(0,a.doAction)("eventin_notification",{type:"error",message:(0,i.__)("Couldn't save settings!","eventin")})}finally{h(!1)}}},(0,l.createElement)("div",null,(0,l.createElement)(m.A,null),(0,l.createElement)(p.Outlet,null)))})},61517(e,t,n){n.d(t,{A:()=>s});var l=n(51609),a=n(73051),i=n(92911),r=n(90070),o=n(67313);const{Text:c}=o.A;function s(e){const{title:t,description:n,tooltip:o}=e;return(0,l.createElement)(r.A,{direction:"vertical",size:0,style:{marginRight:"8px"}},(0,l.createElement)(i.A,{alignItems:"center"},(0,l.createElement)(c,{style:{fontSize:"16px",color:"#414454",fontWeight:600}},t),o&&(0,l.createElement)(a.A,{title:o})),(0,l.createElement)(c,{style:{fontSize:"14px",color:"#6B7280",fontWeight:400}},n))}},61817(e,t,n){n.d(t,{A:()=>d});var l=n(51609),a=n(27723),i=n(20086),r=n(94733),o=n(22977),c=n(487),s=n(13313),m=n(89348);const d=function(){const{form:e}=(0,s.EF)();return(0,l.createElement)(m.LK,null,(0,l.createElement)(i.A,{title:(0,a.__)("Archive Settings","eventin")},(0,l.createElement)(m.zn,null,(0,l.createElement)(r.A,{title:(0,a.__)("Display Events Per Page","eventin"),description:(0,a.__)("In the Archive page, how many events to show.","eventin"),type:"number",placeholder:"01",pro:!1,form:e,keyName:"events_per_page",sx:{margin:"10px 0"}}),(0,l.createElement)(c.A,{form:e,name:"etn_include_from_search",title:(0,a.__)("Include Into Search","eventin"),tooltipText:(0,a.__)("Data from events will appear in search engine results.","eventin"),options:[{label:(0,a.__)("Yes","eventin"),description:(0,a.__)("Include event in search","eventin"),value:"on"},{label:(0,a.__)("No","eventin"),description:(0,a.__)("Do not Include event in search","eventin"),value:"off"}]}),(0,l.createElement)(o.A,{title:(0,a.__)("Sort Archive Events By","eventin"),description:(0,a.__)("Filter archived events based on the expired or upcoming date","eventin"),options:[{label:(0,a.__)("All","eventin"),value:"all"},{label:(0,a.__)("Expired","eventin"),value:"expire"},{label:(0,a.__)("Upcoming","eventin"),value:"upcoming"}],pro:!1,form:e,keyName:"archive_event_sorting",sx:{margin:"10px 0"}}),(0,l.createElement)(c.A,{form:e,name:"archive_event_sorting_order",title:(0,a.__)("Order Archive Events By","eventin"),tooltipText:(0,a.__)("Display archived events based on ascending or descending order","eventin"),options:[{label:(0,a.__)("Ascending","eventin"),description:(0,a.__)("Show in ascending order","eventin"),value:"ASC"},{label:(0,a.__)("Descending","eventin"),description:(0,a.__)("Show in descending order","eventin"),value:"DESC"}]}))))}},61953(e,t,n){n.d(t,{Dr:()=>c,jl:()=>o,oe:()=>s,wn:()=>i,xn:()=>r});var l=n(69815),a=n(71431);const i=l.default.section`
	max-width: var( --etn-setting-content-width );
	margin: 0 auto;
`,r=(l.default.main`
	padding: 24px 16px;
	max-width: 732px;
	margin: 0 auto;
`,l.default.nav`
	position: sticky;
	top: 93px;
	z-index: 15;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0px 20px;
	background-color: #ffffff !important;
	border-bottom: 1px solid #e0e0e0;
	@media ( max-width: 768px ) {
		top: 103px;
		padding: '10px 20px';
	}
`),o=(0,l.default)(a.A)`
	border-bottom: none;
	width: 100% !important;
	.ant-menu-item {
		display: flex !important;
		align-items: center !important;
		font-size: 16px !important;
		font-weight: 400 !important;
		color: #334155;
		height: 70px;
	}
	@media ( max-width: 768px ) {
		width: 60px !important;
		margin-left: -20px;
	}
`,c=l.default.div`
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 400;
	color: #334155;
	padding: 8px 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	border-left: 2px solid transparent;

	@media ( max-width: 768px ) {
		padding: 8px 10px;
		border-left: 1px solid transparent;
	}

	${({active:e})=>e&&"\n\t\t\tcolor: #6b2ee5;\n\t\t\tborder-left: 2px solid #6b2ee5;\n\t\t\tbackground-color: #f5f3ff;\n\t\t"};

	&:hover {
		background-color: #f5f3ff;
		border-color: #6b2ee5;
	}

	&:hover span {
		color: #6b2ee5;
	}

	.sidebar-menu-label {
		font-size: 14px;
		${({active:e})=>e&&"\n\t\t\t\tcolor: #6b2ee5;\n\t\t\t"};

		@media ( max-width: 768px ) {
			display: none;
		}
	}
`,s=l.default.div`
	width: 250px;
	background-color: #ffffff;
	border-right: 1px solid #e0e0e0;
	position: sticky;
	top: 162px;
	min-height: calc( 100vh - 162px );
	display: flex;
	flex-direction: column;
	padding: 8px 6px;

	@media ( max-width: 768px ) {
		width: 50px !important;
		top: 160px;
		min-height: calc( 100vh - 160px );
		justify-content: flex-start;
		gap: 16px;
	}
`;(0,l.default)(a.A)`
	width: 100% !important;
	transition: none !important;
	padding-top: 30px;
	&.transitioning {
		opacity: 0;
	}

	.ant-menu-inline-collapsed {
		width: auto !important;
	}

	.ant-menu-item {
		border-left: 2px solid transparent;
		transition: none !important;
		animation: none !important;
	}

	.ant-menu-item-selected {
		border-left: 2px solid #6b2ee5;
		border-radius: 0px 6px 6px 0px;
		transition: none !important;
		animation: none !important;
	}

	/* Disable all Ant Design menu animations */
	* {
		transition: none !important;
		animation: none !important;
		animation-duration: 0s !important;
		animation-delay: 0s !important;
	}

	&&.ant-menu-inline-collapsed > .ant-menu-item,
	&&.ant-menu-inline-collapsed
		> .ant-menu-item-group
		> .ant-menu-item-group-list
		> .ant-menu-item,
	&&.ant-menu-inline-collapsed
		> .ant-menu-item-group
		> .ant-menu-item-group-list
		> .ant-menu-submenu
		> .ant-menu-submenu-title,
	&&.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
		padding: 0 !important;
		text-overflow: clip;

		@media ( max-width: 768px ) {
			padding: 5px !important;
		}
	}
`},62027(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(27723),i=n(69815),r=n(92911),o=n(60742),c=n(90070),s=n(43960),m=n(54725),d=n(7638),_=n(48842);const u=i.default.div`
	background-color: white;
	border-radius: 6px;
	padding: 20px 16px;
	border: 1px solid #e6e6f0;
`,p=e=>{const{title:t,description:n,tooltipText:i,name:p,setModalOpen:v,isPro:g,children:E}=e,h=g&&!window.localized_data_obj.evnetin_pro_active;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(u,null,(0,l.createElement)(r.A,{justify:"space-between",align:"center",gap:10},(0,l.createElement)(c.A,{direction:"vertical",size:0},(0,l.createElement)(_.A,{sx:{color:"#334155",fontWeight:600,fontSize:"14px",display:"flex",alignItems:"center"}},t,i&&(0,l.createElement)(Tooltip,{title:i},(0,l.createElement)("span",null,"   ",(0,l.createElement)(m.InfoCircleFilled,{width:15,height:15,fill:"#747474"})))),(0,l.createElement)(_.A,{sx:{fontSize:"14px",fontWeight:400,color:"#6B7280"}},n)),(0,l.createElement)(o.A.Item,{name:p,valuePropName:"checked",noStyle:!0},h?(0,l.createElement)(d.Oc,null):(0,l.createElement)(s.A,{size:"large"}))),(0,l.createElement)(d.Ay,{variant:d.jK,onClick:()=>v(!0),style:{margin:"10px 0 0 0"},disabled:!!h},(0,a.__)("Configure","eventin"))),E)}},62689(e,t,n){n.d(t,{A:()=>o});var l=n(51609),a=n(18028),i=n(89348),r=n(47767);function o(e){const{menus:t}=e;return(0,l.createElement)(i.VV,null,(0,l.createElement)(a.A,{menus:t}),(0,l.createElement)(r.Outlet,null))}},62929(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(16370),i=n(60742),r=n(47152),o=n(90070),c=n(32099),s=n(54725),m=n(7638),d=n(48842),_=n(81810),u=(n(10012),n(75093));const p=e=>{const{title:t,description:n,form:p,keyName:v,sx:g,tooltipText:E,pro:h,type:f,placeholder:b,initialValue:A="",rules:y=[],min:x=0}=e||{},k=h&&!window.localized_data_obj.evnetin_pro_active;return(0,l.createElement)(_.VV,{style:g},(0,l.createElement)(r.A,{gutter:[16,16],style:{alignItems:"center"}},(0,l.createElement)(a.A,{sm:24,md:k?18:16},(0,l.createElement)(o.A,{direction:"vertical",size:0},(0,l.createElement)(d.A,{sx:{color:"#334155",fontWeight:600,display:"flex",alignItems:"center"}},t,E&&(0,l.createElement)(c.A,{title:E},(0,l.createElement)("span",null,"   ",(0,l.createElement)(s.InfoCircleFilled,{width:15,height:15,fill:"#747474"})))),(0,l.createElement)(d.A,{sx:{fontSize:"14px",color:"#747474"}},n))),(0,l.createElement)(a.A,{sm:24,md:k?4:8,style:{width:"100%",height:"40px"}},k?(0,l.createElement)(m.Oc,null):(0,l.createElement)(i.A.Item,{label:"",name:v,rules:y,initialValue:A},(0,l.createElement)(u.NumberInput,{placeholder:b,min:x||0,defaultValue:A})))))}},64016(e,t,n){n.d(t,{A:()=>u});var l=n(51609),a=n(27723),i=n(40372),r=n(47767),o=n(7638),c=n(54725),s=n(13313),m=n(39435),d=n(61953);const{useBreakpoint:_}=i.Ay;function u(){const{saveButtonLoading:e}=(0,s.EF)(),t=(0,r.useLocation)().pathname?.split("/")[2],n=(0,r.useNavigate)(),i=m.f.map(e=>({key:e.slug,icon:e.icon,label:e.label,onClick:()=>n(e.slug)})),u=!_().sm;return(0,l.createElement)(d.xn,null,(0,l.createElement)(d.jl,{mode:"horizontal",selectedKeys:[t],items:i,overflowedIndicator:u?(0,l.createElement)(c.HamburgerIcon,null):(0,l.createElement)(c.MoreIconOutlined,null)}),(0,l.createElement)(o.Ay,{variant:o.zB,htmlType:"submit",loading:e},(0,a.__)("Save Changes","eventin")))}},65330(e,t,n){n.d(t,{A:()=>g});var l=n(51609),a=n(27723),i=n(16370),r=n(62567),o=n(60742),c=n(47152),s=n(43960),m=n(75093),d=n(61517),_=n(20086),u=n(6836),p=n(13313),v=n(89348);function g(){const{form:e}=(0,p.EF)(),t=o.A.useWatch("ticket_purchase_timer_enable",{form:e,preserve:!0}),n=e=>{let t;return e&&"off"!=e?"on"!==e&&!0!==e||(t=!0):t=!1,t},g=[{key:"1",label:(0,l.createElement)(d.A,{title:(0,a.__)("Checkout Configuration","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("After the time expires, tickets will be released and the user must restart the process.","eventin")," ")}),children:(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(c.A,{gutter:10},(0,l.createElement)(i.A,{md:12,sm:24,xs:24},(0,l.createElement)(o.A.Item,{label:(0,a.__)("Set Timeout (minutes)","eventin"),name:"ticket_purchase_timer"},(0,l.createElement)(m.NumberInput,{size:"large",max:10,placeholder:(0,a.__)("Enter timeout duration (in minutes)","eventin")}))))),showArrow:!1,extra:(0,l.createElement)(o.A.Item,{name:"ticket_purchase_timer_enable"},(0,l.createElement)(s.A,{checked:n(t),onChange:t=>e.setFieldsValue({ticket_purchase_timer_enable:!!t})}))}];return(0,l.createElement)(v.LK,null,(0,l.createElement)(_.A,{title:(0,a.__)("Checkout Configuration","eventin")},(0,l.createElement)(r.A,{activeKey:n(t)&&["1"],items:g,onChange:t=>{e.setFieldsValue({ticket_purchase_timer_enable:Boolean(t.length)}),(0,u.scrollToTop)()},style:{margin:"20px 0px"}})))}},68482(e,t,n){n.d(t,{A:()=>E});var l=n(51609),a=n(27723),i=n(16370),r=n(60742),o=n(47152),c=n(54725),s=n(7638),m=n(4936),d=n(20086),_=n(48842),u=n(10012),p=n(13313),v=n(68940),g=n(89348);function E(){const{form:e}=(0,p.EF)();return(0,l.createElement)(g.LK,null,(0,l.createElement)(d.A,{title:(0,a.__)("Domain Registration","eventin"),description:(0,a.__)("Allow event scenarios to be displayed on registered websites.","eventin")},(0,l.createElement)(g.zn,null,(0,l.createElement)(m.A,{title:(0,a.__)("Cross Website Event Display ","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Allow the event details page cross over to another website using a shortcode.","eventin")," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/general-settings-eventin/embeddable-script/?utm_source=doc&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,a.__)("Read Documentation","eventin"))),pro:!0,form:e,keyName:"enable_domain_registration",sx:{margin:"10px 0"}},(0,l.createElement)(r.A.List,{name:"external_domain",initialValue:[]},(e,{add:t,remove:n},{errors:m})=>(0,l.createElement)(l.Fragment,null,e?.length<1&&(0,l.createElement)(_.A,{sx:{display:"block",marginBottom:"8px"}},(0,a.__)("No domain added yet!","eventin")),e.map(e=>(0,l.createElement)(o.A,{key:e.key,gutter:10,align:"middle"},(0,l.createElement)(i.A,{span:21},(0,l.createElement)(r.A.Item,{name:[e.name],label:(0,a.__)("Register Website URL","eventin")},(0,l.createElement)(u.ks,{placeholder:(0,a.__)("Enter external domain","eventin")}))),(0,l.createElement)(i.A,{span:3},(0,l.createElement)(s.Ay,{variant:s.Vt,icon:(0,l.createElement)(c.DeleteOutlined,null),onClick:()=>n(e.name)})))),(0,l.createElement)(s.Ay,{variant:s.Rm,onClick:()=>t(),icon:(0,l.createElement)(v.A,{width:16,height:16}),size:"middle",sx:{width:"100%",fontSize:"14px",fontWeight:500,height:"36px"}},(0,a.__)("Add Domain","eventin"))))))))}},68484(e,t,n){n.d(t,{A:()=>u});var l=n(51609),a=n(29491),i=n(47143),r=n(27723),o=n(52619),c=n(20086),s=n(89348),m=n(75093);const d=!!window.localized_data_obj.evnetin_pro_active,_=(0,i.withSelect)(e=>{const t=e("eventin/global");return{userPermissions:t.getUserPermissions(),isUserPermissionListLoading:t.isResolving("getUserPermissions")}}),u=(0,a.compose)(_)(function(e){const{userPermissions:t}=e;return t?.is_super_admin?(0,l.createElement)(s.LK,null,(0,l.createElement)(c.A,{title:(0,r.__)("Manage Access","eventin")},(0,l.createElement)(s.zn,null,!d&&(0,l.createElement)(m.ProNoticePlaceholderComponent,null),(0,o.applyFilters)("control_access","")))):null})},70561(e,t,n){n.d(t,{A:()=>o});var l=n(51609),a=n(18028),i=n(89348),r=n(47767);function o(e){const{menus:t}=e;return(0,l.createElement)(i.VV,null,(0,l.createElement)(a.A,{menus:t}),(0,l.createElement)(r.Outlet,null))}},71424(e,t,n){n.d(t,{A:()=>v});var l=n(51609),a=n(27723),i=n(16370),r=n(62567),o=n(60742),c=n(47152),s=n(43960),m=n(7638),d=n(61517),_=n(10012),u=n(6836),p=n(13313);function v(){const{form:e}=(0,p.EF)(),t=o.A.useWatch("etn_sells_engine_stripe",{form:e,preserve:!0}),n=!!window.localized_data_obj?.evnetin_pro_active,v="stripe"===t;v&&e.setFieldsValue({sell_tickets:null,payment_method:"",surecart_status:!1});const g=[{key:"1",label:(0,l.createElement)(d.A,{title:(0,a.__)("Stripe","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Enable Stripe Payments.","eventin")," "," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/payment-type/stripe/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,a.__)("Read Documentation","eventin")))}),children:(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(c.A,{gutter:10},(0,l.createElement)(i.A,{md:12,sm:24,xs:24},(0,l.createElement)(o.A.Item,{label:(0,a.__)("Publishable key","eventin"),name:"stripe_live_publishable_key"},(0,l.createElement)(_.h5,{size:"large",placeholder:(0,a.__)("Enter publishable key","eventin")}))),(0,l.createElement)(i.A,{md:12,sm:24,xs:24},(0,l.createElement)(o.A.Item,{label:(0,a.__)("Secret key","eventin"),name:"stripe_live_secret_key"},(0,l.createElement)(_.h5,{size:"large",placeholder:(0,a.__)("Enter secret key","eventin")}))))),showArrow:!1,extra:n?(0,l.createElement)(o.A.Item,{name:"etn_sells_engine_stripe",valuePropName:"checked"},(0,l.createElement)(s.A,{onChange:t=>e.setFieldsValue({etn_sells_engine_stripe:t?"stripe":null})})):(0,l.createElement)(m.Oc,null)}];return(0,l.createElement)(r.A,{activeKey:v&&["1"],items:g,onChange:t=>{e.setFieldsValue({etn_sells_engine_stripe:Boolean(t.length)?"stripe":null}),(0,u.scrollToTop)()},style:{margin:"20px 0px"},collapsible:n?"header":"disabled"})}},73051(e,t,n){n.d(t,{A:()=>r});var l=n(51609),a=n(54725),i=n(32099);function r(e){const{title:t,...n}=e;return(0,l.createElement)(i.A,{title:t,...n},(0,l.createElement)("span",null,"   ",(0,l.createElement)(a.InfoCircleFilled,{width:16,height:16,fill:"#747474"})))}},73296(e,t,n){n.d(t,{A:()=>v});var l=n(51609),a=n(86087),i=n(92911),r=n(60742),o=n(79888),c=n(90070),s=n(45708),m=n.n(s),d=n(73051),_=n(48842),u=n(6836),p=n(69815);const v=function(e){const{keyName:t,tooltip:n,label:s,initialValue:v,form:g,sx:E,emailPreset:h=["{%site_name%}","{%site_link%}","{%event_title%}","{%customer_name%}","{%customer_email%}","{%event_date%}","{%event_time%}","{%event_location%}"]}=e||{},f=(0,a.useRef)(),[b,A]=(0,a.useState)(""),y=({target:e})=>{const t=f.current.getEditor(),{index:n}=f?.current?.unprivilegedEditor.getSelection(!0);t?.insertText(n,e.value)},x=e=>{const{url:t}=e,n=f.current.getEditor();n.insertEmbed(n.getSelection().index,"image",t),n.setSelection(n.getSelection().index+1)},k=(0,a.useCallback)(()=>{(0,u.handleWpUploader)(x)},[]);(0,a.useEffect)(()=>{g.setFieldValue(t,v)},[]);const w=p.default.div`
		input {
			max-width: 180px;
			background-color: #f6f8f9;
			border-radius: 6px;
			padding: 5px;
			color: #6b7280;
			text-align: center;
			cursor: pointer;
			&:hover {
				background-color: #f6f8f9;
			}
		}
	`,S={toolbar:{container:[[{header:[1,2,3,4,5,!1]},{font:[]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["link","image"],["code-block"],[{color:[]},{background:[]}],["clean"]],handlers:{image:k}}};return(0,l.createElement)("div",{style:{borderRadius:"6px",backgroundColor:"white",padding:"15px"}},(0,l.createElement)(i.A,{alignItems:"center",style:{marginBottom:"20px"}},(0,l.createElement)(_.A,{style:{fontSize:"16px",color:"#414454",fontWeight:600}},s),n&&(0,l.createElement)(d.A,{title:n})),(0,l.createElement)(r.A.Item,{name:t},(0,l.createElement)(m(),{theme:"snow",modules:S,formats:["header","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","code-block","color","background"],value:b,onChange:e=>{A(e)},ref:f,style:{height:"300px",marginBottom:"65px",...E}})),(0,l.createElement)(c.A,{wrap:!0},h?.map((e,t)=>(0,l.createElement)(w,null,(0,l.createElement)(o.A,{readOnly:!0,key:t,value:e,onClick:y})))))}},73810(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(69815),i=n(62567),r=n(60742),o=n(90070),c=n(43960),s=n(32099),m=n(54725),d=n(7638),_=n(48842);const u=(0,a.default)(i.A)`
	.ant-collapse-content {
		display: none;
	}

	border: 1px solid #e6e6f0;
	border-radius: 6px;
	.ant-collapse-item {
		border-bottom: 1px solid transparent !important;
	}
	.ant-collapse-extra {
		margin-left: 10px;
	}
`,p=e=>{const{title:t,description:n,form:a,keyName:i,sx:p,tooltipText:v,pro:g}=e,E="on"===r.A.useWatch(i,{form:a,preserve:!0}),h=!!window.localized_data_obj.evnetin_pro_active,f=g&&!h,b=e=>{"boolean"==typeof e?a.setFieldsValue({[i]:e?"on":null}):a.setFieldsValue({[i]:Boolean(e?.length)?"on":null})},A=[{key:"1",label:(0,l.createElement)(o.A,{direction:"vertical",size:0},(0,l.createElement)(_.A,{sx:{color:"#334155",fontWeight:600,display:"flex",alignItems:"center"}},t,v&&(0,l.createElement)(s.A,{title:v},(0,l.createElement)("span",null,"   ",(0,l.createElement)(m.InfoCircleFilled,{width:15,height:15,fill:"#747474"})))),(0,l.createElement)(_.A,{sx:{fontSize:"14px",color:"#747474"}},n)),showArrow:!1,extra:f?(0,l.createElement)(d.Oc,null):(0,l.createElement)(r.A.Item,{name:i,valuePropName:"checked"},(0,l.createElement)(c.A,{onChange:b}))}];return(0,l.createElement)(u,{activeKey:E&&["1"],items:A,onChange:b,style:p,collapsible:f?"disabled":"header"})}},76917(e,t,n){n.d(t,{A:()=>m});var l=n(51609),a=n(20086),i=n(94733),r=n(73810),o=n(13313),c=n(89348),s=n(27723);const m=function(){const{form:e}=(0,o.EF)(),t=[{title:(0,s.__)("Event Date","eventin"),description:(0,s.__)("Enable to hide event date on event page.","eventin"),keyName:"etn_hide_date_from_details",requirePro:!1},{title:(0,s.__)("Event Time","eventin"),description:(0,s.__)("Enable to hide event time on event page.","eventin"),keyName:"etn_hide_time_from_details",requirePro:!1},{title:(0,s.__)("Event Location","eventin"),description:(0,s.__)("Enable to hide event location on event page.","eventin"),keyName:"etn_hide_location_from_details",requirePro:!1},{title:(0,s.__)("Total Seats","eventin"),description:(0,s.__)("Enable to hide event seats on event page.","eventin"),keyName:"etn_hide_seats_from_details",requirePro:!1},{title:(0,s.__)("Ticket Sale End date","eventin"),description:(0,s.__)("Enable to show ticket sale end date on event page.","eventin"),keyName:"show_ticket_expiry_date",requirePro:!1},{title:(0,s.__)("Attendee Count","eventin"),description:(0,s.__)("Enable to hide event attendee count on event page.","eventin"),keyName:"etn_hide_attendee_count_from_details",requirePro:!1},{title:(0,s.__)("Event Organizers","eventin"),description:(0,s.__)("Enable to hide event organizers list on event page.","eventin"),keyName:"etn_hide_organizers_from_details",requirePro:!1},{title:(0,s.__)("Speakers Block","eventin"),description:(0,s.__)("Enable to hide event speakers list from event page.","eventin"),keyName:"etn_hide_speaker_from_details",requirePro:!1},{title:(0,s.__)("Organizer Email","eventin"),description:(0,s.__)("Enable the display of Organizer emails in the organizer list on the event page.","eventin"),keyName:"hide_oragnizer_email_from_events",requirePro:!1},{title:(0,s.__)("Event Schedule","eventin"),description:(0,s.__)("Enable to hide displaying schedule details from event Page.","eventin"),keyName:"etn_hide_schedule_from_details",requirePro:!1},{title:(0,s.__)("Schema Mark-up","eventin"),description:(0,s.__)("Activate to generate JSON schema markup for search ranking.","eventin"),keyName:"disable_rich_snippets_for_event",requirePro:!1},{title:(0,s.__)("Countdown Timer","eventin"),description:(0,s.__)("Enable to hide event countdown timer from event page.","eventin"),keyName:"checked_hide_countdown_from_details",requirePro:!0},{title:(0,s.__)("Event FAQ","eventin"),description:(0,s.__)("Enable to hide frequently asked questions option from event page.","eventin"),keyName:"hide_faq_from_details",requirePro:!0},{title:(0,s.__)("Social Media","eventin"),description:(0,s.__)("Enable to hide social media icons from event page.","eventin"),keyName:"hide_social_from_details",requirePro:!0},{title:(0,s.__)("Related Event","eventin"),description:(0,s.__)("Enable to hide Related Event on event page.","eventin"),keyName:"hide_related_event_from_details",requirePro:!0},{title:(0,s.__)("Dokan Event Publish Approval","eventin"),description:(0,s.__)("Automatically publish Dokan Vendor/Seller Event when an event is created.","eventin"),keyName:"dokan_event_auto_publish",requirePro:!0},{title:(0,s.__)("Vendor Event Category & Tags","eventin"),description:(0,s.__)("Enable to hide event category and tags on the event page for vendor-created events only","eventin"),keyName:"disable_category_and_tags",requirePro:!0}];return(0,l.createElement)(c.LK,null,(0,l.createElement)(a.A,{title:(0,s.__)("Event Details Settings","eventin")},(0,l.createElement)(c.zn,null,t.map(t=>(0,l.createElement)(r.A,{key:t.keyName,title:t.title,description:t.description,pro:t.requirePro,form:e,keyName:t.keyName,sx:{margin:"10px 0"},tooltipText:t?.tooltipText})),(0,l.createElement)(i.A,{title:(0,s.__)("Related Event Per Page","eventin"),description:(0,s.__)("Limit Number of related events to show in an single page.","eventin"),type:"number",placeholder:(0,s.__)("Set Number","eventin"),pro:!0,form:e,keyName:"related_events_per_page",sx:{margin:"10px 0"}}))))}},77027(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(27723),i=n(29491),r=n(47143),o=n(20086),c=n(89348),s=n(17526),m=n(90046),d=n(71424),_=n(28984);const u=(0,r.withSelect)(e=>{const t=e("eventin/global");return{settings:t.getSettings(),isSettingsLoading:t.isResolving("getSettings")}}),p=(0,i.compose)(u)(function(e){const{settings:t,isSettingsLoading:n}=e||{},i=t?.etn_surecart_enabled;return(0,l.createElement)(c.LK,null,(0,l.createElement)(o.A,{title:(0,a.__)("Payment Settings","eventin")},(0,l.createElement)(_.A,null),i&&(0,l.createElement)(m.A,null),(0,l.createElement)(d.A,null),(0,l.createElement)(s.A,null)))})},81810(e,t,n){n.d(t,{LK:()=>r,UH:()=>a,VV:()=>i});var l=n(69815);const a=l.default.div`
	background-color: '#F6F8F9';
	padding: '10px';
	@media ( max-width: 768px ) {
		padding: 10px 0px;
	}
`,i=l.default.div`
	background-color: #ffffff;
	border: 1px solid #e6e6f0;
	border-radius: 6px;
	margin: 10px 0;
	padding: 20px;
`,r=l.default.div`
	max-width: 780px;
	background-color: #f6f8f9;
	border-radius: 12px;
	padding: 24px 20px;
	.etn-settings-form {
		border: 1px solid #e6e6f0;
		border-radius: 6px;
		background-color: #ffffff;
		padding: 16px;

		.ant-form-item {
			margin-bottom: 10px;
		}
	}
	.etn-settings-inner-content {
		background-color: #ffffff;
		padding: 20px;
		border-radius: 8px;
	}
`},85982(e,t,n){n.d(t,{A:()=>p});var l=n(51609),a=n(69815),i=n(62567),r=n(60742),o=n(90070),c=n(43960),s=n(32099),m=n(54725),d=n(7638),_=n(48842);const u=(0,a.default)(i.A)`
	.ant-collapse-content {
		display: none;
	}

	border: 1px solid #e6e6f0;
	border-radius: 6px;
	.ant-collapse-item {
		border-bottom: 1px solid transparent !important;
	}
	.ant-collapse-extra {
		margin-left: 10px;
	}
`,p=e=>{const{title:t,description:n,form:a,keyName:i,sx:p,tooltipText:v,pro:g}=e,E=!0===r.A.useWatch(i,{form:a,preserve:!0}),h=!!window.localized_data_obj.evnetin_pro_active,f=g&&!h,b=e=>{"boolean"==typeof e?a.setFieldsValue({[i]:!!e||null}):a.setFieldsValue({[i]:!!Boolean(e?.length)||null})},A=[{key:"1",label:(0,l.createElement)(o.A,{direction:"vertical",size:0},(0,l.createElement)(_.A,{sx:{color:"#334155",fontWeight:600,display:"flex",alignItems:"center"}},t,v&&(0,l.createElement)(s.A,{title:v},(0,l.createElement)("span",null,"   ",(0,l.createElement)(m.InfoCircleFilled,{width:15,height:15,fill:"#747474"})))),(0,l.createElement)(_.A,{sx:{fontSize:"14px",color:"#747474"}},n)),showArrow:!1,extra:f?(0,l.createElement)(d.Oc,null):(0,l.createElement)(r.A.Item,{name:i,valuePropName:"checked"},(0,l.createElement)(c.A,{onChange:b}))}];return(0,l.createElement)(u,{activeKey:E&&["1"],items:A,onChange:b,style:p,collapsible:f?"disabled":"header"})}},87318(e,t,n){n.d(t,{A:()=>g});var l=n(51609),a=n(27723),i=n(16370),r=n(92911),o=n(60742),c=n(47152),s=n(36492),m=n(75093),d=n(49871),_=n(20086),u=n(48842),p=n(13313),v=n(89348);function g(){const{form:e,settings:t}=(0,p.EF)(),n=o.A.useWatch("sell_tickets",{form:e,preserve:!0}),g=o.A.useWatch("surecart_status",{form:e,preserve:!0}),E="woocommerce"===n,h=window?.localized_data_obj?.currency_list,f=window?.localized_data_obj?.admin_url+"/admin.php?page=wc-settings",b=window?.localized_data_obj?.admin_url+"/admin.php?page=sc-settings&tab=display_currency",A=[{value:"right",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Right","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("100$","eventin")))},{value:"left",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Left","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("$100","eventin")))},{value:"right_space",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Right with space","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("100 $","eventin")))},{value:"left_space",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Left with space","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("$ 100","eventin")))}],y=[{value:"comma_dot",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Comma-Dot","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("15,000.00","eventin")))},{value:"dot_comma",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Dot-Comma","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("15.000,00","eventin")))},{value:"space_dot",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Space-Dot","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("15 000.00","eventin")))},{value:"space_comma",label:(0,l.createElement)(r.A,{gap:5,align:"center",justify:"space-between"},(0,l.createElement)(u.A,null," ",(0,a.__)("Space-Comma","eventin")),(0,l.createElement)(u.A,null,(0,a.__)("15 000,00","eventin")))}];return(0,l.createElement)(v.LK,null,(0,l.createElement)(_.A,{title:(0,a.__)("Currency Settings","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Choose your preferred currency and currency symbol.","eventin")," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/payment-type?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations",target:"_blank"},(0,a.__)("Read Documentation","eventin")),(0,l.createElement)("br",null),E&&(0,l.createElement)("strong",null,(0,a.__)("Note: When WooCommerce payment is enabled, this setting will be ignored","eventin")),g&&(0,l.createElement)("strong",null,(0,a.__)("Note: When SureCart payment is enabled, this setting will be ignored.","eventin")))},(0,l.createElement)(v.zn,null,E&&(0,l.createElement)("div",{style:{marginBottom:16}},(0,l.createElement)(u.A,null," ",(0,a.__)("Currency settings is managed by ","eventin"),(0,l.createElement)(d.A,{href:f,target:"_blank"},(0,a.__)("WooCommerce Settings","eventin")))),g&&(0,l.createElement)("div",{style:{marginBottom:16}},(0,l.createElement)(u.A,null,(0,a.__)("Currency settings is managed by ","eventin"),(0,l.createElement)(d.A,{href:b,target:"_blank"},(0,a.__)("SureCart Settings","eventin")))),(0,l.createElement)(c.A,{gutter:16},(0,l.createElement)(i.A,{xl:12,span:24},(0,l.createElement)(o.A.Item,{label:(0,a.__)("Select Preferred Currency","eventin"),name:"etn_settings_country_currency",tooltip:(0,a.__)("When WooCommerce payment is enabled, this setting will be ignored.","eventin")},(0,l.createElement)(s.A,{showSearch:!0,size:"large",placeholder:(0,a.__)("Choose preferred currency","eventin"),filterOption:(e,t)=>{var n;return(null!==(n=t?.children[0]?.toLowerCase())&&void 0!==n?n:"")?.includes(e?.toLowerCase())},filterSort:(e,t)=>{var n,l;return(null!==(n=e?.children[0])&&void 0!==n?n:"")?.toLowerCase()?.localeCompare((null!==(l=t?.children[0])&&void 0!==l?l:"")?.toLowerCase())},disabled:E||g,onChange:t=>{e.setFieldsValue({etn_settings_country_currency:t})},style:{width:"100%"}},h?.map((e,t)=>(0,l.createElement)(s.A.Option,{key:`props.key-${t}`,value:e?.name},function(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}(e?.country),"--",(0,l.createElement)("span",{dangerouslySetInnerHTML:{__html:e?.name+"("+e?.symbol+")"}})))))),(0,l.createElement)(i.A,{xl:12,span:24},(0,l.createElement)(o.A.Item,{label:(0,a.__)("Price Symbol Position","eventin"),name:"currency_position",tooltip:(0,a.__)("This controls the position of the currency symbol.","eventin")},(0,l.createElement)(s.A,{size:"large",placeholder:(0,a.__)("Choose Price Symbol Position","eventin"),style:{width:"100%"},options:A,disabled:E||g}))),(0,l.createElement)(i.A,{xl:12,span:24},(0,l.createElement)(o.A.Item,{label:(0,a.__)("Price Separator","eventin"),name:"decimal_separator",tooltip:(0,a.__)("This sets the price separator of display is the price","eventin")},(0,l.createElement)(s.A,{size:"large",placeholder:(0,a.__)("Choose Price Separator","eventin"),style:{width:"100%"},options:y,disabled:E||g}))),(0,l.createElement)(i.A,{xl:12,span:24},(0,l.createElement)(o.A.Item,{label:(0,a.__)("Number of decimals","eventin"),name:"decimals",tooltip:(0,a.__)("This sets the number of decimal points shown in displayed prices","eventin")},(0,l.createElement)(m.NumberInput,{placeholder:(0,a.__)("Add number of decimals","eventin"),disabled:E||g})))))))}},89191(e,t,n){n.d(t,{A:()=>o});var l=n(51609),a=n(18028),i=n(89348),r=n(47767);function o(e){const{menus:t}=e;return(0,l.createElement)(i.VV,null,(0,l.createElement)(a.A,{menus:t}),(0,l.createElement)(r.Outlet,null))}},89348(e,t,n){n.d(t,{LK:()=>r,VV:()=>i,ff:()=>a,hE:()=>s,mc:()=>c,zn:()=>o});var l=n(69815);const a=l.default.div`
	background-color: #f4f6fa;
	padding: 0px 32px;
	min-height: 100vh;

	@media ( max-width: 768px ) {
		padding: 12px 5px;
	}
`,i=l.default.div`
	width: 100%;
	height: 100%;
	display: flex;
`,r=l.default.div`
	width: 100%;
	min-height: max-content;
	padding: 20px;
	padding-left: 40px;
	background-color: #ffffff;

	@media ( max-width: 768px ) {
		padding: 20px 0px;
	}
`,o=l.default.div`
	width: 100%;
	background-color: #ffffff;
	padding: 20px;
	border-radius: 8px;
	@media ( max-width: 768px ) {
		padding: 10px;
	}
	.ant-collapse
		> .ant-collapse-item
		.ant-collapse-collapsible-header
		.ant-collapse-header-text {
		flex: auto;
	}
`,c=l.default.div`
	border: 1px solid #e6e6f0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	background-color: white;
	.ant-form-item {
		margin-bottom: 0;
	}
`,s=l.default.h3`
	font-size: 14px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #334155;
	height: 20px;
`},90046(e,t,n){n.d(t,{A:()=>E});var l=n(51609),a=n(27723),i=n(38181),r=n(16370),o=n(62567),c=n(60742),s=n(47152),m=n(43960),d=n(54725),_=n(61517),u=n(10012),p=n(6836),v=n(13313);const g=window?.localized_data_obj?.site_url+"/wp-json/surecart/v1/webhook";function E(){const{form:e}=(0,v.EF)(),t=c.A.useWatch("surecart_status",{form:e,preserve:!0});t&&e.setFieldsValue({sell_tickets:null,payment_method:"",etn_sells_engine_stripe:null,paypal_status:!1});const n=[{key:"1",label:(0,l.createElement)(_.A,{title:(0,a.__)("SureCart","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Enable SureCart Payments.","eventin")," "," ",(0,l.createElement)("a",{href:"https://support.themewinter.com/docs/plugins/plugin-docs/payment-type",target:"_blank"},(0,a.__)("Read Documentation","eventin")))}),children:(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(s.A,{gutter:10},(0,l.createElement)(r.A,{md:24,sm:24,xs:24},(0,l.createElement)(c.A.Item,{label:(0,a.__)("SureCart Webhook URL","eventin"),name:""},(0,l.createElement)(u.I3,{copyText:g||"",buttonTooltipText:(0,a.__)("Copy Webhook URL","eventin"),icon:(0,l.createElement)(d.CopyIconOutlined,null),placeholder:(0,a.__)("Enter webhook url","eventin")})))),(0,l.createElement)(s.A,{gutter:10},(0,l.createElement)(r.A,{md:24,span:24},(0,l.createElement)(c.A.Item,{name:"surecart_sandbox",valuePropName:"checked"},(0,l.createElement)(i.A,null,(0,a.__)("Test payments with SureCart sandbox","eventin")))))),showArrow:!1,extra:(0,l.createElement)(c.A.Item,{name:"surecart_status",valuePropName:"checked"},(0,l.createElement)(m.A,{onChange:t=>e.setFieldsValue({surecart_status:!!t})}))}];return(0,l.createElement)(o.A,{activeKey:t&&["1"],items:n,onChange:t=>{e.setFieldsValue({surecart_status:Boolean(t.length)}),(0,p.scrollToTop)()},style:{margin:"20px 0px"},collapsible:"header"})}},93812(e,t,n){n.d(t,{A:()=>A});var l=n(51609),a=n(86087),i=n(27723),r=n(52619),o=n(69815),c=n(16370),s=n(62567),m=n(92911),d=n(60742),_=n(79888),u=n(47152),p=n(36492),v=n(54725),g=n(7638),E=n(10012),h=n(80734),f=n(64282);const b=(0,o.default)(s.A)`
	.ant-collapse-content-box {
		background-color: #ffffff;
	}
`;function A(e){const{field:t,remove:n,form:o}=e,[s,A]=(0,a.useState)(!1),{name:x,id:k}=d.A.useWatch(["webhook_list",t.name],{form:o,preserve:!0})||{},w=!!k,S=async()=>{const e=o.getFieldValue(["webhook_list",t.name]);try{e?.id&&(await f.A.webhooks.deleteWebhook(e.id),n(t.name),(0,r.doAction)("eventin_notification",{type:"success",message:(0,i.__)("Successfully deleted the webhook!","eventin")}))}catch(e){console.log(e),(0,r.doAction)("eventin_notification",{type:"error",message:(0,i.__)("Couldn't delete the webhook!","eventin"),description:e?.message||null})}},C=[{key:1,label:x||(0,i.__)("New Webhook","eventin"),children:(0,l.createElement)(u.A,{gutter:[20,0]},(0,l.createElement)(c.A,{xs:24},(0,l.createElement)(d.A.Item,{name:[t.name,"name"],label:(0,i.__)("Webhook Name","eventin")},(0,l.createElement)(E.ks,{placeholder:(0,i.__)("Enter Webhook Name","eventin")}))),(0,l.createElement)(c.A,{md:12,xs:24},(0,l.createElement)(d.A.Item,{name:[t.name,"status"],label:(0,i.__)("Status","eventin")},(0,l.createElement)(p.A,{placeholder:(0,i.__)("Select Webhook status","eventin"),size:"large",options:[{value:"active",label:(0,i.__)("Active","eventin")},{value:"pending",label:(0,i.__)("Pending","eventin")},{value:"disabled",label:(0,i.__)("Disabled","eventin")}]}))),(0,l.createElement)(c.A,{md:12,xs:24},(0,l.createElement)(d.A.Item,{name:[t.name,"topic"],label:(0,i.__)("Topic","eventin")},(0,l.createElement)(p.A,{placeholder:(0,i.__)("Select Webhook Topic","eventin"),options:y,showSearch:!0,size:"large"}))),(0,l.createElement)(c.A,{md:12,xs:24},(0,l.createElement)(d.A.Item,{name:[t.name,"delivery_url"],label:(0,i.__)("Delivery URL","eventin")},(0,l.createElement)(E.ks,{placeholder:(0,i.__)("Enter Delivery URL","eventin")}))),(0,l.createElement)(c.A,{md:12,xs:24},(0,l.createElement)(d.A.Item,{name:[t.name,"secrete"],label:(0,i.__)("Secret Key","eventin")},(0,l.createElement)(E.h5,{size:"large",placeholder:(0,i.__)("Enter Secret Key","eventin")}))),(0,l.createElement)(c.A,{xs:24},(0,l.createElement)(d.A.Item,{name:[t.name,"description"],label:(0,i.__)("Description","eventin")},(0,l.createElement)(_.A.TextArea,{rows:3}))),(0,l.createElement)(c.A,{xs:24},(0,l.createElement)(m.A,{gap:15,align:"middle",justify:"end"},(0,l.createElement)(g.Ay,{variant:g.Rm},(0,i.__)("Cancel","eventin")),(0,l.createElement)(g.Ay,{variant:g.zB,onClick:async()=>{const e=o.getFieldValue(["webhook_list",t.name]);A(!0);try{if(e?.id)await f.A.webhooks.updateWebhook(e.id,e),(0,r.doAction)("eventin_notification",{type:"success",message:(0,i.__)("Successfully updated webhook!","eventin")});else{const n=await f.A.webhooks.createWebhook(e);(0,r.doAction)("eventin_notification",{type:"success",message:(0,i.__)("Successfully created webhook!","eventin")}),o.setFieldValue(["webhook_list",t.name],n)}}catch(e){(0,r.doAction)("eventin_notification",{type:"error",message:(0,i.__)("Couldn't create webhook!","eventin"),description:e?.message||null})}finally{A(!1)}},loading:s},(0,i.__)(w?"Update":"Create","eventin"))))),extra:(0,l.createElement)(g.Ay,{variant:g.qy,icon:(0,l.createElement)(v.DeleteOutlined,null),onClick:()=>{(0,h.A)({title:(0,i.__)("Are you sure?","eventin"),content:(0,i.__)("Are you sure you want to delete this webhook?","eventin"),onOk:S})},size:"small"})}];return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b,{expandIconPosition:"end",items:C,style:{margin:"10px 0px"},defaultActiveKey:0===t?.name&&["1"]}))}const y=[{value:"event.created",label:(0,i.__)("Event Create","eventin")},{value:"event.updated",label:(0,i.__)("Event Update","eventin")},{value:"event.deleted",label:(0,i.__)("Event Delete","eventin")},{value:"event.restored",label:(0,i.__)("Event Restore","eventin")},{value:"speaker.created",label:(0,i.__)("Speaker Create","eventin")},{value:"speaker.updated",label:(0,i.__)("Speaker Update","eventin")},{value:"speaker.deleted",label:(0,i.__)("Speaker Delete","eventin")},{value:"speaker.restored",label:(0,i.__)("Speaker Restore","eventin")},{value:"attendee.created",label:(0,i.__)("Attendee Create","eventin")},{value:"attendee.updated",label:(0,i.__)("Attendee Update","eventin")},{value:"attendee.deleted",label:(0,i.__)("Attendee Delete","eventin")},{value:"attendee.restored",label:(0,i.__)("Attendee Restore","eventin")},{value:"schedule.created",label:(0,i.__)("Schedule Create","eventin")},{value:"schedule.updated",label:(0,i.__)("Schedule Update","eventin")},{value:"schedule.deleted",label:(0,i.__)("Schedule Delete","eventin")},{value:"schedule.restored",label:(0,i.__)("Schedule Restore","eventin")},{value:"order.created",label:(0,i.__)("Booking Create","eventin")},{value:"order.updated",label:(0,i.__)("Booking Update","eventin")},{value:"order.deleted",label:(0,i.__)("Booking Delete","eventin")},{value:"order.restored",label:(0,i.__)("Booking Restore","eventin")}]},94733(e,t,n){n.d(t,{A:()=>u});var l=n(51609),a=n(16370),i=n(47152),r=n(90070),o=n(32099),c=n(54725),s=n(7638),m=n(48842),d=n(81810),_=n(10012);const u=e=>{const{title:t,description:n,form:u,keyName:p,sx:v,tooltipText:g,pro:E,type:h,placeholder:f}=e,b=E&&!window.localized_data_obj.evnetin_pro_active;return(0,l.createElement)(d.VV,{style:v},(0,l.createElement)(i.A,{gutter:[16,16],style:{alignItems:"center"}},(0,l.createElement)(a.A,{sm:24,md:b?18:16},(0,l.createElement)(r.A,{direction:"vertical",size:0},(0,l.createElement)(m.A,{sx:{color:"#334155",fontWeight:600,display:"flex",alignItems:"center"}},t,g&&(0,l.createElement)(o.A,{title:g},(0,l.createElement)("span",null,"   ",(0,l.createElement)(c.InfoCircleFilled,{width:15,height:15,fill:"#747474"})))),(0,l.createElement)(m.A,{sx:{fontSize:"14px",color:"#747474"}},n))),(0,l.createElement)(a.A,{sm:24,md:b?4:8,style:{width:"100%",height:"40px"}},b?(0,l.createElement)(s.Oc,null):(0,l.createElement)(_.ks,{name:p,placeholder:f,type:h}))))}},94758(e,t,n){n.d(t,{A:()=>s});var l=n(51609),a=n(20086),i=n(73810),r=n(13313),o=n(89348),c=n(27723);const s=function(){const{form:e}=(0,r.EF)(),t=[{title:(0,c.__)("Show Email","eventin"),description:(0,c.__)("Enable to show email on speaker details page.","eventin"),keyName:"show_speaker_email",requirePro:!1},{title:(0,c.__)("Send User Notification","eventin"),description:(0,c.__)("Send the new user an email about their account.","eventin"),keyName:"send_user_notification",requirePro:!1}];return(0,l.createElement)(o.LK,null,(0,l.createElement)(a.A,{title:(0,c.__)("Speaker Details Settings","eventin")},(0,l.createElement)(o.zn,null,t.map(t=>(0,l.createElement)(i.A,{key:t.keyName,title:t.title,description:t.description,pro:t.requirePro,form:e,keyName:t.keyName,sx:{margin:"10px 0"},tooltipText:t?.tooltipText})))))}},98553(e,t,n){n.d(t,{A:()=>f});var l=n(51609),a=n(27723),i=n(500),r=n(73296),o=n(10012),c=n(40372),s=n(54725),m=n(75093),d=n(7638),_=n(85982),u=n(16370),p=n(92911),v=n(60742),g=n(47152),E=n(36492);const{useBreakpoint:h}=c.Ay,f=e=>{const{modalOpen:t,setModalOpen:n,form:c}=e,f=c.getFieldValue(["remainder_time"]),b=c.getFieldValue(["email","reminder_email","from"]),A=c.getFieldValue(["email","reminder_email","subject"]),y=c.getFieldValue(["email","reminder_email","body"]),x=!!h()?.md;return(0,l.createElement)(i.A,{title:(0,a.__)("Event Reminder Email Configuration","eventin"),open:t,onCancel:()=>{c.setFieldValue(["remainder_time"],f),c.setFieldValue(["email","reminder_email","from"],b),c.setFieldValue(["email","reminder_email","subject"],A),c.setFieldValue(["email","reminder_email","body"],y),n(!1)},cancelText:(0,a.__)("Cancel","eventin"),okText:(0,a.__)("Save","eventin"),onOk:()=>{n(!1)},destroyOnHidden:!0,width:x?"680px":"90%",styles:{body:{height:x?"700px":"auto",overflowY:"auto"}}},(0,l.createElement)("div",null,(0,l.createElement)(p.A,{vertical:!0,gap:20},(0,l.createElement)(_.A,{key:["email","reminder_email","send_to_admin"],title:(0,a.__)("Send Email to Admin","eventin"),description:(0,a.__)("Enable to send email to admin","eventin"),form:c,keyName:["email","reminder_email","send_to_admin"],sx:{margin:"10px 0"}}),(0,l.createElement)(v.A.List,{name:["remainder_time"],initialValue:[{"duration-time":1,custom_duration_type:"day"}]},(e,{add:t,remove:n},{errors:i})=>(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"0px 15px"}},e.map(e=>(0,l.createElement)(g.A,{key:e.key,gutter:[16,16],align:"middle"},(0,l.createElement)(u.A,{xs:24,md:11},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,a.__)("Set Custom Time","eventin")),(0,l.createElement)(v.A.Item,{name:[e.name,"duration-time"],rules:[{validator:(e,t)=>!t||Number.isInteger(t)?Promise.resolve():Promise.reject(new Error("Please enter an integer!"))}]},(0,l.createElement)(m.NumberInput,{placeholder:(0,a.__)("Enter Duration","eventin"),min:1,step:1,sx:{fontWeight:500,height:"40px",padding:"0px 11px"}}))),(0,l.createElement)(u.A,{xs:24,md:11},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,a.__)("Time Type","eventin")),(0,l.createElement)(v.A.Item,{name:[e.name,"custom_duration_type"],style:{width:"100%"}},(0,l.createElement)(E.A,{placeholder:(0,a.__)("Select Time Type","eventin"),size:"large",options:[{label:(0,a.__)("Minute","eventin"),value:"minute"},{label:(0,a.__)("Hour","eventin"),value:"hour"},{label:(0,a.__)("Day","eventin"),value:"day"}],allowClear:!0,style:{height:"40px"}}))),(0,l.createElement)(u.A,{xs:24,md:2,style:{marginTop:"10px"}},0!==e?.key&&(0,l.createElement)(d.Ay,{variant:d.Rm,onClick:()=>n(e.name),icon:(0,l.createElement)(s.DeleteOutlined,null)})))),0===e?.length&&(0,a.__)("To set reminder time, click on Add button."),(0,l.createElement)(d.Ay,{variant:d.Vt,onClick:()=>t(),size:"middle",sx:{fontSize:"14px",marginTop:"-5px",padding:"0px 16px",width:"75px",color:"#6B2EE5",borderColor:"#6B2EE5"},disabled:0===e?.key},(0,a.__)("Add","eventin")))),(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"0px 15px"}},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,a.__)("From Email","eventin")),(0,l.createElement)(o.ks,{name:["email","reminder_email","from"],placeholder:(0,a.__)("Enter your email","eventin"),rules:[{type:"email",message:"Please enter a valid email address"}]})),(0,l.createElement)("div",{style:{display:"flex",flexDirection:"column",gap:"10px",padding:"0px 15px"}},(0,l.createElement)("span",{style:{fontWeight:600,fontSize:16,color:"#414454"}},(0,a.__)("Email Subject","eventin")),(0,l.createElement)(o.ks,{name:["email","reminder_email","subject"],placeholder:(0,a.__)("Enter email subject","eventin")})),(0,l.createElement)(r.A,{keyName:["email","reminder_email","body"],label:(0,a.__)("Email Body","eventin"),initialValue:y,form:c,sx:{height:"200px"}}))))}}}]);