PageSourceSearch

https://www.exploremaricopacountyparks.org/_next/static/chunks/pag…/create-ecbd2c53c1e14de5.js

js exploremaricopacountyparks.org collected 2026-10-10 01:00:38 UTC 21,141 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2775,9310],{19309:(e,i,t)=>{var n=t(89634),r=t(66202),s=t(4008);e.exports=r(function(e,i){n(i,s(i),e)})},20486:(e,i,t)=>{"use strict";t.d(i,{fp:()=>u});var n=t(45738),r=t(86137),s=t(81204),a=t(72788),l=t(90769);function o(e){let{pickerDate:i,pickerTime:t,isDirty:n,storedIso:r,orgTimeZone:s}=e;return i&&t?!n&&r?r:(0,l.lg)(i,t,s):null}function d(e){let{enabled:i,priceInfo:t,isResident:s,mode:a,organizationId:l,taxRates:o}=e;return i?function(e,i,t,n){var s,a,l,o,d;let u={...e,name:null!=(s=e.name)?s:"",price_cents:null!=(a=e.price_cents)?a:0,is_resident:null!=(l=e.is_resident)&&l,organization_id:i,tax_rate_id:e.tax_rate_id};if(n)return{...u,is_tax_inclusive:null!=(o=e.is_tax_inclusive)&&o};let{tax_rate_id:_,price_cents:m,is_tax_inclusive:c}=e,p=t.find(e=>e.id===_),h=null!=m?m:0;return c&&(h=(0,r.uO)(null!=m?m:0,null!=(d=null==p?void 0:p.rate)?d:0)),{...u,price_cents:h,is_tax_inclusive:!1}}(t,l,o,!1):"create"===a?void 0:"update"===a?{_disconnect:!0,is_resident:s,name:"",price_cents:0,is_tax_inclusive:!1,organization_id:l}:(0,n.xbG)(a)}function u(e){let{organizationId:i,membershipId:t,membershipTierId:n,mode:r,membershipTier:l,orgTimeZone:u}=e,{data:_}=(0,a.CUE)({variables:{organization_id:i,where:{organization_id:{_eq:i},deleted_at:{_is_null:!0}},order:[]}});return(0,s.useCallback)((e,s)=>{var m,c,p,h,b,g;let{custom_end_date:x,custom_start_date:f,custom_end_time:v,custom_start_time:j,use_tier_only_membership_forms:y,tier_associated_membership_form_ids:k,tier_associated_required_membership_form_ids:w,membership_booking_info:{enable_resident_pricing:C,enable_non_resident_pricing:N,resident_price_info:I,non_resident_price_info:S,is_household_membership_group:D,...T},is_active:M,...q}=e,P=o({pickerDate:x,pickerTime:v,isDirty:null==(m=null==s?void 0:s.end)||m,storedIso:null==l?void 0:l.custom_end_date,orgTimeZone:u}),A=o({pickerDate:f,pickerTime:j,isDirty:null==(c=null==s?void 0:s.start)||c,storedIso:null==l?void 0:l.custom_start_date,orgTimeZone:u}),E=null!=(p=null==_?void 0:_.tax_rates)?p:[],Y=d({enabled:C,priceInfo:I,isResident:!0,mode:r,organizationId:i,taxRates:E}),z=d({enabled:N,priceInfo:S,isResident:!1,mode:r,organizationId:i,taxRates:E}),L=!!y,B=new Set(null!=w?w:[]),R=L?(null!=k?k:[]).map(e=>{var i,n,r,s;let a=null==l||null==(i=l.tier_associated_membership_forms)?void 0:i.find(i=>{var t;return(null==i||null==(t=i.associated_form_definition)?void 0:t.id)===e});return{id:null!=(n=null==a?void 0:a.id)?n:"",membership_id:t,form_definition_id:e,name:null!=(r=null==a?void 0:a.name)?r:"",description:null!=(s=null==a?void 0:a.description)?s:"",is_required:B.has(e)}}):void 0,V="update"===r?{use_tier_only_membership_forms:L,...L?{tier_membership_forms:null!=R?R:[]}:{}}:{};return{...q,is_archived:!M,id:n,organization_id:i,membership_id:t,membership_group_type:D?a.An9.Household:a.An9.Individual,...V,min_age:null!=(h=q.min_age)?h:null,max_age:null!=(b=q.max_age)?b:null,membership_booking_info:{...T,organization_id:i,...void 0!==Y&&{resident_price_info:Y},...void 0!==z&&{non_resident_price_info:z}},start_date_trigger:q.start_date_trigger,end_date_trigger:q.end_date_trigger,custom_end_date:P,custom_start_date:A,max_visits:null!=(g=q.max_visits)?g:null,override_is_public:!!q.override_is_public}},[i,t,n,l,r,_,u])}},32679:(e,i,t)=>{"use strict";t.d(i,{k:()=>d,A:()=>u});var n=t(78488),r=t(81204),s=t(33237),a=t(48339),l=t(74578);let o=()=>{let{handleSubmit:e}=(0,s.xW)(),{goToNextStep:i,goToPreviousStep:t,submitForm:o,isLoading:d}=(0,r.useContext)(l.LT),u=i?e(i):void 0,_=t?e(t):void 0,m=o?e(o):void 0;return(0,n.jsxs)("div",{className:(0,a.cn)("flex",{"justify-between":!!_,"justify-end":!_}),children:[_&&(0,n.jsx)(a.$n.Secondary,{onClick:()=>_(),type:"button",children:"Back"}),m&&(0,n.jsx)(a.nO.Primary,{type:"button",loading:d,onClick:()=>m(),disabled:d,children:"Save"}),u&&(0,n.jsx)(a.$n.Primary,{onClick:()=>u(),type:"button",disabled:d,children:"Continue"})]})};function d(e){let{children:i,form:t}=e;return(0,n.jsx)(s.Op,{...t,children:(0,n.jsxs)("form",{onSubmit:t.handleSubmit(()=>{}),children:[i,(0,n.jsx)("div",{className:"mt-14",children:(0,n.jsx)(o,{})})]})})}let u=d},35327:(e,i,t)=>{"use strict";t.d(i,{k:()=>o});var n=t(17563),r=t(40367),s=t(81204),a=t(50801),l=t(49191);let o=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/manager/calendar",t=(0,n.useRouter)(),o=(0,r.Tp)(e),d=(0,l.Z5)();return(0,s.useEffect)(()=>
1{"boolean"==typeof o&&d.slug&&(o||t.push((0,a.PL)(d.slug,i)))},[t,d,o,i]),o}},45412:(e,i,t)=>{"use strict";t.d(i,{FZ:()=>f,Pr:()=>v,Sn:()=>j,d5:()=>g});var n=t(78488),r=t(81204),s=t(33237),a=t(72788),l=t(74961),o=t(68356),d=t(48113),u=t(28100),_=t(82426);let{Custom:m,NumDays:c,NumMonths:p,SubscriptionNumMonths:h,Purchase:b}=a.uOD;function g(){return(0,n.jsxs)(l.y,{children:[(0,n.jsx)(l.mB,{name:"name",label:"Membership type name",inputProps:{autoComplete:"off"},required:!0}),(0,n.jsx)(l.mB,{name:"description",label:"Membership type description",multiline:!0,inputProps:{autoComplete:"off"},rows:4,required:!0}),(0,n.jsx)(l.Y$,{name:"max_visits",label:"Maximum number of visits"}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,n.jsx)(l.Y$,{name:"min_age",label:"Min age",inputProps:{inputMode:"numeric"}}),(0,n.jsx)(l.Y$,{name:"max_age",label:"Max age",inputProps:{inputMode:"numeric"}})]}),(0,n.jsx)(l.dI,{name:"override_is_public",label:"Visible to the public"}),(0,n.jsx)(l.dI,{name:"is_active",label:"Active"})]})}let x=(0,o.d)(a.uOD,d.xf);function f(){let{watch:e,setValue:i}=(0,s.xW)(),{isSubscription:t}=(0,r.useContext)(_.A),a=e("start_date_trigger"),o=e("end_date_trigger");return(0,n.jsxs)(l.y,{children:[(0,n.jsx)(l.$L,{name:"start_date_trigger",label:"Start date trigger",options:x.filter(e=>e.value!==c&&e.value!==p&&e.value!==h),onChange:()=>{i("custom_start_date",null,{shouldDirty:!0,shouldValidate:!0}),i("custom_start_time",null,{shouldDirty:!0,shouldValidate:!0})},disabled:t,required:!0}),a===m&&(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(l.FD,{name:"custom_start_date",label:"Start date",required:!0,disabled:t}),(0,n.jsx)(l.s2,{name:"custom_start_time",label:"Start time",required:!0,disabled:t})]}),(0,n.jsx)(l.$L,{name:"end_date_trigger",label:"End date trigger",options:x.filter(e=>e.value!==b),onChange:()=>{i("custom_end_date",null,{shouldDirty:!0,shouldValidate:!0}),i("custom_end_time",null,{shouldDirty:!0,shouldValidate:!0}),i("term_length_days",null,{shouldDirty:!0,shouldValidate:!0}),i("term_length_months",null,{shouldDirty:!0,shouldValidate:!0})},disabled:t,required:!0}),o===m&&(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(l.FD,{name:"custom_end_date",label:"End date",required:!0,disabled:t}),(0,n.jsx)(l.s2,{name:"custom_end_time",label:"End time",required:!0,disabled:t})]}),o===c&&(0,n.jsx)(l.Y$,{name:"term_length_days",label:"Term length (days)",required:!0,disabled:t}),(o===p||o===h)&&(0,n.jsx)(l.Y$,{name:"term_length_months",label:"Term length (months)",disabled:t,required:!0})]})}function v(){return(0,n.jsx)(l.y,{children:(0,n.jsx)(u.O,{name:"general_ledger_entry_id",label:"General ledger entry",useTrailmixSelect:!0,allowUnset:!0,helperText:"Optional. Leave blank to use the membership product GL code."})})}function j(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,n.jsx)(g,{}),(0,n.jsx)(f,{}),(0,n.jsx)(v,{})]})}},58621:(e,i,t)=>{"use strict";t.d(i,{YH:()=>h,n7:()=>j,p0:()=>x,rb:()=>y});var n=t(65754),r=t(5233),s=t(72788),a=t(3935);let{Custom:l,NumDays:o,NumMonths:d,SubscriptionNumMonths:u,None:_,Purchase:m}=s.uOD,c=n.gM("start_date_trigger",[n.Ik({custom_start_date:n.p6(),custom_start_time:n.p6(),start_date_trigger:n.k5([l])}),n.Ik({custom_start_date:n.ch(),custom_start_time:n.ch(),start_date_trigger:n.k5([o])}),n.Ik({custom_start_date:n.ch(),custom_start_time:n.ch(),start_date_trigger:n.k5([d,u])}),n.Ik({start_date_trigger:n.k5([_,m]),custom_start_date:n.ch(),custom_start_time:n.ch()})]),p=n.gM("end_date_trigger",[n.Ik({custom_end_date:n.p6(),custom_end_time:n.p6(),end_date_trigger:n.k5([l]),term_length_days:n.ch(),term_length_months:n.ch()}),n.Ik({term_length_days:n.au.number().int().min(1),end_date_trigger:n.k5([o]),custom_end_date:n.ch(),custom_end_time:n.ch(),term_length_months:n.ch()}),n.Ik({term_length_months:n.au.number().int().min(1),end_date_trigger:n.k5([d,u]),custom_end_date:n.ch(),custom_end_time:n.ch(),term_length_days:n.ch()}),n.Ik({end_date_trigger:n.k5([_,m]),custom_end_date:n.ch(),custom_end_time:n.ch(),term_length_days:n.ch(),term_length_months:n.ch()})]),h=n.Ik({description:n.Yj().nullish(),general_ledger_entry_id:n.vk(a.qR,n.Yj().uuid().nullable()),is_active:n.zM().default(!1),name:n.Yj().min(1),override_is_public:n.zM().default(!1),max_visits:n.au.number().int().min(0).nullish(),min_age:n.vk(e=>""===e?null:e,n.au.number().int().min(0).nullish()),max_age:n.vk(e=>""===e?null:e,n.au.number().int().min(0).nullish())}).superRefine((e,i)=>{null!=e.min_age&&null!=e.max_age&&e.min_age>e.max_age&&i.addIssue({code:r.eq.custom,message:"Min age cannot be greater than max age",path:["min_age"]})}).and(c).and(p),b=n.Ik({description:n.Yj().nullish(),is_tax_inclusive:n.zM().default(!1),is_resident:n.zM().nullish(),name:n.Yj().default(" "),price_cents:n.ai().min(0,{message:"Price is required"}),tax_rate_id:n.Yj().nullish()}),g=b.extend({name:n.Yj().nullish(),price_cents:n.ai().nullish()}),x={description:"",general_ledger_entry_id:null,is_active:!1,name:"",override_is_public:!1,max_visits:null,min_age:null,max_age:null,start_date_trigger:m,end_date_trigger:_,custom_start_date:null,custom_start_time:null,custom_end_date:null,custom_end_time:null,term_length_days:null,term_length_months:null},f=n.gM("enable_resident_pricing",[n.Ik({enable_resident_pricing:n.eu(!1).default(!1),resident_price_info:g}),n.Ik({enable_resident_pricing:n.eu(!0).default(!0),resident_price_info:b})]),v=n.gM("enable_non_resident_pricing",[n.Ik({enable_non_resident_pricing:n.eu(!1).default(!1),non_resident_price_info:g}),n.Ik({enable_non_resident_pricing:n.eu(!0).default(!0),non_resident_price_info:b})]),j=n.Ik({membership_booking_info:n.Ik({description:n.Yj().nullish(),name:n.Yj().min(1,{message:"Name is required"}),is_household_membership_group:n.zM().default(!1),needs_approval_by_admin:n.zM().default(!1)}).and(f).and(v)}),y={membership_booking_info:{description:"",enable_non_resident_pricing:!1,enable_resident_pricing:!1,is_household_membership_group:!1,needs_approval_by_admin:!1,name:"",resident_price_info:{name:"",price_cents:0,description:"",is_tax_inclusive:!1,is_resident:!1},non_resident_price_info:{name:"",price_cents:0,description:"",is_tax_inclusive:!1,is_resident:!1}}}},67251:(e,i,t)=>{e.exports=t(19309)},72690:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[org]/manager/memberships/management/[mid]/membership-tiers/create",function(){return t(95524)}])},74578:(e,i,t)=>{"use strict";t.d(i,{LT:()=>b,Ay:()=>f,sF:()=>g});var n=t(78488),r=t(48339),s=t(39310),a=t(67214),l=t(67251),o=t.n(l),d=t(81204),u=t(30066),_=t(10427),m=t(43746);let c=e=>{let{isActive:i,isDisabled:t,stepDefinition:s,stepIdx:a,onClick:l}=e,{isComplete:o,label:d}=s,u=()=>{t||l()};return(0,n.jsx)("div",{className:(0,r.cn)("relative z-10 rounded-full p-3",{"cursor-pointer":!t,"cursor-not-allowed":t}),"aria-disabled":t,role:"button",tabIndex:0,onClick:u,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&u()},children:(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("div",{className:(0,r.cn)("flex h-[24px] w-[24px] items-center justify-center rounded-full bg-brand-tertiary transition-colors duration-100",{"text-primary":o,"bg-brand-primary text-white":!o&&i,"text-brand-primary":!o&&!i}),children:o?(0,n.jsx)(m.A,{className:"text-base"}):(0,n.jsx)(r.EY.BodySmallSemiBold,{className:(0,r.cn)({"text-success-dark":o,"text-brand-primary":!o&&!i,"text-white":!o&&i}),children:a+1})}),(0,n.jsx)(r.EY.BodySmallSemiBold,{children:d})]})})},p=()=>{let{steps:e,currentStepIdx:i,setCurrentStepIdx:t,isLoading:r}=(0,d.useContext)(b);return(0,n.jsxs)("div",{className:"relative mt-[6px] flex flex-col gap-4 md:min-w-[240px]",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute left-0 top-0 z-0 h-[48px] w-full rounded-full bg-brand-tertiary transition-transform duration-300 ease-out",style:{transform:"translate3d(0, ".concat(64*i,"px, 0)")}}),e.map((e,s)=>(0,n.jsx)(c,{isActive:s===i,isDisabled:r||s>
1i&&!e.isComplete,stepIdx:s,stepDefinition:e,onClick:()=>t(s)},e.id))]})},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,[r,s]=(0,d.useState)(e),[a,l]=(0,d.useState)(0),[o,u]=(0,d.useState)(i),_=(e,i)=>{s(e=>({...e,...i})),u(i=>{let t=[...i];return t[e]={...t[e],isComplete:!0},t})},m=async e=>{_(a,e),await t({...r,...e})},c=0===a,p=a===i.length-1;return{currentStepIdx:a,goToNextStep:p?void 0:e=>{_(a,e),l(e=>e+1)},goToPreviousStep:c?void 0:e=>{_(a,e),l(e=>e-1)},submitForm:p?e=>m(e):void 0,isFirstStep:c,isLastStep:p,isLoading:n,setCurrentStepIdx:l,setSubmissionData:s,steps:o,submissionData:r}},b=(0,d.createContext)({currentStepIdx:0,goToNextStep:e=>{},goToPreviousStep:e=>{},isFirstStep:!1,isLastStep:!1,isLoading:!1,setCurrentStepIdx:()=>{},setSubmissionData:()=>{},steps:[],submissionData:{},submitForm:async e=>{}});function g(){return(0,d.useContext)(b)}let x={open:!1,loading:!1,title:"Confirm cancel",header:"Are you sure you want to cancel?",subHeader:"Your progress will not be saved.",onConfirm:()=>{},onClose:()=>{}},f=e=>{let{confirmCloseDialogProps:i,isLoading:t,initialData:l,steps:m,submitFn:c,title:g}=e,[f,v]=(0,d.useState)(!1),j=()=>v(!0),y=h(l,m,c,t),{currentStepIdx:k}=y,w=m[k],{getColor:C}=(0,r.wR)(),N=o()(x,null!=i?i:{},{open:f,onClose:()=>v(!1)});return(0,d.useEffect)(()=>()=>{document.body.style.overflow=""},[]),(0,n.jsx)(a.A,{open:!0,onClose:(e,i)=>{"backdropClick"!==i&&j()},maxWidth:"xl",PaperProps:{className:"w-full m-0 p-0 bg-primary max-w-full h-screen max-h-screen"},sx:{".MuiDialog-container":{backgroundColor:C("surface","primary")},".MuiDialog-paper":{boxShadow:"none"}},children:(0,n.jsxs)(b.Provider,{value:{...y,isLoading:t},children:[t?(0,n.jsx)(_.A,{className:"fixed bottom-0 left-0 right-0 top-0"}):(0,n.jsx)("div",{className:"h-full w-full overflow-y-auto",children:(0,n.jsx)("div",{className:"relative mx-auto w-full max-w-[1208px]",children:(0,n.jsxs)("div",{className:"flex h-full gap-12 px-1 sm:px-5 md:px-7",children:[(0,n.jsx)("div",{className:(0,r.cn)("sticky top-0 hidden max-h-[calc(100vh)] overflow-y-auto py-[120px] [scrollbar-width:none] md:w-[320px] [&::-webkit-scrollbar]:hidden",{"md:block":m.length>1}),children:(0,n.jsx)(p,{})}),(0,n.jsxs)("div",{className:"mx-auto w-[752px] pt-[120px]",children:[(0,n.jsx)("div",{className:"absolute right-0 top-[64px]",children:(0,n.jsx)(r.K0,{onClick:j,children:(0,n.jsx)(s.A,{className:"text-32"})})}),(0,n.jsx)(r.EY.TitleLarge,{children:g}),(0,n.jsx)("div",{className:"mt-8 pb-[120px]",children:(0,n.jsx)(w.component,{})})]})]})})}),(0,n.jsx)(u.A,{...N})]})})}},82426:(e,i,t)=>{"use strict";t.d(i,{A:()=>n});let n=(0,t(81204).createContext)({isSubscription:!1,membershipTier:void 0})},90797:(e,i,t)=>{"use strict";t.d(i,{Vr:()=>f});var n=t(78488),r=t(81204),s=t(33237),a=t(72788),l=t(74578),o=t(65754),d=t(63378),u=t(49191),_=t
1(24846),m=t(3935),c=t(45439),p=t(74961),h=t(63018);o.Ik({taxRateID:o.Yj().transform(m.qR)});let b=e=>{let{name:i,label:t="Tax rate",options:r,allowUnset:s=!1,searchable:l=!0,disabled:o,useTrailmixSelect:m,...b}=e,g=(0,u.Z5)(),x=(0,d.qN)(),{data:f,loading:v}=(0,a.CUE)({skip:!!r,variables:{organization_id:g.organizationID,where:{deleted_at:{_is_null:!0}},order:[]},onError:e=>{_.A.error(e),x("Error loading tax rates")}});if(!r){var j;r=function(e){let{taxRates:i,allowUnset:t}=e,n=[];for(let e of(t&&n.push({value:"",label:"Clear"}),i))n.push({value:e.id,label:(0,h.P)(e)});return n.toSorted((e,i)=>i.label.localeCompare(e.label))}({taxRates:null!=(j=null==f?void 0:f.tax_rates)?j:[],allowUnset:s})}(null==r?void 0:r.length)||(r=[{value:"",label:""}]);let y={label:t,name:i,options:r,disabled:o||v,searchable:l,...b};return m?(0,n.jsx)(p.$L,{...y}):(0,n.jsx)(c.$L,{...y})};var g=t(82426);function x(){let{isSubscription:e}=(0,r.useContext)(g.A),{submissionData:i}=(0,r.useContext)(l.LT),t=(null==i?void 0:i.end_date_trigger)===a.uOD.SubscriptionNumMonths;return{isSubscription:e||t,lockBookingPolicyEdits:e}}function f(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,n.jsx)(v,{}),(0,n.jsx)(y,{}),(0,n.jsx)(k,{})]})}function v(){var e;let{isSubscription:i,lockBookingPolicyEdits:t}=x(),{membershipTier:a}=(0,r.useContext)(g.A),{watch:l}=(0,s.xW)(),o=!0===l("membership_booking_info.needs_approval_by_admin"),d=(null==a||null==(e=a.membership_booking_info)?void 0:e.needs_approval_by_admin)===!0,u=null!=a&&!i&&d&&!o;return(0,n.jsxs)(p.y,{children:[(0,n.jsx)(p.mB,{name:"membership_booking_info.name",label:"Booking policy name",required:!0}),(0,n.jsx)(p.mB,{name:"membership_booking_info.description",label:"Booking policy description",multiline:!0,rows:4}),(0,n.jsx)(p.dI,{name:"membership_booking_info.is_household_membership_group",label:"Household membership",disabled:t}),(0,n.jsx)(p.dI,{name:"membership_booking_info.needs_approval_by_admin",label:"Requires admin approval",disabled:i,inputProps:u?{"aria-describedby":"needs-approval-helper-text"}:void 0}),u&&(0,n.jsx)("p",{id:"needs-approval-helper-text",className:"text-sm text-gray-600",children:"Saving will immediately approve all pending eligible applications for this tier. Members will not receive a confirmation or QR code email — notify them separately if needed."})]})}function j(e){let{isResident:i}=e,{watch:t,setValue:r}=(0,s.xW)(),a=i?"resident_price_info":"non_resident_price_info",l=t("membership_booking_info.".concat(a,".tax_rate_id")),o="membership_booking_info.enable_".concat(i?"resident":"non_resident","_pricing"),d=t(o),{lockBookingPolicyEdits:u}=x();return(0,n.jsxs)(p.y,{children:[(0,n.jsx)(p.dI,{name:o,label:i?"Enable resident pricing":"Enable non-resident pricing",onChange:e=>{r(o,e,{shouldValidate:!0}),e&&r("".concat("membership_booking_info.".concat(a),".is_resident"),i)},disabled:u}),!!d&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.mB,{name:"membership_booking_info.".concat(a,".name"),label:"Name",required:!0,disabled:u}),(0,n.jsx)(p.mB,{name:"membership_booking_info.".concat(a,".description"),label:"Description",multiline:!0,rows:4,disabled:u}),(0,n.jsx)(b,{name:"membership_booking_info.".concat(a,".tax_rate_id"),label:"Tax rate",useTrailmixSelect:!0,disabled:u}),(0,n.jsx)(p.l4,{name:"membership_booking_info.".concat(a,".price_cents"),label:"Price",required:!0,disabled:u}),(0,n.jsx)(p.iA,{name:"membership_booking_info.".concat(a,".is_tax_inclusive"),label:"Include taxes in this price",disabled:!l||u})]})]})}function y(){return(0,n.jsx)(j,{isResident:!0})}function k(){return(0,n.jsx)(j,{isResident:!1})}},95524:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>S});var n=t(78488),r=t(58723),s=t(45738),a=t(42804),l=t(17563),o=t(72788),d=t(74578),u=t(63378),_=t(35327),m=t(49191),c=t(1599),p=t(24846),h=t(50801),b=t(81204),g=t(33237),x=t(32679),f=t(3935),v=t(90797),j=t(58621),y=t(45412),k=t(20486);let w=[{id:"details",component:()=>{let{submissionData:e}=(0,b.useContext)(d.LT),i=(0,g.mN)({shouldUnregister:!1,resolver:(0,f.uG)(j.YH),defaultValues:{...j.p0,...e}});return(0,n.jsx)(x.A,{form:i,children:(0,n.jsx)(y.Sn,{})})},label:"Details"},{id:"booking_info",component:()=>{let{submissionData:e}=(0,b.useContext)(d.LT),i=(0,g.mN)({shouldUnregister:!1,resolver:(0,f.uG)(j.n7),defaultValues:{...j.rb,...e}});return(0,n.jsx)(x.A,{form:i,children:(0,n.jsx)(v.Vr,{})})},label:"Booking info"}],C={...j.p0,...j.rb,use_tier_only_membership_forms:!1,tier_associated_membership_form_ids:[],tier_associated_required_membership_form_ids:[]};function N(){var e;let[i,{loading:t}]=(0,o.dPW)({...c.D}),r=(0,l.useRouter)(),b=(0,m.Z5)(),{mid:g}=r.query;(0,_.k)(s.sKG.enableMembershipCRUDV2,a.Jv.membershipTiersCreate);let x=(0,u.xN)(),f=(0,u.qN)(),v=(0,k.fp)({organizationId:b.organizationID,membershipId:g,mode:"create",orgTimeZone:null!=(e=b.defaultIanaTimezone)?e:b.momentTimeZone}),j=async e=>{try{let t=await i({variables:{input:v(e)}});!t.data||t.errors?(p.A.error(t.errors),f("Failed to create membership type")):(x("Membership type created successfully"),await r.push((0,h.PL)(b.slug,(0,h.f2)(a.Jv.membershipsManagementShow,{mid:g}))))}catch(e){p.A.error(e),f("Failed to create membership type")}};return(0,n.jsx)(d.Ay,{confirmCloseDialogProps:{onConfirm:()=>{r.push((0,h.PL)(b.slug,(0,h.f2)(a.Jv.membershipsManagementShow,{mid:g})))}},initialData:C,steps:w,submitFn:j,isLoading:t,title:"Add new membership type"})}let I=()=>(0,n.jsx)(N,{});I.PageLayout=r.T;let S=I}},e=>{e.O(0,[7643,5214,9869,3661,5799,2599,4105,320,3630,2463,4098,6055,6482,6943,9436,789,8668,7763,4543,1724,4488,2224,8385,3862,2242,3804,3310,8723,636,6593,8792],()=>e(e.s=72690)),_N_E=e.O()}]);

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.