1"use strict";(self.webpackChunkdirectbids=self.webpackChunkdirectbids||[]).push([[8436],{8436:(e,t,s)=>{s.r(t),s.d(t,{MedicalLicenseEditComponent:()=>m});var i=s(6430),a=s(9627),l=s(5868),r=s(3378),o=s(6752);function c(e){return o.qy`<div class="modal fade"> 2 <div class="modal-dialog modal-dialog-centered modal-fullscreen-sm-down modal-dialog-scrollable" style="max-width:600px;"> 3 <div class="modal-content mx-sm-2"> 4 <div class="modal-header"> 5 <h5>Texas Medical Salvage License</h5> 6 <button type="button" class="btn-close" data-bs-dismiss="modal"></button> 7 </div> 8 <div class="modal-body"> 9 <form id="medicalLicenseFrm" class="labels-sm-125px" iautocomplete="off"> 10 <!--<p>Your new Texas Medical Salvage License will be verified within the next 48 hours. It will remain with status "Waiting Approval". You won't be able to do further changes. Once verified, it will become Active (approved) or Rejected.</p> 11 <p>If your license becomes Rejected, you will be able to do further changes.</p> 12 <p><b>Important:</b> Your profile might have multiple licenses for historical reasons. However, only one license can be Active, which will be used for your Bids and Invoices. Any previous Active License will be inactivated.</p> 13 --> 14 <div class="row mb-2 gx-2"> 15 <label class="col-form-label">License Number</label> 16 <div class="col"> 17 <input type="text" name="licenseNumber" class="form-control" /> 18 </div> 19 </div> 20 21 <div class="row mb-2 gx-2"> 22 <label class="col-form-label">Expiration Date</label> 23 <div class="col"> 24 <input type="text" name="expirationDate" class="form-control" /> 25 </div> 26 </div> 27 28 <div class="row mb-2 gx-2"> 29 <label class="col-form-label">Form</label> 30 <div class="col"> 31 <input type="file" name="file" accept=".pdf" class="form-control" /> 32 <p class="small form-text mb-2"> 33 Please enclose your signed Medical Salvage License Form (PDF) here.<br/> 34 </p> 35 </div> 36 </div> 37 38 <div class="form-check mb-2"> 39 <label> 40 <input type="checkbox" name="confirmed" class="form-check-input" value="1" /> 41 <span class="form-check-label"> 42 I ${e.userInfo.firstName} ${e.userInfo.lastName}, verify under penalty of law that the information provided regarding 43 Texas Medical Salvage License is true and correct. 44 </span> 45 </label> 46 </div> 47 48 <div class="alert alert-danger alert-dismissible fd fd-out fd-hide fw-semibold"> 49 <div></div> 50 <button type="button" class="btn-close"></button> 51 </div> 52 </form>
53 </div> 54 <div class="modal-footer"> 55 <button type="button" class="btn btn-secondary me-auto" data-bs-dismiss="modal">Close</button> 56 <button type="submit" form="medicalLicenseFrm" class="btn btn-primary"> 57 <span class="spinner-border spinner-border-sm" style="display: none;"></span> 58 Save 59 </button> 60 61 </div> 62 </div> 63 </div> 64 </div>`}var n=s(8971),d=s(7579);let m=class extends l.H{constructor(e){super(c,{destroyOnClose:!0}),this._core=e,this.callbacks=new d.n}destroy(){this._expiration?.destroy(),super.destroy()}get isCreate(){return this._isCreate}beforeShow(e){e||this.reset(),this.isCreate||(this._formHelper.setValues(this._data),this._expiration.setDate(new Date(this._data.expirationDate)))}reset(){this._formHelper.reset(),this._formHelper.hideAlert()}editNew(e,t){this._isCreate=!0,this._core.apiGet("/account/userinfo",{success:e=>{this.userInfo=e,this.show()}})}edit(e,t,s){this._id=e,this._isCreate=!1;var i=[{resource:"/account/userinfo"},{resource:`/member/medicallicenses/get/${e}`}];this._core.apiMultiple(i,{success:e=>{this.userInfo=e[0],this._data=e[1],this.show()}})}modalCreated(){const e=this.body.querySelector("form");this._expiration=(0,i.A)(e.elements.expirationDate,{dateFormat:"m/d/Y",allowInput:!0,locale:{firstDayOfWeek:1}}),this._formHelper=new r.V(this._core,{formElement:e,buttonElement:this.footer.querySelector("button[type=submit]"),urlCallback:e=>"/member/medicallicenses/"+(this._isCreate?"create":"update/"+this._id),mode:"formData",scrollableContainer:this.body,rules:[{name:"licenseNumber",required:!0,rules:["max_length[50]"]},{name:"expirationDate",required:!0},{name:"file",required:!0},{name:"confirmed",required:!0}],success:e=>{e.succeeded?(this.callbacks.triggerSuccessCallbacks(e),this._core.showToastSuccess(e.message),this._isCreate=!1,this.close()):this._formHelper.displayError(e.message)},postFormDataCallback:e=>{e.set("expirationDate",(0,n.G0)(this._expiration.selectedDates[0]).toISOString())}})}};var u,b;m=function(e,t,s,i){var a,l=arguments.length,r=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(r=(l<3?a(r):l>3?a(t,s,r):a(t,s))||r);return l>3&&r&&Object.defineProperty(t,s,r),r}([(0,a._G)(),(u=0,b=(0,a.WQ)("ICoreService"),function(e,t){b(e,t,u)}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[Object])],m)}}]);
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.