PageSourceSearch

https://www.udrive.city/_next/static/chunks/pages/rent/success-c17e5100a35df74d.js

js udrive.city collected 2026-10-08 09:01:26 UTC 9,467 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8140],{8343:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3946),i=n(1820),a=n(3882),o=36e5;function c(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,n*o)}},3855:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(3946),i=n(3882),a=36e5,o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e,t){(0,i.Z)(1,arguments);var n=t||{},a=null==n.additionalDigits?2:(0,r.Z)(n.additionalDigits);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,c=s(e);if(c.date){var u=_(c.date,a);o=p(u.restDateString,u.year)}if(isNaN(o)||!o)return new Date(NaN);var l,d=o.getTime(),v=0;if(c.time&&(v=f(c.time),isNaN(v)||null===v))return new Date(NaN);if(!c.timezone){var m=new Date(d+v),g=new Date(0);return g.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),g.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),g}return l=x(c.timezone),isNaN(l)?new Date(NaN):new Date(d+v+l)}function s(e){var t,n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=o.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function _(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),a=r[2]&&parseInt(r[2]);return{year:null==a?i:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function p(e,t){if(null===t)return null;var n=e.match(c);if(!n)return null;var r=!!n[4],i=v(n[1]),a=v(n[2])-1,o=v(n[3]),u=v(n[4]),l=v(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}(t,u,l):new Date(NaN);var d=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(g[t]||(h(e)?29:28))}(t,a,o)&&function(e,t){return t>=1&&t<=(h(e)?366:365)}(t,i)?(d.setUTCFullYear(t,a,Math.max(i,o)),d):new Date(NaN)}function v(e){return e?parseInt(e):1}function f(e){var t=e.match(u);if(!t)return null;var n=m(t[1]),r=m(t[2]),i=m(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*a+6e4*r+1e3*i:NaN}function m(e){return e&&parseFloat(e.replace(",","."))||0}function x(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*a+6e4*i):NaN}var g=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400===0||e%4===0&&e%100}},6607:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return f}});var r=n(3725),i=n(5543),a=n(3855),o=n(2813),c=n(8343),u=n(2471),l=n(1163),d=n(7294),s=n(1418),_=n(4150),p=n(7174),v=n(5893);var f=!0;t.default=function(){var e,t,n,f,m,x,g,h,y,w,S,D,b=(0,u.$G)("common").t,N=s.ZP.member,Z=(0,l.useRouter)(),T=(0,d.useState)({}),k=T[0],j=T[1],C=(0,d.useState)({}),U=(C[0],C[1]),E=(0,d.useState)(!1),H=E[0],I=E[1];return(0,d.useEffect)((function(){null!==N&&void 0!==N&&N.id&&Promise.all([_.Z.getMyOrder(Z.query.order_id),_.Z.getMyIdStatus()]).then((function(e){j(e[0].data),U(e[1].data),e[1].data&&("UDRIVE"!==e[0].data.car.service_location.provider||"success"===e[1].data.driver_license_status&&"success"===e[1].data.id_card_status&&("TW"===e[1].data.country||""!==e[1].data.billing_address&&null!==e[1].data.billing_address))&&I(!0)}))}),[Z.query.order_id,null===N||void 0===N?void 0:N.id]),(0,d.useEffect)((function(){var e;if(null!=(null===k||void 0===k?void 0:k.amount)){var t=JSON.parse(localStorage.getItem("trackedUDOrders")||"[]");t.includes(k.id)||((0,p.x3)("order_completed",{order_id:k.id,user_id:N.id,phoneNo:N.phone,user_name:N.fullname,email:N.email,service_name:"\u79df\u8eca",service_id:"UD_TW",amount:k.amount,payment_method:(null===(e=k.payments[0])||void 0===e?void 0:e.payment_method)||N.payment_method,created_at:new Date(k.created_at).getTime(),url:window.location.href}),window.gtag&&gtag("event","conversion",{send_to:"AW-11474530947/gOn5CJSakokZEIPlvd8q",value:k.amount,currency:"TWD",transaction_id:k.id||"default_transaction_id"}),window.taq&&window.taq("track","CZq5iOR-neL2","Purchase"),t.push(k.id),localStorage.setItem("trackedUDOrders",JSON.stringify(t)))}}),[k,null===k||void 0===k?void 0:k.amount,null===k||void 0===k?void 0:k.transactionId]),(0,v.jsx)(r.kC,{minH:"100vh",bg:"url('/images/home/modelx.jpg')",bgRepeat:"no-repeat",bgPosition:"center",bgSize:"cover",children:(0,v.jsx)(r.kC,{w:"100%",style:{backdropFilter:" blur(18px)"},align:"start",justify:"center",children:(0,v.jsxs)(r.gC,{bg:"white",p:"16px",maxW:"650px",borderRadius:"5px",children:[(0,v.jsxs)(r.xu,{mb:H?"56px":"32px",children:[(0,v.jsxs)(r.xu,{pos:"relative",children:[(0,v.jsx)(r.xu,{pos:"absolute",bottom:"3px",left:"0px",w:H?"329px":"236px",h:"12px",bg:"rgba(10, 122, 255, 0.25)"}),(0,v.jsxs)(r.xv,{fontSize:"24px",lineHeight:"32px",color:"#333333",fontWeight:"700",children:["UDRIVE"===(null===k||void 0===k||null===(e=k.car)||void 0===e||null===(t=e.service_location)||void 0===t?void 0:t.provider)?b("Success_title"):"minute"===(null===k||void 0===k||null===(n=k.car)||void 0===n||null===(f=n.service_location)||void 0===f?void 0:f.order_auto_cancel_type)?b("Success_provider_pending"):b("Success_title"),
1(0,v.jsx)("br",{}),"UDRIVE"===(null===k||void 0===k||null===(m=k.car)||void 0===m||null===(x=m.service_location)||void 0===x?void 0:x.provider)?b(H?"Success_no_need_verify":"Success_need_verify"):"minute"===(null===k||void 0===k||null===(g=k.car)||void 0===g||null===(h=g.service_location)||void 0===h?void 0:h.order_auto_cancel_type)?b("Success_provider_pending_hour",{hour:(null===k||void 0===k||null===(y=k.car)||void 0===y||null===(w=y.service_location)||void 0===w?void 0:w.order_auto_cancel_minutes)/60}):b("Success_provider_acceptance")]})]}),(0,v.jsx)(r.xv,{fontSize:"16px",lineHeight:"24px",color:"#748598",mt:"2px",children:"UDRIVE"===(null===k||void 0===k||null===(S=k.car)||void 0===S||null===(D=S.service_location)||void 0===D?void 0:D.provider)?b(H?"Success_no_need_verify_info":"Success_need_verify_info"):b("Success_provider_info")}),(0,v.jsx)(r.kC,{w:"100%",justify:"center",mt:H?"43px":"14px",children:(0,v.jsx)(i.Z,{w:{base:H?"190px":"272px",md:H?"300px":"400px"},src:"/images/order/success/".concat(H?"no_need_verify.png":"need_verify.png")})})]}),(0,v.jsxs)(r.Ug,{w:"full",spacing:"16px",children:[(0,v.jsx)(r.kC,{flex:"1",align:"center",justify:"center",children:(0,v.jsx)(r.xv,{color:"#333333",fontWeight:"700",fontSize:"16px",lineHeight:"24px",cursor:"pointer",onClick:function(){var e="UDRIVE Tesla ".concat(b("BookSuccessfully_title_googleCalendar"),"\uff5c").concat(k.car.model),t=new Date((0,a.Z)(k.start_time)),n=new Date((0,a.Z)(k.end_time)),r=(0,o.Z)(t,"yyyyMMdd_HHmmss").replace("_","T")+".000ZZ",i=(0,o.Z)(n,"yyyyMMdd_HHmmss").replace("_","T")+".000ZZ",u="".concat(b("pickupTime"),"\uff1a").concat((0,o.Z)((0,c.Z)(t,8),"yyyy/MM/dd HH:mm")," | ").concat(b("pickupAddress"),"\uff1a").concat(k.car_pickup_data.location.city+k.car_pickup_data.location.zone+k.car_pickup_data.location.road," | ").concat(b("returnTime"),"\uff1a").concat((0,o.Z)((0,c.Z)(n,8),"yyyy/MM/dd HH:mm")," | ").concat(b("returnAddress"),"\uff1a").concat(k.car_return_data.location.city+k.car_return_data.location.zone+k.car_return_data.location.road," | ").concat(b("BookSuccessfully_btn_order"),"\uff1ahttps://www.udrive.city/account/rental_orders | ").concat(b("BookSuccessfully_btn_customerService"),"\uff1ahttps://udrive.city/?uchat");window.open("https://calendar.google.com/calendar/event?action=TEMPLATE&text=".concat(e,"&dates=").concat(r,"/").concat(i,"&details=").concat(u),"_blank")},children:b("Success_add_calender")})}),(0,v.jsx)(r.kC,{align:"center",justify:"center",flex:"1",bg:"#333333",borderRadius:"8px",cursor:"pointer",_hover:{bg:"rgba(51, 51, 51, 0.8)"},onClick:function(){H?Z.push({pathname:"/account/rental_orders",query:Z.query}):Z.push({pathname:"/account/settings",query:Z.query})},children:(0,v.jsx)(r.xv,{py:"16px",px:"32px",color:"white",fontSize:"16px",fontWeight:"700",lineHeight:"24px",children:b(H?"Success_view_order":"Success_go_verify")})})]}),(0,v.jsxs)(r.xu,{mt:"24px",pt:"24px",children:[(0,v.jsx)(r.xv,{textAlign:"center",fontSize:{base:"14px",md:"16px"},lineHeight:{base:"21px",md:"24px"},color:"#748598",children:b("rent_success_go_insurance_1")}),(0,v.jsx)(r.xv,{textAlign:"center",fontSize:{base:"14px",md:"16px"},lineHeight:{base:"21px",md:"24px"},color:"#748598",cursor:"pointer",onClick:function(){window.open("https://lihi2.com/pyUpK","_blank")},children:b("rent_success_go_insurance_2")})]})]})})})}},1765:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/rent/success",function(){return n(6607)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=1765,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=success-c17e5100a35df74d.js.map

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.