PageSourceSearch

https://app.4rivrs.com/assets/CustomSectorsView-k-rS5YXV.js

js 4rivrs.com collected 2026-10-05 22:11:18 UTC 3,152 bytes, 1 lines download raw bytes

1import{d as g,o as k,p as l,k as n,q as s,V as w,u as a,Q as c,R as i,O as B,X as f,U as _,y,r as P,j as b}from"./vendor-vue-PDoWeq1C.js";import{d as C,F as R,cX as F}from"./index-DhFCplo6.js";import{u as I}from"./usePermitUpdateBackToReview-COT2V9Mo.js";import{C as S}from"./CustomSectorPanel-bTQesIQD.js";import{f as V}from"./featureRefs-BSwYrFbx.js";import"./vendor-bootstrap-Viisri9i.js";import"./analyte-BoZoCINr.js";import"./crudFactory-CN7O7yY6.js";import"./useReqsetFeatureOptions-BD8-GVj7.js";import"./FeatureSearchInput.vue_vue_type_script_setup_true_lang-BuMwcAt9.js";import"./SearchDropdown-BYqbLH74.js";import"./useDropdownPlacement-lfA0lqo8.js";import"./useDebouncedSearch-DL2iYZ-D.js";import"./AnalyteSearch-9L6_uH7h.js";import"./BMPSearch.vue_vue_type_script_setup_true_lang-mp9dVCJQ.js";import"./bmps-1jv0ACkc.js";import"./TiptapEditor-C6MoUvUb.js";import"./vendor-tiptap-CH7O_0nC.js";import"./useEffectiveAnalyteOptions-EDBpzVk8.js";import"./permit-DoNLdWmE.js";import"./permitIdentification-Cx1844f8.js";import"./permitStatusKeys-CfdG60YV.js";const M={class:"container-fluid p-4 vh-100 d-flex flex-column"},N={class:"plan-builder-sect-hdr flex-grow-1 overflow-hidden"},q={class:"col-md-10 col-lg-8 d-flex flex-column h-100"},A={key:0,class:"text-center p-4"},T={key:0,class:"alert alert-info flex-shrink-0"},L={class:"flex-grow-1 bg-white rounded shadow overflow-auto"},j={class:"mt-3 flex-shrink-0 text-end"},ie=g({__name:"CustomSectorsView",setup(U){const d=y(),o=C(),{goBackToReview:v}=I(),u=P(!0),{featuresWithoutBmps:r}=F({reqset:()=>{var t;return(t=o.selectedPlan)==null?void 0:t.reqset},map:()=>{var t;return(t=o.selectedPlan)==null?void 0:t.map},excludedFeatures:()=>{var t;return(t=o.selectedPlan)==null?void 0:t.excludedFeatures}}),h=b(()=>r.value.map(t=>V(t,o.featureKeyToName)));return k(async()=>{var m,p;const e=(Array.isArray(d.params.planId)?d.params.planId[0]:d.params.planId)||((m=o.selectedPlan)==null?void 0:m.id);if(!e){u.value=!1;return}if(((p=o.selectedPlan)==null?void 0:p.id)!==e)try{await o.load(e)}catch(x){console.error("Failed to load plan for custom sectors:",x)}u.value=!1}),(t,e)=>(l(),n("div",M,[s("div",N,[s("div",q,[e[4]||(e[4]=s("div",{class:"text-center mb-4 flex-shrink-0"},[s("h2",null,"Custom Sectors & BMPs"),s("p",{class:"text-muted"},"Add features, tests, and BMPs not covered by your permit's standard rules.")],-1)),u.value?(l(),n("div",A,[...e[0]||(e[0]=[s("span",{class:"spinner-border",role:"status","aria-hidden":"true"},null,-1),s("p",{class:"mt-2"},"Loading plan...",-1)])])):(l(),n(w,{key:1},[a(r).length>0?(l(),n("div",T,[e[1]||(e[1]=s("i",{class:"bi bi-info-circle me-2"},null,-1)),c(" "+i(a(r).length)+" feature"+i(a(r).length===1?"":"s")+" still need"+i(a(r).length===1?"s":"")+" a BMP: ",1),s("strong",null,i(h.value.join(", ")),1),e[2]||(e[2]=c(". Add a sector below (or use an existing one), then check the feature under its BMPs section to cover it. ",-1))])):B("",!0),s("div",L,[f(S)])],64)),s("div",j,[f(R,{onClick:a(v),"icon-right":"fas fa-arrow-right"},{default:_(()=>[...e[3]||(e[3]=[c(" Back to Review ",-1)])]),_:1},8,["onClick"])])])])]))}});export{ie as default};

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.