PageSourceSearch

https://www.cts.com.tw/_nuxt/Dat1Ykks.js

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

1import{$t as e,An as t,Jt as n,Kt as r,Nn as i,Un as a,Xn as o,Yt as s,an as c,cn as l,dn as u,ir as d,on as f,or as p,pn as m,sn as h,tr as g,un as _}from"./B-xOH4IK.js";import{t as v}from"./CfYC4lzC.js";import{n as y,r as b}from"./CcIqGu1x.js";import{n as x}from"./aIab2Rmk.js";import{t as S}from"./BDNMzG2s.js";import{n as C,t as w}from"./-6noH5RM.js";import{t as T}from"./CNs_Ozdc.js";import{i as E,r as D,t as O}from"./CEJOo_k0.js";var k={class:`area`},A={class:`container`},j={class:`contact-section pt:40px mx:auto w:100% max-width:1060px flex flex:column gap:20px t5`},M={class:`grid grid-rows:1@<1280 grid-columns:2@>1280 gap:20px`},N={class:`flex ai:center gap:20px flex-direction:column@<768 ai:flex-start@<768 gap:5px@<768`},P={class:`flex-grow:1 w:100%@<768`},F={class:`flex ai:center gap:20px flex-direction:column@<768 ai:flex-start@<768 gap:5px@<768`},I={class:`flex-grow:1 w:100%@<768`},L={class:`grid grid-rows:1@<1280 grid-columns:2@>1280 gap:20px`},R={class:`flex ai:center gap:20px flex-direction:column@<768 ai:flex-start@<768 gap:5px@<768`},z={class:`flex-grow:1 w:100%@<768`},B={class:`flex ai:center gap:20px flex-direction:column@<768 ai:flex-start@<768 gap:5px@<768`},V={class:`flex-grow:1 w:100%@<768`},H=[`value`],U={class:`flex ai:flex-start gap:20px flex-direction:column@<768 ai:flex-start@<768 gap:5px@<768`},W={class:`flex-grow:1 w:100%@<768`},G={class:`flex ai:center gap:20px flex-direction:column@<768 ai:flex-start@<768 gap:5px@<768`},K={class:`flex-grow:1 w:100%@<768`},q={class:`flex ai:center gap:20px flex-direction:column@<768 ai:flex-start@<768 gap:5px@<768`},J={class:`flex-grow:1 w:100%@<768`},Y=Object.assign(S(m({__name:`Form`,setup(m){let y=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,b=o(null),x=o({name:``,phone:``,email:``,category:``,content:``,privacyAgreed:!1,recaptchaToken:``}),S=o({name:!1,phone:!1,email:!1,category:!1,content:!1,privacyAgreed:!1,recaptchaToken:!1}),T=o({show:!1,type:`info`,title:``,message:``,showCancel:!1,confirmText:`確定`,cancelText:`取消`,onConfirm:()=>{},onCancel:()=>{}});function O(e){T.value={show:!0,type:e.type||`info`,title:e.title||``,message:e.message||``,showCancel:e.showCancel||!1,confirmText:e.confirmText||`確定`,cancelText:e.cancelText||`取消`,onConfirm:e.onConfirm||(()=>{}),onCancel:e.onCancel||(()=>{})}}function Y(e){S.value[e]=!1}function X(){Object.keys(S.value).forEach(e=>{S.value[e]=!1})}function Z(){x.value={name:``,phone:``,email:``,category:``,content:``,privacyAgreed:!1,recaptchaToken:``},X(),b.value?.reset()}function Q(e){x.value.recaptchaToken=e,Y(`recaptchaToken`)}function $(){x.value.recaptchaToken=``,S.value.recaptchaToken=!0}function ee(){X();let e=[];
1if(Object.keys(x.value).forEach(t=>{let n=t,r=x.value[n];if(t===`privacyAgreed`){if(!r){S.value[t]=!0;let n=E[t];n&&e.push(n)}}else if(typeof r==`string`&&!r.trim()){S.value[t]=!0;let n=E[t];n&&e.push(n)}}),x.value.email.trim()&&!y.test(x.value.email)){S.value.email=!0;let t=E.email;t&&!e.includes(t)&&e.push(`有效的Email格式`)}return e.length>0?(O({type:`error`,message:`請輸入 ${e.join(`、`)}`}),!1):!0}async function te(){if(ee())try{await v(`/api/partnership/contact`,{method:`POST`,body:x.value}),O({type:`success`,title:`送出成功`,message:`我們已收到您的需求,將盡快與您聯繫`,onConfirm:Z})}catch(e){let t=e,n=t.data?.message||t.message||`系統發生錯誤,請稍後再試`;b.value?.reset(),x.value.recaptchaToken=``,O({type:`error`,title:`送出失敗`,message:n})}}function ne(){O({type:`warning`,title:`確認清除`,message:`確定要清除所有輸入的內容嗎?`,showCancel:!0,confirmText:`確定清除`,cancelText:`取消`,onConfirm:Z})}return(o,m)=>{let v=C,y=w;return t(),l(`section`,k,[c(`div`,A,[m[22]||=c(`div`,{class:`contact-intro text-center mb:40px`},[c(`div`,{class:`flex ai:center jc:center t4 f:bold`},[_(` 若您有廣告業務合作的需求,請洽業務窗口 (02)2775-6917`),c(`br`),_(` 或至下方欄位簡單敘述,我們將盡速與您聯繫,謝謝。 `)])],-1),c(`div`,j,[c(`div`,M,[c(`div`,N,[m[13]||=c(`div`,{class:`w:110px t:right flex-shrink:0 t5 {w:100%;t:left}@<768`},[c(`span`,{class:`mr:4px color:red`},`*`),_(`您的姓名 `)],-1),c(`div`,P,[a(c(`input`,{"onUpdate:modelValue":m[0]||=e=>g(x).name=e,type:`text`,class:d([`form-control r:29px! px:16px! t:left! t6 w:100%!`,{"input-error":g(S).name}]),placeholder:`請輸入姓名`,onInput:m[1]||=e=>Y(`name`)},null,34),[[s,g(x).name]])])]),c(`div`,F,[m[14]||=c(`div`,{class:`w:110px t:right flex-shrink:0 t5 {w:100%;t:left}@<768`},[c(`span`,{class:`mr:4px color:red`},`*`),_(`聯絡電話 `)],-1),c(`div`,I,[a(c(`input`,{"onUpdate:modelValue":m[2]||=e=>g(x).phone=e,type:`text`,class:d([`form-control r:29px! px:16px! t:left! t6 w:100%!`,{"input-error":g(S).phone}]),placeholder:`請輸入聯絡電話`,onInput:m[3]||=e=>Y(`phone`)},null,34),[[s,g(x).phone]])])])]),c(`div`,L,[c(`div`,R,[m[15]||=c(`div`,{class:`w:110px t:right flex-shrink:0 t5 {w:100%;t:left}@<768`},[c(`span`,{class:`mr:4px color:red`},`*`),_(`聯絡Email `)],-1),c(`div`,z,[a(c(`input`,{"onUpdate:modelValue":m[4]||=e=>g(x).email=e,type:`text`,class:d([`form-control r:29px! px:16px! t:left! t6 w:100%!`,{"input-error":g(S).email}]),placeholder:`請輸入Email`,onInput:m[5]||=e=>Y(`email`)},null,34),[[s,g(x).email]])])]),c(`div`,B,[m[17]||=c(`div`,{class:`w:110px t:right flex-shrink:0 t5 {w:100%;t:left}@<768`},[c(`span`,{class:`mr:4px color:red`},`*`),_(`業務需求 `)],-1),c(`div`,V,[a(c(`select`,{"onUpdate:modelValue":m[6]||=e=>g(x).category=e,class:d([`form-select r:29px! p:10px|16px! leading:1! t:left! t6 w:100%!`,{"input-error":g(S).category,"select-placeholder":!g(x).category}]),onChange:m[7]||=e=>Y(`category`)},[m[16]||=c(`option`,{value:``,disabled:``,selected:``},` 請選擇 `,-1),(t(!0),l(e,null,i(g(D),e=>(t(),l(`option`,{key:e.value,value:e.value},p(e.label),9,H))),128))],34),[[n,g(x).category]])])])]),c(`div`,U,[m[18]||=c(`div`,{class:`w:110px t:right flex-shrink:0 t5 {w:100%;t:left}@<768`},[c(`span`,{class:`mr:4px color:red`},`*`),_(`需求內容 `)],-1),c(`div`,W,[a(c(`textarea`,{"onUpdate:modelValue":m[8]||=e=>g(x).content=e,class:d([`form-control t6`,{"input-error":g(S).content}]),rows:`8`,placeholder:`請詳細描述您的需求`,onInput:m[9]||=e=>Y(`content`)},null,34),[[s,g(x).content]])])]),c(`div`,G,[m[20]||=c(`div`,{class:`w:110px t:right flex-shrink:0 t5 {w:100%;t:left}@<768`},[c(`span`,{class:`mr:4px color:red`},`*`),_(`個資法確認 `)],-1),c(`div`,K,[a(c(`input`,{id:`gdpr`,"onUpdate:modelValue":m[10]||=e=>g(x).privacyAgreed=e,type:`checkbox`,name:`gdpr`,class:d([`form-check-input`,{"input-error":g(S).privacyAgreed}]),onChange:m[11]||=e=>Y(`privacyAgreed`)},null,34),[[r,g(x).privacyAgreed]]),m[19]||=c(`label`,{class:`form-check-label ml:8px`,for:`gdpr`},[_(` 我已詳閱並同意 `),c(`a`,{href:`/static/private`,class:`ml:8px@3xs bb:1|#8BD6FF! color:#8BD6FF! brightness(1.2):hover`,target:`_blank`},` 隱私權保護聲明 `)],-1)])]),c(`div`,q,[m[21]||=c(`div`,{class:`w:110px t:right flex-shrink:0 t5 {w:100%;t:left}@<768`},[c(`span`,{class:`mr:4px color:red`},`*`),_(`驗證碼 `)],-1),c(`div`,J,[u(v,{ref_key:`recaptchaRef`,ref:b,onVerify:Q,onExpire:$},null,512)])]),c(`div`,{class:`flex ai:center jc:center gap:20px mt:40px mt:20px@<768`},[c(`button`,{type:`button`,class:`cancel-button t4`,onClick:ne},` 取消重填 `),c(`button`,{type:`submit`,class:`confirm-button t4`,onClick:te}
1,` 確認送出 `)])])]),g(T).show?(t(),f(y,{key:0,type:g(T).type,title:g(T).title,message:g(T).message,"show-cancel":g(T).showCancel,"confirm-text":g(T).confirmText,"cancel-text":g(T).cancelText,onConfirm:g(T).onConfirm,onCancel:g(T).onCancel,onClose:m[12]||=e=>g(T).show=!1},null,8,[`type`,`title`,`message`,`show-cancel`,`confirm-text`,`cancel-text`,`onConfirm`,`onCancel`])):h(``,!0)])}}}),[[`__scopeId`,`data-v-fa9cc9e2`]]),{__name:`PartnershipForm`}),X=m({__name:`contact`,setup(e){return x(`global`),T({layout:`global`}),b({title:`聯絡我們 - 華視全球資訊網`,description:`華視業務合作聯絡我們,提供電視廣告、新媒體廣告、場地租借等服務諮詢。歡迎透過表單或電話與我們聯繫。`,ogTitle:`聯絡我們 - 華視全球資訊網`,ogDescription:`華視業務合作聯絡我們,提供電視廣告、新媒體廣告、場地租借等服務諮詢。歡迎透過表單或電話與我們聯繫。`}),y({meta:[{name:`keywords`,content:`華視,聯絡我們,業務合作,廣告服務,場地租å€
1Ÿ,媒體合作`}]}),(e,n)=>{let r=O,i=Y;return t(),l(`div`,null,[u(r),u(i)])}}});export{X 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.