1(self.webpackChunkpriori_legal=self.webpackChunkpriori_legal||[]).push([[6164],{53778:function(e,t){"use strict";t.A={inserted:function(e){let t=e.parentElement;t.classList.add("scrolled-up"),e.addEventListener("scroll",(function(){let e=this.scrollHeight-t.clientHeight-1;this.scrollTop>0?t.classList.add("scrolled-down"):t.classList.remove("scrolled-down"),this.scrollTop>e?t.classList.remove("scrolled-up"):t.classList.add("scrolled-up")}))},update:function(e,t){let l=e.parentElement;t.value&&l.clientHeight>=280?l.classList.add("with-scrollable"):l.classList.remove("with-scrollable")}}},60964:function(){},97101:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return c}});var s=l(16887),i=l(35666),r=l(2133),a=l(91673),n=l(58691),o=l(66977),d=l(41644),u={name:"MattersProposal",components:{SvgIcon:s.default,ProjectBuilder:i.A},props:{initData:{type:Object,required:!0}},data(){return{matter:this.initData.matter}},computed:{...(0,d.aH)(o.A,{user:"currentUser"})},methods:{saveProject(e){delete e.client,delete e.lawyer;const t=e.engagementLetter;return t.file?this.updateEngagementLetter(e,t):t.delete?this.deleteEngagementLetter(e,t):this.saveMatter(e)},updateEngagementLetter(e,t){return a.A.updateEngagementLetter("lawyer",e.id,t.file,t.signature,t.coord).then((()=>this.saveMatter(e))).catch((()=>(n.A.error("There was a problem uploading your engagement letter"),window.scrollTo({top:0,behavior:"smooth"}),Promise.reject())))},deleteEngagementLetter(e,t){if(!t.id||!t.delete)return this.saveMatter(e);e.deleteEngagementLetter(t.id).then((()=>this.saveMatter(e))).catch((()=>(n.A.error("There was a problem deleting your engagement letter"),window.scrollTo({top:0,behavior:"smooth"}),Promise.reject())))},saveMatter(e){const t={id:e.id,matter:e,renderedServices:e.renderedServices};return r.A.update(t).then((()=>{n.A.success("You successfully updated your proposal.",!0),this.$router.push("/dashboard")})).catch((e=>(n.A.error(`There was a problem updating your proposal: ${e.response.data.errors}`),window.scrollTo({top:0,behavior:"smooth"}),Promise.reject())))}}},c=(0,l(14486).A)(u,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"breadcrumbs-container"},[t("div",{staticClass:"container-fluid"},[t("router-link",{staticClass:"back-link",attrs:{to:`/requests/${e.matter.counselRequestId}/document/${e.matter.possibleLawyerId}`}},[t("svg-icon",{staticClass:"base-icon right-10",attrs:{name:"arrow-left"}}),e._v("Project Details")],1)],1)]),e._v(" "),t("div",{staticClass:"sidenav-content"},[t("div",{staticClass:"container-fluid"},[t("div",{staticClass:"padded-container"},[t("div",{staticClass:"normal-weight size-text-21px text-center bottom-30"},[e._v("\n Edit Proposal\n ")]),e._v(" "),t("project-builder",{attrs:{matter:e.matter,lawyer:e.user,"show-add-priori-rate-button":!1,"on-admin-app":!1,"on-save-project":e.saveProject}})],1)])])])}),[],!1,null,null,null).exports},5322:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return n}});var s=l(16887),i=l(53778),r=l(2543),a={name:"DropdownSelect",components:{SvgIcon:s.default},directives:{uivScrollableDropdown:i.A},props:{label:{type:String,required:!1},options:{type:Array,default:()=>[]},value:{type:[String,Number,Object,Boolean],default:null},idLabel:{type:String,required:!0},placeholder:{type:String,default:"Select One"},initialLabel:{type:String,default:null},labelKey:{type:String,default:null},valueKey:{type:String,default:null},isDisabled:{type:Boolean,default:!1},allowNull:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},required:{type:Boolean,default:!1},fontWeightClass:{type:String,default:"semibold-weight"},showAiIcon:{type:Boolean,default:!1}},emits:["input","change","focus","blur"],data(){return{dropdownOpen:!1,hasSelected:!1,selectedOption:null}},computed:{visibleLabel(){return this.hasSelected?this.optionLabel(this.selectedOption):this.selectedOption&&this.allowNull&&null===this.selectedOption[this.valueKey]?this.placeholder:this.initialLabel},showPlaceholder(){return!this.hasSelected&&!this.initialLabel}},watch:{dropdownOpen(e){e?this.$emit("focus"):this.$emit("blur")}},methods:{optionLabel(e){return e[this.labelKey]||e},onSelect(e){if(e.disabled)return;this.hasSelected=!0,this.selectedOption=e;const t=(0,r.isUndefined)(this.selectedOption[this.valueKey])?e:this.selectedOption[this.valueKey];this.$emit("input",t),this.$emit("change",t)},onNullSelect(){if(this.hasSelected=!1,this.valueKey){const e={};e[this.valueKey]=null,e[this.labelKey]=null,this.selectedOption=e}else this.selectedOption=null;this.$emit("input",null),this.$emit("change",null)},generateKey(e){const t=[e[this.labelKey],e[this.valueKey]].filter((e=>e));return t.length?t.join("-"):e},reset(){this.hasSelected=!1,this.selectedOption=null},close(){this.dropdownOpen=!1}}},n=(l(69436),(0,l(14486).A)(a,(function(){var e=this,t=e._self._c;return t("div",[e.label?t("label",[e._v(e._s(e.label)+"\n "),e.required?t("span",{staticClass:"inline-help required"}
1,[e._v(" *")]):e._e(),e._v(" "),e.showAiIcon?t("span",{staticClass:"ai-prefill-label"},[t("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):e._e()]):e._e(),e._v(" "),t("dropdown",{ref:"dropdown",staticClass:"k-dropdown",attrs:{id:e.idLabel,tag:"div",disabled:e.isDisabled},scopedSlots:e._u([{key:"dropdown",fn:function(){return[t("div",{directives:[{name:"uiv-scrollable-dropdown",rawName:"v-uiv-scrollable-dropdown",value:e.dropdownOpen,expression:"dropdownOpen"}],staticClass:"menu-item-container"},[e.allowNull?t("li",{staticClass:"menu-item",attrs:{role:"menuitem"},on:{click:e.onNullSelect}},[t("div",{staticClass:"dropdown-row-inner missing-text"},[e._v("\n -- "+e._s(e.placeholder||"Select One")+" --\n ")])]):e._e(),e._v(" "),e._l(e.options,(function(l){return t("li",{key:e.generateKey(l),staticClass:"menu-item",attrs:{role:"menuitem"},on:{click:function(t){return e.onSelect(l)}}},[t("div",{class:["dropdown-row-inner",e.fontWeightClass,{disabled:l.disabled}]},[e._t("option",(function(){return[e._v(e._s(e.optionLabel(l)))]}),{option:l})],2)])}))],2)]},proxy:!0}],null,!0),model:{value:e.dropdownOpen,callback:function(t){e.dropdownOpen=t},expression:"dropdownOpen"}},[t("button",{class:["dropdown-toggle",{placeholder:e.showPlaceholder,invalid:e.invalid,disabled:e.isDisabled}],attrs:{id:`k-toggle-button-${e.idLabel}`,type:"button",role:"button",disabled:e.isDisabled}},[e._t("icon"),e._v(" "),e.showPlaceholder?t("span",[e._v(e._s(e.placeholder))]):e._e(),e._v(" "),e.showPlaceholder?e._e():t("span",{class:e.fontWeightClass},[e._t("selected",(function(){return[e._v(e._s(e.visibleLabel))]}),{option:e.selectedOption})],2),e._v(" "),t("svg-icon",{staticClass:"caret-down",attrs:{name:"caret-down"}}),e._v(" "),t("svg-icon",{staticClass:"caret-up",attrs:{name:"caret-up"}})],2)])],1)}),[],!1,null,"c0aa8abe",null).exports)},57315:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return a}});var s=l(15261),i=l(7975),r={name:"TextareaInputVertical",components:{ValidationProvider:s.LW},mixins:[i.A],props:{value:{type:String,default:""},label:{type:String,required:!1},id:{type:String,required:!1},name:{type:String,required:!1},rows:{type:Number,default:5},placeholder:{type:String,default:null},charLimit:{type:Number,required:!1},autoresize:{type:Boolean,default:!1},rules:{type:String,default:""},disableInput:{type:Boolean,default:!1}},emits:["input"],computed:{validationRules(){return this.charLimit?this.rules?`${this.rules}|max:${this.charLimit}`:`max:${this.charLimit}`:this.rules},required(){return this.rules?.includes("required")}},methods:{onInput(e){this.autoresize&&this.resize(),this.$emit("input",e.target.value)},resize(){this.autoresize&&(this.$refs.textarea.style.height="auto",this.$refs.textarea.style.height=`${this.$refs.textarea.scrollHeight+2}px`)}}},a=(0,l(14486).A)(r,(function(){var e=this,t=e._self._c;return t("validation-provider",{attrs:{rules:e.validationRules,mode:e.passiveAggressive},scopedSlots:e._u([{key:"default",fn:function({errors:l,failed:s}){return[e.label?t("label",{class:{"disabled-text":e.disableInput},attrs:{for:e.id}},[e._v(e._s(e.label)),e.required?t("span",{staticClass:"inline-help required"},[e._v(" *")]):e._e()]):e._e(),e._v(" "),e._t("tag"),e._v(" "),t("textarea",{ref:"textarea",class:["form-control",{"has-error":s,"disabled-text":e.disableInput}],attrs:{id:e.id,name:e.name,rows:e.rows,placeholder:e.placeholder,maxlength:e.charLimit,disabled:e.disableInput},domProps:{value:e.value},on:{focus:e.resize,input:e.onInput}}),e._v(" "),e.charLimit?t("div",{staticClass:"dark-gray-text top-5"},[e._v("\n Limited to "+e._s(e.charLimit)+" characters\n ")]):e._e(),e._v(" "),l.length?t("div",[e._t("errors",(function(){return[t("div",{staticClass:"error-text top-5"},[e._v("\n "+e._s(l[0])+"\n ")])]}),{errors:l[0]})],2):e._e()]}}],null,!0)})}),[],!1,null,null,null).exports},69436:function(e,t,l){var s=l(60964);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);(0,l(70534).A)("7ddf1fd8",s,!0,{})}}]);
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.