PageSourceSearch

https://www.equityprotect.com/static/js/3875.37a2a408.chunk.js

js equityprotect.com collected 2026-10-05 05:12:54 UTC 30,293 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkequity_protect_system=self.webpackChunkequity_protect_system||[]).push([[3875],{23875:(e,l,n)=>{n.d(l,{Z:()=>O,p:()=>E});var i=n(1413),o=n(72791),s=n(24021),r=n(55705),a=n(59332),t=n(59434),d=n(56664),c=n(25878),u=n(27247),m=n(50228),p=n(45953),h=n(96746),x=n(38254),v=n(13811),_=n(75814),g=n(37924),j=n(94162),y=n(81872),b=n(63941),f=n(13905),Z=n(77716),P=n(5742),w=n(91055),k=n(58874),C=n(47367),F=n(71158),D=n(52227),N=n(59149),R=n(80716),S=n(98212),q=(n(99431),n(80184));const E={position:"absolute",top:0,right:0,cursor:"pointer"},I=e=>s.Ry().shape({first_name:null!==e&&void 0!==e&&e.personalDetails?s.Z_("Please enter your First Name.").trim("The First name cannot include leading and trailing spaces").strict(!0).min(2,"Too Short!").max(50,"Too Long!").required("First Name is required"):s.Z_(),last_name:null!==e&&void 0!==e&&e.personalDetails?s.Z_("Please enter your Last name.").trim("The Last name cannot include leading and trailing spaces").strict(!0).min(2,"Too Short!").max(50,"Too Long!").required("Last Name is required"):s.Z_(),email:null!==e&&void 0!==e&&e.personalDetails?s.Z_("Please enter your Email Id.").email("Invalid email format").max(255).required("Email id is required"):s.Z_(),phone:null!==e&&void 0!==e&&e.personalDetails?s.Z_("Please enter your Phone number.").typeError("That doesn't look like a phone number").required("Mobile number is required"):s.Z_(),domain:null!==e&&void 0!==e&&e.personalDetails?s.Z_("Please enter your Domain name.").max(25).required("Domain name is required").matches(/^[a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*$/,"Domain name cannot contain space or other special characters in between. Example: abc-efg or abc_efg."):s.Z_(),redirect_url:null!==e&&void 0!==e&&e.personalDetails?s.Z_().matches(/^https:\/\/[a-zA-Z0-9-]+(\.[a-zA-Z]{2,}){1,2}\//,"Invalid URL pattern"):s.Z_(),webhook_url:null!==e&&void 0!==e&&e.personalDetails?s.Z_().matches(/^https:\/\/[a-zA-Z0-9-]+(\.[a-zA-Z]{2,}){1,2}\//,"Invalid URL pattern"):s.Z_(),logo:null!==e&&void 0!==e&&e.personalDetails?s.Z_().required("Please upload Company logo."):s.Z_(),monthly_plan_price:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.monthlyPlan?s.Rx("Please enter your Monthly Setup amount.").max(1e3,"Too Long!").required("Monthly Setup amount is required").test("not-allowed-chars","Please enter postive amount for Monthly Subscription",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e"))):s.Rx(),monthly_renewal_price:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.monthlyPlan?s.Rx("Please enter your Monthly Plan Renewal amount.").max(1e3,"Too Long!").required("Monthly Plan Renewal amount is required").test("not-allowed-chars","Please enter postive Monthly Plan Renewal amount",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e"))):s.Rx(),monthly_free_trial:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.monthlyPlan?s.Rx().required("Free trial period is required").integer("Please note that the Free Trial period cannot be combined with decimal numbers.").max(365,"Free trial period cannot exceed 365 days").test("not-allowed-chars","Please enter postive numbers for Free trial period",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e")&&e===Math.floor(e))):s.Rx(),setup_fees:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.monthlyFees?s.Rx("Please enter your Setup fees.").max(1e3,"Too Long!").required("Setup fees is required").test("not-allowed-chars","Please enter postive amount for Setup fees",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e"))):s.Rx(),yearly_plan_price:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.yearlyPlan?s.Rx("Please enter your Yearly Setup amount.").max(1e3,"Too Long!").required("Yearly Setup amount is required").test("not-allowed-chars","Please enter postive amount for Yearly Subscription",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e"))):s.Rx(),yearly_renewal_price:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.yearlyPlan?s.Rx("Please enter your Yearly Plan Renewal amount.").max(1e3,"Too Long!").required("Yearly Plan Renewal amount is required").test("not-allowed-chars","Please enter postive Yearly Plan Renewal amount",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e"))):s.Rx(),yearly_free_trial:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.yearlyPlan?s.Rx().required("Free trial period is required").integer("Please note that the Free Trial period cannot be combined with decimal numbers.").max(365,"Free trial period cannot exceed 3
165 days").test("not-allowed-chars","Please enter postive numbers for Free trial period",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e")&&e===Math.floor(e))):s.Rx(),recording_fees:null!==e&&void 0!==e&&e.plansDetails&&null!==e&&void 0!==e&&e.recordingFees?s.Rx("Please enter your Recording  fees.").max(1e3,"Too Long!").test("not-allowed-chars","Please enter postive amount for Recording fees",(e=>void 0===e||"number"===typeof e&&-1==="".concat(e).indexOf("-")&&-1==="".concat(e).indexOf("e"))).required("Recording  fees is required"):s.Rx()}).test("at-least-one",null,(function(e){const{webhook_url:l,redirect_url:n}=e;return!(!l&&!n)||this.createError({path:"redirect_url",message:"At least one of Webhook URL or Redirection URL is required."})})),O=e=>{var l,n,s,O,L,T,A,z,U,W,V;let{goBack:M=(()=>{}),listingAPI:B,personalDetails:$=!0,plansDetails:Y=!0,selectedData:H={},plansData:J={},closeDialogBox:K=(()=>{}),isEdit:X=!1}=e;const G=(0,t.I0)(),Q=(0,o.useRef)(),ee=(0,o.useRef)(),[le,ne]=(0,o.useState)(!1),[ie,oe]=(0,o.useState)(!1),[se,re]=(0,o.useState)(!1),[ae,te]=(0,o.useState)(!1),[de,ce]=(0,o.useState)(!0),[ue,me]=(0,o.useState)(!0),[pe,he]=(0,o.useState)(!0),[xe,ve]=(0,o.useState)(!0),[_e,ge]=(0,o.useState)(!0),[je,ye]=(0,o.useState)(null),[be,fe]=(0,o.useState)(!1),[Ze,Pe]=(0,o.useState)(null),[we,ke]=(0,o.useState)(!1),[Ce,Fe]=(0,o.useState)(!1),[De,Ne]=(0,o.useState)(!1),{otherProvidersLoader:Re,createOtherProviders:Se,editedPersonalDetailsData:qe}=(0,t.v9)((e=>e.otherProviders)),Ee=(e,l)=>{console.log("values=>",e);const n=new FormData;let o={},s={},r={},a={};de?(o={name:"monthly",amount:null===e||void 0===e?void 0:e.monthly_plan_price,additional_charges:{"setup fees":null===e||void 0===e?void 0:e.setup_fees,recording_fees:e.recording_fees},is_default:1,trial_period:{day:parseInt(null===e||void 0===e?void 0:e.monthly_free_trial)}},s={name:"monthly",amount:null===e||void 0===e?void 0:e.monthly_renewal_price,is_default:0,additional_charges:{},trial_period:{}}):(o=null,s=null),pe?(r={name:"yearly",amount:null===e||void 0===e?void 0:e.yearly_plan_price,additional_charges:{"setup fees":null===e||void 0===e?void 0:e.setup_fees,recording_fees:e.recording_fees},is_default:1,trial_period:{day:parseInt(null===e||void 0===e?void 0:e.yearly_free_trial)}},a={name:"yearly",amount:null===e||void 0===e?void 0:e.yearly_renewal_price,is_default:0,additional_charges:{},trial_period:{}}):(r=null,a=null);const t=[(0,i.Z)({},o),(0,i.Z)({},s),(0,i.Z)({},r),(0,i.Z)({},a)].filter((e=>Object.keys(e).length>0));let d={first_name:null===e||void 0===e?void 0:e.first_name,last_name:null===e||void 0===e?void 0:e.last_name,email:null===e||void 0===e?void 0:e.email,phone:null===e||void 0===e?void 0:e.phone,is_benutech_property:(null===e||void 0===e?void 0:e.is_benutech_property)||0,is_customer_ep:(null===e||void 0===e?void 0:e.is_customer_ep)||0,send_postcard:(null===e||void 0===e?void 0:e.send_postcard)||0,is_sso:(null===e||void 0===e?void 0:e.is_sso)||0,domain:De||null===e||void 0===e?void 0:e.domain,custom_domain:De?null===e||void 0===e?void 0:e.domain:void 0,logo:null===e||void 0===e?void 0:e.logo,redirect_url:(null===e||void 0===e?void 0:e.redirect_url)||"",webhook_url:(null===e||void 0===e?void 0:e.webhook_url)||""};if($){(null===e||void 0===e?void 0:e.logo)===(null===H||void 0===H?void 0:H.logo)&&(null===d||void 0===d||delete d.logo),De?null===d||void 0===d||delete d.domain:null===d||void 0===d||delete d.custom_domain;for(const e in d)d.hasOwnProperty(e)&&n.append(e,d[e]);console.log("Data==>>",d),$&&!Y&&G(N.k.editedPersonalDetailsData({url:"providers/".concat(null===H||void 0===H?void 0:H.id,"/update"),data:n,isFile:!0}))}Y&&(t.forEach(((e,l)=>{Object.keys(e).forEach((i=>{const o="object"===typeof e[i]?JSON.stringify(e[i]):e[i];n.append("subscription_plans[".concat(l,"][").concat(i,"]"),o)}))})),!$&&Y&&G(N.k.editedPersonalDetailsData({url:"providers/".concat(null===H||void 0===H?void 0:H.id,"/update"),data:n,isFile:!0}))),$&&Y&&G(N.k.createOtherProvidersData({url:"providers/create",data:n,isFile:!0}))},Ie=(e,l,n)=>{n("is_benutech_property",l),l?oe(!0):(oe(!1),re(!1))},Oe=(e,l,n)=>{n("is_customer_ep",l),re(!!l)},Le=(e,l,n)=>{n("send_postcard",l),Fe(!!l)},Te=(e,l,n)=>{n("is_sso",l),te(!!l)},Ae=(e,l,n)=>{n("is_custom_domain",l),Ne(!!l)},ze=(e,l,n)=>{n("monthly_plan_price",""),n("monthly_renewal_price",""),n("monthly_free_trial",""),n("setup_fees",""),ce((e=>!e)),me(!!l)},Ue=(e,l,n)=>{me((e=>!e)),n("setup_fees","")},We=(e,l,n)=>{n("yearly_plan_price",""),n("yearly_free_trial",""),n("yearly_renewal_price",""),he((e=>!e))},Ve=(e,l,n)=>{n("recording_fees",""),ge(!!l)},Me=I({monthlyPlan:de,monthlyFees:ue,yearlyPlan:pe,yearlyFees:xe,recordingFees:_e,personalDetails:$,plansDetails:Y}),Be=()=>{var e,l,n,i,o;"undefined"!==typeof(null===(e=ee.current)||void 0===e?void 0:e.cropper)&&(ye(null===(l=ee.current)||void 0===l?void 0:l.cropper.getCroppedCanvas().toDataURL()),null===Q||void 0===Q||null===(n=Q.current)||void 0===n||n.setFieldValue("logo",null===(i=ee.current)||void 0===i?void 0:i.cropper.getCroppedCanvas().toDataURL()),console.log("croppedImage: ",null===(o=ee.current)||void 0===o?void 0:o.cropper.getCroppedCanvas().toDataURL()))},$e=()=>{ne(!1),null!==Se&&void 0!==Se&&Se.success&&(B(),M()),null!==qe&&void 0!==qe&&qe.success&&(B(),K()),G(N.k.fetchCreatedProvidersData({})),G(N.k.fetchEditedPersonalDetailsData({}))};return(0,o.useEffect)((()=>{(0,k.t0M)(Se)&&ne(!0)}),[Se]),(0,o.useEffect)((()=>{var e,l,n,i;(0,k.t0M)(J)&&(null!==J&&void 0!==J&&null!==(e=J.monthly_plans)&&void 0!==e&&e.is_active||(me(!1),ce(!1)),null!==J&&void 0!==J&&null!==(l=J.monthly_plans)&&void 0!==l&&l.setup_fees||me(!1),null!==J&&void 0!==J&&null!==(n=J.yearly_plans)&&void 0!==n&&n.is_active||(ve(!1),he(!1)),null!==J&&void 0!==J&&J.recording_fees||ge(!1));(0,k.t0M)(H)&&$&&(null!==H&&void 0!==H&&H.is_benutech_property&&oe(!0),null!==H&&void 0!==H&&H.is_customer_ep&&re(!0),null!==H&&void 0!==H&&H.send_postcard&&Fe(!0),null!==H&&void 0!==H&&H.is_sso&&te(!0),null!==H&&void 0!==H&&H.custom_domain&&Ne(!0),null!==H&&void 0!==H&&H.logo&&(ye(null===H||void 0===H?void 0:H.logo),null===Q||void 0===Q||null===(i=Q.current)||void 0===i||i.setFieldValue("logo",null===H||void 0===H?void 0:H.logo)))}),[$,J,H]),(0,q.jsxs)(m.Z,{className:"organizations-form",children:[(0,q.jsx)(r.J9,{enableReinitialize:!0,validateOnChange:!0,innerRef:Q,initialValues:{first_name:(null===H||void 0===H?void 0:H.first_name)||"",last_name:(null===H||void 0===H?void 0:H.last_name)||"",email:(null===H||void 0===H?void 0:H.email)||"",phone_number:(null===H||void 0===H?void 0:H.phone)||"",phone:(null===H||void 0===H?void 0:H.phone)||"",domain:(null===H||void 0===H?void 0:H.domain)||(null===H||void 0===H?void 0:H.custom_domain)||"",monthly_plan_price:Y&&$?"":(0,k.BC8)(parseFloat((null===J||void 0===J||null===(l=J.monthly_plans)||void 0===l?void 0:l.amount)||0))||"",monthly_renewal_price:(null===J||void 0===J||null===(n=J.monthly_plans)||void 0===n?void 0:n.monthly_renewal_plans)||"",mpp:"",monthly_free_trial:(null===J||void 0===J||null===(s=J.monthly_plans)||void 0===s||null===(O=s.trial_period)||void 0===O?void 0:O.toString())||"",mft:"",setup_fees:(null===J||void 0===J||null===(L=J.monthly_plans)||void 0===L?void 0:L.setup_fees)||"",sf:"",yearly_renewal_price:(null===J||void 0===J||null===(T=J.yearly_plans)||void 0===T?void 0:T.yearly_renewal_plans)||"",yearly_plan_price:(null===J||void 0===J||null===(A=J.yearly_plans)||void 0===A?void 0:A.amount)||"",ypp:"",yearly_free_trial:(null===J||void 0===J||null===(z=J.yearly_plans)||void 0===z||null===(U=z.trial_period)||void 0===U?void 0:U.toString())||"",yft:"",recording_fees:(null===J||void 0===J?void 0:J.recording_fees)||"",rf:"",logo:"",redirect_url:(null===H||void 0===H?void 0:H.redirect_url)||"",webhook_url:(null===H||void 0===H?void 0:H.webhook_url)||"",is_benutech_property:(null===H||void 0===H?void 0:H.is_benutech_property)||"",is_customer_ep:(null===H||void 0===H?void 0:H.is_customer_ep)||"",send_postcard:(null===H||void 0===H?void 0:H.send_postcard)||"",is_sso:(null===H||void 0===H?void 0:H.is_sso)||"",is_custom_domain:(null===H||void 0===H?void 0:H.custom_domain)||""},validationSchema:Me,children:e=>{let{values:l,setFieldValue:n,touched:o,errors:s,validateForm:t,setFieldTouched:b}=e;return(0,q.jsxs)(r.l0,{id:"create-providers-form",children:[(0,q.jsx)(F.Z,{userEmail:null===H||void 0===H?void 0:H.email,hideCookieBreaker:!0}),(0,q.jsxs)(p.ZP,{container:!0,spacing:2,children:[$&&(0,q.jsxs)(q.Fragment,{children:[" ",(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{label:"First Name",placeholder:"First Name",name:"first_name",id:"firstName",validation:{values:l,setFieldValue:n,touched:o,errors:s}
1,otherProps:{onChange:e=>{n("first_name",e.target.value)}}})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{label:"Last Name",placeholder:"Last Name",name:"last_name",id:"lastName",validation:{values:l,setFieldValue:n,touched:o,errors:s},otherProps:{onChange:e=>{n("last_name",e.target.value)}}})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{label:"Email",placeholder:"Email",name:"email",disabled:!Y,id:"emailAddress",validation:{values:l,setFieldValue:n,touched:o,errors:s},otherProps:{onChange:e=>{n("email",e.target.value)}}})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsxs)("div",{className:"organizations-form__labeled-field",children:[(0,q.jsx)("label",{className:"organizations-form__label",htmlFor:"phoneNumber",children:"Phone"}),(0,q.jsx)(C.Z,{name:"phone",values:l,touched:o,setFieldValue:n,errors:s,disabled:!Y,otherProps:{id:"phoneNumber",onChange:e=>{n("phone",e),n("phone_number",e),e||(n("phone",""),n("phone_number",""))}}})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsxs)("div",{className:"organizations-form__labeled-field",children:[(0,q.jsx)("label",{className:"organizations-form__label",htmlFor:"webhookUrl",children:"Webhook URL"}),(0,q.jsx)(h.Z,{className:"textfield",type:"text",placeholder:"Webhook URL",name:"webhook_url",id:"webhookUrl",endAdornment:(0,q.jsx)(x.Z,{position:"end",children:(0,q.jsx)(v.Z,{"aria-label":"toggle confirm_password visibility",edge:"end",children:(0,q.jsx)(_.Z,{title:"https://abcd.com/abc",placement:"bottom",arrow:!0,children:(0,q.jsx)(m.Z,{onClick:()=>ke(!we),children:(0,q.jsx)(c.Z,{})})})})}),value:null===l||void 0===l?void 0:l.webhook_url,fullWidth:!0,onChange:e=>{n("webhook_url",e.target.value)},helperText:o.webhook_url&&s.webhook_url,error:o.webhook_url&&Boolean(s.webhook_url)}),o.webhook_url&&Boolean(s.webhook_url)&&(0,q.jsx)(g.Z,{sx:{color:"rgb(211, 47, 47) !important",fontSize:"12px !important",m:"0 !important",maxWidth:"100% !important"},children:o.webhook_url&&s.webhook_url})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsxs)("div",{className:"organizations-form__labeled-field",children:[(0,q.jsx)("label",{className:"organizations-form__label",htmlFor:"redirectUrl",children:"Redirection URL"}),(0,q.jsx)(h.Z,{className:"textfield",type:"text",placeholder:"Redirection URL",name:"redirect_url",id:"redirectUrl",endAdornment:(0,q.jsx)(x.Z,{position:"end",children:(0,q.jsx)(v.Z,{"aria-label":"toggle confirm_password visibility",edge:"end",children:(0,q.jsx)(_.Z,{title:"https://abcd.com/abc",placement:"bottom",arrow:!0,children:(0,q.jsx)(m.Z,{onClick:()=>ke(!we),children:(0,q.jsx)(c.Z,{})})})})}),value:null===l||void 0===l?void 0:l.redirect_url,fullWidth:!0,onChange:e=>{n("redirect_url",e.target.value)},helperText:o.redirect_url&&s.redirect_url,error:o.redirect_url&&Boolean(s.redirect_url)}),o.redirect_url&&Boolean(s.redirect_url)&&(0,q.jsx)(g.Z,{sx:{color:"rgb(211, 47, 47) !important",fontSize:"12px !important",m:"0 !important",maxWidth:"100% !important"},children:o.redirect_url&&s.redirect_url})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:1},children:[(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsxs)(j.Z,{spacing:1,direction:"column",children:[(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:13.5},pt:3,children:[(0,q.jsx)("span",{className:"pe-4",children:"Single Sign-On?"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:ae,disabled:ae,onChecked:e=>Te(0,1,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:!ae,disabled:!ae,onChecked:e=>{Te(0,0,n)}}),(0,q.jsx)("span",{children:"Disable"})]})]})]})}),(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:11},pt:4,alignItems:"center",children:[(0,q.jsx)("span",{className:"",children:"Property in benutech?"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:ie,disabled:ie,onChecked:e=>Ie(0,1,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:!ie,disabled:!ie,onChecked:e=>{Ie(0,0,n)}}),(0,q.jsx)("span",{children:"Disable"})]})]})]})}),(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:8},pt:4,alignItems:"center",children:[(0,q.jsx)("span",{className:"",children:"Hosted by EquityProtect?"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{className:"".concat(!ie&&"curs
1or-disable"),children:[(0,q.jsx)(D.Z,{checked:se,disabled:!ie,onChecked:e=>Oe(0,1,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{className:"".concat(!ie&&"cursor-disable"),children:[(0,q.jsx)(D.Z,{checked:!se,disabled:!ie,onChecked:e=>{Oe(0,0,n)}}),(0,q.jsx)("span",{children:"Disable"})]})]})]})})]})}),(0,q.jsxs)(p.ZP,{item:!0,xs:12,md:6,className:"organizations-form__upload-grid",children:[je?(0,q.jsx)(q.Fragment,{children:(0,q.jsxs)(m.Z,{className:"position-relative p-4 rounded d-flex justify-content-center align-items-center",sx:{backgroundColor:"#F6F9FC",border:je?"1px solid #E2E8EB":""},children:[(0,q.jsx)("img",{src:je,style:{minHeight:"150px",maxHeight:"230px"},alt:"cropped",id:"croppedImage",className:"rounded"}),(0,q.jsx)(v.Z,{sx:(0,i.Z)((0,i.Z)({},E),{},{color:"#FC2125",fontSize:"1.4rem"}),onClick:()=>{var e;ye(null),Pe(null),null===Q||void 0===Q||null===(e=Q.current)||void 0===e||e.setFieldValue("logo","")},children:(0,q.jsx)(u.Z,{})})]})}):Ze?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(a.f,{ref:ee,style:{height:"280px",width:"100%"},zoomTo:0,initialAspectRatio:1,src:Ze,viewMode:1,minCropBoxHeight:10,minCropBoxWidth:10,background:!1,responsive:!0,autoCropArea:1,checkOrientation:!1,guides:!1}),(0,q.jsx)(m.Z,{className:"d-flex justify-content-start",mt:2,children:(0,q.jsx)(S.z,{type:"button",onClick:Be,className:"".concat(P.XU," mb-0 rounded-full px-6"),children:"Crop Logo"})})]}):(0,q.jsx)(q.Fragment,{children:(0,q.jsx)("span",{className:"servicer-signup-form",children:(0,q.jsx)(f.Z,{name:"upload_doc",id:"uploadDoc",accept:{"image/png":[".png",".jpeg",".jpg"]},multiple:!1,onFileUpload:async e=>{(e=>{const l=new FileReader;l.onload=()=>{Pe(l.result)},l.readAsDataURL(e[0])})(e)},dragDropText:"Drag and drop Logo or ",greenText:"Upload a Logo",subText:"Only .png, .jpeg, .jpg files are allowed"})})}),(null===o||void 0===o?void 0:o.logo)&&Boolean(null===s||void 0===s?void 0:s.logo)&&(0,q.jsx)(g.Z,{sx:{color:"#d32f2f !important",m:"0 !important",fontSize:"12px !important"},children:"Please upload Company logo"})]})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:13.5},pt:3,children:[(0,q.jsx)("span",{className:"pe-4",children:"Send Postcard?"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:Ce,disabled:Ce,onChecked:e=>Le(0,1,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:!Ce,disabled:!Ce,onChecked:e=>{Le(0,0,n)}}),(0,q.jsx)("span",{children:"Disable"})]})]})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsx)(y.Z,{children:(0,q.jsx)("span",{className:"fw-600",children:"Domain"})})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:11},py:2,alignItems:"center",children:[(0,q.jsx)("b",{className:"",children:"Domain"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:!De,disabled:!De,onChecked:e=>Ae(0,0,n)}),(0,q.jsx)("span",{children:"Sub Domain"})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:De,disabled:De,onChecked:e=>{Ae(0,1,n)}}),(0,q.jsx)("span",{children:"Custom Domain"})]})]})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,className:"text-start",children:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(w.Z,{label:"Domain Name",placeholder:"Domain Name",name:"domain",id:"domainName",validation:{values:l,setFieldValue:n,touched:o,errors:s},otherProps:{onChange:e=>{n("domain",e.target.value)}}}),De&&(0,q.jsxs)("span",{style:{fontSize:"14px"},children:[(0,q.jsx)("b",{children:"Note:"})," For custom domain, you will need to ask the customer to point the A-record of the domain to our server's IP: [",P.dC,"]"]})]})})]}),Y&&(0,q.jsxs)(q.Fragment,{children:[$&&(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsxs)(y.Z,{children:[(0,q.jsx)("span",{className:"fw-600",children:"Subscription Plans"})," "]})}),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:10},pt:2,children:[(0,q.jsx)("b",{className:"",children:"Monthly Plan"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:de,disabled:de,onChecked:e=>ze(0,1,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:!de,disabled:!de,onChecked:e=>{ze(0,0,n)}}),(0,q.jsx)("span",{children:"Disable"})]})]})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{label:"Setup amount",disabled:!de,name:de?"monthly_plan_price":"mpp",type:"number",id:"setupAmount",validation:{values:l,setFieldValue:n,touched:o,errors:s},InputProps:{startAdornment:(0,q.jsx)(x.Z,{position:"start",children:(0,q.jsx)("span",{children:"$"})})}
1,otherProps:{onChange:e=>{n("monthly_plan_price",e.target.value)},onWheel:e=>{e.target.blur()}}})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{label:"Monthly Renewal amount",disabled:!de,name:de?"monthly_renewal_price":"mpp",type:"number",id:"monthlyRenewalAmount",validation:{values:l,setFieldValue:n,touched:o,errors:s},InputProps:{startAdornment:(0,q.jsx)(x.Z,{position:"start",children:(0,q.jsx)("span",{children:"$"})})},otherProps:{onChange:e=>{n("monthly_renewal_price",e.target.value)},onWheel:e=>{e.target.blur()}}})}),(0,q.jsxs)(p.ZP,{item:!0,xs:12,md:6,children:[(0,q.jsx)(w.Z,{disabled:!de,label:"Free Trial",name:de?"monthly_free_trial":"mft",type:"number",max:3,id:"freeTrial",validation:{values:l,setFieldValue:n,touched:o,errors:s},otherProps:{onChange:e=>{n("monthly_free_trial",e.target.value)},onWheel:e=>{e.target.blur()}}}),!(null!==o&&void 0!==o&&o.monthly_free_trial&&Boolean(null===s||void 0===s?void 0:s.monthly_free_trial))&&(0,q.jsx)(g.Z,{sx:{color:"#00000075 !important",m:"0 !important",maxWidth:"100% !important",textAlign:"end"},children:"(In days)"})]}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:2},pt:2,children:[(0,q.jsx)("b",{className:"",children:"Need to take setup fees?"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{className:"".concat(!de&&"cursor-disable"),children:[(0,q.jsx)(D.Z,{disabled:!de||ue,checked:ue,onChecked:e=>Ue(0,0,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{className:"".concat(!de&&"cursor-disable"),children:[(0,q.jsx)(D.Z,{disabled:!de||!ue,checked:!ue,onChecked:e=>{Ue(0,0,n)}}),(0,q.jsx)("span",{children:"Disable"})]})]})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{disabled:!ue||!de,label:"Setup Fees",name:ue?"setup_fees":"sf",type:"number",id:"setupFees",validation:{values:l,setFieldValue:n,touched:o,errors:s},InputProps:{startAdornment:(0,q.jsx)(x.Z,{position:"start",children:(0,q.jsx)("span",{children:"$"})})},otherProps:{onChange:e=>{n("setup_fees",e.target.value)},onWheel:e=>{e.target.blur()}}})})]}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsx)(y.Z,{})}),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:10},pt:2,children:[(0,q.jsx)("b",{className:"",children:"Yearly Plan"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:pe,disabled:pe,onChecked:e=>We(0,0,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:!pe,disabled:!pe,onChecked:e=>We(0,0,n)}),(0,q.jsx)("span",{children:"Disable"})]})]})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{label:"Setup amount",disabled:!pe,name:pe?"yearly_plan_price":"ypp",type:"number",id:"setupAmount",validation:{values:l,setFieldValue:n,touched:o,errors:s},InputProps:{startAdornment:(0,q.jsx)(x.Z,{position:"start",children:(0,q.jsx)("span",{children:"$"})})},otherProps:{onChange:e=>{n("yearly_plan_price",e.target.value)},onWheel:e=>{e.target.blur()}}})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{label:"Yearly Renewal amount",disabled:!pe,name:pe?"yearly_renewal_price":"ypp",id:"yearlyRenewalAmount",type:"number",max:3,validation:{values:l,setFieldValue:n,touched:o,errors:s},InputProps:{startAdornment:(0,q.jsx)(x.Z,{position:"start",children:(0,q.jsx)("span",{children:"$"})})},otherProps:{onChange:e=>{n("yearly_renewal_price",e.target.value)},onWheel:e=>{e.target.blur()}}})}),(0,q.jsxs)(p.ZP,{item:!0,xs:12,md:6,children:[(0,q.jsx)(w.Z,{disabled:!pe,label:"Free Trial",name:pe?"yearly_free_trial":"yft",type:"number",max:3,id:"freeTrial",validation:{values:l,setFieldValue:n,touched:o,errors:s},otherProps:{onChange:e=>{n("yearly_free_trial",e.target.value)},onWheel:e=>{e.target.blur()}}}),!(null!==o&&void 0!==o&&o.yearly_free_trial&&Boolean(null===s||void 0===s?void 0:s.yearly_free_trial))&&(0,q.
1jsx)(g.Z,{sx:{color:"#00000075 !important",m:"0 !important",maxWidth:"100% !important",textAlign:"end"},children:"(In days)"})]})]}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsx)(y.Z,{})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,children:(0,q.jsxs)(j.Z,{direction:{xs:"column",sm:"row"},spacing:{xs:1,sm:2,md:2},pt:2,children:[(0,q.jsx)("b",{className:"",children:"Need to take recording fees?"}),(0,q.jsxs)(j.Z,{direction:"row",spacing:{xs:1,sm:1,md:2},alignItems:"center",children:[(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:_e,onChecked:e=>Ve(0,1,n)}),(0,q.jsx)("span",{children:"Enable"})]}),(0,q.jsxs)("div",{children:[(0,q.jsx)(D.Z,{checked:!_e,onChecked:e=>{Ve(0,0,n)}}),(0,q.jsx)("span",{children:"Disable"})]})]})]})}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:6,children:(0,q.jsx)(w.Z,{disabled:!_e,label:"Recording Fees",name:_e?"recording_fees":"rf",type:"number",id:"recordingFees",validation:{values:l,setFieldValue:n,touched:o,errors:s},InputProps:{startAdornment:(0,q.jsx)(x.Z,{position:"start",children:(0,q.jsx)("span",{children:"$"})})},otherProps:{onChange:e=>{n("recording_fees",e.target.value)},onWheel:e=>{e.target.blur()}}})})]}),(0,q.jsx)(p.ZP,{item:!0,xs:12,md:12,className:"organizations-form__footer-cell",children:(0,q.jsx)(R.Z,{showCancel:X,onCancel:K,submitLabel:X?"Update":"Create account",submitType:"button",onSubmit:e=>(async(e,l,n,i)=>{e.preventDefault();const o=await l();if(Object.keys(o).length>0){const e=Object.keys(o)[0];Object.keys(o).forEach((e=>n(e,!0))),document.getElementsByName(e)[0].focus()}else{if(!(0,d.yf)(null===i||void 0===i?void 0:i.phone))return void document.getElementsByName("phone")[0].focus();if(!de&&!pe)return void fe(!0);fe(!1),Ee(i)}})(e,t,b,l),children:!de&&!pe&&be&&(0,q.jsx)(g.Z,{sx:{color:"#d32f2f !important",m:"0 !important",fontSize:"14px !important",fontWeight:500,width:"100%",textAlign:"right",maxWidth:"100% !important"},children:"Please enable any of the Subscription plan"})})})]})]})}}),(0,k.t0M)(Se)&&le?(0,q.jsx)(Z.default,{isTailwindComponent:!0,type:null!==Se&&void 0!==Se&&Se.success?"Success":"Error",openPopup:le,onClose:!0,mesage:(null===Se||void 0===Se?void 0:Se.message)||(null===Se||void 0===Se||null===(W=Se.data)||void 0===W?void 0:W.message),onCloseFun:$e,buttons:(0,q.jsx)(S.z,{type:"button",className:"".concat(P.$7," mb-0 rounded-full px-6"),onClick:$e,children:"OK"})}):null,(0,k.t0M)(qe)?(0,q.jsx)(Z.default,{isTailwindComponent:!0,type:null!==qe&&void 0!==qe&&qe.success?"Success":"Error",openPopup:!0,onClose:!0,mesage:(null===qe||void 0===qe?void 0:qe.message)||(null===qe||void 0===qe||null===(V=qe.data)||void 0===V?void 0:V.message),onCloseFun:$e,buttons:(0,q.jsx)(S.z,{type:"button",className:"".concat(P.$7," mb-0 rounded-full px-6"),onClick:$e,children:"OK"})}):null,(0,q.jsx)(b.a,{open:Re})]})}}}]);
2//# sourceMappingURL=3875.37a2a408.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.