import{z as D,df as H,dg as W,dh as K,di as Y,dj as Z,dk as q,dl as Q,U as N,b9 as X,aW as h,bG as Ce,bU as z,aH as ke,a$ as ye,c as C,o as d,bW as S,w as o,a as t,b as n,cz as re,ca as ue,c2 as ce,f as F,V as $,bd as A,bm as u,bZ as Ee,G as y,bY as _,aU as me,H as T,ap as $e,ak as ee,F as O,bV as j,d as c,b_ as te,bX as E,cb as Ve,bP as we,e as L,cd as be,ce as J,cf as de,c5 as B,c3 as G,cg as xe,dm as Se,aQ as _e}from"./index-B4XbvW4T.js";import{u as De}from"./customizer-BAlre4k0.js";import{m as U}from"./marketingApi-ByuUjhuv.js";/* empty css              */import{_ as Ne}from"./TitleBreadcrumb.vue_vue_type_style_index_0_lang-qa9Vi9Ja.js";import{c as oe}from"./close-BcCOVtMl.js";import{u as Ae}from"./index-FlaBoXMm.js";import{_ as Te}from"./_plugin-vue_export-helper-DlAUqK2U.js";const he="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",ge="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",V=De(),Ue=D(()=>V.actTheme==="GreenTheme"?H.colors.primary:V.actTheme==="PinkTheme"?W.colors.primary:V.actTheme==="YellowTheme"?K.colors.primary:V.actTheme==="SeaGreenTheme"?Y.colors.primary:V.actTheme==="OliveGreenTheme"?Z.colors.primary:V.actTheme==="SpeechBlueTheme"?q.colors.primary:Q.colors.primary);D(()=>V.actTheme==="GreenTheme"?H.colors.primary200:V.actTheme==="PinkTheme"?W.colors.primary200:V.actTheme==="YellowTheme"?K.colors.primary200:V.actTheme==="SeaGreenTheme"?Y.colors.primary200:V.actTheme==="OliveGreenTheme"?Z.colors.primary200:V.actTheme==="SpeechBlueTheme"?q.colors.primary200:Q.colors.primary200);const Fe=D(()=>V.actTheme==="GreenTheme"?H.colors.secondary:V.actTheme==="PinkTheme"?W.colors.secondary:V.actTheme==="YellowTheme"?K.colors.secondary:V.actTheme==="SeaGreenTheme"?Y.colors.secondary:V.actTheme==="OliveGreenTheme"?Z.colors.secondary:V.actTheme==="SpeechBlueTheme"?q.colors.secondary:Q.colors.secondary);D(()=>V.actTheme==="GreenTheme"?H.colors.secondary200:V.actTheme==="PinkTheme"?W.colors.secondary200:V.actTheme==="YellowTheme"?K.colors.secondary200:V.actTheme==="SeaGreenTheme"?Y.colors.secondary200:V.actTheme==="OliveGreenTheme"?Z.colors.secondary200:V.actTheme==="SpeechBlueTheme"?q.colors.secondary200:Q.colors.secondary200);const je={class:"mt-5"},Be=N({__name:"Statistics",setup(i){X([0,1,2,3,4]);let r=h(0),p=h(0);const f=h({state:"Last 7 Days",abbr:7});Ce(f,b=>{console.log("watch....",b.abbr),e.value=!1,fe(b.abbr)});const s=[{state:"Last 7 Days",abbr:7},{state:"Last 14 Days",abbr:14},{state:"Last Month",abbr:365}],g=D(()=>({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 v={series:[{name:"",data:[]},{name:"",data:[]}]};const l=z();let a=h("");h(""),h("");let e=h(!1);ke(()=>{fe(7)});const m=D(()=>(console.log("computed...",l.merchantInfoMutations),l.merchantInfoMutations.login));function le(){var b=new Date().getTimezoneOffset()/60;return b=-b,b}function x(b){const k=new Date,w=k.getTime();return k.setDate(k.getDate()-(b-1)),{start:k.getTime(),end:w}}function fe(b){if(m.value){const k=x(b),w=le();U().marketingFlowStatistics(a.value,k.start,k.end,w).then(I=>{console.log("getMarketingFlowStatistics...",I),I.data.series2.forEach(ae=>{}),console.log("data.series11111...",I.data.series2),r.value=pe(I.data.series),p.value=pe(I.data.series2),console.log("totalOrders.value....",r.value),Le(b,I.data)})}}function pe(b){let k=0;return b.forEach(w=>{console.log("it...",w),k=k+w}),k}function Le(b,k){if(v.series[0].data=[],v.series[1].data=[],b==7||b==14){console.log("data.series2...",k.series2),console.log("data.series2222...",k.series2),v.series[0].name="Affiliate Orders",v.series[0].data.push(...k.series),v.series[1].name="Commisions($)",v.series[1].data.push(...k.series2);let w=[];k.xaxis.forEach(M=>{let I=new Date(M),ae=I.getMonth()+1,Ie=I.getDate();M=ae+"."+Ie,w.push(M),console.log("item...",M)}),g.value.xaxis.categories=[...w]}b==365&&([1,2,3,4,5,6,7,8,9,10,11,12].forEach(M=>{let I=Pe(k.statistics,M);v.series[0].name="Affiliate Orders",v.series[1].data.push(I.value2),v.series[1].name="Commisions",v.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....",v)),e.value=!0}function Pe(b,k){let w={date:"",value:0,value2:0,value3:0};return b.forEach(M=>{new Date(M.label).getMonth()+1==k&&(w.date=M.label,w.value=w.value+M.value,w.value2=w.value2+M.value2,w.value3=w.value3+M.value3)}),console.log("param....",w),w}return(b,k)=>{const w=ye("apexchart");return d(),C(S,{variant:"outlined",class:"overflow-hidden"},{default:o(()=>[t(_,null,{default:o(()=>[t(re,null,{default:o(()=>[t(ue,{style:{padding:"0"}},{title:o(()=>k[1]||(k[1]=[n("h4",{class:"mt-1 font-weight-medium"},"Data Analysis",-1)])),_:1})]),_:1}),t(ce),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:"+A(u(r)),1),n("p",null,"Commisions:$"+A(u(p)),1)]),_:1}),t(Ee,{color:"primary",variant:"outlined","hide-details":"",modelValue:f.value,"onUpdate:modelValue":k[0]||(k[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(),C(w,{key:0,type:"area",height:"291",options:g.value,series:u(v).series},null,8,["options","series"])):y("",!0)])]),_:1})]),_:1})}}}),Ge={class:"customize-header font-weight-medium"},Re={class:"customize-header font-weight-medium"},ze={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=N({__name:"CommissionList",setup(i){let r=h(0),p=h({page:1,rowsPerPage:7}),f=me([]),s=h(!1);const g=z();ke(()=>{l()});const v=D(()=>(console.log("computed...",g.merchantInfoMutations),g.merchantInfoMutations.login));function l(){if(v.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)})}}Ce(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 le=ye("EasyDataTable");return d(),C(S,{variant:"outlined",class:"overflow-hidden card-radius"},{default:o(()=>[t(_,null,{default:o(()=>[t(re,null,{default:o(()=>[t(ue,{style:{padding:"0"}},{title:o(()=>m[1]||(m[1]=[n("h4",{class:"mt-1 font-weight-medium"},"Commission List",-1)])),_:1})]),_:1})]),_:1}),t(ce),t(le,{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]=x=>$e(p)?p.value=x:p=x),"table-class-name":"customize-table action-position","theme-color":"rgb(var(--v-theme-secondary))","server-items-length":u(r),border:!1},{"header-code":o(x=>[n("div",Ge,A(x.text),1)]),"header-email":o(x=>[n("div",Re,A(x.text),1)]),"header-date":o(x=>[n("div",ze,A(x.text),1)]),"header-commission":o(x=>[n("div",Je,A(x.text),1)]),"item-email":o(({email:x})=>[n("span",null,A(e.$filters.hideEmailMiddle(x)),1)]),"item-commission":o(({commission:x})=>[x>0?(d(),T("span",He,"+"+A(x),1)):y("",!0),x<0?(d(),T("span",We,"-"+A(x),1)):y("",!0)]),_:1},8,["items","loading","server-options","server-items-length"])]),_:1})}}}),R="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",ve="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",Me="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=N({__name:"ApplyAffiliateLinkDialog",setup(i){const r=h(!1),p=h(!1),f=h(!1),s=ee("getMarketingUserInfo"),g=()=>{s&&s()};function v(){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(),T(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},8,["modelValue"]),t(te,{modelValue:r.value,"onUpdate:modelValue":a[4]||(a[4]=e=>r.value=e),"max-width":575,activator:"parent"},{default:o(()=>[t(S,null,{default:o(()=>[t(_,null,{default:o(()=>[n("h3",Ye,[a[6]||(a[6]=c("Apply Affiliate Link ")),t(E,{src:u(oe),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(Ve,{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 ")),n("a",{class:"text-decoration-underline",onClick:a[2]||(a[2]=we(()=>{},["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}),t(L,{class:"mt-4 ml-4",color:"btnBlue",onClick:v},{default:o(()=>a[9]||(a[9]=[c("Apply")])),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),et={class:"d-flex align-center"},tt={class:"btns"},ot=N({__name:"UnApplyAffiliateLinkDialog",setup(i){const r=h(!1);h(!1);const p=h(!1),f=h(!1),s=ee("getMarketingUserInfo"),g=()=>{s&&s()};function v(){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(),T(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},8,["modelValue"]),t(te,{modelValue:r.value,"onUpdate:modelValue":a[3]||(a[3]=e=>r.value=e),"max-width":575,activator:"parent"},{default:o(()=>[t(S,null,{default:o(()=>[t(_,null,{default:o(()=>[n("h3",et,[a[5]||(a[5]=c("Switch Affiliate Method ")),t(E,{src:u(oe),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}),t(L,{class:"mt-4 ml-4",color:"btnBlue",loading:f.value,disable:f.value,onClick:v},{default:o(()=>a[7]||(a[7]=[c("Apply")])),_:1},8,["loading","disable"])])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),P={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=N({__name:"ApplyAffiliateLink",props:{affiliateLink:Object,marketingMethod:Number,customProductNumValid:Boolean,orderAmountValid:Boolean,affiliateLinkValid:Boolean},setup(i){const r=X([0,1,2,3,4]);h(""),me({}),h(!1);const p=h("https://jetprintapp.com/app"),f=i;let s=h("");s.value=p.value+"/register?ref="+f.affiliateLink.url,f.marketingMethod==P.DISCOUNT_CODE.value&&(console.log("props.marketingMethod...",f.marketingMethod),console.log("marketingEnum.AFFILIATE_LINK.value...",P.AFFILIATE_LINK.value),r.value=!1);const g=h(!1),{toClipboard:v}=Ae(),l=async()=>{try{await v("https://jetprintapp.com/app/register?ref="+f.affiliateLink.url),g.value=!0}catch(a){console.error(a)}};return(a,e)=>(d(),T(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},8,["modelValue"]),t(xe,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=m=>r.value=m),multiple:""},{default:o(()=>[t(be,{elevation:"0"},{default:o(()=>[i.marketingMethod?(d(),C(J,{key:1,class:"font-weight-medium custom-accordion"},{default:o(()=>[e[5]||(e[5]=c(" Switch Affiliate Link ")),n("div",lt,[e[4]||(e[4]=n("div",{class:"tool"},"Only one affiliate method is allowed to remain.",-1)),i.marketingMethod==u(P).DISCOUNT_CODE.value?(d(),T("img",{key:0,src:u(Me),width:24,height:24},null,8,at)):y("",!0)])]),_:1})):(d(),C(J,{key:0,class:"font-weight-medium custom-accordion"},{default:o(()=>e[3]||(e[3]=[c(" Method 1:Apply Affiliate Link ")])),_:1})),i.affiliateLink.status!=2?(d(),C(de,{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}),t(E,{src:u(R),width:18,height:18},null,8,["src"])])]),t(G,{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(E,{src:u(ve),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 ")),!i.marketingMethod||i.marketingMethod==null?(d(),C(Xe,{key:0})):(d(),C(ot,{key:1}))]),_:1},8,["disabled"])]),_:1})):y("",!0),i.affiliateLink.status==2?(d(),C(de,{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}),n("img",{src:u(R),width:18,height:18},null,8,st)])]),n("div",dt,[t(G,{class:"mt-2",variant:"outlined",modelValue:u(s),"persistent-placeholder":"",placeholder:"Apply Link","hide-details":"",density:"compact",color:"primary",disabled:""},{"prepend-inner":o(()=>[t(E,{src:u(ve),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})]),i.affiliateLink.limitedPeriod?(d(),T("p",rt,"Limited period: "+A(i.affiliateLink.limitedPeriod),1)):y("",!0),n("p",ut,[e[12]||(e[12]=c("Number of registrations: ")),n("span",null,A(i.affiliateLink.inviteNum),1)])]),_:1})):y("",!0)]),_:1})]),_:1},8,["modelValue"])],64))}}),mt=Te(ct,[["__scopeId","data-v-b76aadd7"]]),ie="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"},ht={style:{color:"#252525 !important"}},gt={class:"btns"},ne=N({__name:"ApplyCouponCodeDialog",props:{type:Object},setup(i){const r=h(!1),p=h(!1),f=h(!1),s=i,g=ee("getMarketingUserInfo"),v=()=>{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,v()})}return(a,e)=>(d(),T(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},8,["modelValue"]),t(te,{modelValue:r.value,"onUpdate:modelValue":e[5]||(e[5]=m=>r.value=m),"max-width":575,activator:"parent"},{default:o(()=>[t(S,null,{default:o(()=>[t(_,null,{default:o(()=>[n("h3",ft,[e[7]||(e[7]=c("Apply The Coupon Code ")),t(E,{src:u(oe),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(Ve,{color:"secondary","hide-details":"",modelValue:p.value,"onUpdate:modelValue":e[3]||(e[3]=m=>p.value=m)},{label:o(()=>[n("div",ht,[e[8]||(e[8]=c("l agree to JetPrint's ")),n("a",{class:"text-decoration-underline",onClick:e[2]||(e[2]=we(()=>{},["stop"])),target:"_blank",href:"https://jetprintapp.com/affiliate-terms-of-service/"}," Affliate Program Terms of Service")])]),_:1},8,["modelValue"])]),n("div",gt,[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}),t(L,{class:"mt-4 ml-4",color:"btnBlue",onClick:l},{default:o(()=>e[10]||(e[10]=[c("Apply")])),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),vt={class:"d-flex align-center"},Ct={class:"btns"},se=N({__name:"UnApplyCouponCodeDialog",props:{type:Object},setup(i){const r=h(!1);h(!1);const p=h(!1),f=i,s=h(!1),g=ee("getMarketingUserInfo"),v=()=>{g&&g()};function l(){return s.value=!0,U().marketingCouponCodeApply(f.type).then(e=>{s.value=!1,console.log("res...",e),r.value=!1,v()}).catch(function(e){s.value=!1})}return(a,e)=>(d(),T(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},8,["modelValue"]),t(te,{modelValue:r.value,"onUpdate:modelValue":e[3]||(e[3]=m=>r.value=m),"max-width":575,activator:"parent"},{default:o(()=>[t(S,null,{default:o(()=>[t(_,null,{default:o(()=>[n("h3",vt,[e[5]||(e[5]=c("Switch Coupon Method ")),t(E,{src:u(oe),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}),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},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"},Tt={class:"text-secondary"},Mt={class:"d-flex align-center ga-2"},Lt={key:0},Pt=["src"],It={class:"d-flex justify-space-between mt-2"},Et={key:2,class:"text-subtitle-2"},$t={class:"text-secondary"},St={class:"d-flex align-center ga-2"},_t={key:0},Dt={class:"d-flex justify-space-between mt-2"},Nt={key:2,class:"text-subtitle-2"},Ot={class:"text-secondary"},Ut=N({__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=X([0,1,2,3,4]);h("");const p=h(!1),f=i;f.marketingMethod==P.AFFILIATE_LINK.value&&(console.log("props.marketingMethod...",f.marketingMethod),console.log("marketingEnum.AFFILIATE_LINK.value...",P.AFFILIATE_LINK.value),r.value=!1);const{toClipboard:s}=Ae(),g=async v=>{try{await s(v),p.value=!0}catch(l){console.error(l)}};return(v,l)=>(d(),T(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},8,["modelValue"]),t(xe,{modelValue:r.value,"onUpdate:modelValue":l[6]||(l[6]=a=>r.value=a),multiple:""},{default:o(()=>[t(be,{elevation:"0"},{default:o(()=>[i.marketingMethod?(d(),C(J,{key:1,class:"font-weight-medium custom-accordion"},{default:o(()=>[l[10]||(l[10]=c("Switch Coupon Code ")),n("div",kt,[l[9]||(l[9]=n("div",{class:"tool"},"Only one affiliate method is allowed to remain.",-1)),i.marketingMethod==u(P).AFFILIATE_LINK.value?(d(),T("img",{key:0,src:u(Me),width:24,height:24},null,8,yt)):y("",!0)])]),_:1})):(d(),C(J,{key:0,class:"font-weight-medium custom-accordion"},{default:o(()=>l[8]||(l[8]=[c(" Method 2:Apply Coupon Code ")])),_:1})),t(de,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(),T("span",wt,"Coupon Code:"+A(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}),n("img",{src:u(R),width:18,height:18},null,8,bt)])]),t(G,{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(E,{src:u(ie),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),n("div",xt,[i.discountCode1.status==u(P).APPROVED.value?(d(),C(L,{key:0,color:"primary",onClick:l[1]||(l[1]=a=>g(i.discountCode1.code))},{default:o(()=>l[12]||(l[12]=[c("Copy")])),_:1})):y("",!0),i.discountCode1.status==u(P).UNDER_REVIEW.value||i.discountCode1.status==null?(d(),C(L,{key:1,color:"secondary",disabled:!i.discountCode1Valid},{default:o(()=>[l[13]||(l[13]=c(" Apply Now ")),!i.marketingMethod||i.marketingMethod==null?(d(),C(ne,{key:0,type:1})):(d(),C(se,{key:1,type:1}))]),_:1},8,["disabled"])):y("",!0),i.discountCode1.status==u(P).APPROVED.value?(d(),T("span",At,[l[14]||(l[14]=c("Number of times used: ")),n("a",Tt,A(i.discountCode1.inviteNum),1)])):y("",!0)])]),_:1}),t($,{cols:"12",md:"4"},{default:o(()=>[n("div",Mt,[i.configInfo?(d(),T("span",Lt,"Coupon Code:"+A(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}),n("img",{src:u(R),width:18,height:18},null,8,Pt)])]),t(G,{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(E,{src:u(ie),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),n("div",It,[i.discountCode2.status==u(P).APPROVED.value?(d(),C(L,{key:0,color:"primary",onClick:l[3]||(l[3]=a=>g(i.discountCode2.code))},{default:o(()=>l[16]||(l[16]=[c("Copy")])),_:1})):y("",!0),i.discountCode2.status!=u(P).APPROVED.value?(d(),C(L,{key:1,color:"secondary",disabled:!i.discountCode2Valid},{default:o(()=>[l[17]||(l[17]=c(" Apply Now ")),!i.marketingMethod||i.marketingMethod==null?(d(),C(ne,{key:0,type:2})):(d(),C(se,{key:1,type:2}))]),_:1},8,["disabled"])):y("",!0),i.discountCode2.status==u(P).APPROVED.value?(d(),T("span",Et,[l[18]||(l[18]=c("Number of times used: ")),n("a",$t,A(i.discountCode2.inviteNum),1)])):y("",!0)])]),_:1}),t($,{cols:"12",md:"4"},{default:o(()=>[n("div",St,[i.configInfo?(d(),T("span",_t,"Coupon Code:"+A(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}),t(E,{src:u(R),width:18,height:18,inline:""},null,8,["src"])]),t(G,{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(E,{src:u(ie),width:16,heigth:16},null,8,["src"])]),_:1},8,["modelValue"]),n("div",Dt,[i.discountCode3.status==u(P).APPROVED.value?(d(),C(L,{key:0,color:"primary",onClick:l[5]||(l[5]=a=>g(i.discountCode3.code))},{default:o(()=>l[20]||(l[20]=[c("Copy")])),_:1})):y("",!0),i.discountCode3.status==null||i.discountCode3.status!=u(P).APPROVED.value?(d(),C(L,{key:1,color:"secondary",disabled:!i.discountCode3Valid},{default:o(()=>[l[21]||(l[21]=c(" Apply Now ")),!i.marketingMethod||i.marketingMethod==null?(d(),C(ne,{key:0,type:3})):(d(),C(se,{key:1,type:3}))]),_:1},8,["disabled"])):y("",!0),i.discountCode3.status==u(P).APPROVED.value?(d(),T("span",Nt,[l[22]||(l[22]=c("Number of times used: ")),n("a",Ot,A(i.discountCode3.inviteNum),1)])):y("",!0)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))}}),Ft=Te(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=N({__name:"Eligible",setup(i){X([0,1,2,3,4]);const r=h(""),p=Se(),f=z(),s=D(()=>(console.log("computed...",f.marketingUserInfo),f.marketingUserInfo)),g=D(()=>(console.log("computed...",f.merchantInfoMutations),f.merchantInfoMutations.login));g.value&&(v(),l());function v(){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||{}),z().SET_MARKETING_USER_INFO(e.data),console.log("res...",e)})}_e("getMarketingUserInfo",l);const a=me([{title:"Affiliate",disabled:!0,to:"/affiliate"}]);return(e,m)=>(d(),T(O,null,[t(Ne,{title:"Affiliate",breadcrumbs:a},null,8,["breadcrumbs"]),s.value.marketingMethod||s.value.marketingMethod==null?(d(),C(F,{key:0},{default:o(()=>[t($,{cols:"24",md:"12"},{default:o(()=>[t(S,{variant:"flat",class:"p-l-20"},{default:o(()=>[t(_,{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(E,{src:s.value&&s.value.customProductNumValid&&g.value?u(ge):u(he),width:24,height:24,inline:""},null,8,["src"]),n("span",null,"Already designed more than "+A(r.value?r.value.productNumThreshold:5)+" products.",1)]),n("div",Bt,[t(E,{src:s.value&&s.value.orderAmountValid&&g.value?u(ge):u(he),width:24,height:24,inline:""},null,8,["src"]),n("span",null,"The paid order amount exceeds $"+A(r.value?r.value.orderAmountThreshold:50)+" (refunded products are not included)",1)])]),_:1}),t($,{cols:"5",md:"2"},{default:o(()=>[t(E,{src:u(Oe),style:{"margin-top":"-12px"}},null,8,["src"])]),_:1})]),_:1}),t(S,{variant:"flat"},{default:o(()=>[t(S,{variant:"outlined",class:"overflow-hidden"},{default:o(()=>[t(re,null,{default:o(()=>[t(ue,null,{title:o(()=>m[2]||(m[2]=[n("h4",{class:"mt-1 font-weight-medium"},"Affiliate Program Options",-1)])),_:1})]),_:1}),t(ce),t(_,null,{default:o(()=>[s.value&&JSON.stringify(s.value)!="{}"?(d(),C(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(_,{class:"pb-5"},{default:o(()=>[s.value&&JSON.stringify(s.value)!="{}"?(d(),C(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(),C(F,{key:1,class:"mt-3"},{default:o(()=>[t($,{cols:"24",md:"12"},{default:o(()=>[t(S,{variant:"flat",class:"p-l-20 mt-4"},{default:o(()=>[t(_,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};