1import{_ as T}from"./C7GBMLUb.js";import{_ as U,k as H}from"./dWppSTut.js";import{f as K,h as L,i as q,s as z,k as I,J,j as Q,v as G,o as x,c as m,d as y,l as s,a as e,ad as k,e as f,t as h,C as D,m as S,p as O,D as i,r as _,b0 as X,W as Y}from"./B7lTcWLE.js";import{u as Z}from"./BdHRgecS.js";import{u as ee}from"./D1WphxPe.js";const te={class:"px-5 pt-6"},se={class:"rounded-2xl bg-[#FFF5F6] border border-[#FBD5DA] px-4 py-4"},oe={class:"flex gap-3"},le={class:"min-w-0 flex-1"},ne={class:"text-[12px] text-[#7F1D1D] leading-[1.55]"},ae={class:"px-5 pt-7"},ie={class:"block text-[13px] font-semibold text-gray-700 mb-2.5"},re={class:"text-[#999] font-medium"},ue={key:0,class:"text-[11.5px] text-amber-600 flex items-center gap-1.5 mt-3"},de={key:1,class:"mt-2 text-[11.5px] text-red-500 flex items-center gap-1.5"},pe={key:2,class:"mt-2 text-[11.5px] text-emerald-600 flex items-center gap-1.5"},ce=["disabled"],p="#FF404B",ge=K({__name:"default-kiosk-password",setup(xe){Z({title:"í¤ì¤ì¤í¬ ë¹ë°ë²í¸ ì¤ì ",noindex:!0});const N=L(),{goBack:A,markAsSubWebView:P,clearSubWebViewFlag:$}=O(),{profile:j,fetchProfile:E}=q(),W=z(),F=i(()=>N.query.subwebview==="1");I(()=>{F.value&&P()}),J(()=>{F.value&&$()});const{keyboardHeight:V}=ee(),{headNo:M}=Q(),a=i(()=>H(M.value)),o=_(""),r=_(""),c=_(!1),{alert:v}=G(),b=i(()=>!!j.value?.hasDefaultCobopayPw),w=i(()=>o.value.length===a.value&&/^\d+$/.test(o.value)),u=i(()=>!!o.value&&o.value===r.value),B=i(()=>w.value&&u.value&&!c.value),C=i(()=>{if(!w.value)return!1;if(new RegExp(`^(\\d)\\1{${a.value-1}}$`).test(o.value))return!0;const l=o.value.split("").map(Number),t=l.every((d,n)=>n===0||d===l[n-1]+1),g=l.every((d,n)=>n===0||d===l[n-1]-1);return t||g});async function R(){if(!w.value){await v(`${a.value}ì리 ì«ì를 ì
ë ¥í´ ì£¼ì¸ì.`,{type:"error"});return}if(!u.value){await v("ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤.",{type:"error"});return}if(!c.value){c.value=!0;try{const l=await X(o.value);if(l.result_cd!=="0000"){await v(l.result_msg??"ë¹ë°ë²í¸ ë³ê²½ì ì¤í¨íìµëë¤.",{type:"error"});return}try{await E()}catch{}W.show(b.value?"í¤ì¤ì¤í¬ ë¹ë°ë²í¸ê° ë³ê²½ëììµëë¤.":"í¤ì¤ì¤í¬ ë¹ë°ë²í¸ê° ì¤ì ëììµëë¤.","success"),A()}catch(l){await v(Y(l,"ë¹ë°ë²í¸ ë³ê²½ ì¤ ì¤ë¥ê° ë°ìíìµëë¤.").message,{type:"error"})}finally{c.value=!1}}}return(l,t)=>{const g=T,d=U;return x(),m("div",{class:"mx-auto max-w-[640px] min-h-screen bg-white pb-10",style:k({paddingBottom:s(V)?s(V)+"px":""})},[y(g,{title:s(b)?"í¤ì¤ì¤í¬ ë¹ë°ë²í¸ ë³ê²½":"í¤ì¤ì¤í¬ ë¹ë°ë²í¸ ì¤ì ","back-fn":s(A)},null,8,["title","back-fn"]),e("section",te,[e("div",se,[e("div",oe,[e("div",{class:"shrink-0 flex h-9 w-9 items-center justify-center rounded-xl bg-white",style:k({boxShadow:`0 1px 3px ${p}1A`})},[(x(),m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:p,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...t[2]||(t[2]=[e("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"},null,-1),e("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"},null,-1)])]))],4),e("div",le,[t[4]||(t[4]=e("p",{class:"text-[13px] font-bold text-[#9B1C1C] mb-1"},"ëí´í¸ í¤ì¤ì¤í¬ ë¹ë°ë²í¸",-1)),e("p",ne,[f(" ìë¡ ê°ë§¹ì ì ê°ì
í ë í¤ì¤ì¤í¬ìì ì¬ì©í "+h(s(a))+"ì리 ì«ì ë¹ë°ë²í¸ì
ëë¤. ",1),t[3]||(t[3]=e("span",{class:"font-semibold"},"ì´ë¯¸ ê°ì
ë 매ì¥ì ë¹ë°ë²í¸ë ë³ê²½ëì§ ììµëë¤.",-1))])])])])]),e("section",ae,[e("label",ie,[t[5]||(t[5]=f(" ë¹ë°ë²í¸ ",-1)),e("span",re,"("+h(s(a))+"ì리 ì«ì)",1)]),y(d,{modelValue:s(o),"onUpdate:modelValue":t[0]||(t[0]=n=>D(o)?o.value=n:null),length:s(a),"accent-color":p,invalid:!!s(o)&&s(C),"aria-label":"ë¹ë°ë²í¸ ì
ë ¥"},null,8,["modelValue","length","invalid"]),s(o)&&s(C)?(x(),m("p",ue,[...t[6]||(t[6]=[e("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"10"}),e("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),e("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1),f(" ì측í기 ì¬ì´ ë¹ë°ë²í¸ì
ëë¤. ë¤ë¥¸ ì«ì ì¡°í©ì ê¶ì¥í©ëë¤. ",-1)])])):S("",!0),t[9]||(t[9]=e("label",{class:"block mt-6 text-[13px] font-semibold text-gray-700 mb-2.5"},"ë¹ë°ë²í¸ íì¸",-1)),y(d,{modelValue:s(r),"onUpdate:modelValue":t[1]||(t[1]=n=>D(r)?r.value=n:null),length:s(a),"accent-color":p,invalid:!!s(r)&&!s(u),valid:s(u),"aria-label":"ë¹ë°ë²í¸ ë¤ì ì
ë ¥"}
1,null,8,["modelValue","length","invalid","valid"]),s(r)&&!s(u)?(x(),m("p",de,[...t[7]||(t[7]=[e("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("circle",{cx:"12",cy:"12",r:"10"}),e("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),e("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),f(" ë¹ë°ë²í¸ê° ì¼ì¹íì§ ììµëë¤. ",-1)])])):s(u)?(x(),m("p",pe,[...t[8]||(t[8]=[e("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[e("polyline",{points:"20 6 9 17 4 12"})],-1),f(" ë¹ë°ë²í¸ê° ì¼ì¹í©ëë¤. ",-1)])])):S("",!0),t[10]||(t[10]=e("div",{class:"mt-6 rounded-xl bg-[#FAFAFA] px-4 py-3.5"},[e("p",{class:"text-[12px] font-bold text-[#666] mb-1.5"},"ìì í ë¹ë°ë²í¸ ìë´"),e("ul",{class:"space-y-1 text-[11.5px] text-[#888] leading-[1.6]"},[e("li",null,"· ìë
ìì¼, ì íë²í¸ ë± ê°ì¸ì ë³´ ê´ë ¨ ì«ì í¼í기"),e("li",null,"· 0000, 1234, 1111 ê°ì ë¨ì í¨í´ í¼í기"),e("li",null,"· ë³ê²½ í ë¤ì ê°ë§¹ì ê°ì
ë¶í° ì ë¹ë°ë²í¸ê° ì ì©ë©ëë¤")])],-1)),e("button",{class:"mt-7 w-full h-[54px] rounded-2xl text-[16px] font-bold text-white transition-all active:scale-[0.98] disabled:cursor-not-allowed",style:k(s(B)?{background:p,boxShadow:`0 8px 20px -6px ${p}66`}:{background:"#D5D5D5"}),disabled:!s(B),onClick:R},h(s(c)?"ì²ë¦¬ ì¤...":s(b)?"ë³ê²½ ìë£":"ì¤ì ìë£"),13,ce)])],4)}}});export{ge 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.