PageSourceSearch

https://porschedrivingcentre.tw/_next/static/chunks/pages/active/pilotOneToOne/steps/Setp4-16f54cae12ed8504.js

js porschedrivingcentre.tw collected 2026-10-07 08:15:53 UTC 7,480 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3318],{9815:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/active/pilotOneToOne/steps/Setp4",function(){return t(7457)}])},4314:function(e,n,t){"use strict";t.d(n,{t5:function(){return g},k5:function(){return p},NV:function(){return h},ok:function(){return x},UG:function(){return m},S9:function(){return d},ov:function(){return f}});var r=t(4853);class l{toSelectItem(){return{value:this.value,label:this.label}}}class o{toSelectItem(){return{value:this.value,label:this.label}}}var s=t(4667),a=t(6592),i=t(721);class c{}let u="/v3/other",d=async()=>{let e={url:"".concat(u,"/ig"),method:"GET",responseClass:s.Z};return(0,a.W)(e)},p=async e=>{let n=r.ZP.language,t={url:"".concat(u,"/announcement").concat(e?"/".concat(e):""),method:"GET",responseClass:i.I7,params:{lang:n}};return(0,a.W)(t)},h=async()=>{let e=r.ZP.language,n={url:"".concat(u,"/distributor"),method:"GET",responseClass:i.m3,params:{lang:e}};return(0,a.W)(n)},m=async()=>{let e=r.ZP.language;return(0,a.W)({url:"".concat(u,"/food-preferences"),method:"GET",responseClass:l,params:{lang:e}})},x=async()=>{let e=r.ZP.language,n={url:"".concat(u,"/evaluation-aspect"),method:"GET",responseClass:i.iu,params:{lang:e}};return(0,a.W)(n)},f=async()=>{let e=r.ZP.language;return(0,a.W)({url:"".concat(u,"/transportation-modes"),method:"GET",responseClass:o,params:{lang:e}})},g=async()=>(0,a.W)({url:"".concat(u,"/agreement-document"),method:"GET",responseClass:c})},6422:function(e,n,t){"use strict";t.d(n,{X:function(){return r}});let r={Beef:"beef",Fish:"fish",Pork:"pork",Chicken:"chicken",SweetSnack:"sweetSnack",AfternoonTeaSnack:"afternoonTeaSnack",Veggie:"veggie",Meat:"meat",Other:"other"}},4934:function(e,n,t){"use strict";t.d(n,{X:function(){return h},t:function(){return p}});var r=t(5893),l=t(7294),o=t(6734),s=t(8855),a=t(7564),i=t(1232),c=t(5117),u=t(59),d=t(4853);let p=e=>{let{data:n,onDataTranslate:t,updateKey:a,...i}=e,{t:c}=(0,o.$G)(),u=d.ZP.language,p=(0,l.useMemo)(()=>n.map(e=>{let n;if("function"==typeof e.toSelectItem)n=e.toSelectItem(u);else{var r,l;n={value:e.value,label:null!==(l=c(null!==(r=e.label)&&void 0!==r?r:""))&&void 0!==l?l:e.value}}let o=null==t?void 0:t(e,n);return o&&(n=o),n}),[n,u,t,c]);return(0,r.jsx)(s.Ph,{data:p,...i})},h=e=>{let{value:n,onChange:t,disabled:l}=e,{t:s}=(0,o.$G)();return(0,r.jsxs)(a.K,{spacing:0,children:[(0,r.jsxs)(i.Z,{style:{marginBottom:"0.5rem",gap:0},children:[(0,r.jsx)(c.x,{size:"0.875rem",children:s("Date_of_birth")}),(0,r.jsx)(c.x,{ml:"1px",size:"0.875rem",style:{color:"#fa5252"},children:"*"})]}),(0,r.jsx)(u.a,{required:!0,disabled:l,value:n,onChange:t,placeholder:"---",valueFormat:"YYYY/MM/DD",minDate:new Date(1901,0,1),maxDate:new Date,clearable:!1,styles:{input:{borderRadius:"0",border:"0.0625rem solid #000",boxShadow:"0px 2px 1px 1px #C2C2C2"}}})]})}},3264:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(5893),l=t(7294),o=t(6734),s=t(2572),a=t(8855),i=t(4314);function c(e){let{ids:n,includeEmpty:t,...c}=e,{t:u}=(0,o.$G)(),[d,p]=(0,l.useState)([]),h=JSON.stringify(n);return(0,s.r5)(async()=>{if(!n)return;let e=await (0,i.UG)();if(e&&e.result){let r;r=0===n.length?e.result.map(e=>e.toSelectItem()):e.result.filter(e=>n.includes(Number(e.value))).map(e=>e.toSelectItem()),!0===t&&r.splice(0,0,{value:"",label:"---"}),p(r)}},[u,h,t]),(0,r.jsx)(a.Ph,{required:!0,placeholder:"---",label:u("DietaryPreferences"),data:d,...c})}},7457:function(e,n,t){"use strict";t.r(n);var r=t(5893),l=t(7294),o=t(9355),s=t(9058),a=t(5117),i=t(8818),c=t(2679),u=t(9876),d=t(7841),p=t(61),h=t(6768),m=t(8078),x=t(4736),f=t(6734),g=t(4934),j=t(6422),v=t(3264);let C={justify:"center",align:"flex-start",gutter:"xl",grow:!0};n.default=(0,l.memo)(e=>{var n,t,y,b;let{form:k,selectActiveInfo:P,foodPreferenceList:w}=e,{width:_}=(0,o.n)(),{t:S}=(0,f.$G)(),I=(e,n)=>_<1100?e:n,N=(0,l.useCallback)(()=>{var e;k.values.companion.length<(null!==(e=null==P?void 0:P.guestCount)&&void 0!==e?e:0)&&k.insertListItem("companion",{chineseName:"",englishName:"",dietaryRestrictionsType:j.X.Pork,dietaryRestrictionsOther:"",key:(0,s.k)(),birthday:new Date(2e3,0,1),identityCode:""})},[k.values.companion.length,P]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.x,{style:{fontWeight:"bold",fontSize:"26px"},children:S("Companion")}),(0,r.jsx)(i.T,{h:"xl"}),(0,r.jsx)(a.x,{children:S("ApplyPage.PILOT_ONE_TO_ONE_2025.AddCompanion",{price:Number(null!==(n=null==P?void 0:P.guestFee)&&void 0!==n?n:0).toLocaleStr
1ing(),peopleCount:Number(null!==(t=null==P?void 0:P.guestCount)&&void 0!==t?t:0).toLocaleString()})}),(0,r.jsx)(i.T,{h:"xl"}),(0,r.jsxs)(c.r,{columns:I(1,2),...C,children:[(0,r.jsx)(c.r.Col,{span:1,children:k.values.companion.map((e,n)=>{var t;return(0,r.jsxs)("div",{children:[(0,r.jsxs)(c.r,{justify:"space-between",align:"center",gutter:"xl",grow:!0,children:[(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(u.k,{justify:"flex-start",children:(0,r.jsxs)(a.x,{style:{fontWeight:"bold",fontSize:"26px"},children:[S("Companion")," ",n+1]})})}),(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(u.k,{justify:"flex-end",children:(0,r.jsx)(d.z,{variant:"style2",onClick:()=>k.removeListItem("companion",n),children:S("Delete")})})})]}),(0,r.jsxs)(c.r,{columns:I(1,2),...C,children:[(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(p.o,{required:!0,label:S("Chinese_name"),...k.getInputProps("companion.".concat(n,".chineseName"))})}),(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(p.o,{label:S("English_name"),...k.getInputProps("companion.".concat(n,".englishName"))})})]}),(0,r.jsx)(c.r,{columns:1,...C,children:(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(g.X,{...k.getInputProps("companion.".concat(n,".birthday"))})})}),(0,r.jsx)(c.r,{columns:1,...C,children:(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(p.o,{required:!0,label:S("Id_number"),...k.getInputProps("companion.".concat(n,".identityCode"))})})}),(0,r.jsxs)(c.r,{columns:I(1,2),...C,children:[(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(v.Z,{ids:null==P?void 0:P.foodPreferences,...k.getInputProps("companion.".concat(n,".foodPreference"))})}),(0,r.jsx)(c.r.Col,{span:1,children:(null===(t=w.find(e=>e.value===k.values.companion[n].foodPreference))||void 0===t?void 0:t.other)===!0&&(0,r.jsx)(p.o,{required:!0,label:S("DietaryPreferencesOther"),...k.getInputProps("companion.".concat(n,".foodPreferenceOther"))})})]})]},e.key)})}),(0,r.jsx)(c.r.Col,{span:1}),(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsxs)(c.r,{columns:1,...C,children:[k.values.companion.length<(null!==(y=null==P?void 0:P.guestCount)&&void 0!==y?y:0)&&(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(u.k,{justify:"flex-end",align:"center",direction:"row",gap:(0,h.h)(40),children:(0,r.jsx)(d.z,{variant:"style2",onClick:N,children:S("Add")})})}),(0,r.jsx)(c.r.Col,{span:1,children:(0,r.jsx)(m.X,{label:(0,r.jsx)(f.cC,{i18nKey:"Apply_Agree",components:{link1:(0,r.jsx)(x.k,{fs:(0,h.h)(.875),fw:"bold",color:"red",onClick:()=>window.open("/privacyPolicy")}),link2:(0,r.jsx)(x.k,{fs:(0,h.h)(.875),fw:"bold",color:"red",onClick:()=>window.open("/disclaimer")}),link3:(0,r.jsx)(x.k,{fs:(0,h.h)(.875),fw:"bold",color:"red",onClick:()=>window.open("/privacyProtectNotice")})},value:{price:null!==(b=null==P?void 0:P.price)&&void 0!==b?b:0}}),...k.getInputProps("agree",{type:"checkbox"})})})]})}),(0,r.jsx)(c.r.Col,{span:1})]})]})})}},function(e){e.O(0,[9321,4426,5358,9416,581,3395,5486,926,2888,9774,179],function(){return e(e.s=9815)}),_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.