import{d as E,q as e,o as m,c as f,a as o,t as v,s as t,x as V,i as I,b as s,u as H,l as K,y as U,E as J,a3 as Q,r as T,w as y,e as F,p as j,h as x,ao as X,a4 as Z,A as ee,V as te,g as R,D as G,v as se}from"./entry.5-Yor76D.js";import{u as oe}from"./useUtils.UQQNqVMQ.js";import{G as ae,T as ne}from"./Toaster.f6cF1Vok.js";import{G as le}from"./GlobalFooter.2w56PzG0.js";import{P as ie}from"./PageContents.mTX5Fq0L.js";import{D as ce}from"./Dialog.9CqtyaKt.js";import{O as Y}from"./OButton.OjiS8EW8.js";import{E as pe}from"./EntryStepIndicator.2REgmvea.js";import{_ as re,D as de}from"./SupressEntriesAlert.vue.P-H2N--M.js";import{I as ue}from"./InvoyCardPopup.y12H7UMU.js";import"./swiper-vue.w40geAFS.js";import"./icon-tel.XRNg3FKH.js";import"./Menu.LFtko4rQ.js";import"./systemSettings.lyqQxYWn.js";const me=E({__name:"Completion",props:{isCompleted:{type:Boolean,default:!1}},setup(a){const c=a,p=e(()=>({"is-completed":c.isCompleted})),l=e(()=>c.isCompleted?"済":"未");return(r,d)=>(m(),f("span",{class:V(["completion",t(p)])},[o("span",null,v(t(l)),1)],2))}}),_e=I(me,[["__scopeId","data-v-08744c82"]]),ve={class:"stepLinkContents"},Se={class:"pc-disp"},he={class:"sp-disp"},fe={key:1,class:"stepLinkContents__step"},ye={class:"pc-disp"},Ce={class:"sp-disp"},be=E({__name:"EntryStepLink",props:{isCompleted:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},to:{default:""},label:{default:""},shortLabel:{default:""}},emits:["moveTo"],setup(a,{emit:c}){const p=a,l=c,r=e(()=>({"is-active":p.isActive})),d=()=>{l("moveTo",p.to)};return(n,u)=>(m(),f("div",{class:V(["entryStepLink",t(r)])},[o("div",ve,[s(_e,{class:"stepLinkContents__completion","is-completed":n.isCompleted},null,8,["is-completed"]),n.isActive?(m(),f("span",fe,[o("span",ye,v(n.label),1),o("span",Ce,v(n.shortLabel),1)])):(m(),f("span",{key:0,class:"stepLinkContents__step stepLinkContents__step--active",onClick:d},[o("span",Se,v(n.label),1),o("span",he,v(n.shortLabel),1)]))])],2))}}),w=I(be,[["__scopeId","data-v-26194754"]]),Te=a=>(j("data-v-3404604f"),a=a(),x(),a),Ee={class:"entryStepSidenav"},Ie={class:"sidenav-content"},$e=Te(()=>o("div",{class:"entryStepSidenavModal__message"},"ページを移動しますか？入力途中の内容は削除されます。",-1)),ge={class:"entryStepSidenavModal__buttons"},ke=E({__name:"EntryStepSidenav",setup(a){const c=H(),p=K(),l=U(),r=J(),d=Q(),n=T(""),u=T(!1),C=e(()=>l.hasFinancialStepCompleted),$=e(()=>l.hasInvoiceStepCompleted),g=e(()=>l.hasWithdrawalStepCompleted),k=e(()=>l.hasFinancialStepChanges),A=e(()=>l.hasInvoiceStepChanges),b=e(()=>l.hasWithdrawalStepChanges),i=e(()=>r.isFinancialStep),S=e(()=>r.isInvoiceStep),P=e(()=>r.isWithdrawalStep),z=e(()=>d.isCorporate),q=e(()=>d.isIndividual),M=e(()=>i.value(c.path)),N=e(()=>S.value(c.path)),B=e(()=>P.value(c.path)),W=e(()=>z.value?"決算書一式":q.value?"税務申告内容":"決算書一式"),L=h=>{let _=!1;N.value?_=A.value:M.value?_=k.value:B.value&&(_=b.value),_?(u.value=!0,n.value=h):(n.value=h,O())},O=()=>{p.push(n.value),u.value=!1,n.value=""};return(h,_)=>(m(),f("div",Ee,[o("div",Ie,[s(w,{label:"請求書","short-label":"請求書","is-active":t(N),"is-completed":t($),to:h.$constants.ENTRY_STEP_INVOICE_PAGE_PATH,onMoveTo:L},null,8,["is-active","is-completed","to"]),s(w,{label:t(W),"short-label":t(W),"is-active":t(M),"is-completed":t(C),to:h.$constants.ENTRY_STEP_FINANCIAL_PAGE_PATH,onMoveTo:L},null,8,["label","short-label","is-active","is-completed","to"]),s(w,{label:"入出金明細","short-label":"入出金明細","is-active":t(B),"is-completed":t(g),to:h.$constants.ENTRY_STEP_WITHDRAWAL_PAGE_PATH,onMoveTo:L},null,8,["is-active","is-completed","to"])]),s(ce,{"is-show-modal":t(u),class:"entryStepSidenavModal"},{default:y(()=>[$e,o("div",ge,[s(Y,{variant:"outlined",onClick:_[0]||(_[0]=Me=>u.value=!1)},{default:y(()=>[F("キャンセル")]),_:1}),s(Y,{color:"primary",variant:"contained",onClick:O},{default:y(()=>[F("OK")]),_:1})])]),_:1},8,["is-show-modal"])]))}}),Ae=I(ke,[["__scopeId","data-v-3404604f"]]),D=a=>(j("data-v-83937b59"),a=a(),x(),a),Le={class:"wrapper"},we=D(()=>o("br",{class:"pc-disp"},null,-1)),Fe=D(()=>o("span",null,"前回操作から、入出金(口座の動き)があれば追加でご提出をお願いします。",-1)),De=D(()=>o("h1",{class:"heading1"},"請求書買取のお申込み",-1)),Pe=E({__name:"entry",setup(a){const c=H(),{isOlta:p}=oe(),l=X(),r=U(),d=Z(),n=T(!1),u=T(!0);ee(()=>{document.addEventListener("scroll",b)}),te(()=>{document.removeEventListener("scroll",b)});const C=e(()=>d.text),$=e(()=>!!d.isError),g=e(()=>r.accountStepDone),k=e(()=>{const i=l.lastUploadedFileDate;return i?i.format("YYYY/M/D"):""}),A=e(()=>{const i=c.path.match("^/entry/entry_invoice/?$");return u.value&&i&&p.value}),b=()=>{const i=document.getElementById("entryStepSidenav");if(!i)return;const S=document.documentElement.scrollTop||document.body.scrollTop;n.value=60+i.offsetTop<S};return(i,S)=>(m(),f("div",Le,[s(ae),o("main",null,[t(C)?(m(),R(ne,{key:0,error:t($)},{default:y(()=>[F(v(t(C)),1)]),_:1},8,["error"])):G("",!0),t(A)?(m(),R(ue,{key:1,link:"https://go.invoy.jp/lp/settlement/pay/invoy-offer/?utm_source=olta-documentsubmission&utm_medium=asset&utm_campaign=bpsp-pay&utm_content=banner","banner-src":"https://go.invoy.jp/docs/common/bpsp_pay_OLTA_invoice.png",onClose:S[0]||(S[0]=P=>u.value=!1)})):G("",!0),s(re),s(ie,{class:"entry",size:"small"},{default:y(()=>[s(pe,{"document-step":!0,"account-step-done":t(g)},null,8,["account-step-done"]),s(de,null,{default:y(()=>[o("span",null,v(t(k))+" にアップロードされたファイルを途中保存しています。",1),we,Fe]),_:1}),De,s(Ae,{id:"entryStepSidenav"}),se(i.$slots,"default",{},void 0,!0)]),_:3})]),s(le)]))}}),Ke=I(Pe,[["__scopeId","data-v-83937b59"]]);export{Ke as default};
