"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),m=n(47152),s=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 A=!!window.localized_data_obj.evnetin_pro_active,b=f&&!A;return(0,l.createElement)(d,null,(0,l.createElement)(_,null,t,n&&(0,l.createElement)(a.A,{title:n})),b?(0,l.createElement)(s.A,null):(0,l.createElement)(o.A.Item,{name:h,initialValue:i?.[0]?.value},(0,l.createElement)(u,{direction:"horizontal"},(0,l.createElement)(m.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:()=>s});var l=n(51609),a=n(62567),i=n(60742),r=n(43960),o=n(7638),c=n(61517),m=n(81810);function s(e){const{title:t,description:n,pro:s,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=s&&!E,f=()=>{d.setFieldsValue({[_]:!g})},A=[{key:"1",label:(0,l.createElement)(c.A,{title:t,description:n,tooltip:u}),children:(0,l.createElement)(m.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:A,onChange:f,style:v,collapsible:h?"disabled":"header"})}},5567:(e,t,n)=>{n.d(t,{A:()=>l});const l={zoom:"https://support.themewinter.com/docs/plugins/plugin-docs/integration/zoom-meeting-2/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations",groundHogg:"https://support.themewinter.com/docs/plugins/plugin-docs/integration/groundhogg-integration/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations",googleMap:"https://support.themewinter.com/docs/plugins/plugin-docs/event/event-location/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations",googleMeet:"https://support.themewinter.com/docs/plugins/plugin-docs/integration/google-meet/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations",eventinAi:"https://support.themewinter.com/docs/plugins/plugin-docs/integration/ai-integration/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations"}},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),m=n(75063),s=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)(m.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)(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,o.__)("Add Webhook","eventin")))))))))})},17526:(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),m=n(47152),s=n(43960),d=n(7638),_=n(61517),u=n(10012),p=n(6836),v=n(13313);const g="https://support.themewinter.com/docs/plugins/plugin-docs/payment-type/paypal/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations";function E(){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:""});const E=[{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:g,target:"_blank"},(0,a.__)("Read Documentation","eventin")))}),children:(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(m.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)(m.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)(s.A,{onChange:t=>e.setFieldsValue({paypal_status:!!t})})):(0,l.createElement)(d.Oc,null)}];return(0,l.createElement)(o.A,{activeKey:t&&["1"],items:E,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),m=n(61953);const{useBreakpoint:s}=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=(s().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)(m.oe,null,d.map(e=>(0,l.createElement)(m.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)}},20334:(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(61517),n(20086)),m=n(10012),s=n(13313),d=n(89348),_=n(4936),u=n(5567);function p(){const{form:e}=(0,s.EF)();return(0,l.createElement)(d.LK,null,(0,l.createElement)(c.A,{title:(0,a.__)("Eventin AI Integrations Settings","eventin")},(0,l.createElement)(d.zn,null,(0,l.createElement)(_.A,{title:(0,a.__)("Enable Eventin AI","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Connect Eventin with OpenAI to automate event content.","eventin")," ",(0,l.createElement)("a",{href:u.A.eventinAi,target:"_blank"},(0,a.__)("Read Documentation","eventin"))),pro:!0,form:e,keyName:"etn_ai_api",sx:{margin:"10px 0"}},(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(o.A,null,(0,l.createElement)(i.A,{span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Open AI Key","eventin"),name:"eventin_ai_auth_key"},(0,l.createElement)(m.h5,{size:"large",placeholder:(0,a.__)("Enter Open AI key","eventin")})))))))))}},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),m=n(32099),s=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:A=!1,placeholder:b,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)(m.A,{title:E},(0,l.createElement)("span",null,"   ",(0,l.createElement)(s.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:"44px"}},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:A?"multiple":"default",placeholder:b,style:{minHeight:"44px",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),m=n(73810),s=n(13313),d=n(89348),_=n(27743),u=n(62929);function p(){const{form:e}=(0,s.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)(m.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:()=>m});var l=n(51609),a=n(27723),i=n(60200),r=n(38412),o=n(89348),c=n(75093);function m(){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`}))}},27294:(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(7638),n(61517),n(20086)),m=n(10012),s=n(13313),d=n(89348),_=n(4936),u=n(5567);function p(){const{form:e}=(0,s.EF)();return(0,l.createElement)(d.LK,null,(0,l.createElement)(c.A,{title:(0,a.__)("Google Map Integrations Settings","eventin")},(0,l.createElement)(d.zn,null,(0,l.createElement)(_.A,{title:(0,a.__)("Enable Google Map","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Connect Google Map for location autocompletion.","eventin")," ",(0,l.createElement)("a",{href:u.A.googleMap,target:"_blank"},(0,a.__)("Read Documentation","eventin"))),pro:!0,form:e,keyName:"etn_googlemap_api",sx:{margin:"10px 0"}},(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(o.A,null,(0,l.createElement)(i.A,{span:24},(0,l.createElement)(r.A.Item,{label:(0,a.__)("Map API Key","eventin"),name:"google_api_key"},(0,l.createElement)(m.h5,{size:"large",placeholder:(0,a.__)("Enter map api key","eventin")})))))))))}},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),m=n(7638),s=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)(m.Ay,{variant:m.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)(m.Ay,{variant:m.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)(s.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)(s.A,{sx:{width:"100%",justifyContent:"flex-start"}}))))))))}},28984:(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),m=n(43960),s=n(61517),d=n(73810),_=(n(10012),n(13313)),u=n(22977);const p="https://support.themewinter.com/docs/plugins/plugin-docs/payment-type/woocommerce/?utm_source=doc&utm_medium=eventin&utm_campaign=eventin+documentations";function v(){const{form:e}=(0,_.EF)(),t=o.A.useWatch("sell_tickets",{form:e,preserve:!0}),n=e.getFieldValue("wc_order_status_list",!0),v=n?Object.entries(n).map(([e,t])=>({label:t,value:e})):[],g="woocommerce"===t;g&&e.setFieldsValue({etn_sells_engine_stripe:null,paypal_status:!1});const E=[{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}],h=[{key:"1",label:(0,l.createElement)(s.A,{title:(0,a.__)("WooCommerce","eventin"),description:(0,l.createElement)("span",null,(0,a.__)("Enable WooCommerce Payments.","eventin")," "," ",(0,l.createElement)("a",{href:p,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,E.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:v,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)(m.A,{onChange:t=>e.setFieldsValue({sell_tickets:t?"woocommerce":null,payment_method:t?"woocommerce":""})}))}];return(0,l.createElement)(r.A,{activeKey:g&&["1"],items:h,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),m=n(60742),s=n(40372),d=n(36492);const{useBreakpoint:_}=s.Ay,u=e=>{const{modalOpen:t,setModalOpen:n,form:s}=e,[u,p]=(0,a.useState)({width:"95%",height:"auto"}),v=s.getFieldValue(["email","rsv_email","from"]),g=s.getFieldValue(["email","rsv_email","response_type"]),E=s.getFieldValue(["email","rsv_email","subject"]),h=s.getFieldValue(["email","rsv_email","body"]),f=!!_()?.md,A=!!_()?.xxl;return(0,a.useEffect)(()=>{p(A?{width:"680px",height:"700px"}:f?{width:"600px",height:"700px"}:{width:"95%",height:"auto"})},[f,A]),(0,l.createElement)(r.A,{title:(0,i.__)("RSVP Email Notification","eventin"),open:t,onCancel:()=>{s.setFieldValue(["email","rsv_email","from"],v),s.setFieldValue(["email","rsv_email","response_type"],g),s.setFieldValue(["email","rsv_email","subject"],E),s.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)(m.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:s,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),m=n(89348),s=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)(m.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)(m.zn,null,(0,l.createElement)(_.A,{vertical:!0,gap:20},(0,l.createElement)(s.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)(s.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:()=>R});var l=n(51609),a=n(54725),i=n(32467),r=n(27723),o=n(89191),c=n(68484),m=n(68482),s=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),A=n(94758),b=n(89443),y=n(20334),x=n(27294),k=n(44053),w=n(78295),S=n(54007),z=n(77027),C=n(87318),I=n(65330);const P=[{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)(A.A,null)}],N=[{label:(0,r.__)("Zoom","eventin"),title:(0,r.__)("Zoom","eventin"),slug:"zoom",icon:(0,l.createElement)(a.ZoomOutlinedIcon,null),element:(0,l.createElement)(w.A,null)},{label:(0,r.__)("Google Map","eventin"),title:(0,r.__)("Google Map","eventin"),slug:"google-map",icon:(0,l.createElement)(a.GoogleMapOutlinedIcon,null),element:(0,l.createElement)(x.A,null)},{label:(0,r.__)("Google Meet","eventin"),title:(0,r.__)("Google Meet","eventin"),slug:"google-meet",icon:(0,l.createElement)(a.GoogleMapOutlinedIcon,null),element:(0,l.createElement)(k.A,null)},{label:(0,r.__)("Eventin AI","eventin"),title:(0,r.__)("Eventin AI","eventin"),slug:"eventin-ai",icon:(0,l.createElement)(a.EventinAiOutlinedIcon,null),element:(0,l.createElement)(y.A,null)}],F=[{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)(z.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)(I.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)(C.A,null)}],V=[{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)}],T=[{label:(0,r.__)("General","eventin"),title:(0,r.__)("General","eventin"),slug:"general",icon:(0,l.createElement)(a.GearIcon,null),element:(0,l.createElement)(s.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)(m.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)}],R=[{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:P}),children:P},{label:(0,r.__)("Integrations","eventin"),title:(0,r.__)("Integrations","eventin"),slug:"integrations",icon:(0,l.createElement)(a.IntegrationsIcon,null),element:(0,l.createElement)(b.A,{menus:N}),children:N},{label:(0,r.__)("Payments","eventin"),title:(0,r.__)("Payments","eventin"),slug:"payments",icon:(0,l.createElement)(a.PaymentIcon,null),element:(0,l.createElement)(S.A,{menus:F}),children:F},{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:V}),children:V},{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:T}),children:T}]},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)),m=n(92911),s=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)(m.A,{vertical:!0,gap:20},(0,l.createElement)(s.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}))))))}},44053:(e,t,n)=>{n.d(t,{A:()=>h});var l=n(51609),a=n(86087),i=n(27723),r=n(16370),o=n(60742),c=n(47152),m=n(54725),s=n(7638),d=n(4936),_=n(20086),u=n(48842),p=n(10012),v=n(13313),g=n(89348),E=n(5567);function h(){const[e,t]=(0,a.useState)(!0),{form:n,settings:h}=(0,v.EF)(),f=h?.google_meet_client_id,A=h?.google_meet_client_secret_key,b=h?.google_meet_authorize_url,y=h?.google_meet_connected,x=o.A.useWatch("google_meet_redirect_url"),k=window?.localized_data_obj?.site_url+"/eventin-integration/google-auth";return(0,a.useEffect)(()=>{t(!!(f&&A&&b)),n.setFieldsValue({google_meet_redirect_url:k})},[h]),(0,l.createElement)(g.LK,null,(0,l.createElement)(_.A,{title:(0,i.__)("Google Meet Integrations Settings","eventin")},(0,l.createElement)(g.zn,null,(0,l.createElement)(d.A,{title:(0,i.__)("Enable Google Meet","eventin"),description:(0,l.createElement)("span",null,(0,i.__)("Connect with Google Meet to host online events.","eventin")," ",(0,l.createElement)("a",{href:E.A.googleMeet,target:"_blank"},(0,i.__)("Read Documentation","eventin"))),pro:!0,form:n,keyName:"etn_meet_api",sx:{margin:"10px 0"}},(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(c.A,{gutter:10},(0,l.createElement)(r.A,{md:12,sm:24,xs:24},(0,l.createElement)(o.A.Item,{label:(0,i.__)("Client ID","eventin"),name:"google_meet_client_id"},(0,l.createElement)(p.h5,{size:"large",placeholder:(0,i.__)("Enter google client id","eventin")}))),(0,l.createElement)(r.A,{md:12,sm:24,xs:24},(0,l.createElement)(o.A.Item,{label:(0,i.__)("Client Secret","eventin"),name:"google_meet_client_secret_key"},(0,l.createElement)(p.h5,{size:"large",placeholder:(0,i.__)("Enter google client secret","eventin")})))),(0,l.createElement)(c.A,null,(0,l.createElement)(r.A,{span:24},(0,l.createElement)(o.A.Item,{label:(0,i.__)("Authorized Redirect URL","eventin"),name:"google_meet_redirect_url"},(0,l.createElement)(p.I3,{copyText:x,buttonTooltipText:(0,i.__)("Copy URL","eventin"),icon:(0,l.createElement)(m.CopyFillIcon,null),placeholder:(0,i.__)("Enter redirect url","eventin")})))),!e&&(0,l.createElement)(c.A,null,(0,l.createElement)(r.A,{span:24},(0,l.createElement)(u.A,{sx:{color:"#EF4444",display:"flex",alignItems:"center"}},(0,l.createElement)(m.AlertIcon,null),"  ",(0,i.__)("Please provide client id and client secret first! and note: save changes before connecting.","eventin")))),y?(0,l.createElement)(s.Ay,{variant:s.Vt,size:"default",sx:{height:"36px",padding:"5px 15px",marginTop:"10px"},disabled:!0},(0,i.__)("Connected","eventin")):(0,l.createElement)(s.Ay,{variant:s.Vt,size:"default",sx:{height:"36px",padding:"5px 15px",marginTop:"10px"},href:b,disabled:!e},(0,i.__)("Connect","eventin")))))))}},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),m=n(10012),s=n(40372);const{useBreakpoint:d}=s.Ay,_=e=>{const{modalOpen:t,setModalOpen:n,form:s}=e,[_,u]=(0,a.useState)({width:"95%",height:"auto"}),p=s.getFieldValue(["email","purchase_email","from"]),v=s.getFieldValue(["email","purchase_email","subject"]),g=s.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:()=>{s.setFieldValue(["email","purchase_email","from"],p),s.setFieldValue(["email","purchase_email","subject"],v),s.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:"0px 15px"}},(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:s,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:s,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)(m.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)(m.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:s,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),m=n(61953);const s=(0,i.withSelect)(e=>{const t=e("eventin/global");return{userPermissions:t.getUserPermissions(),isUserPermissionListLoading:t.isResolving("getUserPermissions")}}),d=(0,a.compose)(s)(function(e){const{isUserPermissionListLoading:t}=e;return t?(0,l.createElement)(r.A,{active:!0}):(0,l.createElement)(m.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),m=n(13313),s=n(20086),d=n(10012),_=n(89348),u=n(69815);function p(){const{form:e}=(0,m.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)(s.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),m=n(13313),s=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,m.EF)(),{setSaveButtonLoading:h}=(0,m.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)(s.A,null),(0,l.createElement)(p.Outlet,null)))})},61517:(e,t,n)=>{n.d(t,{A:()=>m});var l=n(51609),a=n(73051),i=n(92911),r=n(90070),o=n(67313);const{Text:c}=o.A;function m(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),m=n(13313),s=n(89348);const d=function(){const{form:e}=(0,m.EF)();return(0,l.createElement)(s.LK,null,(0,l.createElement)(i.A,{title:(0,a.__)("Archive Settings","eventin")},(0,l.createElement)(s.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:()=>m,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: 18px !important;
		font-weight: 500 !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: 18px;
	font-weight: 500;
	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;
		}
	}
