File: /var/www/html/public/static/js/hookNote-legacy-aa3150cf.js
System.register(["./po-legacy-dfc6c129.js","./vue-router-legacy-a12307c3.js","./message-legacy-10af7c73.js","./index-legacy-42c17c53.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-b444da4a.js","./preload-helper-legacy-f8638e03.js","./vue-i18n.runtime.esm-bundler-legacy-720876b1.js","./index-legacy-c9e20962.js","./_commonjsHelpers-legacy-5498c249.js","./utils-legacy-c0023c33.js","./focus-trap-legacy-631b7396.js","./error-legacy-e98f9e58.js"],(function(e,t){"use strict";var a,i,n,o,s,c,l,r,d,u,m,_,g,f,p,v,h,y,b,I,w,D,C,j;return{setters:[e=>{a=e.getHistoryWeb,i=e.submitNoteFormWeb,n=e.getNoteFormWeb,o=e.exportNotePdfWeb,s=e.yuyueFDF,c=e.getHealthFormDataWeb,l=e.submitHealthFormModelWeb,r=e.zipNotePdfWeb,d=e.queryByIdWeb,u=e.editWeb,m=e.getOpeTherapistsWeb,_=e.createWeb,g=e.getInvoiceNumberWeb,f=e.newInvoiceWeb,p=e.getServiceListWeb,v=e.deleteNoteWeb},e=>{h=e.d,y=e.u},e=>{b=e.b7},e=>{I=e.o},e=>{w=e.r,D=e.A,C=e.c,j=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){const{query:e,params:t}=h();y();const x=w(!1),T=w(""),k=w(""),S=w(!1),N=w(!1),O=w(!1),F=w(!1),A=w(""),L=w(!1),P=w(!1),E=w(!1),W=w(!1),q=w(!1),M=w(""),B=w([]),H=w([]),Y=w([]),R=w([]),V=w(!1),z=D({signal_url:"",form_type:"",note_id:""}),U=D({name:"",id:""}),Z=D({name:"",id:""}),G=w([]),J=w([]),K=D({}),Q=D({});D({});const X=D({}),$=D({}),ee=D({}),te=D({}),ae=D({}),ie=D({}),ne=D({}),oe=D({}),se=D({}),ce=D({}),le=D({}),re=D({}),de=D({}),ue=D({}),me=w([]),_e=D({loacation_id:"",loacation_name:"",Client_name:"",Client_id:"",date:"",time:"",service_name:"",Therapist_name:"",comment:"",During:60,signal_image:"",description_type:"Massage",description_type1:"",Invoice_Number:"",hstValue:0,total:0,include_tax:"N",is_tax:"Y",is_tax1:!0,r_ac_name:"",r_ac_register:"",name1:"",rmt_register:"",signal_image5:"",receive:"",invoice_due_date:"",invoice_type:"normal",note_id:"",date1:""}),ge=D({SignatureValue:"Please sign in the mini program",time:"",note_id:"",signal_url1:"",signal_url2:"",signal_desc1:"",signal_desc2:"",form_type:"",sensitived_url:"",sensitived_desc:"",ougoing_url1:"",ougoing_url2:"",ougoing_url3:"",ougoing_url4:"",ougoing_url5:"",ougoing_desc1:"",ougoing_desc2:"",ougoing_desc3:"",ougoing_desc4:"",ougoing_desc5:"",userId:"",formInfo1:"",formInfo2:"",formInfo3:"",formInfo4:"",formInfo5:"",imgView:"",service_name:"",Therapist_name:"",id:""}),fe=D({name:"",today_date:"",hear_about:"",chief_complaint:"",rashes_bruise:!1,address:"",Birth:"",Code_ZIP:"",Occupation:"",Phone:"",Work_Phone:"",Physician:"",Phone1:"",City:""}),pe=D({plan:"",date:"",daily_living:"",treatment_goal:"",focus_treatment:"",frequency:"",duration:"",performed:"",assessments:"",schedule:"",responses:"",recommended:"",hydrotherapy:"",contraindications:"",referrals:"",discussed_with:"",treatment_plan:"",checkedCities:""}),ve=D({notes:"",date:"",time:"",duration:"",fee:"",assessment:"",therapist:"",findings:"",feedback:"",self_care:"",timeType:"",durationType:"",receivedType:""}),he=D({name:"",name1:"",indication:"",client_name:"",date:"",checkedCities:""}),ye=D({date1:"",date2:"",date3:"",date4:"",date5:""}),be=w([{id:1,text:"Yes",value:"yes",is_selected:0},{id:2,text:"No",value:"no",is_selected:0}]),Ie=w([{id:1,text:"Yes",value:"yes",is_selected:0},{id:2,text:"No",value:"no",is_selected:0}]),we=w([{id:1,text:"am",value:"am",is_selected:0},{id:2,text:"pm",value:"pm",is_selected:0}]),De=w([{id:1,text:"min.",value:"min",is_selected:0},{id:2,text:"hr.",value:"hr",is_selected:0}]),Ce=w([{value:"Y",text:"Y"},{value:"N",text:"N"}]),je=w([{id:1,name:"Chest Wall Muscles (not including breasts)",is_selected:0},{id:2,name:"Breast (s)",is_selected:0},{id:3,name:"Buttocks (gluteal muscles)",is_selected:0},{id:4,name:"Upper Inner Thigh(s)",is_selected:0}]),xe=w([{id:1,name:"back",is_selected:0},{id:2,name:"neck",is_selected:0},{id:3,name:"shoulders",is_selected:0},{id:4,name:"face",is_selected:0},{id:5,name:"arm L R",is_selected:0},{id:6,name:"leg L R",is_selected:0},{id:7,name:"hip area",is_selected:0},{id:8,name:"abdominals",is_selected:0},{id:9,name:"chest",is_selected:0},{id:10,name:"breast",is_selected:0},{id:11,name:"other (list)",is_selected:0}]),Te=w([{id:1,name:"Swedish",is_selected:0},{id:2,name:"Frictions",is_selected:0},{id:3,name:"deep facial",is_selected:0},{id:4,name:"trigger points",is_selected:0},{id:5,name:"stretch",is_selected:0},{id:6,name:"intra-oral",is_selected:0},{id:7,name:"Breast",is_selected:0},{id:8,name:"Hydrotherapy",is_selected:0},{id:9,name:"joint mobilization grade: ",is_selected:0},{id:10,name:"other (list) ",is_selected:0}]),ke=w([{id:1,text:"Yes",value:"yes",is_selected:0},{id:2,text:"No",value:"no",is_selected:0}]),Se=w([{id:1,name:"back",is_selected:0},{id:2,name:"neck",is_selected:0},{id:3,name:"shoulders",is_selected:0},{id:4,name:"face",is_selected:0},{id:5,name:"arm L R",is_selected:0},{id:6,name:"leg L R",is_selected:0},{id:7,name:"gluteus",is_selected:0},{id:8,name:"abdominals",is_selected:0},{id:9,name:"chest",is_selected:0},{id:10,name:"breast",is_selected:0},{id:11,name:"other (list)",is_selected:0}]),Ne=w([{id:1,value:"Massage",name:"Massage"},{id:2,value:"Acupuncture",name:"Acupuncture"},{id:3,value:"Other",name:"Other"}]),Oe=w([{id:1,price:0,spend_time:"",treatment_date:""}]);D({});const Fe=D({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),Ae=D({total:0,pageSize:10,currentPage:1,background:!0,pageSizes:[10,25,50,100]}),Le=w([{value:"normal",text:"Normal"},{value:"third_Pay",text:"Third Pay"},{value:"gift",text:"Gift"}]),Pe=D({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""});async function Ee(){k.value=localStorage.getItem("clinicIdOverall"),x.value=!0;const{data:t}=await a(Object.assign(K,{clinic_id:k,pageSize:Ae.pageSize,page:Ae.currentPage}));B.value=t.data,t.data.length>0&&2==e.help&&Me(B.value[0]),Ae.total=t.total,x.value=!1}async function We(e){const t={detail:"",imageurl:""},a={detail:""};if("informed"==ge.form_type){const e={information:ge.time,signal_desc1:ge.signal_desc1,signal_desc2:ge.signal_desc2},a={signal_url1:ge.signal_url1,signal_url2:ge.signal_url2};t.detail=e,t.imageurl=a}if("treatment_plan"==ge.form_type){const e={pendingProcessing:Se,information:pe};a.detail=e}if("treatment_note"==ge.form_type){const e={information:ve,usedData:Te,areasData:xe};a.detail=e}if("sensitived"==ge.form_type){const e={information:he,initialData:je,sensitived_desc:ge.sensitived_desc},a={signal_url1:ge.sensitived_url,signal_url2:ge.ougoing_url1,signal_url3:ge.ougoing_url2,signal_url4:ge.ougoing_url3,signal_url5:ge.ougoing_url4,signal_url6:ge.ougoing_url5};t.detail=e,t.imageurl=a}if("ougoing"==ge.form_type){const e={ougoingArr:ye,ougoing_desc1:ge.ougoing_desc1,ougoing_desc2:ge.ougoing_desc2,ougoing_desc3:ge.ougoing_desc3,ougoing_desc4:ge.ougoing_desc4,ougoing_desc5:ge.ougoing_desc5},a={signal_url2:ge.ougoing_url1,signal_url3:ge.ougoing_url2,signal_url4:ge.ougoing_url3,signal_url5:ge.ougoing_url4,signal_url6:ge.ougoing_url5};t.detail=e,t.imageurl=a}let n="";"treatment_plan"==ge.form_type||"treatment_note"==ge.form_type?n=a:"informed"!=ge.form_type&&"sensitived"!=ge.form_type&&"ougoing"!=ge.form_type||(n=t);const{data:o}=await i(Object.assign(de,{note_id:ge.note_id,form_type:ge.form_type,data_row:n}));1==o.code?1==e&&(Ee(),F.value=!1,b({type:"success",message:o.msg})):b({type:"error",message:o.msg})}async function qe(e,t){T.value=e,ge.id=e.id,ge.note_id=e.id,ge.form_type=t;const{data:a}=await n(Object.assign(re,{note_id:e.id,form_type:t}));1==a.code?(F.value=!0,"informed"==ge.form_type?(a.data.content?(ge.time=a.data.content.information,ge.signal_desc1=a.data.content.signal_desc1,ge.signal_desc2=a.data.content.signal_desc2):ge.time="",ge.signal_url1=a.data.signal_url1,ge.signal_url2=a.data.signal_url2):"treatment_plan"==ge.form_type?a.data.content?(Object.keys(a.data.content.information).map((e=>{pe[e]=a.data.content.information[e]})),Se.value=a.data.content.pendingProcessing):(Object.keys(pe).map((e=>{pe[e]=""})),Se.value.forEach(((e,t)=>{e.is_selected=0}))):"treatment_note"==ge.form_type?a.data.content?(xe.value=a.data.content.areasData,Te.value=a.data.content.usedData,Object.keys(a.data.content.information).map((e=>{ve[e]=a.data.content.information[e]}))):(Object.keys(ve).map((e=>{ve[e]=""})),xe.value.forEach(((e,t)=>{e.is_selected=0})),Te.value.forEach(((e,t)=>{e.is_selected=0}))):"sensitived"==ge.form_type?(a.data.content?(je.value=a.data.content.initialData,ge.sensitived_desc=a.data.content.sensitived_desc,Object.keys(a.data.content.information).map((e=>{he[e]=a.data.content.information[e]}))):(Object.keys(he).map((e=>{he[e]=""})),je.value.forEach(((e,t)=>{e.is_selected=0}))),ge.sensitived_url=a.data.signal_url1):"ougoing"==ge.form_type&&(a.data.content?(ge.ougoing_desc1=a.data.content.ougoing_desc1,ge.ougoing_desc2=a.data.content.ougoing_desc2,ge.ougoing_desc3=a.data.content.ougoing_desc3,ge.ougoing_desc4=a.data.content.ougoing_desc4,ge.ougoing_desc5=a.data.content.ougoing_desc5,Object.keys(a.data.content.ougoingArr).map((e=>{ye[e]=a.data.content.ougoingArr[e]}))):(Object.keys(ye).map((e=>{ye[e]=""})),ge.ougoing_desc1="",ge.ougoing_desc2="",ge.ougoing_desc3="",ge.ougoing_desc4="",ge.ougoing_desc5=""),ge.ougoing_url1=a.data.signal_url2,ge.ougoing_url2=a.data.signal_url3,ge.ougoing_url3=a.data.signal_url4,ge.ougoing_url4=a.data.signal_url5,ge.ougoing_url5=a.data.signal_url6)):b({type:"error",message:a.msg})}async function Me(e){ge.note_id=e.id;const{data:t}=await d(Object.assign(ae,{id:e.id}));0==t.code?(ge.formInfo1=t.data.formInfo1,ge.formInfo2=t.data.formInfo2,ge.formInfo3=t.data.formInfo3,ge.formInfo4=t.data.formInfo4,ge.formInfo5=t.data.formInfo5,P.value=!0):b({type:"error",message:t.msg})}async function Be(e){const{data:t}=await v(Object.assign(ne,{generalid:e.id}));0==t.code?(Ee(),b({type:"success",message:t.msg})):b({type:"error",message:t.msg})}async function He(){const{data:e}=await m(Object.assign(oe,{}));1==e.code?G.value=e.data:b({type:"error",message:e.msg})}function Ye(e){const t=Oe.value.findIndex((t=>t.id===e.id));-1!==t&&Oe.value.splice(t,1),Oe.value.forEach(((e,t)=>{e.id=t+1})),Re()}function Re(){let e=0;Oe.value.forEach(((t,a)=>{""!=t.price&&(e=parseFloat(e)+parseFloat(t.price))})),_e.is_tax1?"N"==_e.include_tax?(_e.hstValue=Math.round(.13*parseFloat(e)*100)/100,_e.total=Math.round(1.13*parseFloat(e)*100)/100):"Y"==_e.include_tax&&(_e.hstValue=Math.round(parseFloat(e)/1.13*.13*100)/100,_e.total=Math.round(100*parseFloat(e))/100):(_e.hstValue=0,_e.total=Math.round(100*parseFloat(e))/100)}return C((()=>{})),j((()=>{Ee(),async function(){const{data:e}=await p(Object.assign(ue,{used:"Y"}));if(1==e.code){Y.value=e.data;const t=[];Y.value.forEach(((e,a)=>{1==e.is_Selected&&t.push(e.service_name)})),_e.service_name=t.toString()}else b({type:"error",message:e.msg})}(),function(){let t="";e.location_id&&(t=JSON.parse(decodeURIComponent(e.location)),O.value=!0,_e.loacation_name=t.company_name,_e.loacation_id=t.id)}(),A.value=localStorage.getItem("type")})),{searchDetail:Pe,btnSearchPart:function(){Ee()},loading:x,small:q,selectList:["Service Content","Therapist","Clinic Name","Customers","Treatment Date","Start Time","Duration","Invoice","Comment","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"Service Content",prop:"service_name",hide:({checkList:e})=>!e.includes("Service Content")},{label:"Therapist",prop:"name",slot:"Therapist",hide:({checkList:e})=>!e.includes("Therapist")},{label:"Clinic Name",prop:"part_no",slot:"ClinicName",hide:({checkList:e})=>!e.includes("Clinic Name")},{label:"Customers",prop:"customer_product_name",slot:"Customers",hide:({checkList:e})=>!e.includes("Customers")},{label:"Treatment Date",prop:"customer_product_code",slot:"TreatmentDate",hide:({checkList:e})=>!e.includes("Treatment Date")},{label:"Start Time",prop:"item_required_quantity",slot:"StartTime",hide:({checkList:e})=>!e.includes("Start Time")},{label:"Duration",prop:"spend_tims",hide:({checkList:e})=>!e.includes("Duration")},{label:"Invoice",prop:"Invoice",slot:"Invoice",hide:({checkList:e})=>!e.includes("Invoice")},{label:"Comment",prop:"comment",hide:({checkList:e})=>!e.includes("Comment")},{label:"Action",fixed:"right",minWidth:180,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],pagination:Ae,handleSizeChange:function(e){Ae.pageSize=e,Ee()},handleCurrentChange:function(e){Ae.currentPage=e,Ee()},PartList:B,order_date:M,deliverDialog:S,selectClick:function(e){Fe.qo_item_str="";const t=[];e.forEach(((e,a)=>{t.push(e.qo_item_id)})),Fe.qo_item_str=t.toString()},deliverDataArr:Fe,submitNoteForm:We,Form1Edit:qe,formDialog:F,loadPDF:async function(e,t){ge.note_id=e.id;const{data:a}=await o(Object.assign(X,{note_id:e.id,form_type:t}));1==a.code?window.open(s+a.file_path.replace("var/www/html/public","")):b({type:"error",message:a.msg})},formArr:ge,planArr:pe,isData:be,selectedTr:function(e,t){be.value.forEach(((e,t)=>{e.is_selected=0})),e.is_selected=1,pe.discussed_with=e.value},isData1:Ie,selectedTr1:function(e,t){Ie.value.forEach(((e,t)=>{e.is_selected=0})),e.is_selected=1,pe.treatment_plan=e.value},treatedData:Se,coatingRequire:function(e){1==e.is_selected?e.is_selected=0:0==e.is_selected&&(e.is_selected=1)},noteArr:ve,DurationData:De,TimeData:we,receivedData1:ke,usedData1:Te,areasData1:xe,coatingRequire1:function(e){1==e.is_selected?e.is_selected=0:e.is_selected=1},coatingRequire2:function(e){1==e.is_selected?e.is_selected=0:e.is_selected=1},onReceived:function(e,t){ke.value.forEach(((e,t)=>{e.is_selected=0})),e.is_selected=1,ve.receivedType=e.value},onDuration:function(e,t){De.value.forEach(((e,t)=>{e.is_selected=0})),e.is_selected=1,ve.durationType=e.value},onTime:function(e,t){we.value.forEach(((e,t)=>{e.is_selected=0})),e.is_selected=1,ve.timeType=e.value},sensitivedArr:he,initialData:je,btnInitia:function(e){1==e.is_selected?e.is_selected=0:e.is_selected=1},ougoingArr:ye,healthDialog:L,HealthFrom:async function(e){ge.userId=e.userId,x.value=!0;const{data:t}=await c(Object.assign($,{customer_id:e.userId}));1==t.code&&(J.value=t.model.health_info,H.value=t.model.information,Object.keys(t.model.information).map((e=>{fe[e]=t.model.information[e]})),L.value=!0,x.value=!1)},infoData:H,type:A,health_info:J,onHealth:function(e,t){1==t.is_selected?t.is_selected=0:0==t.is_selected&&(t.is_selected=1)},btnHealthConfirm:async function(e){const t={information:fe,health_info:J.value};x.value=!0;const{data:a}=await l(Object.assign(ee,{customer_id:ge.userId,data_row:t}));1==a.code&&(b({type:"success",message:a.msg}),L.value=!1,x.value=!1)},photosDialog:P,btnImage:Me,btnAddForm:function(){He(),O.value=!0},btnZip:async function(e){ge.note_id=e.id;const{data:t}=await r(Object.assign(te,{note_id:e.id}));1==t.code?window.open(s+t.file_path.replace("var/www/html/public","")):b({type:"error",message:t.msg})},uploadSlotFile1:function(e,t,a){ge.formInfo1=s+e.data.file_path.replace("var/www/html/public","")},uploadSlotFile2:function(e,t,a){ge.formInfo2=s+e.data.file_path.replace("var/www/html/public","")},uploadSlotFile3:function(e,t,a){ge.formInfo3=s+e.data.file_path.replace("var/www/html/public","")},uploadSlotFile4:function(e,t,a){ge.formInfo4=s+e.data.file_path.replace("var/www/html/public","")},uploadSlotFile5:function(e,t,a){ge.formInfo5=s+e.data.file_path.replace("var/www/html/public","")},onClear:function(e){1==e?ge.formInfo1="":2==e?ge.formInfo2="":3==e?ge.formInfo3="":4==e?ge.formInfo4="":5==e&&(ge.formInfo5="")},btnNoteImgConfirm:async function(){const{data:e}=await u(Object.assign(ie,{generalid:ge.note_id,formInfo1:ge.formInfo1,formInfo2:ge.formInfo2,formInfo3:ge.formInfo3,formInfo4:ge.formInfo4,formInfo5:ge.formInfo5}));0==e.code?P.value=!1:b({type:"error",message:e.msg})},imgViewDialog:E,btnViewImg:function(e){ge.imgView=e,E.value=!0},onDelNote:e=>{I.confirm("Are you sure you want to delete this record ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{Be(e)})).catch((()=>{b({type:"info",message:"Canceled"})}))},addFormDialog:O,serviceData:Ne,TherapistsData:G,ClientDialog:W,onSelectLocation:function(){N.value=!0},addForm:_e,onSelClient:function(){W.value=!0},ClientData:U,eventIsNum:function(){_e.Client_id=U.id,_e.Client_name=U.name},addFormConfirm:async function(){const{data:e}=await _(Object.assign(se,{forms:R,clinicId:_e.loacation_id,serviceId:"",therapistId:_e.Therapist_name,userId:_e.Client_id,clinicName:_e.loacation_name,serviceName:_e.service_name,therapistName:_e.Therapist_name,userName:_e.Client_name,update_time:_e.date,comment:_e.comment,begin_time:_e.time,spend_tims:_e.During,currentTime:"",company_id:_e.loacation_id,companyName:_e.loacation_name,noteForms:Q,from_type:"",clear_from:""}));0==e.code?(Ee(),b({type:"success",message:e.msg}),O.value=!1):b({type:"error",message:e.msg})},locationDialog:N,locationData:Z,eventIsNumlocation:function(){_e.loacation_name=Z.name,_e.loacation_id=Z.id},btnAdd:async function(e){Oe.value=[];const t=new Date,a=t.getFullYear(),i=("0"+(t.getMonth()+1)).slice(-2),n=("0"+t.getDate()).slice(-2);x.value=!0;const o={id:1,price:0,spend_time:e.spend_tims,treatment_date:e.update_time.substr(0,10)};Oe.value.push(o);const{data:s}=await g(Object.assign(ce,{clinic_id:k}));1==s.code&&(_e.invoice_type="normal",_e.receive="",_e.description_type=e.services.serviceName,_e.name1=s.config.name,_e.rmt_register=s.config.rmt_register,_e.r_ac_register=s.config.r_ac_register,_e.r_ac_name=s.config.r_ac_name,_e.Invoice_Number=s.invoice_number,me.value=s.during_price_array,_e.signal_image5=s.signal_image[0],_e.loacation_name=e.companyInfo[0].company_name,_e.Client_name=e.customers.firstName+e.customers.lastName,_e.Client_id=e.customers.id,_e.loacation_id=e.companyInfo[0].id,_e.date1=a+"-"+i+"-"+n,Oe.value[0].treatment_date=e.update_time.substr(0,10),Oe.value[0].spend_time=e.spend_tims,_e.note_id=e.id,me.value.forEach(((t,a)=>{t.value==e.spend_tims?Oe.value[0].price=t.price:Oe.value[0].price=me.value[0].price})),Re(),S.value=!0),x.value=!1},items:Oe,InvoiceType:Le,during_price_array:me,onIs_tax:function(e){_e.is_tax=e?"Y":"N",Re()},AddItem:function(){const e={id:Oe.value.length+1,price:0,spend_time:"",treatment_date:_e.date};Oe.value.push(e)},onDelete:e=>{I.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{Ye(e)})).catch((()=>{b({type:"info",message:"Canceled"})}))},IncludeTax:function(e){Re()},onPrice:Re,taxData:Ce,btnDeliverConfirm:async function(){let e="";e="outside"==_e.invoice_type?_e.description_type1:_e.description_type;const{data:t}=await f(Object.assign(le,{customer_id:_e.Client_id,company_id:_e.loacation_id,invoice_type:_e.invoice_type,invoice_date:_e.date,invoice_due_date:_e.invoice_due_date,is_tax:_e.is_tax,description_type:e,signal_image:_e.signal_image5,items:Oe,include_tax:_e.include_tax,invoice_number:_e.Invoice_Number,receive_message:_e.receive,note_id:_e.note_id}));1==t.code?(Ee(),S.value=!1,b({type:"success",message:t.msg})):b({type:"error",message:t.msg})},disabledBeforeToday:function(e){const t=new Date;return t.setHours(0,0,0,0),e.getTime()>t.getTime()},duringPrice:function(e,t){t.spend_time=e,e?me.value.forEach(((a,i)=>{a.value==e&&(t.price=a.price)})):t.price=0,Re()},autographDialog:V,openAutograph:function(e,t){z.signal_url=t,z.form_type=e,z.note_id=ge.note_id,We(2),V.value=!0},eventSignal:function(){qe(ge,ge.form_type)},signalData:z,addServiceData:Y,onServiceAdd:function(e){if(1==Y.value.length)return;1==e.is_Selected?e.is_Selected=0:e.is_Selected=1;const t=[];Y.value.forEach(((e,a)=>{1==e.is_Selected&&t.push(e.name)})),_e.service_name=t.toString()},HealthArr:fe}}))}}}));