1"use strict";(self.webpackChunkfarex=self.webpackChunkfarex||[]).push([[666],{4666:(e,s,l)=>{l.r(s),l.d(s,{default:()=>h});var i=l(2791),c=l(7689),a=l(1087),t=(l(4654),l(14)),n=l(245),d=l(2685),r=l(184);const o=()=>{const[e,s]=(0,i.useState)([]),[l,o]=(0,i.useState)(!1),h=(0,c.s0)(),[x,m]=(0,i.useState)(1),[j,v]=(0,i.useState)(),[p,g]=(0,i.useState)(""),[u,N]=(0,i.useState)(d.b2.sharedTitle),f=4*x,b=f-4;null===e||void 0===e||e.slice(b,f);(0,i.useEffect)((()=>{(async()=>{try{const e=await t.ZP.post("/blogapi/getannouncements");if(200===(null===e||void 0===e?void 0:e.status)&&e.data.response){const s=e.data.response.filter((e=>"announcements"===e.types));v(s)}}catch(e){}})()}),[]);const w=e=>{h(`/announcement-detail?id=${e}`)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"tj-inner-banner",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("h2",{children:"Announcements"})})}),(0,r.jsx)("div",{className:"tj-breadcrumb",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("ul",{className:"breadcrumb-list",children:[(0,r.jsx)("li",{children:(0,r.jsx)(a.rU,{to:"/",children:"Home"})}),(0,r.jsx)("li",{className:"active",children:"Announcements"})]})})}),(0,r.jsx)("section",{className:"vs-blog-wrapper blog-details space-top space-extra-bottom",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:"row gx-40",children:[(0,r.jsx)("div",{className:"col-lg-8 col-sm-8 col-md-8",children:(0,r.jsxs)("div",{className:"container ",children:[(0,r.jsx)("div",{className:"row gx-30 gy-3 ",style:{marginTop:20},children:null===j||void 0===j?void 0:j.map((e=>(0,r.jsx)("div",{className:"col-xl-6 wow fadeInUp blog-container","data-wow-delay":"0.3s",style:{objectFit:"cover",marginTop:20},children:(0,r.jsx)("div",{className:"m-2",style:{paddingLeft:12,paddingRight:12},children:(0,r.jsxs)("div",{className:"vs-blog blog-style1",children:[(0,r.jsx)("img",{src:null!==e&&void 0!==e&&e.image?`https://fimages.farexrides.com/originals/${e.image}`:"path_to_placeholder_image",alt:"Blog",style:{Height:"450px",width:"100%",objectFit:"cover"},onClick:()=>w(e.id),className:"link-btn pointer"}),(0,r.jsx)("h3",{className:"blog-title h-100 border",children:(0,r.jsx)("div",{className:"text-dark link-btn pointer",style:{overflow:"hidden"},onClick:()=>w(e.id),children:null===e||void 0===e?void 0:e.name})}),(0,r.jsxs)("div",{className:"blog-content",children:[(0,r.jsx)("div",{className:"blog-meta",children:(0,r.jsx)("p",{className:"blog-date",children:e.created.split(" ")[0]})}),(0,r.jsx)("p",{className:"blog-text",children:e.short_description}),(0,r.jsxs)("div",{onClick:()=>w(e.id),className:"link-btn pointer",style:{paddingBottom:10},children:["Read More",(0,r.jsx)("i",{className:"far fa-plus"})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",justifyContent:"flex-end"},children:[(0,r.jsxs)("span",{style:{fontSize:16,fontWeight:500},children:["Share:"," "]}),(0,r.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,r.jsx)(n.Dk,{url:`https://bookaride.#.ca/announcement-detail?id=${e.id}`,quote:d.b2.sharedTitle,children:(0,r.jsxs)("svg",{viewBox:"0 0 64 64",width:"32",height:"32",children:[(0,r.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:"#0965FE"}),(0,r.jsx)("path",{d:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z",fill:"white"})]})}),(0,r.jsx)(n.B,{url:`https://bookaride.#.ca/announcement-detail?id=${e.id}`,title:d.b2.sharedTitle,children:(0,r.jsxs)("svg",{viewBox:"0 0 64 64",width:"32",height:"32",children:[(0,r.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:"#000000"}),(0,r.jsx)("path",{d:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z",fill:"white"})]})}),(0,r.jsx)(n.N0,{url:`https://bookaride.#.ca/announcement-detail?id=${e.id}`,title:d.b2.sharedTitle,children:(0,r.jsxs)("svg",{viewBox:"0 0 64 64",width:"32",height:"32",children:[(0,r.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:"#25D366"}),(0,r.jsx)("path",{d:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,
10.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915",fill:"white"})]})}),(0,r.jsx)(n.r2,{url:`https://bookaride.#.ca/announcement-detail?id=${e.id}`,title:d.b2.sharedTitle,children:(0,r.jsxs)("svg",{viewBox:"0 0 64 64",width:"32",height:"32",children:[(0,r.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:"#0077B5"}),(0,r.jsx)("path",{d:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z",fill:"white"})]})})]})]})]})]})})},e.id)))}),(null===j||void 0===j?void 0:j.length)>4&&(0,r.jsxs)("ul",{className:"vs-pagination pointer",children:[(0,r.jsx)("li",{children:(0,r.jsx)("a",{onClick:()=>{x>1&&m(x-1)},children:(0,r.jsx)("i",{className:"fas fa-chevron-left"})})}),Array.from({length:Math.ceil(e.length/4)}).map(((e,s)=>(0,r.jsx)("li",{children:(0,r.jsx)("span",{onClick:()=>{m(s+1)},className:x===s+1?"active":"",children:s+1})},s))),(0,r.jsx)("li",{children:(0,r.jsx)("a",{onClick:()=>{x<e.length/4&&m(x+1)},children:(0,r.jsx)("i",{className:"fas fa-chevron-right"})})})]}),l&&(0,r.jsx)("h3",{className:"text-center text-secondary",children:"Ooops! Blog isnapos;t available."})]})}),(0,r.jsx)("div",{className:"col-lg-4 col-sm-4 col-md-4",style:{marginTop:35},children:(0,r.jsx)("aside",{className:"sidebar-area",children:(0,r.jsxs)("div",{className:"widget",children:[(0,r.jsx)("h3",{className:"widget_title",children:"Recent Announcements"}),(0,r.jsx)("div",{className:"recent-post-wrap",children:null===j||void 0===j?void 0:j.slice(0,4).map((e=>(0,r.jsxs)("div",{className:"recent-post",children:[(0,r.jsx)("div",{className:"media-img",children:(0,r.jsx)("a",{children:(0,r.jsx)("img",{src:null!==e&&void 0!==e&&e.image?`https://fimages.farexrides.com/originals/${e.image}`:"path_to_placeholder_image",alt:"Blog",className:"rounded",style:{maxHeight:"80px",maxWidth:"80px",objectFit:"cover"}})})}),(0,r.jsxs)("div",{className:"media-body2",children:[(0,r.jsx)("div",{className:"recent-post-meta",children:(0,r.jsx)("div",{className:"fw-3 text-success",children:null===e||void 0===e?void 0:e.created.split(" ")[0]})}),(0,r.jsx)("h4",{className:"post-title",children:(0,r.jsx)("a",{className:"text-inherit pointer",onClick:()=>w(e.id),children:null===e||void 0===e?void 0:e.name})})]})]},e.id)))})]})})})]})})})]})},h=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o,{})})},4654:()=>{}}]); 2//# sourceMappingURL=666.49732d1b.chunk.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.