https://getdispute.com/_next/static/chunks/pages/delivery/[task_id]/confirm/info-ff9c0aefe0e617b5.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4242],{24598:function(e,t,n){"use strict";var r=n(95122);t.Z=void 0;var i=r(n(68671)),o=n(52322),a=(0,i.default)((0,o.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFileOutlined");t.Z=a},19214:function(e,t,n){"use strict";var r=n(95122);t.Z=void 0;var i=r(n(68671)),o=n(52322),a=(0,i.default)((0,o.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"}),"FileUploadOutlined");t.Z=a},45865:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(28193),i=n(26831),o=n(2784),a=n(6277),s=n(69075),c=n(42575),l=n(48891),u=n(4843),d=n(15672);function f(e){return(0,d.Z)("MuiAlertTitle",e)}(0,n(69222).Z)("MuiAlertTitle",["root"]);var p=n(52322);const h=["className"],v=(0,c.ZP)(u.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})));var m=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiAlertTitle"}),{className:o}=n,c=(0,i.Z)(n,h),u=n,d=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},f,t)})(u);return(0,p.jsx)(v,(0,r.Z)({gutterBottom:!0,component:"div",ownerState:u,ref:t,className:(0,a.Z)(d.root,o)},c))}))},96221:function(e,t,n){"use strict";var r=n(26831),i=n(28193),o=n(2784),a=n(6277),s=n(69075),c=n(47591),l=n(42575),u=n(48891),d=n(34727),f=n(52322);const p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=(0,l.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,c.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,i.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,i.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),v=(0,l.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,i.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),m=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:c,className:l,component:m=(c?"div":"hr"),flexItem:x=!1,light:g=!1,orientation:y="horizontal",role:b=("hr"!==m?"separator":void 0),textAlign:Z="center",variant:j="fullWidth"}=n,w=(0,r.Z)(n,p),_=(0,i.Z)({},n,{absolute:o,component:m,flexItem:x,light:g,orientation:y,role:b,textAlign:Z,variant:j}),S=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:c,variant:l}=e,u={root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===c&&"vertical"!==a&&"textAlignRight","left"===c&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,s.Z)(u,d.V,r)})(_);return(0,f.jsx)(h,(0,i.Z)({as:m,className:(0,a.Z)(S.root,l),role:b,ref:t,ownerState:_},w,{children:c?(0,f.jsx)(v,{className:S.wrapper,ownerState:_,children:c}):null}))}));t.Z=m},7900:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(26831),i=n(28193),o=n(2784),a=n(6277),s=n(69075),c=n(31326),l=n(42575),u=n(48891),d=n(129),f=n(2936),p=n(4843),h=n(15672);function v(e){return(0,h.Z)("MuiLink",e)}var m=(0,n(69222).Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),x=n(2818),g=n(47591);const y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var b=({theme:e,ownerState:t})=>{const n=(e=>y[e]||e)(t.color),r=(0,x.D)(e,`palette.${n}
1`,!1)||t.color,i=(0,x.D)(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,g.Fq)(r,.4)},Z=n(52322);const j=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],w=(0,l.ZP)(p.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${(0,c.Z)(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>(0,i.Z)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,i.Z)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:b({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${m.focusVisible}`]:{outline:"auto"}})));var _=o.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiLink"}),{className:l,color:p="primary",component:h="a",onBlur:m,onFocus:x,TypographyClasses:g,underline:b="always",variant:_="inherit",sx:S}=n,R=(0,r.Z)(n,j),{isFocusVisibleRef:C,onBlur:P,onFocus:E,ref:A}=(0,d.Z)(),[T,k]=o.useState(!1),N=(0,f.Z)(t,A),O=(0,i.Z)({},n,{color:p,component:h,focusVisible:T,underline:b,variant:_}),F=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${(0,c.Z)(i)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,s.Z)(o,v,t)})(O);return(0,Z.jsx)(w,(0,i.Z)({color:p,className:(0,a.Z)(F.root,l),classes:g,component:h,onBlur:e=>{P(e),!1===C.current&&k(!1),m&&m(e)},onFocus:e=>{E(e),!0===C.current&&k(!0),x&&x(e)},ref:N,ownerState:O,variant:_,sx:[...Object.keys(y).includes(p)?[]:[{color:p}],...Array.isArray(S)?S:[S]]},R))}))},25842:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/delivery/[task_id]/confirm/info",function(){return n(1993)}])},33863:function(e,t,n){"use strict";n.d(t,{AU:function(){return l},Ku:function(){return c},Pc:function(){return p}});var r=n(98788),i=n(5163),o=n(49857),a=n(24423),s=n(96624),c=function(e){var t="/api/app/delivery_tasks/".concat(e),n=(0,o.ZP)((function(){return e?(0,s.i3)(t):null}),(function(){return(0,s.f7)(t)})),r=n.data,i=n.error,a=n.isValidating;return(null===r||void 0===r?void 0:r.error)||i?{error:(null===r||void 0===r?void 0:r.error)||i}:{data:r,is_validating:a}},l=function(e){var t="/api/app/documents/".concat(e,"/deliveries"),n=(0,o.ZP)((function(){return e?(0,s.i3)(t):null}),(function(){return(0,s.f7)(t)})),r=n.data,i=n.error,a=n.isValidating;return(null===r||void 0===r?void 0:r.error)||i?{error:(null===r||void 0===r?void 0:r.error)||i}:{data:r,is_validating:a}};function u(){return(u=(0,r.Z)((function(e,t){return(0,i.__generator)(this,(function(n){return[2,(0,a.Li)("/api/app/delivery_tasks/".concat(e,"/edit"),{fields:t})]}))}))).apply(this,arguments)}function d(){return(d=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,a.TB)("/api/app/delivery_tasks/".concat(e,"/submit"))]}))}))).apply(this,arguments)}function f(){return(f=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,o.JG)("/api/app/delivery_tasks/".concat(e))];case 1:return t.sent(),[2]}}))}))).apply(this,arguments)}var p={editDeliveryTask:function(e,t){return u.apply(this,arguments)},submitDeliveryTask:function(e){return d.apply(this,arguments)},refreshTask:function(e){return f.apply(this,arguments)}}},18186:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(2784),i=n(5632),o=n(13200),a=function(){var e=(0,o.useAuth)(),t=(0,i.useRouter)();return(0,r.useEffect)((function(){null===e.user&&t.push("/")}),[e,t]),e}},39385:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(52322),i=n(26004),o=n(4843),a=n(59452),s=n(96221),c=n(42761),l=n(11613),u=n(7417);function d(e){var t=e.content,n=(0,i.Z)();return t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{variant:"h5",component:"p",sx:{mb:1},children:t.header}),(0,r.jsx)(o.Z,{variant:"body1",component:"p",color:n.palette.text.secondary,children:t.description}),(0,r.jsx)(a.Z,{children:t.sections.map((function(e){var t,n;return(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(s.Z,{sx:{my:3}}),(0,r.jsxs)(c.ZP,{container:!0,sx:{justifyContent:"space-between"},children:[e.title&&(0,r.jsx)(c.ZP,{item:!0,children:(0,r.jsx)(o.Z,{variant:"h6",sx:{mb:2},children:e.title})}),e.edit_url&&(0,r.jsx)(c.ZP,{item:!0,children:(0,r.jsx)(l.F,{underline:"hover",href:e.edit_url,variant:"body1_bolded",children:(null===(t=e.section_items)||void 0===t?void 0:t.length)>0?"Edit":"Add"})})]}),null===e||void 0===e||null===(n=e.section_items)||void 0===n?void 0:n.map((function(e){return(0,r.jsx)(a.Z,{sx:{mb:2},children:(0,r.jsx)(u.Z,{sectionItem:e})})}))]},e.title)}))})]}):null}},7417:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(52322),i=n(26004),o=n(42761),a=n(4843),s=n(11613),c=n(78688);function l(e){var t,n,l=e.sectionItem,u=(0,i.Z)();return(0,r.jsxs)(o.ZP,{container:!0,spacing:2,justifyContent:"space-between",children:[(0,r.jsxs)(o.ZP,{item:!0,xs:10,children:[(0,r.jsx)(a.Z,{variant:"body1_bolded",component:"p",children:l.header}),(null===(t=l.description)||void 0===t?void 0:t.length)>0?(0,r.jsx)(r.Fragment,{children:l.description.map((function(e){return(0,r.jsx)(a.Z,{color:u.palette.text.secondary,children:e},e)}))}):(0,r.jsx)(a.Z,{color:u.palette.text.secondary,children:"Please provide information"})]}),(0,r.jsx)(o.ZP,{item:!0,xs:2,display:"flex",justifyContent:"flex-end",children:l.edit_url&&(0,r.jsx)(s.F,{underline:"always",href:l.edit_url,variant:"body1_bolded",children:(null===(n=l.description)||void 0===n?void 0:n.length)>0?"Edit":"Add"})}),l.warnings&&(0,r.jsx)(o.ZP,{item:!0,xs:12,children:(0,r.jsx)(o.ZP,{container:!0,spacing:1,children:l.warnings.map((function(e){return(0,r.jsx)(o.ZP,{item:!0,xs:12,children:(0,r.jsx)(c.o,{alertType:null===e||void 0===e?void 0:e.alert_type,message:null===e||void 0===e?void 0:e.alert_description})},null===e||void 0===e?void 0:e.alert_title)}))})})]})}},56317:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(52322),i=n(30776),o=n(59452),a=n(71267),s=n(42761),c=n(89103),l=n(13200),u=n(77102);function d(e){var t=e.children;if((0,u.x)())return null;var n=(0,l.useAuth)(),d=(0,c.Yd)(null===n||void 0===n?void 0:n.user);return(0,r.jsx)(o.Z,{sx:{flexGrow:1,mx:3},children:(0,r.jsx)(a.Z,{position:"static",color:"transparent",elevation:0,
1children:(0,r.jsxs)(s.ZP,{container:!0,justifyContent:"space-between",sx:{py:2},children:[(0,r.jsx)(s.ZP,{item:!0,md:2,xs:4,display:"flex",justifyContent:"flex-start",alignItems:"center",sx:{flexGrow:1},children:(0,r.jsx)(i.Z,{href:d?"/dashboard":"/"})}),t&&(0,r.jsx)(s.ZP,{item:!0,display:"flex",justifyContent:"flex-start",alignItems:"center",children:t})]})})})}d.defaultProps={children:null}},11261:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r=n(52322),i=n(56042),o=n(42761),a=n(40224),s=n(49107);function c(e){var t=e.description,n=e.hideMainAppBar;return(0,r.jsxs)(r.Fragment,{children:[!n&&(0,r.jsx)(s.Z,{}),(0,r.jsx)(i.Z,{maxWidth:"md",sx:{flexGrow:1,mb:2},children:(0,r.jsx)(o.ZP,{container:!0,justifyContent:"center",sx:{mt:4},children:(0,r.jsx)(o.ZP,{item:!0,xs:12,children:(0,r.jsx)(a.Z,{severity:"error",children:t})})})})]})}c.defaultProps={description:"Oops, something went wrong. Please reach out to live chat.",hideMainAppBar:!1}},3634:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(52322),i=n(79486),o=n(49107);function a(e){var t=e.hideMainAppBar,n=e.title,a=e.subtitle;return(0,r.jsxs)(r.Fragment,{children:[!t&&(0,r.jsx)(o.Z,{}),(0,r.jsx)(i.k,{title:n,subtitle:a})]})}a.defaultProps={hideMainAppBar:!1,title:null,subtitle:null}},1993:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(98788),i=n(5163),o=n(52322),a=n(1950),s=n(58502),c=n(2367),l=n(59452),u=n(4843),d=n(17488),f=n(5632),p=n(78398),h=n(2784),v=n(8415),m=n(39385),x=n(56317),g=n(3634),y=n(11261),b=n(18186),Z=n(33863),j=n(35417),w=function(e){var t,n;switch((0,j.m)(e)){case v.$.ERROR:n="error";break;case v.$.WARNING:n="warning";break;case v.$.INFO:case v.$.SUCCESS:case v.$.HELP:default:n="info"}return[{alert_title:(0,j.V)(e),alert_description:null===(t=e.message)||void 0===t?void 0:t.text,alert_type:n}]};function _(){var e,t,n,v,j=(0,f.useRouter)();(0,b.Q)();var _=j.query.task_id,S=(0,h.useState)(!1),R=S[0],C=S[1],P=(0,h.useState)(null),E=P[0],A=P[1],T=(0,Z.Ku)(_),k=T.data;if(T.error)return(0,o.jsx)(y.S,{});if(!k)return(0,o.jsx)(g.S,{});var N,O=k.delivery_task,F=function(){var e=(0,r.Z)((function(){var e,t,n;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:A(null),C(!0),r.label=1;case 1:return r.trys.push([1,4,5,6]),[4,Z.Pc.submitDeliveryTask(_)];case 2:return e=r.sent(),t=e.redirect_url||"/home",[4,j.push(t)];case 3:return r.sent(),[3,6];case 4:return n=r.sent(),console.error(n),A({type:"error",message:n.message||"Unknown issue occurred, please try again."}),[3,6];case 5:return C(!1),[7];case 6:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}(),I={primaryButton:{handler:F,text:"Confirm & Mail",disabled:(N=O,!N.recipient||!N.sender||!N.recipient.is_valid||!N.sender.is_valid),loading:R,type:"submit"},secondaryButton:{handler:j.back,text:"Back",disabled:!1,loading:!1}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x.Z,{}),(0,o.jsx)(a.F,{viewModel:I,children:(0,o.jsxs)(l.Z,{sx:{width:"100%"},children:[(0,o.jsx)(m.Z,{content:{header:"Confirm mailing details",description:"We will mail the document once you confirm.",sections:[{title:"Recipient",section_items:[{header:null===O||void 0===O||null===(e=O.recipient)||void 0===e?void 0:e.name,description:(0,p.RH)(null===O||void 0===O||null===(t=O.recipient)||void 0===t?void 0:t.address,!1),edit_url:"/delivery/".concat(_,"/confirm/recipient"),warnings:w(O.recipient)}]},{title:"Sender",section_items:[{header:null===O||void 0===O||null===(n=O.sender)||void 0===n?void 0:n.name,description:(0,p.RH)(null===O||void 0===O||null===(v=O.sender)||void 0===v?void 0:v.address,!1),edit_url:"/delivery/".concat(_,"/confirm/sender"),warnings:w(O.sender)}]}]}}),(0,o.jsx)(s.Q,{}),(0,o.jsx)(u.Z,{variant:"h6",sx:{mb:2},children:"Documents"}),(0,o.jsx)(d.m,{allowFileUpload:!1,handleAttempt:function(){},handleError:function(){},handleSuccess:function(){},files:O.files})]})}),(0,o.jsx)(c.$,{color:null===E||void 0===E?void 0:E.type,message:null===E||void 0===E?void 0:E.message,open:null!==E})]})}},35417:function(e,t,n){"use strict";n.d(t,{V:function(){return o},m:function(){return i}});var r=n(8415);function i(e){var t,n=null===(t=e.message)||void 0===t?void 0:t.type;return["address_warning","geocode_level"].includes(n)?r.$.WARNING:["address_error","geocode_error","service_error"].includes(n)?r.$.ERROR:"address_correction"===n?r.$.HELP:r.$.SUCCESS}function o(e){var t,n=null===(t=e.message)||void 0===t?void 0:t.type;return["address_warning","geocode_level"].includes(n)?"Address Warning":"address_correction"===n?"Address Corrected":["address_error","geocode_error","service_error"].includes(n)?"Address Error":""}},96624:function(e,t,n){"use strict";n.d(t,{Ky:function(){return P},Li:function(){return R},Md:function(){return _},TB:function(){return j},bO:function(){return E},f7:function(){return v},i3:function(){return h},l:function(){return x},tQ:function(){return y}});var r=n(98788),i=n(47842),o=n(5163),a=n(49857),s=n(18956),c=n(21805),l=n(56593),u="last_case";function d(){return l.$.getInstance().getFirebaseAuth()}function f(e){return p.apply(this,arguments)}function p(){return(p=(0,r.Z)((function(e){var t,n,r;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:return(n=e.headers.get("content-type"))&&-1!==n.indexOf("application/json")?[4,e.json()]:[3,2];case 1:return t=i.sent(),[3,4];case 2:return[4,e.text()];case 3:r=i.sent(),t={error:r},i.label=4;case 4:return[2,t]}}))}))).apply(this,arguments)}function h(e){var t;return(null===(t=d())||void 0===t?void 0:t.currentUser)?e:null}function v(e){return m.apply(this,arguments)}function m(){return(m=(0,r.Z)((function(e){var t;return(0,o.__generator)(this,(function(n){switch(n.label){case 0:return[4,d().currentUser.getIdToken(!0)];case 1:return t=n.sent(),[4,fetch(e,{method:"GET",headers:(0,i.Z)({"Content-Type":"application/json",Authorization:JSON.stringify({token:t})},s.W,c.Z.get(s.W))})];case 2:return[2,n.sent().json()]}}))}))).apply(this,arguments)}function x(e){return g.apply(this,arguments)}function g(){return(g=(0,r.Z)((function(e){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return[4,fetch(e,{method:"GET",headers:(0,i.Z)({"Content-Type":"application/json"},s.W,c.Z.get(s.W))})];case 1:return[2,t.sent().json()]}}))}))).apply(this,arguments)}function y(e,t){return(0,a.ZP)((function(){return h(e)}),(function(){return v(e)}),t)}function b(e,t,n){return Z.apply(this,arguments)}function Z(){return(Z=(0,r.Z)((function(e,t,n){var r,a;return(0,o.__generator)(this,(function(o){switch(o.label){case 0:return[4,null===(r=d().currentUser)||void 0===r?void 0:r.getIdToken()];case 1:if(!(a=o.sent()))throw new Error("not_authorized");return[4,fetch(e,{method:t,headers:(0,i.Z)({"Content-Type":"application/json",Authorization:JSON.stringify({token:a})},s.W,c.Z.get(s.W)),body:JSON.stringify(n)})];case 2:return[2,f(o.sent())]}}))}))).apply(this,arguments)}function j(e,t){return w.apply(this,arguments)}function w(){return(w=(0,r.Z)((function(e,t){return(0,o.__generator)(this,(function(n){return[2,b(e,"POST",t)]}))}))).apply(this,arguments)}function _(e,t){return S.apply(this,arguments)}function S(){return(S=(0,r.Z)((function(e,t){var n;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:return[4,fetch(e,{method:"POST",headers:(0,i.Z)({"Content-Type":"application/json"},s.W,c.Z.get(s.W)),body:JSON.stringify(t)})];case 1:return[4,r.sent().json()];case 2:if((n=r.sent()).error)throw console.error(n.error),n.error;return[2,n]}}))}))).apply(this,arguments)}function R(e,t){return C.apply(this,arguments)}function C(){return(C=(0,r.Z)((function(e,t){return(0,o.__generator)(this,(function(n){return[2,b(e,"PUT",t)]}))}))).apply(this,arguments)}function P(e){return c.Z.get("".concat(u,"_").concat(e))}function E(e,t){t&&c.Z.set("".concat(u,"_").concat(e),t)}},78688:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var r=n(52322),i=n(45865),o=n(40224),a=n(7900),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function c(e){var t=e.alertType,n=e.title,c=e.titleType,l=e.message,u=e.fontColor,d=e.link,f=e.linkRef;if(!l)return null;return(0,r.jsxs)(o.Z,s({severity:t,sx:{borderLeft:2,borderColor:function(){switch(t){case"error":return"#F44336";case"info":return"#3679E1";case"success":return"#4caf50";default:return"#FFA118"}}(),borderLeftWidth:4,borderRadius:1,color:u}},{children:[n&&("bolded"===c?(0,r.jsx)("b",{children:n}):(0,r.jsx)(i.Z,{children:n}))," ",l,d&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(a.Z,s({sx:{color:"black",textDecorationColor:"black"},target:"_blank",href:f},{children:d}))})]}))}c.defaultProps={alertType:"info",message:null,title:null,titleType:"new-line",fontColor:null,link:null,linkRef:null}},58502:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(52322),i=n(26004),o=n(96221);function a(e){var t=e.spacing,n=e.mobileSpacing,a=(0,i.Z)();return(0,r.jsx)(o.Z,{sx:{width:"100%",color:a.palette.divider,my:[n||t,n||t,t,t]}})}a.defaultProps={spacing:3,mobileSpacing:null}},1950:function(e,t,n){"use strict";n.d(t,{F:function(){return d}});var r=n(52322),i=n(26004),o=n(42761),a=n(39645),s=n(74861),c=n(29046),l=n(25836),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};
1function d(e){var t=e.children,n=e.viewModel,d=(0,i.Z)(),f={parentContainer:{minHeight:"100%",height:"auto",backgroundColor:["white","white",d.palette.background_grey.main,d.palette.background_grey.main]},buttonContainer:{sx:{justifyContent:["center","center","right","right"]},spacing:n.primaryButton&&n.secondaryButton?2:0},primary:{gridSize:n.secondaryButton?6:12},secondary:{gridSize:n.primaryButton?6:12}},p=f.buttonContainer,h=f.parentContainer,v=n.primaryButton,m=n.secondaryButton;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.ZP,u({sx:u({},h)},{children:(0,r.jsx)(o.ZP,u({container:!0,justifyContent:"center"},{children:(0,r.jsxs)(o.ZP,u({item:!0,sx:{my:[3,3,5,5],width:["100%","100%",560,560],backgroundColor:"white",py:[0,0,4,4],px:[3,3,4,4],borderRadius:"3px"}},{children:[(0,r.jsx)(o.ZP,u({container:!0,sx:u({pb:[8,8,0,0]},n.sx)},{children:t})),(0,r.jsxs)(o.ZP,u({container:!0,sx:u({mt:5},a.Lf),justifyContent:"flex-end"},{children:[m&&(0,r.jsx)(s.Y,{text:m.text,onClick:m.handler,size:"large",color:"secondary",sx:u({},m.sx&&m.sx),disabled:m.disabled}),v&&(0,r.jsx)(c.U,{type:v.type,text:v.text,onClick:v.handler,loading:v.loading,size:"large",sx:u({ml:2},v.sx&&v.sx),disabled:v.disabled})]}))]}))}))})),(v||m)&&(0,r.jsx)(l.S,u({sx:u({},a.r4)},{children:(0,r.jsxs)(r.Fragment,{children:[n.stickyContainerChildren&&n.stickyContainerChildren,(0,r.jsxs)(o.ZP,u({container:!0,sx:u({px:3},p),spacing:p.spacing},{children:[(0,r.jsx)(o.ZP,u({item:!0,xs:f.secondary.gridSize},{children:m&&(0,r.jsx)(s.Y,{fullWidth:!0,text:m.text,onClick:m.handler,size:"large",color:"secondary",disabled:m.disabled})})),(0,r.jsx)(o.ZP,u({item:!0,xs:f.primary.gridSize},{children:v&&(0,r.jsx)(c.U,{type:v.type,fullWidth:!0,text:v.text,onClick:v.handler,loading:v.loading,size:"large",disabled:v.disabled})}))]}))]})}))]})}},78398:function(e,t,n){"use strict";n.d(t,{$e:function(){return d},C_:function(){return s},EP:function(){return h},RH:function(){return c},TX:function(){return v},YW:function(){return p},c_:function(){return l},kg:function(){return f},lb:function(){return u},rQ:function(){return o},ud:function(){return a}});var r=n(4040);function i(e){return e&&e.business_name?e.business_name:null}function o(e){var t,n;return e&&e.name?"".concat(null===(t=e.name.first)||void 0===t?void 0:t.trim()," ").concat(null===(n=e.name.last)||void 0===n?void 0:n.trim()).trim():null}function a(e){if(!e||!e.first||!e.last)return null;var t=e.middle?" ".concat(e.middle," "):" ";return"".concat(e.first).concat(t).concat(e.last)}function s(e){switch(null===e||void 0===e?void 0:e.type){case r.p.BUSINESS:return i(e);case r.p.PERSON:case r.p.TENANT:return o(e);default:return null}}function c(e,t){if(void 0===t&&(t=!0),!e)return null;var n="",r="";return e.line1?(n="".concat(e.line1," ").concat(e.unit||"").trim(),r="".concat(e.city,", ").concat(e.state," ").concat(e.zip)):(n="".concat(e.street_number," ").concat(e.street_name," ").concat(e.unit).trim(),r="".concat(e.city,", ").concat(e.state," ").concat(e.zip)),t?[n.toLocaleUpperCase(),r.toLocaleUpperCase()]:[n,r]}var l=function(e){return e&&e.city&&e.line1&&e.zip&&e.state?c(e,!1):["No address provided"]};function u(e){var t=c(e,!1);return t?t[0]:null}function d(e){var t=c(e,!1);return t?t[1]:null}function f(e){return e?e.map((function(e){return e.value})).join("\n"):""}function p(e){if(!e)return"";var t=e.unit?" ":"";return(e.line1?"".concat(e.line1||"").concat(t).concat(e.unit||"",", ").concat(e.city," ").concat(e.state," ").concat(e.zip):"".concat(e.street_number||""," ").concat(e.street_name||""," ").concat(e.unit||"",", ").concat(e.city)+" ".concat(e.state," ").concat(e.zip)).trim()}function h(e){return e.defendant&&s(e.defendant)||"Other"}function v(e){return e.plaintiff&&s(e.plaintiff)||"Self"}},11613:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(52322),i=n(7900),o=n(39097),a=n.n(o),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function c(e){var t=e.href,n=e.variant,o=e.children,c=e.underline,l=e.color;return(0,r.jsx)(a(),s({href:t,passHref:!0},{children:(0,r.jsx)(i.Z,s({color:l,underline:c,href:t,variant:n},{children:o}))}))}c.defaultProps={underline:"always",color:"primary"}},17488:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});var r=n(52322),i=n(2784),o=n(2089),a=n(35484),s=function(e,t,n,r){return new(n||(n=Prom
1ise))((function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},l=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function u(e,t){return!!t&&(!!e&&e.length>=t)}function d(e){var t=this,n=e.allowFileUpload,d=e.allowImageUpload,f=e.handleRemove,p=e.hideRemove,h=e.hideView,v=e.handleAttempt,m=e.handleError,x=e.handleSuccess,g=e.files,y=e.color,b=e.uploadButtonText,Z=e.showUploadIcon,j=e.maxFiles,w=(0,i.useState)(g||null),_=w[0],S=w[1],R=function(e){var t=null===_||void 0===_?void 0:_.filter((function(t){return t.id!==e}));t&&S(t),f&&f(e)};return(0,r.jsxs)(r.Fragment,{children:[null===_||void 0===_?void 0:_.sort((function(e,t){return e.display_name.localeCompare(t.display_name)})).map((function(e){return(0,r.jsx)(o.j,{name:e.display_name||"File",url:e.download_url,fileId:e.id,hideRemove:p,hideView:h,removeFile:R})})),n&&!u(_,j)&&(0,r.jsx)(a.x,{onUploadSuccess:function(e,n,r){var i,o,a;i=e,o=n,a=r,s(t,void 0,void 0,(function(){var e;return c(this,(function(t){return e={download_url:o,display_name:a,id:i.id},S((function(t){return t?l([e],t,!0):[e]})),x(i,o,a),[2]}))}))},onError:m,onAttempt:v,color:y,allowImageUpload:d,buttonText:b,showIcon:Z})]})}d.defaultProps={files:null,hideRemove:!0,hideView:!1,handleRemove:function(){},color:"primary",allowImageUpload:!1,uploadButtonText:"upload",showUploadIcon:!0,maxFiles:null}},79486:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(52322),i=n(26004),o=n(56042),a=n(59452),s=n(52274),c=n(4843),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};function u(e){var t=e.title,n=e.subtitle,u=(0,i.Z)();return(0,r.jsxs)(o.Z,l({maxWidth:"lg",sx:{marginTop:10,textAlign:"center"}},{children:[(0,r.jsx)(a.Z,l({sx:{pb:2}},{children:(0,r.jsx)(s.Z,{})})),t&&(0,r.jsx)(c.Z,l({align:"center",variant:"h5",sx:{pb:1}},{children:t})),n&&(0,r.jsx)(c.Z,l({align:"center",sx:{color:u.palette.text.secondary}},{children:n}))]}))}u.defaultProps={title:null,subtitle:null}},8415:function(e,t,n){"use strict";var r;n.d(t,{$:function(){return r}}),function(e){e.WARNING="warning",e.INFO="info",e.HELP="help",e.SUCCESS="success",e.ERROR="error"}(r||(r={}))},4040:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r},u:function(){return i}}),function(e){e.BUSINESS="business",e.PROOF_SERVE="proof_serve",e.DOCUMENT="document",e.CASE="case",e.PERSON="person",e.USER="user",e.ATTORNEY="attorney",e.SIGNATURE_REQUEST="signature_request",e.ORDER="order",e.REPRESENTATIVE_PERSON="representative_person",e.TENANT="tenant"}(r||(r={}));
1var i=function(e){switch(e){case r.BUSINESS:return"Business";case r.DOCUMENT:return"Document";case r.CASE:return"Case";case r.USER:return"User";case r.ATTORNEY:return"Attorney";case r.SIGNATURE_REQUEST:return"Signature Request";case r.ORDER:return"Order";case r.PERSON:return"Person";case r.REPRESENTATIVE_PERSON:return"Representative Person";default:return""}}}},function(e){e.O(0,[4636,1055,7192,5857,3243,5430,8256,6800,5641,2906,2752,6577,391,5837,1239,5899,3200,9107,8867,9774,2888,179],(function(){return t=25842,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.