1import{a as e}from"./index-6f9941b2.js";import{u as a}from"./vue-ecosystem-02f94b18.js";import{C as t}from"./vue-core-3726e80b.js";import{i as s,j as i,c as r,a8 as o,w as l,u as n,f as c,an as p,g as d,F as u,r as m,am as g,as as h,o as _,ao as y,ap as v,e as b,ah as f}from"./vendor-89091f33.js";import"./utils-97b088a6.js";import"./validation-a48cc897.js";import"./ui-libs-59e1057b.js";import"./analytics-cd0490d1.js";const w={class:"m-customerInfo rebornPage",id:"customerInfoForm"},x={key:0,class:"page__header"},A={class:"page__title"},k={key:1,class:"panel"},L={style:{display:"flex","flex-direction":"column"}},j={key:2,class:"panel"},$={class:"panel__body"},C={class:"m-empty -messages",id:"emtyReborn"},R={class:"m-empty__message"},D={class:"icon-message"},E={class:"m-empty__messageTitle"},T={class:"m-empty__messageText"},B={key:3,class:"rebornApplications"},I={class:"rebornApplications"},S={class:"rebornApplications__img"},F=["alt"],z={class:"rebornApplications__description"},M={class:"rebornApplications__code"},N={class:"rebornApplications__date"},O={class:"rebornApplications__statusMessage"},P={class:"rebornApplications__actions"},V={key:0,class:"m-orderList__loading -relative"},Y={key:0,class:"rebornApplications__footer"},q={key:0,class:"a-borderButton loadingBtn -relative"},G={__name:"RebornApplicationsView",setup(G){const H=a(),J=f((()=>e((()=>import("./Loading-69c25a5d.js")),["assets-cop-spa/Loading-69c25a5d.js","assets-cop-spa/index-6f9941b2.js","assets-cop-spa/vendor-89091f33.js","assets-cop-spa/utils-97b088a6.js","assets-cop-spa/vue-core-3726e80b.js","assets-cop-spa/validation-a48cc897.js","assets-cop-spa/vue-ecosystem-02f94b18.js","assets-cop-spa/ui-libs-59e1057b.js","assets-cop-spa/analytics-cd0490d1.js","assets-cop-spa/index-56d4061f.css"]))),K=f((()=>e((()=>import("./LocalizedLink-8f98c0e1.js")),["assets-cop-spa/LocalizedLink-8f98c0e1.js","assets-cop-spa/index-6f9941b2.js","assets-cop-spa/vendor-89091f33.js","assets-cop-spa/utils-97b088a6.js","assets-cop-spa/vue-core-3726e80b.js","assets-cop-spa/validation-a48cc897.js","assets-cop-spa/vue-ecosystem-02f94b18.js","assets-cop-spa/ui-libs-59e1057b.js","assets-cop-spa/analytics-cd0490d1.js","assets-cop-spa/index-56d4061f.css"]))),Q=s((()=>H.state.reborn.applicationsList)),U=s((()=>H.state.reborn.loading)),W=s((()=>H.state.reborn.currentPage)),X=s((()=>H.state.reborn.pageCount));i((async()=>{H.state.reborn.loading.applicationsList=!0,await ee(),await Z(!1)}));const Z=async e=>{await H.dispatch("reborn/getRebornApplicationsList",e)},ee=async()=>{await H.dispatch("customer/getInitialize")},ae=e=>{if(!e)return"";const a=new Date(e);return`${a.getDate()} ${a.toLocaleString("tr-TR",{month:"long"})} ${a.getFullYear()}`},te=e=>{switch(e){case"ongoing":case"readyforpayment":case"atthelostra":case"preparingforsale":case"sold":case"inevaluation":case"onsale":return"icon-timer";case"completed":case"applicationreceived":case"preliminaryapproval":default:return"icon-success";case"rejected":case"failed":case"salerejected":return"icon-cancel"}};return(e,a)=>{const s=g("icon"),i=h("lazy");return _(),r("div",w,[e.$store.state.address.showAddOrEditAddress?d("",!0):(_(),r("div",x,[o(n(K),{to:"/customer/reborn",class:"page__close"},{default:l((()=>[o(s,{name:"icon-back",class:"icon-back",width:"15",height:"20"})])),_:1}),c("div",A,p(e.$t("customerNavigation.rebornMyApplications")),1)])),U.value.applicationsList?(_(),r("div",k,[c("div",L,[(_(),r(u,null,m(5,((e,s)=>o(n(t),{style:{width:"100%",border:"solid 1px #f3f3f3","margin-bottom":"8px","background-color":"#f9f9f9",padding:"16px"},viewBox:"0 0 375 108",speed:2,primaryColor:"#e9e9e9",secondaryColor:"#e2e2e2",key:s},{default:l((()=>[...a[1]||(a[1]=[c("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"75",height:"106"},null,-1),c("rect",{x:"100",y:"0",rx:"0",ry:"0",width:"100",height:"16"},null,-1),c("rect",{x:"100",y:"32",rx:"0",ry:"0",width:"140",height:"10"},null,-1),c("rect",{x:"100",y:"50",rx:"0",ry:"0",width:"100",height:"10"},null,-1),c("rect",{x:"100",y:"70",rx:"0",ry:"0",width:"150",height:"10"},null,-1),c("rect",{x:"100",y:"90",rx:"0",ry:"0",width:"200",height:"10"},null,-1)])])),_:1}))),64))])])):U.value.applicationsList||Q.value.length?(_(),r("div",B,[c("div",I,[(_(!0),r(u,null,m(Q.value,((a,t)=>(_(),r("div",{class:"rebornApplications__item",key:a.id}
1,[o(n(K),{to:`/customer/reborn/applications/${a.id}`,class:"rebornApplications__btn"},{default:l((()=>[c("div",S,[v(c("img",{alt:a.primaryStatusCodeDescription},null,8,F),[[i,a.productImages[0]]])]),c("div",z,[c("span",M,p(e.$t("resell.RebornApplicationNumber"))+" "+p(a.id),1),c("span",N,p(ae(a.createTime)),1),c("div",{class:b(["rebornApplications__status",`-${a.primaryStatusCode}`])},[o(s,{name:te(a.primaryStatusCode),width:"20",height:"20"},null,8,["name"]),c("span",null,p(a.primaryStatusCodeDescription),1)],2),c("div",O,p(a.subStatusCodeDescription),1)]),c("div",P,[o(s,{name:"arrow-right",width:"6",height:"10",class:"icon-arrow-right"}),U.value.item===t?(_(),r("span",V,[o(n(J),{width:"20",height:"20",color:"#111"})])):d("",!0)])])),_:2},1032,["to"])])))),128)),!U.value.applicationsList&&Q.value.length>0?(_(),r("div",Y,[U.value.nextLoad?(_(),r("div",q,[o(n(J),{width:"24",height:"24",color:"#111"})])):W.value<X.value&&Q.value.length<X.value?(_(),r("button",{key:1,class:"a-borderButton",id:"showOtherRebornBtn",onClick:a[0]||(a[0]=e=>Z(!0)),type:"button"},p(e.$t("resell.showMore")),1)):d("",!0)])):d("",!0)])])):(_(),r("div",j,[c("div",$,[c("div",C,[c("div",R,[c("div",D,[o(s,{name:"icon-application-review",fill:"#fff",width:"18",height:"20"})]),c("strong",E,p(e.$t("resell.applicationEmptyTitle")),1),c("p",T,p(e.$t("resell.applicationEmptyMessage")),1),o(n(K),{to:"/customer/reborn/new",title:e.$t("customerNavigation.rebornApplicationForm"),class:"a-primaryButton -large"},{default:l((()=>[y(p(e.$t("customerNavigation.rebornApplicationForm")),1)])),_:1},8,["title"])])])])]))])}}};export{G as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.