1(self.webpackChunkpriori_legal=self.webpackChunkpriori_legal||[]).push([[6428],{25839:function(t,e,s){"use strict";s.d(e,["e",0,function(t){t=t||{},window.scrollTo({top:0,behavior:t.behavior||"smooth"})}])},44134:function(t,e,s){"use strict";var i=s(4010);class a extends i.A{static baseUrl="/scout/currency_rates/:id.json"}e.A=a},87468:function(t,e,s){"use strict";var i=s(2543);e.A=class{constructor(t){const e=this.isExistingSuggestedLawyer(t);this.id=e?t.id:null,this.scoutLawyerBridge=e?t.scoutLawyerBridge:this.getLawyerBridge(t),this.scoutLawyerBridgeId=e?t.scoutLawyerBridgeId:this.getLawyerBridgeId(t),this.lawyer=e?t.lawyer:this.getLawyer(t),this.lawyerId=e?t.lawyerId:this.getLawyerId(t),this.proposedHourlyRate=e?t.proposedHourlyRate:null,this.suggestedBy=e?t.suggestedBy:"lawyer",this.lawyerName=t.lawyerName}isExistingSuggestedLawyer(t){return void 0!==t.suggestedBy}getLawyer(t){return this.isLawyerBridge(t)?null:null===t.lawyerName||void 0===t.lawyerName?t:null}getLawyerId(t){return this.isLawyerBridge(t)?null:t.id?t.id:null}getLawyerBridge(t){return t.scoutLawyerBridge?t.scoutLawyerBridge:this.isLawyerBridge(t)?t:void 0}getLawyerBridgeId(t){return t.scoutLawyerBridge?t.scoutLawyerBridge.id:this.isLawyerBridge(t)?t.id:null}get isBasicLawyer(){return null!==this.lawyer&&void 0!==this.lawyer}fullName(){return this.scoutLawyerBridge||void 0!==this.accessLevel?"forbidden"===(this.scoutLawyerBridge?.accessLevel||this.accessLevel)?"Deactivated User":this.scoutLawyerBridge.fullName:this.isBasicLawyer?this.lawyer.fullName:this.lawyerName}firmTitle(){return this.scoutLawyerBridge||void 0!==this.accessLevel?"forbidden"===(this.scoutLawyerBridge?.accessLevel||this.accessLevel)?"":this.scoutLawyerBridge.firmTitle:this.isBasicLawyer?this.lawyer.firmTitle:null}isLawyerBridge(t){return t.scoutLawyerBridge||void 0!==t.accessLevel}toFormData(){return{id:this.id,formId:(0,i.uniqueId)("firm-suggested-"),scoutLawyerBridge:this.scoutLawyerBridge,scoutLawyerBridgeId:this.scoutLawyerBridgeId,lawyer:this.lawyer,lawyerId:this.lawyerId,lawyerName:this.lawyerName,proposedHourlyRate:this.proposedHourlyRate,suggestedBy:"lawyer"}}fullNameEquals(t){const e=t.toLowerCase(),s=this.isBasicLawyer?this.lawyer:this.scoutLawyerBridge;return!(!s||!s.fullName||s.fullName.toLowerCase()!==e)||!(!this.lawyerName||this.lawyerName.toLowerCase()!==e)}}},67446:function(t,e,s){"use strict";var i=s(67046);class a{constructor(t={}){this.defaultFont=t.font||"Helvetica",this.defaultBreak=t.break||1,this.supportedTags=["p","strong","em","u","ul","ol","li"]}parse(t){if(!t)return[];const e=this._cleanHtml(t),s=document.createElement("div");s.innerHTML=e,this.elements=[],this.currentParagraphRuns=[];for(const i of s.childNodes)this._processNode(i);if(this._finishCurrentParagraph(),0===this.elements.length){const t=s.textContent||s.innerText||"";if(t.trim())return[new i.fzL({children:[this.createTextRun({text:t.trim(),break:1})]})]}return this.elements}_cleanHtml(t){const e=document.createElement("div");return e.innerHTML=t,this._cleanNode(e),e.innerHTML}_cleanNode(t){if(Array.from(t.childNodes).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&this._cleanNode(t)})),t.nodeType===Node.ELEMENT_NODE){const e=t.tagName.toLowerCase();if(!this.supportedTags.includes(e)){const e=document.createTextNode(t.textContent);t.parentNode?.replaceChild(e,t)}}}_processNode(t,e={}){t.nodeType===Node.TEXT_NODE?this._processTextNode(t,e):t.nodeType===Node.ELEMENT_NODE&&this._processElementNode(t,e)}_processTextNode(t,e){const s=t.textContent;s&&this.currentParagraphRuns.push(this.createTextRun({text:s,...e,break:0===this.currentParagraphRuns.length?1:0}))}_processElementNode(t,e){const s=t.tagName.toLowerCase(),i=this._getFormattingForTag(s,e);switch(s){case"p":this._processParagraph(t,i);break;case"ul":this._processUnorderedList(t,i);break;case"ol":this._processOrderedList(t,i);break;default:this._processChildNodes(t,i)}}_getFormattingForTag(t,e){return{...e,...{strong:{bold:!0},u:{underline:{type:"single"}},em:{italics:!0}}[t]}}_processParagraph(t,e){this._finishCurrentParagraph(),this._processChildNodes(t,e),this._finishCurrentParagraph()}_processUnorderedList(t,e){this._finishCurrentParagraph(),this._processList(t,e,(()=>"\u2022 "))}_processOrderedList(t,e){this._finishCurrentParagraph(),this._processList(t,e,((t,e)=>`${e+1}. `))}_processList(t,e,s){t.querySelectorAll(":scope > li").forEach(((t,i)=>{this._processListItem(t,s(t,i),e)}))}_processListItem(t,e,s){const a=[this.createTextRun({text:e,break:0})];this._processListItemContent(t,s,a),this.elements.push(new i.fzL({children:a,indent:{left:360}}))}_processListItemContent(t,e,s){const i=["strong","em","u"];for(const a of t.childNodes)if(a.nodeType===Node.TEXT_NODE){const t=a.textContent;t.trim()&&s.push(this.createTextRun({text:t,...e,break:0}))}else if(a.nodeType===Node.ELEMENT_NODE){const t=a.tagName.toLowerCase(),r=i.includes(t)?this._getFormattingForTag(t,e):e;this._processListItemContent(a,r,s)}}_processChildNodes(t,e){for(const s of t.childNodes)this._processNode(s,e)}_finishCurrentParagraph(){this.currentParagraphRuns.length>0&&(this.elements.push(new i.fzL({children:this.currentParagraphRuns})),this.currentParagraphRuns=[])}createTextRun(t={}){return new i.NTc({break:t.break||this.defaultBreak,font:this.defaultFont,...t})}static parse(t,e={}){return new a(e).parse(t)}}e.A=a},1257:function(t,e,s){"use strict";s.d(e,{AI:function(){return l},UE:function(){return c},VB:function(){return n},YJ:function(){return o}});var i=s(2543),a=s(13193),r=s(83340);function o(t){return Boolean(t?.isPricingPhaseQuestion)}function n(t=[]){return!!Array.isArray(t)&&t.some((t=>!!Array.isArray(t?.questions)&&t.questions.some((t=>o(t)))))}function l(t=[]){const e=t.filter((t=>t.isIncluded&&!t.prerequisiteQuestionId)),s=e.some((t=>o(t))),r=e.find((t=>"estimated_legal_fees"===t.shortname)),n=Boolean((0,a.ZF)(r));let l=e;return(s||n)&&(l=e.filter((t=>!(0,a.kG)(t.shortname)))),(0,i.orderBy)(l,"position")}function c({question:t,phaseNumber:e=null,hierarchyQuestions:s=[],answer:i=null,hasPricingPhases:n=!1,showRequired:l=!1,includeTaskCode:c=!0,taskCodeBeforePricing:u=!1,includePricingLabel:p=!0,answerAwarePricing:m=!1}){let h=t.questionText;const f=(0,r.WA)(t,s);if(o(t))if(e)h=`${e}. ${h}`;else if(f){h=`${String(f).includes(".")?f:`${f}.`} ${h}`}const v=function({question:t,answer:e,hasPricingPhases:s,answerAwarePricing:i}){const r=(0,a.ZF)(t);if(o(t)){if(i){const s=d(t,e);if(s)return(0,a.GI)(s);if(r===a.UE)return null}return(0,a.GI)(r||(0,a.p0)())}if("estimated_legal_fees"!==t?.shortname||s)return null;if(i){const s=d(t,e);return s?(0,a.GI)(s):null}return r?(0,a.GI)(r):null}({question:t,answer:i,hasPricingPhases:n,answerAwarePricing:m}),b=c&&t.taskCode?` (${t.taskCode})`:"";return u&&b&&(h+=b),p&&v&&(h+=` - ${v}`),l&&t.isRequired&&(h+=" *"),!u&&b&&(h+=b),h}function d(t,e){const s=(0,a.ZF)(t);if(s===a.UE){const s=e?(0,a._3)(t,e):null;return s===a.UE?null:s}return(0,a._3)(t,e)||s}},8636:function(t,e){"use strict";e.A={methods:{switchToTab(t){const e={project:1,questions:2,recipients:3}[String(t||"").toLowerCase()];e&&this.$refs.createForm?.switchToStep(e)}}}},39310:function(t,e,s){"use strict";var i=s(11204),a=s(13594),r=s(58691),o=s(25839);e.A={methods:{save(t){return this._saveChain=(this._saveChain||Promise.resolve()).catch((()=>{})).then((()=>this.runSave(t))),this._saveChain},runSave({rfq:t,step:e,isAutosave:s,silentFailure:n}){const l=t.questionGroups?{...t,questionGroups:this.buildQuestionGroupsForPricingMode(t.questionGroups)}:t,c=i.A.formatQuestionGroupsForSave(l),d=!s;this.stripUnsentDueDate(c,e),d&&a.A.loading("rfqForm"),r.A.clear();const u=this.resolveSavePromise(c,e,s),p=Boolean(n)&&2===e&&Boolean(c.id)&&!c.questionGroupsAttributes;return u.then((t=>p?(this.mergeSavedFields(t,c),this.rfq):(this.rfq={...this.rfq,...t,rfqJurisdictionsAttributes:[]},this.setRfqGroupTemplates(i.A.formatQuestionGroupsForSave(t).questionGroupsAttributes),this.afterServerMerge(t),c.dueDate&&c.dueDateTimeZone||(this.rfq.dueDateTimeZone=this.dueDateDetails.timeZone),this.rfq))).catch((t=>{if(this.clearLoadingStates(),!n)throw r.A.error("Failed to save RFP. Please try again.",!1),(0,o.e)(),t})).finally((()=>{d&&a.A.done("rfqForm")}))},mergeSavedFields(t,e){Object.keys(e).filter((t=>
1"id"!==t)).forEach((e=>{Object.prototype.hasOwnProperty.call(t,e)&&this.$set(this.rfq,e,t[e])}))},isTagOnlyAutosave(t,e,s){if(!s||2!==e||!t.id)return!1;const i=Object.keys(t);return 2===i.length&&i.includes("id")&&i.includes("rfqTagIds")},afterServerMerge(){}}}},58516:function(t,e,s){"use strict";s.d(e,{A7:function(){return m},CL:function(){return l},VE:function(){return n},li:function(){return u},rx:function(){return p},tt:function(){return d}});var i=s(45343),a=s(35192),r=s(13193),o=s(2543);function n(t){return null!==t&&void 0!==t&&("string"!==typeof t||t.trim().length>0)}function l(t){return Array.isArray(t?.value)?t.value:[]}function c(t,e,s="USD"){if(!n(e))return null;if(null===t||void 0===t)return i.A.onlyDollars(e);const r=t.answerType||t.questionType;return"percentage"===r?`${e}%`:"quantity"===r?(0,a.q8)(e)||String(e):i.A.onlyDollars(e,s)}function d(t,e,s="USD"){const[a,n]=l(e),d=(0,r.XP)(t,e),u={...t,answerType:d},p=c(u,a,s);let m=c(u,n,s);return p||m?m&&p!==m?(m="range"===t.questionType?m.replace(i.A.getCurrencySymbol(s),"").trim():c(t,n,s),(0,o.compact)([p,m]).join(" - ")):p||m:null}function u(t,e=null){return e?{number:String(e).includes(".")?String(e):`${e}.`,text:t}:{number:null,text:t}}function p(t,e){const s=(0,r.ZF)(t),i=(0,r._3)(t,e),a=i?null:(0,r.p0)(),o=s||a;return o===r.UE?i&&i!==r.UE?[`Law Firm's Choice: ${(0,r.GI)(i)}`]:[]:o?[(0,r.GI)(o)]:i?[(0,r.GI)(i)]:[]}function m(t){const e=t?.note;return n(e)?e.trim():null}},51082:function(t,e){"use strict";e.A={plaidEnv:"production",plaidPublicKey:null,recaptchaSiteKey:"6LcOpI0UAAAAADCqDoAMSy6h6z3TN3XtLmqpEZdM",twilioPhoneText:"646-681-5291",saleforceBaseURL:"https://priori.lightning.force.com",defaultInvoicesEmail:"[email protected]",cronofyClientID:"MVvlc7zL4NoZ9Q1GjxQXmJKDEGtzpSaF",cronofyHost:"https://app.priorilegal.com",cronofyAvoidLink:"false",defaultManagementFeePercent:25,bmiNewMatterUrl:"https://www.appsheet.com/start/a85c82dd-ea9f-445c-a4d9-854ce66ec7ff?refresh=1&#view=Request%20a%20Billing%20Matter"}},52188:function(){},23901:function(){},84269:function(){},21279:function(){},82169:function(){},12265:function(){},87754:function(){},7027:function(){},62012:function(){},85897:function(){},16347:function(){},10415:function(){},65795:function(){},70763:function(){},82148:function(){},96496:function(){},77303:function(){},79010:function(t,e,s){"use strict";s.d(e,{A:function(){return q}});var i=s(14314),a=s(98737),r=s(41644),o=s(2543),n=s(58042),l=s(13594),c=s(25839),d=s(58691),u=s(62966),p=s(42409),m=s(67192),h=s(45261),f=s(77948),v=s(42315),b=s(83340),g=s(28829),y={name:"RfqTemplateQuestions",components:{RfqTemplateGroupForm:i.A,LoadingButton:a.default,RfqInstructions:u.A,RfqInstructionsModal:p.A,DocumentsSection:m.A,QuestionGroup:h.A,FileSelector:v.default},props:{isNew:{type:Boolean,default:!0},isEditing:{type:Boolean,default:!1},showTemplateHeading:{type:Boolean,default:!0},template:{type:Object,default:()=>({})},questionGroups:{type:Array,default:()=>[]},currencyCode:{type:String,required:!0},markPersistedForDestruction:{type:Boolean,default:!1},editorPolicy:{type:Object,default:()=>g.Xg},updateResource:{type:Function,default:null}},data(){return{maxFileSize:50,persistedRfqTemplate:null,localQuestionGroups:[...this.questionGroups],localIsEditing:this.isEditing,useRfqTemplateStore:(0,n.A)(),acceptedExtensions:f.M}},computed:{...(0,r.aH)(n.A,{rfqTemplate:"rfqTemplate",clientRequestedPhasedPricing:"clientRequestedPhasedPricing"}),templateInstructions(){return this.rfqTemplate.instructions},templateDocumentsAttributes(){return this.rfqTemplate.documentsAttributes||[]},hasInstructions(){return!!this.templateInstructions},orderedQuestionGroups(){return this.localIsEditing?this.localQuestionGroups.length>0?this.parentQuestionGroups:this.editableQuestionGroups:this.persistedQuestionGroups},isEditable(){return this.isNew||this.localIsEditing},isEditingExistingTemplate(){return!this.isNew&&this.localIsEditing},canAddSections(){return this.isEditable&&this.editorPolicy.groupStructure.addSection},parentQuestionGroups(){return(0,o.orderBy)(this.localQuestionGroups.filter((t=>!t._destroy)),"position")},editableQuestionGroups(){return(0,o.orderBy)(this.rfqTemplate.questionGroupTemplatesAttributes.filter((t=>!t._destroy)),"position")},persistedQuestionGroups(){return(0,o.orderBy)(this.template.questionGroupTemplatesAttributes.filter((t=>!t._destroy)),"position")},templateDocuments(){return this.templateDocumentsAttributes.filter((t=>!t.scoutRfqQuestionGroupTemplateId&&!t._destroy))},hasTemplateDocuments(){return this.templateDocuments.length>0},reorderSectionsReturnTargetLabel(){return this.showTemplateHeading?"template":"Law Firm Questions"},isSavingEdit(){return l.A.isLoading("saveEdit")}},watch:{questionGroups:{handler(t){this.localQuestionGroups=(0,b.vV)(t||[])},deep:!0}},methods:{...(0,r.i0)(n.A,{setRfqTemplate:"setRfqTemplate",updateTemplate:"updateTemplate",updateQuestion:"updateQuestion",updateTemplateInstructions:"updateTemplateInstructions",updateGroup:"updateGroup",removeQuestion:"removeQuestion",removeGroup:"removeGroup",addQuestion:"addQuestion"}),startEdit(){d.A.clear(),this.persistedRfqTemplate=structuredClone(this.template),this.localIsEditing=!0},saveEdit(){l.A.loading("saveEdit"),this.updateTemplate(this.rfqTemplate,this.updateResource).then((t=>{this.setRfqTemplate(t),this.localIsEditing=!1,d.A.success("This template has been successfully saved.")})).catch((()=>{d.A.error("Failed to update template. Please try again.")})).finally((()=>{(0,c.e)(),l.A.done("saveEdit")}))},cancelEdit(){this.setRfqTemplate(this.persistedRfqTemplate),this.localIsEditing=!1},addOrUpdateInstructions(t){this.updateTemplateInstructions({...this.rfqTemplate,instructions:t.trim()})},removeInstructions(){this.updateTemplateInstructions({...this.rfqTemplate,instructions:""})},selectDocuments(t){if(!t||0===t.length)return;const e=Array.from(t).map((t=>({tempId:(0,o.uniqueId)("temp-doc-"),name:t.name,file:t})));this.updateTemplateInstructions({...this.rfqTemplate,documentsAttributes:[...this.templateDocumentsAttributes,...e]})},onDeleteDocument(t){this.updateTemplateInstructions({...this.rfqTemplate,documentsAttributes:this.templateDocumentsAttributes.map((e=>{const s=["originalRfqTemplateDocumentId","originalRfqDocumentId","id","tempId"].find((e=>t[e]));return e[s]===t[s]?{...e,_destroy:!0}:e}))})},reorderSections(t){const e=[...t.map(((t,e)=>({...t,position:e+1}))),...this.rfqTemplate.questionGroupTemplatesAttributes?.filter((t=>t._destroy))||[]];this.useRfqTemplateStore.reorderGroups(e),this.localQuestionGroups&&0!==this.localQuestionGroups.length&&(this.localQuestionGroups=e)}}},C=y,q=(s(10771),(0,s(14486).A)(C,(function(){var t=this,e=t._self._c;return e("div",{class:{"shadowed-box":t.showTemplateHeading}},[t.showTemplateHeading?e("div",{staticClass:"box-header"},[e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-8 size-text-13px text-uppercase"},[t._v("\n Template Questions\n ")]),t._v(" "),t.isNew?t._e():e("div",{staticClass:"col-sm-4 text-right-not-
1xs"},[t.localIsEditing?e("div",{staticClass:"size-text-13px d-flex flex-end gap-10"},[e("loading-button",{attrs:{name:"saveEdit","lb-class":"pseudo-link-blue",dark:!0},on:{"lb-click":t.saveEdit}},[t._v("Save")]),t._v(" "),t.isSavingEdit?e("div",[e("span",{staticClass:"semibold-weight disabled-text"},[t._v("Cancel")])]):e("div",[e("button",{staticClass:"pseudo-link semibold-weight",attrs:{type:"button"},on:{click:t.cancelEdit}},[t._v("Cancel")])])],1):e("button",{staticClass:"pseudo-link-blue size-text-13px",attrs:{type:"button"},on:{click:t.startEdit}},[t._v("Edit Questions")])])])]):t._e(),t._v(" "),e("div",{class:{"box-content":t.showTemplateHeading}},[t.hasInstructions||t.hasTemplateDocuments||t.isEditable?e("div",{class:["bottom-20",{"box-content responsive-bordered":t.hasInstructions||t.hasTemplateDocuments}]},[t.showTemplateHeading?e("div",[e("div",{staticClass:"size-text-15px bold-weight nowrap"},[t._v("\n RFP Instructions (optional)\n ")]),t._v(" "),t.hasInstructions||t.hasTemplateDocuments||!t.showTemplateHeading?t._e():e("div",{staticClass:"top-5"},[t._v("\n Provide some additional guidance for RFP recipients.\n ")]),t._v(" "),!t.hasInstructions&&t.isEditable?e("rfq-instructions-modal",{staticClass:"top-10",attrs:{instructions:t.templateInstructions,"is-editing":!1,"modal-title":"RFP Instructions","section-title":"RFP Instructions","on-update-instructions":t.addOrUpdateInstructions,"new-instructions-button-text":"Add RFP Instructions"}}):t._e(),t._v(" "),t.hasInstructions?e("rfq-instructions",{staticClass:"top-10",attrs:{"is-editing":t.isEditable,title:"RFP Instructions",instructions:t.templateInstructions,"on-update-instructions":t.addOrUpdateInstructions,"on-remove-instructions":t.removeInstructions,"modal-title":"RFP Instructions","section-title":"RFP Instructions"}}):t._e(),t._v(" "),!t.hasTemplateDocuments&&t.isEditable?e("div",{class:t.hasInstructions?"top-10":"top-5"},[e("file-selector",{attrs:{accept:t.acceptedExtensions,"max-size":t.maxFileSize,multiple:!0,"inline-error":!0},on:{change:t.selectDocuments}},[e("span",{staticClass:"pseudo-link-blue bold-weight size-text-13px"},[t._v("+ Add Documents")])])],1):t._e()],1):t._e(),t._v(" "),t.hasTemplateDocuments?e("documents-section",{staticClass:"top-10",attrs:{documents:t.templateDocuments,"is-editing":t.isEditable,"on-delete-document":t.onDeleteDocument,"on-select-documents":t.selectDocuments}}):t._e()],1):t._e(),t._v(" "),e("div",t._l(t.orderedQuestionGroups,(function(s){return e("question-group",{key:s.id,staticClass:"list-spacing-30",attrs:{group:s,"currency-code":t.currencyCode,"show-template-heading":t.showTemplateHeading,"is-editing":t.isEditing,"is-editable":t.isEditable,"is-template":t.showTemplateHeading,"existing-groups":t.orderedQuestionGroups,"return-target-label":t.reorderSectionsReturnTargetLabel,"on-mark-persisted-for-destruction":t.markPersistedForDestruction,"on-reorder-section":t.reorderSections,"on-update-question":t.updateQuestion,"on-remove-question":t.removeQuestion,"on-remove-group":t.removeGroup,"on-add-question":t.addQuestion,"editor-policy":t.editorPolicy,"update-group":t.updateGroup}})})),1),t._v(" "),t.canAddSections?e("rfq-template-group-form",{staticClass:"top-30",attrs:{"existing-groups":t.orderedQuestionGroups}}):t._e(),t._v(" "),t.isEditingExistingTemplate?e("div",{staticClass:"row tight-columns top-30"},[e("div",{staticClass:"col-sm-3"},[e("loading-button",{attrs:{name:"saveEdit","lb-class":"primary-btn-blue a-button-size"},on:{"lb-click":t.saveEdit}},[t._v("Save")])],1),t._v(" "),e("div",{staticClass:"col-sm-2 top-20-xs"},[e("button",{staticClass:"nv-button-white a-button-size",attrs:{type:"button"},on:{click:t.cancelEdit}},[t._v("Cancel")])])]):t._e()],1)])}),[],!1,null,"faf45aea",null).exports)},74991:function(t,e,s){"use strict";s.d(e,{A:function(){return _e}});var i=s(16887),a={name:"Stepper",components:{SvgIcon:i.default},props:{steps:{type:Array,required:!0},initialActiveStep:{type:Number,default:1}},emits:["step-change"],data(){return{activeStep:this.initialActiveStep}},watch:{activeStep(t,e){const s=this.steps.find((t=>t.number===e)),i=this.steps.find((e=>e.number===t));this.$emit("step-change",s,i)}},mounted(){this.setSpacerCustomCssProperties(),window.addEventListener("resize",this.setSpacerCustomCssProperties)},beforeDestroy(){window.removeEventListener("resize",this.setSpacerCustomCssProperties)},methods:{previousStep(){this.activeStep>0&&this.activeStep--},nextStep(){this.activeStep<this.steps.length&&this.activeStep++},goToStep(t){this.activeStep=t},isActiveStep(t){return t===this.activeStep},stepStatus(t){const e=this.isPending(t),s=t.number;return s===this.activeStep?"active":!e&&s<this.activeStep?"complete":"incomplete"},statusClass(t){return{active:"status-active",incomplete:"status-incomplete",complete:"status-complete"}[this.stepStatus(t)]},setSpacerCustomCssProperties(){const t=document.querySelector(".step-header");let e=0;if(t){const e=window.getComputedStyle(t).width;document.documentElement.style.setProperty("--step-header-width",e)}document.querySelectorAll(".step-item").forEach((t=>{const s=t.offsetWidth+15;e+=s})),document.documentElement.style.setProperty("--step-items-sum",e+"px"),document.documentElement.style.setProperty("--number-of-steps",this.steps.length)},isInvalid(t){return"invalid"===t.validationStatus},isPending(t){return"pending"===t.validationStatus}}},r=(s(51109),s(14486)),o=(0,r.A)(a,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"step-header"},t._l(t.steps,(function(s){return e("div",{key:s.number,class:["step-item",{selected:t.isActiveStep(s.number),invalid:t.isInvalid(s)}],on:{click:function(e){return t.goToStep(s.number)}}},[e("div",{class:["vertical-center",{"add-spacer-after":s.number!==t.steps.length}]},[e("span",{class:["stepper-label",t.statusClass(s),{invalid:t.isInvalid(s)}]},[e("span",{staticClass:"size-text-13px"},[t._v(t._s(s.number))])]),t._v(" "),e("span",{class:["stepper-label-text",{invalid:t.isInvalid(s)&&!t.isActiveStep(s.number)}]},[t._v(t._s(s.label))]),t._v(" "),s.aiActivity&&!t.isInvalid(s)?e("svg-icon",{staticClass:"base-icon blue-text left-5",attrs:{name:"sparkle"}}):t._e()],1)])})),0),t._v(" "),t._t("default",null,{activeStep:t.activeStep,moveToNextStep:t.nextStep,moveToPrevStep:t.previousStep})],2)}),[],!1,null,"4d5d4f25",null).exports,n={name:"RecipientLawyerItem",components:{SuggestedLawyer:s(80524).A,SvgIcon:i.default},props:{lawyer:{type:Object,required:!0},rfqLawFirmQuote:{type:Object,required:!0},disabled:{type:Boolean,required:!1}},computed:{scoutLawyerBridge(){return this.lawyer.scoutLawyerBridge}},methods:{removeLawyer(){this.rfqLawFirmQuote.suggestedLawyers=this.rfqLawFirmQuote.suggestedLawyers.filter((t=>t.scoutLawyerBridge.id!==this.scoutLawyerBridge.id))}}},l=(s(18925),(0,r.A)(n,(function(){var t=this,e=t._self._c;return e("div",{class:["lawyer-container",{"disable-lawyer-card":t.disabled}]},[e("div",{staticClass:"row tight-columns vertical-center-not-xs"},[t.disabled?t._e():e("div",{staticClass:"col-xs-3 col-sm-1 minus-icon",on:{click:t.removeLawyer}}
1,[e("svg-icon",{staticClass:"base-icon",attrs:{name:"minus-circle"}})],1),t._v(" "),e("div",{class:t.disabled?"col-xs-12":"col-xs-9 col-sm-11"},[e("suggested-lawyer",{attrs:{lawyer:t.scoutLawyerBridge,"show-rate-title":!0}})],1)])])}),[],!1,null,"4c3b697c",null).exports),c=s(58208),d=s(47191),u=s(13594),p=s(5070),m=s(21259),h={name:"AddLawyer",components:{PrioriModal:c.default,TypeaheadVertical:d.default,TagList:m.A},props:{rfqLawFirmQuote:{type:Object,required:!0}},data(){return{lawyersToAdd:[],availableLawyers:[]}},computed:{addLawyerModalTitle(){return`Add lawyer from ${this.rfqLawFirmQuote.firmName}`},hasLawyersToAdd(){return this.lawyersToAdd.length>0}},methods:{searchLawyers(t){if(t.length<2)return Promise.resolve([]);const e={search_term:t,law_firm_id:this.rfqLawFirmQuote.lawFirmId};return u.A.loading("addLawyers"),p.A.clientSearchByName(e).then((t=>{const e=new Set(this.rfqLawFirmQuote.suggestedLawyers.map((t=>t.scoutLawyerBridge.id))),s=new Set(this.lawyersToAdd.map((t=>t.scoutLawyerBridge.id)));return t.filter((t=>!e.has(t.id)&&!s.has(t.id)))})).finally((()=>{u.A.done("addLawyers")}))},getLawyerBridgeName(t){return t.scoutLawyerBridge.fullName},addLawyer(t){t&&(this.lawyersToAdd.push({scoutLawyerBridge:t}),this.$refs.lawyersToAddTypeahead.reset())},removeLawyer(t){this.lawyersToAdd.splice(t,1)},proceedToAddLawyer(){this.rfqLawFirmQuote.suggestedLawyers.push(...this.lawyersToAdd),this.lawyersToAdd=[],this.$refs.addLawyerModal.closeModal()},cancelAddLawyer(){this.lawyersToAdd=[],this.$refs.addLawyerModal.closeModal()}}},f=(0,r.A)(h,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"addLawyerModal",attrs:{"modal-id":"add-lawyer-modal",title:t.addLawyerModalTitle},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"pseudo-link-blue bold-weight",attrs:{type:"button"},on:{click:s}},[t._v("+ Add Lawyer")])]}}])},[t._v(" "),e("div",{staticClass:"a-form bottom-30"},[e("typeahead-vertical",{ref:"lawyersToAddTypeahead",attrs:{id:"add-lawyer-selection",label:t.addLawyerModalTitle,options:[],"option-label-key":"fullName",placeholder:"Search by name","async-function":t.searchLawyers},on:{input:t.addLawyer}}),t._v(" "),t.hasLawyersToAdd?e("div",{staticClass:"top-30"},[e("tag-list",{attrs:{tags:t.lawyersToAdd,"on-remove":t.removeLawyer,"value-fn":t.getLawyerBridgeName,"tag-class":"clear"}})],1):t._e()],1),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-5"},[e("button",{class:["primary-btn-blue",{disabled:!t.hasLawyersToAdd}],attrs:{type:"button"},on:{click:t.proceedToAddLawyer}},[t._v("Add Lawyer")])]),t._v(" "),e("div",{staticClass:"col-sm-4 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.cancelAddLawyer}},[t._v("Cancel")])])])])}),[],!1,null,null,null).exports,v=s(25691),b={name:"RemoveFirm",components:{PrioriModal:c.default,SvgIcon:i.default},props:{rfq:{type:Object,required:!0},quote:{type:Object,required:!0}},computed:{confirmationTitle(){return`Delete Law Firm: ${this.quote.firmName}`},lawyerCount(){return this.quote.suggestedLawyers.length},suggestedLawyerText(){return this.$pluralize("suggested lawyer",this.lawyerCount,!0)}},methods:{removeFirm(){this.quote.id?this.deleteQuote().then((()=>{this.updateRfqFirmRemoved(),this.$refs.removeFirmModal.closeModal()})):(this.updateRfqFirmRemoved(),this.$refs.removeFirmModal.closeModal())},deleteQuote(){return v.A.delete({id:this.quote.id})},updateRfqFirmRemoved(){this.quote.id?this.rfq.lawFirmQuotes=this.rfq.lawFirmQuotes.filter((t=>t.id!==this.quote.id)):this.quote.firmHasRfqEnabled?this.rfq.lawFirmQuotes=this.rfq.lawFirmQuotes.filter((t=>t.lawFirmId!==this.quote.lawFirmId)):this.rfq.disabledLawFirmQuotes=this.rfq.disabledLawFirmQuotes.filter((t=>t.lawFirmId!==this.quote.lawFirmId)),0===this.rfq.lawFirmQuotes.length&&this.rfq.hasImportedList&&(this.rfq.hasImportedList=!1)},cancel(){this.$refs.removeFirmModal.closeModal()}}},g=(0,r.A)(b,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"removeFirmModal",attrs:{"modal-id":"remove-firm-modal",title:t.confirmationTitle},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"pseudo-link-gray pill-gray-text semibold-weight vertical-center gap-10",attrs:{type:"button"},on:{click:s}},[e("svg-icon",{staticClass:"base-icon smaller",attrs:{name:"trash"}}),t._v("Remove Firm")],1)]}}])},[t._v(" "),e("div",{staticClass:"size-text-14px bottom-30"},[t._v("\n Are you sure you want to remove "+t._s(t.quote.firmName)),t.lawyerCount?e("span",[t._v(" and "+t._s(t.suggestedLawyerText))]):t._e(),t._v(" from this RFP?\n ")]),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-5"},[e("button",{staticClass:"nv-button-blue",attrs:{type:"button"},on:{click:t.removeFirm}},[t._v("Yes, Delete this Firm")])]),t._v(" "),e("div",{staticClass:"col-sm-4 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.cancel}},[t._v("No, Cancel")])])])])}),[],!1,null,null,null).exports,y=s(2543),C={name:"RecipientItem",components:{RecipientLawyerItem:l,AddLawyer:f,RemoveFirm:g,SvgIcon:i.default},props:{rfq:{type:Object,required:!0},quote:{type:Object,required:!0}},data(){return{isExpanded:!1}},computed:{isAiMarked(){return"ai"===this.quote.addedBySource&&!this.quote.aiMarkerCleared},hasLawyers(){return this.quote.suggestedLawyers.length>0},sortedLawyerBridges(){return(0,y.sortBy)(this.quote.suggestedLawyers,(t=>(t.scoutLawyerBridge.lastName||t.scoutLawyerBridge.fullName).toLowerCase()))}},methods:{toggleSuggestedLawyers(){this.isExpanded=!this.isExpanded},clearAiMarker(){this.isAiMarked&&(this.quote.aiMarkerCleared=!0,v.A.update({id:this.quote.id,rfqLawFirmQuote:{aiMarkerCleared:!0}}))}}},q=(s(30260),(0,r.A)(C,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"item-wrapper"},[e("div",{staticClass:"d-flex justify-between items-center"},[e("div",{staticClass:"vertical-center gap-10 bold-weight size-text-15px"},[t._v("\n "+t._s(t.quote.firmName)+"\n "),t.isAiMarked?e("svg-icon",{staticClass:"base-icon blue-text",attrs:{name:"sparkle"}}):t._e()],1),t._v(" "),e("button",{staticClass:"nv-button-square-white",attrs:{type:"button"},on:{click:t.toggleSuggestedLawyers}},[e("svg-icon",{class:["base-icon disclosure-icon",{"expanded rotate-90":t.isExpanded}],attrs:{name:"caret-right"}})],1)]),t._v(" "),t.isExpanded?e("div",{staticClass:"top-20"},[t.hasLawyers?e("div",t._l(t.sortedLawyerBridges,(function(s){return e("recipient-lawyer-item",{key:s.id,staticClass:"list-spacing-10",attrs:{lawyer:s,"rfq-law-firm-quote":t.quote}})})),1):e("div",{staticClass:"empty-list"},[t._v("\n You have not suggested any lawyers from this firm.\n ")]),t._v(" "),e("div",{staticClass:"d-flex-not-xs justify-between top-20"},[e("add-lawyer",{attrs:{"rfq-law-firm-quote":t.quote}}),t._v(" "),e("remove-firm",{staticClass:"top-20-xs",attrs:{rfq:t.rfq,quote:t.quote}})],1)]):t._e()])}
1),[],!1,null,"58acf554",null).exports),w={name:"ContactScoutAdmins",components:{PrioriModal:c.default},props:{onContactAdmins:{type:Function,required:!0}},emits:["contact-admins"],data(){return{contactBtnDisabled:!1}},methods:{confirm(){this.onContactAdmins().then((()=>{this.contactBtnDisabled=!0,this.$refs.contactScoutAdmins.closeModal()}))},cancel(){this.$refs.contactScoutAdmins.closeModal()}}},_=(0,r.A)(w,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"contactScoutAdmins",attrs:{"modal-id":"contact-scout-admins",title:"Confirm Contact Admins"},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[t.contactBtnDisabled?e("div",{staticClass:"pill-gray-text bold-weight"},[t._v("Contact Admins")]):e("button",{staticClass:"pseudo-link-blue bold-weight",attrs:{type:"button"},on:{click:s}},[t._v("Contact Admins")])]}}])},[t._v(" "),e("div",{staticClass:"size-text-14px bottom-30"},[t._v("\n Do you want to send an email to your administrators requesting this firm be approved to receive RFPs?\n ")]),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-5"},[e("button",{staticClass:"nv-button-blue",attrs:{type:"button"},on:{click:t.confirm}},[t._v("Yes, Confirm")])]),t._v(" "),e("div",{staticClass:"col-sm-4 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.cancel}},[t._v("No, Cancel")])])])])}),[],!1,null,null,null).exports,A=s(58691),x={name:"DisabledRecipientItem",components:{ContactScoutAdmins:_,RemoveFirm:g},props:{rfq:{type:Object,required:!0},quote:{type:Object,required:!0}},emits:["contact-admins"],methods:{contactScoutAdmins(){return v.A.scoutAdminsContacted({lawFirmId:this.quote.lawFirmId}).then((()=>{A.A.success("Admins have been contacted."),window.scrollTo({top:0,behavior:"smooth"})}))}}},T=(s(87339),(0,r.A)(x,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"item-wrapper rfq-not-authorized"},[e("div",{staticClass:"bold-weight size-text-15px"},[t._v("\n "+t._s(t.quote.firmName)+"\n ")]),t._v(" "),e("div",{staticClass:"top-20"},[t._m(0),t._v(" "),e("div",{staticClass:"row top-20"},[e("div",{staticClass:"col-sm-9"},[e("contact-scout-admins",{attrs:{"on-contact-admins":t.contactScoutAdmins}})],1),t._v(" "),e("div",{staticClass:"col-sm-3 d-flex flex-end-not-xs top-10-xs"},[e("remove-firm",{attrs:{rfq:t.rfq,quote:t.quote}})],1)])])])}),[function(){var t=this._self._c;return t("div",[t("i",[this._v("This law firm is not yet authorized by your legal department to receive RFPs. Please contact your team\u2019s administrator to grant approval to this law firm. Once the firm is approved, you will be able to edit the existing RFP to add the firm.")])])}],!1,null,"15287fac",null).exports),S=s(24923),k={name:"RfqAddFirm",components:{PrioriModal:c.default,TypeaheadVertical:d.default,LoadingSection:S.default,TagList:m.A},props:{rfq:{type:Object,required:!0},availableFirms:{type:Array,default:()=>[]}},data(){return{lawFirmQuotesToAdd:[]}},computed:{lawFirmQuotesChanged(){return!(0,y.isEqual)(this.rfq.lawFirmQuotes,this.lawFirmQuotesToAdd)},availableFirmNames(){return this.availableFirms.filter((t=>!this.lawFirmQuotesToAdd.some((e=>e.lawFirmId===t.id)))).map((t=>t.name))},hasAddedLawFirmQuotes(){return this.lawFirmQuotesToAdd.length>0}},methods:{addFirmToQuotes(t){if(null===t||""===t)return;const e=this.availableFirms.find((e=>e.name===t));e&&this.lawFirmQuotesToAdd.push({id:null,firmHasRfqEnabled:!0,firmName:e.name,lawFirmId:e.id,lawFirmBridgeId:e.lawFirmBridgeId,suggestedLawyers:[]}),this.$refs.selectFirmTypeahead.reset()},getFirmName(t){return t.firmName},removeFirmFromQuotes(t){this.lawFirmQuotesToAdd.splice(t,1),this.$refs.selectFirmTypeahead.reset()},proceedToAddFirm(){this.rfq.lawFirmQuotes.push(...this.lawFirmQuotesToAdd),this.closeModal()},closeModal(){this.clearForm(),this.$refs.addFirmModal.closeModal()},clearForm(){this.lawFirmQuotesToAdd=[],this.$refs.selectFirmTypeahead.reset()}}},F=(0,r.A)(k,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"addFirmModal",attrs:{"modal-id":"add-firm-modal",title:"Add Law Firm"},on:{"on-modal-close":t.clearForm},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"secondary-btn-blue fit-content",attrs:{type:"button"},on:{click:s}},[t._v("+ Add Firm")])]}}])},[t._v(" "),e("div",{staticClass:"bottom-30"},[e("loading-section",{attrs:{name:"rfqAvailableFirms"}},[e("form",{staticClass:"a-form bottom-30",attrs:{role:"form",novalidate:""}}
1,[e("typeahead-vertical",{ref:"selectFirmTypeahead",attrs:{label:"Select a law firm from your team\u2019s connected group",rules:"required",id:"add-firm","force-select":!0,placeholder:"Search by name",options:t.availableFirmNames},on:{input:t.addFirmToQuotes}})],1),t._v(" "),t.hasAddedLawFirmQuotes?e("div",[e("tag-list",{attrs:{tags:t.lawFirmQuotesToAdd,"on-remove":t.removeFirmFromQuotes,"value-fn":t.getFirmName,"tag-class":"clear"}})],1):t._e()])],1),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-4"},[e("button",{class:["primary-btn-blue",{disabled:!t.lawFirmQuotesChanged}],attrs:{type:"button"},on:{click:t.proceedToAddFirm}},[t._v("Add Firm")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.closeModal}},[t._v("Cancel")])])])])}),[],!1,null,null,null).exports,I=s(32589),R=s(9918),M=s(66977),D=s(41644),L={name:"CompareRatesModal",components:{PrioriModal:c.default,SvgIcon:i.default,RateComparison:I.A},props:{lawFirmIds:{type:Array,required:!0}},computed:{...(0,D.aH)(M.A,{user:"currentUser"}),currencyRate(){return this.user.currencyRate}},methods:{compareRates(t){this.$refs.rateComparison.reset(),t()},loadRateComparison(t){return u.A.loading("rateComparison"),R.A.rateComparison({resultList:this.lawFirmIds,title:t}).then((t=>(u.A.done("rateComparison"),t)))}}},P=(s(15154),(0,r.A)(L,(function(){var t=this,e=t._self._c;return e("priori-modal",{attrs:{title:"Compare Rates","modal-size":"md"},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"secondary-btn-blue fit-content",attrs:{type:"button"},on:{click:function(e){return t.compareRates(s)}}},[e("svg-icon",{staticClass:"base-icon right-8 stroke",attrs:{name:"comparison-top-shaded"}}),t._v("Compare Rates")],1)]}},{key:"default",fn:function({modalOpen:s}){return[e("div",{staticClass:"modal-padding"},[e("rate-comparison",{ref:"rateComparison",attrs:{"modal-display":!0,"rfq-display":!0,"currency-rate":t.currencyRate,"on-load-rate-comparison":t.loadRateComparison}})],1)]}}])})}),[],!1,null,"38aef2f2",null).exports),E=s(29473),Q={name:"CompareFirmReviewsModal",components:{PrioriModal:c.default,SvgIcon:i.default,ReviewComparison:E.A},props:{lawFirmIds:{type:Array,required:!0}},methods:{initModal(t){this.$refs.reviewComparison.reset(),t()}}},B=(s(85058),(0,r.A)(Q,(function(){var t=this,e=t._self._c;return e("priori-modal",{attrs:{title:"Compare Reviews"},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"secondary-btn-blue fit-content",attrs:{type:"button"},on:{click:function(e){return t.initModal(s)}}},[e("svg-icon",{staticClass:"base-icon right-8 stroke",attrs:{name:"comparison-bottom-shaded"}}),t._v("Compare Reviews")],1)]}},{key:"default",fn:function({modalOpen:s}){return[e("review-comparison",{ref:"reviewComparison",attrs:{"result-ids":t.lawFirmIds,"resource-type":"law_firms","modal-display":!0,"is-open":s}})]}}])})}),[],!1,null,"666b1dda",null).exports),N=s(5322),G={name:"AddFromList",components:{PrioriModal:c.default,LoadingSection:S.default,DropdownSelect:N.default},props:{rfq:{type:Object,required:!0},resourceLists:{type:Array,required:!0}},data(){return{selectedListId:null}},methods:{proceedToSelectList(){v.A.getFromResourceList({resource_list_id:this.selectedListId,rfq_id:this.rfq.id}).then((t=>{const[e,s]=(0,y.partition)(t.data,"firmHasRfqEnabled");this.rfq.lawFirmQuotes=e,this.rfq.disabledLawFirmQuotes=s,this.rfq.hasImportedList=!0})),this.resetSelectionModal()},updateSelectedList(t){this.selectedListId=t},resetSelectionModal(){this.selectedListId=null,this.$refs.listSelectModal.closeModal(),this.$refs.listDropdown.reset()}}},O=(0,r.A)(G,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"listSelectModal",attrs:{"modal-id":"rfq-from-existing-list-modal",title:"Populate RFP from Existing List"},on:{"on-modal-close":t.resetSelectionModal},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"secondary-btn-blue fit-content",attrs:{type:"button"},on:{click:s}},[t._v("Use Existing List")])]}}])},[t._v(" "),e("form",{staticClass:"a-form",attrs:{role:"form",novalidate:""}},[e("div",{staticClass:"bottom-30"},[e("loading-section",{attrs:{name:"rfqResourceLists"}},[e("dropdown-select",{ref:"listDropdown",attrs:{label:"Select one of your existing lists to populate the RFP","label-key":"name",placeholder:"Select One","id-label":"rfq-existing-list",options:t.resourceLists,"value-key":"id"},on:{input:t.updateSelectedList}})],1)],1),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-4"},[e("button",{class:["primary-btn-blue",{disabled:!t.selectedListId}],attrs:{type:"button"},on:{click:t.proceedToSelectList}},[t._v("Select List")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.resetSelectionModal}},[t._v("Cancel")])])])])])}),[],!1,null,null,null).exports,$=s(61030),z={name:"AddFromSavedSearch",components:{PrioriModal:c.default,LoadingSection:S.default,DropdownSelect:N.default},props:{rfq:{type:Object,required:!0},savedSearches:{type:Array,required:!0},onConnectSearch:{type:Function,required:!0}},data(){return{selectedSearchId:null}},methods:{updateSelectedSearch(t){this.selectedSearchId=t},proceedToSelectSearch(){$.A.search({id:this.selectedSearchId,full_results:!0}).then((t=>{const e=JSON.parse(t.searchParams).type,s={resource_ids:$.A.resultIds(t),search_type:e};return this.rfq.externalMatterId=t.externalMatterId,this.rfq.bmiMatter=t.bmiMatter,v.A.getFromSavedSearch(s).then((e=>{const[s,i]=(0,y.partition)(e.data,"firmHasRfqEnabled");return this.rfq.lawFirmQuotes=s,this.rfq.disabledLawFirmQuotes=i,this.rfq.hasImportedList=!0,this.onConnectSearch(t)}))})),this.resetSelectionModal()},resetSelectionModal(){this.selectedSearchId=null,this.$refs.searchSelectModal.closeModal(),this.$refs.searchDropdown.reset()}}},j=(0,r.A)(z,(function(){var t=this,e=t._self._c;
1return e("priori-modal",{ref:"searchSelectModal",attrs:{"modal-id":"rfq-from-saved-searches-modal",title:"Populate RFP from Saved Search"},on:{"on-modal-close":t.resetSelectionModal},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"secondary-btn-blue fit-content",attrs:{type:"button"},on:{click:s}},[t._v("Use Saved Search")])]}}])},[t._v(" "),e("form",{staticClass:"a-form",attrs:{role:"form",novalidate:""}},[e("div",{staticClass:"bottom-30"},[e("loading-section",{attrs:{name:"savedSearches"}},[e("dropdown-select",{ref:"searchDropdown",attrs:{label:"Select one of your saved searches to populate the RFP","label-key":"name",placeholder:"Select One","id-label":"rfq-existing-search",options:t.savedSearches,"value-key":"id"},on:{input:t.updateSelectedSearch}})],1)],1),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-4"},[e("button",{class:["primary-btn-blue",{disabled:!t.selectedSearchId}],attrs:{type:"button"},on:{click:t.proceedToSelectSearch}},[t._v("Select Search")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.resetSelectionModal}},[t._v("Cancel")])])])])])}),[],!1,null,null,null).exports,U={name:"AiChatCta",components:{SvgIcon:i.default},props:{chatOpen:{type:Boolean,default:!1},onOpen:{type:Function,required:!0}}},V=(s(32760),(0,r.A)(U,(function(){var t=this,e=t._self._c;return e("div",[e("button",{class:["ai-chat-cta pseudo-link newblue-text semibold-weight vertical-center gap-5",{"is-open":t.chatOpen}],attrs:{type:"button","aria-expanded":t.chatOpen?"true":"false","aria-controls":"rfq-support-chat-panel"},on:{click:t.onOpen}},[t._v("Scout RFP Builder can help"),e("svg-icon",{staticClass:"base-icon",attrs:{name:"sparkle","aria-hidden":"true"}})],1)])}),[],!1,null,"1db36707",null).exports),J=s(84967),H=s(61920),Z=s(72030),W=s(93396),K={name:"StepRecipients",components:{RecipientItem:q,DisabledRecipientItem:T,RfqAddFirm:F,CompareRatesModal:P,CompareFirmReviewsModal:B,AddFromList:O,AddFromSavedSearch:j,AiChatCta:V,ToggleButton:J.default,SvgIcon:i.default,InterfaceNote:H.default,LoadingSection:S.default},props:{rfq:{type:Object,required:!0},nextStep:{type:Function,required:!0},prevStep:{type:Function,required:!0},onDestroyAllLawFirmQuotes:{type:Function,required:!0},onConnectSearch:{type:Function,required:!0},aiChatEnabled:{type:Boolean,default:!1},aiChatOpen:{type:Boolean,default:!1},onOpenAiChat:{type:Function,required:!1}},emits:["contact-admins"],data(){return{stepInvalid:!1,availableFirms:[],resourceLists:[],savedSearches:[]}},computed:{...(0,D.aH)(M.A,{user:"currentUser",reviewsEnabled:"reviewsEnabled"}),marketplaceRfqsEnabled(){return this.user.workspace.marketplaceRfqsEnabled},hasLawFirmQuotes(){return void 0!==this.rfq.lawFirmQuotes&&this.rfq.lawFirmQuotes.length>0},hasValidQuotes(){return this.hasLawFirmQuotes&&this.rfq.lawFirmQuotes.some((t=>t.firmHasRfqEnabled))},hasExternalMatter(){return!!this.rfq.externalMatterId},stepIsValid(){return this.rfq.sentToMarketplace||this.rfq.firmsEnabled&&this.hasValidQuotes},hasSelectedRecipients(){return this.hasLawFirmQuotes&&this.rfq.lawFirmQuotes.length>0||this.rfq.disabledLawFirmQuotes&&this.rfq.disabledLawFirmQuotes.length>0},sortedLawFirmQuotes(){return(0,y.sortBy)(this.rfq.lawFirmQuotes,(t=>t.firmName.toLowerCase()))},sortedDisabledLawFirmQuotes(){return(0,y.sortBy)(this.rfq.disabledLawFirmQuotes,(t=>t.firmName.toLowerCase()))},getAvailableFirms(){if(this.rfq.lawFirmQuotes&&this.rfq.lawFirmQuotes.length<1)return this.availableFirms;const t=new Set(this.rfq.lawFirmQuotes.map((t=>t.lawFirmId)));return this.availableFirms.filter((e=>!t.has(e.id)))},showListImport(){return!this.hasLawFirmQuotes&&!this.rfq.hasImportedList&&this.resourceLists.length>0},showSavedSearchButton(){return!this.hasExternalMatter&&!this.hasLawFirmQuotes&&!this.rfq.hasImportedList&&this.savedSearches.length>0},showRateCompareButton(){return this.hasLawFirmQuotes},showReviewCompareButton(){return this.hasLawFirmQuotes&&this.reviewsEnabled},lawFirmIds(){return this.hasLawFirmQuotes?this.rfq.lawFirmQuotes.map((t=>t.lawFirmBridgeId)):[]}},mounted(){u.A.loading("rfqResourceLists"),W.A.query().then((t=>{this.resourceLists=t,u.A.done("rfqResourceLists")})),u.A.loading("savedSearches"),$.A.query({rfq_available:!0}).then((t=>{this.savedSearches=t,u.A.done("savedSearches")})),u.A.loading("rfqAvailableFirms"),Z.A.rfqAvailableFirms().then((t=>{this.availableFirms=t.data,u.A.done("rfqAvailableFirms")}))},methods:{getRfq(){return this.rfq},next(){this.nextStep(),this.rfq.firmsEnabled||this.onDestroyAllLawFirmQuotes()},previous(){this.prevStep()},toggleMarketplace(){this.rfq.sentToMarketplace=!this.rfq.sentToMarketplace},toggleFirms(){this.rfq.firmsEnabled=!this.rfq.firmsEnabled},validate(){const t=this.stepIsValid;return this.stepInvalid=!t,Promise.resolve(t)}}},Y=(s(60266),(0,r.A)(K,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"shadowed-box stepper-box"},[e("div",{staticClass:"box-content extra-padded"},[e("interface-note",{staticClass:"bottom-30",attrs:{"note-text":"Note: The list of law firms enabled to receive RFPs can be viewed on the Law Firms page. The list of individual recipients provisioned by each firm to re
1ceive this RFP is visible in Step 4. There you can also send notifications to additional parties at each firm."}}),t._v(" "),e("div",{staticClass:"bottom-20"},[e("div",{staticClass:"size-text-17px bold-weight"},[t._v("\n Select RFP Recipients\n ")]),t._v(" "),t.marketplaceRfqsEnabled?e("div",{staticClass:"top-2"},[t._v("\n Use the toggles below to request proposals from your law firms, Priori\u2019s Network, or both.\n ")]):t._e(),t._v(" "),t.aiChatEnabled?e("ai-chat-cta",{staticClass:"top-5",attrs:{"chat-open":t.aiChatOpen,"on-open":t.onOpenAiChat}}):t._e()],1),t._v(" "),e("div",{staticClass:"item-wrapper toggle-section"},[t.marketplaceRfqsEnabled?e("toggle-button",{attrs:{id:"toggle-firms","has-text":!1,value:t.rfq.firmsEnabled,title:"Your Firms"},on:{click:t.toggleFirms}}):e("div",{staticClass:"bold-weight size-text-15px"},[t._v("\n Your Firms\n ")]),t._v(" "),e("hr"),t._v(" "),e("div",{class:{"bottom-10":t.rfq.firmsEnabled,"pill-gray-text":!t.rfq.firmsEnabled}},[t._v("\n Select which law firms should receive this RFP and suggest lawyers at those firms that might be a good fit for the project.\n ")]),t._v(" "),t.rfq.firmsEnabled?e("loading-section",{attrs:{name:"updateSelectedRfqFirms"}},[t.hasSelectedRecipients?e("div",{staticClass:"bottom-30 top-30"},[t._l(t.sortedLawFirmQuotes,(function(s){return e("recipient-item",{key:s.lawFirmId,staticClass:"list-spacing-20",attrs:{rfq:t.rfq,quote:s}})})),t._v(" "),t._l(t.sortedDisabledLawFirmQuotes,(function(s){return e("disabled-recipient-item",{key:s.lawFirmId,staticClass:"list-spacing-20",attrs:{rfq:t.rfq,quote:s}})}))],2):e("div",{staticClass:"padded-container text-center empty-list top-30 bottom-30"},[t._v("\n You have not added any law firms yet\n ")])]):t._e(),t._v(" "),t.rfq.firmsEnabled?e("div",{staticClass:"vertical-center-not-xs"},[e("div",{staticClass:"right-15"},[e("rfq-add-firm",{attrs:{rfq:t.rfq,"available-firms":t.getAvailableFirms}})],1),t._v(" "),t.showRateCompareButton?e("div",{staticClass:"right-15 top-10-xs"},[e("compare-rates-modal",{attrs:{"law-firm-ids":t.lawFirmIds}})],1):t._e(),t._v(" "),t.showReviewCompareButton?e("div",{staticClass:"top-10-xs"},[e("compare-firm-reviews-modal",{attrs:{"law-firm-ids":t.lawFirmIds}})],1):t._e(),t._v(" "),t.showListImport?e("div",{staticClass:"pill-gray-text right-15 top-10-xs"},[t._v("\n or\n ")]):t._e(),t._v(" "),t.showListImport?e("div",{class:["top-10-xs",{"right-15":t.showSavedSearchButton}]},[e("add-from-list",{attrs:{rfq:t.rfq,"resource-lists":t.resourceLists}})],1):t._e(),t._v(" "),t.showSavedSearchButton?e("div",{staticClass:"pill-gray-text right-15 top-10-xs"},[t._v("\n or\n ")]):t._e(),t._v(" "),t.showSavedSearchButton?e("div",{staticClass:"top-10-xs"},[e("add-from-saved-search",{attrs:{rfq:t.rfq,"saved-searches":t.savedSearches,"on-connect-search":t.onConnectSearch}})],1):t._e()]):t._e()],1),t._v(" "),t.marketplaceRfqsEnabled?e("div",{staticClass:"item-wrapper toggle-section top-20"},[e("div",{staticClass:"row tight-columns vertical-center-not-xs top-40-xs"},[e("div",{staticClass:"col-sm-9 col-lg-10"},[e("toggle-button",{attrs:{id:"toggle-marketplace",value:t.rfq.sentToMarketplace,"has-text":!1,title:"Priori\u2019s Marketplace Network","sub-title":"(Recommended)"},on:{click:t.toggleMarketplace}})],1),t._v(" "),e("div",{staticClass:"col-xs-7 col-sm-3 col-lg-2 vertical-center top-20-xs"},[e("svg-icon",{attrs:{name:"marketplace-logo"}})],1)]),t._v(" "),e("hr"),t._v(" "),e("div",{class:{"pill-gray-text":!t.rfq.sentToMarketplace}},[t._v("\n Priori Marketplace connects in-house legal teams with vetted lawyers and other legal providers for projects globally.\n ")])]):t._e()],1)]),t._v(" "),e("div",{staticClass:"d-flex flex-space-between top-30"},[e("button",{staticClass:"bold-weight gap-10 pseudo-link-blue vertical-center blue-text",attrs:{type:"button"},on:{click:t.previous}},[e("svg-icon",{staticClass:"base-icon",attrs:{name:"arrow-left"}}),t._v("Previous")],1),t._v(" "),e("button",{staticClass:"bold-weight gap-10 pseudo-link-blue vertical-center blue-text",attrs:{type:"button"},on:{click:t.next}},[t._v("Continue"),e("svg-icon",{staticClass:"base-icon",attrs:{name:"arrow-right"}})],1)]),t._v(" "),t.stepInvalid&&!t.stepIsValid?e("div",{staticClass:"red-text text-right top-5"},[t._v("\n * Please complete all required fields\n ")]):t._e()])}
1),[],!1,null,"7ccbd8db",null).exports),X=s(42315),tt=s(19294),et=s(64721),st=s(11267),it=s(45946),at=s(22646),rt=s(93368),ot=s(56709),nt=s(94787),lt=s(57411),ct=s(55830),dt={name:"ConfirmQuestionRemovalModal",components:{PrioriModal:c.default},props:{onConfirm:{type:Function,required:!0},onCancel:{type:Function,required:!0}},methods:{dismiss(){this.$refs.modal.closeModal()},confirm(){this.onConfirm(),this.$refs.modal.closeModal()},openModal(){this.$refs.modal.openModal()}}},ut=(0,r.A)(dt,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"modal",attrs:{title:"Confirm Deletion"},on:{"on-modal-close":t.onCancel}},[e("div",{staticClass:"size-text-14px"},[t._v("\n By unchecking this box, you will remove this question from the overview and delete all text previously entered for this question.\n ")]),t._v(" "),e("div",{staticClass:"row tight-columns top-30"},[e("div",{staticClass:"col-sm-4"},[e("button",{staticClass:"nv-button-blue",attrs:{type:"button"},on:{click:t.confirm}},[t._v("Confirm")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.dismiss}},[t._v("Cancel")])])])])}),[],!1,null,null,null).exports,pt={name:"ConfirmDocumentRemovalModal",components:{PrioriModal:c.default},props:{onConfirm:{type:Function,required:!0},onCancel:{type:Function,required:!0}},methods:{dismiss(){this.$refs.modal.closeModal()},confirm(){this.onConfirm(),this.$refs.modal.closeModal()},openModal(){this.$refs.modal.openModal()}}},mt=(0,r.A)(pt,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"modal",attrs:{title:"Confirm Removing Document"},on:{"on-modal-close":t.onCancel}},[e("div",{staticClass:"size-text-14px"},[t._v("\n Are you sure you want to delete this document? This action cannot be undone.\n ")]),t._v(" "),e("div",{staticClass:"row tight-columns top-30"},[e("div",{staticClass:"col-sm-4"},[e("button",{staticClass:"nv-button-blue",attrs:{type:"button"},on:{click:t.confirm}},[t._v("Confirm")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.dismiss}},[t._v("Cancel")])])])])}),[],!1,null,null,null).exports,ht=s(98737),ft=s(19324);var vt=class{static searchByName(t){return ft.A.get("/scout/external_matters/search_by_name.json",{params:{name:t}}).then((t=>t.data))}},bt=s(9891),gt=s(51082),yt={name:"ConnectBmiMatterModal",components:{LoadingButton:ht.default,LoadingSection:S.default,PrioriModal:c.default,SvgIcon:i.default,WarningMessage:bt.default},props:{rfq:{type:Object,required:!0},onConnectExternalMatter:{type:Function,required:!0}},data(){return{name:null,selectedMatter:null,externalMatters:null,isSearching:!1,errorMessage:""}},computed:{bmiNewMatterUrl(){return gt.A.bmiNewMatterUrl},canSearch(){return this.name?.length>2&&!this.isSearching},showResults(){return this.isLoading||null!==this.externalMatters},isLoading(){return u.A.isLoading("externalMatters")}},methods:{search(){this.canSearch&&(u.A.loading("externalMatters"),this.isSearching=!0,this.selectedMatter=null,this.errorMessage="",vt.searchByName(this.name).then((t=>{this.externalMatters=t})).catch((()=>{this.externalMatters=null,this.errorMessage="We encountered an error while attempting the search. Please try again."})).finally((()=>{this.isSearching=!1,u.A.done("externalMatters")})))},selectMatter(t){this.selectedMatter=t},connect(t){return u.A.loading("connectingMatter"),this.onConnectExternalMatter(this.selectedMatter).then((()=>{t()})).catch((t=>{const e=t?.response?.data?.errors||[],s=e.includes("External matter has already been taken");this.errorMessage=s?"The selected external matter is already linked to another RFP or Work Award.":e.join("; ")})).finally((()=>{u.A.done("connectingMatter")}))},reset(){this.externalMatters=null,this.name=null,this.selectedMatter=null,this.errorMessage=""}}},Ct=(s(63794),(0,r.A)(yt,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"modal",attrs:{"modal-size":"md",title:"Connect Billing Matter Request"},on:{"on-modal-close":t.reset},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"primary-btn-blue vertical-center flex-center",attrs:{type:"button"},on:{click:s}},[e("svg-icon",{staticClass:"base-icon smaller right-10",attrs:{name:"new-project"}}),t._v("Connect")],1)]}},{key:"default",fn:function({closeModal:s}){return[e("form",{staticClass:"a-form",attrs:{role:"form",autocomplete:"off",novalidate:""},on:{submit:function(t){t.preventDefault()}}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-7 size-text-15px bold-weight"},[t._v("\n Billing Matter Request Connection\n ")]),t._v(" "),e("div",{staticClass:"col-sm-5 semibold-weight text-right-not-
1xs"},[t.bmiNewMatterUrl?e("a",{attrs:{href:t.bmiNewMatterUrl,target:"_blank",rel:"noopener noreferrer"}},[e("svg-icon",{staticClass:"base-icon smaller blue right-5",attrs:{name:"share"}}),t._v("Create New Request")],1):t._e()])]),t._v(" "),e("hr",{staticClass:"top-5 bottom-10"}),t._v(" "),e("div",{staticClass:"size-text-14px bottom-20"},[t._v("\n Search for a billing matter request below. Enter at least three characters of the external reference name to search.\n ")]),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Search by External Reference Name"},domProps:{value:t.name},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search.apply(null,arguments)},input:function(e){e.target.composing||(t.name=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-sm-4 top-10-xs"},[e("button",{staticClass:"primary-btn-blue vertical-center flex-center",attrs:{type:"button",disabled:!t.canSearch},on:{click:t.search}},[e("svg-icon",{staticClass:"base-icon right-10",attrs:{name:"search"}}),t._v("Search")],1)])]),t._v(" "),t.errorMessage.length?e("div",{staticClass:"error-text top-15"},[e("span",{staticClass:"size-text-13px"},[t._v(t._s(t.errorMessage))])]):t._e(),t._v(" "),t.showResults?e("div",{staticClass:"resource-list gray-border compact top-15"},[e("div",{staticClass:"list-header"},[t._v("\n Results\n ")]),t._v(" "),e("div",{staticClass:"scrollable-list"},[e("loading-section",{class:{"external-matter-loading":t.isLoading},attrs:{name:"externalMatters"}},[t.externalMatters?.length?t._e():e("div",{staticClass:"list-item no-hover gray-text size-text-16px"},[t._v("\n No Results\n ")]),t._v(" "),t._l(t.externalMatters,(function(s,i){return e("div",{key:i,class:["list-item",{selected:t.selectedMatter===s}]},[e("div",{staticClass:"row tight-columns vertical-center-not-xs"},[e("div",{staticClass:"col-sm-10"},[e("div",{staticClass:"semibold-weight"},[t._v("\n "+t._s(s.matterName)+"\n ")]),t._v(" "),e("div",{staticClass:"pill-gray-text size-text-12px"},[t._v("\n #"+t._s(s.matterId)+"\n ")])]),t._v(" "),e("div",{staticClass:"col-sm-2 semibold-weight text-right-not-xs"},[s!==t.selectedMatter?e("button",{staticClass:"pseudo-link-blue",attrs:{type:"button"},on:{click:function(e){return t.selectMatter(s)}}},[t._v("Select")]):e("span",{staticClass:"pill-gray-text size-text-11px text-uppercase"},[t._v("Selected")])])])])}))],2)],1)]):t._e(),t._v(" "),t.selectedMatter?e("warning-message",{staticClass:"top-30",attrs:{header:"Note",message:"Once you connect a matter to an RFP, you will not be able to change or remove the connection."}}):t._e(),t._v(" "),e("div",{staticClass:"row tight-columns top-30"},[e("div",{staticClass:"col-sm-4"},[e("loading-button",{attrs:{name:"connectingMatter","lb-disabled":!t.selectedMatter,"lb-class":"nv-button-blue"},on:{"lb-click":function(e){return t.connect(s)}}},[t._v("Connect")])],1),t._v(" "),e("div",{staticClass:"col-sm-3 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:s}},[t._v("Cancel")])])])],1)]}}])})}),[],!1,null,"6cba9378",null)),qt=Ct.exports,wt=s(56573),_t=s(15261),At=s(7975),xt=s(62487),Tt=s(10801),St=s(205),kt=s(32289),Ft=s(44134),It=s(77948),Rt=s(17015),Mt=s(28097),Dt=s(94191);const Lt=["USD","EUR","GBP"];var Pt={name:"StepProjectDetails",components:{FileSelector:X.default,MultiSelectDropdown:tt.default,TagList:m.A,ValidationObserver:_t.Ce,ValidationProvider:_t.LW,FileTag:et.default,CheckmarkCheckbox:st.default,StyledDatePicker:it.default,DropdownSelect:N.default,LoadingSection:S.default,PrioriTooltip:at.default,SvgIcon:i.default,ErrorMessage:rt.default,TextInputVertical:ot.default,WysiwygVertical:nt.default,TypeaheadVertical:d.default,EditableScoutTagsList:lt.A,ConfirmQuestionRemovalModal:ut,ConfirmDocumentRemovalModal:mt,ConnectBmiMatterModal:qt,AiChatCta:V,SuccessMessage:wt.default},mixins:[At.A],props:{rfq:{type:Object,required:!0},dueDateDetails:{type:Object,required:!0},nextStep:{type:Function,required:!0},onUpdateSupportingDocuments:{type:Function,required:!0},onSave:{type:Function,required:!0},onConnectExternalMatter:{type:Function,required:!0},aiChatEnabled:{type:Boolean,default:!1},aiChatOpen:{type:Boolean,default:!1},onOpenAiChat:{type:Function,required:!1}},data(){return{countryState:new ct.A,acceptedExtensions:It.M,limitFrom:this.isPast(this.rfq.dueDate)?new Date(this.rfq.dueDate):new Date(Date.now()+864e5),renderDatePicker:!1,submitAttempted:!1,stepNumber:1,requester:null,currencyRates:[],rfqTags:[],optionalIncludes:{counterpartyDetails:!1,estimatedTimeline:!1,preferredRateStructure:!1,additionalInformation:!1}
1,pendingExcludeKey:null,attachmentPendingRemoval:null,externalMatterSuccessfullyConnected:!1}},computed:{...(0,D.aH)(M.A,{currentClient:"currentUser"}),activeWorkspaceClients(){return this.currentClient.workspace.clients.filter((t=>!t.deactivatedAt))},needsExternalMatter(){return this.hasGoogleIntegration&&!this.rfq.externalMatterId},hasGoogleIntegration(){return this.currentClient.workspace.workspaceIntegrations.includes("google-bmi")},timeZoneOptions(){return xt.A.sortedByDisplayLabel.map((t=>t.displayLabel))},timeZoneDisplay(){return xt.A.displayLabelForRailsName(this.dueDateDetails.timeZone)},hours(){return Tt.A.hours},minutes(){return Tt.A.minutes},displayCurrencyCode(){return this.currentClient.currencyCode},availableCurrencyRates(){return this.currencyRates.length?this.currencyRates:[{currencyCode:this.displayCurrencyCode}]},currencyOptions(){return this.availableCurrencyRates.map((t=>({label:this.currencyLabel(t.currencyCode),value:t.currencyCode}))).sort(((t,e)=>{const s=Lt.indexOf(t.value),i=Lt.indexOf(e.value),a=-1!==s,r=-1!==i;return a&&r?s-i:a?-1:r?1:t.label.localeCompare(e.label)}))},dueDateInTimeZone(){const{date:t,hour:e,minute:s,timeZone:i}=this.dueDateDetails;if(!t||!e||!s||!i)return null;const a=xt.A.railsToTzInfoMap[i],r=this.convertHourTo24(e);return Mt.c9.fromFormat(t,"MM/dd/yyyy",{zone:a}).set({hour:r,minute:parseInt(s,10),second:0,millisecond:0})},showPracticeGroupAccess(){return!(!this.rfq.assignedClientPracticeGroup&&!this.rfq.workspacePracticeGroups?.length)},availablePracticeGroups(){return this.rfq.workspacePracticeGroups.map((t=>t.name))},tagNames(){return(this.rfqTags||[]).map((t=>t.name))},selectedTags(){const t=this.rfq.rfqTagIds||[];return(this.rfqTags||[]).filter((e=>t.includes(e.id)))},selectedTagNames(){return this.selectedTags.map((t=>t.name))},rfqTagNameToIdMap(){return(this.rfqTags||[]).reduce(((t,e)=>(t[e.name]=e.id,t)),{})},hasAttachments(){return this.rfq.supportingDocuments?.length>0},hasDueDate(){return!!this.rfq.dueDate},rfqTypeOptions(){return(0,Rt.oQ)()},requestTypeLocked(){return this.rfq.status&&"draft"!==this.rfq.status},selectedPracticeGroups(){return this.rfq.practiceGroups.map((t=>t.name))},workspacePracticeGroupIdMap(){return this.rfq.workspacePracticeGroups.reduce(((t,e)=>(t[e.name]=e.id,t)),{})},dueDateFieldsAreValid(){return!!this.dueDateInTimeZone&&this.dueDateInTimeZone>=this.tomorrowMidnight},tomorrowMidnight(){const{timeZone:t}=this.dueDateDetails,e=xt.A.railsToTzInfoMap[t];return Mt.c9.now().setZone(e).plus({days:1}).startOf("day")},auctionEnabled(){return this.currentClient.workspace.auctionEnabled},countriesList(){return this.countryState.countries},statesList(){return this.countryState.statesByCountry("United States").map((t=>t.name))},creatorFullName(){return this.rfq.creatorFullName||this.currentClient.fullName}},beforeMount(){this.rfq.currencyCode=this.normalizeCurrencyCode(this.rfq.currencyCode||this.currentClient?.currencyCode||"USD"),this.requester=this.activeWorkspaceClients.find((t=>t.id===this.rfq.requesterId))||this.currentClient,this.rfq.rfqType||(this.rfq.rfqType="rfp",this.rfq.rfqTypeLabel="Request for Proposal (RFP)"),!this.rfq.requesterId&&this.requester?.id&&(this.rfq.requesterId=this.requester.id)},mounted(){this.initializeOptionalIncludes(),this.loadCurrencyRates(),this.loadRfqTags()},methods:{viewAttachment:Dt.T,isAttributeFilledByAI(t){return this.rfq.aiPrefilledFields.includes(t)},getRfq(){return this.rfq},loadRfqTags(){return this.rfq.workspaceRfqTags?.length?(this.rfqTags=(0,y.orderBy)(this.rfq.workspaceRfqTags,"position"),Promise.resolve(this.rfqTags)):kt.A.query().then((t=>{this.rfqTags=(0,y.orderBy)(t,"position")}))},loadCurrencyRates(){return Ft.A.query().then((t=>{this.currencyRates=t||[]}))},addJurisdiction(){this.rfq.rfqJurisdictions||this.$set(this.rfq,"rfqJurisdictions",[]),this.rfq.rfqJurisdictions.push({id:null,country:null,state:null,localKey:`${Date.now()}-${Math.random()}`})},removeJurisdiction(t){if(!this.rfq.rfqJurisdictions?.length)return;const e=this.rfq.rfqJurisdictions.splice(t,1)[0];e?.id?(this.queueJurisdictionDeletion(e.id),this.autosave("rfqJurisdictionsAttributes")):this.autosave("rfqJurisdictionsAttributes")},queueJurisdictionDeletion(t){t&&(this.rfq.rfqJurisdictionsAttributes||this.$set(this.rfq,"rfqJurisdictionsAttributes",[]),this.rfq.rfqJurisdictionsAttributes=(0,St.DK)(this.rfq.rfqJurisdictionsAttributes,t))},deletedJurisdictionAttributes(){return(0,St.i9)(this.rfq.rfqJurisdictions||[],this.rfq.rfqJurisdictionsAttributes||[])},onJurisdictionCountrySelected(t){const e=this.rfq.rfqJurisdictions[t];if(e&&e.country){if(this.hasDuplicateNonUsJurisdictionCountry(t)){e.country="",e.state="";const s=this.$refs[`jurisdictionCountry${t}`],i=Array.isArray(s)?s[0]:s;i?.reset?.();const a=this.$refs[`jurisdictionState${t}`],r=Array.isArray(a)?a[0]:a;return r?.reset?.(),void this.autosave("rfqJurisdictionsAttributes")}if("United States"!==e.country&&e.state){e.state="";const s=this.$refs[`jurisdictionState${t}`],i=Array.isArray(s)?s[0]:s;i?.reset?.()}this.autosave("rfqJurisdictionsAttributes")}},hasDuplicateNonUsJurisdictionCountry(t){return(0,St.G)(this.rfq.rfqJurisdictions||[],t)},jurisdictionCountryOptions(t){return(0,St.g1)(this.rfq.rfqJurisdictions||[],this.countriesList,t)},onJurisdictionStateSelected(t){const e=this.rfq.rfqJurisdictions[t];if(e&&e.country){if("United States"===e.country&&e.state&&!this.jurisdictionStateOptions(t).includes(e.state)){e.state="";const s=this.$refs[`jurisdictionState${t}`],i=Array.isArray(s)?s[0]:s;i?.reset?.()}"United States"===e.country&&this.autosave("rfqJurisdictionsAttributes")}},jurisdictionStateOptions(t){return(0,St.PL)(this.rfq.rfqJurisdictions||[],this.statesList,t)},confirmRemoveAttachment(){if(!this.attachmentPendingRemoval)return;const t=this.attachmentPendingRemoval;this.attachmentPendingRemoval=null,t._destroy=!0,this.onUpdateSupportingDocuments(this.buildAttachmentsFor([t])),this.rfq.supportingDocuments=(0,y.without)(this.rfq.supportingDocuments,t)},cancelRemoveAttachment(){this.attachmentPendingRemoval=null},initializeOptionalIncludes(){Object.keys(this.optionalIncludes).forEac
1h((t=>{this.optionalIncludes[t]=this.hasText(this.rfq[t])}))},hasText(t){return!(!t||!t.toString().trim().length)},wrapperClassForOptional(t){return["bottom-10","question-wrapper",{active:this.optionalIncludes[t]}]},onOptionalIncludeChange(t,e){if(!e)return this.hasText(this.rfq[t])?(this.pendingExcludeKey=t,this.optionalIncludes[t]=!0,void this.$refs.excludeConfirmationModal.openModal()):void(this.optionalIncludes[t]=!1);this.optionalIncludes[t]=!0},confirmExcludeOptional(){const t=this.pendingExcludeKey;t&&(this.rfq[t]="",this.optionalIncludes[t]=!1,this.pendingExcludeKey=null,this.autosave(t))},cancelExcludeOptional(){const t=this.pendingExcludeKey;t&&(this.optionalIncludes[t]=!0),this.pendingExcludeKey=null},autosaveOptionalFields(t=!1){Object.keys(this.optionalIncludes).forEach((e=>{const s=this.hasText(this.rfq[e]);this.optionalIncludes[e]=s,s&&this.autosave(e,t)}))},prepareForStepExit(){this.autosaveOptionalFields(!0)},currencyLabel(t){try{return new Intl.DisplayNames(["en"],{type:"currency"}).of(t)||t}catch{return t}},updateRequesterId(t){this.rfq.requesterId!==t?.id&&(this.rfq.requesterId=t?.id,this.autosave("requesterId"))},normalizeCurrencyCode(t){return t?.toString().toUpperCase()},onCurrencyCodeChange(){const t=this.normalizeCurrencyCode(this.rfq.currencyCode);t&&(this.rfq.currencyCode=t,this.autosave("currencyCode"))},updateRequestType(t){this.requestTypeLocked||(this.rfq.rfqType=t,this.autosave("rfqType"))},autosave(t,e=!1){let s;if(s="dueDate"===t?(0,y.pick)(this.rfq,["id",t,"dueDateTimeZone","aiPrefilledFields"]):(0,y.pick)(this.rfq,["id",t,"aiPrefilledFields"]),"rfqTagIds"===t&&(s.rfqTagsTouched=!0),"rfqJurisdictionsAttributes"===t){const t=(this.rfq.rfqJurisdictions||[]).map((t=>({id:t.id,country:t.country,state:"United States"===t.country?t.state:null}))).filter((t=>this.hasText(t.country))),e=this.deletedJurisdictionAttributes();s.rfqJurisdictionsAttributes=t.concat(e)}e||(s.aiPrefilledFields=s.aiPrefilledFields.filter((e=>e!==t))),this.onSave({rfq:s,step:this.stepNumber,isAutosave:!0})},validate(t=!1){return t||(this.submitAttempted=!0),this.$refs.form.validate(t).then((t=>t&&!this.needsExternalMatter))},isPast(t){return Date.parse(t)<new Date},setDueDate(t){this.dueDateDetails.date=t,this.saveDueDate(),this.renderDatePicker=!1},changeHour(t){this.dueDateDetails.hour=t,this.saveDueDate()},changeMinute(t){this.dueDateDetails.minute=t,this.saveDueDate()},changeTimeZone(t){const e=this.timeZoneNameForDisplayLabel(t);this.dueDateDetails.timeZone=e,this.rfq.dueDateTimeZone=e,this.saveDueDate()},timeZoneNameForDisplayLabel(t){const e=xt.A.sortedByDisplayLabel.find((e=>e.displayLabel===t));return e?.railsName||t},saveDueDate(){this.dueDateFieldsAreValid&&(this.rfq.dueDateTimeZone=this.dueDateDetails.timeZone,this.rfq.dueDate=this.dueDateInTimeZone.toISO(),this.autosave("dueDate"))},convertHourTo24(t){const[e,s]=t.split(" ");let i=parseInt(e,10);return"AM"===s?12===i?0:i:12===i?i:i+12},submitForm(){this.submitAttempted=!0,this.nextStep()},removePracticeGroup(t){const e=this.rfq.practiceGroups.splice(t,1)[0],s=this.rfq.practiceGroupIds.indexOf(e.id);this.rfq.practiceGroupIds.splice(s,1),this.autosave("practiceGroupIds")},selectPracticeGroups(t){const e=[],s=[];t.forEach((t=>{e.push(this.workspacePracticeGroupIdMap[t]),s.push({id:this.workspacePracticeGroupIdMap[t],name:t})})),this.rfq.practiceGroupIds=e,this.rfq.practiceGroups=s,this.autosave("practiceGroupIds")},updateRfqTags(t){const e=[];(t||[]).forEach((t=>{const s=this.rfqTagNameToIdMap[t];s&&e.push(s)})),this.rfq.rfqTagIds=e,this.autosave("rfqTagIds")},removeRfqTag(t){this.rfq.rfqTagIds=(0,y.without)(this.rfq.rfqTagIds||[],t),this.autosave("rfqTagIds")},scoutTagColorClass(t){const e=(this.rfqTags||[]).find((e=>e.name===t))?.color;return["scout-tag d-block fit-content wrap-word",e]},buildAttachmentsFor(t){return!t.length||t[0].id?t:(0,y.map)(t,(t=>({file:t})))},addAttachments(t){u.A.loading("addAttachments"),this.onUpdateSupportingDocuments(this.buildAttachmentsFor(Array.from(t))).then((t=>{this.rfq.supportingDocuments=t})).finally((()=>{u.A.done("addAttachments")}))},removeAttachment(t){this.attachmentPendingRemoval=t,this.$refs.confirmDocumentRemovalModal.openModal()},toggleRenderDatePicker(){this.renderDatePicker=!this.renderDatePicker},openConnectBmiMatterModal(){this.$refs.connectBmiMatterModal.openModal()},connectExternalMatter(t){return this.onConnectExternalMatter(t).then((()=>{this.externalMatterSuccessfullyConnected=!0}))}}},Et=Pt,Qt=(s(29032),(0,r.A)(Et,(function(){var t=this,e=t._self._c;return e("validation-observer",{ref:"form",scopedSlots:t._u([{key:"default",fn:function({handleSubmit:s,invalid:i}
1){return[e("form",{staticClass:"a-form scout",attrs:{name:"form",novalidate:""}},[e("div",{staticClass:"shadowed-box"},[e("div",{staticClass:"box-content extra-padded"},[t.needsExternalMatter?e("div",{staticClass:"blue-panel bottom-30 padding-x-20 padding-y-20"},[e("div",{staticClass:"row vertical-center-not-xs"},[e("div",{staticClass:"col-sm-8 col-md-9"},[e("div",{staticClass:"bold-weight size-text-15px bottom-5"},[t._v("\n Billing Matter Request Lookup"),e("span",{staticClass:"inline-help required"},[t._v(" *")])]),t._v(" "),e("div",{staticClass:"size-text-14px"},[t._v("\n Connect a Google billing matter request to begin an RFP. Details from the request will populate some fields below.\n ")])]),t._v(" "),e("div",{staticClass:"col-sm-4 col-md-3 top-20-xs"},[e("connect-bmi-matter-modal",{attrs:{rfq:t.rfq,"on-connect-external-matter":t.connectExternalMatter}}),t._v(" "),t.submitAttempted?e("div",{staticClass:"error-text semibold-weight top-5"},[t._v("\n * Required\n ")]):t._e()],1)])]):t._e(),t._v(" "),t.externalMatterSuccessfullyConnected?e("success-message",{staticClass:"bottom-30",attrs:{message:"Matter successfully connected! View details in the internal tracking section below."}}):t._e(),t._v(" "),e("div",{staticClass:"blue-underlined-heading bottom-10"},[t._v("\n Details & Timing\n ")]),t._v(" "),e("div",{class:["size-text-14px",t.aiChatEnabled?"bottom-5":"bottom-30"]},[t._v("\n Use these fields to provide baseline project information to law firms.\n ")]),t._v(" "),t.aiChatEnabled?e("ai-chat-cta",{staticClass:"bottom-30",attrs:{"chat-open":t.aiChatOpen,"on-open":t.onOpenAiChat}}):t._e(),t._v(" "),e("div",{staticClass:"row md-columns bottom-20"},[e("div",{class:["col-sm-6",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("name")}]},[e("text-input-vertical",{attrs:{rules:"required",label:"RFP Name"},on:{blur:function(e){return t.autosave("name")}},scopedSlots:t._u([t.isAttributeFilledByAI("name")?{key:"labelDescription",fn:function(){return[e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1)]},proxy:!0}:null],null,!0),model:{value:t.rfq.name,callback:function(e){t.$set(t.rfq,"name",e)},expression:"rfq.name"}})],1),t._v(" "),e("div",{class:["col-sm-6 top-20-xs",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("rfqType")}]},[e("div",{staticClass:"vertical-center bottom-5"},[e("label",{staticClass:"vertical-center gap-5 no-margin",attrs:{for:"request-type"}},[e("span",[t._v("Request Type "),e("span",{staticClass:"inline-help required"},[t._v("*")])]),t._v(" "),t.isAttributeFilledByAI("rfqType")?e("span",[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):t._e()])]),t._v(" "),e("dropdown-select",{attrs:{"id-label":"request-type",options:t.rfqTypeOptions,"initial-label":t.rfq.rfqTypeLabel,"value-key":"value","label-key":"label","allow-null":!1,"is-disabled":t.requestTypeLocked},on:{change:t.updateRequestType},model:{value:t.rfq.rfqType,callback:function(e){t.$set(t.rfq,"rfqType",e)},expression:"rfq.rfqType"}})],1)]),t._v(" "),e("div",{staticClass:"row md-columns bottom-20"},[e("div",{staticClass:"col-sm-6"},[e("label",[t._v("Created By "),e("span",{staticClass:"inline-help required"},[t._v("*")])]),t._v(" "),e("div",{staticClass:"top-2"},[t._v("\n "+t._s(t.creatorFullName)+"\n ")])]),t._v(" "),e("div",{class:["col-sm-6 top-20-xs",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("currencyCode")}]},[e("div",{staticClass:"d-flex vertical-center bottom-5"},[e("label",{staticClass:"no-margin",attrs:{for:"rfq-currency"}},[e("span",[t._v("Currency "),e("span",{staticClass:"inline-help required"},[t._v("*")])]),t._v(" "),e("priori-tooltip",{attrs:{placement:"bottom",text:"Use this field to select a currency for this RFP. All bidders will be required to bid in this currency.","trigger-styles":"tooltip-icon-offset-up-1"}}),t._v(" "),t.isAttributeFilledByAI("currencyCode")?e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):t._e()],1)]),t._v(" "),e("dropdown-select",{attrs:{"id-label":"rfq-currency","allow-null":!1,placeholder:"Select",options:t.currencyOptions,"initial-label":t.currencyLabel(t.rfq.currencyCode||t.displayCurrencyCode),"label-key":"label","value-key":"value"},on:{change:t.onCurrencyCodeChange},model:{value:t.rfq.currencyCode,callback:function(e){t.$set(t.rfq,"currencyCode",e)},expression:"rfq.currencyCode"}})],1)]),t._v(" "),e("div",{staticClass:"row md-columns bottom-20"},[e("div",{class:["col-sm-4",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("dueDate")}]},[e("label",{attrs:{for:"due-date"}},[t._v("\n Responses Due By "),e("span",{staticClass:"inline-help required"},[t._v("*")]),t._v(" "),t.isAttributeFilledByAI("dueDate")?e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):t._e()]),t._v(" "),e("validation-provider",{attrs:{rules:{required:!0,dateIsTomorrow:{minDate:t.dueDateInTimeZone,tomorrowMidnight:t.tomorrowMidnight}},mode:"eager",immediate:t.hasDueDate},scopedSlots:t._u([{key:"default",fn:function({errors:s,failed:i}){return[e("div",{staticClass:"input-group datepicker-group",on:{click:t.toggleRenderDatePicker}},[e("input",{class:["form-control",{"has-error":i}],attrs:{id:"due-date",type:"text",readonly:""},domProps:{value:t.dueDateDetails.date}}),t._v(" "),e("div",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-default",attrs:{type:"button"}},[e("svg-icon",{staticClass:"base-icon button-icon",attrs:{name:"calendar"}})],1)])]),t._v(" "),s.length&&!t.renderDatePicker?e("div",{staticClass:"error-text top-5"},[e("error-message",{attrs:{errors:s}})],1):t._e()]}}],null,!0)}),t._v(" "),t.renderDatePicker?e("styled-date-picker",{staticClass:"styled-date-picker top-
15",attrs:{"limit-from":t.limitFrom,date:t.dueDateDetails.date},on:{input:t.setDueDate}}):t._e()],1),t._v(" "),e("div",{class:["col-sm-2 top-20-xs",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("dueDate")}]},[e("validation-provider",{attrs:{rules:"required",mode:t.passiveAggressive},scopedSlots:t._u([{key:"default",fn:function({errors:s}){return[e("dropdown-select",{ref:"hour",attrs:{"id-label":"detail-hour",options:t.hours,"initial-label":t.dueDateDetails.hour,required:!0,"allow-null":!1,"value-key":"hour","label-key":"hour",label:"Hour",placeholder:"Select",invalid:s.length>0,"show-ai-icon":t.isAttributeFilledByAI("dueDate")},on:{change:t.changeHour},model:{value:t.dueDateDetails.hour,callback:function(e){t.$set(t.dueDateDetails,"hour",e)},expression:"dueDateDetails.hour"}}),t._v(" "),s.length?e("div",{staticClass:"error-text top-5"},[e("error-message",{attrs:{errors:s}})],1):t._e()]}}],null,!0)})],1),t._v(" "),e("div",{class:["col-sm-2 top-20-xs",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("dueDate")}]},[e("validation-provider",{attrs:{rules:"required",mode:t.passiveAggressive},scopedSlots:t._u([{key:"default",fn:function({errors:s}){return[e("dropdown-select",{ref:"minute",attrs:{"id-label":"detail-minute",options:t.minutes,"initial-label":t.dueDateDetails.minute,required:!0,"allow-null":!1,"value-key":"minute","label-key":"minute",label:"Minute",placeholder:"Select",invalid:s.length>0,"show-ai-icon":t.isAttributeFilledByAI("dueDate")},on:{change:t.changeMinute},model:{value:t.dueDateDetails.minute,callback:function(e){t.$set(t.dueDateDetails,"minute",e)},expression:"dueDateDetails.minute"}}),t._v(" "),s.length?e("div",{staticClass:"error-text top-5"},[e("error-message",{attrs:{errors:s}})],1):t._e()]}}],null,!0)})],1),t._v(" "),e("div",{class:["col-sm-4 top-20-xs",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("dueDate")}]},[e("typeahead-vertical",{attrs:{id:"detail-time-zone","input-name":"detailTimeZone",label:"Time Zone","initial-value":t.timeZoneDisplay,value:t.timeZoneDisplay,options:t.timeZoneOptions,"force-select":!0,rules:"required"},on:{input:t.changeTimeZone}})],1)]),t._v(" "),e("div",{class:["bottom-30",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("rfqJurisdictions")}]},[e("label",[t._v("\n Jurisdiction\n "),t.isAttributeFilledByAI("rfqJurisdictions")?e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):t._e()]),t._v(" "),t._l(t.rfq.rfqJurisdictions,(function(s,i){return e("div",{key:s.localKey||s.id||i,staticClass:"row md-columns bottom-10"},[e("div",{staticClass:"col-sm-6"},[e("typeahead-vertical",{ref:`jurisdictionCountry${i}`,refInFor:!0,attrs:{id:`jurisdiction-country-${i}`,"input-name":`jurisdictionCountry${i}`,placeholder:"Country",options:t.jurisdictionCountryOptions(i),"force-select":!0,"hide-icon":!0,"initial-value":s.country,rules:{required:!0,valueInOptions:{options:t.jurisdictionCountryOptions(i)}}},on:{input:()=>t.onJurisdictionCountrySelected(i)},model:{value:s.country,callback:function(e){t.$set(s,"country",e)},expression:"jurisdiction.country"}})],1),t._v(" "),e("div",{staticClass:"col-sm-6 top-10-xs vertical-center"},[e("div",{staticClass:"flex-1"},[e("typeahead-vertical",{ref:`jurisdictionState${i}`,refInFor:!0,attrs:{id:`jurisdiction-state-${i}`,disabled:"United States"!==s.country,"force-select":!0,"hide-icon":!0,options:"United States"===s.country?t.jurisdictionStateOptions(i):[],placeholder:"United States"===s.country?"State":"N/A",rules:"United States"===s.country?{required:!0,valueInOptions:{options:t.jurisdictionStateOptions(i)}}:null,"initial-value":s.state},on:{input:()=>t.onJurisdictionStateSelected(i)},model:{value:s.state,callback:function(e){t.$set(s,"state",e)},expression:"jurisdiction.state"}})],1),t._v(" "),e("div",{staticClass:"minus-icon clickable left-15",on:{click:function(e){return t.removeJurisdiction(i)}}},[e("svg-icon",{staticClass:"base-icon",attrs:{name:"minus-circle"}})],1)])])})),t._v(" "),e("div",[e("button",{staticClass:"pseudo-link-blue bold-weight size-text-13px",attrs:{type:"button"},on:{click:t.addJurisdiction}},[t._v("+ Add Jurisdiction")])])],2),t._v(" "),t.auctionEnabled?e("div",[e("checkmark-checkbox",{staticClass:"vertical medium-large fit-content",attrs:{id:"live-auction",name:"liveAuction",label:"Notify participants that an auction will be scheduled in connection with this RFP"},on:{input:function(e){return t.autosave("liveAuctionPlanned")}},model:{value:t.rfq.liveAuctionPlanned,callback:function(e){t.$set(t.rfq,"liveAuctionPlanned",e)},expression:"rfq.liveAuctionPlanned"}})],1):t._e(),t._v(" "),e("div",{staticClass:"top-30 internal-tracking"},[e("div",{staticClass:"blue-underlined-heading bottom-10"},[t._v("\n Internal Tracking\n ")]),t._v(" "),e("div",{staticClass:"size-text-14px bottom-10"},[t._v("\n Use the internal fields below to tag and organize RFP information for your team. No internal information will be visible to law firms.\n ")]),t._v(" "),t.hasGoogleIntegration?e("div",{staticClass:"row md-columns bottom-10"},[e("div",{staticClass:"col-sm-6 top-20"},[e("label",{staticClass:"tight-lines"},[t._v("External Reference")]),t._v(" "),e("div",[e("span",{staticClass:"right-5"},[t._v(t._s(t.rfq.bmiMatter?.matterName||"\u2014"))]),t._v(" "),e("span",{staticClass:"pill-gray-text"},[t._v(t._s(t.rfq.bmiMatter?.externalMatterId?`#${t.rfq.bmiMatter.externalMatterId}`:""))])])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20"},[e("label",{staticClass:"tight-lines"},[t._v("Selection Workflow")]),t._v(" "),e("div",[t._v("\n "+t._s(t.rfq.bmiMatter?.firmSelectionType||"\u2014")+"\n ")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20"},[e("label",{staticClass:"tight-lines"},[t._v("Estimated Total Budget")]),t._v(" "),e("div",[t._v("\n "+t._s(t.rfq.bmiMatter?.expectedMatterBudget||"\u2014")+"\n ")])])]):t._e(),t._v(" "),e("div",{staticClass:"row md-columns"},[e("div",{class:["col-sm-6 top-20",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("practiceArea")}]},[e("div",{staticClass:"bottom-5 vertical-center"},[e("label",{staticClass:"no-margin",attrs:{for:"practice-area"}},[t._v("\n Practice Area\n\n "),e("priori-tooltip",{attrs:{placement:"bottom",text:"This internal-only field will be used to classify your RFPs by practice area for analysis on your RFP Analytics dashboards.","trigger-styles":"tooltip-icon-offset-up-1"}}),t._v(" "),t.isAttributeFilledByAI("practiceArea")?e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):t._e()],1)]),t._v(" "),e("dropdown-select",{ref:"dropdown",attrs:{"allow-null":!0,"id-label":"practice-area",placeholder:"Select",options:t.rfq.workspacePracticeAreas,"initial-label":t.rfq.practiceArea,"value-key":"name","label-key":"name","show-ai-icon":t.isAttributeFilledByAI("practiceArea")},on:{blur:function(e){return t.autosave("practiceArea")}},model:{value:t.rfq.practiceArea,callback:function(e){t.$set(t.rfq,"practiceArea",e)},expression:"rfq.practiceArea"}})],1),t._v(" "),t.showPracticeGroupAccess?e("div",{staticClass:"col-sm-6 top-20"},[e("div",{staticClass:"bottom-5 d-flex vertical-center"},[e("label",{staticClass:"no-margin",attrs:{for:"practice-group"}},[t._v("\n Practice Group Access\n\n "),e("priori-tooltip",{attrs:{placement:"bottom",text:"Selecting a Practice Group within the Practice Group Access field allows users who are permissioned for that practice group to access this project. Users granted access to this project will also receive notifications.","trigger-styles":"tooltip-icon-offset-up-1"}})],1)]),t._v(" "),!t.rfq.assignedClientPracticeGroup&&t.rfq.workspacePracticeGroups?.length?e("multi-select-dropdown",{attrs:{value:t.selectedPracticeGroups,placeholder:"Select",options:t.availablePracticeGroups},on:{change:t.selectPracticeGroups}}):t._e(),t._v(" "),t.rfq.practiceGroups?.length?e("tag-list",{staticClass:"top-10",attrs:{tags:t.rfq.practiceGroups,"on-remove":t.removePracticeGroup}}):t._e(),t._v(" "),t.rfq.assignedClientPracticeGroup?e("input",{directives:[{name:"model",rawName:"v-model",value:t.rfq.assignedClientPracticeGroup,expression:"rfq.assignedClientPracticeGroup"}],staticClass:"form-control",attrs:{id:"practice-group",type:"text",disabled:""},domProps:{value:t.rfq.assignedClientPracticeGroup},on:{input:function(e){e.target.composing||t.$set(t.rfq,"assignedClientPracticeGroup",e.target.value)}}}):t._e()],1):t._e(),t._v(" "),e("div",{class:["col-sm-6 top-20",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("rfqTagIds")}]},[e("div",{staticClass:"bottom-5 vertical-center"},[e("label",{staticClass:"no-margin",attrs:{for:"rfq-tags"}},[t._v("RFP Tags\n "),e("priori-tooltip",{attrs:{placement:"bottom",text:"Use this internal-only field to categorize this project for your team.","trigger-styles":"tooltip-icon-offset-up-1"}}),t._v(" "),t.isAttributeFilledByAI("rfqTagIds")?e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):t._e()],1)]),t._v(" "),e("validation-provider",{ref:"rfqTags",scopedSlots:t._u([{key:"default",fn:function({errors:s}){return[e("multi-select-dropdown",{attrs:{value:t.selectedTagNames,placeholder:"Select",options:t.tagNames,"show-typeahead":!0,"option-class-fn":t.scoutTagColorClass},on:{change:t.updateRfqTags}}),t._v(" "),e("div",{class:{"top-15":t.selectedTags.length>0}},[e("editable-scout-tags-list",{attrs:{"on-remove-tag":t.removeRfqTag,"scout-tags":t.selectedTags}}),t._v(" "),s.length?e("div",{staticClass:"error-text top-10"},[e("error-message",{attrs:{errors:s}})],1):t._e()],1)]}}],null,!0)})],1),t._v(" "),e("div",{class:["col-sm-6 top-20",{"ai-prefilled-wrapper":t.isAttributeFilledByAI("requester")}]},[e("label",{attrs:{for:"requester-id"}},[t._v("Requested By\n "),e("span",{staticClass:"inline-help required"}
1,[t._v("*")]),t._v(" "),t.isAttributeFilledByAI("requester")?e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon ai-prefill-icon",attrs:{name:"sparkle"}})],1):t._e()]),t._v(" "),e("typeahead-vertical",{attrs:{id:"requester-id",placeholder:"Enter name",options:t.activeWorkspaceClients,"option-label-key":"fullName",rules:"required","force-select":!0},on:{input:t.updateRequesterId},model:{value:t.requester,callback:function(e){t.requester=e},expression:"requester"}})],1)])])],1)]),t._v(" "),e("div",{staticClass:"shadowed-box top-30"},[e("div",{staticClass:"box-content extra-padded"},[e("div",{staticClass:"blue-underlined-heading bottom-10"},[t._v("\n Overview\n ")]),t._v(" "),e("div",{staticClass:"size-text-14px bottom-30"},[t._v("\n Use these fields to provide invited law firms relevant information about this project.\n ")]),t._v(" "),e("div",{staticClass:"sub-header text-uppercase bottom-15"},[t._v("\n Required Questions\n ")]),t._v(" "),e("div",{staticClass:"bottom-30 question-wrapper active"},[e("wysiwyg-vertical",{class:{"ai-prefilled-wrapper":t.isAttributeFilledByAI("descriptionOfWork")},attrs:{label:"Description of Work and Matter Assumptions",name:"description-of-work","current-value":t.rfq.descriptionOfWork,"edit-mode":!0,required:!0,"min-height":"110px","show-ai-icon":t.isAttributeFilledByAI("descriptionOfWork")},on:{input:function(e){t.rfq.descriptionOfWork=e},blur:function(e){return t.autosave("descriptionOfWork")}}})],1),t._v(" "),e("div",{staticClass:"sub-header text-uppercase bottom-15"},[t._v("\n Optional Questions\n ")]),t._v(" "),e("confirm-question-removal-modal",{ref:"excludeConfirmationModal",attrs:{"on-confirm":t.confirmExcludeOptional,"on-cancel":t.cancelExcludeOptional}}),t._v(" "),e("div",{class:t.wrapperClassForOptional("counterpartyDetails")},[e("wysiwyg-vertical",{class:{"ai-prefilled-wrapper":t.isAttributeFilledByAI("counterpartyDetails")},attrs:{label:"Any relevant opposing party/counterparty details, including counsel",name:"counterparty-details","current-value":t.rfq.counterpartyDetails,"edit-mode":!0,novalidate:!0,"min-height":"110px","show-include-checkbox":!0,include:t.optionalIncludes.counterpartyDetails,"show-ai-icon":t.isAttributeFilledByAI("counterpartyDetails")},on:{"include-change":e=>t.onOptionalIncludeChange("counterpartyDetails",e),input:function(e){t.rfq.counterpartyDetails=e},blur:function(e){return t.autosave("counterpartyDetails")}}})],1),t._v(" "),e("div",{class:t.wrapperClassForOptional("estimatedTimeline")},[e("wysiwyg-vertical",{class:{"ai-prefilled-wrapper":t.isAttributeFilledByAI("estimatedTimeline")},attrs:{label:"Estimated Timeline",name:"estimated-timeline","current-value":t.rfq.estimatedTimeline,"edit-mode":!0,novalidate:!0,"min-height":"110px","show-include-checkbox":!0,include:t.optionalIncludes.estimatedTimeline,"show-ai-icon":t.isAttributeFilledByAI("estimatedTimeline")},on:{"include-change":e=>t.onOptionalIncludeChange("estimatedTimeline",e),input:function(e){t.rfq.estimatedTimeline=e},blur:function(e){return t.autosave("estimatedTimeline")}}})],1),t._v(" "),t.rfq.preferredRateStructure?e("div",{class:t.wrapperClassForOptional("preferredRateStructure")},[e("wysiwyg-vertical",{attrs:{label:"Preferred Rate Structure",name:"preferred-rate-structure","current-value":t.rfq.preferredRateStructure,"edit-mode":!0,novalidate:!0,"min-height":"110px","show-include-checkbox":!0,include:t.optionalIncludes.preferredRateStructure},on:{"include-change":e=>t.onOptionalIncludeChange("preferredRateStructure",e),input:function(e){t.rfq.preferredRateStructure=e},blur:function(e){return t.autosave("preferredRateStructure")}}})],1):t._e(),t._v(" "),e("div",{class:t.wrapperClassForOptional("additionalInformation")},[e("wysiwyg-vertical",{class:{"ai-prefilled-wrapper":t.isAttributeFilledByAI("additionalInformation")},attrs:{label:"Additional Information",name:"additional-information","current-value":t.rfq.additionalInformation,"edit-mode":!0,novalidate:!0,"min-height":"110px","show-include-checkbox":!0,include:t.optionalIncludes.additionalInformation,"show-ai-icon":t.isAttributeFilledByAI("additionalInformation")},on:{"include-change":e=>t.onOptionalIncludeChange("additionalInformation",e),input:function(e){t.rfq.additionalInformation=e},blur:function(e){return t.autosave("additionalInformation")}}})],1),t._v(" "),e("div",{staticClass:"top-30"},[e("file-selector",{attrs:{accept:t.acceptedExtensions,"max-size":50,multiple:!0,"inline-error":!0},on:{change:t.addAttachments}},[e("span",{staticClass:"pseudo-link-blue bold-weight cursor-pointer"},[t._v("+ Add "+t._s(t.hasAttachments?"Another Document":"Documents"))])])],1
1),t._v(" "),e("confirm-document-removal-modal",{ref:"confirmDocumentRemovalModal",attrs:{"on-confirm":t.confirmRemoveAttachment,"on-cancel":t.cancelRemoveAttachment}}),t._v(" "),e("div",{staticClass:"top-5"},[e("loading-section",{attrs:{name:"addAttachments"}},[t.hasAttachments?e("div",{staticClass:"file-list top-20-xs"},t._l(t.rfq.supportingDocuments,(function(s){return e("div",{staticClass:"file-item"},[e("file-tag",{attrs:{file:s,"view-link":!0,"on-view":t.viewAttachment,"on-delete":t.removeAttachment}})],1)})),0):t._e()])],1)],1)]),t._v(" "),e("div",{staticClass:"d-flex flex-end top-30"},[e("button",{staticClass:"bold-weight gap-10 pseudo-link-blue vertical-center blue-text",attrs:{type:"button"},on:{click:t.submitForm}},[t._v("Continue"),e("svg-icon",{staticClass:"base-icon",attrs:{name:"arrow-right"}})],1)]),t._v(" "),t.submitAttempted&&i?e("div",{staticClass:"red-text text-right top-5"},[t._v("\n * Please complete all required fields\n ")]):t._e()])]}}])})}),[],!1,null,"0502c31a",null).exports),Bt=s(79010),Nt=s(62966),Gt=s(42409),Ot={name:"ConflictsCheckEditModal",components:{PrioriModal:c.default,WysiwygVertical:nt.default,ValidationObserver:_t.Ce},props:{rfq:{type:Object,required:!0},onSave:{type:Function,required:!0}},data(){return{form:{conflictsCheckText:this.rfq.conflictsCheckText||""},editorKey:0}},methods:{initForm(t){this.form.conflictsCheckText=this.rfq.conflictsCheckText||"",this.editorKey+=1,t()},saveConflictsCheck(){this.onSave(this.form.conflictsCheckText.trim()),this.dismissModal()},dismissModal(){this.$refs.conflictsCheckModal.closeModal(),this.clearForm()},clearForm(){this.form.conflictsCheckText=""}}},$t=(0,r.A)(Ot,(function(){var t=this,e=t._self._c;return e("div",[e("validation-observer",{scopedSlots:t._u([{key:"default",fn:function({validate:s,handleSubmit:i,invalid:a,failed:r}){return[e("priori-modal",{ref:"conflictsCheckModal",attrs:{title:"Required Conflicts Check","modal-size":"md"},on:{"on-modal-close":t.clearForm},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[t._t("modal-trigger",(function(){return[e("button",{staticClass:"pseudo-link-blue bold-weight size-text-13px",attrs:{type:"button"},on:{click:function(e){return t.initForm(s)}}},[t._v("+ Require Check")])]}),{openModal:()=>t.initForm(s)})]}}],null,!0)},[t._v(" "),e("div",{staticClass:"size-text-15px bold-weight"},[t._v("\n Conflicts Check\n ")]),t._v(" "),e("div",{staticClass:"top-5 bottom-10"},[e("hr",{staticClass:"kenny-hr no-margin"})]),t._v(" "),e("div",{staticClass:"size-text-14px bottom-20"},[t._v("\n Requiring a conflicts check prevents recipient law firms from seeing RFP information (other than the RFP title) prior to confirming that conflicts are clear.\n ")]),t._v(" "),e("div",{staticClass:"size-text-14px bottom-20"},[t._v("\n Law firms will use the information you provide below to determine whether there is a conflict.\n ")]),t._v(" "),e("form",{staticClass:"a-form",attrs:{role:"form",novalidate:""},on:{submit:function(t){t.preventDefault()}}},[e("div",{staticClass:"bottom-20"},[e("wysiwyg-vertical",{key:t.editorKey,attrs:{label:"Input Conflicts Check Information",name:"conflicts-check-information","current-value":t.form.conflictsCheckText,"edit-mode":!0,required:!0,"min-height":"110px"},on:{input:function(e){t.form.conflictsCheckText=e}}})],1),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-4"},[e("button",{staticClass:"primary-btn-blue",attrs:{type:"button"},on:{click:function(e){return i(t.saveConflictsCheck)}}},[t._v("Save")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-20-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.dismissModal}},[t._v("Cancel")])])])])])]}}])})],1)}),[],!1,null,null,null).exports,zt=s(84835),jt=s(32465),Ut={name:"ConflictsCheck",components:{SvgIcon:i.default,ConflictsCheckEditModal:$t,RichTextDisplay:jt.default},directives:{clampLines:zt.A},props:{rfq:{type:Object,required:!0},onSave:{type:Function,required:!0},onRemove:{type:Function,required:!0}},data(){return{hasOverflow:!1,isExpanded:!1}},computed:{clampCount(){return this.isExpanded?0:3},conflictsCheckText(){return this.rfq.conflictsCheckText||""}},watch:{conflictsCheckText(){this.isExpanded=!1,this.checkOverflow()}},mounted(){this.scheduleOverflowCheck(),window.addEventListener("resize",this.checkOverflow)},updated(){this.scheduleOverflowCheck()},beforeDestroy(){window.removeEventListener("resize",this.checkOverflow)},methods:{toggleExpanded(){this.isExpanded=!this.isExpanded,this.checkOverflow()},scheduleOverflowCheck(){this.$nextTick((()=>{window.requestAnimationFrame((()=>{this.checkOverflow()}))}))},checkOverflow(){this.$nextTick((()=>{const t=this.$refs.conflictsText;
1t?.clampLinesHandler&&(t.clampLinesHandler(),this.hasOverflow=this.isExpanded||t.classList.contains("overflowing"))}))},handleSave(t){this.onSave(t),this.isExpanded=!1,this.checkOverflow()}}},Vt=(s(5116),(0,r.A)(Ut,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex conflicts-container gap-15"},[e("div",[e("svg-icon",{staticClass:"base-icon",attrs:{name:"added-item"}})],1),t._v(" "),e("div",{staticClass:"flex-1"},[e("div",{staticClass:"bold-weight tight-lines bottom-5"},[t._v("\n Conflicts Check\n ")]),t._v(" "),e("div",{staticClass:"tight-lines"},[e("div",{directives:[{name:"clamp-lines",rawName:"v-clamp-lines",value:t.clampCount,expression:"clampCount"}],ref:"conflictsText",staticClass:"tight-lines"},[e("rich-text-display",{attrs:{content:t.rfq.conflictsCheckText}})],1),t._v(" "),t.hasOverflow?e("div",{staticClass:"top-5"},[e("button",{staticClass:"pseudo-link-blue semibold-weight",attrs:{type:"button"},on:{click:t.toggleExpanded}},[t._v(t._s(t.isExpanded?"Show less":"Show more"))])]):t._e()])]),t._v(" "),e("div",{staticClass:"d-flex gap-20"},[e("conflicts-check-edit-modal",{attrs:{rfq:t.rfq,"on-save":t.handleSave},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:t}){return[e("button",{staticClass:"pseudo-link-blue",attrs:{type:"button"},on:{click:t}},[e("svg-icon",{staticClass:"base-icon blue-4-fill",attrs:{name:"pencil"}})],1)]}}])}),t._v(" "),e("div",[e("button",{staticClass:"pseudo-link-blue",attrs:{type:"button"},on:{click:t.onRemove}},[e("svg-icon",{staticClass:"base-icon blue-4-fill",attrs:{name:"trash"}})],1)])],1)])}),[],!1,null,"63835d14",null).exports),Jt={name:"ConfirmDeleteConflictsCheckModal",components:{PrioriModal:c.default},props:{onConfirm:{type:Function,required:!0}},methods:{openModal(){this.$refs.modal.openModal()},close(){this.$refs.modal.closeModal()},confirm(){this.onConfirm(),this.close()}}},Ht=(0,r.A)(Jt,(function(){var t=this,e=t._self._c;return e("priori-modal",{ref:"modal",attrs:{title:"Confirm Deleting Conflicts Check"},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"bottom-30 size-text-14px"},[t._v("\n Please confirm deletion.\n "),e("br"),e("br"),t._v("\n Deleting a conflicts check will delete any attached documents. This action cannot be undone.\n ")]),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-4"},[e("button",{staticClass:"primary-btn-blue",attrs:{type:"button"},on:{click:t.confirm}},[t._v("Confirm")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-10-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.close}},[t._v("Cancel")])])])]},proxy:!0}])})}),[],!1,null,null,null).exports,Zt=s(67192),Wt=s(11327),Kt=s(58042),Yt=s(83340),Xt=s(28829),te={name:"StepQuestions",components:{RfqTemplateQuestions:Bt.A,DropdownSelect:N.default,PrioriModal:c.default,SvgIcon:i.default,RfqInstructions:Nt.A,RfqInstructionsModal:Gt.A,ConflictsCheck:Vt,ConflictsCheckEditModal:$t,ConfirmDeleteConflictsCheckModal:Ht,AiChatCta:V,FileSelector:X.default,DocumentsSection:Zt.A,LoadingSection:S.default},props:{rfq:{type:Object,required:!0},prevStep:{type:Function,required:!0},nextStep:{type:Function,required:!0},onSave:{type:Function,required:!0},aiChatEnabled:{type:Boolean,default:!1},aiChatOpen:{type:Boolean,default:!1},onOpenAiChat:{type:Function,required:!1}},data(){return{currentTemplateId:this.rfq.baseQuestionTemplateId||null,currentTemplateName:null,previousTemplateId:null,justSwitchedTemplates:!0,localQuestionGroups:[],stepNumber:2,submitAttempted:!1,useRfqTemplateStore:(0,Kt.A)(),acceptedExtensions:It.M,loadedTemplates:{},hasFinishedInitialTemplateLoad:!1,unsubscribeTemplateStore:null,unsubscribeQuestionActions:null,questionAutosaveQueued:!1}},computed:{...(0,D.aH)(M.A,{user:"currentUser"}),...(0,D.aH)(Kt.A,{storeTemplate:"rfqTemplate",rfqTemplates:"rfqTemplates"}),hasSelectedTemplate(){return null!==this.currentTemplateId||this.rfq.questionGroups&&this.rfq.questionGroups.length>0},currentUserIsAdmin(){return this.user?.admin},showAdditionalQuestionInfo(){return null!==this.currentTemplateId||this.localQuestionGroups.length>0},formInvalid(){return!(this.rfq.questionGroups&&this.rfq.questionGroups.length>0)},conflictsCheckEnabled(){return!(0,y.isEmpty)(this.rfq.conflictsCheckText?.trim())},rfqDocuments(){return this.rfq.documentsAttributes?.filter((t=>!t._destroy))||[]},conflictsCheckDocuments(){return this.rfq.conflictsCheckDocumentsAttributes?.filter((t=>!t._destroy))||[]},hasDocuments(){return!(0,y.isEmpty)(this.rfqDocuments)},hasInstructions(){return!(0,y.isEmpty)(this.rfq.instructions?.trim?.())},hasDraftContent(){return this.localQuestionGroups.length>0||(this.rfq.questionGroups||[]).length>0||this.hasInstructions||this.hasDocuments},hasConflictsCheckDocuments(){return this.conflictsCheckDocuments.length>0},isTemplateLoading(){return u.A.isLoading("templateContent")},rfqQuestionEditorPolicy(){return Xt.o}},watch:{"rfq.baseQuestionTemplateId":{handler(t){t&&t!==this.currentTemplateId&&(this.currentTemplateId=t,this.previousTemplateId=this.currentTemplateId,this.currentTemplateName=this.loadedTemplates[this.currentTemplateId]?.name||this.rfqTemplates.find((t=>t&&t.id===this.currentTemplateId))?.name)}
1}},mounted(){this.fetchTemplates().then((t=>{this.setTemplates(structuredClone(t.templates)),this.loadTemplateAndInitialize(this.currentTemplateId)})).then((()=>{this.unsubscribeTemplateStore=this.useRfqTemplateStore.$subscribe((()=>{this.updateLocalFromTemplateChange()})),this.unsubscribeQuestionActions=this.useRfqTemplateStore.$onAction((({name:t,after:e})=>{this.isQuestionEditAction(t)&&e((()=>this.scheduleQuestionAutosave()))}))})).finally((()=>{this.hasFinishedInitialTemplateLoad=!0}))},beforeDestroy(){this.unsubscribeTemplateStore&&this.unsubscribeTemplateStore(),this.unsubscribeQuestionActions&&this.unsubscribeQuestionActions()},methods:{getRfq(){return this.rfq},...(0,D.i0)(Kt.A,["setTemplates","setRfqGroupTemplates","setSelectedTemplateByName","setSelectedTemplateById"]),fetchTemplates(){return Wt.A.query({view:"base",all_templates:!0})},fetchFullTemplate(t){return this.loadedTemplates[t]?Promise.resolve(this.loadedTemplates[t]):(u.A.loading("templateContent"),Wt.A.get({id:t,view:"show"}).then((e=>{const s={...e,questionGroupTemplatesAttributes:this.normalizeQuestionGroupsForTemplateEditor(e.questionGroupTemplatesAttributes||[])};return this.loadedTemplates[t]=s,s})).finally((()=>{u.A.done("templateContent")})))},loadTemplateAndInitialize(t){t&&this.fetchFullTemplate(t).then((()=>{this.initializeQuestionGroups()}))},openModal(){this.$refs.modal.openModal()},formIsValid(){return this.rfq.questionGroups&&this.rfq.questionGroups.length>0},validate(t=!1){return t||this.didAttemptSubmit(),new Promise((t=>{t(this.formIsValid())}))},didAttemptSubmit(){this.submitAttempted=!0},updateLocalFromTemplateChange(){const t=this.normalizeQuestionGroupsForTemplateEditor(this.storeTemplate.questionGroupTemplatesAttributes||[]),e=this.localQuestionGroups.length>0||(this.rfq.questionGroups||[]).length>0;if(!this.hasFinishedInitialTemplateLoad&&0===t.length&&e)return;const s=this.buildQuestionGroupsAttributes(t);this.localQuestionGroups=this.justSwitchedTemplates?[...s]:this.preservePendingDeletions(s,this.localQuestionGroups),this.$set(this.rfq,"questionGroups",this.localQuestionGroups),this.hasSelectedTemplate&&!this.justSwitchedTemplates||(this.justSwitchedTemplates=!1)},preservePendingDeletions(t,e){const s=new Set,i=new Set;return(e||[]).forEach((t=>{t._destroy&&null!=t.id&&s.add(String(t.id)),(t.questionTemplatesAttributes||[]).forEach((t=>{t._destroy&&null!=t.id&&i.add(String(t.id))}))})),0===s.size&&0===i.size?[...t]:t.map((t=>{const e=(t.questionTemplatesAttributes||[]).map((t=>!t._destroy&&null!=t.id&&i.has(String(t.id))?{...t,_destroy:!0}:t));return!t._destroy&&null!=t.id&&s.has(String(t.id))?{...t,_destroy:!0,questionTemplatesAttributes:e}:{...t,questionTemplatesAttributes:e}}))},buildQuestionGroupsAttributes(t){return t.map((t=>({...t,documentsAttributes:this.buildRFQDocumentsAttributes(t.documentsAttributes||[])})))},buildRFQDocumentsAttributes(t=[]){return t.map((t=>{const{name:e,url:s,file:i,id:a,klass:r}=t,o="Scout::RFQTemplateDocument"===r?"originalRfqTemplateDocumentId":"originalRfqDocumentId";return i instanceof File||"Scout::RFQDocument"===r||t[o]?t:{name:e,url:s,klass:r,[o]:a}}))},sectionHasNoQuestions(t){return 0===(t?.questionTemplatesAttributes??[]).filter((t=>!t._destroy)).length},pruneEmptySections(t){for(let e=(t=(0,y.orderBy)(t,"position")).length-1;e>=0;e--){const s=t[e];this.sectionHasNoQuestions(s)&&(s.id?t.splice(e,1,{...s,_destroy:!0,position:null}):t.splice(e,1))}return[...t.filter((t=>!t._destroy)).map(((t,e)=>({...t,position:e+1}))),...t.filter((t=>t._destroy))]},initializeQuestionGroups(){this.previousTemplateId=this.currentTemplateId,this.rfq.questionGroups&&this.rfq.questionGroups.length>0&&(this.localQuestionGroups=this.formatRFQQuestionGroupsForTemplates(this.rfq.questionGroups),this.setRfqGroupTemplates(this.localQuestionGroups))},normalizeQuestionGroupsForTemplateEditor(t=[]){return(0,Yt.vV)(t.map((t=>{const e=t.questionTemplatesAttributes||t.questionsAttributes||t.questions||[];return{...t,questionTemplatesAttributes:e}})))},getCurrentTemplateName(){let t="\u2014";if(null!==this.currentTemplateId){const e=this.currentTemplateId===this.previousTemplateId?this.currentTemplateId:this.previousTemplateId,s=this.loadedTemplates[e]||this.rfqTemplates.find((t=>t&&t.id===e));s&&(this.currentTemplateName=s.name,t=s.name)}return t},formatRFQQuestionGroupsForTemplates(t){const e=(0,y.orderBy)(t,["position"],["asc"]);return(0,Yt.vV)(e.map((t=>{const e=t.questionTemplatesAttributes||t.questionsAttributes||t.questions||[];return{id:t.id,name:t.name,position:t.position,handlesLawyers:t.handlesLawyers||!1,isRatesAndPricing:t.isRatesAndPricing||!1,instructions:t.instructions,aiEdited:t.aiEdited||!1,documentsAttributes:this.buildRFQDocumentsAttributes(t.documentsAttributes),questionTemplatesAttributes:(0,y.orderBy)(e,["position"],["asc"]).map((t=>({id:t.id,builderKey:`rfq-question-${t.id}`,questionText:t.questionText,questionType:t.questionType,isIncluded:!0,isRequired:t.isRequired,position:t.position,prerequisiteQuestionAnswer:t.prerequisiteQuestionAnswer||null,prerequisiteQuestionId:t.prerequisiteQuestionId||null,pricingParentQuestionId:t.pricingParentQuestionId||null,questionOptions:t.questionOptions||[],shortname:t.shortname||"",isPricingPhaseQuestion:t.isPricingPhaseQuestion,scoutRfqQuestionGroupTemplateId:t.scoutRfqQuestionGroupTemplateId,prohibitRanges:t.prohibitRanges,pricingStructure:t.pricingStructure,taskCode:t.taskCode,scopeDescription:t.scopeDescription,clientAssumption:t.clientAssumption,aiEdited:t.aiEdited||!1,_destroy:t._destroy})))}})))},onTemplateChange(){null!==this.previousTemplateId||this.hasDraftContent?this.openModal():this.switchTemplate()},switchTemplate(){const t=this.currentTemplateId||this.rfqTemplates[0]?.id;t&&this.fetchFullTemplate(t).then((()=>{const e=structuredClone(this.loadedTemplates[t]);this.justSwitchedTemplates=!0,this.setRfqGroupTemplates(this.buildQuestionGroupsAttributes(e.questionGroupTemplatesAttributes)),this.setRfqDocumentsForDestruction(),this.applyTemplate(t),this.clearAiPrefilledField("baseQuestionTemplateId"),this.clearAiPrefilledField("instructions"),this.rfq.baseQuestionTemplateId=e.id,this.rfq.template_switched=!0,this.$refs.modal.closeModal(),this.$refs.templateDropdown?.close(),this.updateQuestionGroups(),this.autosaveRfq(this.rfq)}))},applyTemplate(t){const e=this.loadedTemplates[t];if(e){null==t?this.setSelectedTemplateByName(e.name):this.setSelectedTemplateById(t);const s=this.buildQuestionGroupsAttributes(e.questionGroupTemplatesAttributes);this.localQuestionGroups=s,this.$set(this.rfq,"questionGroups",[...s]),this.$set(this.rfq,"instructions",e.instructions),this.$set(this.rfq,"documentsAttributes",[...this.rfq.documentsAttributes||[],...this.buildRFQDocumentsAttributes(e.documentsAttributes)]),this.currentTemplateId=t,this.previousTemplateId=this.currentTemplateId}},manageTemplates(){this.updateQuestionGroups(),this.onSave({rfq:this.rfq,step:this.stepNumber}),this.$router.push("/rfp-templates")}
1,next(){this.didAttemptSubmit(),this.updateQuestionGroups(),this.nextStep()},updateQuestionGroups(){this.$set(this.rfq,"questionGroups",this.pruneEmptySections(this.localQuestionGroups))},previous(){this.didAttemptSubmit(),this.updateQuestionGroups(),this.prevStep()},onCloseModal(){this.currentTemplateId=this.previousTemplateId,this.$refs.templateDropdown.selectedOption=this.currentTemplateName,this.$refs.modal.closeModal()},autosave(t){const e=Array.isArray(t)?t:[t],s=(0,y.pick)(this.rfq,["id",...e]);this.autosaveRfq(s)},autosaveRfq(t){return this.onSave({rfq:t,step:this.stepNumber,isAutosave:!0,silentFailure:!0})},isQuestionEditAction(t){return["addQuestion","updateQuestion","removeQuestion","addGroup","updateGroup","removeGroup","reorderQuestions","reorderGroups","setPhasedPricing"].includes(t)},scheduleQuestionAutosave(){this.questionAutosaveQueued||(this.questionAutosaveQueued=!0,this.$nextTick((()=>{this.questionAutosaveQueued=!1,this.autosaveQuestions()})))},autosaveQuestions(){this.$set(this.rfq,"questionGroups",[...this.localQuestionGroups]),this.autosaveRfq((0,y.pick)(this.rfq,["id","questionGroups"]))},addOrUpdateInstructions(t){this.rfq.instructions=t,this.clearAiPrefilledField("instructions"),this.autosave(["instructions","aiPrefilledFields"])},removeInstructions(){this.rfq.instructions=null,this.clearAiPrefilledField("instructions"),this.autosave(["instructions","aiPrefilledFields"])},isAiPrefilled(t){return(this.rfq.aiPrefilledFields||[]).includes(t)},clearAiPrefilledField(t){this.$set(this.rfq,"aiPrefilledFields",(this.rfq.aiPrefilledFields||[]).filter((e=>e!==t)))},addOrUpdateConflictsCheck(t){this.$set(this.rfq,"conflictsCheckText",t),this.autosave("conflictsCheckText")},removeConflictsCheck(){this.$refs.deleteConflictsCheckModal.openModal()},performRemoveConflictsCheck(){this.$set(this.rfq,"conflictsCheckText",""),this.setConflictsCheckDocumentsForDestruction(),this.autosave(["conflictsCheckText","conflictsCheckDocumentsAttributes"])},selectDocuments(t){if((0,y.isEmpty)(t))return;const e=Array.from(t),s=[...this.rfq.documentsAttributes||[]];e.forEach((t=>{s.push({tempId:(0,y.uniqueId)("temp-doc-"),name:t.name,file:t})})),this.$set(this.rfq,"documentsAttributes",s),this.autosave("documentsAttributes")},selectConflictsCheckDocuments(t){if(!t||0===t.length)return;const e=Array.from(t),s=[...this.rfq.conflictsCheckDocumentsAttributes||[]];e.forEach((t=>{s.push({tempId:(0,y.uniqueId)("temp-conflicts-doc-"),name:t.name,file:t})})),this.$set(this.rfq,"conflictsCheckDocumentsAttributes",s),this.autosave("conflictsCheckDocumentsAttributes")},setConflictsCheckDocumentsForDestruction(){this.rfq.conflictsCheckDocumentsAttributes&&(this.rfq.conflictsCheckDocumentsAttributes=this.rfq.conflictsCheckDocumentsAttributes.map((t=>({...t,_destroy:!0}))))},onDeleteConflictsCheckDocument(t){t.id?this.$set(t,"_destroy",!0):t.tempId?this.$set(this.rfq,"conflictsCheckDocumentsAttributes",this.rfq.conflictsCheckDocumentsAttributes.filter((e=>e.tempId!==t.tempId))):this.$set(this.rfq,"conflictsCheckDocumentsAttributes",this.rfq.conflictsCheckDocumentsAttributes.filter((e=>e!==t))),this.autosave("conflictsCheckDocumentsAttributes")},setRfqDocumentsForDestruction(){this.rfq.documentsAttributes&&(this.rfq.documentsAttributes=this.rfq.documentsAttributes.map((t=>({...t,_destroy:!0}))))},onDeleteDocument(t){t.id?this.$set(t,"_destroy",!0):t.tempId?this.$set(this.rfq,"documentsAttributes",this.rfq.documentsAttributes.filter((e=>e.tempId!==t.tempId))):this.$set(this.rfq,"documentsAttributes",this.rfq.documentsAttributes.filter((e=>e!==t))),this.autosave("documentsAttributes")}}},ee=te,se=(s(96604),(0,r.A)(ee,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"shadowed-box"},[e("div",{staticClass:"box-content extra-padded"},[e("div",{staticClass:"size-text-17px bold-weight bottom-5"},[t._v("\n Choose Questions for Recipients\n ")]),t._v(" "),e("div",{class:["size-text-14px",t.aiChatEnabled?"bottom-5":"bottom-30"]},[t._v("\n Select a template to see and edit the questions you would like RFP recipients to answer regarding your project.\n ")]),t._v(" "),t.aiChatEnabled?e("ai-chat-cta",{staticClass:"bottom-30",attrs:{"chat-open":t.aiChatOpen,"on-open":t.onOpenAiChat}}):t._e(),t._v(" "),e("div",{staticClass:"blue-accent a-form bottom-30"},[e("div",{staticClass:"top-label"},[e("label",{attrs:{for:"k-toggle-button-selected-template"}},[t._v("\n Select a Template\n "),t.isAiPrefilled("baseQuestionTemplateId")?e("span",{staticClass:"ai-prefill-label"},[e("svg-icon",{staticClass:"base-icon no-shrink blue-text",attrs:{name:"sparkle","aria-hidden":"true"}})],1):t._e()]),t._v(" "),t.currentUserIsAdmin?e("div",{staticClass:"top-5-xs"},[e("a",{staticClass:"dark-gray-link bottom-5",attrs:{href:""},on:{click:function(e){return e.preventDefault(),t.manageTemplates.apply(null,arguments)}}},[t._v("Manage Templates")])]):t._e()]),t._v(" "),e("dropdown-select",{ref:"templateDropdown",staticClass:"top-20-xs",attrs:{"id-label":"selected-template",placeholder:"Please Select","value-key":"id","label-key":"name","
1is-disabled":t.isTemplateLoading,invalid:t.submitAttempted&&t.formInvalid,"initial-label":t.localQuestionGroups.length>0?t.getCurrentTemplateName():null,options:t.rfqTemplates.map((t=>({name:t.name,id:t.id})))},on:{change:t.onTemplateChange},model:{value:t.currentTemplateId,callback:function(e){t.currentTemplateId=e},expression:"currentTemplateId"}}),t._v(" "),t.submitAttempted&&t.formInvalid?e("div",{staticClass:"error-text top-5"},[t._v("\n * Required\n ")]):t._e()],1),t._v(" "),e("loading-section",{attrs:{name:"templateContent"}},[e("div",{class:["bottom-30",{"box-content responsive-bordered":t.conflictsCheckEnabled}]},[t.showAdditionalQuestionInfo?e("div",{staticClass:"bottom-20"},[e("div",{staticClass:"vertical-center-not-xs gap-15"},[e("div",{staticClass:"size-text-15px bold-weight"},[t._v("\n Require Conflicts Check? (optional)\n ")]),t._v(" "),t.conflictsCheckEnabled?e("div",{staticClass:"bold-weight green-text vertical-center gap-10 top-10-xs"},[e("svg-icon",{staticClass:"base-icon no-shrink",attrs:{name:"checkmark"}}),t._v(" "),e("span",[t._v("Conflicts Check Required")])],1):t._e(),t._v(" "),t.conflictsCheckEnabled&&!t.hasConflictsCheckDocuments?e("div",{staticClass:"top-10-xs"},[e("file-selector",{attrs:{accept:t.acceptedExtensions,"max-size":50,multiple:!0},on:{change:t.selectConflictsCheckDocuments},scopedSlots:t._u([{key:"default",fn:function(){return[e("span",{staticClass:"pseudo-link-blue bold-weight size-text-13px cursor-pointer"},[t._v("+ Add Documents")])]},proxy:!0},{key:"error-display",fn:function({errors:s}){return[e("span",{staticClass:"left-10 red-text size-text-12px"},[t._v(t._s(s.join("; ")))])]}}],null,!1,1010863789)})],1):t._e(),t._v(" "),t.conflictsCheckEnabled?t._e():e("conflicts-check-edit-modal",{staticClass:"top-10-xs",attrs:{rfq:t.rfq,"on-save":t.addOrUpdateConflictsCheck}})],1),t._v(" "),e("div",{staticClass:"top-5"},[t._v("\n Require each invited law firm to confirm that they do not have any conflicts before they are able to view any other RFP information by adding a required conflicts check.\n ")])]):t._e(),t._v(" "),t.conflictsCheckEnabled?e("conflicts-check",{attrs:{rfq:t.rfq,"on-save":t.addOrUpdateConflictsCheck,"on-remove":t.removeConflictsCheck}}):t._e(),t._v(" "),t.conflictsCheckEnabled&&t.hasConflictsCheckDocuments?e("documents-section",{staticClass:"top-10",attrs:{documents:t.conflictsCheckDocuments,"is-editing":!0,"on-delete-document":t.onDeleteConflictsCheckDocument,"on-select-documents":t.selectConflictsCheckDocuments}}):t._e()],1),t._v(" "),t.showAdditionalQuestionInfo||t.hasInstructions||t.hasDocuments?e("div",{class:{"box-content responsive-bordered":t.hasInstructions||t.hasDocuments}},[t.showAdditionalQuestionInfo?e("div",[e("div",{staticClass:"size-text-15px bold-weight"},[t._v("\n RFP Instructions (optional)\n ")]),t._v(" "),t.hasInstructions||t.hasDocuments?t._e():e("div",{staticClass:"top-5"},[t._v("\n Provide some additional guidance for RFP recipients.\n ")]),t._v(" "),t.hasInstructions?t._e():e("rfq-instructions-modal",{staticClass:"top-10",attrs:{instructions:t.rfq.instructions,"is-editing":!1,"modal-title":"RFP Instructions","section-title":"RFP Instructions","on-update-instructions":t.addOrUpdateInstructions,"show-ai-icon":t.isAiPrefilled("instructions"),"new-instructions-button-text":"Add RFP Instructions"}}),t._v(" "),t.hasInstructions?e("rfq-instructions",{staticClass:"top-10",attrs:{title:"RFP Instructions",instructions:t.rfq.instructions,"on-update-instructions":t.addOrUpdateInstructions,"on-remove-instructions":t.removeInstructions,"show-ai-icon":t.isAiPrefilled("instructions"),"modal-title":"RFP Instructions","section-title":"RFP Instructions"}}):t._e(),t._v(" "),t.hasDocuments?t._e():e("div",{class:t.hasInstructions?"top-10":"top-5"},[e("file-selector",{attrs:{accept:t.acceptedExtensions,"max-size":50,multiple:!0,"inline-error":!0},on:{change:t.selectDocuments}},[e("span",{staticClass:"pseudo-link-blue bold-weight size-text-13px"},[t._v("+ Add Documents")])])],1)],1):t._e(),t._v(" "),t.hasDocuments?e("documents-section",{staticClass:"top-10",attrs:{documents:t.rfqDocuments,"is-editing":!0,"on-delete-document":t.onDeleteDocument,"on-select-documents":t.selectDocuments}}):t._e()],1):t._e(),t._v(" "),t.showAdditionalQuestionInfo?e("rfq-template-questions",{staticClass:"top-30",attrs:{"is-editing":!0,"currency-code":t.rfq.currencyCode,"question-groups":t.localQuestionGroups,"show-template-heading":!1,"editor-policy":t.rfqQuestionEditorPolicy,"mark-persisted-for-destruction":!0}}):t._e()],1)],1)]),t._v(" "),e("div",{staticClass:"d-flex flex-space-between top-30"},[e("button",{staticClass:"bold-weight gap-10 pseudo-link-blue vertical-center blue-text",attrs:{type:"button"},on:{click:t.previous}},[e("svg-icon",{staticClass:"base-icon",attrs:{name:"arrow-left"}}),t._v("Previous")],1),t._v(" "),e("button",{staticClass:"bold-weight gap-10 pseudo-link-blue vertical-center blue-text",attrs:{type:"button"},on:{click:t.next}},[t._v("Continue"),e("svg-icon",{staticClass:"base-icon",attrs:{name:"arrow-right"}})],1)]),t._v(" "),t.submitAttempted&&t.formInvalid?e("div",{staticClass:"red-text text-right top-5"},[t._v("\n * Please complete all required fields\n ")]):t._e(),t._v(" "),e("priori-modal",{ref:"modal",attrs:{title:"Switch Template"},scopedSlots:t._u([{key:"default",fn:function(){return[e("div",{staticClass:"bottom-30 size-text-14px"},[t._v("\n Are you sure you want to switch templates? Any changes or questions you have added will not carry over.\n ")]),t._v(" "),e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-5"},[e("button",{staticClass:"primary-btn-blue",attrs:{type:"button",name:"switchTemplate"},on:{click:t.switchTemplate}},[t._v("Switch Template")])]),t._v(" "),e("div",{staticClass:"col-sm-3 top-10-xs"},[e("button",{staticClass:"nv-button-white",attrs:{type:"button"},on:{click:t.onCloseModal}},[t._v("Cancel")])])])]},proxy:!0}])}),t._v(" "),e("confirm-delete-conflicts-check-modal",{ref:"deleteConflictsCheckModal",attrs:{"on-confirm":t.performRemoveConflictsCheck}})],1)}),[],!1,null,"3ead057c",null)),ie=se.exports,ae=s(47622),re=s(60872),oe=s(6820),ne=s(55924),le=s(11204),ce=s(25256),de=s(43749),ue=s(85471),pe={name:"RfqStepReview",components:{InlineNotification:ne.default,PrioriModal:c.default,RfqAdditionalRecipientsForm:oe.A,RfqRecipientsList:re.A,SvgIcon:i.default,RfqPreview:ae.A,LoadingButton:ht.default},mixins:[ce.A],props:{rfq:{type:Object,required:!0},workspace:{type:Object,required:!0},prevStep:{type:Function,required:!0},isValid:{type:Boolean,required:!1}},data(){const t={};
1return this.rfq.lawFirmQuotes.forEach((e=>{t[e.id]=!1})),{isExpanded:t,submitAttempted:!1}},computed:{...(0,D.aH)(M.A,{user:"currentUser",timeZone:"ianaTimeZone"}),quotesWithRfqEnabled(){return this.rfq.lawFirmQuotes.filter((t=>t.firmHasRfqEnabled))},marketplaceLawFirmQuote(){return{firmName:"Priori\u2019s Marketplace"}},userIsRfqManager(){return this.user.hasRfqEnabled&&this.user.hasRfqWorkspaceEnabled},rfqManagerRequired(){return!!this.rfq.bmiMatter?.rfqManagerRequired},userCanSubmit(){return!this.rfqManagerRequired||this.userIsRfqManager}},methods:{getRfq(){return this.rfq},resetModalForm(t){this.$refs[`addAdditionalRecipientModalForm${t}`][0].reset()},addAdditionalRecipients(t,e){return u.A.loading("saveRecipients"),v.A.addAdditionalRecipient({id:t.id,rfqLawFirmQuote:{recipient:e}}).then((e=>{Object.assign(t,e.data),this.$refs[`addAdditionalRecipientModal${t.id}`][0].closeModal()})).finally((()=>{u.A.done("saveRecipients")}))},removeAdditionalRecipient(t,e){return v.A.deleteAdditionalRecipient(t.id,e).then((e=>{Object.assign(t,e.data),t.additionalRecipients=e.data.additionalRecipients}))},toggleRecipients(t){void 0===this.isExpanded[t]&&ue.default.set(this.isExpanded,t,!1),this.isExpanded[t]=!this.isExpanded[t]},submit(){this.userCanSubmit&&(this.isValid?u.A.around("submitRfq",(()=>le.A.submit({rfq:this.rfq}).then((t=>{this.$router.push(`/rfps?newRfq=true&rfqId=${t.data.id}&rfqSentCount=${t.data.rfqSentCount}&sentToMarketplace=${t.data.sentToMarketplace}`)})))):this.submitAttempted=!0)},previous(){this.prevStep({rfq:this.rfq})},previewModalTitle(t){return`Preview RFP for ${t.firmName}`},downloadRFQ(){new de.A(this.rfq,this.timeZone).generateDocx()}}},me=(s(92250),(0,r.A)(pe,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"shadowed-box"},[e("div",{staticClass:"box-content extra-padded"},[e("div",{staticClass:"row tight-columns bottom-30"},[t._m(0),t._v(" "),t.rfq.id?e("div",{staticClass:"col-sm-6 text-right-not-xs"},[e("button",{staticClass:"pseudo-link-blue bold-weight",attrs:{type:"button"},on:{click:t.downloadRFQ}},[t._v("Download Draft RFP")])]):t._e()]),t._v(" "),t.userCanSubmit?t._e():e("inline-notification",{staticClass:"bottom-30",attrs:{type:"warning"}},[e("span",{staticClass:"bold-weight"},[t._v("Note:")]),t._v(" Only RFP Managers can send White Glove RFPs.\n ")]),t._v(" "),!t.isValid&&t.userCanSubmit?e("inline-notification",{staticClass:"bottom-30",attrs:{type:"info"}},[e("span",{staticClass:"bold-weight"},[t._v("Note:")]),t._v(" Some required fields are missing information. Please review the steps and complete all necessary fields before continuing.\n ")]):t._e(),t._v(" "),t.quotesWithRfqEnabled.length?e("div",{staticClass:"rfq-firms-wrapper"},[e("div",{staticClass:"size-text-15px bold-weight bottom-5"},[t._v("\n Your Firms\n ")]),t._v(" "),e("div",{staticClass:"bottom-20"},[t._v("\n Your law firms have provisioned the individuals displayed below to receive RFPs. If you would like to notify someone who is not listed, please use the link below to send an additional notification.\n ")]),t._v(" "),t._l(t.quotesWithRfqEnabled,(function(s){return e("div",{key:s.id,staticClass:"rfq-recipient-item"},[e("div",{staticClass:"row tight-columns"},[e("div",{staticClass:"col-sm-7 col-lg-8 semibold-weight"},[t._v("\n "+t._s(s.firmName)+"\n ")]),t._v(" "),e("div",{staticClass:"col-sm-5 col-lg-4 top-20-xs"},[e("div",{staticClass:"d-flex-not-xs gap-30 flex-end"},[t.isValid?e("priori-modal",{ref:"previewRfq",refInFor:!0,attrs:{"modal-id":"preview-rfq","modal-size":"lg",title:t.previewModalTitle(s)},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"pseudo-link-blue bold-weight",attrs:{type:"button"},on:{click:s}},[t._v("Preview RFP")])]}},{key:"default",fn:function({modalOpen:i}){return[i?e("rfq-preview",{attrs:{rfq:t.rfq,"law-firm-quote":s}}):t._e()]}}],null,!0)}):t._e(),t._v(" "),e("button",{staticClass:"pseudo-link-gray pill-gray-text semibold-weight top-10-xs",attrs:{type:"button"},on:{click:function(e){return t.toggleRecipients(s.id)}}},[t._v("\n "+t._s(t.isExpanded[s.id]?"Hide":"View")+" Recipients"),e("svg-icon",{class:["base-icon disclosure-icon",{"expanded rotate-90":t.isExpanded[s.id]}],attrs:{name:"caret-right"}})],1)],1)])]),t._v(" "),t.isExpanded[s.id]?e("div",{staticClass:"rfq-quote-recipients-wrapper top-20"},[e("priori-modal",{ref:`addAdditionalRecipientModal${s.id}
1`,refInFor:!0,attrs:{"modal-id":`add-additional-recipient-${s.id}`,backdrop:!1,"modal-size":"md",title:"Add Law Firm Recipient"},on:{"on-modal-close":function(e){return t.resetModalForm(s.id)}},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:i}){return[s.lawyersToReceiveUpdates?e("rfq-recipients-list",{attrs:{"firm-name":s.firmName,"provisioned-lawyers":s.lawyersToReceiveUpdates,"additional-recipients":s.additionalRecipients,"lawyer-rfq-permissions":s.lawyerRfqPermissions,"on-remove-recipient":e=>t.removeAdditionalRecipient(s,e.id),"on-add-recipients":i}}):t._e()]}},{key:"default",fn:function({closeModal:i}){return[e("rfq-additional-recipients-form",{ref:`addAdditionalRecipientModalForm${s.id}`,refInFor:!0,attrs:{"save-button-text":"Save","firm-name":s.firmName,"on-cancel":i,"on-save":e=>t.addAdditionalRecipients(s,e)}})]}}],null,!0)})],1):t._e()])}))],2):t._e(),t._v(" "),t.rfq.sentToMarketplace?e("div",{class:["sent-to-marketplace-wrapper",{"top-20":t.quotesWithRfqEnabled.length}]},[e("div",{staticClass:"row vertical-center-not-xs"},[t._m(1),t._v(" "),e("div",{staticClass:"col-sm-3 text-right-not-xs"},[t.isValid?e("priori-modal",{ref:"previewRfq",attrs:{"modal-id":"preview-rfq","modal-size":"lg",title:t.previewModalTitle(t.marketplaceLawFirmQuote)},scopedSlots:t._u([{key:"modal-trigger",fn:function({openModal:s}){return[e("button",{staticClass:"pseudo-link-blue bold-weight",attrs:{type:"button"},on:{click:s}},[t._v("Preview RFP")])]}},{key:"default",fn:function({modalOpen:s}){return[e("div",[s?e("rfq-preview",{attrs:{rfq:t.rfq,"law-firm-quote":t.marketplaceLawFirmQuote}}):t._e()],1)]}}],null,!1,3754395494)}):t._e()],1)])]):t._e(),t._v(" "),t.quotesWithRfqEnabled.length||t.rfq.sentToMarketplace?t._e():e("div",{staticClass:"no-recipients-wrapper vertical-center-not-xs gap-30"},[e("div",{staticClass:"vertical-center-not-xs gap-15"},[e("div",{staticClass:"svg-circle blue-text"},[e("svg-icon",{staticClass:"base-icon",attrs:{name:"clients"}})],1),t._v(" "),e("div",{staticClass:"size-text-15px bold-weight top-10-xs"},[t._v("\n No recipients added\n ")])]),t._v(" "),e("div",{staticClass:"flex-1 white-panel size-text-14px top-20-xs"},[t._v("\n You must add at least one recipient before continuing.\n ")])])],1)]),t._v(" "),e("div",{staticClass:"row vertical-center-not-xs top-30"},[e("div",{staticClass:"col-sm-4 col-md-3"},[e("button",{staticClass:"bold-weight gap-10 pseudo-link-blue vertical-center blue-text",attrs:{type:"button"},on:{click:t.previous}},[e("svg-icon",{staticClass:"base-icon",attrs:{name:"arrow-left"}}),t._v("Previous")],1)]),t._v(" "),e("div",{staticClass:"col-sm-4 col-sm-offset-4 col-md-3 col-md-offset-6 top-30-xs"},[e("loading-button",{attrs:{name:"submitRfq","lb-class":"primary-btn-blue","lb-disabled":!t.userCanSubmit},on:{"lb-click":t.submit}},[t._v("Send RFP")]),t._v(" "),!t.isValid&&t.submitAttempted?e("div",{staticClass:"top-5 red-text semibold-weight"},[t._v("\n * Please complete all required fields\n ")]):t._e()],1)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"size-text-17px bold-weight bottom-5"},[t._v("\n Review & Send\n ")]),t._v(" "),e("div",{staticClass:"size-text-14px"},[t._v("\n Preview your RFP before sending.\n ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-sm-9"},[e("div",{staticClass:"size-text-15px bold-weight bottom-5"},[t._v("\n Priori\u2019s Marketplace Network\n ")]),t._v("\n\n Your RFP will be sent to Priori\u2019s Marketplace. A Priori representative will reach out with information about next steps.\n ")])}],!1,null,"0a376bb2",null).exports),he=s(58804),fe=s(77463),ve={name:"RfqSupportChat",components:{ChatExperience:he.A,SvgIcon:i.default,InstructionsModal:fe.A},props:{chat:{type:Object,required:!0},rfqId:{type:Number,required:!1},activeTab:{type:String,required:!1},beforeFirstMessage:{type:Function,required:!1},isVisible:{type:Boolean,default:!1}},emits:["expand","collapse"],watch:{isVisible(t){t&&this.$refs.chatExperience.scrollChatToBottom()}},mounted(){this.isVisible&&this.$refs.chatExperience.scrollChatToBottom()},methods:{expand(){this.$emit("expand")},collapse(){this.$emit("collapse")},focusComposer(){this.$refs.chatExperience.focusComposer()},openInstructions(){this.$refs.instructionsModal.openModal()}}},be=(s(21030),(0,r.A)(ve,(function(){var t=this,e=t._self._c;return e("div",[e("button",{staticClass:"support-pill",attrs:{type:"button"},on:{click:t.expand}},[e("svg-icon",{staticClass:"base-icon white right-8",attrs:{name:"sparkle"}}),t._v("Scout RFP Builder")],1),t._v(" "),e("div",{class:["messaging-center support-panel",{on:t.isVisible}],attrs:{id:"rfq-support-chat-panel"}},[e("div",{staticClass:"support-panel-header"},[e("div",{staticClass:"semibold-weight size-text-14px vertical-center"},[e("svg-icon",{staticClass:"base-icon right-8",attrs:{name:"sparkle"}}),t._v("Scout RFP\n ")],1),t._v(" "),e("div",{staticClass:"vertical-center gap-20"},[e("button",{staticClass:"pseudo-link-blue size-text-12px semibold-weight text-uppercase",attrs:{type:"button"},on:{click:t.openInstructions}},[e("svg-icon",{staticClass:"base-icon smaller stroke-base right-8",attrs:{name:"book"}}),t._v("Guide")],1),t._v(" "),e("button",{staticClass:"pseudo-link vertical-center",attrs:{type:"button"},on:{click:t.collapse}},[e("svg-icon",{staticClass:"base-icon smaller minimize",attrs:{name:"minimize"}})],1)])]),t._v(" "),e("div",{staticClass:"support-panel-body"},[e("chat-experience",{ref:"chatExperience",attrs:{chat:t.chat,origin:"rfp_builder","initial-flow":"scout_rfq","rfq-id":t.rfqId,"active-tab":t.activeTab,"before-first-message":t.beforeFirstMessage,"panel-layout":!0,placeholder:"Describe project"}})],1),t._v(" "),t.isVisible?e("div",{staticClass:"close-message-center-button"},[e("button",{attrs:{type:"button"},on:{click:t.collapse}},[e("svg-icon",{staticClass:"base-icon",attrs:{name:"caret-right"}})],1)]):t._e()]),t._v(" "),e("instructions-modal",{ref:"instructionsModal"})],1)}
1),[],!1,null,"8e3ddf44",null).exports),ge=s(87488);function ye(t){return`scoutRfpBuilderMinimized:${t}`}var Ce={minimized(t){if(!t)return!1;try{return"true"===sessionStorage.getItem(ye(t))}catch{return!1}},setMinimized(t){if(t)try{sessionStorage.setItem(ye(t),"true")}catch{}},clearMinimized(t){if(t)try{sessionStorage.removeItem(ye(t))}catch{}},defaultVisible(t){return!this.minimized(t)&&window.innerWidth>=768}},qe={name:"CreateForm",components:{Stepper:o,StepRecipients:Y,StepProjectDetails:Qt,StepQuestions:ie,StepReview:me,RfqSupportChat:be},props:{rfq:{type:Object,required:!0},dueDateDetails:{type:Object,required:!0},initialActiveStep:{type:Number,default:1},onStepChange:{type:Function,required:!0},onUpdateSupportingDocuments:{type:Function,required:!0},onDestroyAllLawFirmQuotes:{type:Function,required:!0},onSave:{type:Function,required:!0},onConnectExternalMatter:{type:Function,required:!0},onConnectSearch:{type:Function,required:!0}},emits:["step-change","contact-admins"],data(){const t=[{number:1,label:"Project",validationStatus:"pending",formRef:"projectDetails"},{number:2,label:"Law Firm Questions",validationStatus:"pending",formRef:"lawFirmQuestions"},{number:3,label:"Recipients",validationStatus:"pending",formRef:"recipients"},{number:4,label:"Review & Send",validationStatus:"pending",formRef:"reviewSend"}],e=t.find((t=>t.number===this.initialActiveStep))?.label;return{steps:t,currentStep:this.initialActiveStep,fullFormValidationStatus:"pending",isRfqValid:!1,aiChatVisible:Ce.defaultVisible(this.rfq.id),activeChat:this.rfq.aiChat||ge.A.build("scout_rfq",this.rfq.id,e)}},computed:{...(0,D.aH)(M.A,{user:"currentUser",timeZone:"timeZone"}),marketplaceRfqsEnabled(){return this.user.workspace.marketplaceRfqsEnabled},hasAiEnabled(){return this.user.aiEnabled},currentTabLabel(){return this.steps.find((t=>t.number===this.currentStep))?.label},stepsWithActivity(){return this.steps.map((t=>({...t,aiActivity:1===t.number&&!!this.rfq.aiProjectTabActivity||2===t.number&&!!this.rfq.aiQuestionsTabActivity||3===t.number&&!!this.rfq.aiRecipientsTabActivity})))}},watch:{"rfq.id"(t){!t||this.activeChat.id||this.activeChat.processing||(this.activeChat.draftRfqId=t),t&&!this.aiChatVisible&&Ce.setMinimized(t)}},methods:{switchToStep(t){!Number.isInteger(t)||t<1||t>this.steps.length||this.currentStep!==t&&this.$refs.stepper?.goToStep(t)},ensureRfqSaved(){return this.rfq.id?Promise.resolve():this.onSave({rfq:this.rfq,step:1,isAutosave:!0})},openAiChat(){this.aiChatVisible=!0,Ce.clearMinimized(this.rfq.id),this.$refs.supportChat?.focusComposer()},closeAiChat(){this.aiChatVisible=!1,Ce.setMinimized(this.rfq.id)}
1,handleStepChange(t,e){this.currentStep=e.number,this.syncChatContext(),this.refreshUnsavedChatIntro(),this.clearTabActivityIfNeeded(e),this.fullFormValidationStatus="pending";const s=this.$refs[t.formRef];"function"===typeof s?.prepareForStepExit&&s.prepareForStepExit(),4===e.number?this.validateAll(!1):"pending"!==t.validationStatus&&this.validate(t);const i=s.getRfq();this.onStepChange({newActiveStep:e,oldActiveStep:t,rfq:i})},validate(t,e=!1){return this.$refs[t.formRef].validate(e).then((s=>(e||(t.validationStatus=s?"valid":"invalid"),s)))},validateAll(t=!1){return Promise.all([this.validate(this.steps[0],t),this.validate(this.steps[1],t),this.validate(this.steps[2],t)]).then((t=>{t.every((t=>t))?this.isRfqValid=!0:(this.firstInvalidStep=t.findIndex((t=>!t))+1,this.isRfqValid=!1)}))},clearTabActivityIfNeeded(t){const e={1:"aiProjectTabActivity",2:"aiQuestionsTabActivity",3:"aiRecipientsTabActivity"}[t.number];e&&(this.rfq[e]=!1)},refreshUnsavedChatIntro(){this.activeChat.id||this.activeChat.processing||(this.activeChat.messages[0].content=ge.A.initMessage("scout_rfq",this.rfq.id,this.currentTabLabel))},syncChatContext(){if(this.activeChat.id)return ge.A.updateContext({id:this.activeChat.id,origin:"rfp_builder",activeTab:this.currentTabLabel})}}},we=qe,_e=(0,r.A)(we,(function(){var t=this,e=t._self._c;return e("stepper",{ref:"stepper",attrs:{steps:t.stepsWithActivity,"initial-active-step":t.initialActiveStep},on:{"step-change":(e,s)=>
1t.handleStepChange(e,s)},scopedSlots:t._u([{key:"default",fn:function({activeStep:s,moveToPrevStep:i,moveToNextStep:a}){return[e("step-project-details",{directives:[{name:"show",rawName:"v-show",value:1===s,expression:"activeStep === 1"}],ref:"projectDetails",attrs:{rfq:t.rfq,"due-date-details":t.dueDateDetails,"next-step":a,"on-update-supporting-documents":t.onUpdateSupportingDocuments,"on-save":t.onSave,"on-connect-external-matter":t.onConnectExternalMatter,"ai-chat-enabled":t.hasAiEnabled,"ai-chat-open":t.aiChatVisible,"on-open-ai-chat":t.openAiChat}}),t._v(" "),e("step-questions",{directives:[{name:"show",rawName:"v-show",value:2===s,expression:"activeStep === 2"}],ref:"lawFirmQuestions",attrs:{rfq:t.rfq,"prev-step":i,"next-step":a,"on-save":t.onSave,"ai-chat-enabled":t.hasAiEnabled,"ai-chat-open":t.aiChatVisible,"on-open-ai-chat":t.openAiChat}}),t._v(" "),e("step-recipients",{directives:[{name:"show",rawName:"v-show",value:3===s,expression:"activeStep === 3"}],ref:"recipients",attrs:{rfq:t.rfq,"prev-step":i,"next-step":a,"on-destroy-all-law-firm-quotes":t.onDestroyAllLawFirmQuotes,"on-connect-search":t.onConnectSearch,"ai-chat-enabled":t.hasAiEnabled,"ai-chat-open":t.aiChatVisible,"on-open-ai-chat":t.openAiChat}}),t._v(" "),4===s?e("step-review",{ref:"reviewSend",attrs:{rfq:t.rfq,"is-valid":t.isRfqValid,workspace:t.user.workspace,"prev-step":i}}):t._e(),t._v(" "),t.hasAiEnabled?e("rfq-support-chat",{directives:[{name:"show",rawName:"v-show",value:1===s||2===s||3===s,expression:"activeStep === 1 || activeStep === 2 || activeStep === 3"}],ref:"supportChat",attrs:{chat:t.activeChat,"rfq-id":t.rfq.id,"active-tab":t.currentTabLabel,"before-first-message":t.ensureRfqSaved,"is-visible":t.aiChatVisible},on:{expand:t.openAiChat,collapse:t.closeAiChat}}):t._e()]}}])})}),[],!1,null,null,null).exports},32051:function(t,e,s){"use strict";s.d(e,{A:function(){return r}});var i=s(58516),a={name:"PricingHierarchyRow",props:{label:{type:String,required:!0},hierarchyNumber:{type:String,default:null},required:{type:Boolean,default:!1},taskCode:{type:String,default:null},metaText:{type:String,default:null},labelTag:{type:String,default:"div"},labelFor:{type:String,default:null},labelClass:{type:String,default:""},textFormat:{type:String,default:"size-text-15px bold-weight"},priceTotal:{type:String,default:null}},computed:{labelParts(){return(0,i.li)(this.label,this.hierarchyNumber)}}},r=(s(74467),(0,s(14486).A)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"pricing-hierarchy-row"},[t.labelParts.number?e("div",{class:["pricing-hierarchy-number",t.textFormat]},[t._v("\n "+t._s(t.labelParts.number)+"\n ")]):t._e(),t._v(" "),e("div",{class:["pricing-hierarchy-content",{"pricing-hierarchy-content-full":!t.labelParts.number}]},[t.labelParts.text||t.$slots["label-suffix"]?e(t.labelTag,{tag:"component",class:["pricing-hierarchy-label",t.labelClass,t.textFormat],attrs:{for:"label"===t.labelTag?t.labelFor:null}},[t.labelParts.text?e("span",[t._v(t._s(t.labelParts.text))]):t._e(),t._v(" "),t.required?e("span",{staticClass:"inline-help required"},[t._v(" *")]):t._e(),t._v(" "),t._t("label-suffix"),t._v(" "),t.taskCode?e("span",{staticClass:"task-code left-5"},[t._v("("+t._s(t.taskCode)+")")]):t._e(),t._v(" "),t.metaText?e("span",{staticClass:"pill-gray-text size-text-12px left-5"},[t._v("("+t._s(t.metaText)+")")]):t._e(),t._v(" "),t.priceTotal?e("span",{staticClass:"pull-right size-text-14px bold-weight"},[t._v("\n "+t._s(t.priceTotal)+"\n ")]):t._e()],2):t._e(),t._v(" "),t._t("default")],2)])}),[],!1,null,"70a867ee",null).exports)},85355:function(t,e,s){"use strict";s.d(e,{A:function(){return a}});var i={name:"ScoutTitlebar",props:{title:{type:String,required:!0}},computed:{hasActions(){return!!this.$slots.actions}}},a=(0,s(14486).A)(i,(function(){var t=this,e=t._self._c;return e("div",[t.hasActions?e("div",{staticClass:"titlebar with-button"},[e("div",{staticClass:"row vertical-center-not-xs"},[e("div",{staticClass:"col-sm-6"},[e("h1",{staticClass:"medium-page-heading"},[t._v(t._s(t.title))])]),t._v(" "),e("div",{staticClass:"col-sm-6 text-right-not-
1xs"},[t._t("actions")],2)])]):e("div",{staticClass:"titlebar"},[e("h1",{staticClass:"medium-page-heading"},[t._v("\n "+t._s(t.title)+"\n ")])])])}),[],!1,null,null,null).exports},21259:function(t,e,s){"use strict";s.d(e,{A:function(){return o}});var i=s(16887),a=s(24923),r={name:"TagList",components:{SvgIcon:i.default,LoadingSection:a.default},props:{name:{type:String,default:"tag-list"},tags:{type:Array,default:()=>[]},onRemove:{type:Function,required:!0},valueFn:{type:Function,required:!1},tagClass:{type:String,default:"blue"}},computed:{iconName(){return"clear"===this.tagClass?"x-circle":"x4"}},methods:{getValue(t){return this.valueFn?this.valueFn(t):t.name},remove(t){this.onRemove(t)}}},o=(s(87224),(0,s(14486).A)(r,(function(){var t=this,e=t._self._c;return e("loading-section",{attrs:{name:t.name}},[e("div",{class:{"tag-list":t.tags.length}},t._l(t.tags,(function(s,i){return e("div",{key:s.id,class:["tag-list-item compact",t.tagClass]},[e("div",{staticClass:"text-ellipsis list-wrapper"},[t._v("\n "+t._s(t.getValue(s))+"\n\n "),e("div",[e("button",{staticClass:"pseudo-link",attrs:{type:"button","aria-label":`Remove ${t.getValue(s)}`},on:{click:function(e){return t.remove(i)}}},[e("svg-icon",{staticClass:"base-icon remove-icon",attrs:{name:t.iconName}})],1)])])])})),0)])}),[],!1,null,"51fa75b2",null).exports)},10771:function(t,e,s){var i=s(52188);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("29b4b046",i,!0,{})},32760:function(t,e,s){var i=s(23901);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("24309769",i,!0,{})},85058:function(t,e,s){var i=s(84269);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("94ddd7de",i,!0,{})},15154:function(t,e,s){var i=s(21279);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("42f3e5aa",i,!0,{})},5116:function(t,e,s){var i=s(82169);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("1303cea3",i,!0,{})},63794:function(t,e,s){var i=s(12265);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("c2a097c8",i,!0,{})},87339:function(t,e,s){var i=s(87754);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("7dcd4bca",i,!0,{})},30260:function(t,e,s){var i=s(7027);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("69c1bab0",i,!0,{})},18925:function(t,e,s){var i=s(62012);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("322c0590",i,!0,{})},21030:function(t,e,s){var i=s(85897);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("31124e55",i,!0,{})},29032:function(t,e,s){var i=s(16347);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("3220ca88",i,!0,{})},96604:function(t,e,s){var i=s(10415);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("b319884a",i,!0,{})},60266:function(t,e,s){var i=s(65795);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("8c274124",i,!0,{})},92250:function(t,e,s){var i=s(70763);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("255d8596",i,!0,{})},74467:function(t,e,s){var i=s(82148);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("199e41e0",i,!0,{})},51109:function(t,e,s){var i=s(96496);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("54f45f12",i,!0,{})},87224:function(t,e,s){var i=s(77303);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,s(70534).A)("12e7dfc6",i,!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.