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/hookinvoiceConfig-legacy-500b8e92.js
System.register(["./po-legacy-522b679b.js","./vue-router-legacy-a12307c3.js","./message-legacy-10af7c73.js","./index-legacy-42c17c53.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-8a6cbd06.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,n,o,i,s,c,r,l,m,d,u,p,g,y,h,f,_;return{setters:[e=>{a=e.getCompanyListWeb,n=e.addCompanyWeb,o=e.getInvoiceConfigWeb,i=e.updateInvoiceConfigWeb,s=e.updateEmailConfigWeb,c=e.sendEmailTestWeb,r=e.getUserInfoWeb,l=e.yuyueFDF,m=e.deleteCompanyWeb,d=e.setCompanyDefault},e=>{u=e.d,p=e.u},e=>{g=e.b7},e=>{y=e.o},e=>{h=e.r,f=e.A,_=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){const{query:e,params:t}=u();p(),u();const b=h(!1),v=h(!0),k=h(null);h({start:0,end:0});const w=h(!1),C=h(!1),E=h(!1),j=h(!1),x=h(""),I=f({step:"",invoceGuide:5}),S=h(""),D=h(""),A=h(""),T=h(""),L=h("");h("");const P=h([]),W=h([]),O=f({}),N=f({}),B=f({tableIndex:0,note:"",during:""}),R=f({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:""}),Y=f({smtp_serverv:"",smtp_port:"",from_email:"",email_password:"",comment:"Attached is the invoice for your therapy session at {Your company name}. Thank you for choosing us for your treatment. If you have any concerns or discomfort, feel free to contact us anytime.",comment1:"Attached is the invoice for your therapy session at {Your company name}. Thank you for choosing us for your treatment. If you have any concerns or discomfort, feel free to contact us anytime.",text:"Please write variables in the position where you need to add a name. company name: {{ company_name }} , company phone number: {{ company_phone }}",checked:!1,is_public:"N",flag:!0,msgCorrect:"",msgError:"",cursorStart:-1,selectionStart:"",selectionEnd:"",booking_desc:"Thanks for booking on {{service_date}}, at{{begin_time}} with therapist {{therapist_name}}. Please complete your health history at the following link before your appointment. Ignore if already done.",booking_desc3:"Thanks for booking on {{service_date}}, at{{begin_time}} with therapist {{therapist_name}}. Please complete your health history at the following link before your appointment. Ignore if already done.",booking_desc1:"Thanks for booking on {{service_date}}, at{{begin_time}} with therapist {{therapist_name}}. Please complete your health history at the following link before your appointment. Ignore if already done.",service_date:"",therapist_name:"",ymd:""});f({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""});const z=f({}),F=f({}),H=f({}),q=f({}),K=f({}),$=f({}),G=f({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),U=f({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),M=h([{name:"Setup",id:1},{name:"Email Config",id:2}]),V=f({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:""});async function J(){b.value=!0;const{data:e}=await a(Object.assign(O,{searchKey:V.searchKey,Therapist_id:x.value}));P.value=e.data,b.value=!1}async function Q(e){const{data:t}=await m(Object.assign(F,{company_id:e.id}));1==t.code?(J(),g({type:"success",message:t.msg})):g({type:"error",message:t.msg})}function X(e){var t=Y.comment;t=(t=t.replace(new RegExp("{{company_phone}}","g"),T.value)).replace(new RegExp("{{company_name}}","g"),L.value),Y.comment1=t}function Z(e){var t=Y.booking_desc;t=(t=(t=t.replace(new RegExp("{{service_date}}","g"),Y.service_date)).replace(new RegExp("{{begin_time}}","g"),"14:00")).replace(new RegExp("{{therapist_name}}","g"),Y.therapist_name),Y.booking_desc1=t}async function ee(e){b.value=!0;const{data:t}=await s(Object.assign(N,{smtp_serverv:Y.smtp_serverv,smtp_port:Y.smtp_port,from_email:Y.from_email,email_password:Y.email_password,is_public:Y.is_public,message:Y.comment,booking_message:Y.booking_desc,clinic_id:D}));1==t.code&&2==e&&g({type:"success",message:t.msg})}async function te(e){const{data:t}=await d(Object.assign(F,{company_id:e.id}));1==t.code?(J(),g({type:"success",message:t.msg})):g({type:"error",message:t.msg})}return _((()=>{D.value=localStorage.getItem("clinicIdOverall"),V.type=localStorage.getItem("type"),2==V.type&&(V.role="clinic"),1==V.type&&(V.role="therapists"),J(),async function(e){const{data:t}=await o(Object.assign(H,{clinic_id:D}));1==t.code?(A.value=t.data,W.value=t.data.during_price,Y.smtp_serverv=t.data.emailconfig.smtp_serverv,Y.smtp_port=t.data.emailconfig.smtp_port,Y.from_email=t.data.emailconfig.from_email,Y.email_password=t.data.emailconfig.email_password,Y.is_public=t.data.emailconfig.is_public,Y.ymd=t.ymd,L.value=t.data.companyInfo[0].company_name,T.value=t.data.companyInfo[0].phone,"Y"==t.data.emailconfig.is_public?Y.checked=!0:Y.checked=!1,t.data.emailconfig.message?(Y.comment=t.data.emailconfig.message,X()):Y.comment="Attached is the invoice for your therapy session at  {{company_name}} . Thank you for choosing us for your treatment. If you have any concerns or discomfort, feel free to contact us anytime.",t.data.emailconfig.booking_message?(Y.booking_desc=t.data.emailconfig.booking_message,Z()):Y.booking_desc=Y.booking_desc3):g({type:"error",message:t.msg})}(),4==e.invoceGuide&&(I.step=4),e.help&&(B.tableIndex=e.help),function(){const e=new Date,t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=`${t}-${a}-${n}`;Y.service_date=o,setTimeout((()=>{Z(Y.booking_desc)}),500)}(),async function(){const{data:e}=await r(Object.assign($,{}));0==e.code?Y.therapist_name=e.data.firstName+e.data.lastName:g({type:"error",message:e.msg})}()})),{searchDetail:V,btnSearchPart:function(){J()},loading:b,small:j,selectList:["勾选列","Company","HST#","Name","Postal","Phone","Email","Address","Provice","City","Default","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"Company",prop:"company_name",minWidth:100,hide:({checkList:e})=>!e.includes("Company")},{label:"HST#",prop:"hst",minWidth:100,hide:({checkList:e})=>!e.includes("HST#")},{label:"Name",prop:"first_name",minWidth:100,hide:({checkList:e})=>!e.includes("Name")},{label:"Postal",prop:"postal",minWidth:100,hide:({checkList:e})=>!e.includes("Postal")},{label:"Phone",prop:"phone",minWidth:150,slot:"slotAction",hide:({checkList:e})=>!e.includes("Phone")},{label:"Email",prop:"email",minWidth:120,hide:({checkList:e})=>!e.includes("Email")},{label:"Address",prop:"address",minWidth:120,hide:({checkList:e})=>!e.includes("Address")},{label:"Provice",prop:"state",minWidth:120,hide:({checkList:e})=>!e.includes("Provice")},{label:"City",prop:"city",minWidth:120,hide:({checkList:e})=>!e.includes("City")},{label:"Default",prop:"city",minWidth:60,fixed:"right",slot:"Default",hide:({checkList:e})=>!e.includes("Default")},{label:"Action",fixed:"right",width:200,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],pagination:U,handleSizeChange:function(e){U.pageSize=e,J()},handleCurrentChange:function(e){U.currentPage=e,J()},PartList:P,order_date:S,deliverDialog:w,deliverDataArr:G,btnDeliverConfirm:async function(){const{data:e}=await n(Object.assign(z,{data_row:R}));1==e.code?(J(),E.value=!1,g({type:"success",message:e.msg})):g({type:"error",message:e.msg})},locationData:M,itemArr:B,onSituationArr:function(e){B.tableIndex=e},addLocationDialog:E,btnAdd:function(){Object.keys(R).map((e=>{R[e]=""})),E.value=!0},locationArr:R,EditLocation:function(e){Object.keys(e).map((t=>{R[t]=e[t]})),E.value=!0},btnDellocation:e=>{y.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{Q(e)})).catch((()=>{g({type:"info",message:"Canceled"})}))},during_price:W,onUpdate:async function(e){const{data:t}=await i(Object.assign(q,{date_row:A,action:"config",during_price:W,clinic_id:D}));1==t.code?g({type:"success",message:t.msg}):g({type:"error",message:t.msg})},configData:A,addDuring:function(){C.value=!0},addDuringDialog:C,addDuringConfirm:function(){if(""==B.during)return void g({type:"info",message:"Please Enter During Value"});let e={during:B.during,price:0};W.value.push(e),C.value=!1},EmailConfig:Y,onCheckbox:function(e){Y.is_public=e?"Y":"N"},onEmailConfig:ee,showEye:function(){if("N"==Y.is_public){var e=document.getElementById("ps");v.value?(e.type="text",v.value=!1):(e.type="password",v.value=!0)}},flag:v,onEmailTest:async function(){Y.msgCorrect="",Y.msgError="",b.value=!0;const{data:e}=await c(Object.assign(K,{smtp_serverv:Y.smtp_serverv,smtp_port:Y.smtp_port,from_email:Y.from_email,email_password:Y.email_password}));1==e.code?(Y.msgCorrect=e.result,Y.msgError="",ee(1)):(Y.msgError=e.error,Y.msgCorrect="")},onRestore1:function(){Y.comment="Attached is the invoice for your therapy session at  {{company_name}} . Thank you for choosing us for your treatment. If you have any concerns or discomfort, feel free to contact us anytime.",X(Y.comment)},giveName:function(e){const t=document.getElementById("inputRefId"),a=t.selectionStart,n=t.selectionEnd;setTimeout((()=>{const t=e,o=Y.comment.substring(0,a)+t+Y.comment.substring(n);Y.comment=o,X()}),500)},onBlur:function(e){},inputRef:k,company_phone:T,company_name:L,getComment1:X,onRestoreBooking:function(){Y.booking_desc=Y.booking_desc3,Z(Y.booking_desc)},giveNameB:function(e){const t=document.getElementById("bookingId"),a=t.selectionStart,n=t.selectionEnd;setTimeout((()=>{const t=e,o=Y.booking_desc.substring(0,a)+t+Y.booking_desc.substring(n);Y.booking_desc=o,Z()}),500)},getCommentB:Z,defaultAdress:e=>{y.confirm("Are you sure you want to set this address as the default value",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{te(e)})).catch((()=>{g({type:"info",message:"Canceled"})}))},uploadSlotFile1:function(e,t,a){A.value.chapter_image=l+e.data.file_path.replace("/var/www/html/public","")},processArr:I,onCancel:function(){I.step=""},onNext:function(){4==I.step?(I.step=5,B.tableIndex=1):5==I.step&&(I.step="")}}}))}}}));