1import{_ as C}from"./nuxt-link.e8e3321f.js";import{_ as M}from"./entry.3578af79.js";import{k as P,F as x,b as g,o as $,a9 as N,G as s,Q as _,H as l,W as o,I as b,L as d,X as T,M as r,_ as F,$ as c,R as n,U as k,T as S,n as E}from"./swiper-vue.b49379b0.js";const D=["id"],V={class:"area"},W={key:0,class:"header"},z=["innerHTML"],A={class:"right"},H={class:"body"},I={class:"contents"},O={key:1,class:"footer"},G=P({__name:"PagePopModal",props:{isOpen:{type:Boolean,default:!1},title:{default:null},confirmLabel:{default:"íì¸"},isLink:{type:Boolean,default:!1},url:{default:""},linkLabel:{default:""},isDone:{type:Boolean,default:!1},doneLabel:{default:""},contentText:{default:""},isFoot:{type:Boolean,default:!0},popId:{default:null},popName:{default:null},isActive:{type:[null,Boolean],default:!1},isDisabled:{type:[null,Boolean],default:!1}},emits:["apply","close"],setup(h,{emit:u}){const e=h;function p(){u("close")}function f(){u("apply")}const m=()=>typeof document<"u",L=[".baseModal",".bottomSheet",".pagePopup",".transModal"],y=()=>{E(()=>{if(!m())return;L.some(i=>document.querySelectorAll(`${i}:not([style*="display"])`).length>0)||(document.body.classList.remove("noScroll"),requestAnimationFrame(()=>a()))})},a=()=>{const t=window.innerWidth-document.body.offsetWidth;document.documentElement.style.setProperty("--sw",`${t}px`),document.documentElement.style.setProperty("---sw",`-${t}px`)};return x(()=>{a(),window.addEventListener("resize",a)}),g(()=>e.isOpen,t=>{m()&&(t?document.body.classList.add("noScroll"):y())},{immediate:!0}),$(()=>{window.removeEventListener("resize",a),y()}),(t,i)=>{const w=C,v=N("perfect-scrollbar"),B=M;return s(),_(S,{to:"body"},[e.isOpen?(s(),l("section",{key:0,id:e.popId,class:k(["pagePopup",[e.popName,{noFoot:!e.isFoot}]])},[o("div",V,[b(B,null,{default:d(()=>[b(v,{ref:"dialogRef",class:"dialog",onClick:i[0]||(i[0]=T(()=>{},["stop"]))},{default:d(()=>[e.title||t.$slots.header?(s(),l("header",W,[o("div",{class:"left"},[o("button",{type:"button",class:"ico icon icon-close-black",onClick:p},"ë«ê¸°")]),r(t.$slots,"header",{},()=>[o("h3",{class:"title",innerHTML:e.title},null,8,z)]),o("div",A,[e.isLink?(s(),_(w,{key:0,to:e.url,class:"btn txt st01"},{default:d(()=>[F(c(e.linkLabel),1)]),_:1},8,["to"])):n("",!0),e.isDone?(s(),l("button",{key:1,type:"button",class:"btn txt st01 em01",onClick:f},c(e.doneLabel),1)):n("",!0)])])):n("",!0),o("div",H,[o("div",I,[r(t.$slots,"default")])]),e.isFoot?(s(),l("footer",O,[r(t.$slots,"footer",{},()=>[e.type!=="action"?(s(),l("button",{key:0,type:"button",class:k(["btn round st01",{"em03 em05":e.type!=="action"&&e.type!=="alert"}]),onClick:p},[o("span",null,c(e.type==="alert"?e.alertLabel:e.cancelLabel),1)],2)):n("",!0),e.type!=="alert"?(s(),l("button",{key:1,type:"button",class:"btn round st01",onClick:f},[o("span",null,c(e.confirmLabel),1)])):n("",!0)])])):n("",!0)]),_:3},512)]),_:3})])],10,D)):n("",!0)])}}});export{G as _};
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.