1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8263],{40224:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(26831),i=n(28193),o=n(2784),a=n(6277),c=n(69075),s=n(47591),u=n(42575),l=n(48891),d=n(31326),f=n(12227),p=n(15672);function h(e){return(0,p.Z)("MuiAlert",e)}var _,m=(0,n(69222).Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),x=n(3023),v=n(61328),E=n(52322),g=(0,v.Z)((0,E.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),y=(0,v.Z)((0,E.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),j=(0,v.Z)((0,E.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),T=(0,v.Z)((0,E.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Z=n(51995);const O=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],C=(0,u.ZP)(f.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,d.Z)(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?s._j:s.$n,r="light"===e.palette.mode?s.$n:s._j,o=t.color||t.severity;return(0,i.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"outlined"===t.variant&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"filled"===t.variant&&(0,i.Z)({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText("dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main)}))})),S=(0,u.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),A=(0,u.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),R=(0,u.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),P={success:(0,E.jsx)(g,{fontSize:"inherit"}),warning:(0,E.jsx)(y,{fontSize:"inherit"}),error:(0,E.jsx)(j,{fontSize:"inherit"}),info:(0,E.jsx)(T,{fontSize:"inherit"})};var N=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiAlert"}),{action:o,children:s,className:u,closeText:f="Close",color:p,icon:m,iconMapping:v=P,onClose:g,role:y="alert",severity:j="success",variant:T="standard"}=n,N=(0,r.Z)(n,O),I=(0,i.Z)({},n,{color:p,severity:j,variant:T}),b=(e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${(0,d.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,c.Z)(o,h,i)})(I);return(0,E.jsxs)(C,(0,i.Z)({role:y,elevation:0,ownerState:I,className:(0,a.Z)(b.root,u),ref:t},N,{children:[!1!==m?(0,E.jsx)(S,{ownerState:I,className:b.icon,
1children:m||v[j]||P[j]}):null,(0,E.jsx)(A,{ownerState:I,className:b.message,children:s}),null!=o?(0,E.jsx)(R,{ownerState:I,className:b.action,children:o}):null,null==o&&g?(0,E.jsx)(R,{ownerState:I,className:b.action,children:(0,E.jsx)(x.Z,{size:"small","aria-label":f,title:f,color:"inherit",onClick:g,children:_||(_=(0,E.jsx)(Z.Z,{fontSize:"small"}))})}):null]}))}))},51995:function(e,t,n){"use strict";n(2784);var r=n(61328),i=n(52322);t.Z=(0,r.Z)((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},16955:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/document/[documentid]/checkout/preview",function(){return n(25774)}])},58315:function(e,t,n){"use strict";n.d(t,{e4:function(){return d}});var r=n(98788),i=n(5163),o=n(96624),a=n(37469),c=n(41927),s=n(24423),u=n(65114),l=n(49857),d=function(e){var t="/api/app/documents/".concat(e,"/details"),n=(0,l.ZP)((function(){return e?(0,s.i3)(t):null}),(function(){return(0,o.f7)(t)})),r=n.data,i=n.error;return(null===r||void 0===r?void 0:r.error)||i?{error:(null===r||void 0===r?void 0:r.error)||i}:{data:r}};function f(){return(f=(0,r.Z)((function(e,t){return(0,i.__generator)(this,(function(n){return u.d.track(a.P.DOCUMENT,{type:t,status:"create",case_id:e}),[2,(0,o.TB)("/api/document/create",{case_id:e,type:t})]}))}))).apply(this,arguments)}function p(){return(p=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,o.f7)("/api/document/".concat(e))]}))}))).apply(this,arguments)}function h(){return(h=(0,r.Z)((function(e,t){return(0,i.__generator)(this,(function(n){return[2,(0,o.TB)("/api/document/get-or-create",{case_id:e,document_type:t})]}))}))).apply(this,arguments)}function _(){return(_=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,o.TB)("/api/document/".concat(e,"/edit"))]}))}))).apply(this,arguments)}function m(){return(m=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,o.TB)("/api/document/".concat(e,"/submit"))]}))}))).apply(this,arguments)}function x(){return(x=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,o.TB)("/api/document/".concat(e,"/approve"))]}))}))).apply(this,arguments)}function v(){return(v=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,o.TB)("/api/app/documents/".concat(e,"/complete"))]}))}))).apply(this,arguments)}function E(){return(E=(0,r.Z)((function(e,t){return(0,i.__generator)(this,(function(n){return[2,(0,o.TB)("/api/document/".concat(e,"/revision/request"),{revision_text:t})]}))}))).apply(this,arguments)}function g(){return g=(0,r.Z)((function(e){var t,n=arguments;return(0,i.__generator)(this,(function(r){return t=n.length>1&&void 0!==n[1]&&n[1],[2,(0,o.TB)("/api/document/".concat(e,"/prepare/review/submit"),{is_embedded:t})]}))})),g.apply(this,arguments)}function y(){return(y=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,o.TB)("/api/document/".concat(e,"/reset"))]}))}))).apply(this,arguments)}function j(){return(j=(0,r.Z)((function(e,t,n,r){return(0,i.__generator)(this,(function(i){return[2,(0,o.TB)("/api/app/documents/combine",{reference_id:e,reference_type:t,document_name:r,files:n,document_type:c.n_.USER_UPLOADED,file_suffix:"_user_uploaded"})]}))}))).apply(this,arguments)}function T(){return(T=(0,r.Z)((function(e,t,n,r){return(0,i.__generator)(this,(function(i){return[2,(0,o.TB)("/api/app/documents/combine",{reference_id:e,reference_type:t,document_name:r,files:n,document_type:c.n_.OTHER,file_suffix:"_combined_packet"})]}))}))).apply(this,arguments)}function Z(){return(Z=(0,r.Z)((function(e,t,n,r,a,c){return(0,i.__generator)(this,(function(i){return[2,(0,o.TB)("/api/app/documents/".concat(e,"/lawyer"),{skip:t,firstName:n,lastName:r,email:a,phone:c})]}))}))).apply(this,arguments)}function O(){return(O=(0,r.Z)((function(e){return(0,i.__generator)(this,(function(t){return[2,(0,o.TB)("/api/app/documents/".concat(e,"/email-apm"))]}))}))).apply(this,arguments)}t.ZP={getCheckoutInfo:function(e){var t="/api/app/documents/".concat(e,"/checkout"),n=(0,l.ZP)((function(){return e?(0,s.i3)(t):null}),(function(){return(0,o.f7)(t)})),r=n.data,i=n.error;return(null===r||void 0===r?void 0:r.error)||i?{error:(null===r||void 0===r?void 0:r.error)||i}:{data:r}},create:function(e,t){return f.apply(this,arguments)},combineFiles:function(e,t,n,r){return T.apply(this,arguments)},complete:function(e){return v.apply(this,arguments)},getOrCreate:function(e,t){return h.apply(this,arguments)},requestRevision:function(e,t){return E.apply(this,arguments)},edit:function(e){return _.apply(this,arguments)},submit:function(e){return m.apply(this,arguments)},approve:function(e){return x.apply(this,arguments)},get:function(e){return p.apply(this,arguments)},uploadFiles:function(e,t,n,r){return j.apply(this,arguments)},submitDocumentPrepareReview:function(e){return g.apply(this,arguments)},reset:function(e){return y.apply(this,arguments)},requestLawyer:function(e,t,n,r,i,o){return Z.apply(this,arguments)},emailApm:function(e){return O.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}},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),c=n(42761),s=n(89103),u=n(13200),l=n(77102);function d(e){var t=e.children;if((0,l.x)())return null;var n=(0,u.useAuth)(),d=(0,s.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)(c.ZP,{container:!0,justifyContent:"space-between",sx:{py:2},children:[(0,r.jsx)(c.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)(c.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 s}});var r=n(52322),i=n(56042),o=n(42761),a=n(40224),c=n(49107);function s(e){var t=e.description,n=e.hideMainAppBar;return(0,r.jsxs)(r.Fragment,{children:[!n&&(0,r.jsx)(c.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})})})})]})}s.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}},25774:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return T}});var r=n(70865),i=n(52322),o=n(26004),a=n(42761),c=n(56042),s=n(59452),u=n(4843),l=n(39645),d=n(29046),f=n(25836),p=n(5632),h=n(58315),_=n(56317),m=n(11261),x=n(3634),v=n(18186),E=n(39097),g=n.n(E),y=n(2784),j=n(28927);function T(){(0,v.Q)();var e=(0,o.Z)(),t=(0,p.useRouter)().query.documentid,n=(0,y.useState)(!0),E=n[0],T=n[1],Z=h.ZP.getCheckoutInfo(t),O=Z.data;if(Z.error)return(0,i.jsx)(m.S,{});if(!O)return(0,i.jsx)(x.S,{});var C=function(){T(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.Z,{}),(0,i.jsx)(a.ZP,{container:!0,justifyContent:"center",sx:{backgroundColor:["white",e.palette.background_grey.main],minHeight:"100%",height:"auto",pb:[8,0]},children:(0,i.jsx)(a.ZP,{item:!0,children:(0,i.jsxs)(c.Z,{maxWidth:"xl",children:[(0,i.jsxs)(a.ZP,{container:!0,justifyContent:"space-between",sx:{mt:3},children:[(0,i.jsx)(s.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:(0,i.jsx)(u.Z,{variant:"h5",children:"Your document is ready"})}),(0,i.jsx)(s.Z,{sx:(0,r.Z)({},l.Lf),children:(0,i.jsx)(g(),{href:"/document/".concat(t,"/checkout"),passHref:!0,children:(0,i.jsx)(d.U,{text:"Continue",onClick:function(){},size:"large",sx:{width:230}})})})]}),(0,i.jsx)(a.ZP,{container:!0,justifyContent:"center",sx:(0,r.Z)({mt:2,mb:6},l.Lf),children:(0,i.jsx)(s.Z,{sx:{visibility:E?"hidden":"visible"},children:(0,i.jsx)(j.m,{fileUrl:O.document_file_url,fileName:O.checkout.document_name,editUrl:O.checkout.edit_url,handleOnRender:C,draftOverlaySize:800,pdfSize:1164})})}),(0,i.jsx)(a.ZP,{container:!0,justifyContent:"center",sx:(0,r.Z)({mt:2,mb:6},l.r4),children:(0,i.jsx)(s.Z,{sx:{visibility:E?"hidden":"visible"},children:(0,i.jsx)(j.m,{fileUrl:O.document_file_url,fileName:O.checkout.document_name,editUrl:O.checkout.edit_url,handleOnRender:C,draftOverlaySize:300,pdfSize:400})})})]})})}),(0,i.jsx)(f.S,{sx:(0,r.Z)({},l.r4),children:(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(a.ZP,{container:!0,sx:{px:3},children:(0,i.jsx)(a.ZP,{item:!0,xs:12,children:(0,i.jsx)(g(),{href:"/document/".concat(t,"/checkout"),children:(0,i.jsx)(d.U,{fullWidth:!0,text:"Continue",onClick:function(){},size:"large"})})})})})})]})}},96624:function(e,t,n){"use strict";n.d(t,{Ky:function(){return A},Li:function(){return C},Md:function(){return Z},TB:function(){return j},bO:function(){return R},f7:function(){return _},i3:function(){return h},l:function(){return x},tQ:function(){return E}});var r=n(98788),i=n(47842),o=n(5163),a=n(49857),c=n(18956),s=n(21805),u=n(56593),l="last_case";function d(){return u.$.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 _(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})},c.W,s.Z.get(c.W))})];case 2:return[2,n.sent().json()]}}))}))).apply(this,arguments)}function x(e){return v.apply(this,arguments)}function v(){return(v=(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"},c.W,s.Z.get(c.W))})];case 1:return[2,t.sent().json()]}}))}))).apply(this,arguments)}function E(e,t){return(0,a.ZP)((function(){return h(e)}),(function(){return _(e)}),t)}function g(e,t,n){return y.apply(this,arguments)}function y(){return(y=(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})},c.W,s.Z.get(c.W)),body:JSON.stringify(n)})];case 2:return[2,f(o.sent())]}}))}))).apply(this,arguments)}function j(e,t){return T.apply(this,arguments)}function T(){return(T=(0,r.Z)((function(e,t){return(0,o.__generator)(this,(function(n){return[2,g(e,"POST",t)]}))}))).apply(this,arguments)}function Z(e,t){return O.apply(this,arguments)}function O(){return(O=(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"},c.W,s.Z.get(c.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 C(e,t){return S.apply(this,arguments)}function S(){return(S=(0,r.Z)((function(e,t){return(0,o.__generator)(this,(function(n){return[2,g(e,"PUT",t)]}))}))).apply(this,arguments)}function A(e){return s.Z.get("".concat(l,"_").concat(e))}function R(e,t){t&&s.Z.set("".concat(l,"_").concat(e),t)}},14339:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var r=n(52322),i=n(72711),o=n(52274),a=function(){return a=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},a.apply(this,arguments)};function c(e){var t=e.text,n=e.disabled,c=e.loading,s=e.onClick,u=e.sx,l=e.fullWidth,d=e.size,f=e.color,p=e.type,h=e.endIcon,_=e.name,m=e.startIcon;return(0,r.jsx)(i.Z,a({sx:a({},u),variant:"text",disableElevation:!0,disabled:n||c,size:d,onClick:s,fullWidth:l,color:f,type:p,endIcon:h,startIcon:m,name:_},{children:c?(0,r.jsx)(o.Z,{size:24}):t}))}c.defaultProps={disabled:!1,loading:!1,fullWidth:!1,color:"primary",size:"medium",type:"button",sx:{},endIcon:null,startIcon:null,name:null}},25836:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(52322),i=n(42761),o=function(){return o=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},o.apply(this,arguments)};function a(e){var t=e.children,n=e.sx;return(0,r.jsx)(i.ZP,o({container:!0,sx:o({paddingTop:2,paddingBottom:2,width:"100%",borderTop:"1px solid #D0D0D0",borderBottom:"1px solid #D0D0D0",backgroundColor:"white",position:"fixed",bottom:0,zIndex:1},n)},{children:o({},t)}))}a.defaultProps={sx:{}}},33033:function(e,t,n){"use strict";n.d(t,{i:function(){return s}});var r=n(52322),i=n(40249),o=n(59452),a=n(2784),c=function(){return c=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},c.apply(this,arguments)};function s(e){var t=e.fileUrl,n=e.handleOnRender,s=e.draftOverlaySize,u=e.pdfSize,l=(0,a.useState)(1),d=l[0],f=l[1];return(0,a.useEffect)((function(){i.v0.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(i.v0.version,"/pdf.worker.js")}),[]),(0,r.jsx)(i.BB,c({file:t,onLoadSuccess:function(e){return function(e){var t=e.numPages;f(t),n()}(e)},onContextMenu:function(e){return e.preventDefault()}},{children:Array.from(Array(d)).map((function(e,t){return(0,r.jsx)(o.Z,c({sx:{mb:2}},{children:(0,r.jsx)(i.T3,c({sx:{zIndex:0},pageNumber:t+1,height:u},{children:(0,r.jsx)(o.Z,c({sx:{zIndex:1,position:"absolute",left:"50%",transform:"translateX(-50%)",to
1p:"10%"}},{children:(0,r.jsx)("img",{src:"/draft.png",width:s,alt:"draft"})}))}))}))}))}))}},28927:function(e,t,n){"use strict";n.d(t,{m:function(){return h}});var r=n(52322),i=n(26004),o=n(59452),a=n(42761),c=n(18177),s=n(4843),u=n(9128),l=n(14339),d=n(39645),f=n(33033),p=function(){return p=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},p.apply(this,arguments)};function h(e){var t=e.fileUrl,n=e.fileName,h=e.editUrl,_=e.draftOverlaySize,m=e.pdfSize,x=e.handleOnRender,v=(0,i.Z)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(o.Z,p({sx:{backgroundColor:"white",alignItems:"center",borderRadius:1,height:"100%",border:"1px solid",borderColor:v.palette.divider}},{children:[(0,r.jsxs)(a.ZP,p({container:!0,justifyContent:"space-between",sx:{borderBottom:"1px solid",borderColor:v.palette.divider,px:1,py:[0,1]}},{children:[(0,r.jsx)(a.ZP,p({item:!0,sx:{display:"flex",flexDirection:"column",justifyContent:"center"}},{children:(0,r.jsxs)(c.Z,p({direction:"row",spacing:1},{children:[(0,r.jsx)(u.Z,{sx:{color:v.palette.secondary.main}}),(0,r.jsx)(s.Z,{children:n})]}))})),(0,r.jsx)(a.ZP,p({item:!0},{children:(0,r.jsx)("a",p({href:h},{children:(0,r.jsx)(l.T,{size:"large",onClick:function(){},text:"Edit"})}))}))]})),(0,r.jsx)(o.Z,p({sx:p({height:m,overflow:"scroll",overflowY:"scroll",overflowX:"hidden",p:.1},d.Lf)},{children:(0,r.jsx)(f.i,{fileUrl:t,handleOnRender:x,draftOverlaySize:_,pdfSize:m})})),(0,r.jsx)(o.Z,p({sx:p({},d.r4)},{children:(0,r.jsx)(f.i,{fileUrl:t,handleOnRender:x,draftOverlaySize:_,pdfSize:m})}))]}))})}},79486:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(52322),i=n(26004),o=n(56042),a=n(59452),c=n(52274),s=n(4843),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)};function l(e){var t=e.title,n=e.subtitle,l=(0,i.Z)();return(0,r.jsxs)(o.Z,u({maxWidth:"lg",sx:{marginTop:10,textAlign:"center"}},{children:[(0,r.jsx)(a.Z,u({sx:{pb:2}},{children:(0,r.jsx)(c.Z,{})})),t&&(0,r.jsx)(s.Z,u({align:"center",variant:"h5",sx:{pb:1}},{children:t})),n&&(0,r.jsx)(s.Z,u({align:"center",sx:{color:l.palette.text.secondary}},{children:n}))]}))}l.defaultProps={title:null,subtitle:null}},37469:function(e,t,n){"use strict";var r;n.d(t,{P:function(){return r}}),function(e){e.CHECKOUT="checkout",e.CHECKOUT_ERROR="checkout_error",e.PAGE_VIEW="page_view",e.CASE_CREATE="case_create",e.SIGN_UP="sign_up",e.SIGN_UP_ERROR="sign_up_error",e.JOIN_WAITLIST_ERROR="join_waitlist_error",e.DOCUMENT="document",e.DOCUMENT_UPLOAD="document_upload",e.TERMS_OF_SERVICE="terms_of_service",e.SELECT_COURTHOUSE="select_courthouse",e.SELECT_STATE="select_state",e.INTERCOM="intercom",e.BUTTON_CLICK="button_click",e.STRIPE_EVENT="stripe_event",e.FILE_OPTION_SELECTED="file_option_selected",e.STATE_NOT_SUPPORTED="state_not_supported",e.CLICK_DEMAND_LETTER_TEMPLATE="click_demand_letter_template",e.CLICK_FORM_TEMPLATE="click_form_template",e.PRICING_PAGE_STATE_SELECT="pricing_page_state_select",e.JOIN_WAIT_LIST="join_wait_list",e.API_REQUEST="api_request",e.DEFENDANT_SERVICE_SELECTED_LOCATION="defendant_service_selected_location",e.DEMAND_LETTER_OPT_IN="demand_letter_opt_in",e.SIGNATURE_SENT="signature_sent",e.SIGNATURE_SIGNED="signature_signed",e.NOTARIZE_SENT="notarize_sent",e.NOTARIZE_SIGNED="notarize_signed",e.RAW_PDF_CLICK="raw_pdf_click",e.PDF_GEN_FULFILLMENT="pdf_gen_fulfillment",e.DEMAND_LETTER_ASSESSMENT="demand_letter_assessment"}(r||(r={}))},41927:function(e,t,n){"use strict";var r,i;n.d(t,{Uo:function(){return r},n_:function(){return o}}),function(e){e.FIREBASE="firebase",e.DOCSPRING="docspring"}(r||(r={})),function(e){e.DRAFTING="drafting",e.DRAFTING_COMPLETE="drafting_complete",e.RENDERING="rendering",e.RENDERING_COMPLETE="rendering_complete",e.OWNER_APPROVED="owner_approved",e.COMPLETED="completed",e.READY="ready",e.AGENT_APPROVED="agent_approved",e.SENDING="sending",e.SENT="sent",e.DELIVERED="delivered",e.IN_PROGRESS="in_progress",e.NOT_STARTED="not_started",e.PURCHASED="purchased"}(i||(i={}));var o;i.AGENT_APPROVED,i.SENDING,i.SENT,i.DELIVERED,i.SENT,i.SENDING,i.DELIVERED,i.COMPLETED;!function(e){e.DEMAND_LETTER="demand_letter",e.FILE_SMALL_CLAIMS="file_small_claims",e.FILE_SMALL_CLAIMS_COURT_APPROVED="file_small_claims_court_approved",e.DEFENDANT_SERVICE_PROOF_OF_SERVICE="defendant_service_proof_of_service",e.DEFENDANT_PROOF_OF_MILITARY_STATUS="defendant_proof_of_military_status",e.INCORPORATION_FORMATION="incorporation_formation",e.INCORPORATION_FORMATION_CANCEL="incorporation_formation_cancel",e.COURT_APPROVED_PAPERWORK_USER_UPLOAD="court_approved_paperwork_user_upload",e.PDF_GENERATION="pdf_generation",e.USER_UPLOADED="user_uploaded",e.OTHER="other"}(o||(o={}))},44505:function(){},64160:function(){},66115:function(){},90922:function(){},89728:function(){}},function(e){e.O(0,[4636,1055,7192,1859,5857,3243,5430,8256,6800,5641,2906,2752,6577,391,5837,5899,9613,3200,9107,9774,2888,179],(function(){return t=16955,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.