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.