HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/hookLicence-4007a069.js
import{getTherapistsDetailWeb as et,addCompanyWeb as it,sendEmailCode as tt,modifyPassword as nt,getUserInfoWeb as at,bandUserInfoWeb as st,getInvitationCodeWeb as ct,userToTherapistsWeb as ot,getServiceListWeb as rt,AddEditServiceWeb as lt,EnabledServiceWeb as dt,getLicenceWeb as ut,copyServicePrice as mt,addEditLicence as ft,customerToClinicsWeb as pt,updateRoleWeb as gt,registerWeb as _t,yuyueFDF as vt,autoServicePriceWeb as yt,AddEditCombinaServiceWeb as ht,deleteCompanyWeb as bt,userCancelTherapistsWeb as wt,userCancelClinicWeb as St,DeleteServiceWeb as xt,deleteLicenceWeb as It}from"./po-dbdb2684.js";import{d as z,u as At}from"./vue-router-a383d220.js";import{b7 as n}from"./message-2472a54a.js";import{o as v}from"./index-81e4a901.js";import{r as c,A as s,o as Ct,O as Dt}from"./runtime-core.esm-bundler-6128546f.js";import"./index-f0216e7e.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./utils-2ab4f76a.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function Mt(){const{query:g,params:Et}=z(),I=At();z();const h=c(!1),K=c(!1),A=c(!1),G=c(!1),L=c(!1),T=c(!1),C=c(!1),D=c(!1),E=c(!1),W=c(!1),H=c(!1),Q=c(""),F=c(""),B=c(""),V=c([]),M=c([]),X=c([]),U=c([]),S=c([]),Y=c([]),Z=s({}),$=s({}),ee=s({}),ie=s({}),te=s({}),ne=s({}),ae=s({}),se=s({}),ce=s({}),oe=s({}),re=s({}),le=s({}),de=s({}),ue=s({}),me=s({}),fe=s({}),pe=s({}),ge=s({}),_e=s({}),ve=s({}),ye=c([{value:"Y",text:"Y"},{value:"N",text:"N"}]),u=c([{id:1,service_name:"",amount:"",duration:""}]),P=s({tableIndex:0,note:""}),N=s({service_id:""}),l=s({step:"",invoceGuide:5}),_=s({name:"",phone:"",licence_number:"",licence_name:"",id:"",Description:"",licence_title:"",is_licence:""}),d=s({name:"",phone:"",licence_number:"",licence_name:"",id:"",description:"",licence_title:""}),i=s({r_ac_name:"",r_ac_phone:"",r_ac_register:"",name:"",phone_number:"",rmt_register:"",is_mune:1,gender:1,gender1:-1,phone_value:"001",phoneInfo:"",password:"",flag1:!0,flag2:!0,flag3:!0,flag4:!0,flag5:!0,flag6:!0,emailInfo:"",email:"",re_email:"",Reset:1,New_password:"",Old_password:"",Confirm_password:"",Edit_New_password:"",Edit_Confirm_password:"",is_Edit:1,Email_code:"",userId:"",FirstName:"",LastName:"",openId:"",Invitation_code:"",therapist_id:"",booking_notice_type:"message",from_service_id:"",to_service_id:[],img:"",address:"",is_join:"",join_key:"",join_clinic_name:"",clinic_enabled:""}),x=s({company_name:"",first_name:"",last_name:"",phone:"",email:"",address:"",state:"Ontraio",city:"",hst:"",r_ac:"",rmt_register:"",country:"Canada",postal:"L3S 0E2",company_id:"",number_companyname:""});s({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""});const he=s({}),be=s({}),we=s({}),Se=s({}),xe=s({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),k=s({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),m=c([]),f=c([{id:1,service_name:"",split_rate:"",service_id:""}]),Ie=c([{id:1,text:"Male",value:1,is_selected:0},{id:2,text:"Female",value:2,is_selected:0}]),Ae=c([{id:1,text:"Male",value:1,is_selected:0},{id:2,text:"Female",value:2,is_selected:0}]),q=c([{id:1,text:"Mobile SMS",value:"message",is_selected:1},{id:2,text:"Email",value:"email",is_selected:1}]),Ce=c([{id:1,text:"CA/USA(+1)",value:"001"},{id:3,text:"CN(+86)",value:"0086"}]),De=c([{name:"Practice Location",id:1},{name:"Setup",id:2},{name:"Email Config",id:3}]),p=c([{id:1,duration:"30",price:"",default:!1,vip_price:""},{id:2,duration:"60",price:"",default:!1,vip_price:""},{id:3,duration:"90",price:"",default:!1,vip_price:""}]),Ee=c([{id:1,duration:"30",price:"",default:!1,vip_price:""},{id:2,duration:"60",price:"",default:!1,vip_price:""},{id:3,duration:"90",price:"",default:!1,vip_price:""}]),Ne=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"index",type:"index",width:70,hide:({checkList:e})=>!e.includes("index")},{label:"Service Name",prop:"service_name",minWidth:100,hide:({checkList:e})=>!e.includes("Service Name")},{label:"Description",prop:"description",minWidth:100,hide:({checkList:e})=>!e.includes("Description")},{label:"Invoice Start Character",prop:"invoice_title",minWidth:100,hide:({checkList:e})=>!e.includes("Invoice Start Character")},{label:"tax default value ",prop:"invoice_title",minWidth:100,slot:"tax",hide:({checkList:e})=>!e.includes("tax default value ")},{label:"Licence",prop:"licence_service_name",minWidth:100,hide:({checkList:e})=>!e.includes("Licence")},{label:"Additional Services",prop:"licence_service_name",minWidth:100,slot:"AdditionalServices",hide:({checkList:e})=>!e.includes("Additional Services")},{label:"Price",prop:"licence_service_name",minWidth:100,slot:"getPrice",hide:({checkList:e})=>!e.includes("Price")},{label:"Enabled",prop:"is_enabled",minWidth:100,slot:"Enabled",hide:({checkList:e})=>!e.includes("Enabled")},{label:"Action",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],Oe=["index","Service Name","Description","Invoice Start Character","tax default value ","Licence","Additional Services","Price","Enabled","Action"],je=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"index",type:"index",width:70,hide:({checkList:e})=>!e.includes("index")},{label:"Category(Type of Licence)",prop:"licence_name",minWidth:100,hide:({checkList:e})=>!e.includes("Category(Type of Licence)")},{label:"Name",prop:"name",minWidth:100,hide:({checkList:e})=>!e.includes("Name")},{label:"Licence Number",prop:"licence_number",minWidth:100,hide:({checkList:e})=>!e.includes("Licence Number")},{label:"Phone",prop:"phone",minWidth:100,hide:({checkList:e})=>!e.includes("Phone")},{label:"Action",fixed:"right",width:120,slot:"LicenceAction",hide:({checkList:e})=>!e.includes("Action")}],Le=["index","Category(Type of Licence)","Name","Licence Number","Phone","Action"],O=s({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",code:"",clinic_code:""}),r=s({Service_Name:"",Description:"",service_id:"",Licence:"",invoice_title:"",include_tax:"N",is_tax:!1});function Te(){b()}function We(e){k.pageSize=e,b()}function Be(e){k.currentPage=e,b()}async function b(){h.value=!0;const{data:e}=await et(Object.assign(Z,{}));e.code==0&&(i.r_ac_name=e.data.therapistInfo.r_ac_name,i.r_ac_phone=e.data.therapistInfo.r_ac_phone,i.r_ac_register=e.data.therapistInfo.r_ac_register,i.name=e.data.therapistInfo.name,i.phone_number=e.data.therapistInfo.phone_number,i.rmt_register=e.data.therapistInfo.rmt_register,i.gender1=e.data.sex,i.openId=e.data.openId,y()),h.value=!1}const Pe=(e,t)=>{if(e.length>1){const a=e.shift();singleTableRef.value.toggleRowSelection(a,!1)}g.note&&I.push({path:"/crm/yuyue/note",query:{location_id:t.id,location:encodeURIComponent(JSON.stringify(t))}})};function ke(e){P.tableIndex=e}function Re(){Object.keys(x).map(e=>{x[e]=""}),E.value=!0}async function Je(){const{data:e}=await it(Object.assign(he,{data_row:x}));e.code==1?(b(),E.value=!1,n({type:"success",message:e.msg})):n({type:"error",message:e.msg})}function Ge(e){Object.keys(e).map(t=>{x[t]=e[t]}),E.value=!0}async function Fe(e){const{data:t}=await bt(Object.assign(be,{company_id:e.id}));t.code==1?(b(),n({type:"success",message:t.msg})):n({type:"error",message:t.msg})}const Me=e=>{v.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{Fe(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};function Ue(){g.note&&(P.note=g.note),g.invoceService&&(F.value=g.invoceService,i.is_mune=3),g.help&&(i.is_mune=g.help)}function Ye(e){i.is_mune=e,i.Reset=1,i.is_mune==3&&l.step==1?l.step=2:i.is_mune==2&&l.step==2&&(l.step=1)}function qe(e){i.gender==e.value?i.gender=-1:i.gender=e.value}function ze(e){i.gender1==e.value?i.gender1=-1:i.gender1=e.value}function Ke(e){if(e==1){var t=document.getElementById("ps1");i.flag1?(t.type="text",i.flag1=!1):(t.type="password",i.flag1=!0)}if(e==2){var t=document.getElementById("ps2");i.flag2?(t.type="text",i.flag2=!1):(t.type="password",i.flag2=!0)}if(e==3){var t=document.getElementById("ps3");i.flag3?(t.type="text",i.flag3=!1):(t.type="password",i.flag3=!0)}if(e==4){var t=document.getElementById("ps4");i.flag4?(t.type="text",i.flag4=!1):(t.type="password",i.flag4=!0)}if(e==5){var t=document.getElementById("ps5");i.flag5?(t.type="text",i.flag5=!1):(t.type="password",i.flag5=!0)}if(e==6){var t=document.getElementById("ps6");i.flag6?(t.type="text",i.flag6=!1):(t.type="password",i.flag6=!0)}}function He(e){const t=document.getElementById("ps"+e);i.flag1?t.type="password":t.type="text"}function Qe(){i.re_email=i.emailInfo,i.Reset=2,i.is_Edit=1,i.flag1=!0,i.flag2=!0,i.flag3=!0,i.flag4=!0,i.flag5=!0,i.flag6=!0}function Ve(){i.Reset=1}function Xe(){i.is_Edit=2,i.Reset=2,i.flag1=!0,i.flag2=!0,i.flag3=!0,i.flag4=!0,i.flag5=!0,i.flag6=!0}async function Ze(e){const{data:t}=await tt(Object.assign(ee,{user_email:i.re_email}));t.code==1?n({type:"success",message:t.msg}):n({type:"error",message:t.msg})}async function $e(){let e="",t="",a="",o="",R="";if(i.is_Edit==1){if(e=i.New_password,t=i.re_email,a=i.Email_code,o="",R="",i.New_password!=i.Confirm_password){n({type:"error",message:"Two passwords do not match"});return}}else if(i.is_Edit==2&&(t="",a="",R=i.userId,e=i.Edit_New_password,o=i.Old_password,i.Edit_New_password!=i.Edit_Confirm_password)){n({type:"error",message:"Two passwords do not match"});return}const{data:J}=await nt(Object.assign(ie,{userId:R,old_password:o,new_password:e,email:t,key:a}));J.code==1?(n({type:"success",message:J.msg}),i.is_mune=1,i.Reset=1):n({type:"error",message:J.msg})}async function y(){const{data:e}=await at(Object.assign(te,{}));e.code==0?(B.value=localStorage.getItem("type"),i.userId=e.data.id,i.FirstName=e.data.firstName,i.LastName=e.data.lastName,i.phoneInfo=e.data.phone,i.emailInfo=e.data.email,i.gender=e.data.sex,i.phone_value=e.data.phone_country_code,i.therapist_id=e.data.therapist_id,Y.value=e.data.assoicInfo,M.value=e.data.clinic_info,i.openId=e.data.openId,i.Invitation_code=e.data.therapistInfo.Invitation_code,_.is_licence=e.data.is_licence,i.img=e.data.avatarUrl,i.address=e.data.address,i.is_join=e.data.is_join,i.join_key=e.data.join_key,i.join_clinic_name=e.data.join_clinic_name):n({type:"error",message:e.msg})}async function ei(){if(i.booking_notice_type==""){n({type:"error",message:"Please select Booking notice type"});return}const{data:e}=await st(Object.assign(ne,{avatarUrl:i.img,nickName:"",firstName:i.FirstName,lastName:i.LastName,phone:i.phoneInfo,vCode:"",email:i.emailInfo,password:"",openId:"",id:i.userId,sex:i.gender,phone_country_code:i.phone_value,booking_notice_type:i.booking_notice_type,address:i.address}));e.code==1?(n({type:"success",message:e.msg}),y()):n({type:"error",message:e.msg})}async function ii(){const{data:e}=await ct(Object.assign(ae,{therapists_id:i.therapist_id}));e.code==1?(i.Invitation_code=e.data,n({type:"success",message:e.msg})):n({type:"error",message:e.msg})}async function ti(){if(O.code==""){n({type:"error",message:"Please enter the invitation code"});return}const{data:e}=await ot(Object.assign(we,{invitation_code:O.code}));e.code==1?(W.value=!1,n({type:"success",message:e.msg}),y()):n({type:"error",message:e.msg})}function ni(){W.value=!0}async function ai(e){const{data:t}=await wt(Object.assign(Se,{therapists_id:e.id}));t.code==1?(y(),n({type:"success",message:t.msg})):n({type:"error",message:t.msg})}const si=e=>{v.confirm("Are you sure you want to remove the therapist?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{ai(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};async function ci(e){const{data:t}=await St(Object.assign(pe,{clinic_id:e.id}));t.code==1?(y(),n({type:"success",message:t.msg})):n({type:"error",message:t.msg})}const oi=e=>{v.confirm("Are you sure you want to remove the clinic?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{ci(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};async function w(e){const{data:t}=await rt(Object.assign(se,{}));t.code==1?(S.value=t.data,S.value.forEach((a,o)=>{a.is_enabled=="Y"?a.is_enabled=!0:a.is_enabled=!1})):n({type:"error",message:t.msg})}function ri(e){r.Service_Name="",r.Description="",r.service_id="",r.Licence="",r.invoice_title="",r.is_tax=!1,r.include_tax="N",p.value=Ee.value,u.value=[];const t={id:1,service_name:"",amount:"",duration:""};u.value.push(t),j(),D.value=!0}async function li(){const{data:e}=await lt(Object.assign(ce,{service_name:r.Service_Name,description:r.Description,service_id:r.service_id,licence_service_name:r.Licence,during_price_json:p,invoice_title:r.invoice_title,is_tax:r.is_tax,include_tax:r.include_tax,additional_Service:u.value}));e.code==1?(w(),D.value=!1):n({type:"error",message:e.msg})}async function di(e){const{data:t}=await xt(Object.assign(oe,{service_id:e.id}));t.code==1?(w(),n({type:"success",message:t.msg})):n({type:"error",message:t.msg})}const ui=e=>{v.confirm("Are you sure you want to delete this service?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{di(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};async function mi(e){let t="";e.is_enabled?t="Y":t="N";const{data:a}=await dt(Object.assign(re,{service_id:e.id,is_enabled:t}));a.code==1?(w(),n({type:"success",message:a.msg})):n({type:"error",message:a.msg})}async function j(){const{data:e}=await ut(Object.assign(le,{}));e.code==1?U.value=e.data:n({type:"error",message:e.msg})}function fi(e){e.is_selected==1?e.is_selected=0:e.is_selected==0&&(e.is_selected=1);const t=[];q.value.forEach((a,o)=>{a.is_selected==1&&t.push(a.value)}),i.booking_notice_type=t.toString()}function pi(){const e={id:p.value.length+1,duration:"",price:"",default:!1};p.value.push(e)}function gi(e){const t=p.value.findIndex(a=>a.id===e.id);t!==-1&&p.value.splice(t,1),p.value.forEach((a,o)=>{a.id=o+1})}const _i=e=>{v.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{gi(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};function vi(e){T.value=!0,i.from_service_id=e.id}function yi(e){i.to_service_id=e}async function hi(){if(i.to_service_id.length==0){n({type:"error",message:"You haven't selected an option yet"});return}const{data:e}=await mt(Object.assign(de,{from_service_id:i.from_service_id,to_service_id:i.to_service_id}));e.code==1?(T.value=!1,w()):n({type:"error",message:e.msg})}async function bi(){const{data:e}=await ft(Object.assign(ue,{name:d.name,phone:d.phone,licence_number:d.licence_number,licence_name:d.licence_name,licence_id:d.id,description:d.description,licence_title:d.licence_title}));e.code==1?(C.value=!1,j()):n({type:"error",message:e.msg})}function wi(){Object.keys(d).map(e=>{d[e]=""}),d.licence_title="",C.value=!0}function Si(e){Object.keys(e).map(t=>{d[t]=e[t]}),C.value=!0}async function xi(e){const{data:t}=await It(Object.assign(me,{licence_id:e.id}));t.code==1?j():n({type:"error",message:t.msg})}const Ii=e=>{v.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{xi(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};async function Ai(){const{data:e}=await pt(Object.assign(fe,{invitation_code:O.clinic_code}));e.code==1?(L.value=!1,y(),window.location.reload()):n({type:"error",message:e.msg})}function Ci(){L.value=!0}async function Di(e){if(e==B.value){n({type:"info",message:"Already the current identity"});return}if(i.clinic_enabled=="N"&&e==2){n({type:"error",message:"Your clinic deadline has expired"});return}const{data:t}=await gt(Object.assign(ge,{role:e,openId:""}));t.code==603||t.code==604?e==1?(l.step=1,i.is_mune=2):e==0||e==2&&I.push({path:"/crm/yuyue/clinic"}):t.code==200?(localStorage.setItem("type",e),e==1?localStorage.setItem("invoceGuide",1):localStorage.setItem("invoceGuide",""),window.location.reload()):n({type:"error",message:t.msg})}async function Ei(e){const{data:t}=await _t(Object.assign($,{name:_.name,phone:_.phone,licence_number:_.licence_number,licence_name:_.licence_name,description:_.Description,licence_title:_.licence_title}));t.code==0?(y(),localStorage.setItem("type",1),localStorage.setItem("invoceGuide",1),window.location.reload(),n({type:"success",message:t.msg})):n({type:"error",message:t.msg})}function Ni(e,t){if(i.phone_value=="0086")return;if(e=e.replace("(",""),e=e.replace(")",""),e=e.replace("-",""),/[^\d]/g.test(e)){n({type:"error",message:"Please enter the Number"});return}let o="";e.length>0&&(o=e.slice(0,0)+"("+e.slice(0),e.length>3&&(o=o.slice(0,4)+")"+o.slice(4),e.length>6&&(o=o.slice(0,8)+"-"+o.slice(8),e.length>10&&(o=o.substring(0,13))))),t==1&&(i.phoneInfo=o),t==2&&(d.phone=o),t==3&&(_.phone=o)}function Oi(e,t,a){e.code==1&&(i.img=vt+e.data.file_path.replace("var/www/html/public",""))}function ji(){window.open(i.img)}function Li(e,t){p.value.forEach((a,o)=>{a.id!=t.id&&(a.default=!1)})}function Ti(){G.value=!0}function Wi(){localStorage.getItem("invoceGuide")==1&&(l.step=1,i.is_mune=2),g.invoceGuide==1&&(l.step=1,i.is_mune=2),g.booking==1&&(i.is_mune=3)}function Bi(){l.step=""}function Pi(){l.step==1?(l.step=2,i.is_mune=3):l.step==2&&(localStorage.setItem("invoceGuide",""),I.push({path:"/crm/yuyue/locationConfig",query:{invoceGuide:3}}))}function ki(){I.push({path:"/crm/yuyue/invoice",query:{}})}function Ri(){l.step=1}function Ji(e){const t=f.value.findIndex(a=>a.id===e.id);t!==-1&&f.value.splice(t,1),f.value.forEach((a,o)=>{a.id=o+1})}const Gi=e=>{v.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{Ji(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};function Fi(e){const t=m.value.findIndex(a=>a.id===e.id);t!==-1&&m.value.splice(t,1),m.value.forEach((a,o)=>{a.id=o+1})}const Mi=e=>{v.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{Fi(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};function Ui(){const e={id:f.value.length+1,service_name:"",split_rate:"",service_id:""};f.value.push(e)}function Yi(){const e={default:!1,duration:"",id:m.value.length+1,price:"",vip_price:""};m.value.push(e)}function qi(){f.value=[],m.value=[];const e={id:1,service_name:"",split_rate:"",service_id:""};N.service_id="",f.value.push(e),A.value=!0}async function zi(){const{data:e}=await yt(Object.assign(_e,{combina_rows:f.value}));e.code==1?m.value=e.data:n({type:"error",message:e.msg})}async function Ki(){h.value=!0;const{data:e}=await ht(Object.assign(ve,{combina_rows:f.value,id:N.service_id,during_price_json:m.value,severs_arr:S.value}));e.code==1?(h.value=!1,A.value=!1,w()):(h.value=!1,n({type:"error",message:e.msg}))}function Hi(e,t){S.value.forEach((a,o)=>{e==a.value&&(t.service_id=a.id,t.service_name=a.value)})}function Qi(e,t){m.value.forEach((a,o)=>{a.id!=t.id&&(a.default=!1)})}function Vi(e){e.is_combina=="Y"?(N.service_id=e.id,m.value=JSON.parse(JSON.stringify(e.during_price_json)),f.value=JSON.parse(JSON.stringify(e.combina_rows)),A.value=!0):(r.Service_Name=e.service_name,r.Description=e.description,r.service_id=e.id,r.Licence=e.licence_service_name,p.value=JSON.parse(JSON.stringify(e.during_price_json)),r.invoice_title=e.invoice_title,r.is_tax=e.is_tax,r.include_tax=e.include_tax,e.additional_Service?u.value=JSON.parse(JSON.stringify(e.additional_Service)):u.value=[],D.value=!0)}function Xi(e){const t=u.value.findIndex(a=>a.id===e.id);t!==-1&&u.value.splice(t,1),u.value.forEach((a,o)=>{a.id=o+1})}const Zi=(e,t)=>{v.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{Xi(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};function $i(){const e={id:u.value.length+1,service_name:"",amount:"",duration:""};u.value.push(e)}return Ct(()=>{i.clinic_enabled=localStorage.getItem("clinic_enabled"),b(),Ue(),y(),w(),j(),Wi(),localStorage.getItem("from_official")=="therapists"?(l.step=1,i.is_mune=2,localStorage.setItem("from_official","")):localStorage.getItem("from_official")=="user"&&(i.is_mune==4,localStorage.setItem("from_official",""))}),Dt(()=>{localStorage.setItem("invoceGuide","")}),{searchDetail:O,btnSearchPart:Te,loading:h,small:H,selectList:Oe,columns:Ne,pagination:k,handleSizeChange:We,handleCurrentChange:Be,PartList:V,order_date:Q,deliverDialog:K,selectClick:Pe,deliverDataArr:xe,btnDeliverConfirm:Je,locationData:De,itemArr:P,onSituationArr:ke,addLocationDialog:E,btnAdd:Re,locationArr:x,EditLocation:Ge,btnDellocation:Me,formArr:i,btnSubmit:Ei,btnMune:Ye,isData:Ie,selectedTr:qe,selectedTr1:ze,phoneType:Ce,showEye:Ke,btnReset:Qe,btnback:Ve,btnSendEmailCode:Ze,btnEdit:Xe,btnEditPass:$e,changePassword:He,btnSubmitInfo:ei,isData1:Ae,getInvitationCode:ii,JoinDialog:W,JoinTherapistsConfirm:ti,AddTherapists:ni,assoicInfo:Y,onRemove:si,ServiceList:S,severArr:r,btnAddService:ri,AddServiceDialog:D,addServeSubmit:li,onEditService:Vi,onDeleteService:ui,onSwitch:mi,LicenceArr:U,addServiceData:q,onServiceAdd:fi,servePriceData:p,addDuring:pi,onDelDuring:_i,copyDialog:T,onCopy:vi,handleSelectionChange:yi,copySubmit:hi,licenceList:X,columns1:je,selectList1:Le,AddlicenceDialog:C,AddLicense:wi,licenceData:d,addLicenceSubmit:bi,onEditLicence:Si,onDeleteLicence:Ii,JoinClinicConfirm:Ai,JoinClinicDialog:L,AddClinic:Ci,assoicInfoClinic:M,onRemoveClinic:oi,btnRegRole:Di,type:B,licenceFirst:_,btnPhone:Ni,uploadSlotFile1:Oi,viewIMG:ji,btnDefault:Li,licenceIconDialog:G,btnLicence:Ti,processArr:l,onCancel:Bi,onNext:Pi,invoceService:F,ReturnInvoice:ki,typeGuide:Ri,btnAddCombineService:qi,AddCombineDialog:A,combineService:N,serveCombineData:f,serveCombineData1:m,onDelCombine:Gi,addCombine:Ui,addAutoPrice:zi,onDelautoDuring:Mi,addCombineServeSubmit:Ki,CombineServiceName:Hi,addCombine1:Yi,btnDefault1:Qi,AdditionalData:u,onDelAdditional:Zi,addAdditional:$i,taxData:ye}}export{Mt as useEqu};