1import{Q}from"./QSelect.72a5b75e.js";import{Q as G}from"./QPage.5b01b7db.js";import{d as Z,R as v,l as h,m as X,n as x,p as s,u as r,x as H,C as k,a5 as A,f as ee,q as u,v as _,S as R,F as B,aO as te,aQ as V,a0 as se}from"./index.1d2b7042.js";import{a as K,i as ae,f as oe}from"./transactionFreeze.facadb99.js";import{_ as N}from"./more_horiz.cc669d85.js";import{_ as ne,a as ie,b as re,c as le,d as de,e as pe}from"./en_ticket_showcase.10334c1e.js";import{_ as ce}from"./plugin-vue_export-helper.21dcd24c.js";import"./use-key-composition.e3c8c2b6.js";import"./use-id.a0aeebed.js";import"./uid.937d8ee7.js";import"./use-dark.22afb965.js";import"./focus-manager.40072c15.js";import"./QItemLabel.41e31786.js";import"./selection.608ab59f.js";import"./scroll.da7e6e27.js";import"./QDialog.2add44d7.js";import"./use-timeout.27aa0eb3.js";import"./format.959830d0.js";var he="https://js.tosspayments.com/v2/standard";function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},E(e)}function I(e,t){return I=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},I(e,t)}function j(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M(e,t,n){return j()?M=Reflect.construct:M=function(a,i,l){var c=[null];c.push.apply(c,i);var d=Function.bind.apply(a,c),m=new d;return l&&I(m,l.prototype),m},M.apply(null,arguments)}function ue(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function L(e){var t=typeof Map=="function"?new Map:void 0;return L=function(o){if(o===null||!ue(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(o))return t.get(o);t.set(o,a)}function a(){return M(o,arguments,E(this).constructor)}return a.prototype=Object.create(o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),I(a,o)},L(e)}function _e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function me(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _e(e)}function Y(e){var t=j();return function(){var o=E(e),a;if(t){var i=E(this).constructor;a=Reflect.construct(o,arguments,i)}else a=o.apply(this,arguments);return me(this,a)}}var U=null;function fe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(U!=null)return U;var o=new Promise(function(a,i){try{var l=function(){O(t)!=null?a(O(t)):i(new ye(t))},c=function(){i(new ge(e))};if(typeof window=="undefined"||typeof document=="undefined")return a(null);if(O(t)!=null)return a(O(t));var d=document.querySelector('script[src="'.concat(e,'"]'));if(d!=null){var m;d.removeEventListener("load",l),d.removeEventListener("error",c),(m=d.parentElement)===null||m===void 0||m.removeChild(d)}var y=document.createElement("script");y.src=e,y.addEventListener("load",l),y.addEventListener("error",c),n.priority!=null&&(y.fetchPriority=n.priority),document.head.appendChild(y)}catch(f){i(f);return}});return U=o.catch(function(a){return U=null,Promise.reject(a)}),U}function O(e){return window[e]}var ye=function(e){z(n,e);var t=Y(n);function n(o){var a;return q(this,n),a=t.call(this,"[TossPayments SDK] ".concat(o," is not available")),a.name="NamespaceNotAvailableError",a}return n}(L(Error)),ge=function(e){z(n,e);var t=Y(n);function n(o){var a;return q(this,n),a=t.call(this,"[TossPayments SDK] Failed to load script: [".concat(o,"]")),a.name="ScriptLoadFailedError",a}return n}(L(Error));function ve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.src,o=n===void 0?he:n;return typeof window=="undefined"?Promise.resolve({}):fe(o,"TossPayments").then(function(a){return a(e)})}const ke=300,W=e=>Math.max(30*1e3,Math.round((e||ke)*.4)*1e3),we=Z({name:"PaymentPage",data(){return{is_korean:!0,name:"",phone1:"010",phone2:"",ph
1one3:"",email:"",phoneTypeOptions:["010","011","016","017","018","019"],pay_type:"CARD",price:0,price_usd:0,priceLoaded:!1,reservation_data:null,convertedItems:[],convertedItemsEn:[],tickets:[],pay_flag:!1,transactionsFrozen:!1,showTossModal:!1,toss_client_key:"",toss_variant_key:"DEFAULT",toss_order_number:"",toss_widgets:null,toss_widgets_ready:!1,toss_in_flight:!1,toss_api_client_key:"",point_balance:0,points_used:0,use_points_en:!1,toss_usd_amount:0,seatHeartbeatId:null,seatHoldTtlSeconds:null,seatHeartbeatIntervalUsed:null,seatHbUnmounted:!1}},computed:{routePrefix(){return this.$route.path.startsWith("/en/")?"/en":""},maxUsablePoints(){return Math.min(this.point_balance,this.price)},priceDisplay(){return this.priceLoaded?this.is_korean?this.$t("payment.priceUnit",{price:this.$putComma(this.price)}):`$${this.$putComma(this.price_usd)}`:this.is_korean?"\uACC4\uC0B0 \uC911\u2026":"Loading\u2026"},finalPrice(){const e=Math.min(Math.max(this.points_used||0,0),this.maxUsablePoints);return Math.max(this.price-e,0)},usdPointsDiscount(){if(this.is_korean||!this.use_points_en)return 0;const e=this.maxUsablePoints;return e<=0||!(this.price>0)||!(this.price_usd>0)?0:e>=this.price?this.price_usd:Math.floor(this.price_usd*e/this.price*100)/100},finalPriceUsd(){return Math.max(Math.round(((this.price_usd||0)-this.usdPointsDiscount)*100)/100,0)}},methods:{startSeatHeartbeat(){this.stopSeatHeartbeat(),this.seatHeartbeatIntervalUsed=W(this.seatHoldTtlSeconds),this.seatHeartbeatId=setInterval(()=>this.refreshSeatHolds(),this.seatHeartbeatIntervalUsed)},stopSeatHeartbeat(){this.seatHeartbeatId&&(clearInterval(this.seatHeartbeatId),this.seatHeartbeatId=null)},async refreshSeatHolds(){var n;if(this.pay_flag)return;const e=this.reservation_data&&this.reservation_data.showcase||[],t=[];for(const o of e){const a=(o.selected_seats||[]).map(i=>i&&i.id).filter(Boolean);if(!!a.length)try{const i=await v.post(`/api/programs/showcases/${o.id}/seats/hold/refresh`,{seat_codes:a});typeof((n=i==null?void 0:i.data)==null?void 0:n.ttl_seconds)=="number"&&(this.seatHoldTtlSeconds=i.data.ttl_seconds)}catch(i){if(i&&i.response&&i.response.status===410){const l=i.response.data&&i.response.data.lost||a;t.push({showcase_id:o.id,lost_codes:l})}else console.warn("PaymentPage refreshSeatHolds non-410 error",i)}}if(t.length){this.handleSeatLossAndRedirect(t,{fromHeartbeat:!0});return}this.seatHeartbeatId&&W(this.seatHoldTtlSeconds)!==this.seatHeartbeatIntervalUsed&&this.startSeatHeartbeat()},handleSeatLossAndRedirect(e,{fromHeartbeat:t=!1}={}){if(this.seatHbUnmounted)return;if(t&&this.pay_flag){console.warn("PaymentPage handleSeatLossAndRedirect: heartbeat 410 ignored \u2014 payment in progress (pay_flag=true)");return}let n=0;for(const{showcase_id:o,lost_codes:a}of e){const i=(this.reservation_data.showcase||[]).find(c=>c.id===o);if(!i)continue;const l=new Set(a);i.selected_seats=(i.selected_seats||[]).filter(c=>!l.has(c&&c.id)),n+=a.length}this.persistFormToReservation(),this.stopSeatHeartbeat(),alert(this.is_korean?`\uC120\uD0DD\uD558\uC2E0 \uC88C\uC11D \uC911 ${n}\uC11D\uC774 \uB2E4\uB978 \uBD84\uC5D0 \uC758\uD574 \uC608\uC57D\uB418\uC5C8\uC2B5\uB2C8\uB2E4. 2\uC88C\uC11D\uC744 \uB2E4\uC2DC \uC120\uD0DD\uD574\uC8FC\uC138\uC694.`:`${n} of your seats are no longer available. Please reselect.`),this.$router.push(`${this.routePrefix}/reservation/showcaseselect`)},persistFormToReservation(){!this.reservation_data||(this.reservation_data.recipient_name=this.name,this.reservation_data.recipient_phone1=this.phone1,this.reservation_data.recipient_phone2=this.phone2,this.reservation_data.recipient_phone3=this.phone3,this.reservation_data.recipient_email=this.email,this.is_korean&&(this.reservation_data.points_used=this.points_used),this.$setItem("kmusical_reservation_data",JSON.stringify(this.reservation_data)))},useAllPoints(){this.points_used=this.maxUsablePoints},goBackToStep(e){var o;if(this.pay_flag)return;if(this.persistFormToReservation(),this.stopSeatHeartbeat(),e===1){this.$router.push(`${this.routePrefix}/reservation/ticket`);return}const n=((o=this.reservation_data)==null?void 0:o.order_type)==="showcase"?"showcaseselect":"programselect";this.$router.push(`${this.routePrefix}/reservation/${n}`)},async fetchPointBalance(){try{const e=await v.get("/api/users/me/points");this.point_balance=e.data.balance||0}catch{this.point_balance=0}},convertItems(){var t,n,o;let e=this.reservation_data.order_type=="showcase"?(t=this.reservation_data)==null?void 0:t.showcase:[...(n=this.reservation_data)==null?void 0:n.program,...(o=this.reservation_data)==null?void 0:o.showcase];this.convertedItems=e.reduce((a,i)=>{const l=i.date;return a[l]||(a[l]=[]),a[l].push(i),a},{})},convertItemsEn(){var t,n,o;let e=this.reservation_data.order_type=="showcase"?(t=this.reservation_data)==null?void 0:t.showcase:[...(n=this.reservation_data)==null?void 0:n.program,...(o=this.reservation_data)==null?void 0:o.showcase];this.convertedItemsEn=e.reduce((a,i)=>{const l=i.date_en||i.date;return a[l]||(a[l]=[]),a[l].push(i),a},{})},async openTossModal(e,t){this.toss_order_number=e,this.toss_usd_amount=Number(t)>0?Number(t):this.price_usd,this.toss_widgets=null,this.toss_widgets_ready=!1,this.toss_in_flight=!1,this.showTossModal=!0,await this.$nextTick(),await this.initTossWidgets()},async initTossWidgets(){var o;if(!this.toss_client_key){console.error("Toss client key not set;
2 cannot init widget."),alert("Payment configuration error. Please contact the administrator."),this.closeTossModal();return}let e;try{const a=await v.get("/api/users/me");e=(o=a==null?void 0:a.data)==null?void 0:o.id}catch(a){if(!a.response){this.closeTossModal();return}console.error("Failed to fetch /api/users/me for Toss customerKey",a),alert("Authentication error. Please log in again."),this.closeTossModal();return}if(!e){console.error("No userId in /api/users/me response"),alert("Authentication error. Please log in again."),this.closeTossModal();return}if(console.info("[Toss debug] client_key prefix:",String(this.toss_client_key).slice(0,10),"variant_key:",this.toss_variant_key,"price_usd:",this.price_usd),!(this.price_usd>0)){console.error("[Toss debug] price_usd is not > 0 \u2014 Toss setAmount will reject. Backend TicketType.general_price_usd may be null."),alert(`Payment amount is invalid (USD ${this.price_usd}). The ticket may be missing a USD price in the backend.`),this.closeTossModal();return}const t=String(this.toss_client_key);!t.startsWith("test_gck_")&&!t.startsWith("live_gck_")&&console.warn("[Toss debug] Client key family may be wrong for Widget SDK. Got prefix",t.slice(0,10),"\u2014 Widget SDK expects test_gck_* / live_gck_*. test_ck_* / live_ck_* are API-only keys.");let n="loadTossPayments";try{const a=await ve(this.toss_client_key);n="widgets()";const i=a.widgets({customerKey:`kmusical-${e}`});n="setAmount",await i.setAmount({currency:"USD",value:this.toss_usd_amount>0?this.toss_usd_amount:this.price_usd}),n="renderPaymentMethods+renderAgreement",await Promise.all([i.renderPaymentMethods({selector:"#toss-payment-method",variantKey:this.toss_variant_key}),i.renderAgreement({selector:"#toss-agreement"})]),this.toss_widgets=i,this.toss_widgets_ready=!0}catch(a){console.error(`[Toss debug] widget init failed at stage="${n}"`,a);const i=(a==null?void 0:a.message)||(a==null?void 0:a.code)||String(a);alert(`Could not initialize the payment widget (stage: ${n}). 3 4Error: ${i} 5 6Please refresh and try again.`),this.closeTossModal()}},async confirmTossPayment(){if(!(!this.toss_widgets||this.toss_in_flight)){this.toss_in_flight=!0;try{const e=this.reservation_data;e.recipient_name=this.name,e.recipient_phone1=this.phone1,e.recipient_phone2=this.phone2,e.recipient_phone3=this.phone3,e.recipient_email=this.email,this.$setItem("kmusical_reservation_data_final",JSON.stringify(e)),await this.toss_widgets.requestPayment({orderId:this.toss_order_number,orderName:this.getOrderName(),customerName:this.name,customerEmail:this.email,successUrl:`${window.location.origin}${this.routePrefix}/reservation/paymentcomplete`,failUrl:`${window.location.origin}${this.routePrefix}/reservation/payment`})}catch(e){console.error("Toss requestPayment failed",e),this.toss_in_flight=!1;const t=(e==null?void 0:e.message)||"Payment could not be processed. Please try again.";alert(t)}}},closeTossModal(){this.showTossModal=!1,this.toss_in_flight=!1,this.toss_widgets_ready=!1,this.toss_widgets=null,this.pay_flag=!1},loadTossV1Script(){if(typeof window=="undefined")return Promise.reject(new Error("loadTossV1Script: window not available"));if(window.TossPayments)return Promise.resolve();const e="https://js.tosspayments.com/v1/payment",t=document.querySelector(`script[src="${e}"]`);return t?new Promise((n,o)=>{if(t.dataset.loaded==="true"&&window.TossPayments)return n();t.addEventListener("load",()=>n(),{once:!0}),t.addEventListener("error",()=>o(new Error("Toss v1 SDK script failed to load")),{once:!0})}):new Promise((n,o)=>{const a=document.createElement("script");a.src=e,a.async=!0,a.onload=()=>{a.dataset.loaded="true",window.TossPayments?n():o(new Error("Toss v1 SDK loaded but TossPayments not on window"))},a.onerror=()=>o(new Error("Toss v1 SDK script failed to load")),document.head.appendChild(a)})},getOrderName(){var e,t,n,o,a,i;return this.is_korean?((o=this.reservation_data)==null?void 0:o.order_type)==="showcase"?"[\uC5BC\uB9AC\uBC84\uB4DC] \uC1FC\uCF00\uC774\uC2A4 \uAD00\uB78C\uAD8C":"[\uC5BC\uB9AC\uBC84\uB4DC] "+(((a=this.reservation_data)==null?void 0:a.order_type)==="fullpass"?"\uC804\uC77C\uAD8C":"1\uC77C\uAD8C")+" + \uC1FC\uCF00\uC774\uC2A4 \uAD00\uB78C\uAD8C / "+(((i=this.reservation_data)==null?void 0:i.attendee_type)==="general"?"\uC77C\uBC18":"\uD559\uC0DD"):((e=this.reservation_data)==null?void 0:e.order_type)==="showcase"?"[Early-Bird] Showcase Ticket":"[Early-Bird] "+(((t=this.reservation_data)==null?void 0:t.order_type)==="fullpass"?"All Day Pass":"One Day Pass")+" + Showcase Ticket / "+(((n=this.reservation_data)==null?void 0:n.attendee_type)==="general"?"General":"Student")},async startPayment(){if(this.transactionsFrozen){alert(K(this.is_korean));return}if(this.pay_flag)return;if(!this.priceLoaded||!(this.price>0)){alert(this.is_korean?"\uACB0\uC81C \uAE08\uC561\uC744 \uBD88\uB7EC\uC624\uB294 \uC911\uC785\uB2C8\uB2E4. \uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.":"The payment amount is still loading. Please try again in a moment.");return}const e={attendee_type:this.reservation_data.attendee_type,tickets:this.tickets,recipient_name:this.name,recipient_phone:this.phone1+this.phone2+this.phone3,recipient_email:this.email};if(this.reservation_data.personal_info&&this.reservation_data.order_type!="showcase"&&(e.personal_info=this.reservation_data.personal_info),this.reservation_data.showcase){e.showcases=this.reservation_data.showcase.map(n=>n.id);const t={};for(const n of this.reservation_data.showcase){const o=(n.selected_seats||[]).map(a=>
6a.id).filter(Boolean);o.length&&(t[n.id]=o)}Object.keys(t).length&&(e.showcase_seats=t)}if(this.is_korean&&this.points_used>0?e.points_used=Math.min(this.points_used,this.maxUsablePoints):!this.is_korean&&this.use_points_en&&this.maxUsablePoints>0&&(e.points_used=this.maxUsablePoints),this.reservation_data.program&&(e.programs=this.reservation_data.program.map(t=>t.id)),console.log("\uC8FC\uBB38 \uB370\uC774\uD130",e),e.recipient_name==""){alert(this.is_korean?"\uBC1B\uB294\uC0AC\uB78C\uC744 \uC785\uB825\uD558\uC138\uC694.":"Please enter the recipient's name.");return}if(e.recipient_phone.length<10){alert(this.is_korean?"\uC5F0\uB77D\uCC98\uB97C \uC785\uB825\uD558\uC138\uC694.":"Please enter a phone number.");return}if(e.recipient_email==""){alert(this.is_korean?"\uC774\uBA54\uC77C\uC744 \uC785\uB825\uD558\uC138\uC694.":"Please enter an email address.");return}if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(this.email)){alert(this.is_korean?"\uC774\uBA54\uC77C \uD615\uC2DD\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4":"Email format is invalid.");return}if(this.is_korean||(e.currency="USD"),e.showcases&&e.showcases.length){const t=(this.reservation_data.showcase||[]).filter(n=>!(n.selected_seats||[]).map(o=>o&&o.id).filter(Boolean).length);if(t.length){const n=t.map(o=>o.title||o.name||"").filter(Boolean).join(", ");alert(this.is_korean?`\uC88C\uC11D\uC774 \uC120\uD0DD\uB418\uC9C0 \uC54A\uC740 \uC1FC\uCF00\uC774\uC2A4\uAC00 \uC788\uC2B5\uB2C8\uB2E4: ${n} 7\uD574\uB2F9 \uC1FC\uCF00\uC774\uC2A4\uC758 \uC88C\uC11D\uC744 \uB2E4\uC2DC \uC120\uD0DD\uD574 \uC8FC\uC138\uC694.`:`Some showcases have no seat selected: ${n} 8Please select a seat for them.`);return}}this.pay_flag=!0,v.post("/api/orders/create",e).then(async t=>{this.stopSeatHeartbeat();const n=t.data;if(console.log(t.data),n.needs_payment&&n.order_number&&this.$setItem("kmusical_pending_order_number",n.order_number),!n.needs_payment){let d=this.reservation_data;d.recipient_name=this.name,d.recipient_phone1=this.phone1,d.recipient_phone2=this.phone2,d.recipient_phone3=this.phone3,d.recipient_email=this.email,this.$setItem("kmusical_reservation_data_final",JSON.stringify(d)),this.$router.push(`${this.routePrefix}/reservation/paymentcomplete?order_number=${n.order_number}`);return}if(!this.is_korean){this.openTossModal(n.order_number,n.total_amount);return}let o=this.reservation_data;o.recipient_name=this.name,o.recipient_phone1=this.phone1,o.recipient_phone2=this.phone2,o.recipient_phone3=this.phone3,o.recipient_email=this.email,this.$setItem("kmusical_reservation_data_final",JSON.stringify(o));try{await this.loadTossV1Script()}catch(d){console.error("Failed to load Toss v1 SDK",d),alert(this.is_korean?"\uACB0\uC81C \uBAA8\uB4C8 \uB85C\uB529\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uD398\uC774\uC9C0\uB97C \uC0C8\uB85C\uACE0\uCE68 \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.":"Failed to load the payment module. Please refresh the page and try again."),this.pay_flag=!1;return}if(!this.toss_api_client_key){console.error("toss_api_client_key not set \u2014 /api/orders/options returned no KRW_TOSS.client_key"),alert(this.is_korean?"\uACB0\uC81C \uC124\uC815 \uC624\uB958\uC785\uB2C8\uB2E4. \uAD00\uB9AC\uC790\uC5D0\uAC8C \uBB38\uC758\uD574\uC8FC\uC138\uC694.":"Payment configuration error. Please contact the administrator."),this.pay_flag=!1;return}const a=String(this.toss_api_client_key).slice(0,10);!a.startsWith("test_ck_")&&!a.startsWith("live_ck_")&&console.warn("[Toss v1] client key family may be wrong; got prefix",a,"\u2014 v1 \uACB0\uC81C\uCC3D SDK expects test_ck_* / live_ck_*.");const i=window.TossPayments(this.toss_api_client_key),c={CARD:"\uCE74\uB4DC",VIRTUAL_ACCOUNT:"\uAC00\uC0C1\uACC4\uC88C"}[this.pay_type]||"\uCE74\uB4DC";try{await i.requestPayment(c,{amount:this.finalPrice,orderId:n.order_number,orderName:this.getOrderName(),customerName:this.name,customerEmail:this.email,successUrl:`${window.location.origin}${this.routePrefix}/reservation/paymentcomplete`,failUrl:`${window.location.origin}${this.routePrefix}/reservation/payment`,...c==="\uAC00\uC0C1\uACC4\uC88C"?{validHours:1}:{}})}catch(d){console.warn("Toss v1 requestPayment did not redirect:",d),(d==null?void 0:d.code)!=="USER_CANCEL"&&alert((d==null?void 0:d.message)||(this.is_korean?"\uACB0\uC81C \uCC98\uB9AC \uC911 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.":"An error occurred during payment processing.")),this.pay_flag=!1}}).catch(t=>{var n,o,a,i,l,c;if(ae(t)){this.pay_flag=!1,alert(K(this.is_korean));return}if(((o=(n=t.response)==null?void 0:n.data)==null?void 0:o.code)==="seat_conflict"){const d=t.response.data.conflicts||[],m={};for(const f of d)m[f.showcase_id]||(m[f.showcase_id]=[]),m[f.showcase_id].push(f.seat_code);const y=Object.entries(m).map(([f,w])=>({showcase_id:f,lost_codes:w}));this.pay_flag=!1,this.handleSeatLossAndRedirect(y);return}((a=t.response.data)==null?void 0:a.detail)==="\uC790\uACA9 \uC778\uC99D\uB370\uC774\uD130(authentication credentials)\uAC00 \uC81C\uACF5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."?(alert(this.is_korean?"\uC138\uC158\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uB85C\uADF8\uC778\uD574\uC8FC\uC138\uC694.":"Your session has expired. Please log in again."),this.$store.dispatch("auth/logout",{type:"force"})):((i=t.response.data)==null?void 0:i.error)==="\uC790\uACA9 \uC778\uC99D\uB370\uC774\uD130(authentication credentials)\uAC00 \uC81C\uACF5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."?(alert(this.is_korean?"\uC138\uC158\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uB85C\uADF8\uC778\uD574\uC8FC\uC138\uC694.":"Your session has expired. Please log in again."),this.$store.dispatch("auth/logout",{type:"force"}
8)):typeof((l=t.response.data)==null?void 0:l.message)=="string"&&t.response.data.message.includes("\uD55C \uC1FC\uCF00\uC774\uC2A4\uB2F9")||Array.isArray((c=t.response.data)==null?void 0:c.errors)&&t.response.data.errors.some(d=>typeof d=="string"&&d.includes("\uD55C \uC1FC\uCF00\uC774\uC2A4\uB2F9"))?alert(this.is_korean?t.response.data.message:this.$t("reservation.duplicateSeat")):t.response.data.message?alert(t.response.data.message):t.response.data.error?alert(t.response.data.error):alert(this.is_korean?"\uC5D0\uB7EC\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. \uAD00\uB9AC\uC790\uC5D0\uAC8C \uC5F0\uB77D\uD574\uC8FC\uC138\uC694.":"An error occurred. Please contact the administrator."),this.pay_flag=!1,console.log(t),console.log(t.response)})}},beforeRouteLeave(e,t,n){const o=e.path||"",a=o.endsWith("/reservation/paymentcomplete"),i=o.endsWith("/reservation/payment");if(this.pay_flag&&!a&&!i){const l=this.is_korean?`\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uD398\uC774\uC9C0\uB97C \uB5A0\uB098\uBA74 \uACB0\uC81C\uAC00 \uCDE8\uC18C\uB420 \uC2
818 \uC788\uC2B5\uB2C8\uB2E4. 9\uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`:`Payment is in progress. Leaving this page may cancel your payment. 10Continue?`;if(!window.confirm(l)){n(!1);return}}if(!this.pay_flag&&!a&&!i){const l=this.$getItem("kmusical_pending_order_number");l&&(v.post(`/api/orders/${l}/cancel`,{reason:"\uACB0\uC81C \uBBF8\uC644\uB8CC \u2014 \uD398\uC774\uC9C0 \uC774\uD0C8\uB85C \uC88C\uC11D \uC790\uB3D9 \uBC18\uD658"}).catch(c=>{console.warn("Failed to release seat on page leave",c)}),this.$removeItem("kmusical_pending_order_number"))}this.persistFormToReservation(),n()},beforeUnmount(){this.seatHbUnmounted=!0,this.stopSeatHeartbeat()},mounted(){if(this.$route.path.startsWith("/en/"))localStorage.setItem("kmusical_language_setting","english"),this.$i18n.locale="en-US",this.is_korean=!1;else{const o=localStorage.getItem("kmusical_language_setting");o||localStorage.setItem("kmusical_language_setting","korean"),o=="korean"?(this.$i18n.locale="ko",this.is_korean=!0):o=="english"&&(this.$i18n.locale="en-US",this.is_korean=!1)}if(oe(v).then(o=>{this.transactionsFrozen=o}),this.$route.query.code){const o=this.$route.query.message||(this.is_korean?"\uACB0\uC81C\uAC00 \uCDE8\uC18C\uB418\uC5C8\uAC70\uB098 \uCC98\uB9AC\uB418\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.":"Payment was cancelled or could not be completed."),a=this.$route.query.orderId||this.$getItem("kmusical_pending_order_number");a&&v.post(`/api/orders/${a}/cancel`,{reason:"\uACB0\uC81C \uC2E4\uD328/\uCDE8\uC18C \u2014 \uC88C\uC11D \uC790\uB3D9 \uBC18\uD658"}).catch(i=>{console.warn("Failed to auto-release seat for abandoned order",i)}).finally(()=>{this.$removeItem("kmusical_pending_order_number")}),alert(o),this.$router.replace({path:this.$route.path,query:{}})}const t=JSON.parse(this.$getItem("kmusical_reservation_data"));if(t)this.reservation_data=t,t.recipient_name&&(this.name=t.recipient_name),t.recipient_phone1&&(this.phone1=t.recipient_phone1),t.recipient_phone2&&(this.phone2=t.recipient_phone2),t.recipient_phone3&&(this.phone3=t.recipient_phone3),t.recipient_email&&(this.email=t.recipient_email),typeof t.points_used=="number"&&t.points_used>0&&(this.points_used=t.points_used);else{this.$router.push(`${this.routePrefix}/reservation/ticket`);return}(t.showcase||[]).some(o=>(o.selected_seats||[]).length>0)&&this.startSeatHeartbeat(),this.convertItems(),this.convertItemsEn(),this.$removeItem("kmusical_reservation_data_final"),this.fetchPointBalance(),v.get("/api/orders/options").then(o=>{var m,y,f,w,P,S,T,$,D;const a=o.data;(y=(m=a.payment_channels)==null?void 0:m.USD_PAYPAL_TOSS)!=null&&y.client_key&&(this.toss_client_key=a.payment_channels.USD_PAYPAL_TOSS.client_key),(w=(f=a.payment_channels)==null?void 0:f.USD_PAYPAL_TOSS)!=null&&w.variant_key&&(this.toss_variant_key=a.payment_channels.USD_PAYPAL_TOSS.variant_key),(S=(P=a.payment_channels)==null?void 0:P.KRW_TOSS)!=null&&S.client_key&&(this.toss_api_client_key=a.payment_channels.KRW_TOSS.client_key);let i="";this.reservation_data.order_type=="fullpass"?i="full_pass":this.reservation_data.order_type=="onepass"?i="day_pass":this.reservation_data.order_type=="showcase"&&(i="showcase");const l=a.ticket_types.find(g=>g.code===i);if(l){const g=this.reservation_data.order_type=="showcase"?this.reservation_data.showcase.length:1,C=this.reservation_data.order_type=="showcase"||this.reservation_data.attendee_type=="general",p=parseFloat(C?l.general_price||0:l.student_price||0)*g;this.price=p,this.price_usd=parseFloat(C?l.general_price_usd||0:l.student_price_usd||0)*g,this.priceLoaded=!0}let c={ticket_type_id:"",quantity:this.reservation_data.order_type=="showcase"?this.reservation_data.showcase.length:1};l&&(c.ticket_type_id=l.id);const d={"6\uC6D4 29\uC77C":0,"6\uC6D4 2\uC77C":0,"6\uC6D4 30\uC77C":1,"6\uC6D4 3\uC77C":1,"7\uC6D4 1\uC77C":2,"6\uC6D4 4\uC77C":2,"7\uC6D4 2\uC77C":3,"6\uC6D4 5\uC77C":3,"7\uC6D4 3\uC77C":4,"6\uC6D4 6\uC77C":4};if(this.reservation_data.order_type=="onepass"){const g=d[($=(T=this.reservation_data.program)==null?void 0:T[0])==null?void 0:$.date];g!=null&&((D=a.available_event_days)==null?void 0:D[g])&&(c.selected_day_id=a.available_event_days[g].id)}console.log("\uD2F0\uCF13!!!!!!!",c),this.tickets.push(c),console.log(o.data)}).catch(o=>{var a,i;((a=o.response.data)==null?void 0:a.detail)==="\uC790\uACA9 \uC778\uC99D\uB370\uC774\uD130(authentication credentials)\uAC00 \uC81C\uACF5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."?(alert(this.is_korean?"\uC138\uC158\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uB85C\uADF8\uC778\uD574\uC8FC\uC138\uC694.":"Your session has expired. Please log in again."),this.$store.dispatch("auth/logout",{type:"force"})):((i=o.response.data)==null?void 0:i.error)==="Authentication provider encountered an internal error."?(alert(this.is_korean?"\uC138\uC158\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uB85C\uADF8\uC778\uD574\uC8FC\uC138\uC694.":"Your session has expired. Please log in again."),this.$store.dispatch("auth/logout",{type:"force"})):o.response.data.message?alert(o.response.data.message):o.response.data.error?alert(o.response.data.error):alert(this.is_korean?"\uC5D0\uB7EC\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. \uAD00\uB9AC\uC790\uC5D0\uAC8C \uC5F0\uB77D\uD574\uC8FC\uC138\uC694.":"An error occurred. Please contact the administrator."),console.log(o),console.log(o.response)})}}),be={class:"head-wrap"},Pe={class:"title-banner"},Se={class:"font_SCDream5"},Te={class:"reservation-order-wrap"},$e={class:"wrapper"},De={class:"font_SCDream5"},Ce={class:"on current"},Ae={class:"contents-wrap"},Ue={class:"wrapper"},Ee={class:"recipient-info"},Ie={class:"form-head"},Oe={class:"caption"},Me={class:"font_SCDream5"},Le={class:"form-wrap"},Ne={class:"label-box esst"},Fe={class:"inner font_SCDream5"},He={class:"ko-label"},Re={class:"write-box"},Be=["placeholder"],Ve={class:"label-box esst"},Ke={class:"inner font_SCDream5"},We={class:"ko-label"},qe={class:"write-box"},ze={class:"phone-number-wrap"},je={class:"label-box esst"},Ye={class:"inner font_SCDream5"},Je={class:"ko-label"},Qe={class:"write-box"},Ge=["placeholder"],Ze={class:"order-product-wrap"},Xe={class:"form-head"},xe={class:"font_SCDream5"},et={class:"content-box"},tt={class:"program-info"},st={key:0,class:"program-img small"},at={key:0,class:"thumbnail-img",src:ne,alt:"Ticket All day pass"},ot={key:1,class:"thumbnail-img",src:ie,alt:"Ticket one day pass"},nt={key:2,class:"thumbnail-img",src:re,alt:"Showcase Ticket"},it={key:1,class:"program-img small"},rt={key:0,class:"thumbnail-img",src:le,alt:"Ticket All day pass"},lt={key:1,class:"thumbnail-img",src:de,alt:"Ticket one day pass"},dt={key:2,class:"thumbnail-img",src:pe,alt:"Showcase Ticket"},pt={class:"product-info"},ct={key:0,class:"ticket font_SCDream6"},ht={key:1,class:"ticket font_SCDream6"},ut={key:2,class:"ticket font_SCDream6"},_t={key:3,class:"ticket font_SCDream6"},mt={class:"font_SCDream5"},ft={class:"sub-info"},yt={class:"price font_SCDream6"},gt={class:"payment-info-wrap"},vt={class:"form-head"},kt={class:"font_SCDream5"},wt={class:"content-box"},bt={class:"font_SCDream6"},Pt={class:"font_SCDream6"},St={key:0,class:"content-box",style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap","margin-top":"8px"}},Tt={class:"font_SCDream6"},$t=["max"],Dt={class:"font_SCDream5"},Ct={key:1,class:"content-box",style:{"margin-top":"4px"}},At={class:"font_SCDream6"},Ut={class:"font_SCDream6"},Et={key:2,class:"content-box",style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap","margin-top":"8px"}},It={style:{display:"flex","align-items":"center",gap:"8px",cursor:"pointer"}},Ot={class:"font_SCDream6"},Mt={class:"font_SCDream5"},Lt={key:3,class:"content-box",style:{"margin-top":"4px"}},Nt={class:"font_SCDream6"},Ft={class:"font_SCDream6"},Ht={key:0,class:"payment-method-wrap"},Rt={class:"form-head"},Bt={class:"caption"},Vt={class:"font_SCDream5"},Kt={class:"content-box"},Wt={class:"font_SCDream5"},qt={class:"font_SCDream5"},zt={class:"btn-wrap"},jt=["disabled"],Yt={class:"paypal-modal"},Jt={class:"paypal-modal-header"},Qt={class:"paypal-modal-body"},Gt={class:"btn-wrap",style:{"margin-top":"20px"}},Zt=["disabled"];function Xt(e,t,n,o,a,i){return h(),X(G,{class:"page-container reservationpage-container paymentpage-container"},{default:x(()=>{var l,c,d,m,y,f,w,P,S,T,$,D,g,C;return[s("div",be,[s("div",Pe,[s("h2",Se,r(e.$t("reservation.step3")),1)]),s("div",Te,[s("div",$e,[s("ul",De,[s("li",{class:H(["on clickable",{locked:e.pay_flag}]),onClick:t[0]||(t[0]=p=>e.goBackToStep(1))},[t[16]||(t[16]=s("div",{class:"no"},[s("span",null,"1")],-1)),s("span",null,r(e.$t("reservation.step1")),1)],2),t[20]||(t[20]=s("li",{class:"icon"},[s("img",{src:N,alt:""})],-1)),s("li",{class:H(["on clickable",{locked:e.pay_flag}]),onClick:t[1]||(t[1]=p=>e.goBackToStep(2))},[t[17]||(t[17]=s("div",{class:"no"},[s("span",null,"2")],-1)),s("span",null,r(e.$t("reservation.step2")),1)],2),t[21]||(t[21]=s("li",{class:"icon"},[s("img",{src:N,alt:""})],-1)),s("li",Ce,[t[18]||(t[18]=s("div",{class:"no"},[s("span",null,"3")],-1)),s("span",null,r(e.$t("reservation.step3")),1)]),t[22]||(t[22]=s("li",{class:"icon"},[s("img",{src:N,alt:""})],-1)),s("li",null,[t[19]||(t[19]=s("div",{class:"no"},[s("span",null,"4")],-1)),s("span",null,r(e.$t("reservation.step4")),1)])])])])]),s("div",Ae,[s("div",Ue,[s("ul",null,[s("li",Ee,[s("div",Ie,[s("div",Oe,[s("p",null,r(e.$t("payment.requiredField")),1)]),s("h3",Me,r(e.$t("payment.recipient")),1)]),s("div",Le,[s("ul",null,[s("li",null,[s("div",Ne,[s("div",Fe,[s("span",He,r(e.$t("payment.receiverName")),1)])]),s("div",Re,[k(s("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=p=>e.name=p),class:"text-input font_SCDream5",placeholder:e.$t("payment.placeholderName")},null,8,Be),[[A,e.name]])])]),s("li",null,[s("div",Ve,[s("div",Ke,[s("span",We,r(e.$t("payment.contactNumber")),1)])]),s("div",qe,[s("div",ze,[ee(Q,{modelValue:e.phone1,"onUpdate:modelValue":t[3]||(t[3]=p=>e.phone1=p),options:e.phoneTypeOptions,"menu-anchor":"bottom left","menu-self":"top left",behavior:"menu","map-options":""},null,8,["modelValue","options"]),t[23]||(t[23]=s("span",{class:"dash"},null,-1)),k(s("input",{type:"text","onUpdate:modelValue":t[4]||(t[4]=p=>e.phone2=p),maxlength:"4",class:"text-input font_SCDream5"},null,512),[[A,e.phone2]]),t[24]||(t[24]=s("span",{class:"dash"},null,-1)),k(s("input",{type:"text","onUpdate:modelValue":t[5]||(t[5]=p=>e.phone3=p),maxlength:"4",class:"text-input font_SCDream5"}
10,null,512),[[A,e.phone3]])])])]),s("li",null,[s("div",je,[s("div",Ye,[s("span",Je,r(e.$t("payment.email")),1)])]),s("div",Qe,[k(s("input",{type:"text","onUpdate:modelValue":t[6]||(t[6]=p=>e.email=p),class:"text-input font_SCDream5",placeholder:e.$t("payment.placeholderEmail")},null,8,Ge),[[A,e.email]])])])])])]),s("li",Ze,[s("div",Xe,[s("h3",xe,r(e.$t("payment.orderProduct")),1)]),s("div",et,[s("div",tt,[e.is_korean?(h(),u("div",st,[((l=e.reservation_data)==null?void 0:l.order_type)=="fullpass"?(h(),u("img",at)):_("",!0),((c=e.reservation_data)==null?void 0:c.order_type)=="onepass"?(h(),u("img",ot)):_("",!0),((d=e.reservation_data)==null?void 0:d.order_type)=="showcase"?(h(),u("img",nt)):_("",!0)])):_("",!0),e.is_korean?_("",!0):(h(),u("div",it,[((m=e.reservation_data)==null?void 0:m.order_type)=="fullpass"?(h(),u("img",rt)):_("",!0),((y=e.reservation_data)==null?void 0:y.order_type)=="onepass"?(h(),u("img",lt)):_("",!0),((f=e.reservation_data)==null?void 0:f.order_type)=="showcase"?(h(),u("img",dt)):_("",!0)])),s("div",pt,[((w=e.reservation_data)==null?void 0:w.order_type)=="showcase"&&e.is_korean?(h(),u("span",ct,"[\uC5BC\uB9AC\uBC84\uB4DC] \uC1FC\uCF00\uC774\uC2A4 \uAD00\uB78C\uAD8C ")):_("",!0),((P=e.reservation_data)==null?void 0:P.order_type)!="showcase"&&e.is_korean?(h(),u("span",ht,"[\uC5BC\uB9AC\uBC84\uB4DC] "+r(((S=e.reservation_data)==null?void 0:S.order_type)=="fullpass"?"\uC804\uC77C\uAD8C":"1\uC77C\uAD8C")+" + \uC1FC\uCF00\uC774\uC2A4 \uAD00\uB78C\uAD8C / "+r(((T=e.reservation_data)==null?void 0:T.attendee_type)=="general"?"\uC77C\uBC18":"\uD559\uC0DD"),1)):_("",!0),(($=e.reservation_data)==null?void 0:$.order_type)=="showcase"&&!e.is_korean?(h(),u("span",ut,"[Early-Bird] Showcase Ticket")):_("",!0),((D=e.reservation_data)==null?void 0:D.order_type)!="showcase"&&!e.is_korean?(h(),u("span",_t,"[Early-Bird] "+r(((g=e.reservation_data)==null?void 0:g.order_type)=="fullpass"?"All Day Pass":"One Day Pass")+" + Showcase Ticket / "+r(((C=e.reservation_data)==null?void 0:C.attendee_type)=="general"?"General":"Student"),1)):_("",!0),s("ul",mt,[(h(!0),u(B,null,R(e.is_korean?e.convertedItems:e.convertedItemsEn,(p,F)=>(h(),u("li",{key:F},[s("span",null,r(F),1),s("ul",null,[(h(!0),u(B,null,R(p,(b,J)=>(h(),u("li",{key:J},r(e.is_korean?b.title:b.title_en||b.title)+" ("+r(e.is_korean?b.time:b.time_en||b.time)+") ",1))),128))])]))),128))])])]),s("ul",ft,[s("li",yt,r(e.priceDisplay),1)])])]),s("li",gt,[s("div",vt,[s("h3",kt,r(e.$t("payment.paymentInfo")),1)]),s("div",wt,[s("span",bt,r(e.$t("payment.productAmount")),1),s("span",Pt,r(e.priceDisplay),1)]),e.is_korean?(h(),u("div",St,[s("span",Tt,r(e.$t("payment.pointsUsed")),1),k(s("input",{type:"number",min:"0",max:e.maxUsablePoints,"onUpdate:modelValue":t[7]||(t[7]=p=>e.points_used=p),style:{width:"110px",padding:"6px 10px",border:"1px solid #ddd","border-radius":"4px","text-align":"right"}},null,8,$t),[[A,e.points_used,void 0,{number:!0}]]),s("span",Dt,r(e.$t("payment.pointsBalanceLabel",{balance:e.$putComma(e.point_balance)})),1),s("button",{type:"button",style:{padding:"4px 10px",border:"1px solid #999",background:"#fff","border-radius":"4px"},onClick:t[8]||(t[8]=(...p)=>e.useAllPoints&&e.useAllPoints(...p))},r(e.$t("payment.useAllPoints")),1)])):_("",!0),e.is_korean&&e.points_used>0?(h(),u("div",Ct,[s("span",At,r(e.$t("payment.finalAmount")),1),s("span",Ut,r(e.$t("payment.priceUnit",{price:e.$putComma(e.finalPrice)})),1)])):_("",!0),!e.is_korean&&e.maxUsablePoints>0?(h(),u("div",Et,[s("label",It,[k(s("input",{type:"checkbox","onUpdate:modelValue":t[9]||(t[9]=p=>e.use_points_en=p)},null,512),[[te,e.use_points_en]]),s("span",Ot,r(e.$t("payment.usePointsToggle")),1)]),s("span",Mt,r(e.$t("payment.pointsBalanceLabel",{balance:e.$putComma(e.point_balance)})),1)])):_("",!0),!e.is_korean&&e.use_points_en&&e.usdPointsDiscount>0?(h(),u("div",Lt,[s("span",Nt,r(e.$t("payment.finalAmount")),1),s("span",Ft,"- $"+r(e.usdPointsDiscount.toFixed(2))+" \u2192 $"+r(e.finalPriceUsd.toFixed(2)),1)])):_("",!0)]),e.is_korean?(h(),u("li",Ht,[s("div",Rt,[s("div",Bt,[s("p",null,r(e.$t("payment.requiredField")),1)]),s("h3",Vt,r(e.$t("payment.paymentMethod")),1)]),s("div",Kt,[s("ul",null,[s("li",null,[s("label",null,[k(s("input",{"onUpdate:modelValue":t[10]||(t[10]=p=>e.pay_type=p),type:"radio",name:"payment",value:"CARD",checked:""}
10,null,512),[[V,e.pay_type]]),s("span",Wt,r(e.$t("payment.creditCard")),1)])]),s("li",null,[s("label",null,[k(s("input",{"onUpdate:modelValue":t[11]||(t[11]=p=>e.pay_type=p),type:"radio",name:"payment",value:"VIRTUAL_ACCOUNT"},null,512),[[V,e.pay_type]]),s("span",qt,r(e.$t("payment.virtualAccount")),1)])])])])])):_("",!0)]),s("div",zt,[s("button",{class:"payment-btn font_SCDream5",onClick:t[12]||(t[12]=(...p)=>e.startPayment&&e.startPayment(...p)),disabled:e.pay_flag||!e.priceLoaded||e.transactionsFrozen},r(e.transactionsFrozen?e.is_korean?"\uC608\uB9E4\xB7\uACB0\uC81C \uB9C8\uAC10":"Closed":e.pay_flag?e.is_korean?"\uACB0\uC81C \uCC98\uB9AC \uC911...":"Processing...":e.priceLoaded?e.$t("payment.Payment"):e.is_korean?"\uAE08\uC561 \uD655\uC778 \uC911...":"Loading amount..."),9,jt)])])]),e.showTossModal?(h(),u("div",{key:0,class:"paypal-modal-overlay",onClick:t[15]||(t[15]=se((...p)=>e.closeTossModal&&e.closeTossModal(...p),["self"]))},[s("div",Yt,[s("div",Jt,[t[25]||(t[25]=s("h3",{class:"font_SCDream5"},"Pay with PayPal",-1)),s("button",{class:"paypal-modal-close",onClick:t[13]||(t[13]=(...p)=>e.closeTossModal&&e.closeTossModal(...p))},"\xD7")]),s("div",Qt,[t[26]||(t[26]=s("div",{id:"toss-payment-method"},null,-1)),t[27]||(t[27]=s("div",{id:"toss-agreement"},null,-1)),s("div",Gt,[s("button",{class:"payment-btn font_SCDream5",onClick:t[14]||(t[14]=(...p)=>e.confirmTossPayment&&e.confirmTossPayment(...p)),disabled:e.toss_in_flight||!e.toss_widgets_ready},r(e.toss_in_flight?"Processing...":"Pay"),9,Zt)])])])])):_("",!0)]}),_:1})}var ys=ce(we,[["render",Xt]]);export{ys 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.