PageSourceSearch

https://petraride.com/_next/static/chunks/pages/Captain/libya-ca7c8652daf8311b.js

js petraride.com collected 2026-10-02 15:45:23 UTC 4,933 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[213],{47584:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Captain/libya",function(){return t(91848)}])},19762:function(e,a){"use strict";a.Z={src:"/_next/static/media/envelope.a378c3e8.svg",height:157,width:152,blurWidth:0,blurHeight:0}},38919:function(e,a){"use strict";a.Z={src:"/_next/static/media/driver-smiling.86180467.png",height:899,width:353,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAMAAAALMbVOAAAANlBMVEVTWV1ERUSqkofLzMzQ2+RykaiRnq28yM+UeW7Dzdg7ODT///+CkJ1RZ3PKtKyDZVxubmslJihmk0RpAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJklEQVR4nAXBhwEAIAjAsIrIcPv/syZQLq/DiUrIIF1RX1hu2uQDC20Atl2gsDcAAAAASUVORK5CYII=",blurWidth:3,blurHeight:8}},91848:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSG:function(){return R},default:function(){return E}});var n=t(85893),l=t(25675),i=t.n(l),s=t(38919),c=t(92309),r=t(83122),o=t(98163),d=t(69939),p=t(22021),u=t(75671),m=t(86144),h=t(17586),x=t(15874),A=t(61988),g=t(59249),b=t(11163),j=t(92761),y=t(85112),f=t(57632),w=t(87066),N=t(67294),_=t(19762),v=t(9008),Z=t.n(v);let C=["طرابلس","بنغازي"],k=["Tripoli","Bengazi"];var R=!0;function E(){let{t:e}=(0,j.$G)(),{locale:a}=(0,b.useRouter)(),[t,l]=(0,N.useState)(!1),[v,R]=(0,y.x)({name:"",type:"",model:"",phoneNumber:"",city:"en"==a?k[0]:C[0],class:"إكونومي"}),E=Object.values(v).every(e=>!!e),[I,L]=(0,N.useState)(!1),M=async()=>
1{try{L(!0);let e={id:(0,f.Z)(),Actor:"Driver",phoneNumber:"+218".concat(v.phoneNumber),country:"LY",...v};await w.Z.post("https://k250ijrj76.execute-api.us-west-2.amazonaws.com/Prod",e),R(()=>({name:"",type:"",model:"",phoneNumber:"",city:"en"==a?k[0]:C[0],class:"إكونومي"})),l(!0)}catch(e){console.log("Error")}finally{L(!1)}};return(0,n.jsxs)("main",{className:"flex",children:[(0,n.jsxs)(Z(),{children:[(0,n.jsx)("title",{children:"en"==a?"Libya Captain Registration":"تسجيل الكابتن في ليبيا"}),(0,n.jsx)("meta",{name:"description",content:"en"==a?"Take the wheel and earn with Petra Ride":"عندك سيارة و حابب تزيد دخلك؟ انضم لعائلة بترا رايد"}),(0,n.jsx)("meta",{property:"og:title",content:"en"==a?"Libya Captain Registration":"تسجيل الكابتن في ليبيا"}),(0,n.jsx)("meta",{property:"og:description",content:"en"==a?"Take the wheel and earn with Petra Ride":"عندك سيارة و حابب تزيد دخلك؟ انضم لعائلة بترا رايد"})]}),(0,n.jsx)(c.Z,{fullWidth:!0,open:t,keepMounted:!0,onClose:()=>l(!1),children:(0,n.jsxs)(r.Z,{className:"flex flex-col items-center !p-20",children:[(0,n.jsx)("div",{className:"rounded-3xl bg-[#e5e9ef] p-3 w-fit mb-10",children:(0,n.jsx)(i(),{alt:"Envelope icon",className:"w-28 h-28",src:_.Z})}),(0,n.jsx)("h4",{className:"text-headline-large mb-2.5 text-center",children:e("captain:form_filled_title")}),(0,n.jsx)("p",{className:"text-title-medium text-neutral-6 mb-10 text-center",children:e("captain:form_filled_desc")}),(0,n.jsx)(o.Z,{onClick:()=>l(!1),variant:"contained",className:"w-full h-16 !bg-primary-11",children:e("captain:done")})]})}),(0,n.jsxs)("div",{className:"bg-[#F7F7F7] rounded-e-[50px] flex-1 p-10 md:p-40",children:[(0,n.jsx)("h1",{className:"text-title-large md:text-display-medium text-primary-11 text-center mb-16",dangerouslySetInnerHTML:{__html:e("captain:title")}}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-6 mb-14",children:[(0,n.jsx)(d.Z,{value:v.name,onChange:e=>R(a=>{a.name=e.target.value}),className:"w-[calc(50%-12px)]",label:e("captain:full_name")}
1),(0,n.jsx)(d.Z,{type:"number",value:v.phoneNumber,onChange:e=>R(a=>{a.phoneNumber=e.target.value}),className:"w-[calc(50%-12px)]",label:e("captain:phone_no"),InputProps:{startAdornment:(0,n.jsx)(p.Z,{position:"start",children:"+218"})}}),(0,n.jsx)(d.Z,{value:v.type,onChange:e=>R(a=>{a.type=e.target.value}),className:"w-[calc(50%-12px)]",label:e("captain:car_type")}),(0,n.jsx)(d.Z,{value:v.model,onChange:e=>R(a=>{a.model=e.target.value}),className:"w-[calc(50%-12px)]",label:e("captain:car_model")}),(0,n.jsx)(u.Z,{value:v.city,onChange:(e,a)=>{R(e=>{e.city=a})},className:"w-full",options:"en"==a?k:C,renderInput:a=>(0,n.jsx)(d.Z,{...a,label:e("captain:city")})}),(0,n.jsxs)(m.Z,{children:[(0,n.jsx)(h.Z,{children:e("captain:class")}),(0,n.jsx)(x.Z,{value:v.class,onChange:e=>R(a=>{a.class=e.target.value}),row:!0,children:(0,n.jsx)(A.Z,{value:"إكونومي",control:(0,n.jsx)(g.Z,{}),label:e("captain:economy")})})]})]}),(0,n.jsx)(o.Z,{disabled:I||!E,onClick:M,variant:"contained",className:"w-full h-14 !rounded-xl  ".concat(E&&"!bg-primary-11"),children:e("captain:become_captain")})]}),(0,n.jsx)(i(),{priority:!0,className:"hidden  md:block mx-6 w-[22rem] h-[56.25rem] rounded-[50px]",src:s.Z,alt:"Captain riding and smiling"})]})}E.noLayout=!0}},function(e){e.O(0,[331,495,163,379,156,975,888,774,179],function(){return e(e.s=47584)}),_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.