PageSourceSearch

https://weareoryx.com/_next/static/chunks/pages/request-car-8d0598cf03e31e19.js

js weareoryx.com collected 2026-10-02 01:48:35 UTC 6,704 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[613],{4080:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/request-car",function(){return a(4068)}])},6990:function(e,t,a){"use strict";var l=a(5893);t.Z=e=>{let{title:t}=e;return(0,l.jsx)("section",{className:"page-header",children:(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("h1",{className:"title",children:t})})})}},4068:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return m},default:function(){return u}});var l=a(5893),s=a(6990),n=a(9008),r=a.n(n),o=a(2132),c=a(7294),i=a(5020),d=()=>{let{t:e}=(0,o.$G)("common"),[t,a]=(0,c.useState)([]);(0,c.useEffect)(()=>{i.W.get("governments-landing").then(e=>{e.data.success&&a(e.data.data)}).catch(e=>{console.log(e)})},[]);let[s,n]=(0,c.useState)({full_name:"",phone:"",date:"",car_type:"",from:"",to:""}),[r,d]=(0,c.useState)({full_name:"",phone:"",date:"",car_type:"",from:"",to:""}),[m,u]=(0,c.useState)(!1),[h,_]=(0,c.useState)(!1),x=()=>{let t=!0;return""===s.full_name&&(d(t=>({...t,full_name:e("full_name_is_required")})),t=!1),""===s.phone&&(d(t=>({...t,phone:e("phone_number_is_required")})),t=!1),""===s.date&&(d(t=>({...t,date:e("travel_date_is_required")})),t=!1),""===s.car_type&&(d(t=>({...t,car_type:e("please_select_car_type")})),t=!1),""===s.from&&(d(t=>({...t,from:e("kindly_select_the_province_you_wish_to_proceed_form")})),t=!1),""===s.to&&(d(t=>({...t,to:e("kindly_select_the_province_you_wish_to_proceed_to")})),t=!1),t};return(0,l.jsxs)("section",{className:"contact-form",children:[(0,l.jsx)("h2",{className:"title",children:e("request_car_now")}),(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("form",{className:"car-form",id:"RequestCarForm",onSubmit:e=>{e.preventDefault(),x()&&(_(!0),i.W.post("landing/book-car",s).then(e=>{e.data.success&&(_(!1),u(!0),n(()=>({full_name:"",phone:"",date:"",car_type:"",from:"",to:""})),document.getElementById("RequestCarForm").reset(),setTimeout(()=>{u(!1)},3e3))}).catch(e=>{console.log(e),_(!1)}))},children:(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:"col-md-6",children:[(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"FullName",children:e("full_name")}),(0,l.jsx)("input",{type:"text",id:"FullName",className:"form-control",placeholder:e("enter_full_name"),onChange:e=>{n(t=>({...t,full_name:e.target.value})),d(e=>({...e,full_name:""}))}})]}),r.full_name&&(0,l.jsx)("div",{className:"form-text text-danger mb-3",children:r.full_name})]}),(0,l.jsxs)("div",{className:"col-md-6",children:[(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"Phone",children:e("phone_number")}),(0,l.jsx)("input",{type:"text",id:"Phone",className:"form-control",placeholder:e("enter_phone_number"),onChange:e=>{n(t=>({...t,phone:e.target.value})),d(e=>({...e,phone:""}))}})]}),r.phone&&(0,l.jsx)("div",{className:"form-text text-danger mb-3",children:r.phone})]}),(0,l.jsxs)("div",{className:"col-md-6",children:[(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"Date",children:e("travel_date")}),(0,l.jsx)("input",{type:"date",id:"Phone",className:"form-control",onChange:e=>{n(t=>({...t,date:e.target.value})),d(e=>({...e,date:""}))}})]}),r.date&&(0,l.jsx)("div",{className:"form-text text-danger mb-3",children:r.date})]}),(0,l.jsxs)("div",{className:"col-md-6",children:[(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"Date",children:e("car_type")}),(0,l.jsxs)("select",{className:"form-select",defaultValue:"CarType",onChange:e=>{n(t=>({...t,car_type:e.target.value})),d(e=>({...e,car_type:""}))},children:[(0,l.jsx)("option",{disabled:!0,value:"CarType",children:e("select_car_type")}),(0,l.jsx)("option",{value:"تويوتا هايس (Toyota Hiace)",children:"تويوتا هايس (Toyota Hiace)"}),(0,l.jsx)("option",{value:"فوتون فان (Foton Van)",children:"فوتون فان (Foton Van)"}),(0,l.jsx)("option",{value:"هيونداي H1 (Hyundai H1)",children:" هيونداي H1 (Hyundai H1)"}),(0,l.jsx)("option",{value:"شيفروليه N300 (Chevrolet N300)",children:"شيفروليه N300 (Chevrolet N300)"}),(0,l.jsx)("option",{value:"كينج لونج (King Long)",children:"كينج لونج (King Long)"}),(0,l.jsx)("option",{value:"باص كوستر 21",children:"باص كوستر 21"}),(0,l.jsx)("option",{value:"باص متسوبيشي 28 راكب",children:"باص متسوبيشي 28 راكب"}),(0,l.jsx)("option",{value:"باص MCV  33 راكب",children:"باص MCV  33 راكب "}),(0,l.jsx)("option",{value:"باص مرسيدس 50 راكب",children:"باص مرسيدس 50 راكب"})]})]}),r.car_type&&(0,l.jsx)("div",{className:"form-text text-danger mb-3",children:r.car_type})]}),(0,l.jsxs)("div",{className:"col-md-6",children:[(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"Date",children:e("form")}),(0,l.jsxs)("select",{className:"form-select",defaultValue:"FromGovenment",onChange:e=>{n(t=>({...t,from:e.target.value})),d(e=>({...e,from:""}))},children:[(0,l.jsx)("option",{disabled:!0,value:"FromGovenment",children:e("select_the_government")}),t.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.id))]})]}),r.from&&(0,l.jsx)("div",{className:"form-text text-danger mb-3",children:r.from})]}),(0,l.jsxs)("div",{className:"col-md-6",children:[(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"Date",children:e("to")}),(0,l.jsxs)("select",{className:"form-select",defaultValue:"ToGovenment",onChange:e=>{n(t=>({...t,to:e.target.value})),d(e=>({...e,to:""}))},children:[(0,l.jsx)("option",{disabled:!0,value:"ToGovenment",children:e("select_the_government")}),t.map(e=>(0,l.jsx)("option",{value:e.name,children:e.name},e.id))]})]}),r.to&&(0,l.jsx)("div",{className:"form-text text-danger mb-3",children:r.to})]}),(0,l.jsx)("div",{className:"col-md-12",children:(0,l.jsx)("div",{className:"form-group",children:h?(0,l.jsx)("button",{className:"submit-btn load",disabled:!0,type:"submit",children:e("send")}):(0,l.jsx)("button",{className:"submit-btn",type:"submit",children:e("send")})})}),(0,l.jsx)("div",{className:"col-md-12",children:m&&(0,l.jsx)("div",{className:"alert alert-success text-center mt-5",role:"alert",children:e("your_request_has_been_submitted_successfully")})})]})})})]})},m=!0,u=()=>{let{t:e}=(0,o.$G)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r(),{children:(0,l.jsx)("title",{children:"".concat(e("menu:request_car")," - ").concat(e("common:site_name"))})}),(0,l.jsx)(s.Z,{title:e("menu:request_car")}),(0,l.jsx)(d,{})]})}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=4080)}),_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.