1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4399],{64938:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/love-trimt",function(){return i(57550)}])},57550:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return z}});var n=i(85893),a=i(67294),o=i(41664),s=i.n(o),l=i(46107),r=i(87576),c=i(75988),d=i(5459),p=i(31488),m=i(74306),u=i(11163),h=i(94960),x=i(46737),f=i.n(x),y=i(85433),g=i(87633),j=i(67204);let b=[{title:"é ç´å°é»",name:"location",type:h.iz.RADIO,options:{required:"æ¤æ¬ä½çºå¿
å¡«"}},{title:"é ç´æ¥æ",name:"date",type:h.iz.DATE,options:{required:"æ¤æ¬ä½çºå¿
å¡«"},minDate:(0,g.default)(new Date,7),maxDate:(0,g.default)(new Date,36)},{title:"ç³è«ææ®µ",name:"period",type:h.iz.RADIO,options:{required:"æ¤æ¬ä½çºå¿
å¡«"},hint:"è«å
鏿é ç´å°é»ï¼ç³»çµ±å°èªåå¸¶åºææ®µ",hintClassName:"fz-16px fz-xl-18px font-weight-bold text-danger"},{title:"ç³è«å®ä½",name:"organization",type:h.iz.TEXT,options:{required:"æ¤æ¬ä½çºå¿
å¡«"}},{title:"é ç´äººæ¸",name:"people",type:h.iz.NUMBER,options:{required:"æ¤æ¬ä½çºå¿
å¡«"},min:{value:10,message:"人æ¸è³å° 10 人"},max:{value:40,message:"äººæ¸æå¤ 40 人"},hint:"åè人æ¸è³å°10人ï¼è³å¤40人ã"},{title:"æå¥æ¸é",name:"gloves",type:h.iz.NUMBER,options:{required:"æ¤æ¬ä½çºå¿
å¡«"},max:{value:40,message:"æå¤40é"},hint:"æå¤40é"},{title:"夾忏é",name:"tongs",type:h.iz.NUMBER,options:{required:"æ¤æ¬ä½çºå¿
å¡«"},max:{value:40,message:"æå¤40é»"},hint:"æå¤40é»"},{title:"ç«¹æææ¸é",name:"brooms",type:h.iz.NUMBER,options:{required:"æ¤æ¬ä½çºå¿
å¡«"},max:{value:5,message:"æå¤5é»"},hint:"æå¤5é»"},{title:"é åæå°ç¨å
·çå°é»",name:"pickup_location",type:h.iz.RADIO,options:{required:"æ¤æ¬ä½çºå¿
å¡«"},items:[{id:1,title:"ç
å±±é客ä¸å¿"},{id:2,title:"梨山é客ä¸å¿"},{id:3,title:"å
«å¦å±±èçæ
é客ä¸å¿"},{id:4,title:"ååºé客ä¸å¿"},{id:5,title:"è°·éé客ä¸å¿"},{id:6,title:"æ¾æå¶ºé客ä¸å¿"}]},{title:"ç³è«äººå§å",name:"name",type:h.iz.TEXT,options:{required:"æ¤æ¬ä½çºå¿
å¡«"}},{title:"ç³è«äººé»è©±",name:"tel",type:h.iz.TEXT,options:{required:"æ¤æ¬ä½çºå¿
å¡«",pattern:{value:/^0\d{1,2}\d{6,8}$/,message:"æ ¼å¼æèª¤ï¼0423312678 æ 0900000000"},maxLength:10},hint:"æ ¼å¼ï¼0423312678 æ 0900000000"},{title:"é»åéµä»¶",name:"email",type:h.iz.TEXT,options:{required:"æ¤æ¬ä½çºå¿
å¡«",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"emailæ ¼å¼ï¼[email protected]"}}},{title:"å
¶å®åå©",name:"comment",type:h.iz.TEXTAREA,hint:"è«è¼¸å
¥é¡å¤å
¶å®åå©èªªæ"}],w=[{type:h.iz.ACCEPT,name:"privacy-policy"}];var z=!0;t.default=e=>{let{title:t,locale:i,desc:o}=e,{toggleLoading:x}=(0,a.useContext)(y.p),[g,z]=(0,a.useState)(!1),[_,q]=(0,a.useState)(!1),v=(0,m.bU)(),[N,E]=(0,a.useState)(null),[T,R]=(0,a.useState)(null),X=(0,u.useRouter)(),S=async e=>{let t=new FormData;x(!0),e.date=(0,j.default)(e.date,"yyyy-MM-dd"),Object.keys(e).forEach(i=>t.append(i,e[i]));let n=await fetch(h.qf.getToken.replace("zh-tw",i),{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.json()).then(e=>{let{data:t}=e;return t}).catch(console.error);t.append("__RequestVerificationToken",n),fetch("/_api/zh-tw/application-for-mountain-clean-up/",{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},body:t}).then(e=>e.json()).then(e=>{let{success:t,data:i}=e;t?f()("淨山ç³è«-å ±å宿","è¬è¬æ¨ä½¿ç¨ç·ä¸ç³è«ç³»çµ±ï¼è«æ³¨æé£çµ¡ä¿¡ç®±çéç¥ä¿¡å½ï¼å¯©æ ¸é3-5天ç工使éï¼è«æ¨èå¿çå¾
ãä¹è«çæä¿¡ä»¶å
§æä¾çç³è«åºèï¼æ¥å¾å¦æ¬²äºè§£èçé²åº¦ï¼è«ç¨è©²åºèé²è¡æ¥è©¢ï¼è¬è¬ã","success").then(()=>{X.push("/zh-tw/applications")}):(f()(i.toString(),"","warning"),document.querySelector("#captcha-img").src="/_api/captcha?".concat(+new Date)),x(!1)}).catch(console.error)};return(0,a.useEffect)(()=>{g&&fetch("/_api/zh-tw/application-locations?type=C",{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.json()).then(e=>{let{data:t}=e;t=t.map(e=>({id:e.location_id,title:e.name,group:e.area}));let i=b.find(e=>"location"===e.name);i.items=t,i.orderByGroup=!0,i.callback=e=>{R(e)},E(b)}).catch(console.error)},[g]),(0,a.useEffect)(()=>{T&&fetch("/_api/zh-tw/application-times?id=".concat(T),{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(e=>e.json()).then(e=>{let t=[...N],i=t.find(e=>"period"===e.name);i.items=e.data.map(e=>{let{sn:t,begin:i,end:n}=e;return{id:t,title:"".concat(i,"-").concat(n)}}),i.hint="",E(t)}
1).catch(console.error)},[T]),(0,n.jsxs)("div",{children:[(0,n.jsx)(l.Z,{title:"".concat((0,p.Iu)(t,i))}),(0,n.jsx)(r.Z,{className:"position-relative z-10 text-center text-default border-bottom",unit:"application"}),(0,n.jsxs)("div",{className:"w-100 maw-680px mx-auto pb-5 pb-md-8 pb-xl-10",children:[(0,n.jsx)("h2",{className:"py-4 py-md-5 text-center fz-32px fz-md-40px fz-xl-48px font-weight-bold border-bottom",children:t}),!g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:o}}),(0,n.jsxs)("div",{className:"text-center pt-2 pt-xl-5",children:[(0,n.jsx)(d.Z,{data:w,policy:[],onSubmit:()=>{},showCaptcha:!1,hideAcceptBorder:!0,acceptCenter:!0,acceptText:(0,n.jsx)(p.ZP,{children:"æå·²è©³é±ä¸è¿°ç³è«é ç¥ä¸¦åæ[åè³ä¿è·è²æ/é±ç§æ¬æ¿ç]ææå
§å®¹ã"}),onFormChange:(e,t)=>{"privacy-policy"===e&&q(t)}}),(0,n.jsx)("div",{className:"d-flex justify-content-center align-items-center h-7",children:(0,n.jsx)("button",{onClick:_?()=>{z(!0),window.scrollTo(0,0)}:void 0,title:(0,p.Iu)("ä¸ä¸æ¥",v),className:"d-inline-flex align-items-center justify-content-center px-5 py-2 mt-1 font-bold rounded-pill border-0 ".concat(_?"bg-primary text-white":"bg-[#c1c1c1] text-white"),disabled:!_,children:(0,n.jsx)(p.ZP,{children:"ä¸ä¸æ¥"})})})]})]}),g&&(0,n.jsxs)(n.Fragment,{children:[!N&&(0,n.jsx)("div",{className:"d-flex justify-content-center",children:(0,n.jsx)(c.Z,{size:18})}),N&&(0,n.jsx)(d.Z,{data:N,onSubmit:S,children:(0,n.jsxs)("div",{className:"d-flex justify-content-center mt-5 mt-md-6",children:[(0,n.jsx)(s(),{className:"btn miw-120px h-6 mr-2 rounded-lg",href:"/zh-tw/applications",children:"åå表"}),(0,n.jsx)("button",{className:"btn btn-primary justify-content-center miw-240px h-6 rounded-lg",children:"éåº"})]})})]})]})]})}}},function(e){e.O(0,[2962,4081,6737,7536,1828,5459,2888,9774,179],function(){return e(e.s=64938)}),_N_E=e.O()}]);
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.