PageSourceSearch

https://tabeebuk.com/assets/SelectSpecialty-DzuArpzx.js

js tabeebuk.com collected 2026-10-07 17:44:30 UTC 3,335 bytes, 1 lines download raw bytes

1import{a as g}from"./vendor-axios-BCn5QfZZ.js";import{c as o,o as a,Q as y,t as b,H as v,d as i,v as c,F as r,D as p,G as u,a3 as m,a1 as f,a2 as k,r as M,X as C}from"./vendor-vue-XmKhXkwR.js";import{_ as L}from"./log-IsoSbb_M.js";import{_ as h}from"./_plugin-vue_export-helper-DlAUqK2U.js";const x={},w={class:"loader"},I=y('<figure class="iconLoaderProgress" data-v-43128cb4><div class="logo-container" data-v-43128cb4><img src="'+L+'" alt="tabeebuk logo" class="logo" data-v-43128cb4></div><svg class="iconLoaderProgressFirst" width="120" height="120" data-v-43128cb4><circle cx="60" cy="60" r="50" data-v-43128cb4></circle></svg><svg class="iconLoaderProgressSecond" width="120" height="120" data-v-43128cb4><circle cx="60" cy="60" r="50" data-v-43128cb4></circle></svg></figure>',1),B=[I];function D(s,t){return a(),o("div",w,B)}const F=h(x,[["render",D],["__scopeId","data-v-43128cb4"]]),P={components:{Loader:F},props:{initialSpecialtyId:{type:Number,default:null},closeModal:{type:Function,required:!0}},data(){return{specialties:[],selectedSpecialty:null,loading:!0}},computed:{...k("booking",["specialty","step"]),firstSpecialties(){return this.specialties.slice(0,3)}},created(){this.fetchSpecialties()},methods:{...f("booking",["setSpecialty","setStep"]),fetchSpecialties(){this.loading=!0,g.get("api/specialties").then(s=>{this.specialties=s.data.data,this.initialSpecialtyId&&(this.selectedSpecialty=this.specialties.find(t=>t.id===this.initialSpecialtyId)||null),this.loading=!1}).catch(s=>{console.error("Error fetching specialties:",s),this.loading=!1})},handleSpecialtyChange(){this.setSpecialty(this.selectedSpecialty)},nextStep(){this.setSpecialty(this.selectedSpecialty),this.setStep(2)},handleClose(){this.closeModal()}}},V={class:"booking-step container"},N={class:"specialties-radio"},j=["id","value"],E={class:"radio-tile"},O={class:"radio-label"},U={for:"specialty"},$=["value"],q={class:"buttons"},z=["disabled"];function G(s,t,d,Q,l,n){const S=M("Loader");return a(),o("div",V,[l.loading?(a(),b(S,{key:0})):(a(),o("form",{key:1,onSubmit:t[4]||(t[4]=v((...e)=>n.nextStep&&n.nextStep(...e),["prevent"]))},[i("label",null,c(s.$t("booking.selectSpecialty")),1),i("div",N,[(a(!0),o(r,null,p(n.firstSpecialties,(e,R)=>(a(),o("div",{key:e.id,class:"radio-inputs"},[i("label",null,[u(i("input",{type:"radio",id:e.id,value:e,"onUpdate:modelValue":t[0]||(t[0]=_=>l.selectedSpecialty=_),class:"radio-input"},null,8,j),[[C,l.selectedSpecialty]]),i("span",E,[i("span",O,c(e["name_"+s.$i18n.locale]),1)])])]))),128))]),i("label",U,c(s.$t("booking.orChooseDropdown")),1),u(i("select",{id:"specialty","onUpdate:modelValue":t[1]||(t[1]=e=>l.selectedSpecialty=e),onChange:t[2]||(t[2]=(...e)=>n.handleSpecialtyChange&&n.handleSpecialtyChange(...e))},[(a(!0),o(r,null,p(l.specialties,e=>(a(),o("option",{key:e.id,value:e},c(e["name_"+s.$i18n.locale]),9,$))),128))],544),[[m,l.selectedSpecialty]]),i("div",q,[i("button",{type:"button",class:"cancel",onClick:t[3]||(t[3]=(...e)=>d.closeModal&&d.closeModal(...e))},c(s.$t("cancel")),1),i("button",{type:"submit",class:"next",disabled:!l.selectedSpecialty},c(s.$t("next")),9,z)])],32))])}const H=h(P,[["render",G],["__scopeId","data-v-4513483d"]]),K=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"}));export{F as L,H as S,K as a};

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.