`,m=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),m=n(43960),s=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)(s.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)(m.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),m=n(54725),s=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:A,initialValue:b="",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)(m.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:"44px"}},k?(0,l.createElement)(s.Oc,null):(0,l.createElement)(i.A.Item,{label:"",name:v,rules:y,initialValue:b},(0,l.createElement)(u.NumberInput,{placeholder:A,min:x||0,defaultValue:b})))))}},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),m=n(13313),s=n(39435),d=n(61953);const{useBreakpoint:_}=i.Ay;function u(){const{saveButtonLoading:e}=(0,m.EF)(),t=(0,r.useLocation)().pathname?.split("/")[2],n=(0,r.useNavigate)(),i=s.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),m=n(43960),s=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)(s.NumberInput,{size:"large",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)(m.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),m=n(7638),s=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)(s.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:s})=>(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)(m.Ay,{variant:m.Vt,icon:(0,l.createElement)(c.DeleteOutlined,null),onClick:()=>n(e.name)})))),(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,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),m=n(89348),s=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)(m.LK,null,(0,l.createElement)(c.A,{title:(0,r.__)("Manage Access","eventin")},(0,l.createElement)(m.zn,null,!d&&(0,l.createElement)(s.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:()=>g});var l=n(51609),a=n(27723),i=n(16370),r=n(62567),o=n(60742),c=n(47152),m=n(43960),s=n(7638),d=n(61517),_=n(10012),u=n(6836),p=n(13313);const v="https://support.themewinter.com/docs/plugins/plugin-docs/payment-type/stripe/?utm_source=documentations&utm_medium=eventin&utm_campaign=eventin+documentations";function g(){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,g="stripe"===t;g&&e.setFieldsValue({sell_tickets:null,payment_method:""});const E=[{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:v,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)(m.A,{onChange:t=>e.setFieldsValue({etn_sells_engine_stripe:t?"stripe":null})})):(0,l.createElement)(s.Oc,null)}];return(0,l.createElement)(r.A,{activeKey:g&&["1"],items:E,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),m=n(45708),s=n.n(m),d=n(73051),_=n(48842),u=n(6836),p=n(69815);const v=function(e){const{keyName:t,tooltip:n,label:m,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)(),[A,b]=(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}},m),n&&(0,l.createElement)(d.A,{title:n})),(0,l.createElement)(r.A.Item,{name:t},(0,l.createElement)(s(),{theme:"snow",modules:S,formats:["header","bold","italic","underline","strike","blockquote","list","bullet","indent","link","image","code-block","color","background"],value:A,onChange:e=>{b(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),m=n(32099),s=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,A=e=>{"boolean"==typeof e?a.setFieldsValue({[i]:e?"on":null}):a.setFieldsValue({[i]:Boolean(e?.length)?"on":null})},b=[{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)(m.A,{title:v},(0,l.createElement)("span",null,"   ",(0,l.createElement)(s.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:A}))}];return(0,l.createElement)(u,{activeKey:E&&["1"],items:b,onChange:A,style:p,collapsible:f?"disabled":"header"})}},76917:(e,t,n)=>{n.d(t,{A:()=>s});var l=n(51609),a=n(20086),i=n(94733),r=n(73810),o=n(13313),c=n(89348),m=n(27723);const s=function(){const{form:e}=(0,o.EF)(),t=[{title:(0,m.__)("Event Date","eventin"),description:(0,m.__)("Enable to hide event date on event page.","eventin"),keyName:"etn_hide_date_from_details",requirePro:!1},{title:(0,m.__)("Event Time","eventin"),description:(0,m.__)("Enable to hide event time on event page.","eventin"),keyName:"etn_hide_time_from_details",requirePro:!1},{title:(0,m.__)("Event Location","eventin"),description:(0,m.__)("Enable to hide event location on event page.","eventin"),keyName:"etn_hide_location_from_details",requirePro:!1},{title:(0,m.__)("Total Seats","eventin"),description:(0,m.__)("Enable to hide event seats on event page.","eventin"),keyName:"etn_hide_seats_from_details",requirePro:!1},{title:(0,m.__)("Ticket Sale End date","eventin"),description:(0,m.__)("Enable to show ticket sale end date on event page.","eventin"),keyName:"show_ticket_expiry_date",requirePro:!1},{title:(0,m.__)("Attendee Count","eventin"),description:(0,m.__)("Enable to hide event attendee count on event page.","eventin"),keyName:"etn_hide_attendee_count_from_details",requirePro:!1},{title:(0,m.__)("Event Organizers","eventin"),description:(0,m.__)("Enable to hide event organizers list on event page.","eventin"),keyName:"etn_hide_organizers_from_details",requirePro:!1},{title:(0,m.__)("Speakers Block","eventin"),description:(0,m.__)("Enable to hide event speakers list from event page.","eventin"),keyName:"etn_hide_speaker_from_details",requirePro:!1},{title:(0,m.__)("Organizer Email","eventin"),description:(0,m.__)("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,m.__)("Event Schedule","eventin"),description:(0,m.__)("Enable to hide displaying schedule details from event Page.","eventin"),keyName:"etn_hide_schedule_from_details",requirePro:!1},{title:(0,m.__)("Schema Mark-up","eventin"),description:(0,m.__)("Activate to generate JSON schema markup for search ranking.","eventin"),keyName:"disable_rich_snippets_for_event",requirePro:!1},{title:(0,m.__)("Countdown Timer","eventin"),description:(0,m.__)("Enable to hide event countdown timer from event page.","eventin"),keyName:"checked_hide_countdown_from_details",requirePro:!0},{title:(0,m.__)("Event FAQ","eventin"),description:(0,m.__)("Enable to hide frequently asked questions option from event page.","eventin"),keyName:"hide_faq_from_details",requirePro:!0},{title:(0,m.__)("Social Media","eventin"),description:(0,m.__)("Enable to hide social media icons from event page.","eventin"),keyName:"hide_social_from_details",requirePro:!0},{title:(0,m.__)("Related Event","eventin"),description:(0,m.__)("Enable to hide Related Event on event page.","eventin"),keyName:"hide_related_event_from_details",requirePro:!0},{title:(0,m.__)("Dokan Event Publish Approval","eventin"),description:(0,m.__)("Automatically publish Dokan Vendor/Seller Event when an event is created.","eventin"),keyName:"dokan_event_auto_publish",requirePro:!0},{title:(0,m.__)("Vendor Event Category & Tags","eventin"),description:(0,m.__)("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,m.__)("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,m.__)("Related Event Per Page","eventin"),description:(0,m.__)("Limit Number of related events to show in an single page.","eventin"),type:"number",placeholder:(0,m.__)("Set Number","eventin"),pro:!0,form:e,keyName:"related_events_per_page",sx:{margin:"10px 0"}}))))}},77027:(e,t,n)=>{n.d(t,{A:()=>s});var l=n(51609),a=n(27723),i=n(20086),r=n(89348),o=n(17526),c=n(71424),m=n(28984);const s=function(){return(0,l.createElement)(r.LK,null,(0,l.createElement)(i.A,{title:(0,a.__)("Payment Settings","eventin")},(0,l.createElement)(m.A,null),(0,l.createElement)(c.A,null),(0,l.createElement)(o.A,null)))}},78295:(e,t,n)=>{n.d(t,{A:()=>h});var l=n(51609),a=n(86087),i=n(27723),r=n(16370),o=n(60742),c=n(47152),m=n(54725),s=n(7638),d=n(4936),_=n(20086),u=n(48842),p=n(10012),v=n(13313),g=n(89348),E=n(5567);function h(){const[e,t]=(0,a.useState)(!1),{form:n,settings:h}=(0,v.EF)(),f=h?.zoom_client_id,A=h?.zoom_client_secret,b=h?.zoom_authorize_url,y=h?.zoom_connected,x=o.A.useWatch("zoom_redirect_url"),k=window?.localized_data_obj?.site_url+"/eventin-integration/zoom-auth";return(0,a.useEffect)(()=>{t(!!(f&&A&&b)),n.setFieldsValue({zoom_redirect_url:k})},[h]),(0,l.createElement)(g.LK,null,(0,l.createElement)(_.A,{title:(0,i.__)("Zoom Integrations Settings","eventin")},(0,l.createElement)(g.zn,null,(0,l.createElement)(d.A,{title:(0,i.__)("Enable Zoom Integration","eventin"),description:(0,l.createElement)("span",null,(0,i.__)("Connect with Zoom to host online events.","eventin")," ",(0,l.createElement)("a",{href:E.A.zoom,target:"_blank"},(0,i.__)("Read Documentation","eventin"))),pro:!1,form:n,keyName:"etn_zoom_api",sx:{margin:"10px 0"}},(0,l.createElement)("div",{className:"etn-settings-form"},(0,l.createElement)(c.A,{gutter:10},(0,l.createElement)(r.A,{md:12,sm:24,xs:24},(0,l.createElement)(o.A.Item,{label:(0,i.__)("Client ID","eventin"),name:"zoom_client_id"},(0,l.createElement)(p.h5,{size:"large",placeholder:(0,i.__)("Enter zoom client id","eventin")}))),(0,l.createElement)(r.A,{md:12,sm:24,xs:24},(0,l.createElement)(o.A.Item,{label:(0,i.__)("Client Secret Key","eventin"),name:"zoom_client_secret"},(0,l.createElement)(p.h5,{size:"large",placeholder:(0,i.__)("Enter zoom client secret key","eventin")})))),(0,l.createElement)(c.A,null,(0,l.createElement)(r.A,{span:24},(0,l.createElement)(o.A.Item,{label:(0,i.__)("Redirect URL","eventin"),name:"zoom_redirect_url"},(0,l.createElement)(p.I3,{copyText:x,buttonTooltipText:(0,i.__)("Copy Redirect URL","eventin"),icon:(0,l.createElement)(m.CopyIconOutlined,null),placeholder:(0,i.__)("Enter redirect url","eventin")})))),!e&&(0,l.createElement)(c.A,null,(0,l.createElement)(r.A,{span:24},(0,l.createElement)(u.A,{sx:{color:"#EF4444"}},(0,l.createElement)(m.AlertIcon,null)," ",(0,i.__)("Please provide client id and client secret key first! Save changes before connecting.","eventin")," "))),y?(0,l.createElement)(s.Ay,{variant:s.Vt,size:"default",sx:{height:"36px",padding:"5px 15px",marginTop:"10px"},disabled:!0},(0,i.__)("Connected","eventin")):(0,l.createElement)(s.Ay,{variant:s.Vt,size:"default",sx:{height:"36px",padding:"5px 15px",marginTop:"10px"},href:b,disabled:!e},(0,i.__)("Connect","eventin")))))))}},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),m=n(32099),s=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,A=e=>{"boolean"==typeof e?a.setFieldsValue({[i]:!!e||null}):a.setFieldsValue({[i]:!!Boolean(e?.length)||null})},b=[{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)(m.A,{title:v},(0,l.createElement)("span",null,"   ",(0,l.createElement)(s.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:A}))}];return(0,l.createElement)(u,{activeKey:E&&["1"],items:b,onChange:A,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),m=n(36492),s=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="woocommerce"===o.A.useWatch("sell_tickets",{form:e,preserve:!0}),g=window?.localized_data_obj?.currency_list,E=window?.localized_data_obj?.admin_url+"/admin.php?page=wc-settings",h=[{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")))}],f=[{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),n&&(0,l.createElement)("strong",null,(0,a.__)("Note: When WooCommerce payment is enabled, this setting will be ignored","eventin")))},(0,l.createElement)(v.zn,null,n&&(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:E,target:"_blank"},(0,a.__)("WooCommerce 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)(m.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:n,onChange:t=>{e.setFieldsValue({etn_settings_country_currency:t})},style:{width:"100%"}},g?.map((e,t)=>(0,l.createElement)(m.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)(m.A,{size:"large",placeholder:(0,a.__)("Choose Price Symbol Position","eventin"),style:{width:"100%"},options:h,disabled:n}))),(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)(m.A,{size:"large",placeholder:(0,a.__)("Choose Price Separator","eventin"),style:{width:"100%"},options:f,disabled:n}))),(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)(s.NumberInput,{placeholder:(0,a.__)("Add number of decimals","eventin"),disabled:n})))))))}},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:()=>m,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;
	}
`,m=l.default.h3`
	font-size: 14px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #334155;
	height: 20px;
`},89443:(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))}},93812:(e,t,n)=>{n.d(t,{A:()=>b});var l=n(51609),a=n(86087),i=n(27723),r=n(52619),o=n(69815),c=n(16370),m=n(62567),s=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 A=(0,o.default)(m.A)`
	.ant-collapse-content-box {
		background-color: #ffffff;
	}
`;function b(e){const{field:t,remove:n,form:o}=e,[m,b]=(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})}},z=[{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)(s.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]);b(!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{b(!1)}},loading:m},(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)(A,{expandIconPosition:"end",items:z,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),m=n(7638),s=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,A=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:A?18:16},(0,l.createElement)(r.A,{direction:"vertical",size:0},(0,l.createElement)(s.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)(s.A,{sx:{fontSize:"14px",color:"#747474"}},n))),(0,l.createElement)(a.A,{sm:24,md:A?4:8,style:{width:"100%",height:"44px"}},A?(0,l.createElement)(m.Oc,null):(0,l.createElement)(_.ks,{name:p,placeholder:f,type:h}))))}},94758:(e,t,n)=>{n.d(t,{A:()=>m});var l=n(51609),a=n(20086),i=n(73810),r=n(13313),o=n(89348),c=n(27723);const m=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),m=n(54725),s=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"]),A=c.getFieldValue(["email","reminder_email","from"]),b=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"],A),c.setFieldValue(["email","reminder_email","subject"],b),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)(s.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)(m.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"}}))))}}}]);