1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2933],{40550:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/marriage/new",function(){return r(76419)}])},37734:function(e,t,r){"use strict";r.d(t,{a:function(){return u}});var s=r(85893),n=r(67294),i=r(11163),o=r(45697),a=r.n(o),l=r(19170);let u=e=>{let{children:t}=e,r=(0,l.a)(),o=(0,i.useRouter)(),[a,u]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{o.isReady&&(r.isAuthenticated?u(!0):(u(!1),r.passwordExpired?o.push({pathname:"/authorize",query:{returnUrl:o.asPath,passwordExpired:!0}}):o.push({pathname:"/authorize",query:{returnUrl:o.asPath}})))},[o.isReady,r.isAuthenticated,r.passwordExpired]),a&&r.isAuthenticated)?(0,s.jsx)(s.Fragment,{children:t}):null};u.propTypes={children:a().node}},39517:function(e,t,r){"use strict";r.d(t,{M:function(){return u}});var s=r(85893),n=r(67294),i=r(11163),o=r(45697),a=r.n(o),l=r(19170);let u=e=>{let{children:t}=e,{user:r}=(0,l.a)(),o=(0,i.useRouter)(),[a,u]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{var e,t;o.isReady&&(r&&(null==r?void 0:null===(t=r.county)||void 0===t?void 0:null===(e=t.subscriptions)||void 0===e?void 0:e.some(e=>5===e.moduleTypeId))?u(!0):o.push({pathname:"/401",query:{returnUrl:o.asPath}}))},[o.isReady]),a)?(0,s.jsx)(s.Fragment,{children:t}):null};u.propTypes={children:a().node}},36505:function(e,t,r){"use strict";r.d(t,{C:function(){return u}});var s=r(85893),n=r(67294),i=r(11163),o=r(45697),a=r.n(o),l=r(19170);let u=e=>{let{children:t,moduleType:r}=e,{user:o}=(0,l.a)(),a=(0,i.useRouter)(),[u,d]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{var e,t;a.isReady&&(o.drmsAdministrator||(null==o?void 0:null===(t=o.county)||void 0===t?void 0:null===(e=t.subscriptions)||void 0===e?void 0:e.some(e=>e.roles.some(e=>1===e.roleTypeId)&&(!r||e.moduleTypeId===r)))?d(!0):a.push({pathname:"/401",query:{returnUrl:a.asPath}}))},[a.isReady]),u)?(0,s.jsx)(s.Fragment,{children:t}):null};u.propTypes={children:a().node}},22280:function(e,t,r){"use strict";r.d(t,{t:function(){return y}});var s=r(85893),n=r(88196),i=r(92365),o=r(52857),a=r(40110),l=r(14312),u=r(97182),d=r(38444),c=r(19170),h=r(67294),p=r(13617),m=r(16173),v=r(36440),x=r(39805);let y=e=>{let{open:t,onClose:r,onCheckoutComplete:y,marriageIds:f,onCreate:j,items:b,mailer:g}=e,{user:w}=(0,c.a)(),{viewReceipt:T,order:C,setLoading:E,setLoadingTypes:Z,stripeInfo:P,paymentTypeOptions:R,initialValues:S,disabledByThreshold:I,miscError:k,setMiscError:z,paymentItemError:_,setPaymentItemError:M,isLoading:V,loadingStripeSettings:H,payerRef:N,formik:A,fetchInitialData:F,getTypes:L,submitOrder:O,handleCompleteCheckout:q,initialItems:U}=(0,x.$)({user:w,onComplete:y||r,onCreate:j,initialItems:b});(0,h.useEffect)(()=>{t&&F(f,g)},[t,w]);let W=()=>{T||r()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.Z,{open:t,onClose:W,maxWidth:"lg",fullWidth:!0,PaperProps:{sx:{minHeight:"80vh"}},children:[(0,s.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Marriage Checkout",(0,s.jsx)(o.Z,{onClick:W,size:"small",children:(0,s.jsx)(d.Z,{})})]}),(0,s.jsxs)(a.Z,{children:[(0,s.jsx)(l.Z,{sx:{zIndex:9999,position:"absolute"},open:V,children:(0,s.jsx)(u.Z,{})}),!H&&(0,s.jsx)(v.d,{editView:!1,setLoading:E,setLoadingTypes:Z,disabledByThreshold:I,partial:!1,disableStripe:!1,enableSatisfy:!1,text:"Checkout",stripeInfo:P,miscError:k,moduleType:5,submitOrder:()=>{O(),A.submitForm()},setMiscError:z,paymentItemError:_,setPaymentItemError:M,formik:A,getTypes:L,paymentTypeOptions:R,initialValues:S,payerRef:N,loading:V,user:w,initialItems:U})]})]}),T&&(0,s.jsx)(p.j,{noPreview:!0,editable:!0,setLoading:E,loading:V,onClose:()=>{q()},county:null==w?void 0:w.county,documentName:"ReceiptForOrder#".concat(C.id),children:(0,s.jsx)(m.$,{order:C,county:null==w?void 0:w.county,moduleType:5})})]})}},93428:function(e,t,r){"use strict";var s=r(64836);t.Z=void 0;var n=s(r(33651)),i=r(85893);t.Z=(0,n.default)([(0,i.jsx)("path",{d:"M5 5v14h14V5zm9 12H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64S3 4.72 3 5v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75M19 19H5V5h14z"},"1")],"AssignmentTwoTone")},74445:function(e,t,r){"use strict";var s=r(64836);t.Z=void 0;var n=s(r(33651)),i=r(85893);t.Z=(0,n.default)([(0,i.jsx)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m.88 13.76V19h-1.75v-1.29c-.74-.18-2.39-.77-3.02-2.96l1.65-.67c.06.22.58 2.09 2.4 2.09.93 0 1.98-.48 1.98-1.61 0-.96-.7-1.46-2.28-2.03-1.1-.39-3.35-1.03-3.35-3.31 0-.1.01-2.4 2.62-2.96V5h1.75v1.24c1.84.32 2.51 1.79 2.66 2.23l-1.58.67c-.11-.35-.59-1.34-1.9-1.34-.7 0-1.81.37-1.81 1.39 0 .95.86 1.31 2.64 1.9 2.4.83 3.01 2.05 3.01 3.45 0 2.63-2.5 3.13-3.02 3.22",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M12.89 11.1c-1.78-.59-2.64-.96-2.64-1.9 0-1.02 1.11-1.39 1.81-1.39 1.31 0 1.79.99 1.9 1.34l1.58-.67c-.15-.44-.82-1.91-2.66-2.23V5h-1.75v1.26c-2.6.56-2.62 2.85-2.62 2.96 0 2.27 2.25 2.91 3.35 3.31 1.58.56 2.28 1.07 2.28 2.03 0 1.13-1.05 1.61-1.98 1.61-1.82 0-2.34-1.87-2.4-2.09l-1.66.67c.63 2.19 2.28 2.78 3.02 2.96V19h1.75v-1.24c.52-.09 3.02-.59 3.02-3.22.01-1.39-.6-2.61-3-3.44"},"1"),(0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},"2")],"PaidTwoTone")},76419:function(e,t,r){"use strict";r.r(t);var s=r(85893),n=r(9008),i=r.n(n),o=r(83490),a=r(98426),l=r(96788),u=r(26624),d=r(28907),c=r(56912),h=r(37734),p=r(36505),m=r(39517),v=r(38575),x=r(1722),y=r(69761),f=r(22280),j=r(63769),b=r(19170),g=r(86025),w=r(86501),T=r(67294);let C=[{label:"First Party",value:"first"},{label:"Second Party",value:"second"}],E=e=>{var t,n;let{user:h}=(0,b.a)(),p=(0,g.s)(),m=(0,T.useRef)(),[v,E]=(0,T.useState)(C[0].value),[Z,P]=(0,T.useState)({}),[R,S]=(0,T.useState)(!1),[I,k]=(0,T.useState)([]),z=(0,T.useRef)(null),_=!!(null==h?void 0:null===(n=h.county)||void 0===n?void 0:null===(t=n.subscriptions)||void 0===t?void 0:t.some(e=>5===e.moduleTypeId&&e.roles.some(e=>3===e.roleTypeId))),M=(0,T.useCallback)(async()=>
1{try{let e=await j.h.getSettings(null==h?void 0:h.selectedCountyId),t=await e.json();if(p){if(e.ok&&t){P(t);return}let r=t&&t.error||e.status;throw Error(r)}}catch(e){"Error: 401 Authentication Required"==e&&(await Promise.resolve().then(r.t.bind(r,11163,23))).default.reload(window.location.pathname),console.error(e),w.ZP.error("Error loading settings!")}},[p,h]);return(0,T.useEffect)(()=>{M()},[h]),(0,s.jsxs)(x.n,{scrollableNodeProps:{ref:m},children:[(0,s.jsx)(i(),{children:(0,s.jsxs)("title",{children:["Marriage : New | ","American Land Records"]})}),(0,s.jsx)(o.Z,{component:"main",sx:{flexGrow:1,py:8},children:(0,s.jsxs)(a.Z,{maxWidth:"lg",children:[(0,s.jsx)(l.Z,{variant:"h4",children:"Create a New License"}),(0,s.jsx)(u.Z,{indicatorColor:"primary",onChange:(e,t)=>{E(t)},scrollButtons:"auto",textColor:"primary",variant:"scrollable",value:v,sx:{mt:3},children:C.map(e=>(0,s.jsx)(d.Z,{label:e.label,value:e.value,path:e.path},e.value))}),(0,s.jsx)(c.Z,{sx:{mb:3}}),(0,s.jsx)(y.Z,{user:h,mode:"clerk",scrollRef:m,currentTab:v,setCurrentTab:E,onSubmitted:e=>{Z.pointOfSale&&!_&&(z.current=document.activeElement,k([e.id]),S(!0))}})]})}),(0,s.jsx)(f.t,{open:R,onClose:()=>S(!1),onCheckoutComplete:()=>{S(!1),k([]),setTimeout(()=>{z.current&&z.current.focus()},0)},marriageIds:I})]})};E.getLayout=e=>(0,s.jsx)(h.a,{children:(0,s.jsx)(p.C,{moduleType:5,children:(0,s.jsx)(m.M,{children:(0,s.jsx)(v.c,{children:e})})})}),t.default=E}},function(e){e.O(0,[4648,5241,8913,6633,5646,5063,7491,9844,1281,5275,6156,193,7958,4984,5261,7389,1845,137,8491,2564,723,7068,1807,8575,7065,2325,8587,8149,5878,2888,9774,179],function(){return e(e.s=40550)}),_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.