1import{a4 as e,u as s,ai as t}from"./BkH5Cm-4.js";import{_ as r}from"./Cl9dOzlM.js";import{_ as o,a as i,b as a,c as l,d as n}from"./UKdtsYQc.js";import{_ as c}from"./D6jx8uFO.js";import{_ as d}from"./BGCaZGJ_.js";import{_ as p}from"./xgzvqnSO.js";import{u}from"./1JZqqY5k.js";import{_ as m,g as h}from"./DlaE8-_u.js";import{K as f,M as b,d as y,y as g,L as v,O as k,aa as x,a4 as I,aj as w,a1 as _,S as j,a8 as E,a6 as R,W as C}from"./DolgjBe8.js";import"./CjRrFzIy.js";import"./B4A4ow0q.js";import"./B95HeuNw.js";import"./CYz5kLHg.js";import"./B8F4kzAZ.js";import"./DG1oKKh8.js";import"./B-PSkSQo.js";import"./Cme6fPS3.js";const P={key:0,class:"text-red-700"},S={key:1,class:"text-red-700"},B={class:"grid grid-cols-3 gap-4 py-4 justify-center"},F={class:"relative"},O={id:"licenses",class:"pb-4"},T={key:0,class:"mr-3"},q={key:1,class:"mr-3"},V={key:2,class:"mr-3"};const L=m({name:"Cebroker",setup(){const e=y([]),{user:t}=s().$auth;return g((async()=>{try{const s=await u("GET","/account/order/report/state-profession-map"+(t.value.professionGroup?`?professionGroup=${t.value.professionGroup}`:""));e.value=s}catch(s){}})),{professions:e,user:t}},data(){return{report:{licenseId:"",state:"",profession:""},selectedOption:"",licenseInput:"",orderId:(this._.provides[e]||this.$route).params.orderId,ceReportParts:[],sliceArr:[],showSuccess:!1,showError:!1}},mounted(){this.$nextTick((()=>{this.setFirstOptionDisabled()}))},methods:{getHubspotUrl:h,async submitForm(){if(0!==this.ceReportParts.length||this.validate()){this.addToReports(),this.showError=!1;await u("POST","/account/order/report",{orderId:Number(this.orderId),feeCode:(this._.provides[e]||this.$route).query.feeCode,ceReportParts:this.ceReportParts}).then((e=>{this.showSuccess=!0})).catch((e=>{this.showError=!0}))}else this.markInvalidFields()},addToReports(){this.validate()?(this.showError=!1,this.sliceArr=this.selectedOption.split(" - "),this.report.profession=this.sliceArr[1],this.report.state=this.sliceArr[0],this.report.licenseId=this.licenseInput,this.report.licenseId.length>=2&&""!==this.report.state&&""!==this.report.profession?(this.ceReportParts.push(this.report),this.report={},this.clearFields()):this.showError=!0):this.markInvalidFields()},validate(){return!(this.licenseInput.length<=2||0===this.selectedOption.length)||(this.showError=!0,!1)},markInvalidFields(){const e=document.getElementById("license-number"),s=document.getElementById("state-profession");e.checkValidity()||(e.style.cssText="border-color: salmon;background-color: #ffeded;"),0===s.value.length&&(s.style.cssText="border-color: salmon;background-color: #ffeded;")},clearFields(){const e=document.getElementById("state-profession");this.licenseInput="",e.value=""},setFirstOptionDisabled(){document.getElementById("state-profession").options[0].setAttribute("disabled","disabled")}}},[["render",function(e,s,u,m,h,y){const g=t,L=r,A=a,U=i,$=n,G=l,D=o,H=c,N=d,K=p;return v(),f(K,null,{default:b((()=>[k(g,{class:"text-text-secondary mb-2",to:"/account/completed"},{default:b((()=>[...s[3]||(s[3]=[I(" Back ",-1)])])),_:1}),x("div",{id:"signup-success",class:w(["bg-green-100 border border-green-400 px-4 py-3 my-4 rounded text-center",!0===h.showSuccess?"block":"hidden"]),role:"alert"},[...s[4]||(s[4]=[x("h6",{class:"font-bold text-green-700"}," Success! ",-1),x("p",{class:"block sm:inline text-green-700"}," CE has been requested. ",-1)])],2),x("div",{id:"signup-error",class:w(["bg-red-100 border border-red-400 px-4 py-3 my-4 rounded text-center",!0===h.showError?"block":"hidden"]),role:"alert"},[s[9]||(s[9]=x("h6",{class:"font-bold text-red-700"}," Error ",-1)),0===h.licenseInput.length||""===h.selectedOption?(v(),_("p",P," Please fill out License and State/Profession Fields ")):(v(),_("p",S,[s[6]||(s[6]=I(" Error requesting CE, please contact our customer service if the problem persists by ",-1)),k(g,{to:y.getHubspotUrl("/support"),target:"_blank",class:"text-red-700"},{default:b((()=>[...s[5]||(s[5]=[I(" clicking here ",-1)])])),_:1},8,["to"]),s[7]||(s[7]=I(" or emailing ",-1)),s[8]||(s[8]=x("a",{href:"mailto:[email protected]",target:"_blank"},"[email protected].",-1))]))],2),x("div",{class:w(!0===h.showSuccess?"hidden":"block")},[s[13]||(s[13]=x("p",{class:"font-bold"}," Request Reporting to CE Broker ",-1)),s[14]||(s[14]=x("p",null,[I(" To request CE Broker reporting please select your state and profession in the drop down menus and enter your license number in the space below. Completions will be reported in up to 10 business days from the date the request was received. If you do not see your state and/or profession listed you can self-report your completion at "),x("a",{href:"https://cebroker.com/",target:"_blank"},"www.CEBroker.com.")],-1)),x("div",null,[x("div",B,[x("div",null,[s[10]||(s[10]=x("label",{class:"font-bold text-sm text-gray-400"},"State License Number",-1)),k(L,{id:"license-number",modelValue:h.licenseInput,"onUpdate:modelValue":s[0]||(s[0]=e=>
1h.licenseInput=e),class:"py-2.5",name:"license",placeholder:"License number",type:"text",minlength:"2",required:""},null,8,["modelValue"])]),x("div",null,[s[11]||(s[11]=x("label",{class:"font-bold text-sm text-gray-400"},"State/Profession",-1)),x("div",F,[k(D,{id:"state-profession",modelValue:h.selectedOption,"onUpdate:modelValue":s[1]||(s[1]=e=>h.selectedOption=e),class:"p-1 focus:ring-2 focus:outline-none focus:ring-opacity-50"},{default:b((()=>[k(U,{variant:"checkout","select-icon":"chevron-down","select-icon-variant":"signup"},{default:b((()=>[k(A,{placeholder:"Licensing Board"})])),_:1}),k(G,null,{default:b((()=>[(v(!0),_(j,null,E(m.professions,(e=>(v(),f($,{key:e,value:e,class:"justify-start"},{default:b((()=>[I(R(e),1)])),_:2},1032,["value"])))),128))])),_:1})])),_:1},8,["modelValue"])])]),x("button",{class:"text-left mt-2",onClick:s[2]||(s[2]=(...e)=>y.addToReports&&y.addToReports(...e))},[k(H,{class:"text-text-secondary text-xl",name:"plus"})])]),x("div",O,[(v(!0),_(j,null,E(h.ceReportParts,(e=>(v(),_("div",{key:e.id},[e.licenseId?(v(),_("span",T,"License:"+R(e.licenseId),1)):C("",!0),e.state?(v(),_("span",q,"State: "+R(e.state),1)):C("",!0),e.profession?(v(),_("span",V,"Profession: "+R(e.profession),1)):C("",!0)])))),128))]),k(N,{variant:"ctaPrimary",onClick:y.submitForm},{default:b((()=>[...s[12]||(s[12]=[I(" Report to CE Broker ",-1)])])),_:1},8,["onClick"])])],2)])),_:1})}],["__scopeId","data-v-9f52c7e0"]]);export{L as default}; 2//# sourceMappingURL=Dm4qrYTI.js.map
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.