1import{a8 as U,a3 as P,_ as G,V as Q,L as J,a7 as K,v as X,J as Z,D as $,j as k,N as ee,E as N,aB as ie,a9 as H,r as h,o as d,c,e as u,f as _,b as s,l as te,S as se,a as t,t as n,d as m,F as p,k as w,n as M,w as S,h as b,H as ne}from"./app-8e89e54e4be8a422a172394f74d6dad5fcdc9e69.js";import{f as ae,p as oe}from"./filters-3ac69e2e.js";import{H as re,C as le}from"./HeaderParts-88484175.js";import{S as de}from"./sidebar-nav-7b0ab467.js";import{H as ce}from"./HeaderLinkGroupButton-9da028d6.js";import{D as me}from"./DownloadFileModal-074c2f5c.js";import{I as ve,i as g}from"./Invoice.i18n-e0967258.js";import{M as he}from"./Modal-54a4a3d4.js";import{C as ue}from"./CreditCardSelector-9d32fb69.js";import{S as ye}from"./StoreSpecifiedCommercialTransactionsNotationModal-70f60fa0.js";import{R as _e}from"./CardRepository-39d85b92.js";import{i as pe}from"./CustomerService-a429bc6d.js";import{V as ge}from"./Vuelidate-3c9f5376.js";import{u as be}from"./index-04640ba3.js";import"./SelectButton-92ff7706.js";import"./FormInputContainer-583ea2fe.js";class fe extends U{async requestStartCreateFile(e,v){return(await P.post(`/api/invoice/${v.uuid}/export/purchase_invoice`)).data}async requestCheckFileExists(e,v,i){return(await P.get(`/api/invoice/${i.uuid}/export/purchase_invoice/${v}/exists`,{params:{uuid:v}})).data}}class Ce extends U{async requestStartCreateFile(e,v){return(await P.post(`/api/invoice/${v.invoice_uuid}/export/recipe`)).data}async requestCheckFileExists(e,v,i){return(await P.get(`/api/invoice/${i.invoice_uuid}/export/recipe/${v}`)).data}}const x={checkChangeHistory:{ja:"夿´å±¥æ´ã確èª","en-US":"Check the change history",th:"à¸à¸¹à¸à¸£à¸°à¸§à¸±à¸à¸´à¸à¸²à¸£à¹à¸à¹à¹à¸","zh-Hans":"æ£æ¥æ´æ¹åå²"},switch:{ja:"åãæ¿ãã","en-US":"Switch",th:"สลัà¸","zh-Hans":"转å"},stop:{ja:"ããã","en-US":"Cancel",th:"ยà¸à¹à¸¥à¸´à¸","zh-Hans":"忢"},cartWillBeCleared:{ja:"ç¾å¨ã«ã¼ãã«å
¥ã£ã¦ããååã¯ã¯ãªã¢ããã¾ãã","en-US":"Any items in the cart will be cleared.",th:"สิà¸à¸à¹à¸²à¸à¸µà¹à¸à¸¢à¸¹à¹à¹à¸à¸à¸°à¸à¸£à¹à¸²à¸ªà¸´à¸à¸à¹à¸²à¹à¸à¸à¸à¸°à¸à¸µà¹à¸à¸°à¸à¸¹à¸à¸¥à¹à¸²à¸à¸à¸à¸","zh-Hans":"æ¨è´ç©è½¦ä¸å½åçååå°è¢«æ¸
é¤ã"},isItOk:{ja:"ããããã§ããï¼","en-US":"Is it OK?",th:"ยืà¸à¸¢à¸±à¸à¸«à¸£à¸·à¸à¹à¸¡à¹?","zh-Hans":"å¯ä»¥åï¼"},specifiedCommercialTransactionsNotationLink:{ja:"ç¹å®åå弿³ã«åºã¥ã表è¨","en-US":"Notation based on the Act on Specified Commercial Transactions",th:"à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¸²à¸¡à¸à¸à¸«à¸¡à¸²à¸¢à¸à¸¸à¸£à¸à¸£à¸£à¸¡à¸à¸²à¸£à¸à¹à¸²à¹à¸à¸à¸²à¸°à¸à¸²à¸","zh-Hans":"æ ¹æ®ãç¹å®åä¸äº¤ææ³ãçæ ç¤º"},payNow:{ja:"決æ¸ãã","en-US":"Pay now",th:"à¸à¸³à¸£à¸°à¹à¸à¸´à¸","zh-Hans":"ç«å³æ¯ä»"},payAmountLabel:{ja:"{price}ãæ±ºæ¸ãã","en-US":"Pay {price}",th:"à¸à¸³à¸£à¸° {price}","zh-Hans":"æ¯ä»{price}"},invoicePdfDownloadLabel:{ja:"è«æ±æ¸","en-US":"Invoice",th:"à¹à¸à¹à¸à¹à¸à¸«à¸à¸µà¹","zh-Hans":"è´¦å"},receiptPdfDownloadLabel:{ja:"é 忏","en-US":"Receipt",th:"à¹à¸à¹à¸ªà¸£à¹à¸à¸£à¸±à¸à¹à¸à¸´à¸","zh-Hans":"æ¶æ®"},alreadyPaidByCreditCardMessage:{ja:"ã«ã¼ãæ±ºæ¸æ¸ã¿ã§ã","en-US":"Already paid by credit card",th:"à¸à¸³à¸£à¸°à¸à¹à¸§à¸¢à¸à¸±à¸à¸£à¹à¸£à¸µà¸¢à¸à¸£à¹à¸à¸¢à¹à¸¥à¹à¸§","zh-Hans":"å·²éè¿ä¿¡ç¨å¡å®ææ¯ä»"},viewerCannotPayMessage:{ja:"é²è¦§è
ã¯æ±ºæ¸ãå®è¡ã§ãã¾ãã","en-US":"Viewers cannot make a payment",th:"à¸à¸¹à¹à¸à¸µà¹à¸¡à¸µà¸ªà¸´à¸à¸à¸´à¹à¸à¸¹à¹à¸à¹à¸²à¸à¸±à¹à¸à¹à¸¡à¹à¸ªà¸²à¸¡à¸²à¸£à¸à¸à¸³à¸£à¸°à¹à¸à¸´à¸à¹à¸à¹","zh-Hans":"ä»
æµè§æéçç¨æ·æ æ³è¿è¡æ¯ä»"},preparingPaymentMessage:{ja:"決æ¸ã®æºåä¸ã§ã","en-US":"Preparing for payment",th:"à¸à¸³à¸¥à¸±à¸à¹à¸à¸£à¸µà¸¢à¸¡à¸à¸²à¸£à¸à¸³à¸£à¸°à¹à¸à¸´à¸","zh-Hans":"æ£å¨å夿¯ä»"},redirectToPaymentServiceMessage:{ja:"決æ¸ç¨ãµã¼ãã¹ã®ç»é¢ã«ç§»åãã¾ã","en-US":"You will be redirected to the payment service screen",th:"à¸à¸¸à¸à¸à¸°à¸à¸¹à¸à¸à¸³à¹à¸à¸¢à¸±à¸à¸«à¸à¹à¸²à¸à¸à¸à¸£à¸´à¸à¸²à¸£à¸à¸³à¸£à¸°à¹à¸à¸´à¸","zh-Hans":"å³å°è·³è½¬è³æ¯ä»æå¡é¡µé¢"},privacyPolicyLinkLabel:{ja:"ãã©ã¤ãã·ã¼ããªã·ã¼","en-US":"Privacy Policy",th:"à¸à¹à¸¢à¸à¸²à¸¢à¸à¸§à¸²à¸¡à¹à¸à¹à¸à¸ªà¹à¸§à¸à¸à¸±à¸§","zh-Hans":"éç§æ¿ç"},agreeToPrivacyPolicySuffix:{ja:"ã«åæããä¸ã§ãé²ã¿ãã ãã","en-US":": Please agree to it before proceeding",th:": à¸à¸£à¸¸à¸à¸²à¸¢à¸à¸¡à¸£à¸±à¸à¹à¸à¸·à¹à¸à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸£à¸à¹à¸","zh-Hans":"ï¼è¯·åæ
1åç»§ç»"},paymentFailedTitle:{ja:"決æ¸ã«å¤±æãã¾ãã","en-US":"Payment failed",th:"à¸à¸²à¸£à¸à¸³à¸£à¸°à¹à¸à¸´à¸à¸¥à¹à¸¡à¹à¸«à¸¥à¸§","zh-Hans":"æ¯ä»å¤±è´¥"},paymentFailedMessage:{ja:"決æ¸ã«å¤±æãã¾ããã","en-US":"The payment failed.",th:"à¸à¸²à¸£à¸à¸³à¸£à¸°à¹à¸à¸´à¸à¸¥à¹à¸¡à¹à¸«à¸¥à¸§","zh-Hans":"æ¯ä»å¤±è´¥ã"},paymentFailedInstructions:{ja:"以ä¸ã®é
ç®ã確èªã®ããããããã¦æ±ºæ¸ãã¦ãã ããã","en-US":"Please check the following and try the payment again.",th:"à¸à¸£à¸¸à¸à¸²à¸à¸£à¸§à¸à¸ªà¸à¸à¸£à¸²à¸¢à¸à¸²à¸£à¸à¹à¸à¹à¸à¸à¸µà¹à¹à¸¥à¹à¸§à¸à¸³à¸£à¸°à¹à¸à¸´à¸à¸à¸µà¸à¸à¸£à¸±à¹à¸","zh-Hans":"请确认以ä¸é¡¹ç®åéæ°æ¯ä»ã"},cardNumberCheckItem:{ja:"ã«ã¼ãã®çªå·ãééã£ã¦ããªãã","en-US":"Whether the card number is correct",th:"หมายà¹à¸¥à¸à¸à¸±à¸à¸£à¸à¸¹à¸à¸à¹à¸à¸à¸«à¸£à¸·à¸à¹à¸¡à¹","zh-Hans":"å¡å·æ¯å¦æ£ç¡®"},cardExpirationCheckItem:{ja:"ã«ã¼ãã®æå¹æéãåãã¦ããªãã","en-US":"Whether the card has expired",th:"à¸à¸±à¸à¸£à¸«à¸¡à¸à¸à¸²à¸¢à¸¸à¸«à¸£à¸·à¸à¹à¸¡à¹","zh-Hans":"å¡çæ¯å¦å·²è¿æ"},threeDSecureCheckItem:{ja:"3Dã»ãã¥ã¢èªè¨¼ãç»é²ããã¦ããã","en-US":"Whether 3D Secure authentication is registered",th:"ลà¸à¸à¸°à¹à¸à¸µà¸¢à¸à¸à¸²à¸£à¸¢à¸·à¸à¸¢à¸±à¸à¸à¸±à¸§à¸à¸ 3D Secure à¹à¸¥à¹à¸§à¸«à¸£à¸·à¸à¹à¸¡à¹","zh-Hans":"æ¯å¦å·²æ³¨å3D Secureéªè¯"},currentDisplayStoreLabel:{ja:"ç¾å¨ã®è¡¨ç¤ºåºè","en-US":"Currently displayed store",th:"รà¹à¸²à¸à¸à¹à¸²à¸à¸µà¹à¹à¸ªà¸à¸à¸à¸¢à¸¹à¹à¹à¸à¸à¸à¸°à¸à¸µà¹","zh-Hans":"å½åæ¾ç¤ºçåºéº"},switchStoreToOpenInvoiceMessage:{ja:"{name}å®ã®è«æ±æ¸ãéãã«ã¯åºèãåãæ¿ããå¿
è¦ãããã¾ãã","en-US":"To open the invoice addressed to {name}, you need to switch stores.",th:"หาà¸à¸à¹à¸à¸à¸à¸²à¸£à¹à¸à¸´à¸à¹à¸à¹à¸à¹à¸à¸«à¸à¸µà¹à¸à¸µà¹à¸ªà¹à¸à¸à¸¶à¸ {name} à¸à¸¸à¸à¸à¹à¸à¸à¸ªà¸¥à¸±à¸à¸£à¹à¸²à¸à¸à¹à¸²","zh-Hans":"è¦æå¼å¯éç»{name}çè´¦åï¼éè¦åæ¢åºéºã"}};const ke={components:{RegisterPaymentInformationDialog:_e,StoreSpecifiedCommercialTransactionsNotationModal:ye,CreditCardSelector:ue,AppIcon:Q,Loaders:J,Modal:he,ModalDialog:K,DownloadFileModal:me,HeaderLinkGroupButton:ce,headerParts:re,SidebarNav:de,InvoiceStatusTag:ve},mixins:[ge,X,le],setup(){const{t:r}=ne();return{t:r,messages:x,invoiceMessages:g,common:Z,v$:be()}},data(){return{invoiceUuid:this.$route.params.invoice_uuid,invoice:{},loading:!0,disabled:!1,isCreditCardPaymentPreparationModalVisible:!1,isCreditCardPaymentPreparing:!1,hasCard:!1,cardId:null,lastDownloadLabel:"",isPaymentFailedModalVisible:!1,isSpecifiedCommercialTransactionsNotationModalVisible:!1,isVisibleRegisterPaymentInformationVisible:!1,shouldShowAllDeliveryLinks:!1,shouldShowAllInvoiceDetails:!1,isShowChangeMemberConfirmDialog:!1,changeMemberId:null,changeMemberName:null,currentMemberName:null,changeStoreId:null,redirectToken:null}},computed:{...$("cart/storeCart",["totalQuantity"]),visibleDeliveryLinks(){const r=this.invoice.deliveries||[];return this.shouldShowAllDeliveryLinks?r:r.slice(0,2)},hasManyDeliveries(){return(this.invoice.deliveries||[]).length>2},visibleInvoiceDetails(){const r=this.invoice.invoice_details||[];return this.shouldShowAllInvoiceDetails?r:r.slice(0,2)},hasManyInvoiceDetails(){return(this.invoice.invoice_details||[]).length>2},summaryLabels(){var r;return[{label:this.t(g.publisher),values:[this.invoice.store_company_name,this.invoice.publisher_tel?`TEL ${this.invoice.publisher_tel}`:null,this.invoice.publisher_postal_code?`ã ${this.invoice.publisher_postal_code}`:null,this.invoice.publisher_address].filter(e=>!!e),modal:!k.isEmpty((r=this.invoice)==null?void 0:r.store_specified_commercial_transactions_notation)},{label:this.t(g.invoiceDate),value:this.invoice.invoice_date},{label:this.t(g.invoiceNumber),value:this.invoice.store_invoice_code},this.invoice.due_date&&{label:this.t(g.paymentDeadline),value:this.invoice.due_date},this.invoice.subject&&{label:this.t(g.subject),value:this.invoice.subject}].filter(e=>!!e)},payeeInformationText(){return this.invoice?k.isNil(this.invoice.payee_information)||this.invoice.payee_information===""?this.t(g.notProvided):this.invoice.payee_information:""},captionText(){return this.invoice?k.isNil(this.invoice.remarks)||this.invoice.remarks===""?this.t(g.notProvided):this.invoice.remarks:""},showDeliveries(){return this.invoice&&this.invoice.deliveries&&this.invoice.deliveries.length>0},headerLinks(){var r;return[{key:"pdf",label:this.t(x.invoicePdfDownloadLabel),noTranslate:!0},(r=this.invoice)!=null&&r.can_publish_recipe?{key:"recipe",label:this.t(x.receiptPdfDownloadLabel),noTranslate:!0}:null].filter(e=>!!e)},isCreditCardPaymentEnabled(){return this.invoice.can_pay_by_credit_card&&this.$root.canPayInvoiceByCard}},async created(){this.$route.query.payment_failed==="1"&&(await this.$router.replace({query:k.omit(this.$route.query,"payment_failed")}),this.isPaymentFailedModalVisible=!0),await this.fetch()},methods:{formatDecimalPoint:ae,df:ee,...N("components/downloadFile",["startCreateFile"]),...N("cart/storeCart",["fetchTotalQuantity"]),goBack(){this.$router.push("/invoice")},async fetch(){var r,e;try{this.invoice=await ie.findByUuid(this.invoiceUuid),this.loading=!1}catch(v){if(console.warn("è«æ±æ¸ã®åå¾ã«å¤±æãã¾ãã",v),((r=v.response)==null?void 0:r.status)===403){showFlashMessage(v.response.data.message,"error");return}if(((e=v.response)==null?void 0:e.status)!==404){showFlashMessage("ã¨ã©ã¼ãçºçãã¾ãã","error");return}try{await this.tryStoreSwitch()}catch(i){console.warn("åºèåæ¿ã«å¤±æãã¾ãã",i),showFlashMessage("ã¨ã©ã¼ãçºçãã¾ãã","error"),this.$root.goBack("/invoice")}}},async tryStoreSwitch(){var v,i,a,o,f;const[r]=await Promise.all([axios.get(`/api/invoice/${this.invoiceUuid}/assigned_member`),this.fetchTotalQuantity({storeId:this.currentStoreId})]),{data:e}=r;if(!e.member_id||e.current_member_id===e.member_id)throw new Error("é²è¦§å¯è½ãªå¥åºèãè¦ã¤ããã¾ãã");this.changeMemberId=(v=e.member_id)!=null?v:null,this.changeMemberName=(i=e.member_company_name)!=null?i:null,this.currentMemberName=(a=e.current_member_company_name)!=null?a:null,this.changeStoreId=(o=e.store_id)!=null?o:null,this.redirectToken=(f=e.redirect_token)!=null?f:null,this.totalQuantity>0?this.isShowChangeMemberConfirmDialog=!0:this.submitChangeMember()},openExportModal(){this.lastDownloadLabel="è«æ±æ¸",this.startCreateFile({fileExtension:H,service:new fe,params:{uuid:this.invoice.invoice_uuid}})},openExportRecipeModal(){this.lastDownloadLabel="é 忏",this.startCreateFile({fileExtension:H,service:new Ce,params:{invoice_uuid:this.invoice.invoice_uuid}})},itemName(r=null){return!r||!r.title&&!r.item_name?"":r.title?r.title:r.item_name}
1,async startCreditCardPayment(){this.isCreditCardPaymentEnabled&&(this.isCreditCardPaymentPreparationModalVisible=!0,this.isCreditCardPaymentPreparing=!0)},onCardLoaded(r){this.isCreditCardPaymentPreparing=!1,this.hasCard=r.length>0},async onSubmitPayment(){if(!(this.disabled||!this.invoice.can_pay_by_credit_card)&&(this.vuelidateReset(),this.hasCard&&!this.cardId&&this.vuelidateSetFieldError("cardId","ã«ã¼ããæå®ãã¦ãã ãã"),!this.hasVuelidateErrors())){if(!await pe()){this.isVisibleRegisterPaymentInformationVisible=!0;return}this.hasCard?await this.payByExistsCard():await this.payByNewCard()}},async onPaymentInformationRegistered(){this.isVisibleRegisterPaymentInformationVisible=!1,this.hasCard?await this.payByExistsCard():await this.payByNewCard()},async payByNewCard(){this.disabled=!0;try{const r=await axios.post("/api/account/payments/cards",{context:"invoice",invoice_uuid:this.invoice.invoice_uuid});if(!r.data.url){showFlashMessage("決æ¸ã®æºåã«å¤±æãã¾ãã","error"),this.disabled=!1;return}window.location.href=r.data.url}catch(r){showFlashMessage("決æ¸ã®æºåã«å¤±æãã¾ãã","error"),this.disabled=!1}},async payByExistsCard(){var r,e,v;this.disabled=!0;try{const i=await axios.post(`/api/invoice/${this.invoiceUuid}/payment/credit_card`,{card_id:this.cardId});window.location.href=i.data.acs_url}catch(i){this.vuelidateValidatorFail(i,{card_id:"cardId"}),console.error(i),showFlashMessage((v=(e=(r=i.response)==null?void 0:r.data)==null?void 0:e.message)!=null?v:"è«æ±æ¸ã®æ±ºæ¸ã«å¤±æãã¾ãã","error"),this.disabled=!1}},closeCreditCardPayment(){this.disabled||(this.cardId=null,this.isCreditCardPaymentPreparationModalVisible=!1,this.isCreditCardPaymentPreparing=!1)},priceFormat:oe,switchDeliveryLinkVisibility(){this.shouldShowAllDeliveryLinks=!this.shouldShowAllDeliveryLinks},switchInvoiceDetailVisibility(){this.shouldShowAllInvoiceDetails=!this.shouldShowAllInvoiceDetails},onCancelChangeMember(){this.isShowChangeMemberConfirmDialog=!1,this.$root.goBack("/invoice")},submitChangeMember(){var r;if(!this.changeMemberId){this.onCancelChangeMember();return}this.$router.push({path:"/change_member",query:{member_id:this.changeMemberId,store_id:this.changeStoreId,redirect_token:(r=this.redirectToken)!=null?r:void 0}})}}},we={class:"wrapper bg-gray"},Me={key:0,class:"invoice-revision-logs-link"},Se={key:1,class:"page-caption no-translate"},Pe={class:"expand-button-content"},xe={class:"no-translate"},De={class:"material-icons"},Ie={class:"page-caption-wrapper"},Fe={class:"page-caption-text no-translate"},Le={class:"no-translate"},Te={class:"no-translate"},Ve={key:0},Ne={class:"page-caption no-border no-translate"},He={key:0,class:"no-translate detail-header-values"},Ue={key:0},je={class:"no-translate"},Be={class:"no-translate"},Ee={class:"quantity"},ze={class:"no-translate"},Re={key:0},Ae={key:1,class:"no-translate"},qe={class:"no-translate"},Ye={key:0},Oe={key:1},We={class:"expand-button-content"},Ge={class:"no-translate"},Qe={class:"material-icons"},Je={class:"summary-container"},Ke={class:"tax-summary"},Xe={class:"tax-header"},Ze={class:"no-translate"},$e={class:"no-translate"},ei={class:"no-translate"},ii={class:"no-translate"},ti={class:"no-translate"},si={class:"no-translate"},ni={class:"no-translate"},ai={class:"no-translate"},oi={class:"no-translate"},ri={class:"no-translate"},li={class:"no-translate"},di={class:"detail-summary"},ci={class:"no-translate"},mi={class:"no-translate"},vi={class:"no-translate"},hi={class:"no-translate"},ui={class:"no-translate"},yi={class:"no-translate"},_i={class:"no-translate"},pi={class:"no-translate"},gi={class:"no-translate"},bi={class:"no-translate"},fi={class:"page-caption no-border no-translate"},Ci={class:"each-infodata last"},ki=["textContent"],wi={class:"page-caption no-border no-translate"},Mi={class:"each-infodata last"},Si=["textContent"],Pi={key:4,class:"footer-buttons"},xi=["disabled"],Di={key:0,class:"footer-button-message no-translate"},Ii={key:1,class:"footer-button-message no-translate"},Fi={class:"no-translate"},Li={class:"credit-card-payment-container"},Ti={key:0,class:"loader-container"},Vi={class:"no-translate"},Ni={class:"payment-detail-summaries"},Hi={class:"payment-detail-summary"},Ui={class:"no-translate"},ji={class:"no-translate"},Bi={class:"payment-detail-summary"},Ei={class:"no-translate"},zi={class:"no-translate"},Ri={class:"payment-detail-summary total"},Ai={class:"no-translate"},qi={class:"no-translate"},Yi={key:1,class:"no-translate"},Oi={class:"privacy-policy-link-container"},Wi={href:"https://lp.tano.mu/security/privacy/",target:"_blank",rel:"noreferrer noopener nofollow",class:"no-translate"},Gi={class:"no-translate"},Qi=["disabled"],Ji={class:"no-translate"},Ki={class:"payment-failed-modal-contents no-translate"},Xi={class:"payment-failed-modal-buttons"},Zi={class:"confirm-message-row"},$i={class:"no-translate"},et={class:"no-translate"},it={class:"confirm-message-row no-translate"},tt={class:"no-translate"},st={class:"no-translate"};function nt(r,e,v,i,a,o){var F,L,T;const f=h("HeaderLinkGroupButton"),j=h("header-parts"),B=h("SidebarNav"),D=h("router-link"),E=h("InvoiceStatusTag"),z=h("DownloadFileModal"),R=h("Loaders"),A=h("CreditCardSelector"),q=h("AppIcon"),I=h("Modal"),Y=h("StoreSpecifiedCommercialTransactionsNotationModal"),O=h("RegisterPaymentInformationDialog"),W=h("ModalDialog");return d(),c("div",we,[u(j,{title:i.t(i.invoiceMessages.invoiceDetailTitle),"no-translate-title":"","is-show-back":"",onClickBack:o.goBack},{default:_(()=>[u(f,{icon:"system_update_alt",links:o.headerLinks,disabled:!a.invoice||a.loading,onClickPdf:o.openExportModal,onClickRecipe:o.openExportRecipeModal},null,8,["links","disabled","onClickPdf","onClickRecipe"])],void 0,!0),_:1},8,["title","onClickBack"]),e[81]||(e[81]=s()),u(B),e[82]||(e[82]=s()),te(t("main",null,[a.invoice.is_published_edited?(d(),c("div",Me,[u(D,{to:`/invoice/${a.invoice.invoice_uuid}/revision`,class:"no-translate"},{default:_(()=>[s(n(i.t(i.messages.checkChangeHistory)),1)],void 0,!0),_:1},8,["to"])])):m("",!0),e[45]||(e[45]=s()),o.showDeliveries?(d(),c("p",Se,n(i.t(i.invoiceMessages.relatedDeliveries)),1)):m("",!0),e[46]||(e[46]=s()),(d(!0),c(p,null,w(o.visibleDeliveryLinks,(l,y)=>(d(),c("div",{key:`delivery-${y}`,class:M(["each-infodata",{last:y===o.visibleDeliveryLinks-1}])},[t("dl",null,[t("dd",null,[u(D,{to:`/delivery/${l.delivery_uuid}`},{default:_(()=>[s(n(o.df(l.label_published_at,"YYYY/MM/DD HH:mm")),1)],void 0,!0),_:2},1032,["to"])])])],2))),128)),e[47]||(e[47]=s()),o.hasManyDeliveries?(d(),c("div",{key:2,class:"expand-button",onClick:e[0]||(e[0]=(...l)=>o.switchDeliveryLinkVisibility&&o.switchDeliveryLinkVisibility(...l))},[t("div",Pe,[t("span",xe,n(a.shouldShowAllDeliveryLinks?i.t(i.invoiceMessages.collapseLabel):i.t(i.invoiceMessages.expandLabel)),1),e[10]||(e[10]=s()),t("i",De,n(a.shouldShowAllDeliveryLinks?"expand_less":"expand_more"),1)])])):m("",!0),e[48]||(e[48]=s()),t("div",Ie,[t("span",Fe,n(i.t(i.invoiceMessages.invoiceSummary)),1),e[11]||(e[11]=s()),u(E,{invoice:a.invoice},null,8,["invoice"])]),e[49]||(e[49]=s()),(d(!0),c(p,null,w(o.summaryLabels,(l,y)=>(d(),c("div",{key:`summary-label-${y}`,class:M(["each-infodata",{last:y===o.summaryLabels.length-1}])},[t("dl",null,[t("dt",Le,n(l.label),1),e[13]||(e[13]=s()),t("dd",Te,[l.values?(d(!0),c(p,{key:0},w(l.values,(C,V)=>(d(),c(p,{key:`${y}-${V}`},[t("span",null,n(C),1),V!==l.length-1?(d(),c("br",Ve)):m("",!0)],64))),128)):m("",!0),l.values?m("",!0):(d(),c(p,{key:1},[s(n(l.value),1)],64)),e[12]||(e[12]=s()),l.modal?(d(),c("a",{key:2,href:"#",onClick:e[1]||(e[1]=S(C=>a.isSpecifiedCommercialTransactionsNotationModalVisible=!0,["prevent"]))},n(i.t(i.messages.specifiedCommercialTransactionsNotationLink)),1)):m("",!0)])])],2))),128)),e[50]||(e[50]=s()),t("p",Ne,n(i.t(i.invoiceMessages.invoiceDetails)),1),e[51]||(e[51]=s()),(d(!0),c(p,null,w(o.visibleInvoiceDetails,(l,y)=>(d(),c("div",{key:`detail-${y}`,class:"each-infodata order"},[t("dl",null,[l.trade_date||a.invoice.invoice_delivery_detail_grouping_type==="delivery"&&l.delivery_details.length>0?(d(),c("dd",He,[t("span",null,[l.trade_date?(d(),c(p,{key:0},[s(n(o.df(l.trade_date,"YYYY/MM/DD")),1)],64)):m("",!0)]),e[14]||(e[14]=s()),a.invoice.invoice_delivery_detail_grouping_type==="delivery"&&l.delivery_details.length>0?(d(),c("span",Ue,[t("span",je,n(i.t(i.invoiceMessages.deliveryCodeLabel)),1),s("ï¼"+n(l.delivery_details.map(C=>C.store_delivery_code).join(",")),1)])):m("",!0)])):m("",!0),e[18]||(e[18]=s()),t("dt",Be,n(o.itemName(l)),1),e[19]||(e[19]=s()),t("dd",null,[t("ul",Ee,[t("li",null,[t("span",ze,n(o.priceFormat(l.unit_price)),1),e[15]||(e[15]=s()),l.tax_rate_name?(d(),c("span",Re,"/")):m("",!0),e[16]||(e[16]=s()),l.tax_rate_name?(d(),c("span",Ae,n(l.is_no_tax?i.t(i.invoiceMessages.taxFree):i.t(i.invoiceMessages.taxRateLabel).replace("{rate}",l.tax_rate_name)),1)):m("",!0)]),e[17]||(e[17]=s()),t("li",qe,[l.quantity?(d(),c("span",Ye,n(o.formatDecimalPoint(l.quantity)),1)):m("",!0),l.unit_size_name?(d(),c("span",Oe,n(l.unit_size_name),1)):m("",!0)])])])])]))),128)),e[52]||(e[52]=s()),o.hasManyInvoiceDetails?(d(),c("div",{key:3,class:"expand-button",onClick:e[2]||(e[2]=(...l)=>o.switchInvoiceDetailVisibility&&o.switchInvoiceDetailVisibility(...l))},[t("div",We,[t("span",Ge,n(a.shouldShowAllInvoiceDetails?i.t(i.invoiceMessages.collapseLabel):i.t(i.invoiceMessages.expandLabel)),1),e[20]||(e[20]=s()),t("i",Qe,n(a.shouldShowAllInvoiceDetails?"expand_less":"expand_more"),1)])])):m("",!0),e[53]||(e[53]=s()),t("div",Je,[t("div",Ke,[t("dl",Xe,[t("dt",Ze,n(i.t(i.invoiceMessages.taxBracket)),1),e[21]||(e[21]=s()),t("dd",$e,n(i.t(i.invoiceMessages.subtotal)),1),e[22]||(e[22]=s()),t("dd",ei,n(i.t(i.invoiceMessages.consumptionTax)),1)]),e[30]||(e[30]=s()),t("dl",null,[t("dt",ii,n(i.t(i.invoiceMessages.tax10Percent)),1),e[23]||(e[23]=s()),t("dd",ti,n(o.priceFormat(a.invoice.tax_10_percent_sub_total_price)),1),e[24]||(e[24]=s()),t("dd",si,n(o.priceFormat(a.invoice.tax_10_percent_total_tax)),1)]),e[31]||(e[31]=s()),t("dl",null,[t("dt",ni,n(i.t(i.invoiceMessages.tax8Percent)),1),e[25]||(e[25]=s()),t("dd",ai,n(o.priceFormat(a.invoice.tax_8_percent_sub_total_price)),1),e[26]||(e[26]=s()),t("dd",oi,n(o.priceFormat(a.invoice.tax_8_percent_total_tax)),1)]),e[32]||(e[32]=s()),t("dl",null,[t("dt",ri,n(i.t(i.invoiceMessages.taxFree)),1
1),e[27]||(e[27]=s()),t("dd",li,n(o.priceFormat(a.invoice.tax_0_percent_sub_total_price)),1),e[28]||(e[28]=s()),e[29]||(e[29]=t("dd",null,null,-1))])]),e[42]||(e[42]=s()),t("div",di,[t("dl",null,[t("dt",ci,n(i.t(i.invoiceMessages.subtotal)),1),e[36]||(e[36]=s()),t("dd",mi,n(o.priceFormat(a.invoice.sub_total_price)),1),e[37]||(e[37]=s()),t("dt",vi,n(i.t(i.invoiceMessages.consumptionTax)),1),e[38]||(e[38]=s()),t("dd",hi,n(o.priceFormat(a.invoice.tax_total_price)),1),e[39]||(e[39]=s()),((F=a.invoice.carried_forward_price)!=null?F:null)!==null?(d(),c(p,{key:0},[t("dt",ui,n(i.t(i.invoiceMessages.carriedForwardPrice)),1),e[33]||(e[33]=s()),t("dd",yi,n(o.priceFormat(a.invoice.carried_forward_price)),1),e[34]||(e[34]=s()),t("dt",_i,n(i.t(i.invoiceMessages.newInvoiceAmount)),1),e[35]||(e[35]=s()),t("dd",pi,n(o.priceFormat(a.invoice.sub_total_price_with_tax)),1)],64)):m("",!0),e[40]||(e[40]=s()),t("dt",gi,n(i.t(i.invoiceMessages.grandTotal)),1),e[41]||(e[41]=s()),t("dd",bi,n(o.priceFormat(a.invoice.total_price)),1)])])]),e[54]||(e[54]=s()),t("p",fi,n(i.t(i.invoiceMessages.payeeInformation)),1),e[55]||(e[55]=s()),t("div",Ci,[t("dl",null,[t("dd",{class:"description-message no-translate",textContent:n(o.payeeInformationText)},null,8,ki)])]),e[56]||(e[56]=s()),t("p",wi,n(i.t(i.invoiceMessages.remarks)),1),e[57]||(e[57]=s()),t("div",Mi,[t("dl",null,[t("dd",{class:"description-message no-translate",textContent:n(o.captionText)},null,8,Si)])]),e[58]||(e[58]=s()),a.invoice.is_credit_card_payment_enabled?(d(),c("div",Pi,[t("button",{type:"button",class:M(["btn-next no-translate",{disabled:!o.isCreditCardPaymentEnabled}]),disabled:!o.isCreditCardPaymentEnabled,onClick:e[3]||(e[3]=S((...l)=>o.startCreditCardPayment&&o.startCreditCardPayment(...l),["prevent"]))},n(i.t(i.messages.payNow)),11,xi),e[43]||(e[43]=s()),a.invoice.is_paid_by_credit_card?(d(),c("p",Di,n(i.t(i.messages.alreadyPaidByCreditCardMessage)),1)):m("",!0),e[44]||(e[44]=s()),!a.invoice.is_paid_by_credit_card&&!r.$root.canPayInvoiceByCard?(d(),c("p",Ii,n(i.t(i.messages.viewerCannotPayMessage)),1)):m("",!0)])):m("",!0)],512),[[se,!a.loading]]),e[83]||(e[83]=s()),u(z,{label:`${a.lastDownloadLabel}PDF`},null,8,["label"]),e[84]||(e[84]=s()),a.isCreditCardPaymentPreparationModalVisible?(d(),b(I,{key:0,"auto-height":"",onClose:o.closeCreditCardPayment},{title:_(()=>[t("p",Fi,n(i.t(i.messages.payNow)),1)]),default:_(()=>[e[70]||(e[70]=s()),t("div",Li,[a.isCreditCardPaymentPreparing?(d(),c("div",Ti,[u(R,{color:"gray",absolute:!1}),e[59]||(e[59]=s()),t("p",Vi,n(i.t(i.messages.preparingPaymentMessage)),1)])):m("",!0),e[65]||(e[65]=s()),u(A,{modelValue:a.cardId,"onUpdate:modelValue":e[4]||(e[4]=l=>a.cardId=l),"register-card-params":{context:"invoice",invoice_uuid:a.invoice.invoice_uuid,register_only:"1"},disabled:a.disabled,"select-card-error-message":r.vuelidateErrorMessage("cardId"),onCardLoaded:o.onCardLoaded},null,8,["modelValue","register-card-params","disabled","select-card-error-message","onCardLoaded"]),e[66]||(e[66]=s()),t("div",Ni,[t("dl",Hi,[t("dt",Ui,n(i.t(i.invoiceMessages.subtotal)),1),e[60]||(e[60]=s()),t("dd",ji,n(o.priceFormat(a.invoice.sub_total_price)),1)]),e[63]||(e[63]=s()),t("dl",Bi,[t("dt",Ei,n(i.t(i.invoiceMessages.consumptionTax)),1),e[61]||(e[61]=s()),t("dd",zi,n(o.priceFormat(a.invoice.tax_total_price)),1)]),e[64]||(e[64]=s()),t("dl",Ri,[t("dt",Ai,n(i.t(i.invoiceMessages.grandTotal)),1),e[62]||(e[62]=s()),t("dd",qi,n(o.priceFormat(a.invoice.total_price)),1)])]),e[67]||(e[67]=s()),a.hasCard?m("",!0):(d(),c("p",Yi,n(i.t(i.messages.redirectToPaymentServiceMessage)),1)),e[68]||(e[68]=s()),t("p",Oi,[t("a",Wi,[s(n(i.t(i.messages.privacyPolicyLinkLabel)),1),u(q,{class:"open-in-new-icon",icon:{type:"material_design_icon",icon:"open_in_new",weight:"bold"},size:14})]),t("span",Gi,n(i.t(i.messages.agreeToPrivacyPolicySuffix)),1)]),e[69]||(e[69]=s()),t("button",{type:"button",class:M(["btn-next no-translate",{disabled:a.isCreditCardPaymentPreparing||a.disabled}]),disabled:a.isCreditCardPaymentPreparing||a.hasCard&&!a.cardId,onClick:e[5]||(e[5]=S((...l)=>o.onSubmitPayment&&o.onSubmitPayment(...l),["prevent"]))},n(i.t(i.messages.payAmountLabel).replace("{price}",o.priceFormat(a.invoice.total_price))),11,Qi)])],void 0,!0),_:1},8,["onClose"])):m("",!0),e[85]||(e[85]=s()),a.isPaymentFailedModalVisible?(d(),b(I,{key:1,"auto-height":"",onClose:e[7]||
1(e[7]=l=>a.isPaymentFailedModalVisible=!1)},{title:_(()=>[t("p",Ji,n(i.t(i.messages.paymentFailedTitle)),1)]),default:_(()=>[e[75]||(e[75]=s()),t("div",Ki,[t("p",null,n(i.t(i.messages.paymentFailedMessage)),1),e[73]||(e[73]=s()),t("p",null,n(i.t(i.messages.paymentFailedInstructions)),1),e[74]||(e[74]=s()),t("ul",null,[t("li",null,n(i.t(i.messages.cardNumberCheckItem)),1),e[71]||(e[71]=s()),t("li",null,n(i.t(i.messages.cardExpirationCheckItem)),1),e[72]||(e[72]=s()),t("li",null,n(i.t(i.messages.threeDSecureCheckItem)),1)])]),e[76]||(e[76]=s()),t("div",Xi,[t("button",{type:"button",class:"btn-white no-translate",onClick:e[6]||(e[6]=S(l=>a.isPaymentFailedModalVisible=!1,["prevent"]))},n(i.t(i.common.close)),1)])],void 0,!0),_:1})):m("",!0),e[86]||(e[86]=s()),a.isSpecifiedCommercialTransactionsNotationModalVisible&&((L=a.invoice)!=null&&L.store_specified_commercial_transactions_notation)?(d(),b(Y,{key:2,"store-specified-commercial-transactions-notation":(T=a.invoice)==null?void 0:T.store_specified_commercial_transactions_notation,onClose:e[8]||(e[8]=l=>a.isSpecifiedCommercialTransactionsNotationModalVisible=!1)},null,8,["store-specified-commercial-transactions-notation"])):m("",!0),e[87]||(e[87]=s()),a.isVisibleRegisterPaymentInformationVisible?(d(),b(O,{key:3,"button-label":a.hasCard?"決æ¸ã¸é²ã":"ã«ã¼ãæ
å ±ã®å
¥åã¸é²ã","show-init-message":"",onRegistered:o.onPaymentInformationRegistered,onClose:e[9]||(e[9]=l=>a.isVisibleRegisterPaymentInformationVisible=!1)},null,8,["button-label","onRegistered"])):m("",!0),e[88]||(e[88]=s()),a.isShowChangeMemberConfirmDialog?(d(),b(W,{key:4,buttons:[{key:"change",label:i.t(i.messages.switch),primary:!0,noTranslate:!0},{key:"cancel",label:i.t(i.messages.stop),noTranslate:!0}],onClose:o.onCancelChangeMember,onClickCancel:o.onCancelChangeMember,onClickChange:o.submitChangeMember},{default:_(()=>[t("p",Zi,[t("span",$i,n(i.t(i.messages.currentDisplayStoreLabel)),1),e[77]||(e[77]=s("ï¼")),t("span",et,n(a.currentMemberName),1)]),e[78]||(e[78]=s()),t("p",it,n(i.t(i.messages.switchStoreToOpenInvoiceMessage).replace("{name}",a.changeMemberName)),1),e[79]||(e[79]=s()),t("p",tt,n(i.t(i.messages.cartWillBeCleared)),1),e[80]||(e[80]=s()),t("p",st,n(i.t(i.messages.isItOk)),1)],void 0,!0),_:1},8,["buttons","onClose","onClickCancel","onClickChange"])):m("",!0)])}const Ct=G(ke,[["render",nt],["__scopeId","data-v-2714db48"]]);export{Ct 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.