PageSourceSearch

https://www.cts.com.tw/_nuxt/-6noH5RM.js

js cts.com.tw collected 2026-09-24 08:40:56 UTC 2,873 bytes, 1 lines download raw bytes

1import{t as e}from"./DmaT04Vf.js";import{An as t,Cn as n,Dn as r,Hn as i,Ht as a,Mt as o,Qt as s,Xn as c,Zt as l,an as u,bn as d,cn as f,dn as p,in as m,ir as h,nn as g,on as _,or as v,pn as y,sn as b,tr as x}from"./B-xOH4IK.js";import{t as S}from"./BDNMzG2s.js";var C=Object.assign(y({__name:`ReCaptcha`,emits:[`verify`,`expire`],setup(e,{expose:i,emit:a}){let s=()=>window.grecaptcha,l=a,u=o().public.recaptchaSiteKey,p=c(),m=c(!1),h=null,g=()=>{if(!u||document.querySelector(`script[data-recaptcha]`))return;window.onRecaptchaLoad=()=>{window.dispatchEvent(new Event(`recaptcha-loaded`))};let e=document.createElement(`script`);e.src=`https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoad&render=explicit`,e.async=!0,e.setAttribute(`data-recaptcha`,`true`),document.head.appendChild(e)},_=()=>{let e=s();typeof e?.render!=`function`||!p.value||(h=e.render(p.value,{sitekey:u,callback:e=>l(`verify`,e),"expired-callback":()=>l(`expire`)}))};return i({reset:()=>{let e=s();h!==null&&e&&e.reset(h)}}),r(()=>{m.value=!0,d(()=>{typeof s()?.render==`function`?_():(window.addEventListener(`recaptcha-loaded`,_),g())})}),n(()=>{window.removeEventListener(`recaptcha-loaded`,_)}),(e,n)=>x(m)?(t(),f(`div`,{key:0,ref_key:`container`,ref:p},null,512)):b(``,!0)}}),{__name:`SharedReCaptcha`}),w=[`aria-labelledby`],T={class:`alert-dialog`},E={key:0,id:`alert-title`,class:`alert-title`},D={id:`alert-message`,class:`alert-message`},O={class:`alert-actions`},k=Object.assign(S(y({__name:`Alert`,props:{type:{default:`info`},title:{default:``},message:{},confirmText:{default:`確定`},cancelText:{default:`取消`},showCancel:{type:Boolean,default:!1},closeOnOverlay:{type:Boolean,default:!0}},emits:[`confirm`,`cancel`,`close`],setup(n,{emit:r}){let o=r,d=c(!0),y=m(()=>({error:`uil:exclamation-circle`,success:`uil:check-circle`,warning:`uil:exclamation-triangle`,info:`uil:info-circle`})[n.type]);function S(){d.value=!1,o(`close`)}function C(){o(`confirm`),S()}function k(){o(`cancel`),S()}function A(){n.closeOnOverlay&&S()}return(r,o)=>{let c=e;return t(),_(g,{to:`body`},[p(a,{name:`alert-fade`},{default:i(()=>[x(d)?(t(),f(`div`,{key:0,class:`alert-overlay`,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":n.title?`alert-title`:void 0,"aria-describedby":`alert-message`,onClick:s(A,[`self`]),onKeyup:l(S,[`esc`])},[u(`div`,T,[p(c,{class:h([`alert-icon`,`alert-icon-${n.type}`]),name:x(y),"aria-hidden":`true`},null,8,[`class`,`name`]),n.title?(t(),f(`h3`,E,v(n.title),1)):b(``,!0),u(`p`,D,v(n.message),1),u(`footer`,O,[n.showCancel?(t(),f(`button`,{key:0,type:`button`,class:`alert-btn alert-btn-secondary`,onClick:k},v(n.cancelText),1)):b(``,!0),u(`button`,{type:`button`,class:`alert-btn alert-btn-primary`,onClick:C},v(n.confirmText),1)])])],40,w)):b(``,!0)]),_:1})])}}}),[[`__scopeId`,`data-v-c57d2a29`]]),{__name:`SharedAlert`});export{C as n,k as t};

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.