1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60232,e=>{"use strict";var t=e.i(91398);e.s(["default",0,function({title:e,description:r,headingclass:a,descriptionclass:s}){return(0,t.jsxs)("div",{className:"title-block",children:[(0,t.jsx)("h2",{className:`text-2xl lg:text-[40px] font-[700] mb-4 ${a}`,dangerouslySetInnerHTML:{__html:r}}),(0,t.jsx)("div",{className:`text-lg md:text-1xl lg:text-2xl font-[500] ${s}`,children:e})]})}])},70645,e=>{"use strict";var t,r,a,s,n,o,l=e.i(91788);(t=s||(s={})).INITIAL="initial",t.PENDING="pending",t.REJECTED="rejected",t.RESOLVED="resolved",(r=n||(n={})).LOADING_STATUS="setLoadingStatus",r.RESET_OPTIONS="resetOptions",r.SET_BRAINTREE_INSTANCE="braintreeInstance",(a=o||(o={})).NUMBER="number",a.CVV="cvv",a.EXPIRATION_DATE="expirationDate",a.EXPIRATION_MONTH="expirationMonth",a.EXPIRATION_YEAR="expirationYear",a.POSTAL_CODE="postalCode";var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},c=function(){return(c=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function p(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)0>t.indexOf(a[s])&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function d(e,t,r){if(r||2==arguments.length)for(var a,s=0,n=t.length;s<n;s++)!a&&s in t||(a||(a=Array.prototype.slice.call(t,0,s)),a[s]=t[s]);return e.concat(a||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var u="data-react-paypal-script-id",f="react-paypal-js",m="dataNamespace",h="dataSdkIntegrationSource",x="paypal";function y(e){return void 0===e&&(e=x),window[e]}function g(e){var t=e.reactComponentName,r=e.sdkComponentKey,a=e.sdkRequestedComponents,s=void 0===a?"":a,n=e.sdkDataNamespace,o=r.charAt(0).toUpperCase().concat(r.substring(1)),l="Unable to render <".concat(t," /> because window.").concat(void 0===n?x:n,".").concat(o," is undefined."),i="string"==typeof s?s:s.join(",");if(!i.includes(r)){var c=[i,r].filter(Boolean).join();l+="\nTo fix the issue, add '".concat(r,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(c,"'}}>`.")}return l}function b(e){e[u];var t=p(e,[u+""]);return"react-paypal-js-".concat(function(e){for(var t="",r=0;r<e.length;r++){var a=e[r].charCodeAt(0)*r;e[r+1]&&(a+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(a)%26)}return t}(JSON.stringify(t)))}function v(e,t){var r,a,o,l;switch(t.type){case n.LOADING_STATUS:if("object"==typeof t.value)return c(c({},e),{loadingStatus:t.value.state,loadingStatusErrorMessage:t.value.message});return c(c({},e),{loadingStatus:t.value});case n.RESET_OPTIONS:return o=e.options[u],(null==(l=self.document.querySelector("script[".concat(u,'="').concat(o,'"]')))?void 0:l.parentNode)&&l.parentNode.removeChild(l),c(c({},e),{loadingStatus:s.PENDING,options:c(c(((r={})[h]=f,r),t.value),((a={})[u]="".concat(b(t.value)),a))});case n.SET_BRAINTREE_INSTANCE:return c(c({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var N=(0,l.createContext)(null);function j(){var e=function(e){if("function"==typeof(null==e?void 0:e.dispatch)&&0!==e.dispatch.length)return e;throw Error("usePayPalScriptReducer must be used within a PayPalScriptProvider")}((0,l.useContext)(N));return[c(c({},e),{isInitial:e.loadingStatus===s.INITIAL,isPending:e.loadingStatus===s.PENDING,isResolved:e.loadingStatus===s.RESOLVED,isRejected:e.loadingStatus===s.REJECTED}),e.dispatch]}(0,l.createContext)({});var w=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}function r(t){var r=e.call(this,t)||this;return r.state={hasError:!1},r}return i(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r.getDerivedStateFromError=function(){return{hasError:!0}},r.prototype.componentDidCatch=function(e,t){console.error("Error in PayPalButtons component:",e,t),"function"==typeof this.props.onError&&this.props.onError({message:e.message,name:e.name,stack:e.stack,componentStack:t.componentStack})},r.prototype.render=function(){return this.state.hasError?null:this.props.children},r}(l.Component),E=function(e){var t,r,a=e.className,s=e.disabled,n=void 0!==s&&s,o=e.children,i=e.forceReRender,u=p(e,["className","disabled","children","forceReRender"]),f="".concat(void 0===a?"":a," ").concat(n?"paypal-buttons-disabled":"").trim(),h=(0,l.useRef)(null),x=(0,l.useRef)(null),b=((t=(0,l.useRef)(new Proxy({},{get:function(e,t,r){return"function"==typeof e[t]?function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return e[t].apply(e,r)}:Reflect.get(e,t,r)}}))).current=Object.assign(t.current,u),t.current),v=j()[0],N=v.isResolved,w=v.options,E=(0,l.useState)(null),S=E[0],k=E[1],O=(0,l.useState)(!0),T=O[0],I=O[1],_=(0,l.useState)(null)[1];function C(){null!==x.current&&x.current.close().catch(function(){})}return(null==(r=x.current)?void 0:r.updateProps)&&x.current.updateProps({message:u.message}),(0,l.useEffect)(function(){if(!1===N)return C;var e=y(w.dataNamespace);if(void 0===e||void 0===e.Buttons)return _(function(){throw Error(g({reactComponentName:P.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:w.components,sdkDataNamespace:w[m]}))}),C;try{x.current=e.Buttons(c(c({},b),{onInit:function(e,t){k(t),"function"==typeof u.onInit&&u.onInit(e,t)}}))}catch(e){return _(function(){throw Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(e))})}return!1===x.current.isEligible()?I(!1):h.current&&x.current.render(h.current).catch(function(e){null!==h.current&&0!==h.current.children.length&&_(function(){throw Error("Failed to render <PayPalButtons /> component. ".concat(e))})}),C},d(d([N],void 0===i?[]:i,!0),[u.fundingSource],!1)),(0,l.useEffect)(function(){null!==S&&(!0===n?S.disable().catch(function(){}):S.enable().catch(function(){}))},[n,S]),l.default.createElement(l.default.Fragment,null,T?l.default.createElement("div",{ref:h,style:n?{opacity:.38}:{},className:f}):o)};E.displayName="PayPalButtons";var P=function(e){return l.default.createElement(w,{onError:e.onError},l.default.createElement(E,c({},e)))};function S(e,t){void 0===t&&(t={});var r=document.createElement("script");return r.src=e,Object.keys(t).forEach(function(e){r.setAttribute(e,t[e]),"data-csp-nonce"===e&&r.setAttribute("nonce",t["data-csp-nonce"])}),r}P.displayName="PayPalButtons","function"==typeof SuppressedError&&SuppressedError;function k(e,t){if("object"!=typeof e||null===e)throw Error("Expected an options object.");var r=e.environment;if(r&&"production"!==r&&"sandbox"!==r)throw Error('The `environment` option must be either "production" or "sandbox".');if(void 0!==t&&"function"!=typeof t)throw Error("Expected PromisePonyfill to be a function.")}var O=function(e){var t=e.className,r=e.children,a=p(e,["className","children"]),s=j()[0],n=s.isResolved,o=s.options,i=(0,l.useRef)(null),d=(0,l.useState)(!0),u=d[0],f=d[1],h=(0,l.useState)(null)[1],x=function(e){var t=i.current;if(!t||!e.isEligible())return f(!1);t.firstChild&&t.removeChild(t.firstChild),e.render(t).catch(function(e){null!==t&&0!==t.children.length&&h(function(){throw Error("Failed to render <PayPalMarks /> component. ".concat(e))})})};return(0,l.useEffect)(function(){if(!1!==n){var e=y(o[m]);if(void 0===e||void 0===e.Marks)return h(function(){throw Error(g({reactComponentName:O.displayName,sdkComponentKey:"marks",sdkRequestedComponents:o.components,sdkDataNamespace:o[m]}))});x(e.Marks(c({},a)))}},[n,a.fundingSource]),l.default.createElement(l.default.Fragment,null,u?l.default.createElement("div",{ref:i,className:void 0===t?"":t}):r)};O.displayName="PayPalMarks";var T=function(e){var t=e.className,r=e.forceReRender,a=p(e,["className","forceReRender"]),s=j()[0],n=s.isResolved,o=s.options,i=(0,l.useRef)(null),u=(0,l.useRef)(null),f=(0,l.useState)(null)[1];return(0,l.useEffect)(function(){if(!1!==n){var e=y(o[m]);if(void 0===e||void 0===e.Messages)return f(function(){throw Error(g({reactComponentName:T.dis
1playName,sdkComponentKey:"messages",sdkRequestedComponents:o.components,sdkDataNamespace:o[m]}))});u.current=e.Messages(c({},a)),u.current.render(i.current).catch(function(e){null!==i.current&&0!==i.current.children.length&&f(function(){throw Error("Failed to render <PayPalMessages /> component. ".concat(e))})})}},d([n],void 0===r?[]:r,!0)),l.default.createElement("div",{ref:i,className:void 0===t?"":t})};function I(){}T.displayName="PayPalMessages",(0,l.createContext)({cardFieldsForm:null,fields:{},registerField:I,unregisterField:I});e.s(["PayPalButtons",0,P,"PayPalScriptProvider",0,function(e){var t,r=e.options,a=void 0===r?{clientId:"test"}:r,o=e.children,i=e.deferLoading,p=void 0!==i&&i,d=(0,l.useReducer)(v,{options:c(c({},a),((t={}).dataJsSdkLibrary=f,t[h]=f,t[u]="".concat(b(a)),t)),loadingStatus:p?s.INITIAL:s.PENDING}),m=d[0],x=d[1];return(0,l.useEffect)(function(){if(!1===p&&m.loadingStatus===s.INITIAL)return x({type:n.LOADING_STATUS,value:s.PENDING});if(m.loadingStatus===s.PENDING){var e=!0;return(function(e,t){if(void 0===t&&(t=Promise),k(e,t),"u"<typeof document)return t.resolve(null);var r,a,s,n,o,l,i,c,p,d,u=(n=Object.prototype.hasOwnProperty.call(e,"sdkBaseUrl")?e.sdkBaseUrl:void 0,o=e.environment,e.sdkBaseUrl,l=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)0>t.indexOf(a[s])&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}(e,["environment","sdkBaseUrl"]),i=n||("sandbox"===o?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"),p=(c=Object.keys(l).filter(function(e){return void 0!==l[e]&&null!==l[e]&&""!==l[e]}).reduce(function(e,t){var r=l[t].toString();return"data"===(t=t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()})).substring(0,4)||"crossorigin"===t?e.attributes[t]=r:e.queryParams[t]=r,e},{queryParams:{},attributes:{}})).queryParams,d=c.attributes,p["merchant-id"]&&-1!==p["merchant-id"].indexOf(",")&&(d["data-merchant-id"]=p["merchant-id"],p["merchant-id"]="*"),{url:"".concat(i,"?").concat((a="",Object.keys(r=p).forEach(function(e){0!==a.length&&(a+="&"),a+=e+"="+r[e]}),a)),attributes:d}),f=u.url,m=u.attributes,h=m["data-namespace"]||"paypal",x=(s=h,window[s]);return(m["data-js-sdk-library"]||(m["data-js-sdk-library"]="paypal-js"),function(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(null===r)return null;var a=S(e,t),s=r.cloneNode();if(delete s.dataset.uidAuto,Object.keys(s.dataset).length!==Object.keys(a.dataset).length)return null;var n=!0;return Object.keys(s.dataset).forEach(function(e){s.dataset[e]!==a.dataset[e]&&(n=!1)}),n?r:null}(f,m)&&x)?t.resolve(x):(function(e,t){void 0===t&&(t=Promise),k(e,t);var r=e.url,a=e.attributes;if("string"!=typeof r||0===r.length)throw Error("Invalid url.");if(void 0!==a&&"object"!=typeof a)throw Error("Expected attributes to be an object.");return new t(function(e,t){var s,n,o,l,i,c;if("u"<typeof document)return e();n=(s={url:r,attributes:a,onSuccess:function(){return e()},onError:function(){return t(Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.')))}}).url,o=s.attributes,l=s.onSuccess,i=s.onError,(c=S(n,o)).onerror=i,c.onload=l,document.head.insertBefore(c,document.head.firstElementChild)})})({url:f,attributes:m},t).then(function(){var e,t=(e=h,window[e]);if(t)return t;throw Error("The window.".concat(h," global variable is not available."))})})(m.options).then(function(){e&&x({type:n.LOADING_STATUS,value:s.RESOLVED})}).catch(function(t){console.error("".concat("Failed to load the PayPal JS SDK script."," ").concat(t)),e&&x({type:n.LOADING_STATUS,value:{state:s.REJECTED,message:String(t)}})}),function(){e=!1}}},[m.options,p,m.loadingStatus]),l.default.createElement(N.Provider,{value:c(c({},m),{dispatch:x})},o)}])},96665,e=>{"use strict";var t=e.i(91398),r=e.i(91788),a=e.i(26019),s=e.i(30559),n=e.i(60232),o=e.i(24443);let l=[{name:"BDE Online Basic Program",price:"555",packageDetail:[{list:"30 Hours of Online Instruction."},{list:"10 Hours of Behind-the-Wheel Training"},{list:"Early Road Test Booking"},{list:"For in car lessons pick up and drop off from studentâs home/school available"}]},{name:"BDE Online Silver Program",price:"655",packageDetail:[{list:"30 Hours of Online Instruction"},{list:"10 Hours of Behind-the-Wheel Training"},{list:"Early Road Test Booking"},{list:"Use of the Instructor Car for 2 hour Road Test"},{list:"For in car lessons pick up and drop off from studentâs home/school available"}]},{name:"BDE Online Gold Program",price:"855",packageDetail:[{list:"30 Hours of Online Instruction"},{list:"15 Hours of Behind-the-Wheel Training"},{list:"Early Road Test Booking"},{list:"Use of the Instructor Car for 2 hour Road Test(an extra 30 minutes of practice before the road test)"}
1,{list:"Free Pick Up and Drop off for only Kitchener Road Test Centre."}]},{name:"BDE Online Platinum Program",price:"1199",packageDetail:[{list:"30 Hours of Online Instruction"},{list:"22 hours training behind the wheel"},{list:"Help to book the road test"},{list:"Use the Instructor vehicle for Road test for Kitchener Or Guelph location and 30 minutes extra refresher training before the test)"},{list:"Pick and drop off included during lessons and day of the road test"}]}];var i=e.i(70645),c=e.i(58021),p=e.i(3828);e.s(["default",0,function(){let e=(0,p.useRouter)(),{register:d,control:u,handleSubmit:f,getValues:m,formState:{errors:h},watch:x}=(0,c.useForm)({mode:"onBlur"}),y=x(["firstName","lastName","middleName","message","email","phone","licence_number","payment_type"]);(0,c.useWatch)({control:u,name:"payment_type",defaultValue:""});let[g,b]=(0,r.useState)(null),[v,N]=(0,r.useState)(!1),[j,w]=(0,r.useState)(!1),[E,P]=(0,r.useState)(!0),[S,k]=(0,r.useState)("");(0,r.useEffect)(()=>{y[0]&&y[1]&&y[4]&&y[5]&&y[6]&&y[7]?w(!0):w(!1)},[y]);let O=async t=>{if("paypal"===m("payment_type")&&""==S)alert("please do payment");else{P(!1);try{await s.default.post("/api/payment",{...t,selectedPackage:g,payment_id:S}),e.push("/thank-you")}catch(e){P(!0),console.error("Payment error:",e)}}};return(0,t.jsx)(i.PayPalScriptProvider,{options:{"client-id":"AWs8UCnKssz2TbstjdzBc3jP6kk3sBy2r4xuAAXsI-zt3WsOuh7P1oLV08xipmhJF6ri6XqMwvIXkJXN",currency:"CAD"},children:(0,t.jsx)("section",{className:"pb-[] package",children:(0,t.jsxs)("div",{className:"review-slider bg-[#fff]",children:[(0,t.jsxs)(o.default,{children:[(0,t.jsxs)("div",{className:"max-w-[1000px] mx-auto text-center pb-[50px]",children:[(0,t.jsx)(n.default,{description:"Pricing",title:"",headingclass:"text-[#000]"}),(0,t.jsx)("p",{className:"text-[#000] text-[18px] pt-[15px]",children:"Pricing for our driving lessons is affordable for anyone."})]}),(0,t.jsx)("div",{className:"service-slide-box lg:grid lg:grid-cols-4 gap-
15 md:grid md:grid-cols-2 md:gap-3 sm:grid sm:grid-cols-1",children:l.map((e,r)=>(0,t.jsxs)("div",{className:"border bg-[#fff] rounded-[20px] shadow-lg relative overflow-hidden mb-3",children:[(0,t.jsxs)("div",{className:"bg-[#f9f4e1] px-1 py-6 text-center",children:[(0,t.jsx)("div",{className:"flex justify-center mb-4",children:(0,t.jsx)("p",{className:"backdrop-blur-md bg-white/20 border border-white/30 shadow-lg font-bold text-black text-[12px] tracking-wide px-4 py-2.5 leading-normal rounded-full text-center w-max",children:"Beginner Driver Education Course"})}),(0,t.jsx)("h3",{className:"text-[18px] leading-normal pb-4",children:e.name}),(0,t.jsxs)("h4",{className:"text-[#f64744]",children:[(0,t.jsx)("sup",{children:"$"})," ",e.price," + HST"]})]}),e.packageDetail&&(0,t.jsx)("div",{className:"min-h-[430px]",children:e.packageDetail.map((e,r)=>(0,t.jsxs)("div",{className:"border-t border-[#2222] px-3 py-2 grid grid-cols-[2fr_12fr] justify-evenly items-center",children:[(0,t.jsx)(a.default,{src:"/images/icons/check-mark.svg",width:30,height:30,alt:"Tick",className:"w-[30px] h-[30px]"}),(0,t.jsx)("p",{className:"text-[16px] text-[#000]",children:e.list})]},r))}),(0,t.jsx)("div",{className:"text-center place-items-center grid gap-5 button-color border-t border-[#2222] px-3 py-4 w-full",children:(0,t.jsx)("button",{onClick:()=>{b(e),N(!0)},className:"btn bg-[#f64744] text-white rounded px-4 py-2",children:"Select Plan"})})]},r))})]}),v&&g&&(0,t.jsx)("div",{className:"fixed inset-0 z-50 bg-black bg-opacity-50 top-[100px] flex items-center justify-center formpopup-main",children:(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-lg w-[1000px] max-w-full max-h-[500px] pop-up-form",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center bg-[#fff7f7] border-b border-[#c4c4c4] py-[10
1px] px-[20px]",children:[(0,t.jsx)("div",{className:"",children:(0,t.jsx)("h2",{className:"text-[22px]",children:g.name})}),(0,t.jsx)("div",{className:"float-right relative cursor-pointer right-0 top-0 w-[30px] h-[30px]",onClick:()=>{b(null),N(!1)},children:(0,t.jsx)("img",{src:"/images/icons/x-mark.svg",alt:" Cross Button"})})]}),(0,t.jsxs)("form",{className:"lg:flex lg:gap-5 py-[40px] px-[20px] formpopup",onSubmit:f(O),children:[(0,t.jsxs)("div",{className:"w-[60%] p-3 left-popup md:order-1 order-1 lg:order-1",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-5",children:[(0,t.jsxs)("div",{className:"mb-4 relative w-[100%]",children:[(0,t.jsx)("input",{type:"text",name:"firstName",...d("firstName",{required:!0}),className:"block px-2.5 pb-2.5 pt-4 w-full text-sm text-gray-900 bg-[#ffff] rounded-[0px] border-1 border-gray-300 appearance-none focus:outline-none focus:ring-0 focus:border-[#000] peer",placeholder:" ",required:!0}),h.firstName&&(0,t.jsx)("span",{className:"text-red-500",children:"First name is required"}),(0,t.jsxs)("label",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:["First Name ",(0,t.jsx)("span",{className:"text-[#f64744]",children:"*"})]})]}),(0,t.jsxs)("div",{className:"mb-4 relative w-[100%]",children:[(0,t.jsx)("input",{type:"text",name:"middleName",...d("middleName"),className:"block px-2.5 pb-2.5 pt-4 w-full text-sm text-gray-900 bg-[#ffff] rounded-[0px] border-1 border-gray-300 appearance-none focus:outline-none focus:ring-0 focus:border-[#000] peer",placeholder:" "}),(0,t.jsxs)("label",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:["Middle Name"," "]})]})]}),(0,t.jsxs)("div",{className:"flex flex-row gap-5",children:[(0,t.jsxs)("div",{className:"mb-4 relative w-[100%]",children:[(0,t.jsx)("input",{type:"text",name:"lastName",...d("lastName",{required:!0}),className:"block px-2.5 pb-2.5 pt-4 w-full text-sm text-gray-900 bg-[#ffff] rounded-[0px] border-1 border-gray-300 appearance-none focus:outline-none focus:ring-0 focus:border-[#000] peer",placeholder:" ",required:!0}),(0,t.jsxs)("label",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:["Last Name ",(0,t.jsx)("span",{className:"text-[#f64744]",children:"*"})]}),h.lastName&&(0,t.jsx)("span",{className:"text-red-500",children:"Last name is required"})]}),(0,t.jsxs)("div",{className:"mb-4 relative w-[100%]",children:[(0,t.jsx)("input",{type:"email",name:"email",...d("email",{required:!0}),className:"block px-2.5 pb-2.5 pt-4 w-full text-sm text-gray-900 bg-[#ffff] rounded-[0px] border-1 border-gray-300 appearance-none focus:outline-none focus:ring-0 focus:border-[#000] peer",placeholder:" ",required:!0}),(0,t.jsxs)("label",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:["Email ",(0,t.jsx)("span",{className:"text-[#f64744]",children:"*"})]}),h.email&&(0,t.jsx)("span",{className:"text-red-500",children:"Email is required"})]})]}),(0,t.jsxs)("div",{className:"flex flex-row gap-5",children:[(0,t.jsxs)("div",{className:"mb-4 relative w-[100%]",children:[(0,t.jsx)("input",{type:"text",name:"licence_number",...d("licence_number",{required:!0}),className:"block px-2.5 pb-2.5 pt-4 w-full text-sm text-gray-900 bg-[#ffff] rounded-[0px] border-1 border-gray-300 appearance-none focus:outline-none focus:ring-0 focus:border-[#000] peer",placeholder:" ",required:!0}),(0,t.jsxs)("label",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:["Driver License No."," ",(0,t.jsx)("span",{className:"text-[#f64744]",children:"*"})]}),h.licence_number&&(0,t.jsx)("span",{className:"text-red-500",children:"Driver License No. is required"})]}),(0,t.jsxs)("div",{className:"mb-4 relative w-[100%]",children:[(0,t.jsx)("input",{type:"text",name:"phone",...d("phone",{required:!0}),className:"block px-2.5 pb-2.5 pt-4 w-full text-sm text-gray-900 bg-[#ffff] rounded-[0px] border-1 border-gray-300 appearance-none focus:outline-none focus:ring-0 focus:border-[#000] peer",placeholder:" ",required:!0}),(0,t.jsxs)("label",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:["Phone ",(0,t.jsx)("span",{className:"text-[#f64744]",children:"*"})]}),h.phone&&(0,t.jsx)("span",{className:"text-red-500",children:"Driver License No. is required"})]})]}),(0,t.jsxs)("div",{className:"mb-4 relative",children:[(0,t.jsx)("textarea",{id:"message",rows:"4",...d("message"),className:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500",placeholder:"Write your thoughts here..."}),(0,t.jsxs)("label",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:["Address"," "]})]})]}),(0,t.jsxs)("div",{className:"w-[40%] p-3 right-popup order-2 lg:order-2 md:order-2 ",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("p",{className:"text-[14px]",children:["Total: $",(1.13*g.price).toFixed(2)," CAD including tax"]})}),(0,t.jsxs)("div",{className:" relative",children:[(0,t.jsx)("div",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:"Interac e-Transfer"}),(0,t.jsx)("input",{type:"radio",id:"interac",name:"payment_type",value:"interac",className:"hidden",...d("payment_type",{required:!0})}),(0,t.jsx)("div",{className:"interac"==m("payment_type")?"payment-type active-payment":"payment-type",children:(0,t.jsxs)("label",{htmlFor:"interac",className:"flex flex-col w-[100%] h-[100%]",children:[(0,t.jsxs)("div",{className:"text-[14px] leading-[23px]",children:[" ","E-transfer details: mailto:[email protected]"]}),(0,t.jsx)("div",{className:"text-[14px] leading-[23px]",children:"Mobile No.: +1 (548)-398-3980"})]})})]}),(0,t.jsxs)("div",{className:" relative",children:[(0,t.jsx)("div",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:"online payment"}),(0,t.jsx)("input",{type:"radio",id:"paypal",name:"payment_type",value:"paypal",className:"hidden",...d("payment_type",{required:!0})}),(0,t.jsx)("div",{className:"paypal"==m("payment_type")?"payment-type active-payment":"payment-type",children:(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)("label",{htmlFor:"paypal",className:"flex w-[100%] h-[100%]",children:[(0,t.jsx)(a.default,{src:"/images/icons/paypal (1).svg",width:"25",height:"25",alt:"",className:"w-[25px] h-[25px]"}),(0,t.jsx)("div",{className:"block text-sm font-medium text-gray-700",children:"PayPal"})]})})})]}),(0,t.jsxs)("div",{className:" relative",children:[(0,t.jsx)("div",{className:"absolute text-sm text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-[#fff] px-2 peer-focus:px-2 peer-focus:text-[#000] peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto start-1",children:"Cash / Offline Payment"}),(0,t.jsx)("input",{type:"radio",id:"cash",name:"payment_type",value:"cash",className:"hidden",...d("payment_type",{required:!0})}),(0,t.jsx)("div",{className:"cash"==m("payment_type")?"payment-type active-payment":"payment-type",children:(0,t.jsx)("label",{htmlFor:"cash",className:"flex flex-col w-[100%] h-[100%]",children:(0,t.jsxs)("div",{className:"text-[14px] leading-[23px]",children:[" ","Cash is where user can pay offline."]})})})]}
1),g&&"paypal"===m("payment_type")&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(i.PayPalButtons,{style:{layout:"vertical"},createOrder:(e,t)=>t.order.create({purchase_units:[{description:g.name,amount:.01,amount:{value:(1.13*g.price).toFixed(2)},payer:{name:{given_name:y.firstName,surname:y.lastName},email_address:y.email,phone:{phone_type:"MOBILE",phone_number:{national_number:y.phone}}}}]}),onApprove:(e,t)=>t.order.capture().then(async e=>{try{await s.default.post("/api/payment",{...y,package:g,paypalDetails:e}),console.log(e),console.log(`Transaction completed by ${e.payer.name.given_name}`),onsubmit()}catch(e){console.error("Payment error:",e)}})})}),E?(0,t.jsx)("button",{type:"submit",className:"mt-4 bg-red-500 text-white py-2 px-4 rounded",children:"Order"}):(0,t.jsx)("button",{type:"button",className:"mt-4 bg-red-500 text-white py-2 px-4 rounded",children:"Ordering"})]})]})]})})]})})})}],96665)},81644,e=>{"use strict";var t=e.i(91398),r=e.i(62423),a=e.i(87484),s=e.i(56613),n=e.i(96665);e.s(["default",0,function(){return(0,t.jsxs)("div",{className:"tp-app",children:[(0,t.jsx)(r.default,{PageMeta:{title:"Pricing - YO Driving Academy: Best Driving School in Waterloo",description:"Get licensed and learn essential driving skills today. YO Driving Academy is one of the best driving schools in the Waterloo to learn how to drive safely. Join us today."}}),(0,t.jsxs)(a.default,{children:[(0,t.jsx)(s.default,{bgimage:"/images/banner/innerbanner-2.jpg",Heading:"OUR PRICING",Breadcrumb1:"Home",Breadcrumb2:"Our Pricing",Link1:"/",Link2:"/pricing"}),(0,t.jsx)("div",{className:"pt-[100px]",children:(0,t.jsx)(n.default,{})})]})]})}])},50295,(e,t,r)=>{let a="/pricing";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(81644)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})},48761,e=>{e.v(t=>Promise.all(["static/chunks/11b4n9axunlxx.js"].map(t=>e.l(t))).then(()=>t(93594)))},28805,e=>{e.v(t=>Promise.all(["static/chunks/0htfk2vj7m.9j.js"].map(t=>e.l(t))).then(()=>t(79466)))}]);
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.