PageSourceSearch

https://www.taiwanplus.com/_nuxt/sZq-Te3K.js

js taiwanplus.com collected 2026-10-02 02:55:41 UTC 5,370 bytes, 1 lines download raw bytes

1import{at as E,ac as u,E as m,af as t,ar as l,aJ as I,z as o,as as h,aK as F,ah as P,ai as R,ag as k,ae as M,aL as T,am as L,b as f}from"./DJqXHs41.js";import{j as N,u as z,f as B,a as O,c as H,b as J,k as K,l as W,d as Y,m as $,S as G}from"./CD0LZZvC.js";const Q={class:"news-container my-5 position-relative"},X={class:"mb-3"},Z={class:"form-check form-check-inline"},ee={class:"form-check form-check-inline"},te={class:"mb-3"},se={class:"mb-3"},oe=["value"],ae={key:0,class:"text-danger"},re={class:"mb-3"},le={class:"mb-3"},ne={class:"mb-3 form-check"},ie={class:"d-flex justify-content-end"},ce=["disabled"],ue=["disabled"],me={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},de={__name:"contact-us",async setup(pe){let n,d;z({title:B("Contact Us"),description:`${G} Contact Us`});const S=f([]),w=Y(),{logSSRError:U}=J(),{data:b,error:g}=([n,d]=E(async()=>O("contact-us-page",async()=>{const c=await w.default.country();if(c.success&&c.code==="0000")return c;throw H({statusCode:500,statusMessage:"Error fetching contact us page"})})),n=await n,d(),n);g.value?(console.warn("Error fetching countries:",g.value),[n,d]=E(()=>U(g.value,{apiEndpoint:"contact-us-page",pageName:"contact-us"})),await n,d()):b.value.success?S.value=b.value.data:console.warn("Error message:",b.value.message);const a=f({category:"Pitch",email:"",country:"errSelect",title:"",comments:"",agreement:!1}),{validateInput:V,escapeHtml:C}=$(),y=f(""),i=f(!1),_=async c=>{c.preventDefault(),y.value="";const e=K(),{messageModalMessage:s}=W(e),{openMessageModal:x}=e,p={format:"Suspicious input detected, please re-enter",success:"Thank you for your feedback.",error:"An error occurred. Please try again later."};if(Object.values(a.value).some(r=>!V(r))){s.value=p.format,x();return}try{i.value=!0;const r={...a.value};r.country==="errSelect"&&delete r.country;const q=Object.fromEntries(Object.entries(r).map(([A,D])=>[A,C(D)])),v=await w.default.contact(q);v.success&&v.code==="0000"?(s.value=p.success,j()):s.value=v.message||p.error}catch(r){console.error("Submit error:",r),s.value=p.error}finally{i.value=!1,x()}},j=()=>{a.value={category:"Pitch",email:"",country:"errSelect",title:"",comments:"",agreement:!1}};return(c,e)=>(u(),m("main",Q,[e[16]||(e[16]=t("h3",{class:"fw-bold"},"Contact Us",-1)),e[17]||(e[17]=t("p",{class:"text-muted mb-0"}," If you have general questions, comments, feedback about this site, or corrections, please complete the following form and select the appropriate category. ",-1)),e[18]||(e[18]=t("p",{class:"text-muted"}," For all other inquiries, including editorial matters, rights and content usage, or promotional opportunities, please email us at: [email protected] ",-1)),t("form",{onSubmit:_},[t("fieldset",X,[e[9]||(e[9]=t("legend",{class:"form-label"},"Category*",-1)),t("div",null,[t("div",Z,[l(t("input",{id:"pitch","onUpdate:modelValue":e[0]||(e[0]=s=>o(a).category=s),class:"form-check-input",type:"radio",name:"category",value:"Pitch",required:""},null,512),[[I,o(a).category]]),e[7]||(e[7]=t("label",{class:"form-check-label",for:"pitch"},"Pitch",-1))]),t("div",ee,[l(t("input",{id:"report","onUpdate:modelValue":e[1]||(e[1]=s=>o(a).category=s),class:"form-check-input",type:"radio",name:"category",value:"Report Issue",required:""},null,512),[[I,o(a).category]]),e[8]||(e[8]=t("label",{class:"form-check-label",for:"report"},"Report Issue",-1))])])]),t("fieldset",te,[e[10]||(e[10]=t("label",{for:"email",class:"form-label"},"Email*",-1)),l(t("input",{id:"email","onUpdate:modelValue":e[2]||(e[2]=s=>o(a).email=s),type:"email",class:"form-control",required:"",autocomplete:"email"},null,512),[[h,o(a).email]])]),t("fieldset",se,[e[12]||(e[12]=t("label",{for:"location",class:"form-label"},"Location",-1)),l(t("select",{id:"location","onUpdate:modelValue":e[3]||(e[3]=s=>o(a).country=s),class:"form-select"},[e[11]||(e[11]=t("option",{value:"errSelect"},"Please select",-1)),(u(!0),m(P,null,R(o(S),s=>(u(),m("option",{key:s.sortId,value:s.name},k(s.name),9,oe))),128))],512),[[F,o(a).country]]),o(y)?(u(),m("span",ae,k(o(y)),1)):M("",!0)]),t("fieldset",re,[e[13]||(e[13]=t("label",{for:"subject",class:"form-label"},"Subject*",-1)),l(t("input",{id:"subject","onUpdate:modelValue":e[4]||(e[4]=s=>o(a).title=s),type:"text",class:"form-control",required:""},null,512),[[h,o(a).title]])]),t("fieldset",le,[e[14]||(e[14]=t("label",{for:"comments",class:"form-label"},"Comments*",-1)),l(t("textarea",{id:"comments","onUpdate:modelValue":e[5]||(e[5]=s=>o(a).comments=s),class:"form-control",rows:"5",required:""},null,512),[[h,o(a).comments]])]),t("fieldset",ne,[l(t("input",{id:"agreement","onUpdate:modelValue":e[6]||(e[6]=s=>o(a).agreement=s),type:"checkbox",class:"form-check-input",required:""},null,512),[[T,o(a).agreement]]),e[15]||(e[15]=t("label",{class:"form-check-label",for:"agreement"}," You understand and agree that we may use the information you provide us here to communicate with you. We will not forward such information to third parties or use such information for other purposes. ",-1))]),t("div",ie,[t("button",{type:"reset",class:"btn btn-yellow me-2",disabled:o(i)}," Reset ",8,ce),t("button",{type:"submit",class:"btn btn-primary",disabled:o(i)},[o(i)?(u(),m("span",me)):M("",!0),L(" "+k(o(i)?"Sending...":"Send"),1)],8,ue)])],32)]))}},ye=N(de,[["__scopeId","data-v-26305d69"]]);export{ye 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.