1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7975],{97207:function(e,t,r){var a=r(85893),n=(r(67294),r(80471));t.Z=function(e){var t=e.children,r=e.classes,i=e.isSubmitting;return(0,a.jsx)("button",{className:"".concat(r," button"),disabled:i,type:"submit",children:i?(0,a.jsx)(n.frZ,{size:"1.2em",className:"animate animate-spin mx-auto"}):t})}},37975:function(e,t,r){r.d(t,{Z:function(){return O}});var a=r(34051),n=r.n(a),i=r(85893),s=r(67294),o=r(74931),c=r(82175),l=r(43977),u=r(35375),d=r(74231),m=r(4319),h=r(11510);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var b,p=d.Ry().shape({title:d.Z_().min(2,"Minimum of 20 characters").max(48,"Maximum of 128 characters").required("Subject of brief is required"),description:d.Z_().max(2500,"Maximum of 2500 characters").required("Details of brief is required"),court:d.Z_().max(128,"Maximum of 128 characters").required("Court/Agency is required"),date:d.hT().min((0,h.Z)(Date.now(),"MM/dd/yyyy")).required("Date to execute is required"),city:d.Z_().max(64,"Maximum of 64 characters").required("City is required"),state:d.Z_().oneOf((b=m,function(e){if(Array.isArray(e))return f(e)}(b)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(b)||function(e,t){if(e){if("string"===typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(b)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),"Invalid state selected").required("State is required"),fee:d.Rx().min(1).required("Fee is required")}),y=r(97207),x=r(11163),v=r(40611);function j(e,t,r,a,n,i,s){try{var o=e[i](s),c=o.value}catch(l){return void r(l)}o.done?t(c):Promise.resolve(c).then(a,n)}function N(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){N(e,t,r[t])}))}return e}var O=function(e){var t=e.brief,r=(0,s.useState)(!1),a=r[0],d=r[1],f=(0,x.useRouter)();return(0,i.jsx)("div",{children:a?(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"mb-6",children:["All fields marked with"," ",(0,i.jsx)("span",{className:"text-red-600 font-black",children:"*"})," is required"]}),(0,i.jsx)(c.J9,{initialValues:{title:(null===t||void 0===t?void 0:t.title)||"",description:(null===t||void 0===t?void 0:t.description)||"",court:(null===t||void 0===t?void 0:t.court)||"",caseNumber:(null===t||void 0===t?void 0:t.caseNumber)||"",fee:(null===t||void 0===t?void 0:t.fee)||0,city:(null===t||void 0===t?void 0:t.city)||"",state:(null===t||void 0===t?void 0:t.state)||"",date:(null===t||void 0===t?void 0:t.date)?(0,h.Z)(new Date(t.date),"yyyy-MM-dd"):"",notes:(null===t||void 0===t?void 0:t.notes)||"",isActive:!0},validationSchema:p,onSubmit:function(){var e,r=(e=n().mark((function e(r){var a,i;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=g({},r),e.prev=1,!t){e.next=8;break}return e.next=5,v.Z.put("/api/cms/briefs/".concat(t.slug,"/"),g({},a,{updatedAt:Date.now}));case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,v.Z.post("/api/cms/briefs/",a);case 10:e.t0=e.sent;case 11:i=e.t0.data,t?o.ZP.success("Brief updated successfully"):o.ZP.success("Brief created successfully"),f.push("/dashboard/briefs/".concat(i.slug)),e.next=19;break;case 16:e.prev=16,e.t1=e.catch(1),o.ZP.error("An error occurred, please try again");case 19:case"end":return e.stop()}}),e,null,[[1,16]])})),function(){var t=this,r=arguments;return new Promise((function(a,n){var i=e.apply(t,r);function s(e){j(i,a,n,s,o,"next",e)}function o(e){j(i,a,n,s,o,"throw",e)}s(void 0)}))});return function(e){return r.apply(this,arguments)}}(),children:function(e){var r=e.errors,a=e.touched;e.values,e.isSubmitting;return(0,i.jsxs)(c.l0,{children:[(0,i.jsxs)("div",{className:"field",children:[(0,i.jsxs)("label",{htmlFor:"",children:["Subject of brief ",(0,i.jsx)(u.Z,{})]}),(0,i.jsx)(c.gN,{name:"title",className:"".concat(r.title&&a.title?"has-error":""," input"),placeholder:"e.g. Motion to Substitute Counsel, Company Registration at CAC etc."}),(0,i.jsx)(c.Bc,{component:l.Z,name:"title"})]}),(0,i.jsxs)("div",{className:"field",children:[(0,i.jsxs)("label",{htmlFor:"",children:["Details of brief ",(0,i.jsx)(u.Z,{})]}),(0,i.jsx)(c.gN,{as:"textarea",rows:5,name:"description",className:"".concat(r.description&&a.description?"has-error":""," input")}),(0,i.jsx)("span",{className:"text-sm",children:"Not more than 500 words"}),(0,i.jsx)(c.Bc,{component:l.Z,name:"description"})]}),(0,i.jsxs)("div",{className:"md:grid grid-cols-3 gap-4",children:[(0,i.jsxs)("div",{className:"field",children:[(0,i.jsxs)("label",{htmlFor:"",children:["Court/Agency ",(0,i.jsx)(u.Z,{})]}),(0,i.jsx)(c.gN,{name:"court",className:"".concat(r.court&&a.court?"has-error":""," input")}),(0,i.jsx)(c.Bc,{component:l.Z,name:"court"})]}),(0,i.jsxs)("div",{className:"field",children:[(0,i.jsx)("label",{htmlFor:"",children:"Case number (if any)"}),(0,i.jsx)(c.gN,{name:"caseNumber",className:"".concat(r.caseNumber&&a.caseNumber?"has-error":""," input")}),(0,i.jsx)(c.Bc,{component:l.Z,name:"caseNumber"})]}),(0,i.jsxs)("div",{className:"field",children:[(0,i.jsxs)("label",{htmlFor:"",children:["Date to execute ",(0,i.jsx)(u.Z,{})]}),(0,i.jsx)(c.gN,{name:"date",type:"date",min:(0,h.Z)(Date.now(),"yyyy-MM-dd"),className:"".concat(r.date&&a.date?"has-error":""," input")}),(0,i.jsx)(c.Bc,{component:l.Z,name:"date"})]}),(0,i.jsxs)("div",{className:"field",children:[(0,i.jsxs)("label",{htmlFor:"",children:["Fee ","(NGN)"," ",(0,i.jsx)(u.Z,{})]}),(0,i.jsx)(c.gN,{name:"fee",type:"number",className:"".concat(r.fee&&a.fee?"has-error":""," input")}),(0,i.jsx)(c.Bc,{component:l.Z,name:"fee"})]}),(0,i.jsxs)("div",{className:"field",children:[(0,i.jsxs)("label",{htmlFor:"",children:["City ",(0,i.jsx)(u.Z,{})]}),(0,i.jsx)(c.gN,{name:"city",className:"".concat(r.city&&a.city?"has-error":""," input")}),(0,i.jsx)(c.Bc,{component:l.Z,name:"city"})]}),(0,i.jsxs)("div",{className:"field",children:[(0,i.jsxs)("label",{htmlFor:"",children:["State ",(0,i.jsx)(u.Z,{})]}),(0,i.jsxs)(c.gN,{name:"state",as:"select",className:"".concat(r.state&&a.state?"has-error":""," input"),children:[(0,i.jsx)("option",{children:"Select"}),m&&m.map((function(e){return(0,i.jsx)("option",{value:e,children:e},e)}))]}),(0,i.jsx)(c.Bc,{component:l.Z,name:"state"})]})]}),(0,i.jsxs)("div",{className:"field",children:[(0,i.jsx)("label",{htmlFor:"",children:"Additional instructions"}),(0,i.jsx)(c.gN,{as:"textarea",rows:2,name:"notes",className:"".concat(r.notes&&a.notes?"has-error":""," input")}),(0,i.jsx)(c.Bc,{component:l.Z,name:"notes"})]}),(0,i.jsx)("div",{className:"field",children:(0,i.jsx)(y.Z,{type:"submit",classes:"primary",children:t?"Upd
1ate brief":"Submit brief"})})]})}})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{className:"text-xl font-black mb-3",children:"How to Use this feature"}),(0,i.jsx)("p",{children:"This feature allows you to assign a brief to a lawyer in a different location or jurisdiction. To use this feature, you have to first create and post a brief. You would receive notifications of all persons who have indicated interest in your brief. It is your responsibility to choose a lawyer to assign your brief to. Once you choose a lawyer, you can contact them through the email or phone number they have provided. IT IS YOUR RESPONSIBILITY TO FINALIZE ISSUES RELATING TO MODE OF PAYMENT BEFORE A BRIEF IS ACCEPTED. IF YOU ARE ACCEPTING A BRIEF, IT IS YOUR RESPONSIBILITY TO OBTAIN YOUR PAYMENT. PLEASE ENSURE YOU HAVE AGREED ON YOUR PAYMENT BEFORE PROCEEDING TO WORK ON ANY BRIEF. Legalhub Associates and Solutions Ltd is not responsible for facilitating or ensuring payments for briefs."}),(0,i.jsx)("p",{children:"You are ultimately responsible for choosing the lawyer of your choice to hold your brief. Legalhub Solutions is not a party to the transaction and shall not be a party to any proceedings to seek a remedy arising from the breach, failure, negligence, or any other such claims arising from the transaction, such as non-completion of accepted briefs, non-payment for completed briefs, or any related or unrelated claim that possibly can arise from this transaction, or be held liable, directly or indirectly, in any form for any such transaction. By using this service, you agree that it is your sole responsibility to vet the competence and reliability of any lawyer to handle your brief."}),(0,i.jsxs)("label",{className:"cursor-pointer",children:[(0,i.jsx)("input",{type:"checkbox",onChange:function(){return d(!a)}})," I have read the above and affirm that I properly understand it."]})]})})}},35375:function(e,t,r){var a=r(85893);r(67294);t.Z=function(){return(0,a.jsx)("span",{className:"inline-block text-red-600 font-black",children:"*"})}},43977:function(e,t,r){var a=r(85893);r(67294);t.Z=function(e){var t=e.children;return(0,a.jsx)("div",{className:"text-sm text-red-500 my-1",children:t})}},4319:function(e){e.exports=JSON.parse('["Abia","Adamawa","Akwa Ibom","Anambra","Bauchi","Bayelsa","Benue","Borno","Cross River","Delta","Ebonyi","Edo","Ekiti","Enugu","FCT - Abuja","Gombe","Imo","Jigawa","Kaduna","Kano","Katsina","Kebbi","Kogi","Kwara","Lagos","Nasarawa","Niger","Ogun","Ondo","Osun","Oyo","Plateau","Rivers","Sokoto","Taraba","Yobe","Zamfara"]')}}]);
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.