import{z as N,dh as re,di as ue,dj as ce,dk as me,dl as fe,dm as pe,dn as ge,U as S,bI as he,bU as G,aY as k,aI as ve,b1 as Ce,o as d,c as v,bW as _,w as o,a as t,cz as te,ca as oe,b as n,c3 as le,f as F,V as $,bf as x,bo as u,bZ as Ee,G as y,bY as D,H as A,ap as $e,aW as ke,ak as H,F as O,bV as j,d as c,b_ as W,bX as P,cb as ye,bR as Ve,e as L,dp as we,dq as J,dr as ee,c6 as B,c4 as R,ds as be,bb as xe,d3 as _e,aS as De}from"./index-C-d1zyxd.js";import{u as Se}from"./customizer-BbTPwLan.js";import{m as U}from"./marketingApi-BL7vJ5CG.js";/* empty css              */import{_ as Ne}from"./TitleBreadcrumb.vue_vue_type_style_index_0_lang-zXXjXfG3.js";import{c as K}from"./close-BcCOVtMl.js";import{u as Ae}from"./index-Mqr3LQ-X.js";import{_ as Me}from"./_plugin-vue_export-helper-DlAUqK2U.js";const ne="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%20clip-path='url(%23clip0_417_24547)'%3e%3cpath%20id='Vector'%20d='M9%2011L12%2014L20%206'%20stroke='%23CFCFCF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M20%2012V18C20%2018.5304%2019.7893%2019.0391%2019.4142%2019.4142C19.0391%2019.7893%2018.5304%2020%2018%2020H6C5.46957%2020%204.96086%2019.7893%204.58579%2019.4142C4.21071%2019.0391%204%2018.5304%204%2018V6C4%205.46957%204.21071%204.96086%204.58579%204.58579C4.96086%204.21071%205.46957%204%206%204H15'%20stroke='%23CFCFCF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_417_24547'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",se="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%20clip-path='url(%23clip0_2004_25311)'%3e%3cpath%20id='Vector'%20d='M9%2011L12%2014L20%206'%20stroke='%2300C853'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M20%2012V18C20%2018.5304%2019.7893%2019.0391%2019.4142%2019.4142C19.0391%2019.7893%2018.5304%2020%2018%2020H6C5.46957%2020%204.96086%2019.7893%204.58579%2019.4142C4.21071%2019.0391%204%2018.5304%204%2018V6C4%205.46957%204.21071%204.96086%204.58579%204.58579C4.96086%204.21071%205.46957%204%206%204H15'%20stroke='%2300C853'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2004_25311'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Oe="/assets/icon1-DV_YQtgY.svg",E=Se(),Ue=N(()=>E.actTheme==="GreenTheme"?re.colors.primary:E.actTheme==="PinkTheme"?ue.colors.primary:E.actTheme==="YellowTheme"?ce.colors.primary:E.actTheme==="SeaGreenTheme"?me.colors.primary:E.actTheme==="OliveGreenTheme"?fe.colors.primary:E.actTheme==="SpeechBlueTheme"?pe.colors.primary:ge.colors.primary),Fe=N(()=>E.actTheme==="GreenTheme"?re.colors.secondary:E.actTheme==="PinkTheme"?ue.colors.secondary:E.actTheme==="YellowTheme"?ce.colors.secondary:E.actTheme==="SeaGreenTheme"?me.colors.secondary:E.actTheme==="OliveGreenTheme"?fe.colors.secondary:E.actTheme==="SpeechBlueTheme"?pe.colors.secondary:ge.colors.secondary),je={class:"mt-5"},Be=S({__name:"Statistics",setup(i){let r=k(0),p=k(0);const f=k({state:"Last 7 Days",abbr:7});he(f,w=>{console.log("watch....",w.abbr),e.value=!1,ae(w.abbr)});const s=[{state:"Last 7 Days",abbr:7},{state:"Last 14 Days",abbr:14},{state:"Last Month",abbr:365}],g=N(()=>({chart:{type:"area",height:480,fontFamily:"inherit",foreColor:"#a1aab2",toolbar:{show:!1}},colors:[Ue.value,Fe.value],xaxis:{categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.5,opacityTo:0,stops:[0,80,100]}},dataLabels:{enabled:!1},grid:{show:!0}}));let h={series:[{name:"",data:[]},{name:"",data:[]}]};const l=G();let a=k(""),e=k(!1);ve(()=>{ae(7)});const m=N(()=>(console.log("computed...",l.merchantInfoMutations),l.merchantInfoMutations.login));function Y(){var w=new Date().getTimezoneOffset()/60;return w=-w,w}function b(w){const C=new Date,V=C.getTime();return C.setDate(C.getDate()-(w-1)),{start:C.getTime(),end:V}}function ae(w){if(m.value){const C=b(w),V=Y();U().marketingFlowStatistics(a.value,C.start,C.end,V).then(I=>{console.log("getMarketingFlowStatistics...",I),I.data.series2.forEach(Z=>{}),console.log("data.series11111...",I.data.series2),r.value=ie(I.data.series),p.value=ie(I.data.series2),console.log("totalOrders.value....",r.value),Te(w,I.data)})}}function ie(w){let C=0;return w.forEach(V=>{console.log("it...",V),C=C+V}),C}function Te(w,C){if(h.series[0].data=[],h.series[1].data=[],w==7||w==14){console.log("data.series2...",C.series2),console.log("data.series2222...",C.series2),h.series[0].name="Affiliate Orders",h.series[0].data.push(...C.series),h.series[1].name="Commisions($)",h.series[1].data.push(...C.series2);let V=[];C.xaxis.forEach(M=>{let I=new Date(M),Z=I.getMonth()+1,Pe=I.getDate();M=Z+"."+Pe,V.push(M),console.log("item...",M)}),g.value.xaxis.categories=[...V]}w==365&&([1,2,3,4,5,6,7,8,9,10,11,12].forEach(M=>{let I=Ie(C.statistics,M);h.series[0].name="Affiliate Orders",h.series[1].data.push(I.value2),h.series[1].name="Commisions",h.series[0].data.push(I.value)}),g.value.xaxis.categories=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],console.log("lineChart1....",h)),e.value=!0}function Ie(w,C){let V={date:"",value:0,value2:0,value3:0};return w.forEach(M=>{new Date(M.label).getMonth()+1==C&&(V.date=M.label,V.value=V.value+M.value,V.value2=V.value2+M.value2,V.value3=V.value3+M.value3)}),console.log("param....",V),V}return(w,C)=>{const V=Ce("apexchart");return d(),v(_,{variant:"outlined",class:"overflow-hidden"},{default:o(()=>[t(D,null,{default:o(()=>[t(te,null,{default:o(()=>[t(oe,{style:{padding:"0"}},{title:o(()=>[...C[1]||(C[1]=[n("h4",{class:"mt-1 font-weight-medium"},"Data Analysis",-1)])]),_:1})]),_:1}),t(le),t(F,{class:"d-flex justify-space-between mt-4"},{default:o(()=>[t($,{cols:"18",md:"8"},{default:o(()=>[n("p",null,"Total affiliate orders:"+x(u(r)),1),n("p",null,"Commisions:$"+x(u(p)),1)]),_:1}),t(Ee,{color:"primary",variant:"outlined","hide-details":"",modelValue:f.value,"onUpdate:modelValue":C[0]||(C[0]=M=>f.value=M),items:s,"item-title":"state","item-value":"abbr",label:"Select","persistent-hint":"","return-object":"","single-line":"","update:menu":"changeSlect"},null,8,["modelValue"])]),_:1}),n("div",je,[u(e)?(d(),v(V,{key:0,type:"area",height:"291",options:g.value,series:u(h).series},null,8,["options","series"])):y("",!0)])]),_:1})]),_:1})}}}),Re={class:"customize-header font-weight-medium"},ze={class:"customize-header font-weight-medium"},Ge={class:"customize-header font-weight-medium"},Je={class:"customize-header font-weight-medium"},He={key:0,class:"text-secondary"},We={key:1,class:"text-success"},Ke=S({__name:"CommissionList",setup(i){let r=k(0),p=k({page:1,rowsPerPage:7}),f=ke([]),s=k(!1);const g=G();ve(()=>{l()});const h=N(()=>(console.log("computed...",g.merchantInfoMutations),g.merchantInfoMutations.login));function l(){if(h.value){s.value=!0;const e=U();return console.log(""),e.marketingFlowList(p.value.page,p.value.rowsPerPage).then(m=>{f=m.data.records,r.value=m.data.total,s.value=!1,console.log("marketingFlowList...",f)})}}he(p,e=>{console.log("value....",e),l()},{deep:!0});const a=[{text:"Coupon Code/Link",value:"code",width:150},{text:"Email",value:"email"},{text:"Date",value:"date"},{text:"Commission",value:"commission"}];return(e,m)=>{const Y=Ce("EasyDataTable");return d(),v(_,{variant:"outlined",class:"overflow-hidden card-radius"},{default:o(()=>[t(D,null,{default:o(()=>[t(te,null,{default:o(()=>[t(oe,{style:{padding:"0"}},{title:o(()=>[...m[1]||(m[1]=[n("h4",{class:"mt-1 font-weight-medium"},"Commission List",-1)])]),_:1})]),_:1})]),_:1}),t(le),t(Y,{headers:a,items:u(f),loading:u(s),"table-height":344,"rows-per-page-message":"Rows per page","server-options":u(p),"onUpdate:serverOptions":m[0]||(m[0]=b=>$e(p)?p.value=b:p=b),"table-class-name":"customize-table action-position","theme-color":"rgb(var(--v-theme-secondary))","server-items-length":u(r),border:!1},{"header-code":o(b=>[n("div",Re,x(b.text),1)]),"header-email":o(b=>[n("div",ze,x(b.text),1)]),"header-date":o(b=>[n("div",Ge,x(b.text),1)]),"header-commission":o(b=>[n("div",Je,x(b.text),1)]),"item-email":o(({email:b})=>[n("span",null,x(e.$filters.hideEmailMiddle(b)),1)]),"item-commission":o(({commission:b})=>[b>0?(d(),A("span",He,"+"+x(b),1)):y("",!0),b<0?(d(),A("span",We,"-"+x(b),1)):y("",!0)]),_:1},8,["items","loading","server-options","server-items-length"])]),_:1})}}}),z="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame'%20clip-path='url(%23clip0_2004_24567)'%3e%3cpath%20id='Vector'%20d='M2.25%209C2.25%209.88642%202.42459%2010.7642%202.76381%2011.5831C3.10303%2012.4021%203.60023%2013.1462%204.22703%2013.773C4.85382%2014.3998%205.59794%2014.897%206.41689%2015.2362C7.23583%2015.5754%208.11358%2015.75%209%2015.75C9.88642%2015.75%2010.7642%2015.5754%2011.5831%2015.2362C12.4021%2014.897%2013.1462%2014.3998%2013.773%2013.773C14.3998%2013.1462%2014.897%2012.4021%2015.2362%2011.5831C15.5754%2010.7642%2015.75%209.88642%2015.75%209C15.75%207.20979%2015.0388%205.4929%2013.773%204.22703C12.5071%202.96116%2010.7902%202.25%209%202.25C7.20979%202.25%205.4929%202.96116%204.22703%204.22703C2.96116%205.4929%202.25%207.20979%202.25%209Z'%20stroke='%232C3E50'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M9%206V9'%20stroke='%232C3E50'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M9%2012H9.00615'%20stroke='%232C3E50'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2004_24567'%3e%3crect%20width='18'%20height='18'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",de="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23232;&%23191;&%23158;&%23230;&%23142;&%23165;&%23229;&%23155;&%23190;&%23230;&%23160;&%23135;'%20clip-path='url(%23clip0_2004_24580)'%3e%3cpath%20id='Vector'%20d='M6%2010L10%206'%20stroke='%232C3E50'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M7.33203%203.9976L7.6407%203.64027C8.2659%203.01515%209.11382%202.664%209.99793%202.66406C10.882%202.66413%2011.7299%203.0154%2012.355%203.6406C12.9801%204.2658%2013.3313%205.11373%2013.3312%205.99784C13.3312%206.88194%2012.9799%207.72982%2012.3547%208.35493L11.9987%208.66427'%20stroke='%232C3E50'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M8.66806%2012.0026L8.4034%2012.3586C7.7709%2012.9841%206.91726%2013.3349%206.02773%2013.3349C5.1382%2013.3349%204.28456%2012.9841%203.65206%2012.3586C3.3403%2012.0503%203.09279%2011.6833%202.92387%2011.2787C2.75495%2010.8741%202.66797%2010.44%202.66797%2010.0016C2.66797%209.56317%202.75495%209.12909%202.92387%208.72451C3.09279%208.31992%203.3403%207.95287%203.65206%207.6446L4.0014%207.33594'%20stroke='%232C3E50'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2004_24580'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Le="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23233;&%23148;&%23129;'%20clip-path='url(%23clip0_2025_26175)'%3e%3cpath%20id='Vector'%20d='M5%2013C5%2012.4696%205.21071%2011.9609%205.58579%2011.5858C5.96086%2011.2107%206.46957%2011%207%2011H17C17.5304%2011%2018.0391%2011.2107%2018.4142%2011.5858C18.7893%2011.9609%2019%2012.4696%2019%2013V19C19%2019.5304%2018.7893%2020.0391%2018.4142%2020.4142C18.0391%2020.7893%2017.5304%2021%2017%2021H7C6.46957%2021%205.96086%2020.7893%205.58579%2020.4142C5.21071%2020.0391%205%2019.5304%205%2019V13Z'%20stroke='%232C3E50'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M11%2016C11%2016.2652%2011.1054%2016.5196%2011.2929%2016.7071C11.4804%2016.8946%2011.7348%2017%2012%2017C12.2652%2017%2012.5196%2016.8946%2012.7071%2016.7071C12.8946%2016.5196%2013%2016.2652%2013%2016C13%2015.7348%2012.8946%2015.4804%2012.7071%2015.2929C12.5196%2015.1054%2012.2652%2015%2012%2015C11.7348%2015%2011.4804%2015.1054%2011.2929%2015.2929C11.1054%2015.4804%2011%2015.7348%2011%2016Z'%20stroke='%232C3E50'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M8%2011V7C8%205.93913%208.42143%204.92172%209.17157%204.17157C9.92172%203.42143%2010.9391%203%2012%203C13.0609%203%2014.0783%203.42143%2014.8284%204.17157C15.5786%204.92172%2016%205.93913%2016%207V11'%20stroke='%232C3E50'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2025_26175'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ye={class:"d-flex align-center"},Ze={class:"d-flex align-center"},qe={style:{color:"#252525 !important"}},Qe={class:"btns"},Xe=S({__name:"ApplyAffiliateLinkDialog",setup(i){const r=k(!1),p=k(!1),f=k(!1),s=H("getMarketingUserInfo"),g=()=>{s&&s()};function h(){if(!p.value){f.value=!0;return}const l=U();return console.log("marketing...",l),l.marketingAffiliateLinkApply().then(a=>{console.log("res...",a),r.value=!1,g()})}return(l,a)=>(d(),A(O,null,[t(j,{color:"error",variant:"flat",rounded:"md",location:"top",modelValue:f.value,"onUpdate:modelValue":a[0]||(a[0]=e=>f.value=e)},{default:o(()=>[...a[5]||(a[5]=[c(" I'm Top Center Message ",-1)])]),_:1},8,["modelValue"]),t(W,{modelValue:r.value,"onUpdate:modelValue":a[4]||(a[4]=e=>r.value=e),"max-width":575,activator:"parent"},{default:o(()=>[t(_,null,{default:o(()=>[t(D,null,{default:o(()=>[n("h3",Ye,[a[6]||(a[6]=c("Apply Affiliate Link ",-1)),t(P,{src:u(K),width:32,height:32,class:"close",onClick:a[1]||(a[1]=e=>r.value=!1)},null,8,["src"])]),a[10]||(a[10]=n("p",{class:"mt-4",style:{"font-size":"14px"}},"Welcome to join in JetPrint Affiliate and apply the link, after your audiences register accounts through this link, you'll earn 5% of the cost of products paid at JetPrint by the audiences within 3 years as commission.",-1)),n("div",Ze,[t(ye,{color:"secondary","hide-details":"",modelValue:p.value,"onUpdate:modelValue":a[3]||(a[3]=e=>p.value=e)},{label:o(()=>[n("div",qe,[a[7]||(a[7]=c("l agree to JetPrint's ",-1)),n("a",{class:"text-decoration-underline",onClick:a[2]||(a[2]=Ve(()=>{},["stop"])),target:"_blank",href:"https://jetprintapp.com/affiliate-terms-of-service/"}," Affliate Program Terms of Service")])]),_:1},8,["modelValue"])]),n("div",Qe,[t(L,{class:"mt-4",color:"lightprimary"},{default:o(()=>[...a[8]||(a[8]=[c("Cancel",-1)])]),_:1}),t(L,{class:"mt-4 ml-4",color:"btnBlue",onClick:h},{default:o(()=>[...a[9]||(a[9]=[c("Apply",-1)])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),et={class:"d-flex align-center"},tt={class:"btns"},ot=S({__name:"UnApplyAffiliateLinkDialog",setup(i){const r=k(!1),p=k(!1),f=k(!1),s=H("getMarketingUserInfo"),g=()=>{s&&s()};function h(){f.value=!0;const l=U();return console.log("marketing...",l),l.marketingAffiliateLinkApply().then(a=>{f.value=!1,console.log("res...",a),r.value=!1,g()}).catch(function(a){f.value=!1})}return(l,a)=>(d(),A(O,null,[t(j,{color:"error",variant:"flat",rounded:"md",location:"top",modelValue:p.value,"onUpdate:modelValue":a[0]||(a[0]=e=>p.value=e)},{default:o(()=>[...a[4]||(a[4]=[c(" I'm Top Center Message ",-1)])]),_:1},8,["modelValue"]),t(W,{modelValue:r.value,"onUpdate:modelValue":a[3]||(a[3]=e=>r.value=e),"max-width":575,activator:"parent"},{default:o(()=>[t(_,null,{default:o(()=>[t(D,null,{default:o(()=>[n("h3",et,[a[5]||(a[5]=c("Switch Affiliate Method ",-1)),t(P,{src:u(K),width:32,height:32,class:"close",onClick:a[1]||(a[1]=e=>r.value=!1)},null,8,["src"])]),a[8]||(a[8]=n("p",{class:"mt-4",style:{"font-size":"14px"}},"Since you've applied your coupon code, if you want to apply the affiliate link, the initial code will be invalid, are you sure to continue apply the affiliate link?",-1)),n("div",tt,[t(L,{class:"mt-4",color:"lightprimary",onClick:a[2]||(a[2]=e=>r.value=!1)},{default:o(()=>[...a[6]||(a[6]=[c("Cancel",-1)])]),_:1}),t(L,{class:"mt-4 ml-4",color:"btnBlue",loading:f.value,disable:f.value,onClick:h},{default:o(()=>[...a[7]||(a[7]=[c("Apply",-1)])]),_:1},8,["loading","disable"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),T={UNDER_REVIEW:{text:"审核中",value:1},APPROVED:{text:"审核通过",value:2},REVIEW_REJECTION:{text:"审核驳回",value:3},AFFILIATE_LINK:{text:"链接",value:2},DISCOUNT_CODE:{text:"折扣码",value:1}},lt={class:"toolbox"},at=["src"],it={class:"d-flex align-center ga-2"},nt={class:"d-flex align-center ga-2"},st=["src"],dt={class:"d-flex align-center"},rt={key:0,class:"fontsize12 mt-1"},ut={class:"fontsize12 desc mb-2"},ct=S({__name:"ApplyAffiliateLink",props:{affiliateLink:Object,marketingMethod:Number,customProductNumValid:Boolean,orderAmountValid:Boolean,affiliateLinkValid:Boolean},setup(i){const r=xe([0,1,2,3,4]),p=k("https://jetprintapp.com/app"),f=i;let s=k("");s.value=p.value+"/register?ref="+f.affiliateLink.url,f.marketingMethod==T.DISCOUNT_CODE.value&&(console.log("props.marketingMethod...",f.marketingMethod),console.log("marketingEnum.AFFILIATE_LINK.value...",T.AFFILIATE_LINK.value),r.value=!1);const g=k(!1),{toClipboard:h}=Ae(),l=async()=>{try{await h("https://jetprintapp.com/app/register?ref="+f.affiliateLink.url),g.value=!0}catch(a){console.error(a)}};return(a,e)=>(d(),A(O,null,[t(j,{modelValue:g.value,"onUpdate:modelValue":e[0]||(e[0]=m=>g.value=m),color:"success",timeout:3e3,variant:"flat",rounded:"md",location:"top"},{default:o(()=>[...e[2]||(e[2]=[c("Link copied",-1)])]),_:1},8,["modelValue"]),t(be,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=m=>r.value=m),multiple:""},{default:o(()=>[t(we,{elevation:"0"},{default:o(()=>[i.marketingMethod?(d(),v(J,{key:1,class:"font-weight-medium custom-accordion"},{default:o(()=>[e[5]||(e[5]=c(" Switch Affiliate Link ",-1)),n("div",lt,[e[4]||(e[4]=n("div",{class:"tool"},"Only one affiliate method is allowed to remain.",-1)),i.marketingMethod==u(T).DISCOUNT_CODE.value?(d(),A("img",{key:0,src:u(Le),width:24,height:24},null,8,at)):y("",!0)])]),_:1})):(d(),v(J,{key:0,class:"font-weight-medium custom-accordion"},{default:o(()=>[...e[3]||(e[3]=[c(" Method 1:Apply Affiliate Link ",-1)])]),_:1})),i.affiliateLink.status!=2?(d(),v(ee,{key:2},{default:o(()=>[n("div",it,[e[7]||(e[7]=n("span",null,"Affiliate Link",-1)),n("i",null,[t(B,{"max-width":"334px",activator:"parent",location:"top"},{default:o(()=>[...e[6]||(e[6]=[c("When your audiences sign up through this link and place an order, you will earn a 5% commission of the product cost (this link is limited to three years)",-1)])]),_:1}),t(P,{src:u(z),width:18,height:18},null,8,["src"])])]),t(R,{class:"mt-2",variant:"outlined",modelValue:i.affiliateLink.url,"persistent-placeholder":"",placeholder:"Apply Link","hide-details":"",density:"compact",color:"primary",disabled:""},{"prepend-inner":o(()=>[t(P,{src:u(de),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),t(L,{color:"secondary",class:"mt-2",disabled:!i.affiliateLinkValid},{default:o(()=>[e[8]||(e[8]=c(" Apply Now ",-1)),!i.marketingMethod||i.marketingMethod==null?(d(),v(Xe,{key:0})):(d(),v(ot,{key:1}))]),_:1},8,["disabled"])]),_:1})):y("",!0),i.affiliateLink.status==2?(d(),v(ee,{key:3},{default:o(()=>[n("div",nt,[e[10]||(e[10]=n("span",null,"Affiliate Link",-1)),n("i",null,[t(B,{"max-width":"334px",activator:"parent",location:"top"},{default:o(()=>[...e[9]||(e[9]=[c("When your audiences sign up through this link and place an order, you will earn a 5% commission of the product cost (this link is limited to three years)",-1)])]),_:1}),n("img",{src:u(z),width:18,height:18},null,8,st)])]),n("div",dt,[t(R,{class:"mt-2",variant:"outlined",modelValue:u(s),"persistent-placeholder":"",placeholder:"Apply Link","hide-details":"",density:"compact",color:"primary",disabled:""},{"prepend-inner":o(()=>[t(P,{src:u(de),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),t(L,{color:"primary",class:"ml-2",onClick:l},{default:o(()=>[...e[11]||(e[11]=[c("Copy",-1)])]),_:1})]),i.affiliateLink.limitedPeriod?(d(),A("p",rt,"Limited period: "+x(i.affiliateLink.limitedPeriod),1)):y("",!0),n("p",ut,[e[12]||(e[12]=c("Number of registrations: ",-1)),n("span",null,x(i.affiliateLink.inviteNum),1)])]),_:1})):y("",!0)]),_:1})]),_:1},8,["modelValue"])],64))}}),mt=Me(ct,[["__scopeId","data-v-b76aadd7"]]),q="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23230;&%23138;&%23152;&%23230;&%23137;&%23163;&%23229;&%23155;&%23190;&%23230;&%23160;&%23135;'%20clip-path='url(%23clip0_2004_24609)'%3e%3cpath%20id='Vector'%20d='M6%2010L10%206'%20stroke='%232C3E50'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M6.33333%206.66667C6.51743%206.66667%206.66667%206.51743%206.66667%206.33333C6.66667%206.14924%206.51743%206%206.33333%206C6.14924%206%206%206.14924%206%206.33333C6%206.51743%206.14924%206.66667%206.33333%206.66667Z'%20fill='black'%20stroke='%232C3E50'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M9.66536%2010.0026C9.84946%2010.0026%209.9987%209.85337%209.9987%209.66927C9.9987%209.48518%209.84946%209.33594%209.66536%209.33594C9.48127%209.33594%209.33203%209.48518%209.33203%209.66927C9.33203%209.85337%209.48127%2010.0026%209.66536%2010.0026Z'%20fill='black'%20stroke='%232C3E50'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_4'%20d='M3.33364%204.80031C3.33364%204.41132%203.48816%204.03827%203.76322%203.76322C4.03827%203.48816%204.41132%203.33364%204.80031%203.33364H5.46697C5.85424%203.33342%206.2257%203.18004%206.50031%202.90697L6.96697%202.44031C7.10327%202.30324%207.26532%202.19447%207.4438%202.12025C7.62228%202.04602%207.81368%202.00781%208.00697%202.00781C8.20027%202.00781%208.39167%202.04602%208.57015%202.12025C8.74863%202.19447%208.91068%202.30324%209.04697%202.44031L9.51364%202.90697C9.78825%203.18004%2010.1597%203.33342%2010.547%203.33364H11.2136C11.6026%203.33364%2011.9757%203.48816%2012.2507%203.76322C12.5258%204.03827%2012.6803%204.41132%2012.6803%204.80031V5.46697C12.6805%205.85424%2012.8339%206.2257%2013.107%206.50031L13.5736%206.96697C13.7107%207.10327%2013.8195%207.26532%2013.8937%207.4438C13.9679%207.62228%2014.0061%207.81368%2014.0061%208.00697C14.0061%208.20027%2013.9679%208.39167%2013.8937%208.57015C13.8195%208.74863%2013.7107%208.91068%2013.5736%209.04697L13.107%209.51364C12.8339%209.78825%2012.6805%2010.1597%2012.6803%2010.547V11.2136C12.6803%2011.6026%2012.5258%2011.9757%2012.2507%2012.2507C11.9757%2012.5258%2011.6026%2012.6803%2011.2136%2012.6803H10.547C10.1597%2012.6805%209.78825%2012.8339%209.51364%2013.107L9.04697%2013.5736C8.91068%2013.7107%208.74863%2013.8195%208.57015%2013.8937C8.39167%2013.9679%208.20027%2014.0061%208.00697%2014.0061C7.81368%2014.0061%207.62228%2013.9679%207.4438%2013.8937C7.26532%2013.8195%207.10327%2013.7107%206.96697%2013.5736L6.50031%2013.107C6.2257%2012.8339%205.85424%2012.6805%205.46697%2012.6803H4.80031C4.41132%2012.6803%204.03827%2012.5258%203.76322%2012.2507C3.48816%2011.9757%203.33364%2011.6026%203.33364%2011.2136V10.547C3.33342%2010.1597%203.18004%209.78825%202.90697%209.51364L2.44031%209.04697C2.30324%208.91068%202.19447%208.74863%202.12025%208.57015C2.04602%208.39167%202.00781%208.20027%202.00781%208.00697C2.00781%207.81368%202.04602%207.62228%202.12025%207.4438C2.19447%207.26532%202.30324%207.10327%202.44031%206.96697L2.90697%206.50031C3.18004%206.2257%203.33342%205.85424%203.33364%205.46697V4.80031Z'%20stroke='%232C3E50'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2004_24609'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ft={class:"d-flex align-center"},pt={class:"d-flex align-center"},gt={style:{color:"#252525 !important"}},ht={class:"btns"},Q=S({__name:"ApplyCouponCodeDialog",props:{type:Object},setup(i){const r=k(!1),p=k(!1),f=k(!1),s=i,g=H("getMarketingUserInfo"),h=()=>{g&&g()};function l(){if(!p.value){f.value=!0;return}return U().marketingCouponCodeApply(s.type).then(e=>{console.log("res...",e),r.value=!1,h()})}return(a,e)=>(d(),A(O,null,[t(j,{color:"error",variant:"flat",rounded:"md",location:"top",modelValue:f.value,"onUpdate:modelValue":e[0]||(e[0]=m=>f.value=m)},{default:o(()=>[...e[6]||(e[6]=[c(" Please check the agreement before applying ",-1)])]),_:1},8,["modelValue"]),t(W,{modelValue:r.value,"onUpdate:modelValue":e[5]||(e[5]=m=>r.value=m),"max-width":575,activator:"parent"},{default:o(()=>[t(_,null,{default:o(()=>[t(D,null,{default:o(()=>[n("h3",ft,[e[7]||(e[7]=c("Apply The Coupon Code ",-1)),t(P,{src:u(K),width:32,height:32,class:"close",onClick:e[1]||(e[1]=m=>r.value=!1)},null,8,["src"])]),e[11]||(e[11]=n("p",{class:"mt-4",style:{"font-size":"14px"}},"When you apply your coupon code, after your audiences placeorders at JetPrint through this link, you'll earn 1% of the cost ofordered products as commission.",-1)),n("div",pt,[t(ye,{color:"secondary","hide-details":"",modelValue:p.value,"onUpdate:modelValue":e[3]||(e[3]=m=>p.value=m)},{label:o(()=>[n("div",gt,[e[8]||(e[8]=c("l agree to JetPrint's ",-1)),n("a",{class:"text-decoration-underline",onClick:e[2]||(e[2]=Ve(()=>{},["stop"])),target:"_blank",href:"https://jetprintapp.com/affiliate-terms-of-service/"}," Affliate Program Terms of Service")])]),_:1},8,["modelValue"])]),n("div",ht,[t(L,{class:"mt-4",color:"lightprimary",onClick:e[4]||(e[4]=m=>r.value=!1)},{default:o(()=>[...e[9]||(e[9]=[c("Cancel",-1)])]),_:1}),t(L,{class:"mt-4 ml-4",color:"btnBlue",onClick:l},{default:o(()=>[...e[10]||(e[10]=[c("Apply",-1)])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),vt={class:"d-flex align-center"},Ct={class:"btns"},X=S({__name:"UnApplyCouponCodeDialog",props:{type:Object},setup(i){const r=k(!1),p=k(!1),f=i,s=k(!1),g=H("getMarketingUserInfo"),h=()=>{g&&g()};function l(){return s.value=!0,U().marketingCouponCodeApply(f.type).then(e=>{s.value=!1,console.log("res...",e),r.value=!1,h()}).catch(function(e){s.value=!1})}return(a,e)=>(d(),A(O,null,[t(j,{color:"error",variant:"flat",rounded:"md",location:"top",modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=m=>p.value=m)},{default:o(()=>[...e[4]||(e[4]=[c(" Please check the agreement before applying ",-1)])]),_:1},8,["modelValue"]),t(W,{modelValue:r.value,"onUpdate:modelValue":e[3]||(e[3]=m=>r.value=m),"max-width":575,activator:"parent"},{default:o(()=>[t(_,null,{default:o(()=>[t(D,null,{default:o(()=>[n("h3",vt,[e[5]||(e[5]=c("Switch Coupon Method ",-1)),t(P,{src:u(K),width:32,height:32,class:"close",onClick:e[1]||(e[1]=m=>r.value=!1)},null,8,["src"])]),e[8]||(e[8]=n("p",{class:"mt-4",style:{"font-size":"14px"}},"Since you've applied your affiliate link, if you want to apply the coupon code, the initial link will be invalid, are you sure to continue apply the coupon code?",-1)),n("div",Ct,[t(L,{class:"mt-4",color:"lightprimary",onClick:e[2]||(e[2]=m=>r.value=!1)},{default:o(()=>[...e[6]||(e[6]=[c("Cancel",-1)])]),_:1}),t(L,{class:"mt-4 ml-4",color:"btnBlue",loading:s.value,disable:s.value,onClick:l},{default:o(()=>[...e[7]||(e[7]=[c("Apply",-1)])]),_:1},8,["loading","disable"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),kt={class:"toolbox"},yt=["src"],Vt={class:"d-flex align-center ga-2"},wt={key:0},bt=["src"],xt={class:"d-flex justify-space-between mt-2"},At={key:2,class:"text-subtitle-2"},Mt={class:"text-secondary"},Lt={class:"d-flex align-center ga-2"},Tt={key:0},It=["src"],Pt={class:"d-flex justify-space-between mt-2"},Et={key:2,class:"text-subtitle-2"},$t={class:"text-secondary"},_t={class:"d-flex align-center ga-2"},Dt={key:0},St={class:"d-flex justify-space-between mt-2"},Nt={key:2,class:"text-subtitle-2"},Ot={class:"text-secondary"},Ut=S({__name:"ApplyCouponCode",props:{discountCode1:Object,discountCode2:Object,discountCode3:Object,discountCode1Valid:Boolean,discountCode2Valid:Boolean,discountCode3Valid:Boolean,marketingMethod:Number,customProductNumValid:Boolean,orderAmountValid:Boolean,configInfo:Object},setup(i){const r=xe([0,1,2,3,4]),p=k(!1),f=i;f.marketingMethod==T.AFFILIATE_LINK.value&&(console.log("props.marketingMethod...",f.marketingMethod),console.log("marketingEnum.AFFILIATE_LINK.value...",T.AFFILIATE_LINK.value),r.value=!1);const{toClipboard:s}=Ae(),g=async h=>{try{await s(h),p.value=!0}catch(l){console.error(l)}};return(h,l)=>(d(),A(O,null,[t(j,{modelValue:p.value,"onUpdate:modelValue":l[0]||(l[0]=a=>p.value=a),color:"success",timeout:3e3,variant:"flat",rounded:"md",location:"top"},{default:o(()=>[...l[7]||(l[7]=[c("Coupon code copied",-1)])]),_:1},8,["modelValue"]),t(be,{modelValue:r.value,"onUpdate:modelValue":l[6]||(l[6]=a=>r.value=a),multiple:""},{default:o(()=>[t(we,{elevation:"0"},{default:o(()=>[i.marketingMethod?(d(),v(J,{key:1,class:"font-weight-medium custom-accordion"},{default:o(()=>[l[10]||(l[10]=c("Switch Coupon Code ",-1)),n("div",kt,[l[9]||(l[9]=n("div",{class:"tool"},"Only one affiliate method is allowed to remain.",-1)),i.marketingMethod==u(T).AFFILIATE_LINK.value?(d(),A("img",{key:0,src:u(Le),width:24,height:24},null,8,yt)):y("",!0)])]),_:1})):(d(),v(J,{key:0,class:"font-weight-medium custom-accordion"},{default:o(()=>[...l[8]||(l[8]=[c(" Method 2:Apply Coupon Code ",-1)])]),_:1})),t(ee,null,{default:o(()=>[t(F,null,{default:o(()=>[t($,{sm:"12",xs:"12",cols:"12",md:"4"},{default:o(()=>[n("div",Vt,[i.configInfo?(d(),A("span",wt,"Coupon Code:"+x(i.configInfo.discountCode1.discount*100)+"%",1)):y("",!0),n("i",null,[t(B,{"max-width":"334px",activator:"parent",location:"top"},{default:o(()=>[...l[11]||(l[11]=[c("When you meet all the conditions for our affiliate program. you can apply for a coupon code. This coupon code is permanently valid. For any order placed through this coupon code, you will receive 1% of the product cost of the order.",-1)])]),_:1}),n("img",{src:u(z),width:18,height:18},null,8,bt)])]),t(R,{class:"mt-2",variant:"outlined",modelValue:i.discountCode1.code,"persistent-placeholder":"",placeholder:"Apply The Coupon Code","hide-details":"",density:"compact",color:"primary",disabled:""},{"prepend-inner":o(()=>[t(P,{src:u(q),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),n("div",xt,[i.discountCode1.status==u(T).APPROVED.value?(d(),v(L,{key:0,color:"primary",onClick:l[1]||(l[1]=a=>g(i.discountCode1.code))},{default:o(()=>[...l[12]||(l[12]=[c("Copy",-1)])]),_:1})):y("",!0),i.discountCode1.status==u(T).UNDER_REVIEW.value||i.discountCode1.status==null?(d(),v(L,{key:1,color:"secondary",disabled:!i.discountCode1Valid},{default:o(()=>[l[13]||(l[13]=c(" Apply Now ",-1)),!i.marketingMethod||i.marketingMethod==null?(d(),v(Q,{key:0,type:1})):(d(),v(X,{key:1,type:1}))]),_:1},8,["disabled"])):y("",!0),i.discountCode1.status==u(T).APPROVED.value?(d(),A("span",At,[l[14]||(l[14]=c("Number of times used: ",-1)),n("a",Mt,x(i.discountCode1.inviteNum),1)])):y("",!0)])]),_:1}),t($,{cols:"12",md:"4"},{default:o(()=>[n("div",Lt,[i.configInfo?(d(),A("span",Tt,"Coupon Code:"+x(i.configInfo.discountCode2.discount*100)+"%",1)):y("",!0),n("i",null,[t(B,{"max-width":"334px",activator:"parent",location:"top"},{default:o(()=>[...l[15]||(l[15]=[c("When the number of people using your discount reaches 11 (note: the number of people is counted according to unique email addresses), you can apply for a coupon code again, and you can get 3% of the order product cost with this coupon code.",-1)])]),_:1}),n("img",{src:u(z),width:18,height:18},null,8,It)])]),t(R,{class:"mt-2",variant:"outlined",modelValue:i.discountCode2.code,"onUpdate:modelValue":l[2]||(l[2]=a=>i.discountCode2.code=a),"persistent-placeholder":"",placeholder:"Apply The Coupon Code","hide-details":"",density:"compact",color:"primary",disabled:""},{"prepend-inner":o(()=>[t(P,{src:u(q),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),n("div",Pt,[i.discountCode2.status==u(T).APPROVED.value?(d(),v(L,{key:0,color:"primary",onClick:l[3]||(l[3]=a=>g(i.discountCode2.code))},{default:o(()=>[...l[16]||(l[16]=[c("Copy",-1)])]),_:1})):y("",!0),i.discountCode2.status!=u(T).APPROVED.value?(d(),v(L,{key:1,color:"secondary",disabled:!i.discountCode2Valid},{default:o(()=>[l[17]||(l[17]=c(" Apply Now ",-1)),!i.marketingMethod||i.marketingMethod==null?(d(),v(Q,{key:0,type:2})):(d(),v(X,{key:1,type:2}))]),_:1},8,["disabled"])):y("",!0),i.discountCode2.status==u(T).APPROVED.value?(d(),A("span",Et,[l[18]||(l[18]=c("Number of times used: ",-1)),n("a",$t,x(i.discountCode2.inviteNum),1)])):y("",!0)])]),_:1}),t($,{cols:"12",md:"4"},{default:o(()=>[n("div",_t,[i.configInfo?(d(),A("span",Dt,"Coupon Code:"+x(i.configInfo.discountCode3.discount*100)+"%",1)):y("",!0),t(B,{"max-width":"334px",activator:"parent",location:"top"},{default:o(()=>[...l[19]||(l[19]=[c("When the number of people using your discount reaches 51 (note: the number of people is counted according to unique email addresses), you can apply for a coupon code again, and you can get 5% of the order product cost with this coupon code.",-1)])]),_:1}),t(P,{src:u(z),width:18,height:18,inline:""},null,8,["src"])]),t(R,{class:"mt-2",variant:"outlined",modelValue:i.discountCode3.code,"onUpdate:modelValue":l[4]||(l[4]=a=>i.discountCode3.code=a),"persistent-placeholder":"",placeholder:"Apply The Coupon Code","hide-details":"",density:"compact",color:"primary",disabled:""},{"prepend-inner":o(()=>[t(P,{src:u(q),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),n("div",St,[i.discountCode3.status==u(T).APPROVED.value?(d(),v(L,{key:0,color:"primary",onClick:l[5]||(l[5]=a=>g(i.discountCode3.code))},{default:o(()=>[...l[20]||(l[20]=[c("Copy",-1)])]),_:1})):y("",!0),i.discountCode3.status==null||i.discountCode3.status!=u(T).APPROVED.value?(d(),v(L,{key:1,color:"secondary",disabled:!i.discountCode3Valid},{default:o(()=>[l[21]||(l[21]=c(" Apply Now ",-1)),!i.marketingMethod||i.marketingMethod==null?(d(),v(Q,{key:0,type:3})):(d(),v(X,{key:1,type:3}))]),_:1},8,["disabled"])):y("",!0),i.discountCode3.status==u(T).APPROVED.value?(d(),A("span",Nt,[l[22]||(l[22]=c("Number of times used: ",-1)),n("a",Ot,x(i.discountCode3.inviteNum),1)])):y("",!0)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),Ft=Me(Ut,[["__scopeId","data-v-63ab8ca8"]]),jt={class:"d-flex ga-2 align-center mt-3"},Bt={class:"d-flex ga-2 align-center mt-3"},Zt=S({__name:"Eligible",setup(i){const r=k(""),p=_e(),f=G(),s=N(()=>(console.log("computed...",f.marketingUserInfo),f.marketingUserInfo)),g=N(()=>(console.log("computed...",f.merchantInfoMutations),f.merchantInfoMutations.login));g.value&&(h(),l());function h(){return U().marketingConfigGet().then(m=>{r.value=m.data,console.log("marketingApi...",m)})}function l(){return p.marketingCurrentInfo().then(e=>{e.data.marketingMethod==2?(e.data.affiliateLink=e.data.affiliateLink||{},e.data.discountCode1={},e.data.discountCode2={},e.data.discountCode3={}):e.data.marketingMethod==1?(e.data.affiliateLink={},e.data.discountCode1=e.data.discountCode1||{},e.data.discountCode2=e.data.discountCode2||{},e.data.discountCode3=e.data.discountCode3||{}):(!e.data.marketingMethod||e.data.marketingMethod==undifined)&&(e.data.marketingMethod=null,e.data.affiliateLink={},e.data.discountCode1=e.data.discountCode1||{},e.data.discountCode2=e.data.discountCode2||{},e.data.discountCode3=e.data.discountCode3||{}),G().SET_MARKETING_USER_INFO(e.data),console.log("res...",e)})}De("getMarketingUserInfo",l);const a=ke([{title:"Affiliate",disabled:!0,to:"/affiliate"}]);return(e,m)=>(d(),A(O,null,[t(Ne,{title:"Affiliate",breadcrumbs:a},null,8,["breadcrumbs"]),s.value.marketingMethod||s.value.marketingMethod==null?(d(),v(F,{key:0},{default:o(()=>[t($,{cols:"24",md:"12"},{default:o(()=>[t(_,{variant:"flat",class:"p-l-20"},{default:o(()=>[t(D,{class:"pb-5"},{default:o(()=>[t(F,{class:"pb-4"},{default:o(()=>[t($,{cols:"19",md:"9"},{default:o(()=>[m[0]||(m[0]=n("h1",{class:"mt-2 font-weight-medium",style:{"line-height":"1.2"}},"Become a JetPrint Affiliate",-1)),m[1]||(m[1]=n("p",{class:"text-h5 mt-5"},"To become a JetPrint Affiliate, you need to meet the following conditions:",-1)),n("div",jt,[t(P,{src:s.value&&s.value.customProductNumValid&&g.value?u(se):u(ne),width:24,height:24,inline:""},null,8,["src"]),n("span",null,"Already designed more than "+x(r.value?r.value.productNumThreshold:5)+" products.",1)]),n("div",Bt,[t(P,{src:s.value&&s.value.orderAmountValid&&g.value?u(se):u(ne),width:24,height:24,inline:""},null,8,["src"]),n("span",null,"The paid order amount exceeds $"+x(r.value?r.value.orderAmountThreshold:50)+" (refunded products are not included)",1)])]),_:1}),t($,{cols:"5",md:"2"},{default:o(()=>[t(P,{src:u(Oe),style:{"margin-top":"-12px"}},null,8,["src"])]),_:1})]),_:1}),t(_,{variant:"flat"},{default:o(()=>[t(_,{variant:"outlined",class:"overflow-hidden"},{default:o(()=>[t(te,null,{default:o(()=>[t(oe,null,{title:o(()=>[...m[2]||(m[2]=[n("h4",{class:"mt-1 font-weight-medium"},"Affiliate Program Options",-1)])]),_:1})]),_:1}),t(le),t(D,null,{default:o(()=>[s.value&&JSON.stringify(s.value)!="{}"?(d(),v(mt,{key:0,customProductNumValid:s.value.customProductNumValid,orderAmountValid:s.value.orderAmountValid,affiliateLink:s.value.affiliateLink,marketingMethod:s.value.marketingMethod,affiliateLinkValid:s.value.affiliateLinkValid},null,8,["customProductNumValid","orderAmountValid","affiliateLink","marketingMethod","affiliateLinkValid"])):y("",!0)]),_:1}),t(D,{class:"pb-5"},{default:o(()=>[s.value&&JSON.stringify(s.value)!="{}"?(d(),v(Ft,{key:0,configInfo:r.value,customProductNumValid:s.value.customProductNumValid,orderAmountValid:s.value.orderAmountValid,marketingMethod:s.value.marketingMethod,discountCode1:s.value.discountCode1,discountCode2:s.value.discountCode2,discountCode3:s.value.discountCode3,discountCode1Valid:s.value.discountCode1Valid,discountCode2Valid:s.value.discountCode2Valid,discountCode3Valid:s.value.discountCode3Valid},null,8,["configInfo","customProductNumValid","orderAmountValid","marketingMethod","discountCode1","discountCode2","discountCode3","discountCode1Valid","discountCode2Valid","discountCode3Valid"])):y("",!0)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})):y("",!0),g.value?(d(),v(F,{key:1,class:"mt-3"},{default:o(()=>[t($,{cols:"24",md:"12"},{default:o(()=>[t(_,{variant:"flat",class:"p-l-20 mt-4"},{default:o(()=>[t(D,null,{default:o(()=>[t(F,null,{default:o(()=>[t($,{cols:"12",md:"6"},{default:o(()=>[t(Be)]),_:1}),t($,{cols:"12",md:"6"},{default:o(()=>[t(Ke)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})):y("",!0)],64))}});export{Zt as default};