PageSourceSearch

https://thefoodforce.com/js/app.0e9a045f.js

js thefoodforce.com collected 2026-09-24 14:54:10 UTC 388,825 bytes, 1 lines download raw bytes

1(function(e){function t(t){for(var i,a,o=t[0],c=t[1],u=t[2],l=0,d=[];l<o.length;l++)a=o[l],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&d.push(r[a][0]),r[a]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);m&&m(t);while(d.length)d.shift()();return s.push.apply(s,u||[]),n()}function n(){for(var e,t=0;t<s.length;t++){for(var n=s[t],i=!0,a=1;a<n.length;a++){var o=n[a];0!==r[o]&&(i=!1)}i&&(s.splice(t--,1),e=c(c.s=n[0]))}return e}var i={},a={app:0},r={app:0},s=[];function o(e){return c.p+"js/"+({}[e]||e)+"."+{"chunk-0471966a":"ae5c845f","chunk-0867d75f":"7b14bf39","chunk-09cd0b70":"84e9acfd","chunk-0a1eaca9":"71b743a7","chunk-0b52898f":"99f94dc5","chunk-0e072455":"d985da75","chunk-0ffeab9f":"49d20a80","chunk-15aab382":"ce29dc70","chunk-198e3942":"959225c3","chunk-1b543df2":"a44a68b6","chunk-1f16206c":"184abbef","chunk-1f5f2be8":"9ea3cd53","chunk-245db3ed":"c3dd07e3","chunk-248058ce":"3aa06293","chunk-268044d4":"1fd6fa66","chunk-2712fcd6":"596ad7c4","chunk-17c321f4":"17f2b76b","chunk-28a9e288":"d3afe64f","chunk-29757256":"93c1bf1c","chunk-2a9b8bee":"e7d92576","chunk-2aed0630":"855dba55","chunk-2d0a4885":"9b01155e","chunk-2d0b9671":"7d791fec","chunk-2d0bdd44":"1b40a1c3","chunk-2d0be327":"e0915fbc","chunk-2d0c0883":"575c037f","chunk-2d0c8407":"999fc0f3","chunk-2d0df486":"1e4c7f41","chunk-2d0e1b06":"c30c6882","chunk-2d0f0050":"1cf39bfb","chunk-2d0f060d":"de3add7b","chunk-2d0f0814":"fbdfe64a","chunk-2d0f0c5f":"f2fada5d","chunk-2d0f14f4":"140482bc","chunk-2d208e4e":"6d810ceb","chunk-2d2095dd":"0759f131","chunk-2d20fcba":"3740cb33","chunk-2d213925":"c7b674e1","chunk-2d216786":"7d1e9fc0","chunk-2d218418":"c9e39f00","chunk-2d21d14c":"6deb5f10","chunk-2d21e3aa":"4d4330fd","chunk-2d222525":"f8588ae3","chunk-2d228cf2":"f2ff1164","chunk-2d22e146":"b54a1985","chunk-2d2304b6":"27de4a24","chunk-2d230c96":"f1f0f3d9","chunk-3172533a":"b37ecee0","chunk-32cdbffc":"1e99a50c","chunk-34c02632":"c067dc68","chunk-3609acea":"2fe6e0df","chunk-36da2acc":"1e89cb37","chunk-37ff8997":"7d04f6e8","chunk-3b7db6f5":"de9d3ff9","chunk-3bd70db3":"34df139b","chunk-3ec4a7ee":"dba46cba","chunk-3ee4eca5":"6ee51c80","chunk-3f91f690":"a7b5e287","chunk-41729f35":"649a55ad","chunk-41c90a6b":"c762b548","chunk-45636d0e":"d1cd95a7","chunk-45df0daa":"0c9f72ed","chunk-469a106c":"e20c443f","chunk-4960e528":"93948421","chunk-4a868a77":"8a878c6e","chunk-4d93dcb2":"fcf3f46e","chunk-4da36b15":"a1828e74","chunk-4dc9282b":"50cff4f2","chunk-4f3678b7":"603931e1","chunk-529bc570":"bdae5167","chunk-533a1913":"b33e6adb","chunk-55fd9bc5":"4b5a2333","chunk-57598eed":"6ade37e7","chunk-57a83ac0":"a6c5a8dc","chunk-58018476":"2ed2da59","chunk-5b23fdd4":"71979556","chunk-6435f914":"99e07baf","chunk-658c23da":"00bcd26e","chunk-6a4f0712":"807b7c66","chunk-0689fb08":"95bd1778","chunk-077da775":"78db666b","chunk-3974e4e9":"29a71085","chunk-3db590b8":"94521a73","chunk-9f450874":"e9c1d5f1","chunk-6a5dbffb":"480ae1aa","chunk-6ae2b080":"330a284a","chunk-6d44dfd7":"308d91d6","chunk-6d941db0":"5454078b","chunk-6da41528":"d94436d5","chunk-6da41684":"62ca5a97","chunk-741a1e1e":"132efd84","chunk-74499ace":"4dea4225","chunk-75b4285b":"bdc4aba5","chunk-793ec3d8":"37418ba5","chunk-7a234d26":"20f15a3b","chunk-7b63cb48":"8eee3296","chunk-7c838918":"c6b017c9","chunk-7d21e4da":"28c7b697","chunk-7df99a99":"7bfdd3c8","chunk-7edf91cb":"70545f5a","chunk-7f220570":"662f8f81","chunk-882768b0":"d6445f02","chunk-944b6cfe":"25ad7a20","chunk-4461e012":"75881925","chunk-7e41bbbe":"baaa77d4","chunk-972e2b1c":"fdd7cef6","chunk-9f295fda":"f65037cb","chunk-a89acf7c":"1065fc9c","chunk-a92a499c":"d66d886c","chunk-a92d751a":"a8108ed0","chunk-a9543e8c":"e09d399b","chunk-a9591d90":"1a78be4a","chunk-ae124cc0":"8047015e","chunk-b0a3cb42":"ef6f5417","chunk-bd819d48":"c074153a","chunk-c377db64":"715fdb12","chunk-c56372d6":"08ae4226","chunk-c8bcab9a":"0faa7b8b","chunk-d4295b46":"b8f3a676","chunk-d6be8784":"7c78924e","chunk-d75f67a0":"f48b3d92","chunk-dada39de":"627b754e","chunk-dae3f45e":"148fa69d","chunk-dd32cf7c":"c10ce62b","chunk-de1eb938":"04871856","chunk-dfa908b0":"70d7fc49","chunk-dffd094a":"2266b84a","chunk-ea2d3954":"71adf066","chunk-edf65a74":"73eeebeb","chunk-ee3ffd02":"51cd5a19","chunk-ef64a402":"d367975e","chunk-efc7162e":"5f71fa6e","chunk-f71781cc":"21c927bd","chunk-f8c074fc":"fcf551ea","chunk-2d0c4a65":"595fd984","chunk-2d21f28e":"2be4e4d9","chunk-2d22dbb6":"bb2baac7","chunk-2d0da519":"1500ac0e","chunk-2d0a4d7c":"d7cfbe4a","chunk-2d0cc79b":"87144b52","chunk-2d0d0f6c":"1611f202","chunk-2d224c4a":"3e2d5ad9","chunk-2d230089":"abff01d0"}[e]+".js"}function c(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={"chunk-0b52898f":1,"chunk-15aab382":1,"chunk-1b543df2":1,"chunk-1f5f2be8":1,"chunk-248058ce":1,"chunk-2712fcd6":1,"chunk-17c321f4":1,"chunk-34c02632":1,"chunk-3ec4a7ee":1,"chunk-3f91f
1690":1,"chunk-4dc9282b":1,"chunk-0689fb08":1,"chunk-077da775":1,"chunk-3974e4e9":1,"chunk-3db590b8":1,"chunk-9f450874":1,"chunk-741a1e1e":1,"chunk-75b4285b":1,"chunk-7b63cb48":1,"chunk-7df99a99":1,"chunk-7edf91cb":1,"chunk-7f220570":1,"chunk-944b6cfe":1,"chunk-4461e012":1,"chunk-7e41bbbe":1,"chunk-a89acf7c":1,"chunk-b0a3cb42":1,"chunk-c56372d6":1,"chunk-d4295b46":1,"chunk-d75f67a0":1,"chunk-dfa908b0":1,"chunk-ee3ffd02":1,"chunk-ef64a402":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var i="css/"+({}[e]||e)+"."+{"chunk-0471966a":"31d6cfe0","chunk-0867d75f":"31d6cfe0","chunk-09cd0b70":"31d6cfe0","chunk-0a1eaca9":"31d6cfe0","chunk-0b52898f":"3719c493","chunk-0e072455":"31d6cfe0","chunk-0ffeab9f":"31d6cfe0","chunk-15aab382":"b0c9f8f8","chunk-198e3942":"31d6cfe0","chunk-1b543df2":"58170cc4","chunk-1f16206c":"31d6cfe0","chunk-1f5f2be8":"84d1f157","chunk-245db3ed":"31d6cfe0","chunk-248058ce":"c115bbbb","chunk-268044d4":"31d6cfe0","chunk-2712fcd6":"6fad4fe4","chunk-17c321f4":"6eb093c7","chunk-28a9e288":"31d6cfe0","chunk-29757256":"31d6cfe0","chunk-2a9b8bee":"31d6cfe0","chunk-2aed0630":"31d6cfe0","chunk-2d0a4885":"31d6cfe0","chunk-2d0b9671":"31d6cfe0","chunk-2d0bdd44":"31d6cfe0","chunk-2d0be327":"31d6cfe0","chunk-2d0c0883":"31d6cfe0","chunk-2d0c8407":"31d6cfe0","chunk-2d0df486":"31d6cfe0","chunk-2d0e1b06":"31d6cfe0","chunk-2d0f0050":"31d6cfe0","chunk-2d0f060d":"31d6cfe0","chunk-2d0f0814":"31d6cfe0","chunk-2d0f0c5f":"31d6cfe0","chunk-2d0f14f4":"31d6cfe0","chunk-2d208e4e":"31d6cfe0","chunk-2d2095dd":"31d6cfe0","chunk-2d20fcba":"31d6cfe0","chunk-2d213925":"31d6cfe0","chunk-2d216786":"31d6cfe0","chunk-2d218418":"31d6cfe0","chunk-2d21d14c":"31d6cfe0","chunk-2d21e3aa":"31d6cfe0","chunk-2d222525":"31d6cfe0","chunk-2d228cf2":"31d6cfe0","chunk-2d22e146":"31d6cfe0","chunk-2d2304b6":"31d6cfe0","chunk-2d230c96":"31d6cfe0","chunk-3172533a":"31d6cfe0","chunk-32cdbffc":"31d6cfe0","chunk-34c02632":"26c134f4","chunk-3609acea":"31d6cfe0","chunk-36da2acc":"31d6cfe0","chunk-37ff8997":"31d6cfe0","chunk-3b7db6f5":"31d6cfe0","chunk-3bd70db3":"31d6cfe0","chunk-3ec4a7ee":"b0c9f8f8","chunk-3ee4eca5":"31d6cfe0","chunk-3f91f690":"53ba7b2b","chunk-41729f35":"31d6cfe0","chunk-41c90a6b":"31d6cfe0","chunk-45636d0e":"31d6cfe0","chunk-45df0daa":"31d6cfe0","chunk-469a106c":"31d6cfe0","chunk-4960e528":"31d6cfe0","chunk-4a868a77":"31d6cfe0","chunk-4d93dcb2":"31d6cfe0","chunk-4da36b15":"31d6cfe0","chunk-4dc9282b":"de0de4c1","chunk-4f3678b7":"31d6cfe0","chunk-529bc570":"31d6cfe0","chunk-533a1913":"31d6cfe0","chunk-55fd9bc5":"31d6cfe0","chunk-57598eed":"31d6cfe0","chunk-57a83ac0":"31d6cfe0","chunk-58018476":"31d6cfe0","chunk-5b23fdd4":"31d6cfe0","chunk-6435f914":"31d6cfe0","chunk-658c23da":"31d6cfe0","chunk-6a4f0712":"31d6cfe0","chunk-0689fb08":"1ecacb1e","chunk-077da775":"8e5748dd","chunk-3974e4e9":"b42cf9b8","chunk-3db590b8":"9caa34da","chunk-9f450874":"2f448409","chunk-6a5dbffb":"31d6cfe0","chunk-6ae2b080":"31d6cfe0","chunk-6d44dfd7":"31d6cfe0","chunk-6d941db0":"31d6cfe0","chunk-6da41528":"31d6cfe0","chunk-6da41684":"31d6cfe0","chunk-741a1e1e":"57af5139","chunk-74499ace":"31d6cfe0","chunk-75b4285b":"ddb0eafe","chunk-793ec3d8":"31d6cfe0","chunk-7a234d26":"31d6cfe0","chunk-7b63cb48":"485b0f04","chunk-7c838918":"31d6cfe0","chunk-7d21e4da":"31d6cfe0","chunk-7df99a99":"69935df5","chunk-7edf91cb":"cb446196","chunk-7f220570":"a293a01a","chunk-882768b0":"31d6cfe0","chunk-944b6cfe":"17ab2599","chunk-4461e012":"37dcd15d","chunk-7e41bbbe":"0e85e166","chunk-972e2b1c":"31d6cfe0","chunk-9f295fda":"31d6cfe0","chunk-a89acf7c":"a33b9f0c","chunk-a92a499c":"31d6cfe0","chunk-a92d751a":"31d6cfe0","chunk-a9543e8c":"31d6cfe0","chunk-a9591d90":"31d6cfe0","chunk-ae124cc0":"31d6cfe0","chunk-b0a3cb42":"c94b300e","chunk-bd819d48":"31d6cfe0","chunk-c377db64":"31d6cfe0","chunk-c56372d6":"f95a5d7f","chunk-c8bcab9a":"31d6cfe0","chunk-d4295b46":"0fe51c97","chunk-d6be8784":"31d6cfe0","chunk-d75f67a0":"542eab6f","chunk-dada39de":"31d6cfe0","chunk-dae3f45e":"31d6cfe0","chunk-dd32cf7c":"31d6cfe0","chunk-de1eb938":"31d6cfe0","chunk-dfa908b0":"db38d0c8","chunk-dffd094a":"31d6cfe0","chunk-ea2d3954":"31d6cfe0","chunk-edf65a74":"31d6cfe0","chunk-ee3ffd02":"54e451de","chunk-ef64a402":"5a718be6","chunk-efc7162e":"31d6cfe0","chunk-f71781cc":"31d6cfe0","chunk-f8c074fc":"31d6cfe0","chunk-2d0c4a65":"31d6cfe0","chunk-2d21f28e":"31d6cfe0","chunk-2d22dbb6":"31d6cfe0","chunk-2d0da519":"31d6cfe0","chunk-2d0a4d7c":"31d6cfe0","chunk-2d0cc79b":"31d6cfe0","chunk-2d0d0f6c":"31d6cfe0","chunk-2d224c4a":"31d6cfe0","chunk-2d230089":"31d6cfe0"}[e]+".css",r=c.p+i,s=document.getElementsByTagName("link"),o=0;o<s.length;o++){var u=s[o],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===i||l===r))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){u=d[o],l=u.getAttribute("data-href");if(l===i||l===r)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var i=t&&t.target&&t.target.src||r,s=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");s.code="CSS_CHUNK_LOAD_FAILED",s.request=i,delete a[e],m.parentNode.removeChild(m),n(s)},m.href=r;var f=document.getElementsByTagName("head")[0];f.appendChild(m)})).then((function(){a[e]=0})));var i=r[e];if(0!==i)if(i)t.push(i[2]);else{var s=new Promise((function(t,n){i=r[e]=[t,n]}));t.push(i[2]=s);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,c.nc&&l.setAttribute("nonce",c.nc),l.src=o(e);var d=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(m);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",d.name="ChunkLoadError",d.type=i,d.request=a,n[1](d)}r[e]=void 0}};var m=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},c.m=e,c.c=i,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)c.d(n,i,function(t){return e[t]}.bind(null,i));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var m=l;s.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"000d":function(e,t,n){"use strict";n("90ae")},"0060":function(e,t,n){e.exports=n.p+"img/filters-fr.1a3a4da6.png"},"0061":function(e,t,n){e.exports=n.p+"img/gray-man-fly-up.c844c8ec.png"},"0097":function(e,t,n){},"00de":function(e,t,n){e.exports=n.p+"img/burger.c258a6df.png"},"0122":function(e,t,n){e.exports=n.p+"img/order.26f68bb9.png"},"0156":function(e,t,n){e.exports=n.p+"img/asian.994c9410.jpg"},"0215":function(e,t,n){},"02153":function(e,t,n){e.exports=n.p+"img/image-missing.9f12443c.png"},"027f":function(e,t,n){},"03ae":function(e,t,n){e.exports=n.p+"img/me.a7c25164.png"},"04ca":function(e,t,n){e.exports=n.p+"img/chef.8e291a2a.png"},"054b":function(e,t,n){e.exports=n.p+"img/sugar-free.0d6bf93f.png"},"0582":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("c7eb"),a=n("1da1"),r=n("d4ec"),s=n("bee2"),o=(n("d3b7"),n("69af")),c=function(){function e(){Object(r["a"])(this,e)}return Object(s["a"])(e,null,[{key:"getCurrentPosition",value:function(){var e=Object(a["a"])(Object(i["a"])().mark((function e(){var t,n,a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,o["a"].getCurrentPosition();case 1:t=e.sent,e.next=7;break;case 2:return e.prev=2,e["catch"](0),e.prev=3,console.error("User did not enable geolocation"),e.next=4,fetch("https://geolocation-db.com/json");case 4:return n=e.sent,e.next=5,n.json();case 5:a=e.sent,t={coords:{latitude:a.latitude,longitude:a.longitude}},e.next=7;break;case 6:e.prev=6,e["catch"](3),t={coords:{latitude:45.50884,longitude:-73.58781}};case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,null,[[0,2],[3,6]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"getCurrentLocation",value:function(){var e=Object(a["a"])(Object(i["a"])().mark((function e(){var t,n,a,r,s;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,this.getCurrentPosition();case 1:return t=e.sent,n=new google.maps.Geocoder,e.next=2,n.geocode({location:{lat:t.coords.latitude,lng:t.coords.longitude}});case 2:return a=e.sent,r=a.results,e.abrupt("return",r.shift());case 3:return e.prev=3,s=e["catch"](0),console.error(s),e.abrupt("return",null);case 4:case"end":return e.stop()}}),e,this,[[0,3]])})));function t(){return e.apply(this,arguments)}return t}()}])}()},"05e1":function(e,t,n){e.exports=n.p+"img/sushis.3b9485d4.png"},"06c57":function(e,t,n){},"085a":function(e,t,n){e.exports=n.p+"img/le_renoir_montreal_le_cuisinomane.e45a3fcf.jpg"},"0863":function(e,t,n){e.exports=n.p+"img/girl-happy.3fab9447.png"},"09a1":function(e,t,n){},"0a6d":function(e,t,n){e.exports=n.p+"img/logo-portal.5d2b5fd1.png"},"0ac3":function(e,t,n){e.exports=n.p+"img/icon.a816f634.png"},"0b0e":function(e,t,n){e.exports=n.p+"img/explore-en.a6a4f5a7.png"},"0b3a":function(e,t,n){e.exports=n.p+"img/client-double-pizza.8e0cc735.png"},"0cc1":function(e,t,n){e.exports=n.p+"img/default-bg-trends.4ffbf635.jpg"},"0cc6":function(e,t,n){e.exports=n.p+"img/logo-welcome-fr.a9b88bff.png"},"0cf2":function(e,t,n){e.exports=n.p+"img/cuisinomane-avatar-small.81d695fc.jpg"},"0d2e":function(e,t,n){},"0d78":function(e,t,n){},"0e14":function(e,t,n){"use strict";var i=n("53ca"),a=n("d4ec"),r=n("bee2"),s=(n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),function(){function e(){Object(a["a"])(this,e)}return Object(r["a"])(e,null,[{key:"testRequired",value:function(e){return!isStringEmpty(e)}},{key:"testNumber",value:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(!a||!isStringEmpty(e))&&(!isNaN(parseFloat(e))&&("number"===Object(i["a"])(t)&&"number"===Object(i["a"])(n)?t<=e&&e<=n:"number"===Object(i["a"])(t)?t<=e:"number"!==Object(i["a"])(n)||e<=n))}},{key:"testName",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^[a-zA-ZÀ-ÿ-. ]*$/i.test(e))}},{key:"testAlphaNumerical",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^[0-9a-zA-ZÀ-ÿ-. ]*$/i.test(e))}},{key:"testPhoneNumber",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\s\./0-9]*$/g.test(e))}},{key:"testPassword",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,32}$/.test(e))}},{key:"testEmail",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];
1return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/.test(e))}},{key:"testURL",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^(http(s):\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e))}},{key:"testPermaLink",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e))}},{key:"testMacAddress",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(e))}},{key:"testIpAddress",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/.test(e))}},{key:"testPostalCode",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&isStringEmpty(e))return!1;if(isStringEmpty(e))return!0;var n="ca";if(5===e.length&&(n="us"),"us"===n){var i=new RegExp("^\\d{5}(-{0,1}\\d{4})?$");if(i.test(e.toString()))return!0}if("ca"===n){var a=new RegExp(/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i);if(a.test(e.toString()))return!0}return!1}},{key:"testText",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(!t||!isStringEmpty(e))&&(!!isStringEmpty(e)||!/(&nbsp;|<([^>]+)>)/gi.test(e))}},{key:"testTranslatedText",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=isStringEmpty(e)||e&&isStringEmpty(e.en)&&isStringEmpty(e.fr);return!t||!n||(console.log(e),!1)}}])}());t["a"]=s},"0e48":function(e,t,n){"use strict";n("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"menu-item",class:{"out-of-stock":e.outOfStock}},[t("div",{staticClass:"image-container"},[e.isDefaultImage||!e.item.image_url?t("div",{staticClass:"img-placeholder"},[e._v(e._s(e._f("tr")(e.item.name)))]):t("e-img",{staticClass:"image",attrs:{src:e.item.image_url,"use-thumbnail":"",lazy:"","portrait-mode":"portrait"===e.item.orientation}})],1),t("div",{staticClass:"content"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-ellipsis"},[e._v(e._s(e.item.name))])]),e.item.price?t("div",{staticClass:"price"},[e._v(e._s(e._f("priceShort")(e.item.price)))]):e._e(),e.liked?t("div",{staticClass:"like"},[t("i",{staticClass:"fas fa-heart text-pink"})]):e._e()])},a=[],r=(n("caad"),n("2532"),{name:"menu-item",props:{item:{type:Object,required:!0},restaurantSelected:{type:Object},outOfStock:{type:Boolean,default:!1}},computed:{isDefaultImage:function(){return this.item.image_url&&this.item.image_url.includes("/food/items/default/image")},getNameFirstWord:function(){var e=this.tr(this.item.name);return e?e.split(" ")[0]:e},liked:function(){return this.user&&this.user.favorite_items.includes(this.item.id)}}}),s=r,o=(n("1d08"),n("2877")),c=Object(o["a"])(s,i,a,!1,null,null,null);t["a"]=c.exports},"0e493":function(e,t,n){e.exports=n.p+"img/burger.c8f85cd4.png"},1:function(e,t){},1032:function(e,t,n){e.exports=n.p+"img/sardines.ceeb5162.png"},1037:function(e,t,n){e.exports=n.p+"img/andy-bold.7dcf6bef.png"},"103b":function(e,t,n){e.exports=n.p+"img/corn.ab76264d.png"},"103e":function(e,t,n){e.exports=n.p+"img/salad.a7cb021a.png"},1045:function(e,t,n){e.exports=n.p+"img/background2.41a87477.jpg"},"10a4":function(e,t,n){},"10b4":function(e,t,n){e.exports=n.p+"img/swipe_icon.1901f9d1.png"},"10bb":function(e,t,n){e.exports=n.p+"img/cool.6d86b932.png"},"118a":function(e,t,n){e.exports=n.p+"img/salmon.9b49ca29.png"},1242:function(e,t,n){"use strict";n("511a")},1277:function(e,t,n){e.exports=n.p+"img/restaurants.59299231.jpg"},1289:function(e,t,n){"use strict";n("778d")},1389:function(e,t,n){e.exports=n.p+"img/chance.fe2b4ab8.png"},1395:function(e,t,n){e.exports=n.p+"img/menu-fr.947dc211.png"},"13ae":function(e,t,n){e.exports=n.p+"img/angry.59c51e0a.png"},"144d":function(e,t,n){e.exports=n.p+"img/cuisinomane-avatar.f0817fa5.png"},"145f":function(e,t,n){e.exports=n.p+"img/segoe-script.043ad170.webp"},"147e":function(e,t,n){e.exports=n.p+"img/icon.0c505184.png"},"149e":function(e,t,n){},"14a0":function(e,t,n){e.exports=n.p+"img/milk.93ffecc0.png"},"15a0":function(e,t,n){e.exports=n.p+"img/hamburger-25.68436032.png"},"15bf":function(e,t,n){e.exports=n.p+"img/shop.d2650b24.png"},1608:function(e,t,n){"use strict";n("bee9")},"162d":function(e,t,n){e.exports=n.p+"img/Assistant.280e462d.jpg"},"16b9":function(e,t,n){},"16f5":function(e,t,n){},"173f":function(e,t,n){e.exports=n.p+"img/spaghetti.7ffafa1f.png"},1771:function(e,t,n){var i={"./fonts/SourceSansPro-ExtraLight.ttf":"3a7d","./fonts/SourceSansPro-Light.ttf":"7cd1","./fonts/SourceSansPro-Regular.ttf":"8f14","./img/avatars/
1assistant.jpg":"6ea5","./img/avatars/default.png":"bab5","./img/backgrounds/background-mobile.jpg":"cbc8","./img/backgrounds/background-mobile.webp":"4a08","./img/backgrounds/background.jpg":"8a0d","./img/backgrounds/background.webp":"4c7d","./img/backgrounds/default-bg-trends.jpg":"0cc1","./img/backgrounds/default-bg-trends.webp":"ebfb","./img/backgrounds/food-banner-3.jpg":"817f","./img/backgrounds/food-banner-5.jpg":"e26a","./img/backgrounds/food-banner.jpg":"f948","./img/backgrounds/food-pattern.jpg":"af7e","./img/backgrounds/website-home.jpg":"58b4","./img/backgrounds/website-home.webp":"a47b","./img/branding/icon.png":"147e","./img/branding/logo-portal.png":"0a6d","./img/branding/logo-text.png":"53e1","./img/branding/logo-welcome-en.png":"fc13","./img/branding/logo-welcome-fr.png":"0cc6","./img/clients/client-arouch.png":"91ae","./img/clients/client-double-pizza.png":"0b3a","./img/clients/client-koryo.png":"3f89","./img/clients/client-mc-cafe.png":"6e5b","./img/clients/client-mc-donald.png":"8145","./img/clients/client-mty.png":"528a","./img/clients/client-tcby.png":"3753","./img/clients/client-thai-express.png":"7321","./img/clients/client-van-houtte.png":"9f8a","./img/flags/flag-canada.svg":"b077","./img/flags/flag-france.svg":"5c89","./img/flags/flag-united-kingdom.svg":"7667","./img/fonts/andy-bold.png":"1037","./img/fonts/andy-bold.webp":"cb9b","./img/fonts/segoe-script.png":"4274","./img/fonts/segoe-script.webp":"145f","./img/food-courts/map-alexis-nihon.jpg":"af65","./img/heros/girl-fight.png":"c095","./img/heros/girl-happy.png":"0863","./img/heros/gray-girl-happy.png":"3f91","./img/heros/gray-man-back.png":"2879","./img/heros/gray-man-face.png":"df68","./img/heros/gray-man-fight.png":"9ee0","./img/heros/gray-man-fly-up.png":"0061","./img/heros/gray-man-fly.png":"c26b","./img/heros/gray-man-standing.png":"d250","./img/heros/green-girl-fly.png":"4b4d","./img/heros/green-girl-pose.png":"8e36","./img/heros/green-man-back.png":"d2c5","./img/heros/green-man-fight.png":"a3eb","./img/heros/green-man-fly.png":"4fd8","./img/heros/green-man-standing.png":"204d","./img/heros/man-floor.png":"1fcb","./img/heros/man-heroic-pose.png":"d68d","./img/heros/man-muscles.png":"42bf","./img/heros/orange-girl-fly.png":"3d14","./img/heros/other-man-fly.png":"70dd","./img/heros/pink-girl-pose.png":"19b6","./img/heros/red-girl-fly.png":"b714","./img/icons/NativeScript-Vue.png":"5baf","./img/icons/agenda.png":"2d50","./img/icons/analytics.png":"34eb","./img/icons/angry.png":"13ae","./img/icons/appetizer.png":"20af","./img/icons/apple.png":"c753","./img/icons/assistant/beer-25.png":"e855","./img/icons/assistant/beer.png":"de45","./img/icons/assistant/burger-25.png":"b7c7","./img/icons/assistant/burger.png":"00de","./img/icons/assistant/cake-25.png":"3d95","./img/icons/assistant/cake.png":"b157","./img/icons/assistant/champagne-glasses-25.png":"98c7","./img/icons/assistant/champagne-glasses.png":"6c9d","./img/icons/assistant/cheers-25.png":"26af","./img/icons/assistant/cheers.png":"890d","./img/icons/assistant/cocktail-25.png":"b6d7","./img/icons/assistant/cocktail.png":"9571","./img/icons/assistant/donut-25.png":"e50e","./img/icons/assistant/donut.png":"8e85","./img/icons/assistant/hamburger-25.png":"15a0","./img/icons/assistant/hamburger.png":"9d0b","./img/icons/assistant/ice-cream-2-25.png":"4cbb","./img/icons/assistant/ice-cream-2.png":"2c6b","./img/icons/assistant/ice-cream-25.png":"6575","./img/icons/assistant/ice-cream.png":"26ec","./img/icons/assistant/iced-coffee-25.png":"4a73","./img/icons/assistant/iced-coffee.png":"8af8","./img/icons/assistant/pizza-25.png":"68fb","./img/icons/assistant/pizza.png":"7062","./img/icons/assistant/ramen-25.png":"d910","./img/icons/assistant/ramen.png":"3f0a","./img/icons/assistant/salad-25.png":"8bca","./img/icons/assistant/salad.png":"85d1","./img/icons/assistant/sandwich-25.png":"3f36","./img/icons/assistant/sandwich.png":"e008","./img/icons/assistant/sushi-25.png":"f60d","./img/icons/assistant/sushi.png":"d7d1","./img/icons/assistant/wine-25.png":"e28b","./img/icons/assistant/wine.png":"cea3","./img/icons/award-25.png":"73b1","./img/icons/award.png":"2649","./img/icons/background2.jpg":"1045","./img/icons/badge.png":"7186","./img/icons/balloons.png":"df96","./img/icons/bbq.png":"5e40","./img/icons/beer.png":"8eed","./img/icons/book-love.png":"78bd","./img/icons/box.svg":"9f47","./img/icons/bread.png":"bc52","./img/icons/breakfast.png":"1898","./img/icons/broccoli.png":"b281","./img/icons/brocolli.png":"b7d7","./img/icons/burger.png":"0e493","./img/icons/burrito.png":"faf5","./img/icons/cafe.png":"9976","./img/icons/cake.png":"57b94","./img/icons/calendar-food-25.png":"3c48","./img/icons/calendar-food.png":"683c","./img/icons/calendar.png":"c0b0","./img/icons/calm.png":"a87d","./img/icons/camera.png":"ca5f","./img/icons/canada.png":"bcba","./img/icons/car.svg":"cca8","./img/icons/carrot.png":"e4ac","./img/icons/cart.png":"ee4d","./img/icons/champagne.png":"6780","./img/icons/champain.png":"35d8","./img/icons/chance.png":"1389","./img/icons/cheese.png":"95be","./img/icons/chef.png":"04ca","./img/icons/chili_pepper.png":"934f","./img/icons/cholesterol.png":"87ad","./img/icons/classic.png":"e04c","./img/icons/cocktail.png":"f213","./img/icons/coffee.png":"4766","./img/icons/coffee_machine.png":"913b","./img/icons/coffeecup.png":"63ea","./img/icons/cola.png":"bea3","./img/icons/comment.png":"846a","./img/icons/compass.png":"390a","./img/icons/confident.png":"78398","./img/icons/cookie.png":"61cc","./img/icons/cool.png":"10bb","./img/icons/corn.png":"103b","./img/icons/croissant.png":"ee47","./img/icons/cupcake.png":"5040","./img/icons/delivery.png":"48b3","./img/icons/diamond.png":"e468","./img/icons/diet.png":"84f1","./img/icons/digital-signage.png":"9214","./img/icons/dining-table.png":"5862","./img/icons/discount.png":"cf85","./img/icons/dish.png":"4333","./img/icons/dollar.png":"2004","./img/icons/dollars2.png":"6fbd","./img/icons/dollars3.png":"951a","./img/icons/dollars4.png":"776b","./img/icons/donut.png":"f73d","./img/icons/drink.png":"ce25","./img/icons/egg.png":"68f1","./img/icons/fastfood.png":"2894","./img/icons/feedback.png":"6c1e","./img/icons/food-delivery.png":"7ca1","./img/icons/food-stand.png":"4d35","./img/icons/food-tray-25.png":"17dc","./img/icons/food-tray.png":"2d7a","./img/icons/frenchfries.png":"3c00","./img/icons/fried.png":"cf2f","./img/icons/fries.png":"8704","./img/icons/gift.png":"4d11","./img/icons/gluten.png":"dc92","./img/icons/glutenfree.png":"8a30","./img/icons/google.jpg":"5d11","./img/icons/groceries.png":"9a42","./img/icons/grocery-bag-25.png":"dc1c","./img/icons/grocery-bag.png":"7e3f","./img/icons/guide.png":"fc42","./img/icons/halal.png":"8752","./img/icons/happy.png":"affe","./img/icons/heart.png":"cb4e","./img/icons/hot_pepper.png":"cb0f","./img/icons/icon.png":"0ac3","./img/icons/iconback.png":"af24","./img/icons/iconback_white.png":"3174","./img/icons/image-missing.png":"02153","./img/icons/info-25.png":"3847","./img/icons/info.png":"8720","./img/icons/information.png":"a5c9","./img/icons/kiosk.png":"c44d","./img/icons/kosher.png":"de22","./img/icons/like.png":"4116","./img/icons/logo.png":"b754","./img/icons/map.png":"a592","./img/icons/martini.png":"2c7e","./img/icons/me.png":"03ae","./img/icons/menu.png":"3dc5","./img/icons/milk.png":"14a0","./img/icons/new-curbside-pickup.png":"b36a","./img/icons/new-curbside-pickup.webp":"f68b","./img/icons/new-delivery.png":"efab","./img/icons/new-delivery.webp":"5cd8","./img/icons/new-dine-in.png":"3cf1","./img/icons/new-dine-in.webp":"23ce","./img/icons/new-drive-through.png":"e9e1","./img/icons/new-drive-through.webp":"d07d","./img/icons/new-takeout.png":"33f5","./img/icons/new-takeout.webp":"f3fc","./img/icons/no-comment-yet.png":"8a82","./img/icons/no-image.jpg":"a874","./img/icons/no-photo.png":"9f0f","./img/icons/nutrition.png":"956a","./img/icons/order.png":"0122","./img/icons/pancakes.png":"2200","./img/icons/pasta.png":"3958","./img/icons/phone-validation.png":"da88","./img/icons/pickup.png":"e71b","./img/icons/plate-egg.png":"f13d","./img/icons/plate-fish.png":"da38","./img/icons/profile.png":"f654","./img/icons/profits.png":"7a35","./img/icons/promo-code.png":"d1db","./img/icons/purse.png":"3d84","./img/icons/question.png":"d517","./img/icons/refund.png":"71bd","./img/icons/restaurant-placeholder.png":"c711","./img/icons/restaurant.png":"3550","./img/icons/restr
1ictions/alcohol-free.png":"9eaf","./img/icons/restrictions/egg-free.png":"f951","./img/icons/restrictions/gluten-free.png":"25a0","./img/icons/restrictions/halal.png":"e916","./img/icons/restrictions/kosher.png":"5e7f","./img/icons/restrictions/lactose-free.png":"ed56","./img/icons/restrictions/no-meat.png":"2c27","./img/icons/restrictions/not-spicy.png":"e08e","./img/icons/restrictions/nut-free.png":"af44","./img/icons/restrictions/peanut-free.png":"df55","./img/icons/restrictions/seafood-free.png":"6e2a","./img/icons/restrictions/sugar-free.png":"054b","./img/icons/restrictions/trans-free.png":"9bcf","./img/icons/restrictions/vegetarian.png":"f036","./img/icons/sad.png":"2dde","./img/icons/salad.png":"103e","./img/icons/salad_light.png":"7606","./img/icons/salmon.png":"118a","./img/icons/salt.png":"cdd0","./img/icons/sardines.png":"1032","./img/icons/search.png":"f1a4","./img/icons/selected.png":"d62e","./img/icons/settings.png":"7188","./img/icons/shrimp.png":"f3b5","./img/icons/sleeping.png":"479b","./img/icons/smile.png":"1d5b","./img/icons/spaghetti.png":"173f","./img/icons/spicy.png":"51ab","./img/icons/star.png":"6e5d","./img/icons/steak.png":"c8d7","./img/icons/student.png":"7cfa","./img/icons/sugar.png":"c4f8","./img/icons/sushi.png":"dc61","./img/icons/sushis.png":"05e1","./img/icons/swipe_checked.png":"b694","./img/icons/swipe_icon.png":"10b4","./img/icons/swipe_unchecked.png":"3063","./img/icons/table.png":"6fbe","./img/icons/take-out-2.png":"2dfa","./img/icons/take-out.png":"e54d","./img/icons/tea.png":"d580","./img/icons/teacup.png":"f1ab","./img/icons/temperature.png":"bea0","./img/icons/thinking.png":"ca849","./img/icons/thumbs.png":"2458","./img/icons/thumbs_up.png":"7620","./img/icons/time-breakfast.png":"5416","./img/icons/time-day.png":"98c9","./img/icons/time-night.png":"92a6","./img/icons/tortilla.png":"c9ff","./img/icons/turkey.png":"cf8e","./img/icons/vegan.png":"d5801","./img/icons/vegetables.png":"dd56","./img/icons/vue_icon.png":"b111","./img/icons/waffles.png":"2ab4","./img/icons/waiter.png":"5059","./img/icons/water.png":"a420","./img/icons/wine.png":"e529","./img/icons/yingyang.png":"6d6c","./img/menu/Assistant.jpg":"162d","./img/menu/asian.jpg":"0156","./img/menu/burgers.jpg":"270b","./img/menu/cash-register.png":"c8f7","./img/menu/dish.png":"5e89","./img/menu/eat.png":"d09c","./img/menu/heart.png":"48dd","./img/menu/ice-cream.jpg":"a708","./img/menu/idea.png":"2d00","./img/menu/list.png":"b43c","./img/menu/more.png":"29f5","./img/menu/recommandations.jpg":"e771","./img/menu/restaurant.jpg":"b456","./img/menu/restaurants.jpg":"1277","./img/menu/search.png":"8004","./img/menu/shop.png":"15bf","./img/menu/spoon.png":"e4a6","./img/menu/user.png":"d536","./img/qr-codes/starbucks-menu.png":"f075","./img/screenshots/explore-en.png":"0b0e","./img/screenshots/explore-en.webp":"e168","./img/screenshots/explore-fr.png":"7012","./img/screenshots/explore-fr.webp":"cc5e","./img/screenshots/filters-fr.png":"0060","./img/screenshots/menu-fr.png":"1395","./img/screenshots/preferences-en.png":"5f37","./img/screenshots/social-trends-en.png":"c851","./img/screenshots/social-trends-en.webp":"4bd5","./img/screenshots/social-trends-fr.png":"8816","./img/screenshots/social-trends-fr.webp":"ebaa","./img/trends/cuisinomane-avatar-hd.jpg":"49fd","./img/trends/cuisinomane-avatar-small.jpg":"0cf2","./img/trends/cuisinomane-avatar.png":"144d","./img/trends/cuisinomane-logo.png":"9548","./img/trends/le_renoir_montreal_le_cuisinomane.jpg":"085a","./style/alerts.scss":"9435","./style/android-fixes.scss":"7068","./style/animations.scss":"52d9","./style/auto-complete.scss":"7c2a","./style/backgrounds.scss":"7295","./style/badges.scss":"16f5","./style/bootstrap-theme.scss":"5abd","./style/buttons.scss":"16b9","./style/calendar.scss":"aca3","./style/cards.scss":"ca2f","./style/chrome.scss":"89b2","./style/context-menu.scss":"1e91","./style/cursors.scss":"ab4a","./style/dropdown-menu.scss":"f4c5","./style/forms.scss":"f7b0","./style/global.scss":"2d3f","./style/input-groups.scss":"96652","./style/inputs.scss":"a794","./style/ionic.scss":"4a12","./style/layout.scss":"55ad","./style/list-group.scss":"373d","./style/mobiles.scss":"b63f","./style/modals.scss":"09a1","./style/navbar.scss":"4edb","./style/popovers.scss":"1f84","./style/screenshot-mode.scss":"b4f6","./style/sidebar.scss":"62ff","./style/tables.scss":"2cfe","./style/tabs.scss":"765c","./style/texts.scss":"9ff8","./style/titles.scss":"8921","./style/toasts.scss":"aa19","./style/transitions.scss":"5bb2","./style/variables.scss":"25eb","./style/week-agenda.scss":"7f50","./style/welcome-page.scss":"0097"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="1771"},"17dc":function(e,t,n){e.exports=n.p+"img/food-tray-25.e1b05117.png"},1898:function(e,t,n){e.exports=n.p+"img/breakfast.0b63f171.png"},1931:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("d4ec"),a=n("bee2"),r=n("ade3"),s=(n("99af"),n("b0c0"),n("c1df")),o=n.n(s),c=n("b86e"),u=function(){function e(){Object(i["a"])(this,e)}return Object(a["a"])(e,null,[{key:"getOrderMode",value:function(e){return this.getOrderModeDetails(e).name}},{key:"getOrderModeInstructions",value:function(e,t){return this.getOrderModeDetails(e,t).instructions}},{key:"getOrderModeDetails",value:function(e,t){var n={};switch(e){case"dine_in":n={name:"On Site|Sur place",instructions:"Service at the table or the terrace|Service à table ou en terrasse",icon:"https://eyeinlivestorage.blob.core.windows.net/public/food-for
1ce/order-modes/dine_in.png",svg:"fa-store-alt"};break;case"delivery":n={name:"Delivery|Livraison",instructions:t?"You will be delivered at ".concat(t,"|Vous serez livré à ").concat(t):"You will be delivered at your address|Vous serez livré à votre adresse",icon:"https://eyeinlivestorage.blob.core.windows.net/public/food-force/order-modes/delivery.png",svg:"fa-truck"};break;case"take_out":n={name:"Takeout|Pour emporter",instructions:"You will have to pickup your order at the restaurant.|Vous devrez venir chercher votre commande au restaurant.",icon:"https://eyeinlivestorage.blob.core.windows.net/public/food-force/order-modes/take_out.png",svg:"fa-person-carry-box"};break;case"curbside":n={name:"Curbside|Ramassage",instructions:"Call us when you are near the restaurant so we can deliver your order at your car.|Appelez-nous quand vous êtes proches du restaurant, pour apporter la commande à votre voiture.",icon:"https://eyeinlivestorage.blob.core.windows.net/public/food-force/order-modes/curbside.png",svg:"fa-car"};break;case"drive":n={name:"Drive through|Au volant",instructions:"You will have to pickup your order at the restaurant drive through.|Vous devrez venir chercher votre commande au service au volant du restaurant.",icon:"https://eyeinlivestorage.blob.core.windows.net/public/food-force/order-modes/delivery.png",svg:"fa-steering-wheel"};break;default:n={name:"Please Select your Order Mode|Sélectionner un mode de commande",instructions:"",icon:"",svg:"fa-bags-shopping"}}return n.mode=e,n}},{key:"getVisibilityForOrderMode",value:function(e,t){switch(t){case"dine_in":return!0!==e.hide_dine_in;case"delivery":return!0!==e.hide_delivery;case"take_out":return!0!==e.hide_take_out;case"curbside":return!0!==e.hide_curbside;case"drive":return!0!==e.hide_drive;default:return!0}}},{key:"getOrderStatus",value:function(e){switch(e.status){case"unpaid":return Object(c["f"])("Unpaid|Non payée");case"new":return Object(c["f"])("Sent|Envoyée");case"confirmed":return Object(c["f"])("Confirmed|Confirmée");case"preparing":return Object(c["f"])("In progress|En préparation");case"delayed":return Object(c["f"])("Delayed|Delayée");case"ready":return Object(c["f"])("Ready|Prête");case"delivering":return Object(c["f"])("In delivering|En cours de livraison");case"delivered":return Object(c["f"])("Delivered|Livrée");case"refunded":return Object(c["f"])("Refunded|Remboursée")}}},{key:"getOrderStatusVariant",value:function(e){switch(e.status){case"new":return"light";case"confirmed":return"info";case"ready":return"success";case"delivering":return"warning";case"delivered":return"success";default:return"light"}}},{key:"getOrderDelayInHours",value:function(e,t){if(!t)return 0;var n=o()(e+" "+t),i=n.diff(o()(),"hours");return i}},{key:"getOrderRemainingTime",value:function(e){var t=o()(e.min_time),n=o()(e.max_time),i=t.diff(o()(),"minutes"),a=n.diff(o()(),"minutes");return i>=0&&a>=0?"".concat(i," - ").concat(a):a>=0?"~".concat(a):"0"}},{key:"validateOrderMode",value:function(e,t){if(!t)return{supported:!0};switch(e){case"delivery":return t.delivery_offered?{supported:!0}:{supported:!1,errorMessage:"This restaurant does not offer delivery.|Ce restaurant n'offre pas de livraison."};case"dine_in":return{supported:t.dine_in_offered,errorMessage:"Dine In not available|Commande sur place non disponible"};case"take_out":return{supported:t.take_out_offered,errorMessage:"Take out not available|Commande à emporter non disponible"};case"drive":return{supported:t.drive_through_offered,errorMessage:"Drive through not available|Service au volant non disponible"};case"curbside":return{supported:t.curbside_pickup_offered,errorMessage:"Curbside pickup not available|Ramassage en voiture non disponible"};default:return{supported:t.take_out_offered,errorMessage:"Takeout and Pickup not available for this restaurant|"}}}},{key:"hasSupportedOrderMode",value:function(e){return!!e&&(e.delivery_offered||e.dine_in_offered||e.take_out_offered||e.curbside_pickup_offered||e.take_out_offered)}}])}();Object(r["a"])(u,"orderModes",["dine_in","delivery","take_out","curbside","drive"])},1939:function(e,t,n){},"19b6":function(e,t,n){e.exports=n.p+"img/pink-girl-pose.f359d1b1.png"},"19ea":function(e,t,n){},"1d08":function(e,t,n){"use strict";n("9929")},"1d5b":function(e,t,n){e.exports=n.p+"img/smile.4e8bacff.png"},"1e91":function(e,t,n){},"1eb7":function(e,t,n){"use strict";n("149e")},"1f5e":function(e,t,n){"use strict";n("5773")},"1f84":function(e,t,n){},"1fcb":function(e,t,n){e.exports=n.p+"img/man-floor.0a2255fa.png"},2004:function(e,t,n){e.exports=n.p+"img/dollar.3471fc9c.png"},"204d":function(e,t,n){e.exports=n.p+"img/green-man-standing.6ee85cee.png"},"20af":function(e,t,n){e.exports=n.p+"img/appetizer.2c677cb2.png"},2200:function(e,t,n){e.exports=n.p+"img/pancakes.f8f2e691.png"},"236d":function(e,t,n){"use strict";n("dc13")},"23b8":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}
1)),n.d(t,"b",(function(){return A}));var i=n("53ca"),a=(n("99af"),n("4de4"),n("fb6a"),n("e9f5"),n("910d"),n("a9e3"),n("b680"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("5319"),n("2b0e")),r=n("c1df"),s=n.n(r),o=n("b86e");function c(e){var t=Object(o["g"])(e);return t?"".concat(t,"s"):t}function u(e){return e?e.replace(/\.\d{3}Z/g,""):e}function l(e){return e||(e=localStorage.getItem("currency")),e&&["CAD","USD","EUR"].indexOf(e)>-1?e:"CAD"}function d(e){return e>0?"+".concat(e):e}function m(e){return e&&"string"===Object(i["a"])(e)?e.toUpperCase():e}function f(e,t){if(isNullOrUndefined(e)||isNaN(e))return"-";var n=Number(e).toFixed(2);switch(l(t)){case"EUR":return"".concat(n," €");case"USD":return"USD$ ".concat(n);default:return Object(o["c"])()?"CAD$ ".concat(n):"".concat(n," $CAD")}}function p(e,t){if(isNullOrUndefined(e)||isNaN(e))return"-";var n=Number(e).toFixed(2);switch(l(t)){case"EUR":return"".concat(n,"€");case"USD":return"$".concat(n);default:return Object(o["c"])()?"$".concat(n):"".concat(n,"$")}}function h(e,t){if(isNullOrUndefined(e)||isNaN(e))return"-";var n=(e/100).toFixed(2);switch(l(t)){case"EUR":return"".concat(n," €");case"USD":return"USD$ ".concat(n);default:return Object(o["c"])()?"CAD$ ".concat(n):"".concat(n," $CAD")}}function g(e,t){return 0===e||"0"===e?"-":e<0?"(".concat(p(Math.abs(e),t),")"):p(e,t)}function b(e,t){if(isNullOrUndefined(e)||isNaN(e))return"-";var n=Math.round(e).toLocaleString();switch(l(t)){case"EUR":return"".concat(n,"€");case"USD":return"$".concat(n);default:return Object(o["c"])()?"$".concat(n):"".concat(n,"$")}}function v(e,t){return e?t?s()(e).format(t):s()(e).format("ll"):"-"}function _(e,t){return e?t?s()(e).format(t):s()(e).format("dddd LL"):"-"}function y(e,t){return e?t?s()(e).format(t):s()(e).format("lll"):"-"}function w(e){return e?s()(e).fromNow():"-"}function k(e,t){return e?t?s()(e).format(t):s()(e).format("LT"):"-"}function C(e){return e?s()(e).fromNow():"-"}function x(e){if(0===e)return"00:00";if(!e)return"-";var t=Math.floor(e),n=fillIntegerWithZero(t)+":";return n+=e-t===0?"00":Math.round(60*(e-t)),n}function S(e){var t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"];return Object(o["d"])()?n[e]:t[e]}function O(e){var t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"];return Object(o["c"])()?e:t.indexOf(e)>-1?n[t.indexOf(e)]:e}function j(e){return e=O(e),!e||e.length<3?e:e.substr(0,3)}function M(e){for(var t=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=0,i=0;i<t.length;++i)if(n=e/Math.pow(1e3,i),n>=1&&n<1e3)return n.toFixed(2)+" "+t[i];return""}function N(e){return M(1e3*e*1e3)}function P(e){if(!e)return"";var t=e.toString();return t=t.replace(/\+(\d{0,2})(\d{3})(\d{3})(\d{4})/,"+$1 ($2) $3-$4"),t=t.replace(/(\d{0,2})(\d{3})(\d{3})(\d{4})/,"+$1 ($2) $3-$4"),t=t.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"),t}function $(e){return e?parseInt(e)>=1?e:/^[ABCEGHJ-NPRSTVXY][0-9][ABCEGHJ-NPRSTV-Z][0-9][ABCEGHJ-NPRSTV-Z][0-9]$/.test(e)?"".concat(e.substring(0,3)," ").concat(e.substring(3,6)):e:""}function L(e){return e?e.first_name+" "+e.last_name:""}function A(e){var t=e.first_name,n=e.last_name;return"string"!==Object(i["a"])(t)?"":"string"!==Object(i["a"])(n)?t:"".concat(t," ").concat(n.charAt(0).toUpperCase(),".")}function T(e){return isStringEmpty(e)?"":Object(o["d"])()?"Famille "+e:e+" family"}function I(e){return 0===getValueOrDefault(e,0)||"0"===e?0:isNaN(parseFloat(e))?e:parseFloat(e).toLocaleString()}function V(e){return isStringEmpty(e)?"-":e>1e9?"".concat(Math.round(e/1e8)/10," Gb/s"):e>1e6?"".concat(Math.round(e/1e5)/10," Mb/s"):"".concat(Math.round(e/100)/10," kb/s")}function E(e){return isStringEmpty(e)?"-":e>1e6?"".concat(Math.round(e/1e5)/10," Gb/s"):e>1e3?"".concat(Math.round(e/100)/10," Mb/s"):"".concat(Math.round(e)," kb/s")}function z(e){return parseFloat((100*parseFloat(e)).toPrecision(2))+"%"}function R(e){return e?e>60?"".concat(parseInt(e/60)," h ").concat(fillIntegerWithZero(e%60)):"".concat(e," min"):"-"}function U(e){return e?e>3600?"".concat(parseInt(e/3600)," h ").concat(fillIntegerWithZero(Math.round(e/60)%60)):e>60?"".concat(parseInt(e/60)," min ").concat(fillIntegerWithZero(Math.round(e%60))):"".concat(e," secs"):"-"}function D(e){return e?Object(o["g"])("".concat(Math.round(e/1609.34)," mi|").concat(Math.round(e/1e3)," km")):"-"}function B(e){return e?Object(o["g"])("".concat(Math.round(3.28084*e),"ft|").concat(Math.round(e),"m")):"-"}function q(e){if(!e)return"";var t="";return e.address&&(t+="".concat(e.address)),e.city&&(t+=", ".concat(e.city)),e.postal_code&&(t+=", ".concat(e.postal_code)),t}function F(e){if(!e)return"";switch(parseInt(e)){case 0:return Object(o["g"])("None|Aucun");case 1:return"Facebook";case 2:return"Eye-In";case 3:return"Linkedin";case 4:return"Google";case 5:return"Twitter"}}function H(e){if(!e)return"";switch(e){case"male":return Object(o["g"])("Male|Homme");case"female":return Object(o["g"])("Female|Femme");case"other":return Object(o["g"])("Other|Autre");default:return Object(o["g"])("Not specified|Non spécifié")}}a["default"].filter("tr",o["g"]),a["default"].filter("pluralize",c),a["default"].filter("plural",(function(e,t){return parseFloat(e)>1&&"s"!==t.slice(-1)&&"x"!==t.slice(-1)?t+"s":t})),a["default"].filter("removeTz",u),a["default"].filter("reverse",(function(e){return e.slice().reverse()})),a["default"].filter("yesNo",(function(e){return e?Object(o["g"])("Yes|Oui"):Object(o["g"])("No|Non")})),a["default"].filter("positiveSign",d),a["default"].filter("upperCase",m),a["default"].filter("price",f),a["default"].filter("priceShort",p),a["default"].filter("priceInCents",h),a["default"].filter("smartPrice",g),a["default"].filter("priceRounded",b),a["default"].filter("date",v),a["default"].filter("longDate",_),a["default"].filter("datetime",y),a["default"].filter("dateAgo",w),a["default"].filter("time",k),a["default"].filter("timeToNow",C),a["default"].filter("hour",x),a["default"].filter("dayOfWeekIndex",S),a["default"].filter("dayOfWeek",O),a["default"].filter("shortDayOfWeek",j),a["default"].filter("fileSize",M),a["default"].filter("fileSizeMB",N),a["default"].filter("phoneNumber",(function(e){return e?P(e):""})),a["default"].filter("postalCode",$),a["default"].filter("userName",L),a["default"].filter("shortName",A),a["default"].filter("familyName",T),a["default"].filter("number",(function(e){return isNullOrUndefined(e)?"-":I(+e)})),a["default"].filter("unitBits",(function(e){return isStringEmpty(e)?"-":e>1e9?"".concat(Math.round(e/1e8)/10," Gb"):e>1e6?"".concat(Math.round(e/1e5)/10," Mb"):"".concat(Math.round(e/100)/10," kb")})),a["default"].filter("unitMb",(function(e){if(isStringEmpty(e))return"-";var t=Math.round(e/100)/10;return t<1?"".concat(Math.round(e)," Mb"):"".concat(t," Gb")})),a["default"].filter("unitBitsPerSec",V),a["default"].filter("unitKbPerSec",E),a["default"].filter("percentage",(function(e){return isNullOrUndefined(e)?"-":z(e)})),a["default"].filter("round",(function(e){return isNullOrUndefined(e)?"-":Math.round(+e)})),a["default"].filter("humanizeMinutes",R),a["default"].filter("humanizeSeconds",U),a["default"].filter("formatMeterDistance",D),a["default"].filter("translateMeterDistance",B),a["default"].filter("address",q),a["default"].filter("socialNetwork",F),a["default"].filter("gender",H)},"23ce":function(e,t,n){e.exports=n.p+"img/new-dine-in.4233de86.webp"},2458:function(e,t,n){e.exports=n.p+"img/thumbs.93dad72b.png"},"25a0":function(e,t,n){e.exports=n.p+"img/gluten-free.c823c510.png"},"25eb":function(e,t,n){},2649:function(e,t,n){e.exports=n.p+"img/award.a9246231.png"},"26af":function(e,t,n){e.exports=n.p+"img/cheers-25.4373ab31.png"},"26ec":function(e,t,n){e.exports=n.p+"img/ice-cream.7215b4d2.png"},"270b":function(e,t,n){e.exports=n.p+"img/burgers.60d948fc.jpg"},2879:function(e,t,n){e.exports=n.p+"img/gray-man-back.9c86e6a7.png"},2894:function(e,t,n){e.exports=n.p+"img/fastfood.4786f5da.png"},"294a":function(e,t,n){},"29f5":function(e,t,n){e.exports=n.p+"img/more.a458eeeb.png"},"2a85":function(e,t,n){},"2ab4":function(e,t,n){e.exports=n.p+"img/waffles.3af5ba5d.png"},"2b7f":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"aspect-img",style:e.style},[t("e-img",{staticClass:"image",style:e.imgStyle,attrs:{src:e.src,"use-thumbnail":e._useThumbnail},on:{load:function(t){e.loaded=!0}}}),e._t("default")],2)},a=[],r=n("53ca"),s=(n("99af"),n("a9e3"),{name:"aspect-img",props:{src:{type:String,required:!0},aspect:{type:String,default:"4:3"},width:{type:String,default:"100%"},useThumbnail:{type:Boolean,default:null}},data:function(){return{loaded:!1}},computed:{ratio:function(){var e=this.aspect.split(":");return Number(e[0])/Number(e[1])},style:function(){return{width:this.width,"padding-bottom":"calc(".concat(this.width," / ").concat(this.ratio,")")}},imgStyle:function(){return{opacity:this.loaded?1:0}},_useThumbnail:function(){return"boolean"===Object(r["a"])(this.useThumbnail)?this.useThumbnail:this.isMobileLayout}}}),o=s,c=(n("e6cc"),n("2877")),u=Object(c["a"])(o,i,a,!1,null,null,null);t["a"]=u.exports},"2c27":function(e,t,n){e.exports=n.p+"img/no-meat.6dd4114b.png"},"2c6b":function(e,t,n){e.exports=n.p+"img/ice-cream-2.c281cce5.png"},"2c7e":function(e,t,n){e.exports=n.p+"img/martini.045c7430.png"},"2cfe":function(e,t,n){},"2d00":function(e,t,n){e.exports=n.p+"img/idea.985860ef.png"},"2d3f":function(e,t,n){},"2d50":function(e,t,n){e.exports=n.p+"img/agenda.748e43ec.png"},"2d7a":function(e,t,n){e.exports=n.p+"img/food-tray.3c7667bf.png"},"2dde":function(e,t,n){e.exports=n.p+"img/sad.44cffebc.png"},"2dfa":function(e,t,n){e.exports=n.p+"img/take-out-2.bce7d25c.png"}
1,"300e":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{visible:e.value,scrollable:"","no-close-on-backdrop":"","hide-footer":""},on:{hidden:e.reset},scopedSlots:e._u([{key:"modal-header",fn:function(){return[t("div",{staticClass:"d-flex align-items-center w-100 h-100"},[t("b-btn",{staticClass:"mr-auto",class:{invisible:"register"!==e.step},attrs:{variant:"transparent"},on:{click:function(t){t.stopPropagation(),e.step="login"}}},[t("i",{staticClass:"fas fa-chevron-left"})]),t("h5",{staticClass:"modal-title m-0"},["login"===e.step?t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Sign In to proceed with your order|Identifiez-vous pour commander")])]):"register"===e.step?t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Register|Création de compte")])]):e._e()]),t("b-btn",{staticClass:"ml-auto",attrs:{variant:"transparent"},on:{click:function(t){return t.stopPropagation(),e.$emit("input",!1)}}},[t("i",{staticClass:"fas fa-times"})])],1)]},proxy:!0}])},[t("transition",{attrs:{name:"fade",mode:"out-in",duration:"250"}},["login"===e.step?t("b-container",[t("login-form",{on:{register:function(t){e.step="register"},"login-finished":e.onLogin}})],1):"register"===e.step?t("b-container",[t("register-form",{attrs:{"show-phone":e.showPhone},on:{created:e.loginAfterRegistration}})],1):e._e()],1)],1)},a=[],r=(n("ac1f"),n("00b4"),n("db03")),s=(n("393a"),n("7c77"),n("a436")),o={name:"register-modal",components:{LoginForm:s["a"],RegisterForm:r["a"]},props:{value:{type:Boolean,required:!0},showPhone:{type:Boolean}},data:function(){return{credentials:{email:null,password:null},step:"login",recovery:{email:""}}},computed:{emailValid:function(){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/.test(this.recovery.email)}},methods:{loginAfterRegistration:function(e){var t=this;this.showLoading("Signing In...|Connexion...","Please wait while we sign you in|Merci de patienter"),this.$store.dispatch("login",{url:"/client/account/login",params:{email:e.email,password:e.password}}).then((function(){t.$emit("sign-in"),t.reset(),t.hideLoading()}))},reset:function(){this.credentials.email=null,this.credentials.password=null,this.step="login",this.$emit("input",!1)},onLogin:function(){this.reset(),this.$emit("sign-in")}},watch:{value:function(e){!0===e&&("register"===this.$store.state.registerModalTab?this.step="register":this.step="login")}}},c=o,u=n("2877"),l=Object(u["a"])(c,i,a,!1,null,"356adb1f",null);t["a"]=l.exports},3063:function(e,t,n){e.exports=n.p+"img/swipe_unchecked.f671e3d0.png"},3174:function(e,t,n){e.exports=n.p+"img/iconback_white.d3b7c7a0.png"},3280:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"contents"}},[t("b-input",{ref:"phone",staticClass:"e-tel-input",attrs:{value:e.internalValue,state:e.state,autocomplete:"phone",readonly:e.readonly,maxlength:e.maxlength},on:{change:e.onInput}}),e.showFeedback?[e.required&&!e.value?t("div",{staticClass:"text-danger f-10 mt-1 ml-1"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Phone number required|Numéro de téléphone requis")])]):e.value&&!e.state?t("div",{staticClass:"text-danger f-10 mt-1 ml-1"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Invalid phone number|Numéro de téléphone invalide")])]):e._e()]:e._e()],2)},a=[],r=n("c7eb"),s=n("1da1"),o=(n("a9e3"),n("05f3")),c=n.n(o),u=(n("83e3"),{name:"e-tel-input",props:{value:{type:String},defaultCountry:{type:String,default:"CA"},preferredCountries:{type:Array,default:function(e){return["CA","FR","US","GB"]}},required:{type:Boolean,default:!1},showDialCode:{type:Boolean,default:!1},showFeedback:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxlength:{type:[Number,String]}},data:function(){return{instance:null,state:!1,internalValue:null}},computed:{displayFormat:function(){return this.showDialCode?intlTelInputUtils.numberFormat.NATIONAL:intlTelInputUtils.numberFormat.INTERNATIONAL},storeFormat:function(){return intlTelInputUtils.numberFormat.E164}},created:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.init();case 1:case"end":return t.stop()}}),t)})))()},destroyed:function(){this.instance.destroy()},methods:{onInput:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function n(){return Object(r["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.instance.setNumber(e),n.next=1,t.$nextTick();case 1:return t.$emit("input",t.instance.getNumber(t.storeFormat)),t.internalValue=t.instance.getNumber(t.storeFormat),t.instance.setNumber(t.internalValue),n.next=2,t.$nextTick();case 2:t.internalValue=t.instance.getNumber(t.displayFormat),t.state=t.instance.isValidNumber(),t.required||t.value||(t.state=null),t.$forceUpdate();case 3:case"end":return n.stop()}}),n)})))()},isValid:function(){return null===this.state||!this.state},init:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i,a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.instance&&e.instance.destroy(),t.next=1,e.$nextTick();case 1:return i=e.$refs.phone.$refs.input,e.instance=c()(i,{initialCountry:e.defaultCountry,nationalMode:!0,separateDialCode:e.showDialCode,utilsScript:n("71f2"),formatOnDisplay:!0,preferredCountries:e.preferredCountries}),t.next=2,e.instance.promise;case 2:e.value&&(e.instance.setNumber(e.value),e.internalValue=e.instance.getNumber(e.displayFormat)),e.state=e.instance.isValidNumber(),e.required||e.value||(e.state=null),i.addEventListener("countrychange",(function(){e.state=e.instance.isValidNumber(),e.required||e.value||(e.state=null),e.$emit("country-change",e.instance.getSelectedCountryData().iso2)})),a=new ResizeObserver((function(){return i.style.paddingLeft="".concat(e.instance.selectedFlag.offsetWidth+6,"px")})),a.observe(e.instance.selectedFlag);case 3:case"end":return t.stop()}}),t)})))()}}}),l=u,d=(n("330c"),n("2877")),m=Object(d["a"])(l,i,a,!1,null,null,null);t["a"]=m.exports},"32f7":function(e,t,n){"use strict";n("6d87")},"330c":function(e,t,n){"use strict";n("b3e8")},"33f5":function(e,t,n){e.exports=n.p+"img/new-takeout.f1f9cc6f.png"},3436:function(e,t,n){},"34eb":function(e,t,n){e.exports=n.p+"img/analytics.a64591da.png"},3550:function(e,t,n){e.exports=n.p+"img/restaurant.943d9144.png"},"35d8":function(e,t,n){e.exports=n.p+"img/champain.9c43f597.png"},"373d":function(e,t,n){},3753:function(e,t,n){e.exports=n.p+"img/client-tcby.f04048aa.png"},3847:function(e,t,n){e.exports=n.p+"img/info-25.4357e5af.png"},"38a7":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o}
1)),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return u}));n("c7eb"),n("1da1");var i=n("b85c"),a=(n("53ca"),n("3835"));n("99af"),n("14d9"),n("e9f5"),n("7d54"),n("e9c4"),n("b64b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("3ca3"),n("5319"),n("498a"),n("159b"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("b86e");window.getCookies=function(){var e={};return document.cookie.split(";").forEach((function(t){var n=t.split("="),i=Object(a["a"])(n,2),r=i[0],s=i[1];e[r.trim()]=s})),e},window.getCookie=function(e){var t=getCookies();return t?t[e]:null},window.getLayoutWidth=function(){return document.documentElement.clientWidth},window.getLayoutHeight=function(){return document.documentElement.clientHeight},window.updateWindows=function(){window.isMobileLayout=window.getLayoutWidth()<=768,window.isSmallLayout=window.getLayoutWidth()<=768,window.isTabletLayout=window.getLayoutWidth()>768&&window.getLayoutWidth()<=1024,window.isMobileOrTabletLayout=window.getLayoutWidth()<=1024&&window.getLayoutHeight()<=1500,window.isLargeLayout=window.getLayoutWidth()>1024||window.getLayoutHeight()>=1500,window.isExtraLargeLayout=window.getLayoutWidth()>=1368},window.updateWindows(),window.addEventListener("resize",(function(){window.updateWindows()}));var r=function(){var e=document.documentElement;e.style.setProperty("--app-height","".concat(window.innerHeight,"px"))};function s(e){switch(e){case"coffee_shop":return"fas fa-mug-hot";case"residential":case"college_residence":return"fas fa-graduation-cap";case"shopping_mall":return"fas fa-shopping-cart";case"restaurant":return"fas fa-utensils-alt";case"sports_club":return"fas fa-running";case"hotel":return"fas fa-hotel";case"transportation":return"fas fa-bus";case"medical":return"fas fa-clinic-medical";case"municipality":return"fas fa-city";case"fast_food":return"fas fa-burger-soda";case"financial":return"fas fa-coins";case"office":return"fas fa-phone-office";case"special_event":return"fas fa-goal-net";case"electronic_retail":return"fas fa-microchip";case"clothing_retail":return"fas fa-shirt";default:return"fas fa-store"}}function o(){var e=getComputedStyle(document.documentElement);return e.getPropertyValue("--sat")?{enabled:!0,top:parseInt(e.getPropertyValue("--sat")),bottom:parseInt(e.getPropertyValue("--sab")),left:parseInt(e.getPropertyValue("--sal")),right:parseInt(e.getPropertyValue("--sar"))}:{enabled:!1,top:0,bottom:0,left:0,right:0}}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e4,i={northEast:{lat:null,lng:null},southWest:{lat:null,lng:null}},a=111320,r=n/a,s=n/(a*Math.cos(e*(Math.PI/180)));return i.northEast.lat=e-r,i.northEast.lng=t-s,i.southWest.lat=e+r,i.southWest.lng=t+s,i}function u(e){var t,n={},a=Object(i["a"])(e);try{for(a.s();!(t=a.n()).done;){var r=t.value;n[r.types[0]]=r.short_name}}catch(s){a.e(s)}finally{a.f()}return n}window.addEventListener("resize",r),r()},"38ba":function(e,t,n){},3900:function(e,t,n){"use strict";n("19ea")},"390a":function(e,t,n){e.exports=n.p+"img/compass.2da6d5ec.png"},3958:function(e,t,n){e.exports=n.p+"img/pasta.32a0b3bd.png"},"3a3a":function(e,t,n){},"3a7d":function(e,t,n){e.exports=n.p+"fonts/SourceSansPro-ExtraLight.3bb60a8a.ttf"},"3c00":function(e,t,n){e.exports=n.p+"img/frenchfries.756520d0.png"},"3c48":function(e,t,n){e.exports=n.p+"img/calendar-food-25.ee1ac935.png"},"3cdb":function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("b0c0");var i=function(){var e=this,t=e._self._c;return e.recommendation?t("b-modal",{attrs:{visible:e.value,scrollable:"","hide-header":"","hide-footer":"","body-class":"p-0","modal-class":"recommendation-modal"},on:{show:function(t){e.comments=[]},shown:e.open,hidden:e.close}},[t("div",{staticClass:"image",staticStyle:{"max-height":"70vh"}},[t("aspect-img",{attrs:{src:e.recommendation.image_url,aspect:"1:1"}})],1),t("div",{staticClass:"recommendation-modal"},[t("b-btn",{staticClass:"btn-left",attrs:{variant:"rounded"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}},[t("i",{staticClass:"fal fa-chevron-left f-14"})]),t("b-btn",{staticClass:"btn-right",attrs:{variant:"rounded"},on:{click:function(t){return t.stopPropagation(),e.share.apply(null,arguments)}}},[t("i",{staticClass:"fal fa-share-nodes f-14"})]),t("div",{staticClass:"bottom-section"},[t("div",{staticClass:"d-flex align-items-baseline"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name text-primary flex-1 mr-2"},[e._v(e._s(e.recommendation.name))]),t("div",{staticClass:"like
1s ml-auto d-flex align-items-center"},[e.user?t("recommendation-dislike-btn",{ref:"dislike",staticClass:"mr-2",attrs:{"hide-when-liked":"","recommendation-id":e.recommendation.id},on:{dislike:function(t){e.recommendation.likes--}}}):e._e(),t("recommendation-like-btn",{staticClass:"mr-1",attrs:{"hide-when-unliked":"","recommendation-id":e.recommendation.id},on:{like:function(t){e.recommendation.likes++},unlike:function(t){e.recommendation.likes--}}},[e._v(" "+e._s(e.recommendation.likes)+" ")])],1)]),e.recommendation.google_place_name?t("b-link",{staticClass:"text-dark text-ellipsis",attrs:{to:"/restaurant/".concat(e.recommendation.google_place_id)},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}},[t("span",{staticClass:"text-capitalize text-ellipsis f-500 f-10"},[e._v("@"+e._s(e.recommendation.google_place_name.toLowerCase()))])]):e._e(),t("div",{staticClass:"author"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Discovered by|Découverte par")]),t("a",{staticClass:"f-500 text-black cursor-pointer ml-1 mr-1",on:{click:function(t){return t.stopPropagation(),e.reachProfile.apply(null,arguments)}}},[e._v(e._s(e.recommendation.first_name))]),e.recommendation.certification?t("badge-certification",{staticClass:"mr-1 d-inline-block",attrs:{certification:e.recommendation.certification,dense:""}}):e._e(),e.recommendation.google_place_id?t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("in|à")]),t("span",{staticClass:"ml-1"},[e._v(e._s(e.recommendation.city))])]):e._e()],1),t("hr"),t("div",{staticClass:"date"},[e._v(" "+e._s(e._f("date")(e.recommendation.date_creation))+" ")]),t("pre",{staticClass:"description"},[e._v(e._s(e._f("tr")(e.recommendation.description)))]),t("div",{staticClass:"text-center mt-3"},[e.itemLink?t("b-btn",{staticClass:"text-left mt-3 py-2",attrs:{variant:"primary",block:""},on:{click:function(t){t.stopPropagation(),e.reach(e.itemLink),e.close(),e.$emit("order-now",e.recommendation.item_id)}}},[t("i",{staticClass:"fal fa-shopping-bag mr-3"}),e.hideOrderBtn?e.itemLink?t("span",[e._v(e._s(e.tr("View corresponding item|Voir l'élément correspondant")))]):e._e():t("span",[e._v(e._s(e.tr("Order now|Commander maintenant")))])]):e._e(),t("b-btn",{staticClass:"mx-auto py-2 text-left",attrs:{variant:"outline-primary",block:"","data-test":"more-actions"},on:{click:function(t){t.stopPropagation(),e.moreActionsVisible=!0}}},[t("i",{staticClass:"fal fa-arrow-up-from-square fa-fw mr-3"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Share & More...|Partager et plus...")])])],1),t("div",{staticClass:"details mt-3"},[t("div",{staticClass:"title mt-3 mb-1"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Comments|Commentaires")]),e.recommendation.comments?t("span",{staticClass:"ml-1"},[e._v("("+e._s(e.recommendation.comments)+")")]):e._e()]),e.loadingComments?t("div",{staticClass:"bg-light"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-center text-italic"},[e._v("Loading...|Chargement...")])]):e.comments.length?t("div",{staticClass:"bg-light comments cursor-pointer position-relative",class:{"fade-bottom":e.comments.length>1},staticStyle:{"padding-right":"2rem"},on:{click:function(t){return t.stopPropagation(),e.openComments(!1)}}},[e._l(e.comments,(function(n,i){return t("div",{key:i,staticClass:"d-flex align-items-center",class:{"mb-2":i<e.comments.length-1}},[t("user-avatar",{staticStyle:{"min-width":"30px"},attrs:{src:n.avatar_url,size:"30"}}),t("div",{staticClass:"bubble f-10 ml-2"},[e._v(e._s(n.text))])],1)})),t("div",{key:"expand",staticClass:"expand-icon"},[t("i",{staticClass:"fal fa-chevron-up"}),t("i",{staticClass:"fal fa-chevron-down"})])],2):t("b-btn",{attrs:{variant:"light",block:""},on:{click:function(t){return t.stopPropagation(),e.openComments(!0)}}},[t("i",{staticClass:"fal fa-comment mr-3"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-400"},[e._v("Add a comment|Ajouter un commentaire")])]),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title mt-3 mb-1"},[e._v("Author|Auteur")]),t("div",{staticClass:"d-flex align-items-center bg-light cursor-pointer",on:{click:function(t){return t.stopPropagation(),e.reachProfile.apply(null,arguments)}}},[t("user-avatar",{attrs:{src:e.recommendation.avatar_url,seed:e.recommendation.first_name,size:"55",variant:"transparent"}}),t("div",{staticClass:"ml-3"},[t("div",{staticClass:"f-500",staticStyle:{"font-size":"0.9rem"}},[e._v(e._s(e.recommendation.first_name))]),e.recommendation.certification?t("badge-certification",{attrs:{certification:e.recommendation.certification}}
1):e._e()],1)],1),e.recommendation.google_place_id?[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title mt-3 mb-1"},[e._v("Establishment|Établissement")]),t("div",{staticClass:"bg-light",on:{click:function(t){e.restaurantActionsVisible=!0}}},[e.recommendation.google_place_name?t("div",{staticClass:"cursor-pointer"},[t("div",{staticClass:"f-500 text-dark text-ellipsis"},[e._v(" "+e._s(e.recommendation.google_place_name)+" ")])]):e._e(),t("div",{staticClass:"cursor-pointer mt-2 f-10 text-ellipsis",staticStyle:{color:"#333"}},[t("span",[e._v(e._s(e.recommendation.google_place_address))])])])]:e._e(),t("e-action-sheet",{model:{value:e.showVisibilities,callback:function(t){e.showVisibilities=t},expression:"showVisibilities"}},e._l(e.visibilities,(function(n){return t("e-action-sheet-item",{key:n.id,on:{click:function(t){return t.stopPropagation(),e.changeVisibility(n.id)}}},[t("i",{staticClass:"fas fa-fw mr-3",class:n.icon}),t("span",[e._v(e._s(e.tr(n.description)))])])})),1),e.recommendation.debug&&e.isAdmin?[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title mt-3 mb-1"},[e._v("Why am I seeing this (debug)?|Pourquoi je vois ça (debug) ?")]),t("div",{staticClass:"bg-light mb-3"},[t("i",{staticClass:"fas fa-circle mr-1",class:"text-"+e.recommendation.debug.variant}),e._v(" "+e._s(e.recommendation.debug.text)+" ")])]:e._e()],2)],1)],1),t("e-action-sheet",{model:{value:e.moreActionsVisible,callback:function(t){e.moreActionsVisible=t},expression:"moreActionsVisible"}},[t("div",[t("e-action-sheet-item",{attrs:{icon:"fal fa-user"},on:{click:e.reachProfile}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Open author profile|Ouvrir le profil de l'auteur")])]),e.recommendation.google_place_id?t("e-action-sheet-item",{attrs:{to:"/restaurant/".concat(e.recommendation.google_place_id),icon:"fal fa-buildings"},on:{click:e.close}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("See discoveries for this restaurant|Voir les découvertes de ce restaurant")])]):e._e(),e.recommendation.google_place_address?t("e-action-sheet-item",{attrs:{icon:"fal fa-map-location-dot"},on:{click:function(t){return e.window.open(e.gmapsAddressLink)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Open in Google Maps|Ouvrir dans Google Maps")])]):e._e(),t("e-action-sheet-item",{attrs:{icon:"fal fa-share-nodes"},on:{click:e.share}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Share this discovery|Partager cette découverte")])]),e.user&&e.user.id!==e.recommendation.account_id?t("e-action-sheet-item",{attrs:{icon:"fal fa-flag",variant:"danger"},on:{click:e.report}},[e.isReported?t("span",[e._v(e._s(e.tr("Cancel Report|Annuler le signalement")))]):t("span",[e._v(e._s(e.tr("Report this discovery|Signaler cette découverte")))])]):e._e()],1),t("div",{staticClass:"mt-3"},[e.isOwner?t("e-action-sheet-item",{attrs:{icon:"fal ".concat(e.currentVisibility.icon)},on:{click:function(t){e.moreActionsVisible=!0,e.showVisibilities=!0}}},[t("span",{staticClass:"f-500 mr-1"},[e._v(e._s(e._f("tr")(e.currentVisibility.description)))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("can see this discovery|peut voir cette découverte")])]):e._e(),e.isOwner?t("e-action-sheet-item",{attrs:{icon:"fal fa-trash",variant:"danger","data-test":"action-delete"},on:{click:e.deleteRecommendation}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Delete|Supprimer")])]):e._e()],1)]),t("e-action-sheet",{model:{value:e.restaurantActionsVisible,callback:function(t){e.restaurantActionsVisible=t},expression:"restaurantActionsVisible"}},[e.recommendation.google_place_id?t("e-action-sheet-item",{attrs:{to:"/restaurant/".concat(e.recommendation.google_place_id),icon:"fal fa-buildings"},on:{click:e.close}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("See discoveries for this restaurant|Voir les découvertes de ce restaurant")])]):e._e(),e.recommendation.google_place_address?t("e-action-sheet-item",{attrs:{icon:"fal fa-map-location-dot"},on:{click:function(t){return e.window.open(e.gmapsAddressLink)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]}
1,[e._v("Open in Google Maps|Ouvrir dans Google Maps")])]):e._e()],1),t("e-action-sheet",{model:{value:e.shareVisible,callback:function(t){e.shareVisible=t},expression:"shareVisible"}},e._l(e.shareOptions(e.recommendation,"post"),(function(n,i){return t("e-action-sheet-item",{key:i,attrs:{icon:n.icon},on:{click:n.handler}},[t("span",[e._v(e._s(n.title))])])})),1)],1):e._e()},a=[],r=n("c7eb"),s=n("1da1"),o=(n("99af"),n("7db0"),n("caad"),n("e9f5"),n("f665"),n("d3b7"),n("2532"),n("71c6")),c=n("54ce"),u=function(){var e=this,t=e._self._c;return t("span",[t("i",{staticClass:"fa-thumbs-down fa-fw fa-flip-horizontal text-gray animation-container",class:[e.isDisliked||e.isReported||e.isNotInterested?"fas":"fal",{"cursor-pointer":!0,"hide-animation":e.isHidden}],on:{click:e.onClick}}),e.actionEnabled&&!e.isHidden?t("e-action-sheet",{attrs:{title:"Tell us more|Pouvez-vous préciser",description:"What didn't you like?|Qu'est-ce que vous n'avez pas aimé ?"},model:{value:e.showActions,callback:function(t){e.showActions=t},expression:"showActions"}},[t("e-action-sheet-item",{attrs:{icon:"fal fa-heart-broken"},on:{click:function(t){return t.stopPropagation(),e.dislike.apply(null,arguments)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("I don't like it|Je n'aime pas")])]),t("e-action-sheet-item",{attrs:{icon:"fal fa-minus-circle"},on:{click:function(t){return t.stopPropagation(),e.giveInterest.apply(null,arguments)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("I'm not interested|Je ne suis pas intéressé")])]),t("e-action-sheet-item",{attrs:{variant:"danger",icon:"fal fa-flag"},on:{click:function(t){return t.stopPropagation(),e.report.apply(null,arguments)}}},[e.isReported?t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Cancel Report|Annuler le signalement")])]):t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Report|Signaler")])])])],1):e._e()],1)},l=[],d=(n("14d9"),n("a434"),n("edc8")),m={name:"recommendation-dislike-btn",props:{recommendationId:{type:String,required:!0},hideWhenLiked:{type:Boolean}},data:function(){return{actionEnabled:!1,showActions:!1}},computed:{isReported:function(){return this.user&&this.user.reported_recommendations.includes(this.recommendationId)},isDisliked:function(){return this.user&&this.user.disliked_recommendations.includes(this.recommendationId)},isNotInterested:function(){return this.user&&this.user.not_interested_recommendations.includes(this.recommendationId)},isHidden:function(){return this.user&&this.hideWhenLiked&&this.user.liked_recommendations.includes(this.recommendationId)}},methods:{onClick:function(){this.isDisliked?this.dislike():this.isNotInterested?this.giveInterest():this.isReported?this.report():(this.actionEnabled=!0,this.showActions=!0)},dislike:function(){var e=this;if(this.user)return d["a"].post("/client/recommendation/interact/".concat(this.recommendationId),{type:"dislike"}).then((function(t){if(t.data.enabled){e.user.disliked_recommendations.includes(e.recommendationId)||e.user.disliked_recommendations.push(e.recommendationId);var n=e.user.liked_recommendations.indexOf(e.recommendationId);n>=0&&e.user.liked_recommendations.splice(n,1),n>=0&&e.$emit("dislike")}else{var i=e.user.disliked_recommendations.indexOf(e.recommendationId);e.user.disliked_recommendations.splice(i,1)}e.showActions=!1})).catch((function(e){return console.error(e.response.data)}))},report:function(){var e=this;if(this.user)return d["a"].post("/client/recommendation/interact/".concat(this.recommendationId),{type:"report"}).then((function(t){if(t.data.enabled)e.user.reported_recommendations.includes(e.recommendationId)||e.user.reported_recommendations.push(e.recommendationId),e.toaster({header:e.tr("Report Submitted|Signalement effectué"),duration:1e3});else{var n=e.user.reported_recommendations.indexOf(e.recommendationId);n>=0&&e.user.reported_recommendations.splice(n,1),e.toaster({header:e.tr("Report Canceled|Signalement annulé"),duration:1e3})}e.showActions=!1})).catch((function(e){return console.error(e.response.data)}))},giveInterest:function(){var e=this;if(this.user)return d["a"].post("/client/recommendation/interact/".concat(this.recommendationId),{type:"not-interested"}).then((function(t){if(t.data.enabled)e.user.not_interested_recommendations.includes(e.recommendationId)||e.user.not_interested_recommendations.push(e.recommendationId);else{var n=e.user.not_interested_recommendations.indexOf(e.recommendationId);n>=0&&e.user.not_interested_recommendations.splice(n,1)}e.showActions=!1}
1)).catch((function(e){return console.error(e.response.data)}))}}},f=m,p=(n("4fcf"),n("2877")),h=Object(p["a"])(f,u,l,!1,null,"181bb6e7",null),g=h.exports,b=n("2b7f"),v=n("2ad9"),_=n("7715"),y=n("eafa"),w=n("7b7d"),k=n("56d7"),C={name:"recommendation-modal",components:{BadgeCertification:_["a"],AspectImg:b["a"],RecommendationDislikeBtn:g,RecommendationLikeBtn:c["a"],UserAvatar:o["a"]},mixins:[y["a"]],props:{value:{type:Boolean},recommendation:{type:Object},hideOrderBtn:{type:Boolean,default:!1}},data:function(){return{loading:!1,loadingComments:!1,shareVisible:!1,recommendationShareLink:null,restaurantActionsVisible:!1,showVisibilities:!1,moreActionsVisible:!1,comments:[],visibilities:w}},computed:{currentVisibility:function(){var e=this;return this.visibilities&&this.recommendation?this.visibilities.find((function(t){return t.id===e.recommendation.visibility})):{}},gmapsAddressLink:function(){return"https://www.google.com/maps?f=d&daddr=".concat(this.recommendation.google_place_address)},itemLink:function(){return this.recommendation.restaurant_id&&this.recommendation.item_id?"/menu/".concat(this.recommendation.restaurant_id,"?itemId=").concat(this.recommendation.item_id):null},isOwner:function(){return this.user&&this.recommendation.id&&this.recommendation.account_id===this.user.id},selectedVisibility:function(){var e=this;return this.recommendation?this.visibilities.find((function(t){return t.id===e.recommendation.visibility})):null},isReported:function(){return this.user&&this.user.reported_recommendations.includes(this.recommendation.id)}},mounted:function(){var e=this;k["default"].$on("redirect",(function(){e.close()}))},methods:{open:function(){var e=this;v["a"].addListener("backButton",(function(){e.close()})),this.recommendation.comments>0&&this.loadCommentsPreview()},close:function(){this.$emit("input",!1),v["a"].removeAllListeners()},reachProfile:function(){return this.close(),this.$store.commit("setSearchVisible",!1),this.user&&this.user.guid===this.recommendation.account_guid?this.reach("/profile"):this.reach("/profile/".concat(this.recommendation.account_guid))},deleteRecommendation:function(){var e=this;if(this.isOwner)return this.$swal({icon:"info",title:this.tr("Delete this post?|Supprimer ce post ?"),text:this.tr("This action is irreversible.|Cette action est irréversible."),buttons:[this.tr("Cancel|Annuler"),this.tr("Confirm|Confirmer")],dangerMode:!0}).then((function(t){if(t)return e.loading=!0,d["a"].delete("/client/recommendation/".concat(e.recommendation.id)).then((function(){e.$emit("delete"),e.close()})).catch((function(e){return console.error(e.response.data)})).finally((function(){return e.loading=!1}))}))},changeVisibility:function(e){var t=this;return this.recommendation?(this.recommendation.visibility=e,d["a"].patch("/client/recommendation/change-visibility/".concat(this.recommendation.id),{visibility:e}).then((function(){return t.showVisibilities=!1,t.$swal({icon:"success",title:t.tr("Modifications saved|Modifications effectuées"),text:t.tr("Discovery's visibility has been updated.|La visibilité de cette découverte a été mise à jour.")})})).catch((function(e){return console.error(e.response.data)}))):Promise.resolve()},share:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.shareVisible=!0;case 1:case"end":return t.stop()}}),t)})))()},report:function(){if(this.$refs.dislike)return this.$refs.dislike.report()},openComments:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$store.commit("toggleCommentsModal",{visible:!0,recommendationId:this.recommendation.id,commentId:null,autofocus:e})},loadCommentsPreview:function(){var e=this;if(this.recommendation)return this.loadingComments=!0,d["a"].get("/client/recommendation/comments/".concat(this.recommendation.id)).then((function(t){e.comments=t.data})).catch((function(e){return console.error(e.response.data)})).finally((function(){return e.loadingComments=!1}))}}},x=C,S=(n("1289"),Object(p["a"])(x,i,a,!1,null,null,null));t["a"]=S.exports},"3cf1":function(e,t,n){e.exports=n.p+"img/new-dine-in.c8530008.png"},"3d14":function(e,t,n){e.exports=n.p+"img/orange-girl-fly.5d9caf8a.png"},"3d84":function(e,t,n){e.exports=n.p+"img/purse.63067528.png"}
1,"3d95":function(e,t,n){e.exports=n.p+"img/cake-25.0bbfa963.png"},"3dc5":function(e,t,n){e.exports=n.p+"img/menu.07539e9b.png"},"3eb1":function(e,t,n){"use strict";n("a122")},"3f0a":function(e,t,n){e.exports=n.p+"img/ramen.a478be0d.png"},"3f36":function(e,t,n){e.exports=n.p+"img/sandwich-25.b65a5d9e.png"},"3f4e":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("b-btn",{class:{"async-loading":e.loading},attrs:{type:e.type,variant:e.variant,size:e.size,block:e.block,disabled:e.disabled||e.loading},on:{click:e.buttonClicked}},[e.loading?t("div",{staticClass:"loader-btn"}):e._e(),e._t("default")],2)},a=[],r={name:"e-button-async",props:["type","disabled","variant","size","block"],data:function(){return{loading:!1}},methods:{buttonClicked:function(e){var t=this;this.loading=!0,this.$emit("async-click",(function(){t.loading=!1}),e)}}},s=r,o=(n("c469"),n("2877")),c=Object(o["a"])(s,i,a,!1,null,"7b29c653",null);t["a"]=c.exports},"3f89":function(e,t,n){e.exports=n.p+"img/client-koryo.fd9edca6.png"},"3f91":function(e,t,n){e.exports=n.p+"img/gray-girl-happy.a81e0600.png"},4001:function(e,t,n){},"40b8":function(e,t,n){},4116:function(e,t,n){e.exports=n.p+"img/like.1b476f69.png"},"41cb":function(e,t,n){"use strict";n("d3b7"),n("3ca3"),n("ddb0");var i=n("2b0e"),a=n("8c4f"),r=n("c0d6"),s=n("1547");function o(e,t,n){r["a"].dispatch("getCurrentUser").then((function(){r["a"].getters.isAuthenticated?!s["a"].isNativePlatform()||"/"!==e.path&&"/login"!==e.path?n():n("/"):n()}))}function c(e,t,n){r["a"].dispatch("getCurrentUser").then((function(){r["a"].getters.isAuthenticated?n():n("/why-you-should-register")}))}function u(e,t,n){r["a"].getters.isAuthenticated?n():r["a"].dispatch("getCurrentUser").then((function(){r["a"].getters.isAuthenticated?n():(e&&localStorage.setItem("redirect",e.path),n("/login"))}))}function l(e,t,n){window.isCustomDomain?n("/menu"):n()}i["default"].use(a["a"]);t["a"]=new a["a"]({mode:"history",scrollBehavior:function(e,t,n){window.scrollTo(0,0)},routes:[{path:"/",name:"feed",component:function(){return Promise.all([n.e("chunk-944b6cfe"),n.e("chunk-4461e012")]).then(n.bind(null,"21c3"))},beforeEnter:l},{path:"/about",name:"about",component:function(){return n.e("chunk-15aab382").then(n.bind(null,"754b"))},beforeEnter:l},{path:"/about-food-force",name:"about-food-force",component:function(){return n.e("chunk-3ec4a7ee").then(n.bind(null,"b150"))},beforeEnter:l},{path:"/index.html",name:"home",component:function(){return n.e("chunk-15aab382").then(n.bind(null,"754b"))}},{path:"/blog/:section?/:id?",name:"blog",component:function(){return n.e("chunk-1f5f2be8").then(n.bind(null,"68b7"))},beforeEnter:l},{path:"/business",name:"business",component:function(){return n.e("chunk-4dc9282b").then(n.bind(null,"022a"))},beforeEnter:l},{path:"/contact",name:"contact",component:function(){return n.e("chunk-ee3ffd02").then(n.bind(null,"4fe8"))},beforeEnter:l},{path:"/assistant",name:"assistant",component:function(){return n.e("chunk-34c02632").then(n.bind(null,"126c"))},beforeEnter:l},{path:"/trends/:category?",name:"pro-trends",component:function(){return n.e("chunk-7b63cb48").then(n.bind(null,"6add"))}},{path:"/zone/:zone",name:"zone",component:function(){return Promise.all([n.e("chunk-944b6cfe"),n.e("chunk-7e41bbbe")]).then(n.bind(null,"8fc4"))}},{path:"/recommendation-creator/:recommendation_id?",name:"recommendation-creator",component:function(){return n.e("chunk-7f220570").then(n.bind(null,"a165"))},beforeEnter:c},{path:"/profile/:user_id?",name:"profile",component:function(){return n.e("chunk-7df99a99").then(n.bind(null,"f1a6"))}},{path:"/login/:language?",name:"login",component:function(){return n.e("chunk-7edf91cb").then(n.bind(null,"dd7b"))},beforeEnter:o},{path:"/register/:language?",name:"register",component:function(){return n.e("chunk-75b4285b").then(n.bind(null,"7803"))},beforeEnter:o},{path:"/email/verification/:guid",name:"email-confirmation",component:function(){return n.e("chunk-7edf91cb").then(n.bind(null,"dd7b"))},beforeEnter:o},{path:"/reset-password/:guid",name:"reset-password",component:function(){return n.e("chunk-0b52898f").then(n.bind(null,"db4f"))},beforeEnter:o},{path:"/restaurants/:restaurant_id?",name:"restaurants",component:function(){return n.e("chunk-a89acf7c").then(n.bind(null,"591b"))},beforeEnter:l},{path:"/g/:alias?",name:"restaurant-group",component:function(){return n.e("chunk-d75f67a0").then(n.bind(null,"4405"))}},{path:"/account/:tab?",name:"account",component:function(){return Promise.all([n.e("chunk-6a4f0712"),n.e("chunk-2712fcd6"),n.e("chunk-077da775")]).then(n.bind(null,"b5c4"))}},{path:"/edit-profile/:tab?",name:"edit-profile",component:function(){return Promise.all([n.e("chunk-6a4f0712"),n.e("chunk-0689fb08")]).then(n.bind(null,"01e5"))}},{path:"/checkin",name:"checkin",component:function(){return n.e("chunk-741a1e1e").then(n.bind(null,"8e70"))}},{path:"/menu/:restaurant?",name:"restaurant-menu",component:function(){return Promise.all([n.e("chunk-6a4f0712"),n.e("chunk-2712fcd6"),n.e("chunk-3974e4e9"),n.e("chunk-9f450874")]).then(n.bind(null,"cecf"))}},{path:"/menu/table/:table",name:"menu-restaurant-table",component:function(){return Promise.all([n.e("chunk-6a4f0712"),n.e("chunk-2712fcd6"),n.e("chunk-3974e4e9"),n.e("chunk-9f450874")]).then(n.bind(null,"cecf"))}},{path:"/restaurant-menu/:restaurant?",name:"menu-restaurant",component:function(){return Promise.all([n.e("chunk-6a4f0712"),n.e("chunk-2712fcd6"),n.e("chunk-3974e4e9"),n.e("chunk-9f450874")]).then(n.bind(null,"cecf"))}},{path:"/restaurant-menu/table/:table",name:"restaurant-menu-table",component:function(){return Promise.all([n.e("chunk-6a4f0712"),n.e("chunk-2712fcd6"),n.e("chunk-3974e4e9"),n.e("chunk-9f450874")]).then(n.bind(null,"cecf"))}},{path:"/orders/:tab?/:id?",name:"orders",component:function(){return Promise.all([n.e("chunk-6a4f0712"),n.e("chunk-2712fcd6"),n.e("chunk-3974e4e9"),n.e("chunk-3db590b8")]).then(n.bind(null,"ff9a"))}},{path:"/clients/tcby/custom-layon",name:"clients-tcby-layon",component:function(){return Promise.all([n.e("chunk-2712fcd6"),n.e("chunk-17c321f4")]).then(n.bind(null,"300b"))}},{path:"/clients/cafe-amis/menus",name:"clients-cafe-amis",component:function(){return n.e("chunk-d4295b46").then(n.bind(null,"5762"))}},{path:"/why-you-should-register",name:"why-you-should-register",component:function(){return n.e("chunk-3f91f
1690").then(n.bind(null,"2b99"))}},{path:"/auth/:provider?",name:"auth-redirection",component:function(){return n.e("chunk-edf65a74").then(n.bind(null,"e247"))},beforeEnter:o},{path:"/s/:key",name:"short-url-redirect",component:function(){return n.e("chunk-c56372d6").then(n.bind(null,"2955"))},beforeEnter:u},{path:"/notifications",name:"notifications",component:function(){return n.e("chunk-248058ce").then(n.bind(null,"5c49"))},beforeEnter:u},{path:"/about-version",name:"about-version",component:function(){return n.e("chunk-7c838918").then(n.bind(null,"51e7"))}},{path:"/terms-and-conditions",name:"terms-and-conditions",component:function(){return n.e("chunk-1b543df2").then(n.bind(null,"2fae"))}},{path:"/news",name:"news",component:function(){return n.e("chunk-dfa908b0").then(n.bind(null,"cfda"))},beforeEnter:o},{path:"/content-gallery",name:"content-gallery",component:function(){return n.e("chunk-ef64a402").then(n.bind(null,"03d8"))},beforeEnter:o},{path:"/restaurant/:place_id",name:"restaurant",component:function(){return n.e("chunk-b0a3cb42").then(n.bind(null,"75e9"))}},{path:"*",name:"not-found",component:function(){return n.e("chunk-529bc570").then(n.bind(null,"63e6"))}}]})},4225:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("b85c"),a=n("53ca"),r=n("d4ec"),s=n("bee2"),o=(n("99af"),n("b64b"),n("7f45")),c=n.n(o),u=n("edc8"),l=function(){function e(){Object(r["a"])(this,e)}return Object(s["a"])(e,null,[{key:"isRestaurantOpen",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c()(),n=!0;try{var r=e.hours;"string"===Object(a["a"])(r)&&(r=JSON.parse(r));var s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o=s[c.a.tz(t,e.timezone).day()],u=c.a.tz(t,e.timezone).hours()+c.a.tz(t,e.timezone).minutes()/60;if(r=r[o],r){var l,d=Object(i["a"])(r);try{for(d.s();!(l=d.n()).done;){var m=l.value;m[0]<=u&&u<=m[1]&&(n=!1)}}catch(f){d.e(f)}finally{d.f()}}return!n}catch(p){return console.error("Could not parse restaurant hours"),!1}}},{key:"checkRestaurantOrderAvailability",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i="/client/restaurant-info/orders-availability/".concat(e.id);return t&&n&&(i+="/".concat(t,"/").concat(n)),u["a"].get(i)}}])}()},4274:function(e,t,n){e.exports=n.p+"img/segoe-script.039e9496.png"},4292:function(e,t,n){"use strict";n("a4d3"),n("e01a");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty-placeholder",class:[{bordered:e.bordered},"size-"+e.size],attrs:{"data-test":"empty-placeholder"}},[e.imgSrc?t("b-img",{attrs:{center:"",src:e.imgSrc}}):e._e(),e.title?t("h6",{staticClass:"title"},[e._v(e._s(e._f("tr")(e.title)))]):e._e(),e.description?t("p",{staticClass:"title"},[e._v(e._s(e._f("tr")(e.description)))]):e._e(),t("span",[e._t("default")],2)],1)},a=[],r={name:"e-empty-placeholder",props:{title:{type:String,default:"Nothing here|Il n'y a rien ici"},description:{type:String},size:{type:String,default:"md"},imgSrc:{type:String,default:"https://eyeinlivestorage.blob.core.windows.net/public/eye-intelligence/empty.png"},bordered:{type:Boolean}}},s=r,o=(n("d9c8"),n("2877")),c=Object(o["a"])(s,i,a,!1,null,"fb0188e6",null);t["a"]=c.exports},"42bf":function(e,t,n){e.exports=n.p+"img/man-muscles.f2b0a7f8.png"},4333:function(e,t,n){e.exports=n.p+"img/dish.445c0a91.png"},4766:function(e,t,n){e.exports=n.p+"img/coffee.1bc95cbf.png"},"479b":function(e,t,n){e.exports=n.p+"img/sleeping.5b37070c.png"},"47b9":function(e,t,n){},4845:function(e,t,n){},"48b3":function(e,t,n){e.exports=n.p+"img/delivery.ee46816e.png"},"48dd":function(e,t,n){e.exports=n.p+"img/heart.5a202b9e.png"},"49fd":function(e,t,n){e.exports=n.p+"img/cuisinomane-avatar-hd.46420802.jpg"},"4a08":function(e,t,n){e.exports=n.p+"img/background-mobile.a388f67b.webp"},"4a12":function(e,t,n){},"4a73":function(e,t,n){e.exports=n.p+"img/iced-coffee-25.497752ac.png"},"4b4d":function(e,t,n){e.exports=n.p+"img/green-girl-fly.c0b1338e.png"},"4bd5":function(e,t,n){e.exports=n.p+"img/social-trends-en.c39d20cc.webp"},"4c7d":function(e,t,n){e.exports=n.p+"img/background.51558cf4.webp"},"4cbb":function(e,t,n){e.exports=n.p+"img/ice-cream-2-25.6b3670c0.png"},"4d11":function(e,t,n){e.exports=n.p+"img/gift.b993c338.png"},"4d35":function(e,t,n){e.exports=n.p+"img/food-stand.ab2964be.png"},"4edb":function(e,t,n){},"4ee5":function(e,t,n){"use strict";n("52ba")},"4fcf":function(e,t,n){"use strict";n("89df")},"4fd8":function(e,t,n){e.exports=n.p+"img/green-man-fly.ccc1dde2.png"},5040:function(e,t,n){e.exports=n.p+"img/cupcake.e049116f.png"},5059:function(e,t,n){e.exports=n.p+"img/waiter.5c786eb8.png"},"511a":function(e,t,n){},"51ab":function(e,t,n){e.exports=n.p+"img/spicy.60af5b04.png"},"528a":function(e,t,n){e.exports=n.p+"img/client-mty.4230ce97.png"},"52ba":function(e,t,n){},"52d9":function(e,t,n){},"53e1":function(e,t,n){e.exports=n.p+"img/logo-text.b99258ed.png"},5416:function(e,t,n){e.exports=n.p+"img/time-breakfast.de7217f9.png"},"54ce":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"animation-container",class:{"hide-animation":e.isHidden},attrs:{"data-test":"btn-like"},on:{click:function(t){return t.stopPropagation(),e.onClick.apply(null,arguments)}}},[t("i",{staticClass:"fa-heart text-pink fa-fw",class:[e.isLiked?"fas":"fal",{"cursor-pointer":e.clickable}]}),t("span",{staticClass:"content"},[e._t("default")],2)])},a=[],r=n("2909"),s=(n("99af"),n("4de4"),n("caad"),n("14d9"),n("e9f5"),n("910d"),n("d3b7"),n("2532"),n("edc8")),o={name:"recommendation-like-btn",props:{recommendationId:{type:String,required:!0},clickable:{type:Boolean,default:!0},hideWhenUnliked:{type:Boolean}},computed:{isLiked:function(){return!!this.user&&this.user.liked_recommendations.includes(this.recommendationId)},isHidden:function(){return!(!this.user||!this.hideWhenUnliked)&&[].concat(Object(r["a"])(this.user.disliked_recommendations),Object(r["a"])(this.user.reported_recommendations),Object(r["a"])(this.user.not_interested_recommendations)).includes(this.recommendationId)}},methods:{onClick:function(){var e=this;return this.user&&this.clickable?s["a"].post("/client/recommendation/interact/".concat(this.recommendationId),{type:"like"}).then((function(t){e.$set(e.user,"liked_recommendations",e.user.liked_recommendations.filter((function(t){return t!==e.recommendationId}))),t.data.enabled?(e.user.liked_recommendations.push(e.recommendationId),e.$emit("like"),e.$set(e.user,"disliked_recommendations",e.user.disliked_recommendations.filter((function(t){return t!==e.recommendationId})))):e.$emit("unlike")})).catch((function(e){return console.error(e.response.data)})):this.$swal({icon:"info",title:this.tr("You need to sign in first to like this discovery|Identifiez-vous pour liker cette découverte"),text:"",buttons:[this.tr("C
1ancel|Annuler"),this.tr("Sign in|Se connecter")]}).then((function(t){if(t)return e.reach("/login")}))}}},c=o,u=(n("615e"),n("2877")),l=Object(u["a"])(c,i,a,!1,null,"460846a7",null);t["a"]=l.exports},"55ad":function(e,t,n){},"56cc":function(e,t,n){"use strict";n("5e1c")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("a15b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("3ca3"),n("ddb0");var i=n("2b0e"),a=function(){var e=this,t=e._self._c;return t("div",{class:e.classes,attrs:{id:"app",mode:e.mode}},[t("keep-alive",[t("router-view",{on:{"login-start":e.loginStart,"login-finished":e.loginFinished}})],1),e.$store.state.desktopMenuVisible||e.$store.state.notificationsVisible?t("div",{staticClass:"desktop-menu-overlay",on:{click:function(t){t.stopPropagation(),e.$store.state.desktopMenuVisible=!1,e.$store.state.notificationsVisible=!1}}}):e._e(),e.isEmbed?e._e():[e.showMenu&&e.isLargeLayout?t("desktop-menu"):e._e(),e.showMobileMenu&&e.isMobileOrTabletLayout?t("mobile-menu"):e._e(),e.user&&e.showMenu&&e.isLargeLayout?t("notifications-menu"):e._e()],t("universal-search",{model:{value:e.$store.state.searchVisible,callback:function(t){e.$set(e.$store.state,"searchVisible",t)},expression:"$store.state.searchVisible"}}),t("phone-validation-modal",{model:{value:e.phoneValidationVisible,callback:function(t){e.phoneValidationVisible=t},expression:"phoneValidationVisible"}}),t("recommendation-comments-modal"),t("register-modal",{attrs:{"show-phone":""},on:{"sign-in":e.onUserConnected},model:{value:e.registerModalVisible,callback:function(t){e.registerModalVisible=t},expression:"registerModalVisible"}})],2)},r=[],s=n("c7eb"),o=n("1da1"),c=(n("99af"),n("caad"),n("b0c0"),n("2ca0"),n("b86e")),u=n("300e"),l=(n("a4d3"),n("e01a"),n("841c"),function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{size:"xl",title:e._f("tr")("Search|Rechercher"),"hide-footer":"",scrollable:"","body-class":"px-0","modal-class":"modal-universal-search"},on:{show:e.onShow},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("div",{staticClass:"search-container"},[t("i",{staticClass:"fal fa-search search-icon",on:{click:function(t){return e.onSearch()}}}),t("e-input",{ref:"searchInput",staticClass:"search-input",attrs:{type:"text",autofocus:"",state:"disabled",placeholder:e._f("tr")("A restaurant, a dish, a member...|Un restaurant, un plat, un membre"),"data-test":"input-universal-search"},on:{keypress:function(t){return t.type.indexOf("key")||13===t.keyCode?e.onSearch():null},debounce:function(t){return e.onSearch()}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),t("i",{staticClass:"fal fa-close close-icon",class:{visible:e.search},on:{click:e.clearSearch}})],1),e.loading?t("div",{staticClass:"loading-container"},[t("div",{staticClass:"icons"},[t("i",{staticClass:"animated slideInLeft fal fa-bowl-chopsticks-noodles fa-0"}),t("i",{staticClass:"animated slideInLeft fal fa-burger-fries fa-1"}),t("i",{staticClass:"animated slideInLeft fal fa-martini-glass-citrus fa-2"}),t("i",{staticClass:"animated slideInLeft fal fa-beer-mug fa-3"}),t("i",{staticClass:"animated slideInLeft fal fa-mug-hot fa-4"}),t("i",{staticClass:"animated slideInLeft fal fa-ice-cream fa-5"})]),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text"},[e._v("Please wait...|Merci de patienter...")]),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"description"},[e._v("Searching the best food for you!|Recheche de la meilleure nourriture pour vous!")])]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}]},[e.trends?[t("div",{staticClass:"x-scroll pt-2 pb-0 px-3"},e._l(e.trends.hashtags,(function(n){return t("b-badge",{key:"top-"+n.hashtag,staticClass:"m cursor-pointer",attrs:{variant:"default"},on:{click:function(t){return e.setSearch("#"+n.hashtag)}}},[e._v("#"+e._s(n.hashtag))])})),1)]:e._e(),!e.searchResults&&e.trends?[e.searchHistory&&e.searchHistory.length>0?[t("h6",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"px-3 pt-3 pb-2"},[e._v("Search History|Historique de recherche")]),t("b-list-group",{staticClass:"search-history compact"},e._l(e.searchHistory,(function(n){return t("b-list-group-item",{key:"search-"+n,on:{click:function(t){return e.setSearch(n)}}},[t("i",{staticClass:"fal fa-clock-rotate-left fa-fw"}),e._v(" "+e._s(n)+" ")])})),1)]:e._e(),t("h6",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"px-3 pt-3 pb-2"},[e._v("Who to follow|Qui suivre")]),t("div",{staticClass:"x-scroll px-3"},e._l(e.trends.members,(function(n){return t("card-badge-member",{key:n.id,attrs:{member:n},nativeOn:{click:function(t){e.visible=!1}}})})),1)]:e.searchResults?[t("div",{staticClass:"text-center mt-3 f-10 opacity-70"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Search result|Résultat de la recherche")])]),e.worldwide?t("div",{staticClass:"mx-3 mt-3 mt-lg-0"}
1,[t("b-badge",{staticClass:"f-400 px-3 py-2",staticStyle:{"font-size":"0.9rem"},attrs:{variant:"outline-primary",pill:""}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Worldwide|Dans le monde entier")]),t("i",{staticClass:"fal fa-times-circle cursor-pointer ml-2",on:{click:function(t){t.stopPropagation(),e.worldwide=!1,e.onSearch(!0)}}})])],1):e._e(),e.searchResults.accounts.length||e.searchResults.recommendations.length||e.searchResults.restaurants.length?e._e():t("div",{staticClass:"text-center"},[t("b-img",{staticClass:"my-4 mx-auto",attrs:{height:"150",src:n("d09c")}}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-13"},[e._v("No result|Aucun résultat trouvé")])],1),e.searchResults.accounts&&e.searchResults.accounts.length?t("div",[t("hr"),t("h6",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-3 pl-1"},[e._v("Members|Membres")]),t("div",{staticClass:"accounts mb-3",attrs:{"data-test":"account-results"}},e._l(e.searchResults.accounts,(function(n,i){return t("card-badge-member",{key:i,attrs:{member:n},nativeOn:{click:function(t){e.addToSearchHistory(),e.visible=!1}}})})),1)]):e._e(),e.searchResults.recommendations&&e.searchResults.recommendations.length>0?t("div",{class:{"large-layout":e.isLargeLayout}},[t("recommendation-section",{attrs:{"auto-display-modal":"",title:"Recommendations",thumbnail:"",items:e.searchResults.recommendations,"hide-view-all":""},nativeOn:{click:function(t){return e.addToSearchHistory()}}})],1):e._e(),e.searchResults.restaurant_items&&e.searchResults.restaurant_items.length>0?[t("hr"),t("h6",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-3 pl-1 mb-2"},[e._v("In Nearby Restaurants|Dans les restaurants autour")]),t("b-row",{staticClass:"restaurant-items mx-1"},e._l(e.searchResults.restaurant_items,(function(n,i){return t("b-col",{key:"items-"+n.id,attrs:{cols:"12",lg:"6"}},[e.isMobileLayout&&i>0?t("hr"):e._e(),t(e.isMobileLayout?"div":"b-card",{tag:"component",staticClass:"restaurant"},[t("b-media",{scopedSlots:e._u([n.logo_image_path?{key:"aside",fn:function(){return[t("e-img",{staticClass:"restaurant-logo",attrs:{"portrait-mode":"",src:n.logo_image_path}})]},proxy:!0}:null],null,!0)},[t("div",{staticClass:"name"},[e._v(e._s(e._f("tr")(n.name))+" "),t("span",{staticClass:"address"},[t("b-badge",{staticClass:"m",attrs:{variant:"light"}},[e._v(e._s(n.distance_km)+"km")]),e._v(" "+e._s(n.postal_code))],1)]),t("div",{staticClass:"description"},[e._v(e._s(e._f("tr")(n.description)))])]),t("div",{staticClass:"items"},e._l(n.items,(function(i){return t("menu-item",{key:"item-"+i.id,attrs:{"restaurant-selected":n,item:i},nativeOn:{click:function(t){e.onItemSelected(i),e.addToSearchHistory()}}})})),1),t("div",{staticClass:"text-right"},[t("b-btn",{staticStyle:{height:"30px"},attrs:{to:"/menu/"+n.id,size:"sm",variant:"outline-primary"},on:{click:function(t){e.addToSearchHistory(),e.visible=!1}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Entire Menu|Menu complet")]),e._v(" "),t("i",{staticClass:"fal fa-chevron-right ml-1"})])],1)],1)],1)})),1)]:e._e(),e.searchResults.restaurants&&e.searchResults.restaurants.length>0?[t("restaurant-section",{attrs:{title:e._f("tr")("More Restaurants|Plus de restaurants"),thumbnail:"",size:"sm","restaurant-list":e.searchResults.restaurants},on:{click:function(t){return e.addToSearchHistory()}}})]:e._e(),e.worldwide?e._e():t("div",{staticClass:"text-center my-3"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-500 f-10 mb-3"},[e._v("Couldn't find what you are looking for?|Vous n'avez pas trouvé ce que vous cherchiez ?")]),t("b-btn",{staticClass:"px-3",attrs:{variant:"outline-primary",pill:""},on:{click:function(t){t.stopPropagation(),e.worldwide=!0,e.onSearch(!0)}}},[t("i",{staticClass:"fal fa-earth-americas mr-2"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Search Worldwide|Chercher dans le monde entier")])])],1)]:e._e()],2)])}),d=[],m=(n("14d9"),n("4e82"),n("a434"),n("e9c4"),n("b64b"),n("edc8")),f=n("936f"),p=n("0e48"),h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"restaurant-section"},[e.noSeparator?e._e():t("hr"),t("div",{staticClass:"title"},[e._v(" "+e._s(e.title)+" ")]),t("div",{staticClass:"x-scroll"},e._l(e.restaurantList,(function(n,i){return t("restaurant-list-item",{key:i,attrs:{value:n,thumbnail:e.thumbnail,size:e.size},nativeOn:{click:function(t){return e.$emit("select-restaurant",n)}}})})),1)])},g=[],b=n("f92b"),v={name:"restaurant-section",components:{RestaurantListItem:b["a"]},props:{title:{type:String},size:{type:String,default:"md"},thumbnail:{type:Boolean},noSeparator:{type:Boolean},category:{type:Object},restaurantList:{type:Array,required:!0}}},_=v,y=(n("5c45"),n("2877")),w=Object(y["a"])(_,h,g,!1,null,null,null),k=w.exports,C=function(){var e=this,t=e._self._c;return t("div",{staticClass:"card-badge-member",attrs:{"data-test":e.member.first_name&&e.member.first_name.toLowerCase()},on:{click:function(t){return t.stopPropagation(),e.reach("/profile/".concat(e.member.id))}}},[t("b-avatar",{attrs:{src:e.member.avatar_url,size:"60",variant:"light"}}),t("div",{staticClass:"ml-3"},[t("div",{staticClass:"f-500"},[e._v(e._s(e._f("shortName")(e.member)))]),t("div",{staticClass:"f-10"},[t("span",[e._v(e._s(e.member.recommendation_count))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v("discoverie|découverte")]),e.member.recommendation_count>
11?t("span",[e._v("s")]):e._e()])])],1)},x=[],S={name:"card-badge-member",props:{member:{required:!0}},data:function(){return{}}},O=S,j=(n("3900"),Object(y["a"])(O,C,x,!1,null,"5cb9e5c7",null)),M=j.exports,N=n("8fe6"),P=n("4292"),$={name:"universal-search",components:{CardBadgeMember:M,EEmptyPlaceholder:P["a"],MenuItem:p["a"],ItemSection:f["a"],RecommendationSection:N["a"],RestaurantSection:k},props:{value:{type:Boolean}},data:function(){return{search:null,loading:!1,trends:null,lastSearch:null,searchResults:null,worldwide:!1,searchHistory:[]}},computed:{visible:{get:function(){return this.value},set:function(e){this.$store.commit("setSearchVisible",e)}}},mounted:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$store.state.geolocation.coords||e.setGeolocationName(e.tr("My position|Ma position")),e.searchHistory=localStorage.getItem("searchHistory"),e.searchHistory?e.searchHistory=JSON.parse(e.searchHistory):e.searchHistory=[];case 1:case"end":return t.stop()}}),t)})))()},deactivated:function(){this.visible=!1},beforeRouteUpdate:function(){this.visible=!1},methods:{onShow:function(){var e=this;this.search=null,this.loading=!1,this.searchResults=null,this.lastSearch=null,this.worldwide=!1,null===this.trends&&(this.trends=!1,m["a"].get("/client/search-trends").then((function(t){e.trends=t.data})))},onSearch:function(){var e=arguments,t=this;return Object(o["a"])(Object(s["a"])().mark((function n(){var i,a;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],t.search&&(i||t.lastSearch!==t.search)){n.next=1;break}return n.abrupt("return");case 1:return t.loading=!0,t.lastSearch=t.search,n.next=2,t.getGeolocation();case 2:return a=n.sent,n.abrupt("return",m["a"].post("/client/universal-search",{query:t.search,latitude:a.coords.latitude,longitude:a.coords.longitude,worldwide:t.worldwide}).then((function(e){e.data.restaurant_items&&e.data.restaurant_items.sort((function(e,t){return!e.logo_image_path&&t.logo_image_path||!e.description&&t.description?1:!t.logo_image_path&&e.logo_image_path||!t.description&&e.description?-1:e.distance_km-t.distance_km})),t.searchResults=e.data})).finally((function(){return t.loading=!1})));case 3:case"end":return n.stop()}}),n)})))()},clearSearch:function(){this.search="",this.lastSearch="",this.$refs.searchInput.focus(),this.searchResults=null},onItemSelected:function(e){this.$router.push("/menu/".concat(e.restaurant_id,"?&itemId=").concat(e.id)),this.visible=!1},setSearch:function(e){this.search=e,this.onSearch()},addToSearchHistory:function(){isStringEmpty(this.search)||-1===this.searchHistory.indexOf(this.search)&&(this.searchHistory.splice(0,0,this.search),this.searchHistory.length>5&&this.searchHistory.removeItemAtIndex(4),localStorage.setItem("searchHistory",JSON.stringify(this.searchHistory)))}}},L=$,A=(n("bcee"),n("236d"),Object(y["a"])(L,l,d,!1,null,"530ef9f0",null)),T=A.exports,I=function(){var e=this,t=e._self._c;return e.isMobileOrTabletLayout?t("b-navbar",{staticClass:"mobile-menu",attrs:{toggleable:"lg",type:e.isLive()?"light":"dark",fixed:"bottom"}},[t("b-navbar-nav",{attrs:{justified:!0}},[e.isSingleMenuUI?e._e():t("b-nav-item",{staticClass:"disable-not-exact-active",attrs:{to:"/"},on:{click:e.onClickFeed}},[t("span",{staticClass:"effect"}),t("i",{staticClass:"fal fa-pot-food"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Feed|Découvertes")])]),e.isSingleMenuUI?e._e():t("b-nav-item",{attrs:{to:"/trends"}},[t("span",{staticClass:"effect"}),t("i",{staticClass:"fal fa-fire"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Trending|Tendances")])]),e.isSingleMenuUI?e._e():t("b-nav-item",{on:{click:function(t){return e.$store.commit("setSearchVisible",!0)}}},[t("span",{staticClass:"effect"}),t("i",{staticClass:"fal fa-search"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Explore|Explorer")])]),t("b-nav-item",{attrs:{to:"/menu"}},[t("span",{staticClass:"effect"}),t("i",{staticClass:"fal fa-hat-chef"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Menu|Menu")])]),e.isSingleMenuUI?t("b-nav-item",{attrs:{to:"/orders"}},[t("span",{staticClass:"effect"}),t("i",{staticClass:"fal fa-shopping-basket"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"}
1,[e._v("Order|Commande")])]):e._e(),!e.isSingleMenuUI&&e.isTabletLayout?t("b-nav-item",{attrs:{to:"/profile"}},[t("i",{staticClass:"fal fa-user"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Profile|Profil")])]):e._e(),t("b-nav-item",{staticClass:"position-relative",on:{click:function(t){e.showMenu=!0}}},[t("span",{staticClass:"effect"}),t("i",{staticClass:"fal fa-bars"}),e.isLive()?[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("More|Plus")])]:[t("div",{staticClass:"name"},[e._v("More ("+e._s(e.getEnv())+")")])],e.user&&e.unreadNotifications.length?t("b-badge",{staticClass:"position-absolute",staticStyle:{top:"0",right:"25%"},attrs:{variant:"primary"}},[e._v(e._s(e.unreadNotifications.length))]):e._e()],2)],1),t("e-action-sheet",{model:{value:e.showMenu,callback:function(t){e.showMenu=t},expression:"showMenu"}},[t("div",[!e.isSingleMenuUI&&e.isAdmin?t("e-action-sheet-item",{attrs:{to:"/assistant",icon:"fal fa-wand-magic-sparkles"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Assistant|Assistant")])]):e._e(),e.isSingleMenuUI?e._e():t("e-action-sheet-item",{attrs:{to:"/restaurants",icon:"fal fa-map-location-dot"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Around Me|Autour de moi")])]),e.user?[t("e-action-sheet-item",{attrs:{to:"/orders",icon:"fal fa-bag-shopping"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("My Orders|Mes commandes")])])]:[t("e-action-sheet-item",{attrs:{icon:"fal fa-right-to-bracket"},on:{click:function(t){return e.showLoginRegisterModal("login")}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Login|Se connecter")])])]],2),t("div",{staticClass:"mt-3"},[e.user?[t("e-action-sheet-item",{attrs:{to:"/profile",icon:"fal fa-user"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("My Profile|Mon profil")])]),e.isSingleMenuUI?e._e():t("e-action-sheet-item",{staticClass:"position-relative",attrs:{to:"/notifications",icon:"fal fa-bell"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Notifications|Notifications")]),e.unreadNotifications.length?t("b-badge",{staticClass:"position-absolute",staticStyle:{top:"8px",left:"25px"},attrs:{variant:"primary"}},[e._v(e._s(e.unreadNotifications.length))]):e._e()],1)]:e._e(),e.isAdmin?t("e-action-sheet-item",{attrs:{to:"/news",icon:"fal fa-newspaper"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("New Content|Contenu récent")])]):e._e()],2),t("div",{staticClass:"mt-3"},[t("e-action-sheet-item",{attrs:{icon:"fal fa-flag"},on:{click:e.changeLanguage}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Français|English")])]),e.user&&e.isAdmin?t("e-action-sheet-item",{attrs:{icon:"fal fa-screwdriver-wrench"},on:{click:function(t){e.adminMenuVisible=!0}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Admin Options|Options Admin")])]):e._e(),t("e-action-sheet-item",{attrs:{to:"/terms-and-conditions"}},[t("div",{staticClass:"d-block nav-link version text-center f-9 f-500",staticStyle:{padding:"0 10px",color:"#555"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Terms and conditions|Termes et conditions")])])]),t("e-action-sheet-item",{on:{click:e.copyVersionToClipboard}},[t("div",{staticClass:"d-block nav-link version text-center f-9 f-500",staticStyle:{padding:"0 10px",color:"#555"}},[e._v(" Application v"+e._s(e.$store.state.appVersion)+" "),e.isLive()?e._e():t("span",{staticClass:"mt-3"},[e._v("On "),t("b",{staticClass:"text-black"},[e._v(e._s(e.getEnv()))])])])])],1)]),e.isAdmin?t("admin-menu",{model:{value:e.adminMenuVisible,callback:function(t){e.adminMenuVisible=t},expression:"adminMenuVisible"}}):e._e()],1):e._e()},V=[],E=function(){var e=this,t=e._self._c;return e.isAdmin?t("div",{staticClass:"admin-menu"},[t("e-action-sheet",{attrs:{title:"Administration",description:"Advanced options for Eye-In Employees|Options avancées pour les employés d'Eye-In"},model:{value:e.visibility,callback:function(t){e.visibility=t},expression:"visibility"}},[e.isNative?t("div",[e.isLive()?e._e():t("e-action-sheet-item",{attrs:{variant:"blue",icon:"fal fa-person-from-portal"},on:{click:e.setLive}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Switch to LIVE|Passer à LIVE")])]),e.isDev()?e._e():t("e-action-sheet-item",{attrs:{variant:"warning",icon:"fal fa-person-to-portal"},on:{click:e.setDev}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]}
1,[e._v("Switch to DEV|Passer à DEV")])])],1):e._e(),t("div",{staticClass:"mt-3"},[e.user?t("e-action-sheet-item",{attrs:{icon:"fal fa-arrow-right-from-bracket"},on:{click:function(t){e.logout(),e.hide()}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Logout|Se déconnecter")])]):e._e(),t("e-action-sheet-item",{on:{click:function(t){e.copyVersionToClipboard(),e.hide()}}},[t("div",{staticClass:"d-block nav-link version text-center f-10 f-500",staticStyle:{padding:"0 10px",color:"#555"}},[e._v(" Application v"+e._s(e.$store.state.appVersion)+" "),e.isLive()?e._e():t("span",{staticClass:"mt-3"},[e._v("On "),t("b",{staticClass:"text-black text-uppercase"},[e._v(e._s(e.getEnv()))])])])])],1)])],1):e._e()},z=[],R={name:"admin-menu",props:{value:{type:Boolean}},computed:{visibility:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},data:function(){return{}},mounted:function(){},methods:{hide:function(){this.visibility=!1},setLive:function(){this.isLive()||(this.$swal(this.tr("Switching to LIVE|Passage à LIVE"),this.tr("Please wait...|Merci de patienter")),this.switchToLive(!0))},setDev:function(){this.isDev()||(this.$swal(this.tr("Switching to DEV|Passage à DEV"),this.tr("Please wait...|Merci de patienter")),this.switchToDev(!0))},copyVersionToClipboard:function(){navigator.clipboard&&(navigator.clipboard.writeText(this.$store.state.appVersion),this.$swal({icon:"success",text:this.tr("Version copied to clipboard|Version copiée dans le presse-papier")}))}}},U=R,D=Object(y["a"])(U,E,z,!1,null,"bbb5fea2",null),B=D.exports,q={name:"mobile-menu",components:{AdminMenu:B},data:function(){return{showMenu:!1,adminMenuVisible:!1}},methods:{onClickFeed:function(){"recommendations-feed"===this.$route.name&&document.querySelector("body").scrollIntoView({block:"start",behavior:"smooth"})},copyVersionToClipboard:function(){navigator.clipboard&&(navigator.clipboard.writeText(this.$store.state.appVersion),this.$swal({icon:"success",text:this.tr("Version copied to clipboard|Version copiée dans le presse-papier")}))}}},F=q,H=(n("1608"),Object(y["a"])(F,I,V,!1,null,"d0d47bd6",null)),G=H.exports,W=function(){var e=this,t=e._self._c;return t("b-nav",{staticClass:"desktop-menu",class:{show:e.$store.state.desktopMenuVisible||e.visible},attrs:{type:"light",vertical:""}},[e.user?[e.isSingleMenuUI?e._e():[t("b-nav-item",{attrs:{to:"/profile"},on:{click:function(t){return e.hide()}}},[t("b-media",{scopedSlots:e._u([{key:"aside",fn:function(){return[t("b-avatar",{attrs:{size:"54",variant:"none",src:e.avatarSrc}})]},proxy:!0}],null,!1,4095169064)},[t("h4",{staticClass:"text-primary mt-2 mb-0"},[e._v(e._s(e.user.first_name)+" "+e._s(e.user.last_name))]),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("View My Profile|Voir mon profil")])])],1)],e.isSingleMenuUI?t("b-nav-item",{attrs:{to:"/account"},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-wrench"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("My Account|Mon compte")])]):e._e(),t("b-nav-item",{attrs:{to:"/orders"},on:{click:function(t){return e.hide()}}},[t("div",{staticClass:"img-container animated",class:{swing:e.$store.state.order.animation}},[t("i",{staticClass:"fal fa-shopping-basket"}),e.orderSize>0?t("b-badge",{staticClass:"img-badge animated",attrs:{variant:"primary"}},[e._v(e._s(e.orderSize))]):e._e()],1),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Orders|Commandes")])]),t("b-nav-item",{attrs:{to:"/edit-profile"},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-user-pen"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Edit My Profile|Modifier mon profil")])])]:[t("b-nav-item",{on:{click:function(t){e.showLoginRegisterModal("login"),e.hide()}}},[t("i",{staticClass:"fal fa-right-to-bracket"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Login|Se connecter")])])],t("hr"),e.isSingleMenuUI?e._e():t("b-nav-item",{attrs:{to:"/",exact:""},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-pot-food"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Discoveries|Découvertes")])]),e.isSingleMenuUI?e._e():t("b-nav-item",{attrs:{to:"/trends"},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-fire"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Trends|Tendances")])]),t("b-nav-item",{attrs:{to:"/menu"},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-hat-chef"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Restaurant Menu|Menu")])]),e.isSingleMenuUI?e._e():t("b-nav-item",{on:{click:function(t){e.$store.commit("setSearchVisible",!0),e.hide()}}},[t("i",{staticClass:"fal fa-search"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Search|Rechercher")])]),e.isSingleMenuUI?e._e():t("b-nav-item",{attrs:{to:"/restaurants"},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-map-location-dot"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v("Around Me|Autour de moi")])]),t("hr"),t("b-nav-item",{on:{click:e.changeLanguage}},[t("i",{staticClass:"fal fa-flag"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Français|English")])]),e.user&&e.isAdmin?[t("hr"),t("b-nav-item",{on:{click:function(t){e.adminMenuVisible=!0,e.hide()}}},[t("i",{staticClass:"fal fa-screwdriver-wrench"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Admin Options|Options Admin")])])]:e._e(),t("router-link",{staticClass:"d-block nav-link bg-light text-center f-9",staticStyle:{padding:"0 10px",color:"#555"},attrs:{to:"/terms-and-conditions"},nativeOn:{click:function(t){return e.hide()}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Terms and conditions|Termes et conditions")])]),t("router-link",{staticClass:"d-block nav-link version bg-light text-center f-9",staticStyle:{padding:"0 10px",color:"#555","border-bottom-left-radius":"inherit","border-bottom-right-radius":"inherit"},attrs:{to:"/about-version"},nativeOn:{click:function(t){return e.hide()}}},[t("span",[e._v("Application v"+e._s(e.$store.state.appVersion))]),e.isLive()?e._e():t("span",{staticClass:"ml-1 mt-3"},[e._v("On "),t("b",{staticClass:"text-black"},[e._v(e._s(e.getEnv()))])])]),e.isAdmin?t("admin-menu",{model:{value:e.adminMenuVisible,callback:function(t){e.adminMenuVisible=t},expression:"adminMenuVisible"}}
1):e._e()],2)},Y=[],K={name:"desktop-menu",components:{AdminMenu:B},props:{visible:{type:Boolean}},computed:{avatarSrc:function(){return this.user?this.user.avatar_url+"?time="+(new Date).getTime():n("bab5")}},data:function(){return{adminMenuVisible:!1}},methods:{hide:function(){this.$store.state.desktopMenuVisible=!1}},watch:{"$store.state.desktopMenuVisible":function(e){e&&(this.$store.state.notificationsVisible=!1)}}},J=K,Z=(n("a837"),Object(y["a"])(J,W,Y,!1,null,"6edf517f",null)),X=Z.exports,Q=n("9665"),ee=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{visible:e.value,title:e._f("tr")("Verify your phone number|Vérifier votre numéro de téléphone"),scrollable:"","no-close-on-backdrop":"","hide-footer":""},on:{hidden:e.close}},[e.user?t("div",{staticClass:"text-center pb-2"},[t("b-img",{staticClass:"my-2",attrs:{src:n("da88")}}),e.codeSent?t("div",{key:"1"},[t("h5",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Enter Code|Entrez le code")]),t("b-input",{staticClass:"code-input mx-auto text-center py-4",attrs:{placeholder:"Code",size:"lg",autocomplete:"off",maxlength:6},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}),t("div",{staticClass:"f-500 mt-4"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("We have sent a code to|Nous avons envoyé un code au")]),t("div",{staticClass:"text-primary"},[e._v(e._s(e.user.phone_number))])])],1):t("div",{key:"0"},[t("h5",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Your phone number|Votre numéro de téléphone")]),t("b-form-group",{staticClass:"mx-auto mb-4",staticStyle:{width:"300px"}},[t("e-tel-input",{attrs:{"show-feedback":"",maxlength:20},on:{input:function(t){e.edit=!0}},model:{value:e.user.phone_number,callback:function(t){e.$set(e.user,"phone_number",t)},expression:"user.phone_number"}})],1),t("e-button-async",{staticClass:"py-2 px-4",staticStyle:{"font-size":"1.2rem"},attrs:{variant:"primary",disabled:!e.phoneNumberValid},on:{"async-click":e.sendCode}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Receive Code|Recevoir le code")]),t("i",{staticClass:"fal fa-chevron-right ml-2"})])],1),e.code&&6===e.code.length?t("e-button-async",{staticClass:"mt-3",attrs:{variant:"primary",size:"lg"},on:{"async-click":e.verifyPhoneNumber}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Verify|Vérifier")])]):e._e()],1):e._e(),t("div",{attrs:{slot:"modal-footer"},slot:"modal-footer"},[t("b-btn",{attrs:{variant:"transparent"},on:{click:function(t){return t.stopPropagation(),e.close.apply(null,arguments)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Cancel|Annuler")])])],1)])},te=[],ne=n("3280"),ie=n("0e14"),ae={name:"phone-validation-modal",components:{ETelInput:ne["a"]},props:{value:{type:Boolean,required:!0}},data:function(){return{codeSent:!1,code:null}},computed:{phoneNumberValid:function(){return ie["a"].testPhoneNumber(this.user.phone_number)}},methods:{close:function(){this.$emit("input",!1),this.codeSent=!1,this.code=null},sendCode:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};return m["a"].post("/client/account/send-phone-verification-code",{phone_number:this.user.phone_number}).then((function(){e.codeSent=!0})).catch((function(t){return e.handleError(t)})).finally((function(){return t()}))},verifyPhoneNumber:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};return m["a"].post("/client/account/verify-phone-number",{code:this.code}).then((function(){return e.user.phone_verified=!0,e.close(),e.$swal({icon:"success",title:e.tr("Phone number verified|Numéro vérifié"),text:e.tr("Your phone number has been successfully verified|Votre numéro a bien été vérifié")})})).catch((function(t){return e.handleError(t)})).finally((function(){return t()}))},handleError:function(e){var t=e.response.data;return console.error(t),"missing_phone_number"===t?this.$swal({icon:"info",title:this.tr("Missing phone number|Numéro de téléphone manquant"),text:this.tr("No phone number linked to your account|Aucun numéro n'est associé à votre compte")}):"phone_already_verified"===t?this.$swal({icon:"info",title:this.tr("Phone number already verified|Numéro de téléphone déjà vérifié"),text:this.tr("Your phone number has already been verified|Votre numéro de téléphone a déjà été vérifié")}):"wrong_code"===t?this.$swal({icon:"info",title:this.tr("Wrong code|Code invalide"),text:this.tr("This code is incorrect|Le code que vous avez saisi est incorrect")}):void 0}}},re=ae,se=(n("6663"),Object(y["a"])(re,ee,te,!1,null,"16df52c8",null)),oe=se.exports,ce=n("2ad9"),ue=n("aefb"),le=n("eddb"),de=n("f365"),me=(n("fb6a"),function(){var e=this,t=e._self._c;return t("b-nav",{staticClass:"notifications-menu",class:{show:e.$
1store.state.notificationsVisible},attrs:{type:"light",vertical:""}},[t("b-nav-text",[t("h4",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"my-0"},[e._v("Activity|Activité")])]),t("hr"),e.notifications.length?t("div",[e._l(e.notifications.slice(0,5),(function(e){return t("b-nav-item",{key:e.id},[t("notification-item",{attrs:{notification:e,"image-size":40}})],1)})),t("b-nav-item",{staticClass:"text-center",on:{click:function(t){e.reach("/notifications"),e.$store.state.notificationsVisible=!1}}},[t("b-link",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("See all|Afficher plus")])],1)],2):t("b-nav-item",{staticClass:"text-center text-italic f-500 py-2",attrs:{disabled:""}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("No Activity|Aucune activité")])])],1)}),fe=[],pe=(n("d81d"),n("e9f5"),n("7d54"),n("ab43"),n("159b"),n("8f82")),he={name:"notifications-menu",components:{NotificationItem:pe["a"]},watch:{"$store.state.notificationsVisible":function(e){var t=this;if(!e){if(!this.unreadNotifications.length)return;return m["a"].post("/client/account/notifications/read",{notification_ids:this.unreadNotifications.map((function(e){return e.id}))}).then((function(){t.unreadNotifications.forEach((function(e){return e.read=!0}))})).catch((function(e){return console.error(e.response.data)}))}this.$store.state.desktopMenuVisible=!1}}},ge=he,be=(n("a502b"),Object(y["a"])(ge,me,fe,!1,null,"0cd9369d",null)),ve=be.exports,_e=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{visible:e.state.visible,title:e.title,scrollable:"","no-close-on-backdrop":"","dialog-class":"h-100","footer-class":"d-block","data-test":"modal-comments"},on:{show:e.onShow,shown:e.onShown,hidden:e.onHide}},[e.loading?t("div",{staticClass:"text-center"},[t("b-spinner",{staticClass:"mb-2"}),t("div",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Loading comments|Chargement des commentaires")])],1):e.comments.length?t("div",{staticClass:"translate-from-top"},[e._l(e.commentsFiltered,(function(n,i){return t("div",{key:i,attrs:{"data-test":"comment-".concat(i)}},[t("div",{staticClass:"d-flex mb-2"},[t("user-avatar",{staticClass:"cursor-pointer",staticStyle:{"min-width":"42px"},attrs:{src:n.avatar_url,size:"42"},on:{click:function(t){return e.reachProfile(n.account_id)}}}),t("div",{staticClass:"ml-2"},[t("div",{staticClass:"comment d-flex align-items-center"},[t("div",{directives:[{name:"touch",rawName:"v-touch:touchhold",value:function(){return e.isMobileOrTabletLayout&&e.moreActions(n)},expression:"() => isMobileOrTabletLayout && moreActions(comment)",arg:"touchhold"}],key:n.id,staticClass:"bubble",class:{responding:e.respondingTo&&n.id===e.respondingTo.id,"user-select-none":e.isMobileOrTabletLayout}},[t("div",{staticClass:"f-10"},[t("b-link",{staticClass:"text-dark f-500",on:{click:function(t){return t.stopPropagation(),e.reachProfile(n.account_id)}}},[t("span",[e._v(e._s(e._f("shortName")(n)))])]),n.certification?t("badge-certification",{staticClass:"d-inline-block ml-1",attrs:{certification:n.certification,dense:""}}):e._e(),e.isBlocked(n.account_id)?t("span",{staticClass:"text-italic ml-1"},[e._v("("+e._s(e.tr("blocked|bloqué"))+")")]):e.isReported(n.id)?t("span",{staticClass:"text-italic ml-1"},[e._v("("+e._s(e.tr("reported|signalé"))+")")]):e._e()],1),n.deleted?t("div",{staticClass:"f-11 text-italic"},[e._v(e._s(e.tr("Comment deleted|Commentaire supprimé")))]):t("div",{staticClass:"f-11",attrs:{"data-test":"text"}},[e._v(e._s(n.text))])]),e.isMobileOrTabletLayout||n.deleted?e._e():t("div",{staticClass:"more-actions ml-3",attrs:{"data-test":"btn-more"},on:{click:function(t){return t.stopPropagation(),e.moreActions(n)}}},[t("i",{staticClass:"fal fa-ellipsis-h"})])]),t("div",{staticClass:"ml-2"},[t("span",{staticClass:"f-9 opacity-80 mr-2"},[e._v(e._s(e.formatTime(n.date_creation)))]),n.deleted||n.blocked_by_author?e._e():t("b-link",{staticClass:"text-dark f-500 f-9 opacity-80",attrs:{disabled:n.deleted,"data-test":"btn-answer"},on:{click:function(t){return t.stopPropagation(),e.answer(n)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Answer|Répondre")])])],1),!e.mandatoryComment&&n.response_count?t("div",{staticClass:"f-500 opacity-80 f-10 mt-1 ml-2"}
1,[t("i",{staticClass:"fal fa-arrow-turn-down-right mr-2"}),n.response_count&&!n.responses?t("b-link",{staticClass:"text-dark",attrs:{disabled:n.deleted||n.blocked_by_author},on:{click:function(t){return t.stopPropagation(),e.loadCommentResponses(n,!0)}}},[t("span",[e._v(e._s(n.response_count)+" ")]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("answer|réponse")]),n.response_count>1?t("span",[e._v("s")]):e._e()]):n.loadingResponses&&n.responses&&!n.responses.length?t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Loading...|Chargement...")])]):t("b-link",{staticClass:"text-dark",attrs:{disabled:n.deleted},on:{click:function(t){t.stopPropagation(),e.$set(n,"responses",null),e.$forceUpdate()}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Hide|Masquer les réponses")])])],1):e._e(),Array.isArray(n.responses)&&n.responses.length?t("div",{staticClass:"mt-1"},e._l(n.responses,(function(i,a){return t("div",{key:a,staticClass:"d-flex ml-3",attrs:{"data-test":"response-".concat(a)}},[t("user-avatar",{staticClass:"cursor-pointer",staticStyle:{"min-width":"35px"},attrs:{src:i.avatar_url,size:"35"},on:{click:function(t){return e.reachProfile(i.account_id)}}}),t("div",{staticClass:"comment ml-2 mb-1"},[t("div",{staticClass:"d-flex align-items-center"},[t("div",{directives:[{name:"touch",rawName:"v-touch:touchhold",value:function(){return e.isMobileOrTabletLayout&&e.moreActions(i)},expression:"() => isMobileOrTabletLayout && moreActions(response)",arg:"touchhold"}],key:i.id,staticClass:"bubble",class:{responding:e.respondingTo&&i.id===e.respondingTo.id}},[t("div",{staticClass:"f-10"},[t("b-link",{staticClass:"text-dark f-500",on:{click:function(t){return t.stopPropagation(),e.reachProfile(i.account_id)}}},[t("span",[e._v(e._s(e._f("shortName")(i)))])]),i.certification?t("badge-certification",{staticClass:"d-inline-block ml-1",attrs:{certification:i.certification,dense:""}}):e._e(),e.isBlocked(i.account_id)?t("span",{staticClass:"text-italic ml-1"},[e._v("("+e._s(e.tr("blocked|bloqué"))+")")]):e.isReported(i.id)?t("span",{staticClass:"text-italic ml-1"},[e._v("("+e._s(e.tr("reported|signalé"))+")")]):e._e()],1),i.deleted?t("div",{staticClass:"f-11 text-italic"},[e._v(e._s(e.tr("Comment deleted|Commentaire supprimé")))]):t("div",{staticClass:"f-11",attrs:{"data-test":"text"}},[e._v(e._s(i.text))])]),e.isMobileOrTabletLayout||i.deleted?e._e():t("div",{staticClass:"more-actions ml-3",attrs:{"data-test":"btn-more"},on:{click:function(t){return t.stopPropagation(),e.moreActions(i)}}},[t("i",{staticClass:"fal fa-ellipsis-h"})])]),t("div",{staticClass:"ml-2"},[t("span",{staticClass:"f-9 opacity-80 mr-2"},[e._v(e._s(e.formatTime(i.date_creation)))]),n.deleted||i.deleted||i.blocked_by_author?e._e():t("b-link",{staticClass:"text-dark f-500 f-9 opacity-80",attrs:{disabled:i.deleted},on:{click:function(t){return t.stopPropagation(),e.answer(i)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Answer|Répondre")])])],1)])],1)})),0):e._e(),e.hasMoreResponses(n)&&!n.loadingResponses?t("div",{staticClass:"f-500 opacity-80 f-10 mt-1 ml-2"},[t("i",{staticClass:"fal fa-arrow-turn-down-right mr-2"}),e.mandatoryResponse?t("b-link",{staticClass:"text-dark",on:{click:function(t){return t.stopPropagation(),e.loadCommentResponses(n,!0)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Show all answers|Voir toutes les réponses")])]):t("b-link",{staticClass:"text-dark",on:{click:function(t){return t.stopPropagation(),e.loadCommentResponses(n)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Show more answers|Voir plus de réponses")]),t("span",{staticClass:"ml-1"},[e._v("("+e._s(n.response_count-n.responses.length)+")")])])],1):e._e(),n.loadingResponses&&n.responses&&n.responses.length?t("div",{staticClass:"f-500 opacity-80 f-10 mt-1 ml-2"},[t("i",{staticClass:"fal fa-arrow-turn-down-right mr-2"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Loading...|Chargement...")])]):e._e()])],1)])})),t("div",{key:"more",staticClass:"d-flex align-items-center",staticStyle:{gap:"1rem"}},[t("hr",{staticClass:"flex-1",staticStyle:{background:"rgba(0,0,0,0.1)"}}),e.mandatoryComment?t("b-link",{staticClass:"text-dark",on:{click:function(t){return t.stopPropagation(),e.loadComments(!0)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-11 f-500 opacity-80"},[e._v("Show all comments|Voir tous les commentaires")])]):e.loadingMore?t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-11 f-500 opacity-80"},[e._v("Loading...|Chargement...")])]):e.hasMoreComments?t("b-link",{staticClass:"text-dark",on:{click:function(t){return t.stopPropagation(),e.loadComments()}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-11 f-500 opacity-80"},[e._v("Show more comments|Voir plus de commentaires")]),t("span",{staticClass:"f-11 f-500 opacity-80 ml-1"},[e._v("("+e._s(e.recommendation.root_comments-e.comments.length)+")")])]):t("span",{staticClass:"text-dark"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-11 f-500 opacity-80"},[e._v("No more comment|Fin des commentaires")])]),t("hr",{staticClass:"flex-1",staticStyle:{background:"rgba(0,0,0,0.1)"}})],1),t("e-action-sheet",{model:{value:e.actions.visible,callback:function(t){e.$set(e.actions,"visible",t)},expression:"actions.visible"}},[t("div",[t("e-action-sheet-item",{attrs:{icon:"fal fa-comment"},on:{click:function(t){return e.answer(e.actions.comment,300)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Answer|Répondre")])]),t("e-action-sheet-item",{attrs:{icon:"fal fa-copy"},on:{click:function(t){return e.copy(e.actions.comment)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Copy|Copier")])])],1),e.user&&e.actions.comment?t("div",{staticClass:"mt-3"},[e.actions.comment.account_id!==e.user.id?t("e-action-sheet-item",{attrs:{icon:"fal fa-flag",disabled:e.isReported(e.actions.comment.id)},on:{click:e.reportComment}},[e.isReported(e.actions.comment.id)?t("span",[e._v(e._s(e.tr("Comment reported|Commentaire signalé")))]):t("span",[e._v(e._s(e.tr("Report an abuse|Signaler un abus")))])]):e._e(
1),e.actions.comment.account_id!==e.user.id?t("e-action-sheet-item",{attrs:{icon:"fal fa-ban",variant:"danger","data-test":"btn-block"},on:{click:e.blockComment}},[e.isBlocked(e.actions.comment.account_id)?t("span",[e._v(e._s(e.tr("Unblock this person|Débloquer cette personne")))]):t("span",[e._v(e._s(e.tr("Block this person|Bloquer cette personne")))])]):e._e(),e.actions.comment.account_id===e.user.id?t("e-action-sheet-item",{attrs:{icon:"fal fa-trash",variant:"danger","data-test":"btn-delete"},on:{click:e.deleteComment}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Delete|Supprimer")])]):e._e()],1):e._e()])],2):t("div",[t("e-empty-placeholder",{attrs:{title:"No Comment Yet|Pas encore de commentaires",description:"Be the first to comment this Discovery!|Soyez la première personne à commenter cette découverte!","img-src":n("8a82")}})],1),t("div",{attrs:{slot:"modal-footer"},slot:"modal-footer"},[e.respondingTo?t("div",{staticClass:"f-10 d-flex align-items-center pb-3"},[t("div",{staticClass:"overflow-hidden flex-1 mr-3"},[t("div",{staticClass:"f-500"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Réponse à")]),t("span",{staticClass:"ml-1"},[e._v(e._s(e.respondingTo.first_name))])]),t("div",{staticClass:"opacity-80 text-ellipsis"},[e._v(e._s(e.respondingTo.text))])]),t("button",{staticClass:"close-light-btn ml-auto",on:{click:function(t){t.stopPropagation(),e.respondingTo=null}}},[t("i",{staticClass:"fal fa-times"})])]):e._e(),e.user?e._isFollowing?e._e():t("div",{staticClass:"text-center"},[e.author?t("div",{staticClass:"f-10 mb-2"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("You need to follow|Vous devez suivre")]),t("span",{staticClass:"f-700 mx-1"},[e._v(e._s(e._f("userName")(e.author)))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("in order to post a comment|pour poster un commentaire")])]):e._e(),e.author?t("button-follow",{attrs:{account:e.author}}):e._e()],1):t("div",{staticClass:"text-center"},[t("b-btn",{attrs:{variant:"primary"},on:{click:function(t){t.stopPropagation(),e.showLoginRegisterModal("login"),e.onHide()}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Login to write a comment|Connectez-vous pour écrire un commentaire")])])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e._isFollowing,expression:"_isFollowing"}],staticStyle:{"margin-top":"-5px"}},[t("div",{staticClass:"text-right f-9 mr-2",class:{"text-danger":(e.comment?e.comment.length:0)>500}},[e._v(e._s(e.comment?e.comment.length:0)+" / 500")]),t("div",{staticClass:"d-flex"},[e.user?t("user-avatar",{staticClass:"cursor-pointer mr-3",attrs:{src:e.user.avatar_url,size:"42"},on:{click:function(t){return t.stopPropagation(),e.reachProfile(e.user.id)}}}):e._e(),t("div",{staticClass:"position-relative flex-1"},[t("div",{ref:"comment",staticClass:"comment-input",class:{disabled:e.isBlockedByAuthor},attrs:{enterkeyhint:"send",contenteditable:"true",role:"textbox",spellcheck:"true","aria-label":e.placeholder,"data-test":"comment-input"},on:{input:e.onInput,keydown:function(t){return t.type.indexOf("key")||13===t.keyCode?(t.preventDefault(),e.writeComment.apply(null,arguments)):null},paste:e.onPaste}}),e.isBlockedByAuthor?t("div",{staticClass:"blocked-placeholder"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("This discovery's author has blocked you|L'auteur de cette découverte vous a bloqué")])]):e.comment&&e.comment.length?e._e():t("div",{staticClass:"placeholder"},[e._v(e._s(e.placeholder))]),t("button",{staticClass:"publish-btn",attrs:{disabled:e.isBlockedByAuthor},on:{click:function(t){return t.stopPropagation(),e.writeComment.apply(null,arguments)}}},[t("i",{staticClass:"fal fa-send"})])])],1)])])])},ye=[],we=n("b85c"),ke=n("53ca"),Ce=n("2909"),xe=(n("4de4"),n("7db0"),n("c740"),n("910d"),n("f665"),n("2532"),n("498a"),n("71c6")),Se=n("3c98"),Oe=n("7715"),je=n("809d"),Me={name:"recommendation-comments-modal",components:{ButtonFollow:je["a"],BadgeCertification:Oe["a"],EEmptyPlaceholder:P["a"],UserAvatar:xe["a"]},data:function(){return{loading:!1,loadingMore:!1,sendingComment:!1,recommendation:null,comments:[],comment:null,respondingTo:null,actions:{visible:!1,
1comment:null},mandatoryComment:!1,mandatoryResponse:!1}},computed:{state:function(){return this.$store.state.commentsModal},title:function(){return this.recommendation?this.tr(this.recommendation.name):this.tr("Comments|Commentaires")},placeholder:function(){return this.tr("Write a comment...|Écrivez un commentaire...")},commentsFiltered:function(){return this.comments.filter((function(){return!0})).sort((function(e,t){return new Date(t.date_creation)-new Date(e.date_creation)}))},hasMoreComments:function(){return this.recommendation&&this.comments.length<this.recommendation.root_comments},author:function(){return this.recommendation?{id:this.recommendation.account_id,first_name:this.recommendation.first_name,last_name:this.recommendation.last_name}:null},_isFollowing:function(){return!(!this.recommendation||!this.user)&&(this.recommendation.account_id===this.user.id||Array.isArray(this.user.following)&&this.user.following.includes(this.recommendation.account_id))},isBlockedByAuthor:function(){return this.recommendation&&this.recommendation.current_user_blocked}},methods:{onShow:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.mandatoryComment=!1,e.mandatoryResponse=!1,e.respondingTo=null,e.recommendation=null,e.comment="",e.comments=[],e.sendingComment=!1,!e.state.commentId){t.next=2;break}return t.next=1,e.loadCommentContext(e.state.commentId);case 1:t.next=3;break;case 2:return t.next=3,e.loadComments(!0);case 3:return t.abrupt("return",e.setupSockets());case 4:case"end":return t.stop()}}),t)})))()},onShown:function(){this.$refs.comment&&(this.$refs.comment.innerText=this.comment)},onHide:function(){An.$emit("close-comments",this.state.recommendationId),this.$store.commit("toggleCommentsModal",{visible:!1,recommendationId:null,commentId:null,autofocus:!1}),this.user&&this.$socket.recommendationComments.emit("leave_recommendation_comments")},setupSockets:function(){var e=this;this.user&&this.recommendation&&(this.$socket.recommendationComments.emit("join_recommendation_comments",{accountId:this.user.id,recommendationId:this.recommendation.id}),this.$socket.recommendationComments.on("new_comment",(function(t){var n=t.comment,i=t.parent;if(n)if(n.parent_id){var a=e.comments.find((function(e){return e.id===n.parent_id}));a&&(i&&(a.response_count=i.response_count),Array.isArray(a.responses)&&(a.responses.push(n),a.responses=a.responses.filter((function(e,t){return t===a.responses.findIndex((function(t){return t.id===e.id}))}))))}else e.comments.find((function(e){return e.id===n.id}))||(e.comments.push(n),e.comments=e.comments.filter((function(t,n){return n===e.comments.findIndex((function(e){return e.id===t.id}))})))})),this.$socket.recommendationComments.on("delete_comment",(function(t){if(t)if(t.parent_id){var n=e.comments.find((function(e){return e.id===t.parent_id}));if(n&&(n.response_count--,Array.isArray(n.responses))){var i=n.responses.find((function(e){return e.id===t.id}));i&&e.$set(i,"deleted",!0)}}else{var a=e.comments.find((function(e){return e.id===t.id}));a&&e.$set(a,"deleted",!0)}})))},loadComments:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state.recommendationId&&(t||!this.loading)){this.mandatoryComment=!1;var n=this.comments.filter((function(e){return!e.forced})),i=n.length?n[n.length-1].date_creation:null;return t&&(this.loading=!0),this.loadingMore=!0,m["a"].get("/client/comments/recommendation/".concat(this.state.recommendationId),{continuation:t?null:i}).then((function(n){var i;n.data.recommendation&&(e.recommendation=n.data.recommendation),t?e.comments=n.data.comments:Array.isArray(n.data.comments)&&(i=e.comments).push.apply(i,Object(Ce["a"])(n.data.comments)),e.comments=e.comments.filter((function(t,n){var i=e.comments.findIndex((function(e){return e.id===t.id}));return n===i})),e.state.autofocus&&setTimeout((function(){e.focus()}),200)})).catch((function(t){return e.handleError(t)})).finally((function(){e.loading=!1,e.loadingMore=!1}))}},loadCommentResponses:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.responses||this.$set(e,"responses",[]),n&&(this.mandatoryResponse=!1);var i=e.responses.filter((function(e){return!e.forced})),a=i.length?i[i.length-1].date_creation:null;return this.$set(e,"loadingResponses",!0),m["a"].get("/client/comment/responses/".concat(e.id),{continuation:n?null:a}).then((function(t){var i;n?e.responses=t.data:(i=e.responses).push.apply(i,Object(Ce["a"])(t.data)),e.responses=e.responses.filter((function(t,n){return n===e.responses.findIndex((function(e){return e.id===t.id}))}))})).catch((function(e){return t.handleError(e)}
1)).finally((function(){return t.$set(e,"loadingResponses",!1)}))},loadCommentContext:function(e){var t=this;if(e)return this.loading=!0,m["a"].get("/client/comment/context/".concat(e)).then((function(n){if(!n.data)return t.$swal({icon:"info",title:t.tr("This comment doesn't exist anymore|Ce commentaire n'existe plus")}),t.loadComments(!0);var i=n.data,a=i.comment,r=i.recommendation;if(!a)return t.loadComments(!0);r&&(t.recommendation=r),t.comments.push(a);var s=null;if(a.id===e?s=a:Array.isArray(a.responses)&&(s=a.responses.find((function(t){return t.id===e}))),!s)return t.loadComments(!0);t.respondingTo=s,t.mandatoryComment=!0,a.id!==e&&(t.mandatoryResponse=!0),a.responses||t.loadCommentResponses(a,!0),setTimeout((function(){t.focus()}),200)})).catch((function(e){return t.handleError(e)})).finally((function(){return t.loading=!1}))},writeComment:function(){var e=this;if(!this.sendingComment&&this.recommendation&&"string"===Object(ke["a"])(this.comment)&&0!==this.comment.trim().length)return this.comment.trim().length>500?this.handleError({response:{data:"text_too_long"}}):(this.sendingComment=!0,m["a"].post("/client/comment/recommendation/create/".concat(this.recommendation.id),{text:this.comment,parent_id:this.respondingTo?this.respondingTo.id:null}).then((function(t){if(e.comment="",e.$refs.comment.innerText="",t.data.response_count=0,t.data.parent_id){var n=e.comments.find((function(e){return e.id===t.data.parent_id}));if(!n)return;n.responses||(n.responses=[]),t.data.forced=e.hasMoreResponses(n),n.response_count++,n.responses.push(t.data),e.$socket.recommendationComments.emit("new_comment",{comment:t.data,parent:n})}else t.data.forced=e.hasMoreComments,e.comments.push(t.data),e.$socket.recommendationComments.emit("new_comment",{comment:t.data,parent:null});e.respondingTo=null})).catch((function(t){return e.handleError(t)})).finally((function(){return e.sendingComment=!1})))},deleteComment:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var n,i,a,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.actions.comment){t.next=1;break}return t.abrupt("return",Promise.resolve());case 1:return t.next=2,e.$swal({icon:"info",title:e.tr("Delete this comment?|Supprimer le commentaire ?"),text:e.tr("This action is irreversible|Cette action est irréversible"),buttons:[e.tr("Cancel|Annuler"),e.tr("Delete|Supprimer")],dangerMode:!0});case 2:if(n=t.sent,n){t.next=3;break}return t.abrupt("return",Promise.resolve());case 3:return e.actions.comment.parent_id?(i=e.comments.find((function(t){return t.id===e.actions.comment.parent_id})),a=i.responses.findIndex((function(t){return t.id===e.actions.comment.id})),i.responses.splice(a,1),i.response_count--):(r=e.comments.findIndex((function(t){return t.id===e.actions.comment.id})),e.comments.splice(r,1)),e.respondingTo&&e.respondingTo.id===e.actions.comment.id&&(e.respondingTo=null),t.abrupt("return",m["a"].delete("/client/comment/recommendation/".concat(e.actions.comment.id)).then((function(){e.$socket.recommendationComments.emit("delete_comment",e.actions.comment)})).catch((function(t){return e.handleError(t)})));case 4:case"end":return t.stop()}}),t)})))()},blockComment:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var n,i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.actions.comment&&e.user){t.next=1;break}return t.abrupt("return");case 1:if(e.actions.comment.account_id!==e.user.id){t.next=2;break}return t.abrupt("return");case 2:if(n=e.actions.comment.account_id,e.user.blocked.includes(n)){t.next=4;break}return t.next=3,e.$swal({icon:"info",title:e.tr("Block this person|Bloquer cette personne"),text:e.tr("This person will no longer be able to comment your discoveries|Cette personne ne pourra plus commenter vos découvertes"),buttons:[e.tr("Cancel|Annuler"),e.tr("Block|Bloquer")],dangerMode:!0});case 3:if(i=t.sent,i){t.next=4;break}return t.abrupt("return");case 4:return t.abrupt("return",e.load({message:e.tr("Please wait...|Chargement en cours...")},(function(){return m["a"].post("/client/account/block/".concat(n)).then((function(t){if(t.data)e.user.blocked.includes(n)||e.user.blocked.push(n),e.$swal(e.tr("User blocked|Utilisateur bloqué"),"","success");else{var i=e.user.blocked.indexOf(n);e.user.blocked.splice(i,1),e.$swal(e.tr("User unblocked|Utilisateur débloqué"),"","success")}var a,r=Object(we["a"])(e.comments);try{for(r.s();!(a=r.n()).done;){var s=a.value;if(s.account_id===n&&(s.blocked_by_author=t.data),Array.isArray(s.responses)){var o,c=Object(we["a"])(s.responses);try{for(c.s();!(o=c.n()).done;){var u=o.value;u.account_id===n&&(u.blocked_by_author=t.data)}}catch(l){c.e(l)}finally{c.f()}}}}catch(l){r.e(l)}finally{r.f()}})).catch((function(t){return e.handleError(t)}))}
1)));case 5:case"end":return t.stop()}}),t)})))()},isBlocked:function(e){return this.user&&Array.isArray(this.user.blocked)&&this.user.blocked.includes(e)},reportComment:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var n,i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.user&&e.actions.comment){t.next=1;break}return t.abrupt("return");case 1:if(n=e.actions.comment.id,e.recommendation.reported_comments.includes(n)){t.next=3;break}return t.next=2,e.$swal({icon:"info",title:e.tr("Report this comment?|Signaler ce commentaire ?"),text:"",buttons:[e.tr("Cancel|Annuler"),e.tr("Report|Signaler")],dangerMode:!0});case 2:if(i=t.sent,i){t.next=3;break}return t.abrupt("return");case 3:return t.abrupt("return",e.load({message:e.tr("Please wait...|Chargement en cours...")},(function(){return m["a"].post("/client/comment/recommendation/report/".concat(n)).then((function(t){if(t.data)e.recommendation.reported_comments.includes(n)||e.recommendation.reported_comments.push(n),e.$swal(e.tr("Comment reported|Commentaire signalé"),"","success");else{var i=e.recommendation.reported_comments.indexOf(n);e.recommendation.reported_comments.splice(i,1),e.$swal(e.tr("Report cancelled|Signalement annulé"),"","success")}})).catch((function(t){return e.handleError(t)}))})));case 4:case"end":return t.stop()}}),t)})))()},isReported:function(e){return!(!this.recommendation||!this.user)&&(Array.isArray(this.recommendation.reported_comments)&&this.recommendation.reported_comments.includes(e))},onInput:function(e){this.comment=e.target.innerText},onPaste:function(e){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData("text/plain"),n=window.getSelection();if(!n.rangeCount)return!1;n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(t)),n.collapseToEnd(),this.$refs.comment&&(this.comment=this.$refs.comment.innerText)},formatTime:function(e){return this.$moment().diff(this.$moment(e),"years")>0?this.$moment(e).format("d MMM y HH:mm"):(t=this.$moment().diff(this.$moment(e),"months"),t>0?this.$moment(e).format("d MMM HH:mm"):(t=this.$moment().diff(this.$moment(e),"days"),t>0?"".concat(t).concat(this.tr("d|j")):(t=this.$moment().diff(this.$moment(e),"hours"),t>0?"".concat(t,"h"):(t=this.$moment().diff(this.$moment(e),"minutes"),t>0?"".concat(t,"min"):(t=this.$moment().diff(this.$moment(e),"seconds"),t>0?"".concat(t,"sec"):this.tr("now|à l'instant"))))));var t},answer:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.user)return this.$swal({title:this.tr("Login in order to post a comment|Connectez-vous pour poster un commentaire"),buttons:[this.tr("Cancel|Annuler"),this.tr("Login|Se connecter")]}).then((function(e){if(e)return t.onHide(),t.reach("/login")}));setTimeout((function(){t.focus()}),n),this.respondingTo=e},copy:function(e){var t=this;return e&&"string"===Object(ke["a"])(e.text)?Se["a"].write({string:e.text.trim()}).then((function(){return t.$swal(t.tr("Text copied|Texte copié"),t.tr("Text copied into clipboard|Le texte a été copié dans le presse-papier"),"success")})):Promise.resolve()},moreActions:function(e){e&&!e.deleted&&(this.$refs.comment&&this.$refs.comment.blur(),this.actions.comment=e,this.actions.visible=!0)},reachProfile:function(e){return this.onHide(),An.$emit("redirect"),this.reach("/profile/".concat(e))},focus:function(){this.isBlockedByAuthor||this.$refs.comment&&this.$refs.comment.focus()},hasMoreResponses:function(e){return Array.isArray(e.responses)&&e.response_count>e.responses.length},handleError:function(e){var t=this;if(!e.response)return console.error(e);var n=e.response.data;if(console.error(n),"object"===Object(ke["a"])(n)&&"bad_words"===n.status)return this.$swal(this.tr("Bad words|Vocabulaire incorrect"),n.bad_words,"info");switch(n){case"bad_recommendation_id":return this.$swal(this.tr("Not found|Introuvable"),this.tr("We were unable to find this discovery|Nous n'avons pas pu retrouver cette découverte"),"info");case"bad_comment_id":return this.$swal(this.tr("Not found|Introuvable"),this.tr("We were not able to find this comment|Nous n'avons pas pu retrouver ce commentaire"),"info");case"text_wrong_type":return this.$swal(this.tr("Type mismatch|Mauvais format"),this.tr("Your comment needs to be a text|Votre commentaire doit être textuel"),"info");case"text_too_long":return this.$swal(this.tr("Text too long|Texte trop long"),this.tr("Your comment is too long|Votre commentaire est trop long"),"info");case"text_empty":return this.$swal(this.tr("Text is empty|Le texte est vide"),this.tr("Your comment is empty|Votre c
1ommentaire est vide"),"info");case"contains_url":return this.$swal(this.tr("Text contains URL|Le texte contient une URL"),this.tr("Your comment should not contain any URL|Votre commentaire ne doit pas contenir d'URL"),"info");case"illegal_char":return this.$swal(this.tr("Illegal characters|Caractère inconnu"),this.tr("Your comment contains illegal characters|Votre commentaire contient des caractères inconnus"),"info");case"bad_parent_id":return this.$swal(this.tr("Impossible to answer|Réponse impossible"),this.tr("Impossible to answer this comment|Impossible de répondre à ce commentaire"),"info");case"parent_blocked":return this.$swal(this.tr("Impossible to answer|Réponse impossible"),this.tr("The comment you are responding to has been blocked by this discovery's author|Le commentaire auquel vous répondez a été bloqué par l'auteur de cette découverte"),"info");case"follow_required":return this.$swal(this.tr("Follow required|Follow requis"),this.tr("You need to follow this person in order to post a comment|Vous devez suivre cette personne pour poster un commentaire"),"info");case"user_blocked":return this.$swal(this.tr("Blocked|Bloqué"),this.tr("This user has blocked you|Cette personne vous a bloqué"),"info");case"anti_spam":return this.$swal(this.tr("Spam|Spam"),this.tr("You cannot post any comment for this discovery for the moment, please try again later|Vous ne pouvez plus poster de commentaires pour cette découverte pour le moment, merci de réessayer plus tard"),"info");case"phone_validation_required":return this.$swal({icon:"info",title:this.tr("Phone validation required|Validation du numéro de téléphone requise"),text:this.tr("You need to validate your phone number in order to post a comment.|Vous devez valider votre numéro de téléphone pour poster un commentaire."),buttons:[this.tr("Cancel|Annuler"),this.tr("Go to phone validation|Procéder à la validation")]}).then((function(e){e&&t.$store.commit("togglePhoneValidation",!0)}))}}}},Ne=Me,Pe=(n("1242"),Object(y["a"])(Ne,_e,ye,!1,null,"25a80d42",null)),$e=Pe.exports,Le={name:"App",components:{RegisterModal:u["a"],RecommendationCommentsModal:$e,NotificationsMenu:ve,UniversalSearch:T,DesktopMenu:X,MobileMenu:G,PhoneValidationModal:oe},mixins:[Q["a"]],metaInfo:{title:Object(c["g"])("Home|Accueil"),titleTemplate:"%s | TheFoodForce",meta:[{vmid:"author",name:"author",content:"Eye-In Media"}]},data:function(){return{ready:!0,keyboardVisible:!1,mode:"ios",notificationsInterval:null}},computed:{classes:function(){return{"user-connected":this.isUserConnected,"single-menu-ui":this.isSingleMenuUI,"app-loaded":!this.$store.state.initialLoading,"app-ready":this.$store.state.applicationReady,embed:this.isEmbed,"mobile-layout":this.isMobileLayout,"large-layout":this.isLargeLayout,"extra-large-layout":this.isExtraLargeLayout,"mobile-menu-visible":this.showMobileMenu&&this.isMobileOrTabletLayout}},searchVisible:{get:function(){return this.$store.state.searchVisible},set:function(e){this.$store.commit("setSearchVisible",e)}},isUserConnected:function(){return!0===this.ready&&this.$store.getters.isAuthenticated},isEmbed:function(){return"true"===this.$route.query.embed},tableUser:function(){return this.user?{id:this.user.id,first_name:this.user.first_name,last_name:this.user.last_name,order:{items:this.$store.state.order.items,tableId:this.$store.state.order.table.id}}:{}},showMobileMenu:function(){return!this.$route.path.startsWith("/clients")&&!["restaurants","restaurant-group","about","contact","business","blog","login","register","recovery","auth-redirection","not-found","reset-password","recommendation-creator"].includes(this.$route.name)},showMenu:function(){return!this.$route.path.startsWith("/clients")&&!["login","restaurant-group","about","contact","business","blog","register","recovery","auth-redirection","not-found","restaurant-group"].includes(this.$route.name)},phoneValidationVisible:{get:function(){return this.$store.state.phoneValidationVisible},set:function(e){this.$store.commit("togglePhoneValidation",e)}},registerModalVisible:{get:function(){return this.$store.state.registerModalVisible},set:function(e){this.$store.commit("toggleRegisterModal",e)}}},created:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var n,i,a,r,o,u;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=Object(c["b"])(),e.$moment.locale(n),e.onWindowResize(),i=e.$moment(e.orderTime,"HH:mm"),a=30-e.$moment().minute()%30,r=e.$moment().add(a+30,"minutes").seconds(0).milliseconds(0),e.$moment(e.orderDate).isBefore(e.$moment().startOf("day"))||e.orderDate===e.$moment().format("YYYY-MM-DD")&&i.isBefore(r)?(e.orderDate=e.$moment().format("YYYY-MM-DD"),e.orderTime=null):e.isPastLastTimeToday?(e.orderDate=e.$moment(e.dateSelectOptions[0].value).format("YYYY-MM-DD"),e.orderTime=e.timeSelectOptions[0].value):e.orderTime&&(e.orderTime=i.format("HH:mm")),e.$store.state.zoneLastTime!==e.$moment().format("YYYY-MM-DD")&&e.$store.commit("setRecommendationZone",null),t.next=1,e.$store.dispatch("getCurrentUser");case 1:if(ce["a"].addListener("appUrlOpen",(function(t){var n=t.url.split("force.com").pop();n&&e.reach(n)})),ce["a"].addListener("backButton",(function(){e.$router.go(-1)})),"/login"!==e.$route.fullPath){t.next=3;break}return t.next=2,e.$store.dispatch("logout");case 2:t.next=4;break;case 3:e.$store.state.initialLoading=!1,setTimeout((function(){e.$store.state.applicationReady=!0}),1e3);case 4:return isStringEmpty(e.$route.query.source)||e.$store.commit("setOrderSource",e.$route.query.source),t.next=5,ue["a"].getInfo();case 5:return o=t.sent,t.next=6,ue["a"].getId();case 6:if(o.uuid=t.sent.uuid,e.$store.commit("setDevice",o),e.mode=e.isIOS||e.isDesktop?"ios":"md",e.$forceUpdate(),"web"===e.$
1store.state.device.platform){t.next=11;break}if("ios"!==e.$store.state.device.operatingSystem){t.next=9;break}return t.next=7,le["a"].setAccessoryBarVisible({isVisible:!0});case 7:return t.next=8,le["a"].setResizeMode({mode:le["b"].Native});case 8:return t.next=9,le["a"].setStyle({style:le["c"].Dark});case 9:return le["a"].addListener("keyboardWillShow",(function(t){e.keyboardVisible=!0})),le["a"].addListener("keyboardWillHide",(function(t){e.keyboardVisible=!1})),t.next=10,ce["a"].getInfo();case 10:u=t.sent,window.nativeAppId=u.id||"com.thefoodforce.app","dev.thefoodforce.app"===u.id&&e.isLive()&&e.switchToDev(!0),e.$store.commit("setAppVersion","".concat(u.version,".").concat(u.build)),t.next=12;break;case 11:e.$store.commit("setAppVersion",window.env.VUE_APP_PACKAGE_VERSION);case 12:return e.$socket.tables.on("join_table",(function(t){var n=t.user,i=t.source;e.$store.commit("order/addTableUser",n),e.$socket.tables.emit("update",{user:e.tableUser,target:i})})),e.$socket.tables.on("update",(function(t){e.$store.commit("order/addTableUser",t)})),e.$socket.tables.on("leave_table",(function(t){e.$store.commit("order/deleteTableUser",t)})),e.$socket.tables.on("order_taken",(function(t){var n=t.target,i=t.source;e.user.id===n&&(e.$store.commit("order/resetOrder"),e.alert({header:e.tr("Order update|Commande mise à jour"),message:i+" "+e.tr("will pay your order.|va payer votre commande."),buttons:["OK"]}))})),e.user&&e.order.table.id&&(e.$store.commit("order/clearTableUsers"),e.$socket.tables.emit("join_table",e.tableUser)),window.addEventListener("resize",e.onWindowResize),t.next=13,de["a"].init([{id:"social",name:"Social",description:e.tr("Follows, likes, comments|Abonnements, mentions j'aime, commentaires"),sound:"ring.mp3",importance:4,visibility:1,vibration:!0}]);case 13:e.notificationsInterval=setInterval((function(){e.user&&"notifications"!==e.$route.name&&e.$store.dispatch("loadNotifications",!0)}),12e4);case 14:case"end":return t.stop()}}),t)})))()},destroyed:function(){ce["a"].removeAllListeners(),clearInterval(this.notificationsInterval)},methods:{onUserConnected:function(){this.registerModalVisible=!1},getLayoutWidth:function(){return window.getLayoutWidth()},onWindowResize:function(){this.$store.commit("updateWindow")},loginStart:function(){this.ready=!1},loginFinished:function(){this.ready=!0}}},Ae=Le,Te=(n("000d"),Object(y["a"])(Ae,a,r,!1,null,null,null)),Ie=Te.exports,Ve=n("41cb"),Ee=n("c0d6"),ze=n("5530"),Re=(n("5319"),n("38a7")),Ue={VUE_APP_URL:"http://localhost:9000",VUE_APP_API_URL:"http://localhost:9999",VUE_APP_PAYPAL_CLIENT:"AefvHD-oUP1vwlPhbEuq_HvIpddkqKdRq6chcV3b903aUHeceMRc1cH_UU990uO3ULrY1HzFm57nXl41",VUE_APP_SQUARE_APP_ID:"sandbox-sq0idb-j_RsacKbOmoiv6hyYNxJ0w",VUE_APP_SQUARE_LOCATION_ID:"LY44F744Y4859",VUE_APP_SHARE_URL:"http://localhost:3000"},De=n("1940"),Be=n.n(De);function qe(){return"capacitor:"!==window.location.protocol&&(0===window.location.host.indexOf("localhost:")||0===window.location.hostname.indexOf("127.0.0.1")||0===window.location.hostname.indexOf("192.168.")||0===window.location.hostname.indexOf("10.0."))}var Fe=Ue.hasOwnProperty("local")?Ue["local"]:Ue;window.env?window.env=Object(ze["a"])(Object(ze["a"])(Object(ze["a"])({},Fe),Object({NODE_ENV:"production",VUE_APP_ENV:"local",VUE_APP_PACKAGE_VERSION:"5.0.2",BASE_URL:"/"})),window.env):window.env=Object(ze["a"])(Object(ze["a"])({},Fe),Object({NODE_ENV:"production",VUE_APP_ENV:"local",VUE_APP_PACKAGE_VERSION:"5.0.2",BASE_URL:"/"})),i["default"].mixin({data:function(){return{console:console,document:document,window:window}},computed:{isMobileLayout:function(){return this.$store.state.isMobileLayout},isSmallLayout:function(){return this.$store.state.isSmallLayout},isTabletLayout:function(){return this.$store.state.isTabletLayout},isMobileOrTabletLayout:function(){return this.$store.state.isMobileOrTabletLayout},isDesktopLayout:function(){return this.$store.state.isLargeLayout||this.$store.state.isExtraLargeLayout},isLargeLayout:function(){return this.$store.state.isLargeLayout},isExtraLargeLayout:function(){return this.$store.state.isExtraLargeLayout},language:function(){return Object(c["b"])()},printMode:function(){return this.$store.state.printMode},appApiUrl:function(){if(window.location.hostname.indexOf("192.168.")>=0){var e=/:(\d{2,4})/g.exec(window.env.VUE_APP_API_URL)[1];return"".concat(window.location.protocol,"//").concat(window.location.hostname,":").concat(e)}return window.env.VUE_APP_API_URL}
1},activated:function(){"serviceWorker"in navigator&&navigator.serviceWorker.getRegistration().then((function(e){e&&e.update()}))},created:function(){},methods:{getLayoutWidth:function(){return window.getLayoutWidth()},onWindowResize:function(){this.isMobileLayout=window.isMobileLayout,this.isSmallLayout=window.isSmallLayout,this.isTabletLayout=window.isTabletLayout,this.isMobileOrTabletLayout=window.isMobileOrTabletLayout,this.isLargeLayout=window.isLargeLayout,this.isExtraLargeLayout=window.isExtraLargeLayout},showInvalidFields:function(){Be()({title:this.tr("Invalid fields|Champs non valides"),text:this.tr("Some fields are missing or invalid|Certains champs sont manquant ou non valides"),icon:"info"})},showLoading:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=null,r="https://eyeinlivestorage.blob.core.windows.net/public/icons/loading.gif";if(n){if(r=null,a=document.createElement("div"),a.className="loading-container",i){var s=document.createElement("div");s.className="percentage-value",s.innerHTML="".concat(Math.round(n),"%"),a.appendChild(s)}var o=document.createElement("div");o.className="progress sm";var c=document.createElement("div");c.className="progress-bar",c.style.width=n+"%",o.appendChild(c),a.appendChild(o);var u=document.createElement("i");u.className="float-right fas fa-spinner-third fa-spin",u.style.animationIterationCount="1",u.style.animationDuration="2s",u.style.animationTimingFunction="ease-in-out",a.appendChild(u)}Be()({title:e?this.tr(e):this.tr("In progress|En cours"),text:t?this.tr(t):this.tr("Please wait...|Merci de patienter..."),content:a,icon:r,closeOnEsc:!1,closeOnClickOutside:!1,buttons:!1})},showErrorMessage:function(e,t){Be()({title:e?this.tr(e):this.tr("Error|Erreur"),text:t?this.tr(t):this.tr("You are not allowed to do this action or there is no data|Vous n'avez pas la permission d'effectuer cette action ou il n'y a aucune donnée"),icon:"error"})},showErrorFeedback:function(e){var t,n=e.response?null===(t=e.response)||void 0===t?void 0:t.data:e,i=n.title?this.tr(n.title):this.tr("Error|Erreur"),a=n.description?this.tr(n.description):this.tr("You are not allowed to do this action or there is no data|Vous n'avez pas la permission d'effectuer cette action ou il n'y a aucune donnée");n.code&&(a+=" \n\nCode [".concat(n.code,"]")),Be()({title:i,text:a,icon:n.icon||"error"})},showRenamePrompt:function(e,t,n,i,a,r){Be()({title:e?this.tr(e):this.tr("Rename|Renommer"),text:t?this.tr(t):this.tr("Enter the new name for '".concat(n,"'|Entrez le nouveau nom pour '").concat(n,"'")),icon:a||"info",content:{element:"input",attributes:{defaultValue:n}},buttons:{cancel:!0,confirm:{text:i?this.tr(i):this.tr("Rename|Renommer"),closeModal:!1}}}).then((function(e){e&&e!==n?r&&(r(e),Be.a.close()):Be.a.close()}))},hideLoading:function(){Be.a.close()},showSavedMessage:function(e,t,n){Be()({title:e?this.tr(e):this.tr("Saved|Enregistré"),text:t?this.tr(t):null,icon:"success"}).then((function(){"function"===Object(ke["a"])(n)&&n()}))},showCreatedMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The item|L'élément",t=arguments.length>1?arguments[1]:void 0;Be()({title:this.tr("Created|Ajouté"),text:this.tr("".concat(this.tr(e)," has been created successfully|").concat(this.tr(e)," a été créé avec succès")),icon:"success"}).then((function(){"function"===Object(ke["a"])(t)&&t()}))},showConfirmationMessage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Confirm|Confirmer",t=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:"Are you sure?|Êtes-vous sûr ?",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Confirm|Confirmer",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"warning";return Be()({title:this.tr(e),text:this.tr(t),icon:a||"warning",buttons:{cancel:this.tr("Cancel|Annuler"),confirm:{text:this.tr(n),className:i}}})},showToast:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"b-toaster-top-right";this.$bvToast.toast(" ",{title:this.tr(e),variant:"simple",autoHideDelay:t,toaster:n,noCloseButton:!1})},showSavedToast:function(){this.showToast("Saved|Enregistré")},copyToClipboard:function(e){navigator.clipboard.writeText(e),Be()({title:this.tr("Copied|Copié"),text:this.tr("Text has been copied to your clipboard|Le texte a été copié et peut être collé n'importe où"),icon:"success"})},tr:function(e,t){return Object(c["g"])(e,t)},hasPermission:function(e){return localStorage.getItem(e)&&"yes"===localStorage.getItem(e).trim()},removeTz:function(e){return e?e.replace(/\.\d{3}Z/g,""):e},getLanguage:c["b"],getEnv:function(){return window.env.VUE_APP_ENV},isCurrentURILocal:function(){return qe()},isLocal:function(){return"local"===this.getEnv()},isDev:function(){return"dev"===this.getEnv()},isLive:function(){return"local"!==this.getEnv()&&"dev"!==this.getEnv()&&"demo"!==this.getEnv()},isDemo:function(){return"demo"===this.getEnv()},isNext:function(){return"next"===this.getEnv()},getPublicIcon:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"png";return"https://eyeinlivestorage.blob.core.windows.net/public/icons/ui/".concat(e,".").concat(t)},getPublicImage:function(e){return"https://eyeinlivestorage.blob.core.windows.net/public/eye-intelligence"+e},getStorageUrl:function(e){return this.isLive()||this.isNext()?"https://eyeinlivestorage.blob.core.windows.net"+(e||""):"https://eyeindevstorage.blob.core.windows.net"+(e||"")},getMarketIcon:Re["b"]}}),window.addEventListener("fetch-unauthorized",(function(){Ee["a"].dispatch("logout").catch((function(e){console.error(e)}))})),window.addEventListener("fetch-error",(function(e){var t={"errors.network_error":"Network error|Erreur réseau","errors.network_error_message":"Something wrong happened|Une erreur s'est produite","errors.access_denied":"Access denied|Accès refusé","errors.access_denied_message":"You don't have the permission to access this resource|Vous n'avez pas la permission d'accéder à cette ressource","errors.request_timeout":"Request timeout|Délai dépassé","errors.request_timeout_message":"The server took too long to answer|Le serveur a pris trop de temps à répondre"};Be()({icon:"error",title:Object(c["g"])(t[e.detail.title]),text:Object(c["g"])(t[e.detail.text])})}));var He=n("5f5b");n("f82b"),n("1fc5"),n("b506"),n("9a4a"),n("23b8"),n("13d5"),n("9485");i["default"].directive("tr",{bind:function(e,t){var n=t.value?t.value:e.innerHTML,i=Object(c["g"])(n);t.value&&t.arg?e.setAttribute(t.arg,i):e.innerHTML=i},update:function(e,t,n){var i=null;n.children&&(i=n.children[0].text),!i&&n.componentOptions&&(i=n.componentOptions.children[0].text);var a=Object(c["g"])(i);t.value&&t.arg?e.setAttribute(t.arg,a):e.innerHTML=a}}),i["default"].directive("bg-image",(function(e,t){e.style.backgroundImage="url('".concat(t.value,"')"),!0===t.modifiers.cover?e.style.backgroundSize="cover":!0===t.modifiers.contain&&(e.style.backgroundSize="contain"),!0===t.modifiers.center?e.style.backgroundPosition="center":(!0===t.modifiers.top?e.style.backgroundPositionY="top":!0===t.modifiers.bottom&&(e.style.backgroundPositionY="bottom"),!0===t.modifiers.left?e.style.backgroundPositionX="left":!0===t.modifiers.right&&(e.style.backgroundPositionX="right"))})),i["default"].directive("aspect",{inserted:function(e,t){var n=t.value,i=n.aspect,a=n.compute;"width"===a?e.style.width=e.clientHeight*i+"px":"height"===a&&(e.style.height=e.clientWidth/i+"px")}}),i["default"].directive("scroll-bottom",{inserted:function(e){setTimeout((function(){e.scrollTop=e.scrollHeight}))},update:function(e){setTimeout((function(){e.scrollTop=e.scrollHeight}))}});var Ge=n("a2b6"),We=n("4225"),Ye=n("1547"),Ke=n("0582");i["default"].mixin({data:function(){return{console:console,document:document,window:window}},computed:{isIOS:function(){return this.$store.state.device&&"ios"===this.$store.state.device.operatingSystem},isAndroid:function(){return this.$store.state.device&&"android"===this.$store.state.device.operatingSystem},isDesktop:function(){return this.$store.state.device&&["windows","mac","unknown"].includes(this.$store.state.device.operatingSystem)},isNative:function(){return Ye["a"].isNativePlatform()},isWebNative:function(){return(this.isIOS||this.isAndroid)&&"web"===this.$store.state.device.platform},isGridView:function(){return"grid"===this.$store.state.listView},menu:{get:function(){return this.$store.state.menu},set:function(e){this.$store.commit("setMenu",e)}},restaurant:{get:function(){return this.$store.state.restaurant},set:function(e){this.$store.commit("setRestaurant",e)}},notifications:{get:function(){return this.$store.state.notifications}
1,set:function(e){this.$store.commit("setNotifications",{notifications:e})}},unreadNotifications:function(){return this.notifications?this.notifications.filter((function(e){return!e.read})):[]},restaurantOrderingStatus:function(){return this.getRestaurantOrderingStatus(this.restaurant)},orderRestaurantOrderingStatus:function(){return this.getRestaurantOrderingStatus(this.orderRestaurant||this.restaurant)},restaurants:function(){return this.$store.state.restaurants},orderRestaurant:function(){return this.$store.state.order.restaurant},user:function(){return this.$store.state.user},order:function(){return this.$store.state.order},orderDate:{get:function(){return this.$store.state.order.date},set:function(e){this.$store.commit("order/setOrderDate",e),this.orderTime=(this.timeSelectOptions[0]||{}).value}},orderTime:{get:function(){return this.$store.state.order.time},set:function(e){this.$store.commit("order/setOrderTime",e)}},orderMode:{get:function(){return this.order.mode},set:function(e){this.$store.commit("order/setOrderMode",e)}},delivery:function(){return this.$store.state.delivery},orderSize:function(){return this.order&&this.order.items?this.order.items.reduce((function(e,t){return e+parseInt(t.quantity)}),0):0},orderCalories:function(){return this.$store.getters["order/orderCalories"]},remainingCalories:function(){return this.user.target_calories-this.orderCalories},contentPadding:function(){return this.isMobileLayout?"p-3":"p-4"},isSingleMenuUI:function(){return window.isCustomDomain},isAdmin:function(){return this.user&&this.user.admin}},methods:{getHomeLink:function(){return"/"},getRestaurantOrderingStatus:function(e){return e&&"open"===e.status?e.planned_orders_enabled||We["a"].isRestaurantOpen(e)?e.planned_orders_enabled&&!We["a"].isRestaurantOpen(e)?{available:!0,reason:"off-hours-planned-enabled",text:"The restaurant is not open right now, but you can order for later|Le restaurant est fermé en ce moment, mais vous pouvez commander pour plus tard."}:{available:!0,reason:"open"}:{available:!1,reason:"off-hours",text:"This restaurant is not open right now|Ce restaurant n'est pas ouvert pour le moment"}:{available:!1,reason:"closed",text:"This restaurant is not open|Ce restaurant n'est pas ouvert"}},getLayoutWidth:function(){return 0===window.outerWidth?window.innerWidth:window.outerWidth},toggleListView:function(){this.isGridView?this.$store.commit("setListView","list"):this.$store.commit("setListView","grid")},showToast:function(e){this.$bvToast.toast(" ",{title:this.tr(e),variant:"simple",autoHideDelay:3e3,noCloseButton:!0})},showSavedToast:function(){this.showToast("Saved|Enregistré")},isDealerParent:function(){return!1},logout:function(){var e=this;return this.$store.dispatch("logout",!0).then((function(t){e.reach("/")}))},reach:function(e){if(this.$route.fullPath!==e)return this.$router.push(e)},alert:function(e){return Object(Ge["d"])(e)},toaster:function(e){Object(Ge["f"])(e)},load:function(e,t){return Object(o["a"])(Object(s["a"])().mark((function n(){return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=1,Object(Ge["e"])(e,t);case 1:case"end":return n.stop()}}),n)})))()},showLoader:function(e){var t=document.createElement("ion-loading");return t.duration=6e4,t.message=e,t.translucent=!0,t.backdropDismiss=!1,document.body.appendChild(t),t.present(),t},hideLoader:function(e){e.dismiss()},getGeolocation:function(){var e=arguments,t=this;return Object(o["a"])(Object(s["a"])().mark((function n(){var i,a;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],i&&t.$store.commit("setGeolocationCoords",null),!t.$store.state.geolocation.coords||t.$store.state.geolocation.lastTime!==t.$moment().format("YYYY-MM-DD")){n.next=1;break}return n.abrupt("return",t.$store.state.geolocation);case 1:return n.next=2,Ke["a"].getCurrentPosition();case 2:return a=n.sent,t.$store.commit("setGeolocationCoords",{latitude:a.coords.latitude,longitude:a.coords.longitude}),t.$store.commit("setGeolocationTime",t.$moment().format("YYYY-MM-DD")),n.abrupt("return",t.$store.state.geolocation);case 3:case"end":return n.stop()}}),n)})))()},setGeolocationName:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.getGeolocation().then((function(n){return e.reverseGeocode(n,t)}))},reverseGeocode:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return m["a"].get("/reverse-geocode/".concat(e.coords.latitude,"/").concat(e.coords.longitude)).then((function(e){e=e.data.results,t.$store.commit("setGeolocationName",Array.isArray(e)&&e[0].formatted_address?e[0].formatted_address:n)})).catch((function(e){console.error(e.response.data)}))},showLoginRegisterModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"login";this.$store.commit("showLoginRegisterModal",e)},orderTotalDutyFree:function(e){return Object(Ge["k"])(e)},orderTaxes:function(e){return Object(Ge["i"])(e)},orderTotal:function(e){return Object(Ge["j"])(e)},deepCopy:function(e){return JSON.parse(JSON.stringify(e))},changeLanguage:function(){var e=Object(c["a"])();this.$store.state.user&&(this.$store.state.user.language=e,m["a"].patch("/client/account/update-language",{language:e})),this.$router.go()},isFollowing:function(e){return!!(this.user&&Array.isArray(this.user.following)&&e)&&this.user.following.includes(e)}}});var Je=n("7bec"),Ze=n.n(Je),Xe=(n("4413"),n("8e5f")),Qe=n.n(Xe),et=(n("e607"),n("77ed"),n("7f45")),tt=n.n(et),nt=n("58ca"),it=n("df76"),at=function(){var e=this,t=e._self._c;return t("div",{staticClass:"main-page",class:["theme-"+e.theme,{"no-left-panel":e.noLeftPanel,"bg-pattern":!e.isMobileOrTabletLayout&&!e.noFoodPattern&&!e.heroBg,"no-right-panel":e.noRightPanel,fullscreen:e.fullscreen,"has-order-box":e.hasOrderBox&&!e.isLargeLayout}]},[e._t("navigation-bar",(function(){return[e.noHeader?e._e():t("e-navigation-bar",{attrs:{"no-logo":e.isMobileOrTabletLayout,"use-container":"","home-route":e.isSingleMenuUI?"/menu":"/","logo-src":n("147e")},scopedSlots:e._u([{key:"start",fn:function(){return[e.isLargeLayout&&!e.isSingleMenuUI?[t("b-btn",{staticClass:"btn-search",attrs:{variant:"light","data-test":"btn-universal-search"},on:{click:function(t){return e.$store.commit("setSearchVisible",!0)}}},[t("i",{staticClass:"fal fa-search mr-2"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"opacity-70"},[e._v("Search on TheFoodForce|Rechercher sur TheFoodForce")])])]:e._e(),e._t("navigation-start")]},proxy:!0},{key:"title",fn:function(){return[e._t("title",(function(){return[t("div",{staticClass:"title",on:{click:function(t){return e.$emit("title-clicked",t)}}},[e._v(e._s(e.title))])]}))]},proxy:!0},{key:"end",fn:function(){return[e._t("navigation-end"),e.isLargeLayout?t("div",{staticClass:"d-flex align-items-center"},[e.isSingleMenuUI?e._e():[e.user?t("b-btn",{staticClass:"btn-profile",attrs:{to:"/profile",variant:"white","data-test":"btn-profile"}},[t("b-avatar",{staticClass:"mr-2",attrs:{src:e.avatarSrc,variant:"none",size:"32"}}),t("div",{staticClass:"name"},[e._v(e._s(e.user.first_name))])],1):t("b-btn",{staticClass:"btn-profile",attrs:{variant:"white","data-test":"btn-profile"},on:{click:function(t){return e.showLoginRegisterModal("login")}}},[t("b-avatar",{staticClass:"mr-2",attrs:{src:e.avatarSrc,variant:"none",size:"32"}}),t("div",{staticClass:"name"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Sign In|Se connecter")])])],1),e.user?t("b-btn",{staticClass:"position-relative ml-0",attrs:{variant:"white"},on:{click:function(t){t.stopPropagation(),e.$store.state.notificationsVisible=!e.$store.state.notificationsVisible}}},[t("i",{staticClass:"fas fa-bell mr-0",staticStyle:{"font-size":"1.2rem"}}),e.unreadNotifications.length?t("b-badge",{staticClass:"notification-badge",attrs:{variant:"primary"}}
1,[e._v(e._s(e.unreadNotifications.length))]):e._e()],1):e._e()],t("b-btn",{attrs:{variant:"light"},on:{click:function(t){e.$store.state.desktopMenuVisible=!e.$store.state.desktopMenuVisible}}},[t("i",{staticClass:"fal fa-bars mr-2"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Menu")])])],2):e._e()]},proxy:!0}],null,!0)})]})),e.heroBg?t("div",{staticClass:"page-background"}):e._e(),t("main",{staticClass:"page-container"},[e.$slots["sub-navigation-bar"]&&!e.isMobileOrTabletLayout?t("div",{staticClass:"sub-navigation",class:e.subNavigationClass},[e._t("sub-navigation-bar")],2):e._e(),t("div",{staticClass:"page-content",class:[e.bgClass,Object(ze["a"])({"p-3":e.isMobileLayout&&!e.noPadding,"p-4":!e.isMobileLayout&&!e.noPadding},e.bodyClassComputed)]},[e._t("default")],2),e.loading?t("div",{staticClass:"loading-overlay"},[e._t("loading",(function(){return[t("b-spinner",{attrs:{variant:"gray-dark"}})]}))],2):e._e(),e.hasOrderBox&&!e.isLargeLayout?t("order-recap-panel"):e._e()],1),e._t("sidebar"),e.$slots.overlay?t("div",{staticClass:"overlay"},[e._t("overlay")],2):e._e(),e._t("outside")],2)},rt=[],st=n("ade3"),ot=(n("1276"),n("b48f")),ct=function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-box bg-primary"}
1,[t("b-btn",{staticClass:"current-order-menu",attrs:{to:"/menu",variant:"white"}},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"order-progress"},[e._v("Your Current Order|Votre commande en cours")]),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"restaurant text-ellipsis"},[e._v(e._s(e.currentRestaurant.name))])]),t("span",{staticClass:"divider"}),t("b-btn",{staticClass:"current-order-basket",attrs:{to:"/orders/now",variant:"white"}},[t("span",{staticClass:"animated",class:{swing:e.$store.state.order.animation}},[t("i",{staticClass:"fal fa-basket-shopping ml-3 mr-2"}),e.orderSize>0?t("span",[e._v(e._s(e.orderSize))]):e._e()])])],1)},ut=[],lt={name:"order-recap-panel",computed:{isUserConnected:function(){return this.$store.getters.isAuthenticated},currentRestaurant:function(){return this.orderRestaurant||this.restaurant}}},dt=lt,mt=(n("640c"),Object(y["a"])(dt,ct,ut,!1,null,"567142b2",null)),ft=mt.exports,pt={name:"main-page",components:{ENavigationBar:ot["a"],OrderRecapPanel:ft},props:{title:{type:String,default:"Title|Titre"},bodyClass:{type:String,default:""},bgClass:{type:String,default:""},noHeader:{type:Boolean},fullscreen:{type:Boolean},noDesktopMenu:{type:Boolean},noPadding:{type:Boolean},noLeftPanel:{type:Boolean},noRightPanel:{type:Boolean},noOrderRecapPanel:{type:Boolean},heroBg:{type:Boolean},noFoodPattern:{type:Boolean},subNavigationClass:{type:String,default:"bg-light"},theme:{type:String,default:"light"},loading:{type:Boolean}},computed:{headerColor:function(){return"dark"===this.theme?"medium":""},isUserConnected:function(){return this.$store.getters.isAuthenticated},hasOrderBox:function(){return!1===this.noOrderRecapPanel&&this.orderSize>0},bodyClassComputed:function(){var e={};return this.bodyClass.split(/\s+/g).map((function(e){return Object(st["a"])({},e,!0)})).forEach((function(t){return Object.assign(e,t)})),e},avatarSrc:function(){return this.user?this.user.avatar_url+"?time="+(new Date).getTime():n("bab5")}}},ht=pt,gt=(n("dd1f"),Object(y["a"])(ht,at,rt,!1,null,"0a581ae6",null)),bt=gt.exports,vt=function(){var e=this,t=e._self._c;return t(e.componentTag,{tag:"component",staticClass:"sidebar-container",attrs:{"close-label":"panel-sidebar",backdrop:e.isMobileLayout,right:e.right},scopedSlots:e._u([{key:"header",fn:function(){return[t("e-navigation-bar",{staticStyle:{"font-size":"1rem"},scopedSlots:e._u([{key:"start",fn:function(){return[e._t("start",(function(){return[e.right?e._e():t("b-btn",{attrs:{variant:"white"},on:{click:function(t){return e.toggle()}}},[e.useCloseButton?t("i",{staticClass:"fal fa-close fa-fw"}):t("i",{staticClass:"fal fa-chevron-left fa-fw"}),e.backButtonText?t("span",[e._v(e._s(e.backButtonText))]):e._e()])]}))]},proxy:!0},{key:"title",fn:function(){return[e._v(" "+e._s(e._f("tr")(e.title))+" ")]},proxy:!0},{key:"end",fn:function(){return[e._t("end",(function(){return[e.right?t("b-btn",{attrs:{variant:"white"},on:{click:function(t){return e.toggle()}}},[e.backButtonText?t("span",[e._v(e._s(e.backButtonText))]):e._e(),e.useCloseButton?t("i",{staticClass:"fal fa-close fa-fw"}):t("i",{staticClass:"fal fa-chevron-right fa-fw"})]):e._e()]}))]},proxy:!0}],null,!0)})]},proxy:!0},{key:"footer",fn:function(){return[e._t("footer")]},proxy:!0}],null,!0),model:{value:e.expanded,callback:function(t){e.expanded=t},expression:"expanded"}},[t("div",{staticClass:"panel-sidebar"},[t("div",{staticClass:"sidebar-content"},[e._t("default")],2)])])},_t=[],yt={name:"panel-sidebar",components:{ENavigationBar:ot["a"]},props:{value:{type:String,default:""},title:{type:String,default:"Reduce|Réduire"},listClass:{default:""},noToggle:{type:Boolean,default:!1},noSearch:{type:Boolean,default:!1},noGridToggle:{type:Boolean,default:!1},backButtonText:{type:String,default:""},useCloseButton:{type:Boolean},visible:{type:Boolean,default:!1},right:{type:Boolean,default:!1}},data:function(){return{expanded:!1,search:""}},created:function(){this.expanded=this.visible},mounted:function(){this.expanded=this.visible},activated:function(){this.expanded=this.visible},computed:{componentTag:function(){return this.isDesktop&&!this.isMobileOrTabletLayout&&this.noToggle?"section":"b-sidebar"}
1,isExplorerView:function(){return this.isGridView&&!this.noGridToggle},listClasses:function(){var e="";return this.isMobileLayout&&(this.expanded?e+=" expanded":e+=" reduced"),e}},methods:{toggle:function(){this.noToggle||(this.expanded=!this.expanded)},show:function(){this.expanded=!0},hide:function(e){"right"===e&&this.right&&(this.expanded=!1),"left"!==e||this.right||(this.expanded=!1)}},watch:{search:function(){this.$emit("input",this.search)}}},wt=yt,kt=(n("8475"),Object(y["a"])(wt,vt,_t,!1,null,"ce234290",null)),Ct=kt.exports,xt=function(){var e=this,t=e._self._c;return t("b-form-checkbox",{staticClass:"btn-tag",attrs:{button:""},on:{change:e.onChange},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e.imageSrcComputed?t("b-img",{attrs:{src:e.imageSrcComputed,alt:""}}):e._e(),t("span",{attrs:{title:e.titleComputed}},[e._t("default",(function(){return[e._v(" "+e._s(e._f("tr")(e.labelComputed))+" ")]}))],2)],1)},St=[],Ot={name:"btn-tag",props:{name:{type:String},label:{type:String},value:{},imageSrc:{type:String},title:{type:String}},data:function(){return{checked:!1}},computed:{tag:function(){return this.name?this.$store.state.tags[this.name]:null},imageSrcComputed:function(){return this.tag?this.tag.icon_url:this.imageSrc},titleComputed:function(){return this.tag?this.tag.description:this.title},labelComputed:function(){return this.tag?this.tag.name:this.label}},mounted:function(){this.checked=this.value},methods:{onChange:function(e){this.$emit("input",e),this.$el.blur(),this.checked=e}},watch:{value:function(e){this.checked=e}}},jt=Ot,Mt=(n("bff7"),Object(y["a"])(jt,xt,St,!1,null,"f270d3fa",null)),Nt=Mt.exports,Pt=function(){var e=this,t=e._self._c;return e.tagList.length>0?t("div",{staticClass:"btn-tags"},[e.label?t("h5",{staticClass:"mt-2 mb-2 mb-lg-4",class:[e.titleClass,{"text-center":e.centered}]},[e._t("label",(function(){return[e._v(e._s(e._f("tr")(e.label)))]}))],2):e._e(),t("div",{staticClass:"tags",class:{inline:e.inline}},[e._t("default",(function(){return[e.tags?e._l(e.tagList,(function(n){return t("btn-tag",{key:n,attrs:{name:n},on:{input:e.onTagChanged},model:{value:e.data[n],callback:function(t){e.$set(e.data,n,t)},expression:"data[tag]"}})})):e._e()]}))],2)]):e._e()},$t=[],Lt={name:"btn-tags",props:{value:{type:Object,default:null},label:{type:String,default:null},inline:{type:Boolean,default:!0},titleClass:{type:String,default:""},centered:{type:Boolean,default:!0},tags:{type:Array,default:null},tagsAvailable:{type:Object,default:null}},data:function(){return{data:{}}},computed:{tagList:function(){var e=this;return this.tags?this.tagsAvailable?this.tags.filter((function(t,n){return e.tagsAvailable.hasOwnProperty(t)})):this.tags:[]}},methods:{onTagChanged:function(){this.$emit("input",this.data)}},watch:{value:function(e){this.data=e}}},At=Lt,Tt=(n("c4c8"),Object(y["a"])(At,Pt,$t,!1,null,null,null)),It=Tt.exports,Vt=n("0086"),Et=n.n(Vt),zt=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{visible:e.value,"body-class":"p-0",size:"md",scrollable:"","hide-header":""},on:{hidden:function(t){return e.$emit("input",!1)}},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[t("div",{staticClass:"text-right"},[e.noAddToOrder?t("b-btn",{class:{"px-4":e.noAddToOrder},attrs:{variant:"primary"},on:{click:function(t){return e.$emit("close",!1)}}},[t("span",[e._v("OK")])]):[t("b-btn",{staticClass:"mr-2",attrs:{variant:"none"},on:{click:function(t){return e.$emit("close")}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Cancel|Annuler")])]),e.isMinDelayValid?e.restaurantOrderingStatus.available?e.isOutOfStock?t("b-btn",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:e.tr("This item is currently not in stock and may not be ordered. If you believe this is a mistake, please contact the restaurant.|Cet article n'est actuellement pas en stock et ne peut pas être c
1ommandé. Si vous pensez qu'il s'agit d'une erreur, veuillez contacter le restaurant."),expression:"tr(`This item is currently not in stock and may not be ordered. If you believe this is a mistake, please contact the restaurant.|Cet article n'est actuellement pas en stock et ne peut pas être commandé. Si vous pensez qu'il s'agit d'une erreur, veuillez contacter le restaurant.`)",modifiers:{hover:!0,top:!0}}],staticStyle:{"pointer-events":"none"},attrs:{variant:"info",title:e._f("tr")("Not available|Non disponible")}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Not available|Non disponible")])]):null===e.item.price?t("b-btn",{directives:[{name:"b-popover",rawName:"v-b-popover.hover.top",value:e.tr("This item is not available for order yet.|Cet article n'est disponible à commander pour le moment."),expression:"tr(`This item is not available for order yet.|Cet article n'est disponible à commander pour le moment.`)",modifiers:{hover:!0,top:!0}}],staticStyle:{"pointer-events":"none"},attrs:{variant:"info"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Available soon|Bientôt disponible")])]):[t("div",{staticClass:"add-to-order",staticStyle:{width:"200px",display:"inline-flex"}},[t("b-select",{staticClass:"btn-select",model:{value:e.quantity,callback:function(t){e.quantity=e._n(t)},expression:"quantity"}},e._l(25,(function(n){return t("option",{domProps:{value:n}},[e._v(e._s(n)+"x")])})),0),t("b-btn",{attrs:{variant:"primary",block:""},on:{click:function(t){return e.addItemToOrder(e.item,e.quantity)}}},[e.hasAnyModifierOrCombos?[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Customize|Personnaliser")])]:[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Add to order|Ajouter")])]],2)],1)]:t("b-btn",{attrs:{variant:"primary",disabled:""}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Order not available|Commande non disponible")])]):t("b-btn",{attrs:{variant:"warning"},on:{click:function(t){return e.$refs.selectOrderMode.show()}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Please order "+e._s(e.item.settings.min_order_delay)+"h in advance|Merci de commander "+e._s(e.item.settings.min_order_delay)+"h en avance")])])]],2)]},proxy:!0}])},[e.item?t("div",{staticClass:"restaurant-card"},[t("b-btn",{staticClass:"btn-left",attrs:{variant:"rounded"},on:{click:function(t){return e.$emit("input",!1)}}},[t("i",{staticClass:"fas fa-chevron-left"})]),e.user?t("like-btn",{attrs:{value:e.user&&e.user.favorite_items.includes(e.item.id)},on:{input:e.likeItem}}):e._e(),t("e-img",{staticClass:"card-image",attrs:{lazy:"",src:e.item.image_url,"blank-color":"#eee",center:"","portrait-mode":"portrait"===e.item.orientation}}),t("div",{staticClass:"bg-light p-3"},[t("div",{staticClass:"d-flex align-items-center justify-content-between"},[t("h4",{staticClass:"d-inline-block text-black text-spaced my-0 pr-2",staticStyle:{"vertical-align":"sub"}},[e._v(" "+e._s(e._f("tr")(e.item.name)))]),e.item.price>0?t("div",{staticClass:"price f-500 text-black"},[e._v(" "+e._s(e._f("priceShort")(e.item.price))+" ")]):e._e()])]),t("div",{staticClass:"p-3"},[e.item.settings&&e.item.settings.min_order_delay>0?[t("p",{staticClass:"f-500 text-warning"},[t("i",{staticClass:"fal fa-history mr-1"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v(" Please order at least "+e._s(e.item.settings.min_order_delay)+"h in advanced for this item| Merci de commander au moins "+e._s(e.item.settings.min_order_delay)+"h en avance pour cet élément ")])])]:e._e(),e.item.name!==e.item.description?t("pre",{staticClass:"description mb-2"},[e._v("                "+e._s(e._f("tr")(e.item.description))+"\n            ")]):e._e(),e.item.calories>0?t("div",{staticClass:"mb-3 d-flex align-items-center"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"category f-500"},[e._v("Nutrition |Nutrition ")]),t("i",{staticClass:"fas fa-circle ml-2 mr-1",style:"color:"+e.indicatorColor(e.item)}),t("span",{staticClass:"font-weight-bold"},[e._v(e._s(e.item.calories)+" kcal")])]):e._e(),e.item.use_wizard||e.hasAnyModifierOrCombos||!e.restaurantOrderingStatus.available?e._e():[t("b-form-group",{staticClass:"mt-4",scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]}
1,[e._v("Extra Instructions|Instructions supplémentaires")])]},proxy:!0}],null,!1,1290200092)},[t("b-textarea",{staticClass:"add-note",attrs:{rows:3,placeholder:e._f("tr")("Any special requests? The restaurant will do its best to accommodate you.|Des demandes spéciales? Le restaurant fera de son mieux pour vous accueillir.")},model:{value:e.note,callback:function(t){e.note=t},expression:"note"}})],1)],e.item.tags&&e.item.tags.length>0?t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"mt-3 f-500"},[e._v("Tags|Mot-clés")]):e._e(),e._l(e.item.tags,(function(n,i){return t("b-badge",{key:i,staticClass:"mr-2",attrs:{variant:"lightgray"}},[e._v(" "+e._s(e._f("tr")(e.tagName(i)))+" ")])})),t("div",{staticClass:"mt-3 f-9 text-muted"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-500 text-dark mr-1"},[e._v("Notes:|Notes :")]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Image presented above is only a suggestion of presentation. End product could be slightly different.|L'image présentée ci-dessus n'est qu'une suggestion de présentation. Le produit final pourrait être légèrement différent.")]),e.restaurantOrderingStatus.available?e._e():[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v(" Prices and other details are provided for information only and are subject to changes.| Les prix et autres détails sont fournis à titre indicatif et sont susceptibles d'être modifiés. ")])],t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v(" Adults and youth (ages 13 and older) need an average of 2,000 calories a day, and children (ages 4 to 12) need an average of 1,500 calories a day. However, individual needs vary.| Les adultes et les jeunes (13 ans et plus) ont besoin en moyenne de 2 000 calories par jour, et les enfants (de 4 à 12 ans) ont besoin en moyenne de 1 500 calories par jour. Cependant, les besoins individuels varient. ")]),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v(" While we strive to ensure accuracy of recipes and ingredients, we recommend that if you have dietary restriction you consult the restaurant before consuming the dish to ensure it meets your dietary restrctions.| Bien que nous nous efforcions d'assurer l'exactitude des recettes et des ingrédients, nous vous recommandons, si vous avez des restrictions alimentaires, de consulter le restaurant avant de consommer le plat pour vous assurer qu'il répond à vos restrictions alimentaires. ")])],2)],2),t("order-settings",{ref:"selectOrderMode",attrs:{"disable-init-check":"","restaurant-selected":e.restaurant,visible:!1,"modal-only":""}})],1):e._e(),e.showCombo?t("combo-creator",{attrs:{quantity:e.quantity,item:e.item,note:e.note},on:{input:function(t){return e.$emit("close",t)}},model:{value:e.showCombo,callback:function(t){e.showCombo=t},expression:"showCombo"}}):e._e()],1)},Rt=[],Ut=n("b0aa"),Dt=n("8586"),Bt=n("70f7"),qt=n("1931"),Ft={name:"item-card",components:{OrderSettings:Bt["a"],ComboCreator:Dt["a"],LikeBtn:Ut["a"]},props:{value:{type:Boolean,default:!1},item:{type:Object},noAddToOrder:{type:Boolean,default:!1}},data:function(){return{showCombo:!1,quantity:1,note:"",indicatorColor:Ge["c"]}},computed:{isMinDelayValid:function(){return!(this.item.settings&&this.item.settings.min_order_delay>0)||null!==this.orderTime&&qt["a"].getOrderDelayInHours(this.orderDate,this.orderTime)>=this.item.settings.min_order_delay},isOutOfStock:function(){return"available"!==this.item.stock_status},combos:function(){var e=this;return this.menu?this.menu.combos.filter((function(t){var n=t.slots.find((function(e){return e.id===t.primary_slot_id}));return!!n.items.map((function(e){return e.item_id})).includes(e.item.id)})):[]},modifierGroups:function(){var e=this;return this.menu?this.menu.modifier_groups.filter((function(t){return t.items.includes(e.item.id)})):[]},hasAnyModifierOrCombos:function(){return this.combos.length>0||this.modifierGroups.length>0}},methods:{tagName:function(e){return this.$store.state.tags.hasOwnProperty(e)?this.$store.state.tags[e].name:e},selectRestaurant:function(e){var t=this;setTimeout((function(n){t.reach("/restaurants/".concat(e.id))}),150)},likeItem:function(e){var t=this;this.item&&m["a"].post("/client/item/like",{item_id:this.item.id,like:e}).then((function(e){t.$store.dispatch("getCurrentUser")}))},addItemToOrder:function(e,t){var n=this;return Object(o["a"])(Object(s["a"])().mark((function i(){return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=1,n.$store.dispatch("order/promptResetOrder",e.restaurant_id);case 1:if(i.sent){i.next=2;break}return i.abrupt("return");
1case 2:if(!n.hasAnyModifierOrCombos){i.next=3;break}return i.abrupt("return",n.showCombo=!0);case 3:return e.unit_price=e.price,i.next=4,n.$store.dispatch("order/addItemToOrder",{item:e,quantity:t,notes:n.note||""});case 4:n.$emit("close");case 5:case"end":return i.stop()}}),i)})))()}},watch:{value:function(e){e&&(this.quantity=1)}}},Ht=Ft,Gt=(n("56cc"),Object(y["a"])(Ht,zt,Rt,!1,null,"4a90b4b8",null)),Wt=Gt.exports,Yt=function(){var e=this,t=e._self._c;return!e.isMobileOrTabletLayout||e.fullscreen?t("div",{staticClass:"virtual-assistant",class:[e.horizontalPosition,e.verticalPosition,{reduced:!e.value,"has-actions":e.actions,fullscreen:e.fullscreen}]},[e.fullscreen?t("div",{staticClass:"assistant-overlay"}):e._e(),e.fullscreen?t("b-img",{staticClass:"avatar",attrs:{src:"https://eyeinlivestorage.blob.core.windows.net/public/food-force/assistant.png"}}):t("b-img",{staticClass:"avatar",attrs:{src:"https://eyeinlivestorage.blob.core.windows.net/public/food-force/assistant-top.png"},on:{click:e.show}}),t("div",{staticClass:"bubble",class:{bounceInUp:e.value,bounceOutDown:!e.value,animated:e.animated}},[e.noClose?e._e():t("a",{staticClass:"close",on:{click:e.hide}},[t("i",{staticClass:"fas fa-times"})]),t("div",{staticClass:"dialog"},[e._t("default",(function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Hello there, I'm your personal assistant, what can I do for you today?|Bonjour, je suis votre assistant personnel. Que puis-je faire pour vous aujourd'hui ?")])]}))],2)])],1):e._e()},Kt=[],Jt={name:"virtual-assistant",data:function(){return{animated:!1}},props:{horizontalPosition:{type:String,default:"left"},verticalPosition:{type:String,default:"bottom"},fullscreen:{type:Boolean,default:!1},noClose:{type:Boolean,default:!1},actions:{type:Boolean,default:!1},value:{type:Boolean,default:!0}},mounted:function(){var e=this;setTimeout((function(){e.animated=!0}),50)},methods:{hide:function(){this.$emit("input",!1)},show:function(){this.$emit("input",!0)}}},Zt=Jt,Xt=(n("edf5"),Object(y["a"])(Zt,Yt,Kt,!1,null,"b422a1fe",null)),Qt=Xt.exports,en=n("cd4e"),tn=(n("ed27"),function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{"modal-class":["e-action-sheet",{transparent:!e.noTransparency}],"hide-header":"","hide-footer":"",centered:!e.isMobileLayout,"data-test":"action-sheet"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[e.noHeader||!e.title&&!e.description?e._e():t("div",{staticClass:"action-header mb-3",class:{"btn btn-sheet not-interactive":e.isMobileLayout}},[e._t("header",(function(){return[e.title?t("h4",{staticClass:"title mt-0"},[e._v(e._s(e._f("tr")(e.title)))]):e._e(),e.description?t("div",{staticClass:"description"},[e._v(e._s(e._f("tr")(e.description)))]):e._e()]}))],2),t("div",{staticClass:"sheets",on:{click:e.hide}},[e._t("default")],2),e.noCancel?e._e():t("div",{staticClass:"action-footer mt-3"},[e._t("actions",(function(){return[t("e-action-sheet-item",{attrs:{variant:"gray"},on:{click:e.hide}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Cancel|Annuler")])])]}))],2)])}),nn=[],an={name:"e-action-sheet",props:{value:{type:Boolean},title:{type:String},description:{type:String},noHeader:{type:Boolean},noTransparency:{type:Boolean},noCancel:{type:Boolean}},computed:{visible:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{show:function(){this.$emit("input",!0)},hide:function(){this.$emit("input",!1)}}},rn=an,sn=(n("1f5e"),Object(y["a"])(rn,tn,nn,!1,null,null,null)),on=sn.exports,cn=function(){var e=this,t=e._self._c;return t("b-btn",{class:e.variant?"text-"+e.variant:"",attrs:{variant:"sheet",to:e.to,href:e.href,target:e.target},on:{click:e.onClick}},[e.icon?t("i",{staticClass:"fa-fw mr-2",class:e.icon}):e._e(),e._t("default")],2)},un=[],ln={name:"e-action-sheet-item",props:{icon:{type:String},variant:{type:String},to:{type:String},href:{type:String},target:{type:String}},methods:{onClick:function(e){this.to&&this.href||this.$emit("click",e)}}},dn=ln,mn=(n("ca38"),Object(y["a"])(dn,cn,un,!1,null,null,null)),fn=mn.exports,pn=function(){var e=this,t=e._self._c;return t("b-input",{ref:"input",attrs:{id:e.id,name:e.name,disabled:e.disabled,required:e.required,form:e.form,autofocus:e.autofocus,size:e.size,state:e.stateComputed,"aria-invalid":e.ariaInvalid,readonly:e.readonly,plaintext:e.plaintext,autocomplete:e.autocomplete,placeholder:e.placeholder,formatter:e.formatter,trim:e.trim,"lazy-formatter":e.lazyFormatter,number:e.number,lazy:e.lazy,debounce:e.debounce,maxlength:e.maxLengthComputed,type:e.typeComputed,"no-wheel":e.noWheel,min:e.min,max:e.max,step:e.step,list:e.list},on:{keypress:e.onKeyPressed,input:e.onInput,change:e.onChange,click:function(t){return e.$emit("click",t)},update:function(t){return e.$emit("update",t)},blur:function(t){return e.$emit("blur",t)},focusin:function(t){return e.$emit("focusin",t)},focusout:function(t){return e.$emit("focusout",t)}},model:{value:e.internalValue,callback:function(t){e.internalValue=t},expression:"internalValue"}})},hn=[],gn=(n("a9e3"),{name:"e-input",props:{id:{type:String},name:{type:String},disabled:{type:[Boolean,String]},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1},size:{type:String,default:"md"},state:{type:[Boolean,String],default:null},value:{type:[String,Number],default:""},ariaInvalid:{type:[String,Boolean],default:!1},readonly:{type:Boolean,default:!1},plaintext:{type:Boolean,default:!1},minlength:{type:[String,Number]},maxlength:{type:[String,Number]},autocomplete:{type:String,default:"off"},placeholder:{type:String,default:""},formatter:{type:Function},lazyFormatter:{type:Boolean},trim:{type:Boolean,default:!0},number:{type:Boolean,default:!1},lazy:{type:Boolean},debounce:{type:[Number,String]},type:{type:String,default:"text"},noWheel:{type:Boolean,default:!1},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number]},list:{type:String},debounceTime:{type:Number,default:500}},data:function(){return{internalValue:null,timeout:null}},computed:{typeComputed:function(){switch(this.type){case"name":case"phone":case"alphanumerical":case"mac":case"ip":case"postal-code":return"text";case"number":return"text";case"url":return"url";case"permaLink":return"text";default:return this.type}},minLengthComputed:function(){if(this.minlength)return this.minlength;switch(this.type){case"alphanumerical":case"name":return 2;case"tel":return 10;case"mac":return 17;case"ip":return 7;case"url":return 10;case"permaLink":return 10;case"postal-code":return 5;default:return 0}},maxLengthComputed:function(){if(this.maxlength)return this.maxlength;switch(this.type){case"tel":return 18;case"mac":return 17;case"ip":return 15;case"postal-code":return 8;case"url":return 255;case"permaLink":return 255;default:return 50}},stateComputed:function(){if("disabled"===this.state)return null;if(null!==this.state)return this.state;if(!this.required&&this.isStringEmpty(this.internalValue))return null;if(this.required&&this.isStringEmpty(this.internalValue))return!1;if(this.minLengthComputed>0&&this.internalValue.length<this.minLengthComputed)return!1;if(this.maxLengthComputed&&this.internalValue.length>this.maxLengthComputed)return!1;switch(this.type){case"mac":return ie["a"].testMacAddress(this.internalValue,this.required);case"ip":return ie["a"].testIpAddress(this.internalValue,this.required);case"number":return ie["a"].testNumber(this.internalValue,this.min,this.max,this.required);case"name":return ie["a"].testName(this.internalValue,this.required);case"alphanumerical":return ie["a"].testAlphaNumerical(this.internalValue,this.required);case"email":return ie["a"].testEmail(this.internalValue,this.required);case"phone":return ie["a"].testPhoneNumber(this.internalValue,this.required);case"url":return ie["a"].testURL(this.internalValue,this.required);case"permalink":return ie["a"].testPermaLink(this.internalValue,this.required);case"password":return ie["a"].testPassword(this.internalValue,this.required);case"postal-code":return ie["a"].testPostalCode(this.internalValue,this.required);default:return!0}}},mounted:function(){this.internalValue=this.value},methods:{onInput:function(e){"number"!==this.type&&this.$emit("input",e)},onChange:function(e){var t=e;"number"===this.type&&(t=Number(e.replace(/,/g,".")),(isNaN(t)||isStringEmpty(e))&&(t=null),this.$emit("input",t)),this.$emit("change",t),this.internalValue=t},onKeyPressed:function(e){if(this.$emit("keypress",e),13===e.keyCode&&this.$emit("enter",e),32===e.keyCode&&"permaLink"===this.type){e.preventDefault();var t=e.target,n=t.selectionStart,i=t.selectionEnd,a=t.value,r=a.slice(0,n)+"-"+a.slice(i);t.value=r,t.setSelectionRange(n+1,n+1),e.target.value=r}},focus:function(){this.$refs.input.focus()},select:function(){this.$refs.input.select()},isStringEmpty:function(e){return void 0===e||null===e||""===e}},watch:{value:function(){var e=this;this.internalValue=this.value,this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.$emit("debounce",e.value)}),this.debounceTime)}}}),bn=gn,vn=Object(y["a"])(bn,pn,hn,!1,null,"5b77d009",null),_n=vn.exports,yn=function(){var e=this,t=e._self._c;return t("picture",{staticClass:"e-img"},[t("source",{attrs:{srcset:e.optimizedSrc,type:"image/webp"}}),t("source",{attrs:{srcset:e.imgSrc,type:e.mimeType}}),t(e.componentTag,{tag:"component",class:[e.imgClass,e.portraitMode?"portrait":"landscape"],attrs:{src:e.imgSrc,alt:e.alt,thumbnail:e.thumbnail,block:e.block,center:e.center,"blank-color":e.blankColor,fluid:e.fluid,"fluid-grow":e.fluidGrow,rounded:e.rounded,width:e.width,height:e.height},on:{load:function(t){return e.$emit("load")}}})],1)},wn=[],kn={name:"e-img",props:{src:{type:String,required:!0},defaultSrc:{type:String},alt:{type:String},imgClass:{type:String},type:{type:String,default:"webp"},width:{type:[String,Number]},height:{type:[String,Number]},fluid:{type:Boolean},fluidGrow:{type:Boolean},block:{type:Boolean},center:{type:Boolean},thumbnail:{type:Boolean},blankColor:{type:String},useThumbnail:{type:Boolean}
1,rounded:{type:Boolean},centered:{type:Boolean},lazy:{type:Boolean},portraitMode:{type:Boolean,default:!1}},computed:{componentTag:function(){return this.lazy?"b-img-lazy":"b-img"},fileExtension:function(){var e=this.src.split(".");return e.length>1?e[e.length-1].toLowerCase():""},mimeType:function(){var e={jpg:"image/jpeg",bmp:"image/bitmap",png:"image/png",svg:"image/svg+xml",gif:"image/gif"};return e.hasOwnProperty(this.fileExtension)?e[this.fileExtension]:"image/jpeg"},_src:function(){return isStringEmpty(this.src)&&this.defaultSrc?this.defaultSrc:this.src.replace("../assets/","")},imgSrc:function(){return this._src.startsWith("https://")||this._src.startsWith("data:image")?this._src:n("1771")("./".concat(this._src))},optimizedSrc:function(){var e=this._src.replace(/(jpg|jpeg|gif|bmp|png)/,this.type);if(this.useThumbnail&&(e=this._src.replace(/\.(jpg|jpeg|gif|bmp|png)/,"-thumbnail."+this.type)),this._src.indexOf("https://")>=0)return e;try{return n("1771")("./".concat(e))}catch(t){return this.imgSrc}}}},Cn=kn,xn=(n("f37d"),Object(y["a"])(Cn,yn,wn,!1,null,"031e7124",null)),Sn=xn.exports,On=n("3f4e"),jn=(n("481b"),n("24ec"),n("95ad"),n("755e")),Mn=n("8055"),Nn=n.n(Mn);Object(en["loadProgressBar"])(),i["default"].config.productionTip=!1,i["default"].config.ignoredElements=[/^ion-/],n.e("chunk-533a1913").then(n.bind(null,"b75f")),i["default"].use(He["a"]),i["default"].use(nt["a"]),i["default"].use(Et.a,{touchClass:"",tapTolerance:10,swipeTolerance:30,longTapTimeInterval:400}),i["default"].use(jn,{load:{key:"AIzaSyCj2ePajfAOmEa9v2ekglmY4G5ffxmzhxw",libraries:"places"}}),i["default"].component("main-page",bt),i["default"].component("panel-sidebar",Ct),i["default"].component("item-card",Wt),i["default"].component("virtual-assistant",Qt),i["default"].component("btn-tag",Nt),i["default"].component("btn-tags",It),i["default"].component("vue-multiselect",Qe.a),i["default"].component("vue-phone-input",Ze.a),i["default"].component("e-action-sheet",on),i["default"].component("e-action-sheet-item",fn),i["default"].component("e-input",_n),i["default"].component("e-img",Sn),i["default"].component("e-button-async",On["a"]),i["default"].component("drag",it["Drag"]),i["default"].component("drop",it["Drop"]),i["default"].prototype.$socket={},i["default"].prototype.$socket.tables=Nn()("".concat(window.env.VUE_APP_API_URL,"/tables"),{transports:["websocket","polling"]}),i["default"].prototype.$socket.recommendationComments=Nn()("".concat(window.env.VUE_APP_API_URL,"/recommendation-comments"),{transports:["websocket","polling"]}),i["default"].prototype.$moment=tt.a,i["default"].prototype.$swal=Be.a;var Pn=.01*window.innerHeight;if(document.documentElement.style.setProperty("--eyeinvh","".concat(Pn,"px")),window.onresize=function(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--eyeinvh","".concat(e,"px"))},window.isCustomDomain=window.location.origin!==window.env.VUE_APP_URL,window.isCustomDomain){var $n=["^http://localhost","^https://localhost","^http://(\\d){1,3}\\.(\\d){1,3}\\.(\\d){1,3}\\.(\\d){1,3}","^capacitor://localhost"],Ln=new RegExp("("+$n.join(")|(")+")");window.isCustomDomain=!Ln.test(window.location.href)}window.customDomain=null,window.isCustomDomain&&(window.customDomain=window.location.hostname);var An=t["default"]=new i["default"]({router:Ve["a"],store:Ee["a"],render:function(e){return e(Ie)}}).$mount("#app")},5773:function(e,t,n){},"57b94":function(e,t,n){e.exports=n.p+"img/cake.b108d6a7.png"},5862:function(e,t,n){e.exports=n.p+"img/dining-table.a5869f86.png"},"58b4":function(e,t,n){e.exports=n.p+"img/website-home.b28a446f.jpg"},"5abd":function(e,t,n){},"5baf":function(e,t,n){e.exports=n.p+"img/NativeScript-Vue.2491adbd.png"},"5bb2":function(e,t,n){},"5c45":function(e,t,n){"use strict";n("3436")},"5c89":function(e,t,n){e.exports=n.p+"img/flag-france.b54f37eb.svg"},"5cd8":function(e,t,n){e.exports=n.p+"img/new-delivery.56920c85.webp"},"5d11":function(e,t,n){e.exports=n.p+"img/google.bbe3a3e5.jpg"},"5e1c":function(e,t,n){},"5e40":function(e,t,n){e.exports=n.p+"img/bbq.f6c4b2e2.png"},"5e7f":function(e,t,n){e.exports=n.p+"img/kosher.d853fb81.png"},"5e89":function(e,t,n){e.exports=n.p+"img/dish.921e77dd.png"},"5f37":function(e,t,n){e.exports=n.p+"img/preferences-en.2f6215dd.png"},"615e":function(e,t,n){"use strict";n("06c57")},"61b4":function(e,t,n){"use strict";n("40b8")},"61cc":function(e,t,n){e.exports=n.p+"img/cookie.ed9c6435.png"},"62ff":function(e,t,n){},"63ea":function(e,t,n){e.exports=n.p+"img/coffeecup.a5b4b6e0.png"},"640c":function(e,t,n){"use strict";n("4001")},"64aa":function(e,t,n){},"64b1":function(e,t,n){},6575:function(e,t,n){e.exports=n.p+"img/ice-cream-25.94f2fc15.png"},6663:function(e,t,n){"use strict";n("294a")},6780:function(e,t,n){e.exports=n.p+"img/champagne.0023eb27.png"},"683c":function(e,t,n){e.exports=n.p+"img/calendar-food.e7877e3b.png"},6856:function(e,t,n){"use strict";n("caad"),n("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"recommendation-item",class:{clickable:e.clickable},on:{click:e.onClicked}},[e.item.google_place_name?t("div",{staticClass:"place text-ellipsis pb-0"}
1,[t("b-link",{attrs:{to:"/restaurant/".concat(e.item.google_place_id)},on:{click:function(e){e.stopPropagation()}}},[e._v(e._s(e.item.google_place_name.toLowerCase()))])],1):e._e(),t("div",{staticClass:"image-container"},[t("aspect-img",{attrs:{src:e.image,aspect:"11:6"}}),e.hideStatus||"approved"===e.item.status?e._e():t("b-badge",{attrs:{variant:e.statusVariant}},[t("span",[e._v(e._s(e.statusText))])]),e.noLikes||["draft","pending","rejected"].includes(e.item.status)?e._e():t("div",{staticClass:"likes"},[t("i",{staticClass:"fa-heart fa-fw mr-1 text-pink",class:e.liked?"fas":"fal"}),t("span",[e._v(e._s(e.item.likes))])])],1),t("div",{staticClass:"content"},[t("div",{staticClass:"d-flex align-items-baseline justify-content-between"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name text-ellipsis"},[e._v(e._s(e.name))])]),e.noDescription?e._e():t("div",{staticClass:"short-description text-ellipsis"},[e._v(e._s(e.shortDescription))])]),e.enableModal?t("recommendation-modal",{attrs:{recommendation:e.item},model:{value:e.modalVisible,callback:function(t){e.modalVisible=t},expression:"modalVisible"}}):e._e()],1)},a=[],r=(n("a4d3"),n("e01a"),n("a9e3"),n("2532"),n("2b7f")),s=n("3cdb"),o={name:"recommendation-item",components:{RecommendationModal:s["a"],AspectImg:r["a"]},props:{item:{type:Object,required:!0},clickable:{type:Boolean,default:!0},autoDisplayModal:{type:Boolean},imgHeight:{type:[String,Number],default:150},noLikes:{type:Boolean},noDescription:{type:Boolean},hideStatus:{type:Boolean,default:!1}},data:function(){return{enableModal:!1,modalVisible:!1}},computed:{liked:function(){return!!this.user&&this.user.liked_recommendations.includes(this.item.id)},name:function(){return this.tr(this.item.name).toLowerCase()},shortDescription:function(){return this.tr(this.item.short_description)||this.tr(this.item.description)},image:function(){return this.item.image_url||"../assets/img/icons/no-image.jpg"},statusVariant:function(){switch(this.item.status){case"draft":return"warning";case"pending":return"info";case"rejected":return"danger"}return null},statusText:function(){switch(this.item.status){case"draft":return this.tr("Draft|Brouillon");case"pending":return this.tr("Pending|En attente");case"rejected":return this.tr("Rejected|Rejeté")}return null}},methods:{onClicked:function(){this.autoDisplayModal&&this.showModal()},showModal:function(){this.enableModal=!0,this.modalVisible=!0}}},c=o,u=(n("ef52"),n("2877")),l=Object(u["a"])(c,i,a,!1,null,null,null);t["a"]=l.exports},"687f":function(e,t,n){},"68f1":function(e,t,n){e.exports=n.p+"img/egg.0a3fc532.png"},"68fb":function(e,t,n){e.exports=n.p+"img/pizza-25.fc72f733.png"},6900:function(e,t,n){},"6c1e":function(e,t,n){e.exports=n.p+"img/feedback.376e8a3f.png"},"6c9d":function(e,t,n){e.exports=n.p+"img/champagne-glasses.e372deed.png"},"6cb3":function(e,t,n){},"6d6c":function(e,t,n){e.exports=n.p+"img/yingyang.330c0641.png"},"6d87":function(e,t,n){},"6d94":function(e,t,n){var i={"./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26"};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=r,e.exports=a,a.id="6d94"},"6e2a":function(e,t,n){e.exports=n.p+"img/seafood-free.2e35d1c7.png"},"6e5b":function(e,t,n){e.exports=n.p+"img/client-mc-cafe.b8e3a0dc.png"},"6e5d":function(e,t,n){e.exports=n.p+"img/star.6f4430c6.png"},"6e96":function(e,t,n){},"6ea5":function(e,t,n){e.exports=n.p+"img/assistant.e0b2ddf3.jpg"},"6ec0":function(e,t,n){"use strict";n("687f")},"6fbd":function(e,t,n){e.exports=n.p+"img/dollars2.2f174b37.png"},"6fbe":function(e,t,n){e.exports=n.p+"img/table.25ca16b1.png"},7012:function(e,t,n){e.exports=n.p+"img/explore-fr.0b439403.png"},7062:function(e,t,n){e.exports=n.p+"img/pizza.1523e386.png"},7068:function(e,t,n){},"706b":function(e,t,n){"use strict";n("027f")},"70dd":function(e,t,n){e.exports=n.p+"img/other-man-fly.f417cfb5.png"},"70f7":function(e,t,n){"use strict";n("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-settings"},[e.modalOnly?e._e():t("b-btn",{attrs:{size:e.size,variant:e.variant},on:{click:function(t){return t.preventDefault(),e.show.apply(null,arguments)}}},[e.showIcon?t("i",{staticClass:"fal mr-2",class:e.orderIconName}):e._e(),t("span",[e._v(e._s(e._f("tr")(e.orderModeName)))]),t("i",{staticClass:"fal fa-chevron-down ml-1"}
1)]),t("b-modal",{attrs:{"modal-class":"modal-order-mode","body-class":"p-0","no-close-on-backdrop":"",scrollable:"","ok-only":"","hide-header":"","no-close-on-esc":""},on:{hidden:e.close},scopedSlots:e._u([{key:"modal-footer",fn:function(n){var i=n.ok;return[t("b-btn",{attrs:{variant:"primary",disabled:"delivery"===e.orderMode&&!e.delivery.address},on:{click:i}},[e._v(" OK ")])]}}]),model:{value:e.isVisible,callback:function(t){e.isVisible=t},expression:"isVisible"}},[t("div",{staticClass:"order-select-card"},[t("div",{staticClass:"order-select-header"},[t("div",{staticClass:"text-center"},[t("h3",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"m-0 py-4"},[e._v("Your Order|Votre commande")])]),t("b-btn",{staticClass:"btn-left",attrs:{variant:"rounded"},on:{click:function(t){e.isVisible=!1}}},[t("i",{staticClass:"fas fa-chevron-left"})])],1),t("div",{staticClass:"card-info"},[e.restaurantSelected?t("div",[t("div",{staticClass:"d-flex align-items-center justify-content-between"},[t("div",[t("div",{staticClass:"title text-black"},[e._v(e._s(e._f("tr")(e.restaurantSelected.name)))]),t("div",{staticClass:"address mb-1"},[e._v(e._s(e._f("address")(e.restaurantSelected)))]),t("a",{attrs:{href:"tel:"+e.restaurantSelected.phone_number,target:"_blank"}},[e._v(e._s(e._f("phoneNumber")(e.restaurantSelected.phone_number)))])])]),t("hr",{staticClass:"my-2"})]):e._e(),e.restaurantSelected&&e.restaurantSelected.planned_orders_enabled?[e.minOrderDelay>0?t("div",{staticClass:"text-warning f-500"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Please order order at least|Merci de commander au moins")]),t("span",{staticClass:"mx-1"},[e._v(e._s(e.minOrderDelay)+"h")]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("in advance|à l'avance")])]):e._e(),t("h5",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-black"},[e._v("Order Timing|Heure de la commande")]),"off-hours-planned-enabled"===e.orderRestaurantOrderingStatus.reason&&e.minOrderDelay<5?t("div",{staticClass:"mb-3"},[t("div",{staticClass:"text-info f-11 f-500 mb-1"},[e._v(e._s(e._f("tr")(e.orderRestaurantOrderingStatus.text)))])]):e._e(),t("b-row",{staticClass:"mb-2 mb-lg-3"},[t("b-col",{attrs:{cols:"6"}},[t("b-input-group",[t("b-input-group-text",[t("i",{staticClass:"fas fa-calendar-alt"})]),t("b-select",{attrs:{options:e.dateSelectOptions},model:{value:e.orderDate,callback:function(t){e.orderDate=t},expression:"orderDate"}})],1)],1),t("b-col",{attrs:{cols:"6"}},[t("b-input-group",[t("b-input-group-text",[t("i",{staticClass:"fas fa-clock"})]),t("b-select",{attrs:{options:e.timeSelectOptions},model:{value:e.orderTime,callback:function(t){e.orderTime=t},expression:"orderTime"}})],1)],1)],1),e.sameTimezone?e._e():t("div",{staticClass:"text-warning f-11 mb-3"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Restaurant time: |Heure locale du restaurant :")]),t("span",{staticClass:"f-700 text-capitalize ml-1"},[e._v(e._s(e.$moment.tz((e.orderRestaurant||e.restaurant).timezone).format("LLLL")))])])]:e._e(),e.orderModes.length?t("div",{staticClass:"order-modes"},[t("h5",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-black"},[e._v("Order Mode|Type de commande")]),t("div",{staticClass:"d-flex justify-content-center flex-wrap"},[e._l(e.orderModes,(function(n){return t("b-card",{key:n.mode,class:{active:e.isOrderModeActive(n.mode)},on:{click:function(t){return e.setOrderMode(n.mode)}}},[t("b-img",{attrs:{src:n.icon}}),t("div",{staticClass:"d-flex h-100 align-items-start justify-content-center flex-column"},[t("div",{staticClass:"name"},[e._v(e._s(e._f("tr")(n.name)))]),t("div",{staticClass:"instructions"},[e._v(e._s(e._f("tr")(n.instructions)))])]),t("i",{staticClass:"icon fas fa-check-circle text-success"})],1)})),"delivery"===e.lastOrderModeClicked||"delivery"===e.orderMode?t("div",{staticClass:"w-100 mt-2"},[e.delivery.address?t("div",[t("h5",{staticClass:"text-black"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"mr-1"},[e._v("Delivery address|Adresse de livraison")]),e._v(" "),t("a",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"btn-link cursor-pointer",on:{click:e.deleteDeliveryAddress}},[e._v("change|changer")])]),t("p",{staticClass:"f-500"},[e._v(e._s(e.delivery.formatted_address))])]):t("b-form-group",{attrs:{label:e._f("tr")("Delivery address|Adresse de livraison")}},[t("e-input-location",{attrs:{value:e.delivery.address,placeholder:e._f("tr")("Enter your address|Entrez votre adresse")},on:{"place-changed":e.setDeliveryAddress}})],1),e.delivery.address?e._e():t("p",{staticClass:"text-danger"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-500"},[e._v("Please provide your address|Merci de fournir votre adresse")]),e._v(" "),t("i",{staticClass:"fas fa-arrow-up ml-1"}
1)])],1):e._e()],2)]):e._e()],2)])])],1)},a=[],r=n("c7eb"),s=n("1da1"),o=n("b85c"),c=(n("7db0"),n("14d9"),n("e9f5"),n("f665"),n("d3b7"),n("755e")),u=n("1931"),l=n("9665"),d=n("edc8"),m=n("2ad9"),f=n("c1dd"),p={name:"order-settings",components:{EInputLocation:f["a"]},mixins:[l["a"]],props:{modalOnly:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},size:{type:String,default:""},variant:{type:String,default:""},disableInitCheck:{type:Boolean,default:!1},menuSelected:{},restaurantSelected:{}},data:function(){return{isVisible:!1,lastOrderModeClicked:null,OrderHelper:u["a"]}},computed:{orderModes:function(){var e,t=[],n=Object(o["a"])(u["a"].orderModes);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.isAvailable(i)&&t.push(u["a"].getOrderModeDetails(i))}}catch(a){n.e(a)}finally{n.f()}return t},orderIconName:function(){return u["a"].getOrderModeDetails(this.orderMode).svg},orderModeName:function(){return u["a"].getOrderMode(this.orderMode)},google:c["gmapApi"],gmapSearchOptions:function(){if(!this.google)return{};var e=null;this.$store.state.geolocation.coords&&(e=new this.google.maps.LatLng(this.$store.state.geolocation.coords.latitude,this.$store.state.geolocation.coords.longitude));var t=new this.google.maps.Circle({radius:1e4,center:e});return{bounds:t.getBounds()}},sameTimezone:function(){var e=this.orderRestaurant||this.restaurant;return!e||this.$moment().utcOffset()===this.$moment.tz(e.timezone).utcOffset()}},created:function(){var e=this;m["a"].addListener("appStateChange",(function(t){t.isActive&&e.loadOrderRestaurant()}))},mounted:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isVisible=e.visible,t.next=1,e.loadOrderRestaurant();case 1:return t.next=2,e.init();case 2:e.$store.subscribe((function(t){"setRestaurantHours"===t.type&&e.init()}));case 3:case"end":return t.stop()}}),t)})))()},activated:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,e.loadOrderRestaurant();case 1:return t.next=2,e.init();case 2:case"end":return t.stop()}}),t)})))()},methods:{init:function(){var e=this;if(!this.disableInitCheck&&(!this.orderMode||!this.isAvailable(this.orderMode))){var t=this.orderMode||"take_out";this.restaurantSelected&&!this.isAvailable(t)&&(t=this.isAvailable("take_out")?"take_out":this.isAvailable("dine_in")?"dine_in":this.isAvailable("delivery")?"delivery":this.isAvailable("drive")?"drive":this.isAvailable("curbside")?"curbside":null),this.setOrderMode(t);var n=this.orderDate,i=this.$moment(this.$store.state.orderModeDate).format("YYYY-MM-DD")===this.$moment().format("YYYY-MM-DD");n&&i&&(!this.dateSelectOptions||this.dateSelectOptions.find((function(t){return t.value===e.orderDate})))||(this.orderDate=(this.dateSelectOptions[0]||{}).value,this.orderTime=null),this.timeSelectOptions&&!this.timeSelectOptions.find((function(t){return t.value===e.orderTime}))&&(this.orderTime=(this.timeSelectOptions[0]||{}).value)}},loadOrderRestaurant:function(){var e=this;if(this.order&&this.order.items.length>0&&this.orderRestaurant)return d["a"].get("/client/restaurant/".concat(this.orderRestaurant.id)).then((function(t){e.$store.commit("order/setOrderRestaurant",t.data)})).catch((function(e){return console.error(e.response.data)}))},isOrderModeActive:function(e){return e===this.orderMode},isAvailable:function(e){if(!this.restaurantSelected)return!0;switch(e){case"delivery":return this.restaurantSelected.delivery_offered;case"dine_in":return this.restaurantSelected.dine_in_offered;case"curbside":return this.restaurantSelected.curbside_pickup_offered;case"take_out":return this.restaurantSelected.take_out_offered;case"drive":return this.restaurantSelected.drive_through_offered}},show:function(){this.isVisible=!0},setOrderMode:function(e){this.lastOrderModeClicked=e,("delivery"!==e||this.delivery.address)&&(this.orderMode=e),"restaurant-menu"!==this.$route.name||"delivery"!==e||this.delivery.address||this.show()},setDeliveryAddress:function(e){e.comments="",this.user&&(e.phone=this.user.phone_number),this.orderMode=this.lastOrderModeClicked||this.orderMode,this.$store.commit("setDelivery",e)},deleteDeliveryAddress:function(){if(this.$store.commit("setDelivery",null),this.user){var e={};e.phone=this.user.phone_number,this.$store.commit("setDelivery",e)}},close:function(){"delivery"!==this.orderMode||this.delivery.address||(this.orderMode=(this.orderModes.find((function(e){return"delivery"!==e}))||{}).mode),this.$emit("change"),this.lastOrderModeClicked=null}},watch:{restaurantSelected:function(){this.init()}}},h=p,g=(n("706b"),n("2877")),b=Object(g["a"])(h,i,a,!1,null,null,null);t["a"]=b.exports},7186:function(e,t,n){e.exports=n.p+"img/badge.c989414d.png"},7188:function(e,t,n){e.exports=n.p+"img/settings.8953ed7d.png"},"71bd":function(e,t,n){e.exports=n.p+"img/refund.d73c4bc3.png"},"71c6":function(e,t,n){"use strict";n("4de4"),n("caad"),n("e9f5"),n("910d"),n("b64b"),n("d3b7"),n("2532");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"avatar-container",on:{click:function(t){return e.$emit("click",t)}}},[t("b-img-lazy",{staticClass:"avatar",style:e.style,attrs:{src:e._src},nativeOn:{click:function(t){return e.onClick.apply(null,arguments)}}}),e.canEdit?t("div",{staticClass:"edit-btn",on:{click:function(t){t.stopPropagation(),e.editor.visible=!0}}},[t("i",{staticClass:"fas fa-pen"}
1)]):e._e(),e.canEdit?t("b-modal",{attrs:{"hide-footer":e.editor.mobileVisible,size:e.modalSize,title:e._f("tr")("Edit Avatar|Édition de l'avatar"),"body-class":"p-0","header-class":"d-flex align-items-center",scrollable:""},on:{hidden:e.onHide,show:e.onShow},scopedSlots:e._u([{key:"modal-footer",fn:function(){return["avatar"===e.mode?t("b-btn",{staticClass:"mr-auto",attrs:{variant:"blue"},on:{click:function(t){t.stopPropagation(),e.mode="picture"}}},[t("i",{staticClass:"fas fa-camera mr-2"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Picture|Photo")])]):"picture"===e.mode?t("b-btn",{staticClass:"mr-auto",attrs:{variant:"primary"},on:{click:function(t){t.stopPropagation(),e.mode="avatar"}}},[t("i",{staticClass:"fas fa-grin-alt mr-2"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Avatar|Avatar")])]):e._e(),t("b-btn",{attrs:{variant:"transparent"},on:{click:function(t){t.stopPropagation(),e.editor.visible=!1}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Cancel|Annuler")])]),t("b-btn",{attrs:{disabled:!e.canSave,variant:"primary"},on:{click:function(t){return t.stopPropagation(),e.save.apply(null,arguments)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Save|Valider")])])]},proxy:!0}],null,!1,3101171759),model:{value:e.editor.visible,callback:function(t){e.$set(e.editor,"visible",t)},expression:"editor.visible"}},[t("div",{staticClass:"editor"},[t("div",{staticClass:"overflow-hidden d-flex flex-column max-h100",staticStyle:{flex:"1"}},[t("div",{staticClass:"current-preview"},["avatar"===e.mode?t("b-img-lazy",{attrs:{src:e.editorPreview,width:"150"}}):"picture"===e.mode?t("b-img-lazy",{staticStyle:{"object-fit":"cover"},attrs:{src:e.picture||n("bab5"),height:"200",width:"200"}}):e._e()],1),"avatar"===e.mode?t("div",{staticClass:"section-list",class:{mobile:e.isMobileLayout}},e._l(Object.keys(e.attributes).filter((function(e){return!e.includes("Color")})),(function(n){return t("b-btn",{key:n,attrs:{variant:e.editor.selectedKey===n?"primary":"light"},on:{click:function(t){return t.stopPropagation(),e.setAttributeKey(n)}}},[e._v(" "+e._s(e.attributeLabel(n))+" ")])})),1):e._e(),"avatar"===e.mode?[e.hasColors?t("div",{staticClass:"colors",class:{mobile:e.isMobileLayout}},[t("div",{staticClass:"colors-container"},e._l(e.attributes[e.selectedColorKey],(function(n){return t("div",{key:n,staticClass:"color",class:{active:n===e.editor.config[e.selectedColorKey]},style:{background:e.colors[n]},on:{click:function(t){t.stopPropagation(),e.editor.config[e.selectedColorKey]=n}}})})),0)]):e._e(),t("div",{staticClass:"preview px-2 px-lg-3 py-3",class:{mobile:e.isMobileLayout}},e._l(e.attributes[e.editor.selectedKey],(function(n){return t("b-img-lazy",{key:n,staticClass:"avatar",class:{active:n===e.editor.config[e.editor.selectedKey]},attrs:{src:e.preview(n)},nativeOn:{click:function(t){return e.setAttributeValue(n)}}})})),1)]:t("div",{staticClass:"p-3",class:{"grid-2":!e.isMobileLayout}},[t("b-btn",{staticClass:"text-left py-2",attrs:{block:"",variant:"light"},on:{click:function(t){return t.stopPropagation(),e.openGallery.apply(null,arguments)}}},[t("i",{staticClass:"fas fa-images fa-fw mr-3"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("From gallery|Depuis la galerie")])]),e.isNative?t("b-btn",{staticClass:"text-left mt-md-0 py-2",attrs:{block:"",variant:"light"},on:{click:function(t){return t.stopPropagation(),e.takePicture.apply(null,arguments)}}},[t("i",{staticClass:"fas fa-camera fa-fw mr-3"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("From camera|Depuis l'appareil photo")])]):e._e()],1)],2),"avatar"===e.mode?t("div",[t("transition",{attrs:{name:"slide"}})],1):e._e()])]):e._e()],1)},a=[],r=n("c7eb"),s=n("1da1"),o=n("ade3"),c=n("5530"),u=(n("99af"),n("a15b"),n("14d9"),n("e9c4"),n("a9e3"),n("8a79"),n("3ca3"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("fecd")),l={name:"user-avatar",props:{seed:{type:String,default:"default"},canEdit:{type:Boolean,default:!1},size:{type:[String,Number],default:50},src:{type:String}},data:function(){return{version:this.$moment().format("YYYY-MM-DD"),mode:"avatar",picture:null,editor:{visible:!1,selectedKey:null,config:{skinColor:"d08b5b",top:"shortFlat",accessories:"",hatColor:"",hairColor:"2c1b18",facialHair:"",facialHairColor:"2c1b18",clothing:"shirtVNeck",clothesColor:"5199e4",eyes:"default",eyebrows:"default",mouth:"default"},savedConfig:{},mobileVisible:!1}}},computed:{_src:function(){return this.src?"".concat(this.src,"?v=").concat(this.version):"https://api.dicebear.com/7.x/initials/svg?seed=".concat(this.seed)},style:function(){return{cursor:this.canEdit?"pointer":"inherit",width:"".concat(this.size,"px"),height:"".concat(this.size,"px")}},editorPreview:function(){return this.generateUrl(this.editor.config)},attributes:function(){return{skinColor:["fd9841","f8d25c","ffdbb4","edb98a","d08b5b","ae5d29","614335"],top:["bigHair","bob","bun","curly","curvy","dreads","frida","fro","froBand","miaWallace","longButNotTooLong","shavedSides","straight01","straight02","straightAndStrand","dreads01","dreads02","frizzle","shaggy","shortCurly","shortFlat","shortRound","shortWaved","
1sides","theCaesar","theCaesarAndSidePart","winterHat1","winterHat02","winterHat03","winterHat04","","hat","hijab","turban"],eyes:["default","hearts","eyeRoll","happy","side","squint","closed","surprised","wink","winkWacky","cry"],eyebrows:["default","angry","angryNatural","defaultNatural","flatNatural","raisedExcited","raisedExcitedNatural","sadConcerned","sadConcernedNatural","upDown","upDownNatural","frownNatural"],mouth:["default","eating","smile","tongue","twinkle","serious","disbelief"],facialHair:["","beardLight","beardMedium","beardMajestic","moustacheFancy","moustacheMagnum"],accessories:["","kurt","prescription01","prescription02","round","sunglasses","eyepatch","wayfarers"],hatColor:["3c4f5c","65c9ff","262e33","5199e4","25557c","929598","a7ffc4","b1e2ff","e6e6e6","ff5c5c","ff488e","ffafb9","ffdeb5","ffffb1","ffffff"],hairColor:["a55728","2c1b18","d6b370","b58143","724133","4a312c","f59797","ecdcbf","c93305","e8e1e1"],facialHairColor:["2c1b18","4a312c","724133","a55728","b58143","c93305","d6b370","e8e1e1","ecdcbf","f59797"],clothing:["blazerAndShirt","blazerAndSweater","collarAndSweater","graphicShirt","shirtCrewNeck","shirtScoopNeck","shirtVNeck","hoodie","overall"],clothesColor:["3c4f5c","65c9ff","262e33","5199e4","25557c","929598","a7ffc4","b1e2ff","e6e6e6","ff5c5c","ff488e","ffafb9","ffffb1","ffffff"]}},colors:function(){return{fdfdfd:"#fdfdfd","262e33":"#262e33","65c9ff":"#65c9ff","5199e4":"#5199e4","25557c":"#25557c",e5e5e5:"#e5e5e5",929598:"#929598","3c4f5c":"#3c4f5c",b1e2ff:"#b1e2ff",a7ffc4:"#a7ffc4",ffdeb5:"#ffdeb5",ffafb9:"#ffafb9",ffffb1:"#ffffb1",ff488e:"#ff488e",ff5c5c:"#ff5c5c",a55728:"#a55728",b58143:"#b58143",d6b370:"#d6b370",724133:"#724133","4a312c":"#4a312c",f59797:"#f59797",ecdcbf:"#ecdcbf","2c1b18":"#2c1b18",c93305:"#c93305",e8e1e1:"#e8e1e1",e6e6e6:"#e6e6e6",ffffff:"#ffffff"}},modalSize:function(){return this.isLargeLayout?"lg":"xxl"},hasColors:function(){return["top","facialHair","clothing"].includes(this.editor.selectedKey)},selectedColorKey:function(){switch(this.editor.selectedKey){case"top":return this.isHat(this.editor.config[this.editor.selectedKey])?"hatColor":"hairColor";case"facialHair":return"facialHairColor";case"clothing":return"clothesColor"}return null},canSave:function(){return"avatar"===this.mode||!!this.picture&&"picture"===this.mode}},methods:{isHat:function(e){return["hat","hijab","turban","winterHat1","winterHat02","winterHat03","winterHat04"].includes(e)},onClick:function(e){this.canEdit&&(this.editor.visible=!0),this.$emit("click",e)},onShow:function(){if(this.editor.selectedKey="skinColor",this.src){var e=new URL(this.src);e.pathname.endsWith(".svg")?this.mode="avatar":(this.mode="picture",this.picture=this.src)}},onHide:function(){this.picture=null},attributeLabel:function(e){var t={skinColor:this.tr("Skin|Peau"),top:this.tr("Hair|Coiffure"),accessories:this.tr("Glasses|Lunettes"),hatColor:this.tr("Hat Color|Couleur du chapeau"),hairColor:this.tr("Hair Color|Couleur des cheveux"),facialHair:this.tr("Facial Hair|Barbe"),facialHairColor:this.tr("Facial Hair Color|Couleur de la barbe"),clothing:this.tr("Clothes|Vêtements"),clothesColor:this.tr("Clothes Color|Couleur des vêtements"),eyes:this.tr("Eyes|Yeux"),eyebrows:this.tr("Eyebrow|Sourcils"),mouth:this.tr("Mouth|Bouche")};return t[e]},generateUrl:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];
1if(e[a]&&t.push("".concat(a,"=").concat(e[a])),["top","accessories","facialHair"].includes(a)){var r=e[a]?100:0;t.push("".concat(a,"Probability=").concat(r))}}return"https://api.dicebear.com/7.x/avataaars/svg?".concat(t.join("&"))},preview:function(e){var t=this.editor.selectedKey,n=Object(c["a"])(Object(c["a"])({},this.editor.savedConfig),{},Object(o["a"])({},t,e));return this.generateUrl(n)},setAttributeValue:function(e){this.editor.config[this.editor.selectedKey]=e},setAttributeKey:function(e){var t=this;this.editor.selectedKey=e,this.$nextTick((function(){return t.editor.mobileVisible=!1}))},save:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("avatar"!==e.mode){t.next=2;break}return t.next=1,fetch(e.editorPreview).then((function(e){return e.blob()})).then((function(t){var n=new FileReader;n.readAsDataURL(t),n.onloadend=function(){var t=n.result;e.$emit("save",t)}}));case 1:t.next=4;break;case 2:if("picture"!==e.mode){t.next=4;break}if(e.picture){t.next=3;break}return t.abrupt("return");case 3:e.$emit("save",e.picture);case 4:e.editor.visible=!1,setTimeout((function(){e.version=Math.random()}),1e3);case 5:case"end":return t.stop()}}),t)})))()},openGallery:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,u["a"].getPhoto({allowEditing:!1,resultType:u["b"].DataUrl,source:u["c"].Photos,correctOrientation:!0,quality:50});case 1:return n=t.sent,t.next=2,compressImage(n.dataUrl,1500);case 2:e.picture=t.sent;case 3:case"end":return t.stop()}}),t)})))()},takePicture:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,u["a"].getPhoto({allowEditing:!1,resultType:u["b"].DataUrl,source:u["c"].Camera,correctOrientation:!0,quality:50});case 1:return n=t.sent,t.next=2,compressImage(n.dataUrl,1500);case 2:e.picture=t.sent;case 3:case"end":return t.stop()}}),t)})))()}},watch:{"editor.selectedKey":function(){this.editor.savedConfig=JSON.parse(JSON.stringify(this.editor.config))}}},d=l,m=(n("e401"),n("2877")),f=Object(m["a"])(d,i,a,!1,null,"34239772",null);t["a"]=f.exports},7295:function(e,t,n){},7321:function(e,t,n){e.exports=n.p+"img/client-thai-express.a5477f92.png"},"734f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));n("53ca"),n("b64b"),n("c1df");function i(){var e=localStorage.getItem("language");return e||(e="fr"===navigator.language.substring(0,2)?"fr":"en",localStorage.setItem("language",e)),e}function a(){return"fr"===i()}},"73b1":function(e,t,n){e.exports=n.p+"img/award-25.6bcbb6f2.png"},7606:function(e,t,n){e.exports=n.p+"img/salad_light.8a3b7f7d.png"},7620:function(e,t,n){e.exports=n.p+"img/thumbs_up.ef09519e.png"},"765c":function(e,t,n){},7667:function(e,t,n){e.exports=n.p+"img/flag-united-kingdom.5165578d.svg"},7715:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"badge-certification"},[e.dense?t("i",{staticClass:"fas fa-badge-check",class:"text-".concat(e.variant),style:"color: ".concat(e.variant),attrs:{title:e.text}}):t("b-badge",{staticClass:"py-1 px-2",attrs:{tag:"div",variant:e.variant}},[t("div",{staticClass:"text"},[e._v(e._s(e.text))])])],1)},a=[],r=(n("b0c0"),n("d4ec")),s=n("bee2"),o=n("ade3"),c=(n("7db0"),n("e9f5"),n("f665"),n("d3b7"),function(){function e(){Object(r["a"])(this,e)}return Object(s["a"])(e,null,[{key:"getCertification",value:function(e){return this.certifications.find((function(t){return t.id===e}))}}])}());Object(o["a"])(c,"certifications",[{id:"amateur",name:"Amateur|Amateur",variant:"success"},{id:"food_critic",name:"Food Critic|Critique culinaire",variant:"primary"},{id:"gastronomic_critic",name:"Gastronomic Critic|Critique gastronomique",variant:"primary"},{id:"star",name:"VIP|Vedette",variant:"purple"},{id:"staff",name:"Editor|Rédacteur",variant:"info"},{id:"influencer",name:"Foodie|Foodie",variant:"warning"},{id:"restaurant_owner",name:"Restaurant Owner|Restaurateur",variant:"darker"}
1]);var u={name:"badge-certification",props:{certification:{type:String,required:!0},dense:{type:Boolean,default:!1}},computed:{variant:function(){return c.getCertification(this.certification).variant},text:function(){return this.tr(c.getCertification(this.certification).name)}}},l=u,d=(n("61b4"),n("2877")),m=Object(d["a"])(l,i,a,!1,null,null,null);t["a"]=m.exports},"776b":function(e,t,n){e.exports=n.p+"img/dollars4.64a244c5.png"},"778d":function(e,t,n){},78398:function(e,t,n){e.exports=n.p+"img/confident.17145d0a.png"},"78bd":function(e,t,n){e.exports=n.p+"img/book-love.b0ca332f.png"},"7a35":function(e,t,n){e.exports=n.p+"img/profits.47947abe.png"},"7b7d":function(e){e.exports=JSON.parse('[{"id":"public","icon":"fa-earth-americas","description":"Everybody|Tout le monde"},{"id":"friends","icon":"fa-users","description":"My friends|Mes amis"},{"id":"private","icon":"fa-lock","description":"Only me|Uniquement moi"}]')},"7c2a":function(e,t,n){},"7c3e":function(e,t,n){},"7ca1":function(e,t,n){e.exports=n.p+"img/food-delivery.8e560ae0.png"},"7cd1":function(e,t,n){e.exports=n.p+"fonts/SourceSansPro-Light.b2e90cc0.ttf"},"7cfa":function(e,t,n){e.exports=n.p+"img/student.985cf674.png"},"7e3f":function(e,t,n){e.exports=n.p+"img/grocery-bag.d4be7c2d.png"},"7f50":function(e,t,n){},8004:function(e,t,n){e.exports=n.p+"img/search.3a87e864.png"},"809d":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return e.isOwnProfile?e._e():t("div",[t("b-btn",{class:{following:e.following},attrs:{variant:e.following?"outline-primary":"primary",size:e.dense?"xs":"",disabled:e.loading,"data-test":"btn-follow"},on:{click:function(t){return t.stopPropagation(),e.follow.apply(null,arguments)}}},[e.following?t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Subscribed|Abonné")])]):t("span",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Follow|S'abonner")])]),e.following&&!e.dense?t("i",{staticClass:"fal fa-check ml-1"}):e._e()])],1)},a=[],r=n("c7eb"),s=n("1da1"),o=(n("99af"),n("caad"),n("14d9"),n("a434"),n("d3b7"),n("2532"),n("edc8")),c={name:"button-follow",props:{account:{type:Object,required:!0},dense:{type:Boolean,default:!1}},data:function(){return{loading:!1}},computed:{following:function(){return!!this.user&&this.user.following.includes(this.account.id)},isOwnProfile:function(){return this.user&&this.user.id===this.account.id}},methods:{follow:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.user){t.next=1;break}return t.abrupt("return",e.toaster({duration:2e3,message:e.tr(["Login in order to follow!","Identifiez-vous pour suivre cette personne !"]),position:"bottom"}));case 1:if(!e.following){t.next=3;break}return t.next=2,e.$swal({title:e.tr("Unfollow|Se désabonner"),text:e.tr("Unfollow |Se désabonner de ")+"".concat(e.account.first_name," ").concat(e.account.last_name,"?"),buttons:[e.tr("Cancel|Annuler"),e.tr("Confirm|Confirmer")]});case 2:if(n=t.sent,n){t.next=3;break}return t.abrupt("return");case 3:return e.loading=!0,t.abrupt("return",o["a"].post("/client/account/follow",{account_id:e.account.id}).then((function(t){var n=t.data;n?(e.user.following.push(e.account.id),e.$emit("follow")):(e.user.following.splice(e.user.following.indexOf(e.account.id),1),e.user.notified_following.splice(e.user.notified_following.indexOf(e.account.id),1),e.$emit("unfollow"))})).catch((function(e){return console.error(e.response.data)})).finally((function(){return e.loading=!1})));case 4:case"end":return t.stop()}}),t)})))()}}},u=c,l=(n("32f7"),n("2877")),d=Object(l["a"])(u,i,a,!1,null,"2536d3e2",null);t["a"]=d.exports},8145:function(e,t,n){e.exports=n.p+"img/client-mc-donald.6f32f3d2.png"},"817f":function(e,t,n){e.exports=n.p+"img/food-banner-3.33243a2b.jpg"},"846a":function(e,t,n){e.exports=n.p+"img/comment.a8f38868.png"},8475:function(e,t,n){"use strict";n("6e96")},"84f1":function(e,t,n){e.exports=n.p+"img/diet.fd14201b.png"},8586:function(e,t,n){"use strict";n("a4d3"),n("e01a"),n("b0c0");var i=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{visible:e.value,size:"md",title:e.hasFirstStep?e.tr("Create a combo|Prendre un combo"):e.tr("Customize choices|Personnaliser votre choix"),"body-class":"combo-creator","no-close-on-backdrop":"",scrollable:"","hide-footer":0===e.currentStep(),"footer-class":"p-0"},on:{hide:function(t){return e.$emit("input",!1)}},scopedSlots:e._u([{key:"modal-header",fn:function(){return[t("div",{staticClass:"d-flex align-items-center w-100 h-100"}
1,[t("b-btn",{staticClass:"mr-auto",class:{invisible:0===e.currentStep()||!e.hasFirstStep},attrs:{variant:"transparent"},on:{click:function(t){return t.stopPropagation(),e.previousStep.apply(null,arguments)}}},[t("i",{staticClass:"fas fa-chevron-left"})]),t("h5",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"modal-title m-0"},[e._v("Customize your Choices|Personnaliser votre choix")]),t("b-btn",{staticClass:"ml-auto",attrs:{variant:"transparent"},on:{click:function(t){return t.stopPropagation(),e.$emit("input",!1)}}},[t("i",{staticClass:"fas fa-times"})])],1)]},proxy:!0},{key:"modal-footer",fn:function(){return[e.customizationWizard.enabled&&(2===e.currentStep()||1===e.currentStep()&&!e.hasSecondStep)?[t("b-btn",{staticClass:"my-2 py-2 ml-2 mr-auto",attrs:{disabled:!e.customizationWizard.showBackButton,variant:"light"},on:{click:function(t){e.customizationWizardStep--}}},[t("i",{staticClass:"fal fa-chevron-left mr-2"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Back|Précédent")])]),t("b-btn",{directives:[{name:"show",rawName:"v-show",value:!e.customizationWizard.showFinishButton,expression:"!customizationWizard.showFinishButton"}],staticClass:"my-2 mr-2 py-2 flat",attrs:{disabled:!e.customizationWizard.stepValid,variant:"primary"},on:{click:function(t){e.customizationWizardStep++}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Next|Suivant")]),t("i",{staticClass:"fal fa-chevron-right ml-2"})]),t("b-btn",{directives:[{name:"show",rawName:"v-show",value:e.customizationWizard.showFinishButton,expression:"customizationWizard.showFinishButton"}],staticClass:"my-2 mr-2 py-2 flat",attrs:{variant:"primary",disabled:e.addToOrderDisabled()},on:{click:e.addComboToOrder}},[e.itemOrder?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-auto"},[e._v("Apply Change|Appliquer")]):t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-auto"},[e._v("Add to order|Ajouter")]),t("span",{staticClass:"ml-2 f-12 f-500"},[e._v(e._s(e._f("priceShort")(e.totalPrice)))])])]:[1===e.currentStep()&&e.hasSecondStep&&e.itemModifierGroups.length>0?t("b-btn",{staticClass:"add-order-btn justify-content-center",attrs:{variant:"green",block:"",disabled:!e.isComboValid()},on:{click:e.nextStep}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Next Step|Prochaine Étape")]),t("i",{staticClass:"fas fa-arrow-right ml-2"})]):e._e(),2===e.currentStep()||1===e.currentStep()&&!e.hasSecondStep||1===e.currentStep()&&!e.selectedItemOnly&&0===e.itemModifierGroups.length?t("b-btn",{staticClass:"add-order-btn",attrs:{variant:"primary",block:"",disabled:e.addToOrderDisabled()},on:{click:e.addComboToOrder}},[e.itemOrder?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-auto"},[e._v("Apply Change|Appliquer le changement")]):t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-auto"},[e._v("Add to order|Ajouter à la commande")]),t("span",{staticClass:"ml-auto f-12 f-500"},[e._v(e._s(e._f("priceShort")(e.totalPrice)))])]):e._e()]]},proxy:!0}])},[t("form-wizard",{ref:"wizard",class:{"hide-header":!e.hasFirstStep},attrs:{shape:"circle",color:"#6ab264"}},[t("tab-content",{attrs:{title:e._f("tr")("Choose a Combo|Choisir un Combo")}},[t("div",{staticClass:"p-1"},["combo"!==e.item.type?t("ion-card",{staticClass:"text-left text-black f-11 d-flex align-items-center p-4 m-0 mx-1 mb-2 cursor-pointer ion-activatable ripple-parent",attrs:{variant:"light",block:""},on:{click:e.addItemToOrder}},[t("div",[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-700"},[e._v(e._s(e.item.name))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1 f-400"},[e._v("only|uniquement")])]),t("div",{staticClass:"ml-auto f-500",staticStyle:{"white-space":"nowrap"}},[e._v(e._s(e._f("price")(e.item.price)))]),t("ion-ripple-effect")],1):e._e(),e._l(e.combos,(function(n,i){return t("ion-card",{key:i,staticClass:"text-left text-black f-11 d-flex p-4 m-0 mx-1 mb-2 cursor-pointer ion-activatable ripple-parent",attrs:{disabled:e.isComboLimitReached(n),block:""},on:{click:function(t){return e.selectCombo(n)}}},[t("div",[t("div",{staticClass:"f-700"},[e._v(e._s(e._f("tr")(n.name)))]),n.promotion?t("div",{staticClass:"text-info f-9 f-500 mt-1"},[t("i",{staticClass:"fas fa-badge-dollar mr-1 text-info"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]}
1,[e._v("Special Offer!|Offre spéciale!")])]):e._e()]),t("div",{staticClass:"ml-auto f-500"},[t("div",{staticStyle:{"white-space":"nowrap"}},[e._v(e._s(e._f("price")(e.comboBasePrice(n))))]),e.isComboLimitReached(n)?t("div",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Limit reached|Limite atteinte")])]):e._e()]),t("ion-ripple-effect")],1)}))],2)]),e.hasSecondStep?t("tab-content",{attrs:{title:e._f("tr")("Choose your items|Choix des éléments")}},[e.selectedCombo?[t("div",{staticClass:"px-3 f-700 mb-2 d-flex align-items-center text-ellipsis border-top",staticStyle:{"font-size":"20pt"}},[t("span",{staticClass:"text-ellipsis pr-2"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v(e._s(e.selectedCombo.name))]),"combo"!==e.item.type?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v(e._s(e.item.name))]):e._e()])]),e.selectedCombo.description?t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-justify px-3 f-300 mb-3"},[e._v(e._s(e.selectedCombo.description)+" ")]):e._e(),e._l(e.selectedCombo.slots,(function(n,i){return t("div",{key:i,staticClass:"mb-3"},[n.id!==e.selectedCombo.primary_slot_id?[t("div",{staticClass:"combo-slot",on:{click:function(t){return t.stopPropagation(),e.toggleSlot(n)}}},[t("div",{staticClass:"text-ellipsis"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-ellipsis",staticStyle:{"font-size":"15pt"}},[e._v(e._s(n.name))]),n.optional?t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-300 f-11",staticStyle:{"letter-spacing":"0.5px"}},[e._v("Optional|Optionnel")]):t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-300 f-11",staticStyle:{"letter-spacing":"0.5px"}},[e._v("Required|Requis")])]),n.optional&&n.selectedItem?t("b-btn",{staticClass:"ml-auto mr-3 px-3 py-0 my-0",attrs:{size:"sm"},on:{click:function(t){return t.stopPropagation(),e.clearSlot(n)}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Clear|Retirer")])]):e._e(),t("i",{staticClass:"fas",class:{"fa-angle-down":n.opened,"fa-angle-up":!n.opened,"ml-auto":!n.optional||!n.selectedItem}})],1),t("ion-radio-group",{directives:[{name:"show",rawName:"v-show",value:n.opened,expression:"slot.opened"}],attrs:{value:n.selectedItem},on:{ionChange:function(t){return e.selectItem(t,n)}}},e._l(n.items,(function(n,i){return t("ion-item",{key:i,attrs:{lines:"full"}},[t("ion-label",{staticClass:"d-flex align-items-center"},[t("div",{staticClass:"text-ellipsis pr-3"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-500 text-ellipsis"},[e._v(e._s(e.itemFromId(n.item_id).name))]),null!==e.itemFromId(n.item_id).calories?t("div",{staticClass:"f-11 f-500",staticStyle:{color:"rgba(0,0,0,0.7)"}}
1,[e._v(e._s(e.itemFromId(n.item_id).calories)+" kCal")]):e._e()]),n.extra_price>0?t("div",{staticClass:"ml-auto f-11 f-500"},[e._v("+"+e._s(e._f("price")(n.extra_price)))]):n.use_base_price?t("div",{staticClass:"ml-auto f-11 f-500"},[e._v("+"+e._s(e._f("price")(e.itemFromId(n.item_id).price)))]):e._e()]),t("ion-radio",{attrs:{slot:"start",mode:"md",value:n.item_id},slot:"start"})],1)})),1)]:e._e()],2)}))]:e._e()],2):e._e(),0===e.currentStep()||this.itemModifierGroups.length>0?t("tab-content",{attrs:{title:e._f("tr")("Customize your choices|Personnalisez vos choix")}},[e._l(e.itemModifierGroups,(function(n,i){return t("div",{key:i,staticClass:"mb-3",class:{"wizard-mode-container":e.customizationWizard.enabled}},[e.itemModifierGroups.length>1?t("ion-item-divider",{staticClass:"item-customization",attrs:{color:"primary",sticky:!0}},[t("ion-label",[e._v(e._s(e._f("tr")(n.item.name)))])],1):e._e(),e.customizationWizard.enabled?[e.customizationWizard.showNotes?t("div",{staticClass:"note-container"},[t("ion-item",{attrs:{color:"light",lines:"full"}},[t("ion-label",{staticClass:"text-uppercase f-500"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Last Step!|Dernière étape!")])])],1),t("b-form-group",{staticClass:"m-3",scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Extra Instructions|Instructions supplémentaires")])]},proxy:!0}],null,!0)},[t("b-textarea",{staticClass:"add-note",attrs:{rows:3,placeholder:e._f("tr")("Any special requests? The restaurant will do its best to accommodate you.|Des demandes spéciales? Le restaurant fera de son mieux pour vous accueillir.")},model:{value:e.itemNotes,callback:function(t){e.itemNotes=t},expression:"itemNotes"}})],1)],1):e.customizationWizard.currentModifier?t("modifier-group",{attrs:{"wizard-mode":"","item-modifier-groups":n.modifierGroups,size:e.item.totalSize,"base-price":e.item.price,"modifier-group":e.customizationWizard.currentModifier},on:{input:e.updatePriceAndSize},model:{value:e.customizationWizard.currentModifier.selected,callback:function(t){e.$set(e.customizationWizard.currentModifier,"selected",t)},expression:"customizationWizard.currentModifier.selected"}}):e._e()]:e._l(n.modifierGroups,(function(i){return t("modifier-group",{key:i.id,attrs:{"item-modifier-groups":n.modifierGroups,size:e.item.totalSize,"base-price":e.item.price,"modifier-group":i},on:{input:e.updatePriceAndSize},model:{value:i.selected,callback:function(t){e.$set(i,"selected",t)},expression:"group.selected"}})}))],2)})),e.customizationWizard.enabled?e._e():t("b-form-group",{staticClass:"m-3",scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Extra Instructions|Instructions supplémentaires")])]},proxy:!0}],null,!1,1290200092)},[t("b-textarea",{staticClass:"add-note",attrs:{rows:3,placeholder:e._f("tr")("Any special requests? The restaurant will do its best to accommodate you.|Des demandes spéciales? Le restaurant fera de son mieux pour vous accueillir.")},model:{value:e.itemNotes,callback:function(t){e.itemNotes=t},expression:"itemNotes"}})],1)],2):e._e()],1)],1)},a=[],r=n("2909"),s=n("5530"),o=n("c7eb"),c=n("1da1"),u=n("b85c"),l=(n("99af"),n("4de4"),n("7db0"),n("caad"),n("a15b"),n("d81d"),n("13d5"),n("e9f5"),n("d866"),n("910d"),n("f665"),n("7d54"),n("ab43"),n("9485"),n("a9e3"),n("b64b"),n("d3b7"),n("2532"),n("159b"),n("2ee4")),d=n("a2b6"),m=(n("ac1f"),n("5319"),n("9911"),function(){var e=this,t=e._self._c;return e.maxSelectedAmount>0?t("div",{staticClass:"modifier-group-container",class:{"wizard-mode":e.wizardMode}},[e.modifierGroup.image_url?t("e-img",{staticStyle:{"min-height":"120px"},attrs:{src:e.modifierGroup.image_url,fluid:"","blank-color":"#eee"}}):e._e(),t("div",{staticClass:"modifier-group",on:{click:function(t){return t.stopPropagation(),e.toggleGroup.apply(null,arguments)}}},[t("div",{staticClass:"text-ellipsis"},[t("div",{staticClass:"text-ellipsis f-14"},[e._v(e._s(e._f("tr")(e.modifierGroup.name)))]),t("div",{staticClass:"f-300 f-11",staticStyle:{"letter-spacing":"0.5px"}},[e.minSelectedAmount>0?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-700 f-10 text-danger mr-1"}
1,[e._v("(Required)|(Requis)")]):e._e(),e.tr(e.modifierGroup.description)?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title-hint"},[e._v(e._s(e.modifierGroup.description))]):e.minSelectedAmount>1?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title-hint"},[e._v("Select a minimum of "+e._s(e.minSelectedAmount)+"|Sélectionnez un minimum de "+e._s(e.minSelectedAmount))]):1===e.maxSelectedAmount&&0===e.minSelectedAmount?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title-hint"},[e._v("One choice available (optional)|Un choix possible (optionel)")]):1===e.maxSelectedAmount?t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title-hint"},[e._v("Select one|Selectionnez un choix")]):t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"title-hint"},[e._v("Select up to "+e._s(e.maxSelectedAmount)+" choices|Sélectionnez jusqu'à "+e._s(e.maxSelectedAmount)+" choix")])])]),e.wizardMode?e._e():t("i",{staticClass:"fas ml-auto",class:e.modifierGroup.opened?"fa-angle-down":"fa-angle-up"})]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.modifierGroup.opened,expression:"modifierGroup.opened"}]},[t("radio"===e.groupComponent?"ion-radio-group":"div",{tag:"component",attrs:{value:e.selectedRadio(e.modifierGroup)}},[e._l(e.modifierGroupModifiers,(function(n){return["text"===n.type?t("ion-item",{key:n.id,attrs:{color:"light"}},[t("ion-label",{staticClass:"text-uppercase f-500"},[e._v(" "+e._s(e._f("tr")(n.name))+" ")])],1):"separator"===n.type?t("ion-item-divider",{key:n.id,attrs:{lines:"full",color:"light"}},[t("ion-label",{staticClass:"text-uppercase f-500"},[e._v(" "+e._s(e._f("tr")(n.name))+" ")])],1):"radio"===e.groupComponent?t("ion-item",{key:n.id,attrs:{lines:"full"}},[t("ion-label",{staticClass:"d-flex align-items-center"},[t("div",{staticClass:"text-ellipsis pr-3 f-400 w-100"},["total"===e.modifierGroup.price_display?t("span",{staticClass:"float-right title-hint"},[e._v(e._s(e._f("priceShort")(e.basePrice+n.price)))]):n.price>0?t("span",{staticClass:"float-right title-hint"},[e._v("+"+e._s(e._f("priceShort")(n.price)))]):e._e(),e._v(" "+e._s(e._f("tr")(n.name))+" ")])]),t("ion-radio",{attrs:{slot:"start",mode:"md",value:n.id},on:{click:function(t){return e.onClickRadio(n.id)}},slot:"start"})],1):"checkbox"===e.groupComponent?t("ion-item",{key:n.id,attrs:{lines:"full",button:"",detail:"false"},on:{click:function(t){return t.stopPropagation(),e.onClickCheck(n.id)}}},[t("b-checkbox",{staticClass:"modifier-checkbox",attrs:{size:"lg",checked:!!e.modifierGroup.selected[n.id]}}),t("ion-label",{staticClass:"d-flex align-items-center"},[t("div",{staticClass:"text-ellipsis pr-3 f-400 w-100"},["total"===e.modifierGroup.price_display?t("span",{staticClass:"float-right title-hint"},[e._v(e._s(e._f("priceShort")(e.basePrice+n.price)))]):n.price>0?t("span",{staticClass:"float-right title-hint"},[e._v("+"+e._s(e._f("priceShort")(n.price)))]):e._e(),e._v(" "+e._s(e._f("tr")(n.name))+" ")])])],1):t("ion-item",{key:n.id,attrs:{lines:"full",detail:"false"}},[t("ion-label",{staticClass:"d-flex align-items-center"},[t("div",{staticClass:"text-ellipsis pr-3 f-400 w-100"},["total"===e.modifierGroup.price_display?t("span",{staticClass:"float-right title-hint"},[e._v(e._s(e._f("priceShort")(e.basePrice+n.price)))]):n.price>0?t("span",{staticClass:"float-right title-hint"},[e._v("+"+e._s(e._f("priceShort")(n.price)))]):e._e(),e._v(" "+e._s(e._f("tr")(n.name))+" ")])]),t("b-spinbutton",{attrs:{value:e.value[n.id]||0,min:0,max:e.maxQuantity(n.id)},on:{input:function(t){return e.toggleQuantity(n.id,t)}}})],1),e.tr(n.description)?t("div",{staticClass:"modifier-description",class:"text-"+n.description_variant},[e._v(" "+e._s(e._f("tr")(n.description))+" "),n.link?t("a",{attrs:{href:n.link,target:"_blank"},on:{click:function(t){return t.preventDefault(),e.openLink(n.link)}}},[e._v(e._s(n.link.replace("mailto:","")))]):e._e()]):e._e()]}))],2)],1)],1):e._e()}),f=[],p=n("ade3"),h=n("3835"),g=(n("14d9"),n("4fad"),n("07ac"),{name:"modifier-group",props:{value:{type:Object,default:function(){return{}}},size:{type:Number,default:0},itemModifierGroups:{type:Array,required:!0},modifierGroup:{type:Object,required:!0},wizardMode:{type:Boolean,default:!1},basePrice:{type:Number,default:0}},computed:{modifierGroupModifiers:function(){var e,t=[],n=Object(u["a"])(this.modifierGroup.modifiers);try{for(n.s();!(e=n.n()).done;){var i=e.value;"none"===i.conditional_display?t.push(i):"hide-when-select"!==i.conditional_display||this.checkIfConditionalModifierSelected(i.conditional_modifiers)||t.pu
1sh(i)}}catch(a){n.e(a)}finally{n.f()}return t},maxSelectedAmount:function(){return"linked"===this.modifierGroup.size_link&&0!==this.size?this.modifierGroup.max_selected_amount+this.size:this.modifierGroup.max_selected_amount},minSelectedAmount:function(){return-1===this.modifierGroup.min_selected_amount?this.maxSelectedAmount:this.modifierGroup.min_selected_amount},selectionPerItem:function(){return-1===this.modifierGroup.selections_per_item?this.maxSelectedAmount:this.modifierGroup.selections_per_item},groupComponent:function(){return this.minSelectedAmount>0&&1===this.maxSelectedAmount?"radio":this.selectionPerItem<=1?"checkbox":"quantity"}},created:function(){this.modifierGroup.opened=!0},methods:{selectedRadio:function(e){var t=Object.entries(e.selected).find((function(e){var t=Object(h["a"])(e,2),n=(t[0],t[1]);return n>0}));return t?t[0]:null},toggleGroup:function(){this.wizardMode||(this.modifierGroup.opened=!this.modifierGroup.opened,this.$forceUpdate())},onClickCheck:function(e){var t=Object(s["a"])({},this.value);1===t[e]?t[e]=0:Object.values(t).reduce((function(e,t){return e+t}),0)<this.maxSelectedAmount&&(t[e]=1),this.$emit("input",t)},onClickRadio:function(e){this.$emit("input",Object(p["a"])({},e,1))},toggleQuantity:function(e,t){var n=Object(s["a"])({},this.value);n[e]=t,this.$emit("input",n)},maxQuantity:function(e){var t=this,n=Object.keys(this.value).map((function(e){return{id:e,quantity:t.value[e]}})).filter((function(t){return t.id!==e})).reduce((function(e,t){return e+t.quantity}),0);return Math.min(this.maxSelectedAmount-n,this.selectionPerItem)},openLink:function(e){window.open(e,"_blank","height=720,width=1280,menubar=no,titlebar=no,toolbar=no")},checkIfConditionalModifierSelected:function(e){if(!e)return!1;var t,n=Object(u["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(this.isModifierSelected(i))return!0}}catch(a){n.e(a)}finally{n.f()}return!1},isModifierSelected:function(e){var t=e.split("|")[0],n=e.split("|")[1],i=this.itemModifierGroups.find((function(e){return e.id===t}));return!!i&&i.selected[n]>0}},watch:{modifierGroup:function(e){e&&void 0===e.opened&&(e.opened=!0)},size:function(){if(this.value&&getLiteralLength(this.value)>this.maxSelectedAmount){var e={},t=0;for(var n in this.value){if(!(t++<this.maxSelectedAmount))break;e[n]=this.value[n]}this.$emit("input",e)}}}}),b=g,v=(n("b2e6"),n("f201"),n("2877")),_=Object(v["a"])(b,m,f,!1,null,"116169db",null),y=_.exports,w=n("d1e1"),k=n.n(w),C=(n("da93"),{name:"combo-creator",components:{ModifierGroup:y,FormWizard:l["FormWizard"],TabContent:l["TabContent"]},props:{value:{type:Boolean,default:!1},item:Object,itemOrder:Object,quantity:{type:Number,default:1},note:{type:String,default:""}},data:function(){return{totalPrice:0,selectedCombo:null,selectedItemOnly:!1,customizationWizardStep:0,itemNotes:"",itemModifierGroups:[]}},computed:{customizationWizard:function(){if(this.itemModifierGroups&&1===this.itemModifierGroups.length){var e,t=this.itemModifierGroups[0].modifierGroups,n=0,i=null,a=Object(u["a"])(t);try{for(a.s();!(e=a.n()).done;){var r=e.value;("linked"!==r.size_link||this.item.totalSize>0)&&(n===this.customizationWizardStep&&(i=r),n++)}}catch(o){a.e(o)}finally{a.f()}var s={enabled:this.item.use_wizard,steps:n,showNotes:this.customizationWizardStep===n,currentModifier:i,showBackButton:this.customizationWizardStep>0,showNextButton:this.customizationWizardStep<n,showFinishButton:this.customizationWizardStep===n,stepValid:!0};return i&&(s.stepValid=this.isModifierValid(i)),s}return{enabled:!1}},hasFirstStep:function(){return this.combos.length>0},hasSecondStep:function(){return!this.selectedItemOnly&&this.selectedCombo&&this.selectedCombo.slots.length>1},menu:function(){return this.orderRestaurant.menu},combos:function(){var e=this;return this.menu.combos.filter((function(t){var n=t.slots.find((function(e){return e.id===t.primary_slot_id}));return!!n.items.map((function(e){return e.item_id})).includes(e.item.id)}))}},mounted:function(){var e=this;return Object(c["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,e.$nextTick();case 1:if(e.totalSize=0,e.customizationWizardStep=0,e.itemOrder?e.itemNotes=getValueOrDefault(e.itemOrder.notes,e.note):e.itemNotes=e.note,!e.itemOrder){t.next=2;break}"item"===e.itemOrder.type?e.selectedItemOnly=!0:"combo"===e.itemOrder.type&&(e.selectedCombo=Object(d["b"])(e.itemOrder.item),e.selectedCombo.slots.forEac
1h((function(e){return e.opened=!0}))),e.itemModifierGroups=e.applicableItemModifierGroups(),e.nextTab(),0!==e.itemOrder.modifier_size&&(e.totalSize=e.itemOrder.modifier_size),t.next=3;break;case 2:if("combo"!==e.item.type||1!==e.combos.length){t.next=3;break}return e.selectedCombo=Object(d["b"])(e.combos[0]),e.selectedCombo.restaurant_id=e.orderRestaurant.id,e.selectedCombo.slots.forEach((function(t){t.opened=!0,t.id===e.selectedCombo.primary_slot_id?t.selectedItem=e.item.id:t.selectedItem=null})),e.itemModifierGroups=e.applicableItemModifierGroups(),e.nextTab(),e.updatePriceAndSize(),t.abrupt("return");case 3:0===e.combos.length&&(e.selectedItemOnly=!0,e.itemModifierGroups=e.applicableItemModifierGroups(),e.nextTab()),e.updatePriceAndSize();case 4:case"end":return t.stop()}}),t)})))()},methods:{nextTab:function(){var e=this;this.$nextTick((function(){e.$refs.wizard&&e.$refs.wizard.nextTab()}))},clearSlot:function(e){var t=this;setTimeout((function(n){e.selectedItem=null,t.$forceUpdate()}),150)},isComboLimitReached:function(e){var t=this;if(!e||!e.limit_per_order)return!1;var n=this.order.items.filter((function(n){return"combo"===n.type&&n.item.id===e.id&&n!==t.itemOrder}));return n&&n.length>=e.limit_per_order},applicableItemModifierGroups:function(){var e=this;if(this.selectedItemOnly){var t=[{item:this.item,modifierGroups:this.menu.modifier_groups.filter((function(t){return t.items.includes(e.item.id)&&t.modifiers.length>0})).map((function(t){var n={};if(e.itemOrder){var i=e.itemOrder.modifiers.find((function(e){return e.modifier_group_id===t.id}));i&&Object.assign(n,i.selection)}return Object(s["a"])(Object(s["a"])({},t),{},{selected:n})}))}].filter((function(e){return e.modifierGroups.length>0}));return this.updatePriceAndSize(),t}if(!this.selectedCombo||!this.menu)return[];var n=this.selectedCombo.slots.filter((function(e){return!!e.selectedItem})).map((function(t){return{item:e.itemFromId(t.selectedItem),slot_id:t.id,modifierGroups:e.menu.modifier_groups.filter((function(e){return e.items.includes(t.selectedItem)&&e.modifiers.length>0})).map((function(n){var i={};if(e.itemOrder){var a=e.itemOrder.item.slots.find((function(e){return e.id===t.id}));if(a&&a.selectedItem===t.selectedItem){var r=e.itemOrder.modifiers.find((function(e){return e.modifier_group_id===n.id&&e.slot_id===t.id&&e.item_id===t.selectedItem}));r&&Object.assign(i,r.selection)}}return Object(s["a"])(Object(s["a"])({},n),{},{selected:i})}))}})).filter((function(e){return e.modifierGroups.length>0}));return this.updatePriceAndSize(),n},isComboValid:function(){return!!this.selectedCombo&&!this.selectedCombo.slots.find((function(e){return null===e.selectedItem&&!e.optional}))},isModifiersValid:function(){var e=this;return this.itemModifierGroups.reduce((function(e,t){return[].concat(Object(r["a"])(e),Object(r["a"])(t.modifierGroups))}),[]).every((function(t){return e.isModifierValid(t)}))},isModifierValid:function(e){var t=e.min_selected_amount;if(-1===t){var n=e.max_selected_amount;"linked"===e.size_link&&0!==this.item.totalSize&&(n+=this.item.totalSize),t=n}else"linked"===e.size_link&&this.item.totalSize;return!t||t&&this.sumSelected(e)>=t},sumSelected:function(e){return Object.keys(e.selected).map((function(t){return e.selected[t]})).reduce((function(e,t){return e+t}),0)},updatePriceAndSize:function(){var e=this,t=this.itemModifierGroups.reduce((function(e,t){return[].concat(Object(r["a"])(e),Object(r["a"])(t.modifierGroups))}),[]);if(this.selectedItemOnly){var n=this.item.price;this.item.totalSize=this.item.modifier_size||0;var i,a=Object(u["a"])(t);try{for(a.s();!(i=a.n()).done;){var s=i.value,o=function(t){var i=s.modifiers.find((function(e){return e.id===t}));n=k.a.add(n,k.a.mul(s.selected[t],i.price)),"modify"===s.size_link&&0!==i.size&&(e.item.totalSize+=i.size)};for(var c in s.selected)o(c)}}catch(_){a.e(_)}finally{a.f()}return this.totalPrice=n,n}if(!this.selectedCombo)return 0;var l,d=this.selectedCombo.base_price,m=Object(u["a"])(this.selectedCombo.slots);try{var f=function(){var t=l.value,n=e.itemFromId(t.selectedItem),i=t.items.find((function(e){return e.item_id===t.selectedItem}));if(!n||!i)return 1;d=i.use_base_price?k.a.add(d,n.price):k.a.add(d,i.extra_price)};for(m.s();!(l=m.n()).done;)f()}catch(_){m.e(_)}finally{m.f()}var p,h=Object(u["a"])(t);try{for(h.s();!(p=h.n()).done;){var g=p.value,b=function(e){var t=g.modifiers.find((function(t){return t.id===e}));d=k.a.add(d,k.a.mul(g.selected[e],t.price))};for(var v in g.selected)b(v)}}catch(_){h.e(_)}finally{h.f()}return this.totalPrice=d,d},selectItem:function(e,t){t.selectedItem=e.target.value,this.itemModifierGroups=this.applicableItemModifierGroups(),this.$forceUpdate()},currentStep:function(){return this.$refs.wizard?this.$refs.wizard.activeTabIndex:0},slotNames:function(e){var t=this;return e.slots.map((function(e){return t.tr(e.name)}
1)).join(" / ")},comboBasePrice:function(e){var t,n=e.base_price,i=Object(u["a"])(e.slots);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(!a.optional){var r,s=Object(u["a"])(a.items);try{for(s.s();!(r=s.n()).done;){var o=r.value;if(o.item_id===this.item.id){n=o.use_base_price?k.a.add(n,this.item.price):k.a.add(n,o.extra_price);break}}}catch(c){s.e(c)}finally{s.f()}}}}catch(c){i.e(c)}finally{i.f()}return n},nextStep:function(){this.nextTab(),(2===this.currentStep()||this.selectedItemOnly&&1===this.currentStep()||1===this.currentStep()&&!this.selectedItemOnly&&0===this.itemModifierGroups.length)&&(this.itemModifierGroups=this.applicableItemModifierGroups()),1!==this.currentStep()||this.hasSecondStep||0!==this.itemModifierGroups.length||this.addComboToOrder()},previousStep:function(){this.$refs.wizard.prevTab()},addItemToOrder:function(){var e=this;this.selectedItemOnly=!0,setTimeout((function(t){e.itemModifierGroups=e.applicableItemModifierGroups(),e.itemModifierGroups.length>0?e.nextStep():e.addComboToOrder()}),150)},addComboToOrder:function(){var e=this,t=this.itemModifierGroups.reduce((function(e,t){return[].concat(Object(r["a"])(e),Object(r["a"])(t.modifierGroups.map((function(e){return{item_id:t.item.id,slot_id:t.slot_id,modifier_group_id:e.id,selection:e.selected}}))))}),[]);if(this.selectedItemOnly){if(this.itemOrder)return this.itemOrder.item=this.item,this.itemOrder.modifiers=t,this.itemOrder.type="item",this.itemOrder.item.unit_price=this.totalPrice,void this.$emit("input",!1);setTimeout((function(){var n=Object(d["b"])(e.item);n.unit_price=e.totalPrice,e.$store.dispatch("order/addItemToOrder",{item:n,modifiers:t.length>0?t:null,quantity:e.quantity,notes:e.itemNotes}),e.$emit("item-added"),e.$emit("input",!1)}),150)}else{if(!this.isComboValid())return;if(this.selectedCombo.unit_price=this.totalPrice,this.itemOrder)return this.itemOrder.item=this.selectedCombo,this.itemOrder.modifiers=t,this.itemOrder.type="combo",void this.$emit("input",!1);setTimeout((function(){e.$store.dispatch("order/addComboToOrder",{combo:e.selectedCombo,modifiers:t.length>0?t:null,quantity:e.quantity,notes:e.note}),e.$emit("item-added"),e.$emit("input",!1)}),150)}},selectCombo:function(e){var t=this;this.selectedItemOnly=!1,setTimeout((function(){t.selectedCombo=t.deepCopy(e),t.selectedCombo.restaurant_id=t.orderRestaurant.id;var n,i=Object(u["a"])(t.selectedCombo.slots);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.opened=!0,a.id===t.selectedCombo.primary_slot_id?a.selectedItem=t.item.id:a.selectedItem=null}}catch(r){i.e(r)}finally{i.f()}t.nextStep(),t.$forceUpdate()}),150)},itemFromId:function(e){return this.menu.items.find((function(t){return t.id===e}))},toggleSlot:function(e){e.opened=!e.opened,this.$forceUpdate()},addToOrderDisabled:function(){return 1!==this.currentStep()||this.selectedItemOnly||0!==this.itemModifierGroups.length?!this.isModifiersValid():!this.isComboValid()}}}),x=C,S=(n("b451"),Object(v["a"])(x,i,a,!1,null,null,null));t["a"]=S.exports},"85d1":function(e,t,n){e.exports=n.p+"img/salad.57172b3c.png"},"85d6":function(e,t,n){},8704:function(e,t,n){e.exports=n.p+"img/fries.e392980d.png"},8720:function(e,t,n){e.exports=n.p+"img/info.95eb8cf3.png"},8752:function(e,t,n){e.exports=n.p+"img/halal.ca563d16.png"},"87ad":function(e,t,n){e.exports=n.p+"img/cholesterol.e9af2f4f.png"},8816:function(e,t,n){e.exports=n.p+"img/social-trends-fr.de99a0bf.png"},8855:function(e,t,n){},"88f5":function(e,t,n){},"890d":function(e,t,n){e.exports=n.p+"img/cheers.0b29171f.png"},8921:function(e,t,n){},"89b2":function(e,t,n){},"89df":function(e,t,n){},"8a0d":function(e,t,n){e.exports=n.p+"img/background.91e32170.jpg"},"8a30":function(e,t,n){e.exports=n.p+"img/glutenfree.fb913550.png"},"8a82":function(e,t,n){e.exports=n.p+"img/no-comment-yet.a7281bb6.png"},"8af8":function(e,t,n){e.exports=n.p+"img/iced-coffee.5fb5e3c7.png"},"8bca":function(e,t,n){e.exports=n.p+"img/salad-25.0e56a5cf.png"},"8e36":function(e,t,n){e.exports=n.p+"img/green-girl-pose.15c9e31e.png"},"8e85":function(e,t,n){e.exports=n.p+"img/donut.0eb5396f.png"},"8eed":function(e,t,n){e.exports=n.p+"img/beer.2ebcccb6.png"},"8f14":function(e,t,n){e.exports=n.p+"fonts/SourceSansPro-Regular.ba6cad25.ttf"},"8f82":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"notification-item"},["like"===e.notification.type?[t("user-avatar",{attrs:{seed:e.notification.json.sender_first_name,size:e.imageSize,src:e.notification.json.sender_avatar_url},on:{click:function(t){return e.reachPage("/profile/".concat(e.notification.json.sender_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.reachPage("/profile?recommendation_id=".concat(e.notification.json.recommendation_id))}}},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",{staticClass:"f-500"},[e._v(e._s(e._f("shortName")(e.sender)))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v("liked your post|a aimé votre découverte")]),t("div",{staticClass:"opacity-80 small"},[e._v(e._s(e.date))])]),t("e-img",{staticClass:"ml-auto",attrs:{src:e.notification.json.recommendation_image_url,width:String(e.imageSize),height:String(e.imageSize),"use-thumbnail":""},nativeOn:{click:function(t){return e.reachPage("/profile?recommendation_id=".concat(e.notification.json.recommendation_id))}}}
1)]:"follow"===e.notification.type?[t("user-avatar",{attrs:{seed:e.notification.json.sender_first_name,size:e.imageSize,src:e.notification.json.sender_avatar_url},on:{click:function(t){return e.reachPage("/profile/".concat(e.notification.json.sender_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.reachPage("/profile/".concat(e.notification.json.sender_id))}}},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",{staticClass:"f-500"},[e._v(e._s(e._f("shortName")(e.sender)))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v("is following you|a commencé à vous suivre")]),t("div",{staticClass:"opacity-80 small"},[e._v(e._s(e.date))])]),t("button-follow",{attrs:{account:{id:e.notification.json.sender_id,first_name:e.notification.json.sender_first_name,last_name:e.notification.json.sender_last_name},dense:""}})]:"comment"===e.notification.type?[t("user-avatar",{attrs:{seed:e.notification.json.sender_first_name,size:e.imageSize,src:e.notification.json.sender_avatar_url},on:{click:function(t){return e.reachPage("/profile/".concat(e.notification.json.sender_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.openComments(e.notification.json.recommendation_id,e.notification.json.comment_id)}}},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",{staticClass:"f-500"},[e._v(e._s(e._f("shortName")(e.sender)))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v("has commented your discovery|a commenté votre découverte")]),t("div",{staticClass:"opacity-80 small"},[e._v(e._s(e.date))])]),t("e-img",{staticClass:"ml-auto",attrs:{src:e.notification.json.recommendation_image_url,width:String(e.imageSize),height:String(e.imageSize),"use-thumbnail":""},nativeOn:{click:function(t){return e.reachPage("/profile?recommendation_id=".concat(e.notification.json.recommendation_id))}}})]:"post"===e.notification.type?[t("user-avatar",{attrs:{seed:e.notification.json.sender_first_name,size:e.imageSize,src:e.notification.json.sender_avatar_url},on:{click:function(t){return e.reachPage("/profile/".concat(e.notification.json.sender_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.reachPage("/profile?recommendation_id=".concat(e.notification.json.recommendation_id))}}},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",{staticClass:"f-500"},[e._v(e._s(e._f("shortName")(e.sender)))]),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"ml-1"},[e._v("published a new discovery|a posté une nouvelle découverte")]),t("div",{staticClass:"opacity-80 small"},[e._v(e._s(e.date))])]),t("e-img",{staticClass:"ml-auto",attrs:{src:e.notification.json.recommendation_image_url,width:String(e.imageSize),height:String(e.imageSize),"use-thumbnail":""},nativeOn:{click:function(t){return e.reachPage("/profile?recommendation_id=".concat(e.notification.json.recommendation_id))}}})]:"credit"===e.notification.type?[t("e-img",{attrs:{src:e.notification.json.restaurant_image_url,width:String(e.imageSize),height:String(e.imageSize),"portrait-mode":"","use-thumbnail":""},nativeOn:{click:function(t){return e.reachPage("/menu/".concat(e.notification.json.restaurant_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.reachPage("/orders/history/".concat(e.notification.json.order_id))}}},[t("div",{staticClass:"f-500"},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",[e._v(e._s(e.notification.json.restaurant_name))])]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]}
1,[e._v("You have been credited with|Vous avez été crédité de")]),t("span",{staticClass:"text-primary f-500 ml-1"},[e._v(e._s(e.notification.json.amount)+" $CAD")]),t("div",{staticClass:"opacity-80 small"},[e._v(e._s(e.date))])])]:"order_confirmed"===e.notification.type?[t("e-img",{attrs:{src:e.notification.json.restaurant_image_url,width:String(e.imageSize),height:String(e.imageSize),"portrait-mode":"","use-thumbnail":""},nativeOn:{click:function(t){return e.reachPage("/menu/".concat(e.notification.json.restaurant_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.reachPage("/orders/current/".concat(e.notification.json.order_id))}}},[t("div",{staticClass:"f-500"},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",[e._v(e._s(e.notification.json.restaurant_name))])]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Order confirmed|Commande confirmée")])])]:"order_delayed"===e.notification.type?[t("e-img",{attrs:{src:e.notification.json.restaurant_image_url,width:String(e.imageSize),height:String(e.imageSize),"portrait-mode":"","use-thumbnail":""},nativeOn:{click:function(t){return e.reachPage("/menu/".concat(e.notification.json.restaurant_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.reachPage("/orders/current/".concat(e.notification.json.order_id))}}},[t("div",{staticClass:"f-500"},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",[e._v(e._s(e.notification.json.restaurant_name))])]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Order delayed by|Commande repoussée de")]),t("span",{staticClass:"ml-1"},[e._v(e._s(e.notification.json.delay)+" min")])])]:"order_ready"===e.notification.type?[t("e-img",{attrs:{src:e.notification.json.restaurant_image_url,width:String(e.imageSize),height:String(e.imageSize),"portrait-mode":"","use-thumbnail":""},nativeOn:{click:function(t){return e.reachPage("/menu/".concat(e.notification.json.restaurant_id))}}}),t("div",{staticClass:"flex-1 mx-2",on:{click:function(t){return e.reachPage("/orders/history/".concat(e.notification.json.order_id))}}},[t("div",{staticClass:"f-500"},[e.notification.read?e._e():t("i",{staticClass:"fas fa-circle-small text-primary mr-1"}),t("span",[e._v(e._s(e.notification.json.restaurant_name))])]),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Your order is ready|Votre commande est prête")])])]:e._e()],2)},a=[],r=(n("a9e3"),n("71c6")),s=n("809d"),o={name:"notification-item",components:{ButtonFollow:s["a"],UserAvatar:r["a"]},props:{notification:{type:Object,required:!0},imageSize:{type:[String,Number],default:50}},computed:{date:function(){return this.$moment(this.notification.date_creation).fromNow()},sender:function(){return this.notification.json&&this.notification.json.sender_first_name?{first_name:this.notification.json.sender_first_name,last_name:this.notification.json.sender_last_name}:null}},methods:{reachPage:function(e){return this.$store.state.notificationsVisible=!1,this.reach(e)},openComments:function(e,t){this.$store.commit("toggleCommentsModal",{visible:!0,recommendationId:e,commentId:t,autofocus:!1})}}},c=o,u=(n("fcc3"),n("2877")),l=Object(u["a"])(c,i,a,!1,null,"1b43f2b0",null);t["a"]=l.exports},"8fe6":function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{ref:"scrollContainer",staticClass:"recommendation-section",class:{dense:e.dense}},[e.noSeparator?e._e():t("hr"),t("div",{staticClass:"title"},[t("span",[e._v(e._s(e.title))]),e.hideViewAll?e._e():t("b-btn",{staticClass:"mr-2",class:{"ml-auto":e.isMobileOrTabletLayout,"ml-2":!e.isMobileOrTabletLayout},attrs:{size:"xs",variant:"text-primary"},on:{click:function(t){return e.$emit("view-all")}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-9"},[e._v("View More|Tout voir")])]),e.isMobileOrTabletLayout||!e.canScrollRight&&!e.canScrollLeft?e._e():t("div",{staticClass:"nav-section ml-auto mr-3"},[t("button",{on:{click:function(t){return t.stopPropagation(),e.scrollX(500)}}},[t("i",{staticClass:"fas fa-chevron-left"})]),t("button",{staticClass:"ml-3",on:{click:function(t){return t.stopPropagation(),e.scrollX(-500)}}},[t("i",{staticClass:"fas fa-chevron-right"}
1)])])],1),t("div",{ref:"scroller",staticClass:"x-scroll",style:e.scrollStyle},e._l(e.items,(function(n,i){return t("recommendation-item",{key:i,attrs:{item:n,"auto-display-modal":e.autoDisplayModal},nativeOn:{click:function(t){return e.$emit("select-item",n)}}})})),1)])},a=[],r=n("6856"),s={name:"recommendation-section",components:{RecommendationItem:r["a"]},props:{title:{type:String},autoDisplayModal:{type:Boolean},noSeparator:{type:Boolean},category:{type:Object},items:{type:Array,required:!0},hideViewAll:{type:Boolean,default:!1},dense:{type:Boolean,default:!1}},data:function(){return{scroll:0,canScrollLeft:!0,canScrollRight:!0}},computed:{scrollStyle:function(){return"transform: translateX(".concat(this.scroll,"px);")}},created:function(){var e=this;this.$nextTick((function(){e.setupListeners()}))},methods:{setupListeners:function(){var e=this;if(this.isExtraLargeLayout){var t=this.$refs.scrollContainer;t&&(new ResizeObserver((function(t){if(e.$refs.scroller){var n=t[0].contentRect.width;e.canScrollRight=e.scroll>-(e.$refs.scroller.getBoundingClientRect().width-e.$refs.scrollContainer.clientWidth)&&n>e.$refs.scrollContainer.clientWidth,e.canScrollLeft=e.scroll<0}})).observe(this.$refs.scroller),this.$refs.scroller.addEventListener("wheel",(function(n){(e.canScrollRight||e.canScrollLeft)&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),n.deltaY>0&&!e.canScrollRight||n.deltaY<0&&!e.canScrollLeft||(e.scroll-=n.deltaY,e.scroll=Math.min(e.scroll,0),e.scroll=Math.max(e.scroll,-(e.$refs.scroller.getBoundingClientRect().width-t.clientWidth))))})))}},scrollX:function(e){this.scroll+=e,this.scroll=Math.min(this.scroll,0),this.scroll=Math.max(this.scroll,-(this.$refs.scroller.getBoundingClientRect().width-this.$refs.scrollContainer.clientWidth))}},watch:{scroll:function(e){this.canScrollLeft=e<0,this.canScrollRight=e>-(this.$refs.scroller.getBoundingClientRect().width-this.$refs.scrollContainer.clientWidth)},items:function(){this.scroll=0}}},o=s,c=(n("b339"),n("2877")),u=Object(c["a"])(o,i,a,!1,null,null,null);t["a"]=u.exports},"90ae":function(e,t,n){},"913b":function(e,t,n){e.exports=n.p+"img/coffee_machine.d84f6d36.png"},"91ae":function(e,t,n){e.exports=n.p+"img/client-arouch.0ed73550.png"},9214:function(e,t,n){e.exports=n.p+"img/digital-signage.94a87d01.png"},"92a6":function(e,t,n){e.exports=n.p+"img/time-night.f7461c47.png"},"934f":function(e,t,n){e.exports=n.p+"img/chili_pepper.07fe9d86.png"},"936f":function(e,t,n){"use strict";n("99af");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"item-section"},[e.noSeparator?e._e():t("hr"),t("div",{staticClass:"title"},[e._v(" "+e._s(e.title)+" "),t("span",{staticClass:"opacity-80 f-11"},[e._v("("+e._s(e.items.length)+")")]),t("b-btn",{staticClass:"mr-2",class:{"float-right":e.isMobileOrTabletLayout},attrs:{size:"xs",variant:"text-primary"},on:{click:function(t){e.showViewAll=!0}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-9"},[e._v("View More|Tout voir")])])],1),t("transition-group",{staticClass:"items",attrs:{name:"list-complete"}},[e._l(e.itemsFiltered,(function(n){return t("menu-item",{key:n.id,staticClass:"list-complete-item",attrs:{item:n,"restaurant-selected":e.restaurantSelected,"out-of-stock":"available"!==n.stock_status},nativeOn:{click:function(t){return e.selectItem(n)}}})})),!e.isMobileOrTabletLayout&&e.itemsFiltered.length<e.items.length?t("menu-item",{key:"more",staticClass:"list-complete-item",attrs:{item:e.more},nativeOn:{click:function(t){e.showViewAll=!0}}}):e._e()],2),t("b-modal",{attrs:{size:"xl",title:"".concat(e.tr(e.title)," (").concat(e.items.length,")"),scrollable:"","hide-footer":""},model:{value:e.showViewAll,callback:function(t){e.showViewAll=t},expression:"showViewAll"}},[t("div",{staticClass:"grid-view-all"},e._l(e.items,(function(n){return t("menu-item",{key:n.id,attrs:{item:n,"restaurant-selected":e.restaurantSelected,"out-of-stock":"available"!==n.stock_status},nativeOn:{click:function(t){e.selectItem(n),e.showViewAll=!1}}})})),1)])],1)},a=[],r=n("c7eb"),s=n("1da1"),o=(n("fb6a"),n("0e48")),c={name:"item-section",components:{MenuItem:o["a"]},props:{title:{type:String,required:!0},restaurantSelected:{type:Object,required:!0},items:{type:Array,default:function(e){return[]}},noSeparator:{type:Boolean}},data:function(){return{showViewAll:!1,showItemCard:!1,enableItemCard:!1,selectedItem:null,more:{name:this.tr("View more|Voir plus"),image_url:"img/menu/more.png"},itemsPerRow:0}},computed:{itemsFiltered:function(){return this.isMobileOrTabletLayout?this.items:this.items.slice(0,2*this.itemsPerRow-1)}},created:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,e.$nextTick();case 1:e.computeItemsPerRow(),window.addEventListener("resize",(function(){e.computeItemsPerRow()}));case 2:case"end":return t.stop()}}),t)})))()},methods:{computeItemsPerRow:function(){var e=186;this.itemsPerRow=this.$el.clientWidth/e,this.itemsPerRow=Math.floor(this.itemsPerRow)},selectItem:function(e){this.$emit("click-item",e),this.selectedItem=e,this.showItemCard=!0,this.enableItemCard=!0}}},u=c,l=(n("1eb7"),n("2877")),d=Object(l["a"])(u,i,a,!1,null,"295ec138",null);t["a"]=d.exports},9435:function(e,t,n){},"951a":function(e,t,n){e.exports=n.p+"img/dollars3.4a2a282e.png"},9548:function(e,t,n){e.exports=n.p+"img/cuisinomane-logo.1190240d.png"},"956a":function(e,t,n){e.exports=n.p+"img/nutrition.3f889922.png"},9571:function(e,t,n){e.exports=n.p+"img/cocktail.7c346946.png"},"95be":function(e,t,n){e.exports=n.p+"img/cheese.f32cb42e.png"},9665:function(e,t,n){"use strict";var i=n("3835"),a=n("53ca"),r=(n("7db0"),n("14d9"),n("e9f5"),n("f665"),n("7d54"),n("d3b7"),n("159b"),n("a2b6"));t["a"]={computed:{minOrderDelay:function(){return this.menu?this.menu.min_order_delay:0},dateSelectOptions:function(){var e=this.orderRestaurant||this.restaurant;if(!e||"string"===Object(a["a"])(e.hours))return!1;for(var t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],n=[],i=Math.floor(this.minOrderDelay/24),r=i;r<=28;r++){var s=this.$moment.tz(e.timezone).startOf("day").add(r,"days"),o=t[s.day()];if(e.hours&&e.hours.hasOwnProperty(o)){var c=e.hours[o];c&&0!==c.length&&(0===r?this.isPastLastTimeToday||n.push({value:s.format("YYYY-MM-DD"),text:this.tr("Today|Aujourd'hui")}):1===r?n.push({value:s.format("YYYY-MM-DD"),text:this.tr("Tomorrow|Demain")}):n.push({value:s.format("YYYY-MM-DD"),text:s.format(this.tr("MMMM D|D MMMM"))}))}}return n},timeSelectOptions:function(){var e=this,t=this.orderRestaurant||this.restaurant;if(!t||!t.hours||"string"===Object(a["a"])(t.hours))return!1;var n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=[],o=0;return Object(r["g"])(this.orderDate)&&s.push({value:null,text:this.tr("Now|Maintenant")}),this.$moment.tz(this.orderDate,t.timezone).format("YYYY-MM-DD")===this.$moment.tz(t.timezone).format("YYYY-MM-DD")&&(o=this.$moment.tz(t.timezone).hours(),this.$moment.tz(t.timezone).minutes()>30?o+=1:o+=.5),t.hours[n[this.$moment.tz(this.orderDate,t.timezone).day()]].forEach((function(n){for(var a=Object(i["a"])(n,2),r=a[0],c=a[1],u=Math.max(r,o);u<c;u+=.5){var l=e.$moment.tz(t.timezone).startOf("day").add({hours:u});s.push({value:l.format("HH:mm"),text:l.format("LT")})}})),s},isPastLastTimeToday:function(){var e=this.orderRestaurant||this.restaurant;if(!e||!e.hours||"string"===Object(a["a"])(e.hours))return!1;var t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n=t[this.$moment.tz(e.timezone).startOf("day").day()],i=e.hours[n];if(0===i.length)return!0;var r=this.$moment.tz(e.timezone).startOf("day").hours(i[i.length-1][1]);return this.$moment.tz(e.timezone).isAfter(r)}},methods:{checkOrderDateAvailability:function(){var e=this;if(this.dateSelectOptions.length){var t=!!this.dateSelectOptions.find((function(t){return t.value===e.orderDate}));t||(this.orderDate=this.dateSelectOptions[0].value)}if(this.timeSelectOptions.length){var n=!!this.timeSelectOptions.find((function(t){return t.value===e.orderTime}));n||(this.orderTime=this.timeSelectOptions[0].value)}}}}},96652:function(e,t,n){},"98c7":function(e,t,n){e.exports=n.p+"img/champagne-glasses-25.42c1f685.png"},"98c9":function(e,t,n){e.exports=n.p+"img/time-day.26a72b44.png"},9929:function(e,t,n){},9976:function(e,t,n){e.exports=n.p+"img/cafe.b457b359.png"},"9a42":function(e,t,n){e.exports=n.p+"img/groceries.7a8eb5a5.png"},"9bcf":function(e,t,n){e.exports=n.p+"img/trans-free.62923856.png"},"9d0b":function(e,t,n){e.exports=n.p+"img/hamburger.9af82716.png"},"9eaf":function(e,t,n){e.exports=n.p+"img/alcohol-free.27651cf3.png"},"9ee0":function(e,t,n){e.exports=n.p+"img/gray-man-fight.967c1a78.png"},"9f0f":function(e,t,n){e.exports=n.p+"img/no-photo.b2bd77df.png"},"9f47":function(e,t,n){e.exports=n.p+"img/box.1c88cc38.svg"},"9f8a":function(e,t,n){e.exports=n.p+"img/client-van-houtte.f3038a82.png"},"9ff8":function(e,t,n){},a122:function(e,t,n){},a2b6:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return _})),n.d(t,"h",(function(){return y})),n.d(t,"b",(function(){return w}));n("b85c");var i=n("c7eb"),a=n("53ca"),r=n("1da1"),s=(n("13d5"),n("fb6a"),n("e9f5"),n("9485"),n("e9c4"),n("a9e3"),n("b680"),n("b64b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("c0d6")),o=n("c1df"),c=n.n(o);function u(e){if(isStringEmpty(e))return!1;var t="ca";if(5===e.length&&(t="us"),"us"===t){var n=new RegExp("^\\d{5}(-{0,1}\\d{4})?$");if(n.test(e.toString()))return!0}if("ca"===t){var i=new RegExp(/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i);if(i.test(e.toString()))return!0}return!1}function l(e){if(e){e=c()(e);var t=c()();return e.year()===t.year()&&e.month()===t.month()&&e.date()===t.date()}return!1}function d(e){return m.apply(this,arguments)}function m(){return m=Object(r["a"])(Object(i["a"])().mark((function e(t){var n;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=document.createElement("ion-alert"),n.cssClass=t.cssClass,n.header=t.header,n.subHeader=t.subHeader,n.message=t.message,n.inputs=t.inputs,n.buttons=t.buttons,document.body.appendChild(n),e.next=1,n.present();case 1:return e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function f(e){var t=document.createElement("ion-toast");return t.duration=e.duration,t.header=e.header,t.message=e.message,t.mode=e.mode,t.position=e.position?e.position:"bottom",t.buttons=e.buttons,t.cssClass="toast-ionic",document.body.appendChild(t),t.present()}function p(e,t){return new Promise(function(){var n=Object(r["a"])(Object(i["a"])().mark((function n(s,o){var c,u;return Object(i["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:try{c=document.createElement("ion-loading"),c.spinner=e.spinner,c.duration=6e4,c.message=e.message,c.translucent=!0,c.cssClass=e.cssClass,c.backdropDismiss=!1,document.body.appendChild(c),u=0,"loading"===document.readyState&&(u=1e3),setTimeout(function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(n){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=1,c.present();case 1:if("function"!==Object(a["a"])(t)){e.next=2;break}return e.next=2,t();case 2:return e.next=3,c.dismiss();case 3:s();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u)}catch(l){o(l)}case 1:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())}function h(e){if(!e||!e.type||!e.calories)return"white";var t="#00C853",n="#FFA000",i="#E53935",a=e.type,r=e.calories,s={plate:{low:400,mid:550,high:700},accompaniment:{low:150,mid:200,high:250},appetizer:{low:150,mid:200,high:250},dessert:{low:250,mid:300,high:350},beverage:{low:100,mid:150,high:200}};return r<s[a].mid?g(t,n,Math.max((r-s[a].low)/(s[a].mid-s[a].low),0)):g(n,i,Math.min((r-s[a].mid)/(s[a].high-s[a].mid),1))}function g(e,t,n){var i=parseInt(e.replace("#",""),16),a=i>>16,r=i>>8&255,s=255&i,o=parseInt(t.replace("#",""),16),c=o>>16,u=o>>8&255,l=255&o,d=a+n*(c-a),m=r+n*(u-r),f=s+n*(l-s);return"#"+((1<<24)+(d<<16)+(m<<8)+f|0).toString(16).slice(1)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s["a"].state.order;return e.items.reduce((function(e,t){return e+(t.item.unit_price||0)*t.quantity}),0).toFixed(2)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s["a"].state.order;return(14.975*b(e)/100).toFixed(2)}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s["a"].state.order;return(Number(b(e))+Number(v(e))).toFixed(2)}function y(e,t){if(e===t)return!0;
1if(!(e instanceof Object)||!(t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!==Object(a["a"])(e[n]))return!1;if(!y(e[n],t[n]))return!1}}for(var i in t)if(t.hasOwnProperty(i)&&!e.hasOwnProperty(i))return!1;return!0}function w(e){return JSON.parse(JSON.stringify(e))}},a3eb:function(e,t,n){e.exports=n.p+"img/green-man-fight.bfa81c0c.png"},a420:function(e,t,n){e.exports=n.p+"img/water.ab1481b1.png"},a436:function(e,t,n){"use strict";n("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",[e.showImage?t("div",{staticClass:"text-center"},[t("b-img",{staticStyle:{"max-width":"240px"},attrs:{fluid:"",src:"https://eyeinlivestorage.blob.core.windows.net/public/food-force/food-force-client-logo.png",alt:""}})],1):e._e(),t("form",{staticClass:"login mt-2",on:{submit:function(t){return t.preventDefault(),e.login.apply(null,arguments)}}},[t("b-form-group",{attrs:{label:e._f("tr")("Email|Courriel")}},[t("e-input",{staticClass:"form-control text-center",attrs:{id:"login-username",name:"username",required:"",type:"email","data-cy":"email"},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),t("b-form-group",{attrs:{label:e._f("tr")("Password|Mot de passe")}},[t("e-input",{staticClass:"form-control text-center",attrs:{id:"login-password",name:"password",required:"",type:"password","data-cy":"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),t("div",{staticClass:"text-center"},[t("b-checkbox",{staticClass:"d-inline-block mb-3 mx-auto",attrs:{"data-test":"remember-me"},model:{value:e.rememberPassword,callback:function(t){e.rememberPassword=t},expression:"rememberPassword"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Remember me|Se souvenir de moi")])])],1),t("b-btn",{attrs:{size:"lg",variant:"primary",block:"","data-cy":"sign-in-email"},on:{click:e.login}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Sign in with Email|Se connecter avec courriel")])]),"login"!==e.$route.name?t("b-btn",{staticClass:"mt-3",attrs:{size:"lg",variant:"info",block:""},on:{click:function(t){return e.$emit("register")}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Register with an Email|S'inscrire avec un courriel")])]):e._e(),t("a",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"basic-link d-block text-center py-2",attrs:{href:"#"},on:{click:function(t){e.recovery.show=!0}}},[e._v("Forgot your password?|Mot de passe oublié?")]),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"f-500 text-center text-uppercase text-spaced my-2 f-10"},[e._v("Or|Ou")]),t("b-btn",{staticClass:"d-flex align-items-center mb-3",attrs:{variant:"secondary",block:""},on:{click:function(t){return t.stopPropagation(),e.loginWithGoogle.apply(null,arguments)}}},[t("b-img",{staticClass:"rounded-circle",attrs:{src:n("5d11"),width:"30"}}),t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-center w-100"},[e._v("Sign in with Google|Se connecter avec Google")])],1),e.isAndroid?e._e():t("b-btn",{staticClass:"d-flex align-items-center justify-content-center mb-3",staticStyle:{height:"44px"},attrs:{variant:"secondary",block:""},on:{click:e.loginWithApple}},[t("b-img",{staticClass:"mr-2",attrs:{src:n("c753"),width:"22",height:"22"}}),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-center w-100"},[e._v("Sign in with Apple|Se connecter avec Apple")])],1)],1),t("b-modal",{attrs:{title:e._f("tr")(["Recover password","Retrouver votre mot de passe"]),scrollable:"","ok-title":e._f("tr")("Send|Envoyer"),"cancel-title":e._f("tr")("Cancel|Annuler"),"ok-disabled":!e.emailValid,"data-cy":"recovery-modal-body"},on:{ok:e.forgotPassword},model:{value:e.recovery.show,callback:function(t){e.$set(e.recovery,"show",t)},expression:"recovery.show"}},[t("p",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Please enter your email address to change your password.|Merci d'entrer votre votre courriel pour retrouver votre mot de passe.")]),t("b-form-group",[t("label",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Email|Addresse courriel")]),t("span",{staticClass:"text-danger font-weight-bold pl-1"},[e._v("*")])]),t("b-input",{attrs:{type:"email",maxlength:"255",state:e.emailValid,"data-cy":"recovery-email-modal-body"},model:{value:e.recovery.email,callback:function(t){e.$set(e.recovery,"email",t)},expression:"recovery.email"}})],1)],1),e.user?t("b-modal",{attrs:{title:e._f("tr")("Additional information|Informations complémentaires"),scrollable:"","no-close-on-backdrop":"","hide-header-close":"","no-close-on-esc":""},model:{value:e.showInfoCompletionModal,callback:function(t){e.showInfoCompletionModal=t},expression:"showInfoCompletionModal"}},[t("p",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-info f-500 text-center"},[e._v("Please enter the missing information.|Merci de remplir les informations manquantes.")]),t("b-form-group",{attrs:{label:e._f("tr")("First Name|Prénom")}},[t("e-input",{ref:"first_name",attrs:{type:"name",required:""},model:{value:e.user.first_name,callback:function(t){e.$set(e.user,"first_name",t)},expression:"user.first_name"}})],1),t("b-form-group",{attrs:{label:e._f("tr")("Last Name|Nom")}},[t("e-input",{ref:"last_name",attrs:{type:"name",required:""},model:{value:e.user.last_name,callback:function(t){e.$set(e.user,"last_name",t)},expression:"user.last_name"}})],1),t("div",{attrs:{slot:"modal-footer"},slot:"modal-footer"},[t("b-btn",{attrs:{variant:"primary",disabled:!e.infoValid},on:{click:e.updateInfo}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]}
1,[e._v("Save|Valider")])])],1)],1):e._e()],1)},a=[],r=n("c7eb"),s=n("1da1"),o=(n("e9c4"),n("b680"),n("b64b"),n("ac1f"),n("00b4"),n("edc8")),c=n("1547"),u=n("17b6"),l=n("393a"),d=n("7c77");l["a"].initialize({clientId:"771337901899-l5ha7pmvqke07hbse7mv4dqobma46791.apps.googleusercontent.com",scopes:["profile","email"]});var m={name:"login-form",props:{showImage:{type:Boolean,default:!1}},data:function(){return{loading:!1,email:"",password:"",rememberPassword:!1,recovery:{show:!1,email:"",username:""},showInfoCompletionModal:!1}},computed:{emailValid:function(){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/.test(this.recovery.email)},infoValid:function(){return this.user.first_name&&this.user.last_name&&this.$refs.first_name&&this.$refs.first_name.stateComputed&&this.$refs.last_name&&this.$refs.last_name.stateComputed}},mounted:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!1,e.$emit("login-start"),e.email="",e.password="",e.rememberPassword=!1,t.prev=1,t.next=2,u["c"].readFile({path:"food_force_secrets.txt",directory:u["a"].Data,encoding:u["b"].UTF8});case 2:n=t.sent,n=JSON.parse(n.data),n&&(e.email=n.email,e.password=n.password,e.rememberPassword=!0),t.next=4;break;case 3:t.prev=3,t["catch"](1);case 4:case"end":return t.stop()}}),t,null,[[1,3]])})))()},methods:{login:function(){var e=this;return this.showLoading("Signing In...|Connexion...","Please wait while we sign you in|Merci de patienter"),this.$store.dispatch("login",{url:"/client/account/login",params:{email:this.email,password:this.password}}).then((function(){e.hideLoading(),e.user.first_name&&e.user.last_name?e.onLogUser():e.showInfoCompletionModal=!0})).catch((function(t){return"login_invalid"===t.response.data?e.$swal({icon:"error",title:e.tr(["Could not login","Connexion non valide"]),text:e.tr(["Wrong email or password.","Mauvais nom d'utilisateur ou mot de passe"])}):"activation_needed"===t.response.data?e.$swal({icon:"warning",title:e.tr(["Email verification needed","Vérification du courriel demandée"]),text:e.tr(["Check your email, you received a verification link","Regardez vos courriels, vous avez reçu un lien de vérification"]),buttons:{resend:{value:"resend",text:e.tr(["Resend verification link","Renvoyez le lien de vérification"])},default:"OK"}}).then((function(t){if("resend"===t)return o["a"].post("/client/account/send-verification",{email:e.email})})):(e.showErrorMessage("Could not login|Connexion non valide","Please try again later|Merci de ré-essayer plus tard"),void e.$emit("login-finished"))}))},loginWithGoogle:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.showLoading("Signing In...|Connexion...","Please wait while we sign you in|Merci de patienter"),t.next=1,l["a"].signIn();case 1:return n=t.sent,t.abrupt("return",e.$store.dispatch("login",{url:"/client/account/login-social",params:{id_token:n.authentication.idToken,provider:"google"}}).then((function(){e.hideLoading(),e.user.first_name&&e.user.last_name?(e.$emit("login-finished"),e.redirectToLoginPage()):e.showInfoCompletionModal=!0})).catch((function(t){console.error(t),e.showErrorMessage("Could not login|Connexion non valide","Please try again later|Merci de ré-essayer plus tard")})));case 2:t.prev=2,i=t["catch"](0),console.error(i),e.showErrorMessage("Could not login|Connexion non valide","Please try again later|Merci de ré-essayer plus tard");case 3:case"end":return t.stop()}}),t,null,[[0,2]])})))()},loginWithApple:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="com.thefoodforce.portal.web",i="".concat(window.origin,"/login"),c["a"].isNativePlatform()&&(n=window.nativeAppId,i=e.isLocal()?"https://dev.thefoodforce.com/login":"".concat(window.env.VUE_APP_URL,"/login")),e.showLoading("Signing In...|Connexion...","Please wait while we sign you in|Merci de patienter"),t.abrupt("return",d["a"].authorize({clientId:n,redirectURI:i,scopes:"email name",state:"eyein",nonce:"eyein-".concat(Math.random().toFixed(8))}).then((function(t){var i=t.response.identityToken;return e.$store.dispatch("login",{url:"/client/account/login-social",params:{id_token:i,client_id:n,provider:"apple"}}
1).then((function(){e.hideLoading(),e.user.first_name&&e.user.last_name?(e.$emit("login-finished"),e.redirectToLoginPage()):e.showInfoCompletionModal=!0})).catch((function(){e.$swal({icon:"error",title:e.tr(["Could not login","Connexion non valide"]),text:e.tr(["Apple did not validate the login","Apple n'a pas validé l'authentification"])})}))})).catch((function(e){console.error(e)})));case 1:case"end":return t.stop()}}),t)})))()},onLogUser:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$emit("login-finished"),t.prev=1,!e.rememberPassword||isStringEmpty(e.password)){t.next=3;break}return t.next=2,u["c"].writeFile({path:"food_force_secrets.txt",data:JSON.stringify({email:e.email,password:e.password}),directory:u["a"].Data,encoding:u["b"].UTF8,recursive:!0});case 2:t.next=4;break;case 3:if(e.rememberPassword){t.next=4;break}return t.next=4,u["c"].deleteFile({path:"food_force_secrets.txt",directory:u["a"].Data});case 4:t.next=6;break;case 5:t.prev=5,t["catch"](1);case 6:return t.abrupt("return",e.redirectToLoginPage());case 7:case"end":return t.stop()}}),t,null,[[1,5]])})))()},redirectToLoginPage:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=localStorage.getItem("redirect"),!n){t.next=2;break}return localStorage.removeItem("redirect"),t.next=1,e.reach(n);case 1:t.next=3;break;case 2:if("login"!==e.$route.name){t.next=3;break}return t.next=3,e.reach(e.getHomeLink());case 3:e.email="",e.password="";case 4:case"end":return t.stop()}}),t)})))()},forgotPassword:function(){var e=this;return o["a"].post("/client/account/forgot-password",{username:this.recovery.username,email:this.recovery.email}).then((function(){e.$swal({icon:"success",title:e.tr(["Success","Succès"]),text:e.tr(["An email has been sent with further information.","Un courriel vous a été envoyé avec plus d'informations"])})})).catch((function(){e.$swal({icon:"error",title:e.tr(["No account found","Aucun compte associé"]),text:e.tr(["Make sure this username and email are valid","Merci de vérifier que votre nom d'utilisateur et courriel sont valides"])})}))},updateInfo:function(){var e=this;return o["a"].post("/client/account/update",this.user).then((function(){e.showInfoCompletionModal=!1,e.$emit("login-finished"),e.redirectToLoginPage()}))}}},f=m,p=n("2877"),h=Object(p["a"])(f,i,a,!1,null,"e68f8a7c",null);t["a"]=h.exports},a47b:function(e,t,n){e.exports=n.p+"img/website-home.8f95d93b.webp"},a502:function(e,t,n){"use strict";n("b0c0");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"e-terms-and-policies"},[e.termsAndPolicies&&e.termsAndPolicies.length>0?[e.termsAndPolicies.length>1&&!e.noShortcuts?t("div",{staticClass:"terms-index"},e._l(e.termsAndPolicies,(function(n){return t("b-btn",{key:"index-"+n.id,staticClass:"mr-2",attrs:{variant:"light",pill:""},on:{click:function(t){return e.scrollTo(n.type)}}},[e._v(" "+e._s(e._f("tr")(n.name))+" ")])})),1):e._e(),e._l(e.termsAndPolicies,(function(n){return t("section",{key:n.id,staticClass:"terms-section"},[t("div",{staticClass:"terms-anchor",attrs:{id:n.type}}),e.termsAndPolicies.length>1?t("div",{staticClass:"terms-title"},[t("h1",[e._v(e._s(e._f("tr")(n.name)))])]):e._e(),e.tr(n.header)?t("div",{staticClass:"terms-header",domProps:{innerHTML:e._s(e.tr(n.header))}}):e._e(),t("div",{staticClass:"terms-body",domProps:{innerHTML:e._s(e.tr(n.html_content))}})])}))]:e.loading?e._e():t("e-empty-placeholder",{attrs:{description:"This Link is not valid|Ce lien n'est pas valide"}})],2)},a=[],r=n("b85c"),s=(n("99af"),n("14d9"),n("b64b"),n("edc8")),o=n("4292"),c={name:"e-terms-and-policies",components:{EEmptyPlaceholder:o["a"]},props:{source:{type:String,required:!0},terms:{type:Array},noShortcuts:{type:Boolean},type:{type:String,default:"all"}},data:function(){return{loading:!1,title:"",termsAndPolicies:null}},mounted:function(){this.terms?this.setTermsAndPolicies(this.terms):this.getTermsAndConditions()}
1,methods:{getTermsAndConditions:function(){var e=this,t=this.type||"all";this.loading=!0,s["a"].get("/terms-and-policies/".concat(this.source,"/").concat(t),{},{system_api:!0}).then((function(t){e.setTermsAndPolicies(t.data),e.loading=!1}))},setTermsAndPolicies:function(e){this.termsAndPolicies=[];var t,n=Object(r["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.name=JSON.parse(i.name),i.header=JSON.parse(i.header),i.html_content=JSON.parse(i.html_content),this.termsAndPolicies.push(i)}}catch(a){n.e(a)}finally{n.f()}1===this.termsAndPolicies.length?this.$emit("update:title",this.termsAndPolicies[0].name):this.$emit("update:title",{en:"Terms and Policies",fr:"Termes et politiques"})},scrollTo:function(e){var t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})}}},u=c,l=(n("4ee5"),n("2877")),d=Object(l["a"])(u,i,a,!1,null,"34f0369a",null);t["a"]=d.exports},a502b:function(e,t,n){"use strict";n("b0f5")},a522:function(e,t,n){},a592:function(e,t,n){e.exports=n.p+"img/map.1264c2dc.png"},a5c9:function(e,t,n){e.exports=n.p+"img/information.34a6a912.png"},a708:function(e,t,n){e.exports=n.p+"img/ice-cream.75d3f784.jpg"},a73e:function(e,t,n){"use strict";n("caad"),n("b0c0"),n("2532");var i=function(){var e=this,t=e._self._c;return t("b-modal",{attrs:{visible:e.value,"body-class":"p-0",scrollable:"","hide-header":"","hide-footer":""},on:{hidden:function(t){return e.hide()}},scopedSlots:e._u([{key:"modal-footer",fn:function(n){var i=n.close;return[t("b-btn",{attrs:{variant:"none"},on:{click:i}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Cancel|Annuler")])])]}}])},[e.currentRestaurant?t("div",{staticClass:"restaurant-card"},[t("b-overlay",{attrs:{show:!e.restaurantInfo}},[e.restaurantInfo&&e.restaurantInfo.cover_image_path?t("b-img",{staticClass:"restaurant-image",attrs:{src:e.restaurantInfo.cover_image_path}}):e.restaurantInfo&&e.restaurantInfo.logo_image_path?t("e-img",{staticClass:"restaurant-image logo",attrs:{"portrait-mode":"",src:e.restaurantInfo.logo_image_path}}):t("b-img",{staticClass:"restaurant-image",attrs:{blank:"","blank-color":"#eee"}})],1),t("b-btn",{staticClass:"btn-left",attrs:{variant:"rounded"},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fas fa-chevron-left"})]),t("div",{staticClass:"card-info"},[t("div",{staticClass:"d-flex align-items-center justify-content-between"},[t("div",[t("div",{staticClass:"title text-black"},[e._v(e._s(e._f("tr")(e.currentRestaurant.name)))]),t("div",{staticClass:"address"},[e._v(e._s(e._f("address")(e.currentRestaurant)))])]),e.user?t("like-btn",{attrs:{value:e.user&&e.user.favorite_restaurants.includes(e.currentRestaurant.id)},on:{input:e.likeRestaurant}}):e._e()],1),t("a",{attrs:{href:"tel:"+e.currentRestaurant.phone_number,target:"_blank"}},[e._v(e._s(e._f("phoneNumber")(e.currentRestaurant.phone_number)))]),e.restaurantInfo?[t("div",{staticClass:"mt-2 f-500",staticStyle:{"min-height":"48px"}},[e._v(e._s(e._f("tr")(e.restaurantInfo.menu_description)))])]:t("div",{staticClass:"mt-2"},[t("b-skeleton",{attrs:{width:"75%",height:"22px"}}),t("b-skeleton",{attrs:{width:"55%",height:"22px"}})],1),t("hr",{staticClass:"mt-0"}),t("b-btn",{staticClass:"action-btn flat py-2",attrs:{block:"",variant:"primary",to:"/menu/".concat(e.currentRestaurant.id)},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-utensils-alt mr-3"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("View Restaurant menu|Voir le menu du restaurant")])]),e.restaurantInfo&&e.restaurantInfo.menu.welcome_url?t("b-btn",{staticClass:"action-btn flat py-2",attrs:{block:"",variant:"light",to:e.restaurantInfo.menu.welcome_url},on:{click:function(t){return e.hide()}}},[t("i",{staticClass:"fal fa-hat-chef mr-3"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("View Other Menus Available|Voir les autres menus disponibles")])]):e._e(),e.currentRestaurant.website?t("b-btn",{staticClass:"action-btn",attrs:{block:"",variant:"light",href:e.currentRestaurant.website,target:"_blank"}},[t("i",{staticClass:"fal fa-link mr-3"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]}
1,[e._v("Visit website|Visiter le site internet")])]):e._e(),e.restaurantInfo&&e.minOrderDelay>=5?[t("hr",{staticClass:"mb-0"}),t("ion-item",{attrs:{button:"",detail:"false",lines:"none"}},[t("i",{staticClass:"fal fa-business-time text-warning mr-3",attrs:{slot:"start"},slot:"start"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-warning f-500"},[e._v(" Please order at least "+e._s(e.minOrderDelay)+"h in advanced| Merci de commander au moins "+e._s(e.minOrderDelay)+"h en avance ")])])]:e.restaurantInfo&&e.minOrderDelay<5?[t("hr",{staticClass:"mb-0"}),t("ion-item",{attrs:{button:"",detail:"false",lines:"none"},on:{click:function(t){e.showOpeningHours=!e.showOpeningHours}}},[t("i",{staticClass:"fal fa-clock mr-3",class:{"text-success":!!e.currentTimeRange,"text-danger":!e.currentTimeRange},attrs:{slot:"start"},slot:"start"}),e.currentTimeRange?t("div",{staticClass:"d-flex align-items-center w-100"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-success f-500 f-11"},[e._v("Open|Ouvert")]),t("span",{staticClass:"ml-auto opacity-80 f-11 f-500 ml-auto"},[e._v(e._s(e.currentTimeRange))])]):t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-danger"},[e._v("Order Not Available|Commande non disponible")]),e.openingHours?t("div",{attrs:{slot:"end"},slot:"end"},[e.showOpeningHours?t("i",{staticClass:"fal fa-chevron-up opacity-80"}):t("i",{staticClass:"fal fa-chevron-down opacity-80"})]):e._e()]),e.openingHours?t("b-collapse",{staticClass:"pb-2",model:{value:e.showOpeningHours,callback:function(t){e.showOpeningHours=t},expression:"showOpeningHours"}},[t("hr",{staticClass:"mt-0 mb-2"}),e._l(e.openingHours,(function(n){return t("div",{staticClass:"pl-3 pl-md-5 pr-3 pr-md-5"},e._l(n.hours,(function(i,a){return t("div",{staticClass:"d-flex"},[0===a?t("div",{staticClass:"flex-1"},[e._v(e._s(n.day))]):e._e(),t("div",{staticClass:"flex-2 f-500 f-11 text-right"},[e._v(e._s(i))])])})),0)}))],2):e._e()]:e._e()],2)],1):e._e()])},a=[],r=n("3835"),s=(n("99af"),n("7db0"),n("a15b"),n("d81d"),n("14d9"),n("e9f5"),n("f665"),n("ab43"),n("a9e3"),n("4fad"),n("d3b7"),n("b0aa")),o=n("edc8"),c={name:"restaurant-card",components:{LikeBtn:s["a"]},props:{value:{type:Boolean,default:!1},restaurantSelected:{type:Object},restaurantId:{type:[String,Number]}},data:function(){return{restaurantInfo:null,loading:!0,showOpeningHours:!1,loadAllInfo:!1}},created:function(){this.loadRestaurant()},computed:{currentRestaurant:function(){return this.restaurantInfo?this.restaurantInfo:this.restaurantSelected},currentTimeRange:function(){if(!this.currentRestaurant||!this.currentRestaurant.hours)return null;var e=this.$moment.tz(this.currentRestaurant.timezone),t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n=e.hours()+e.minutes()/60,i=this.currentRestaurant.hours[t[e.day()]].find((function(e){return n>=e[0]&&n<=e[1]}));return i?i.map((function(t){return e.startOf("day").add({hours:t}).format("LT")})).join(" — "):null},openingHours:function(){var e=this;if(!this.currentRestaurant||!this.currentRestaurant.hours)return null;var t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n=["Sunday|Dimanche","Monday|Lundi","Tuesday|Mardi","Wednesday|Mercredi","Thursday|Jeudi","Friday|Vendredi","Saturday|Samedi"];return Object.entries(this.currentRestaurant.hours).map((function(i){var a=Object(r["a"])(i,2),s=a[0],o=a[1],c=o.map((function(t){return t.map((function(t){return e.$moment().startOf("day").hours(t).minutes(60*(t-Math.floor(t))).format("LT")})).join(" - ")}));return 0===c.length&&c.push(e.tr("Closed|Fermé")),{day:e.tr(n[t.indexOf(s)]),hours:c}}))},minOrderDelay:function(){return this.restaurantInfo?this.restaurantInfo.min_order_delay:0}},methods:{hide:function(){this.$emit("input",!1),this.$store.state.searchVisible&&this.$store.commit("setSearchVisible",!1)},loadRestaurant:function(){var e=this;if(!this.restaurantId&&(!this.restaurantSelected||!this.restaurantSelected.id))return null;if(this.loading=!0,this.restaurantInfo=null,this.restaurantId)return o["a"].get("/client/restaurant/".concat(this.restaurantId)).then((function(t){e.restaurantInfo=t.data})).finally((function(t){return e.loading=!1}));var t=null;if(this.orderTime){var n=this.orderTime.split(":"),i=60*Number(n[0])+Number(n[1]);t=this.$moment.tz(this.orderDate,this.restaurantSelected.timezone).startOf("day").add({minute:i})}var a=t||this.$moment();return o["a"].get("/client/restaurant/".concat(this.restaurantSelected.id,"/").concat(a.toISOString(!0))).then((function(t){return e.restaurantInfo=t.data})).finally((function(t){return e.loading=!1}))},likeRestaurant:function(e){var t=this;this.currentRestaurant&&o["a"].post("/client/restaurant/like",{restaurant_id:this.currentRestaurant.id,like:e}).then((function(e){t.$store.dispatch("getCurrentUser")}))}},watch:{value:function(e){e&&(this.loadRestaurant(),this.showOpeningHours=!1)}}},u=c,l=(n("e1a6"),n("2877")),d=Object(l["a"])(u,i,a,!1,null,"226205f5",null);t["a"]=d.exports},a794:function(e,t,n){},a837:function(e,t,n){"use strict";n("d2fd")},a874:function(e,t,n){e.exports=n.p+"img/no-image.6d644841.jpg"},a87d:function(e,t,n){e.exports=n.p+"img/calm.3ea9ab72.png"},aa19:function(e,t,n){},ab4a:function(e,t,n){},aca3:function(e,t,n){},af24:function(e,t,n){e.exports=n.p+"img/iconback.cb35299f.png"},af44:function(e,t,n){e.exports=n.p+"img/nut-free.85f8624c.png"},af65:function(e,t,n){e.exports=n.p+"img/map-alexis-nihon.6c44d624.jpg"},af7e:function(e,t,n){e.exports=n.p+"img/food-pattern.85074b54.jpg"},affe:function(e,t,n){e.exports=n.p+"img/happy.82f9b17b.png"},b077:function(e,t,n){e.exports=n.p+"img/flag-canada.2c0326bc.svg"},b0aa:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("b-btn",{staticClass:"like-btn btn-right",attrs:{variant:"rounded"},on:{click:e.onClick}},[e.liked?t("i",{staticClass:"fas fa-heart"}):t("i",{staticClass:"fal fa-heart"})])},a=[],r={name:"like-btn",props:{value:{type:Boolean}},data:function(){return{liked:this.value}},methods:{onClick:function(){this.liked=!this.liked,this.$emit("input",this.liked)}}},s=r,o=(n("6ec0"),n("2877")),c=Object(o["a"])(s,i,a,!1,null,"139ddfed",null);t["a"]=c.exports},b0f5:function(e,t,n){},b111:function(e,t,n){e.exports=n.p+"img/vue_icon.c52c29f3.png"},b157:function(e,t,n){e.exports=n.p+"img/cake.2f849aee.png"},b281:function(e,t,n){e.exports=n.p+"img/broccoli.62dd166b.png"},b2e6:function(e,t,n){"use strict";n("47b9")},b339:function(e,t,n){"use strict";n("1939")},b36a:function(e,t,n){e.exports=n.p+"img/new-curbside-pickup.d9d106b5.png"},b3e8:function(e,t,n){}
1,b43c:function(e,t,n){e.exports=n.p+"img/list.bcd19b24.png"},b451:function(e,t,n){"use strict";n("3a3a")},b456:function(e,t,n){e.exports=n.p+"img/restaurant.ccb9905f.jpg"},b48f:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("header",{staticClass:"navigation-bar-container"},[t("div",{staticClass:"navigation-bar",class:["theme-"+e.theme,{fixed:!e.notFixed}]},[t("div",{staticClass:"navigation-container",class:{container:e.useContainer}},[t("div",{staticClass:"navigation-part navigation-start"},[!e.noLogo&&e.logoSrc?t("router-link",{staticClass:"navigation-logo",attrs:{to:e.homeRoute}},[t("b-img",{attrs:{src:e.logoSrc}})],1):e._e(),e._t("start")],2),t("div",{staticClass:"navigation-part navigation-title"},[e._t("title")],2),e.$slots.end?t("div",{staticClass:"navigation-part navigation-end"},[e._t("end")],2):e._e(),e._t("default")],2)])])},a=[],r={name:"e-navigation-bar",props:{useContainer:{type:Boolean},notFixed:{type:Boolean},noLogo:{type:Boolean},logoSrc:{type:String},theme:{type:String,default:"light"},homeRoute:{type:String}}},s=r,o=(n("fc18"),n("2877")),c=Object(o["a"])(s,i,a,!1,null,"57bd256c",null);t["a"]=c.exports},b4f6:function(e,t,n){},b63f:function(e,t,n){},b694:function(e,t,n){e.exports=n.p+"img/swipe_checked.25e763dc.png"},b6d7:function(e,t,n){e.exports=n.p+"img/cocktail-25.0fb811f8.png"},b714:function(e,t,n){e.exports=n.p+"img/red-girl-fly.768628fc.png"},b754:function(e,t,n){e.exports=n.p+"img/logo.2fb0be24.png"},b7c7:function(e,t,n){e.exports=n.p+"img/burger-25.79973566.png"},b7d7:function(e,t,n){e.exports=n.p+"img/brocolli.926a2372.png"},b86e:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return m}));var i=n("53ca"),a=(n("b64b"),n("c1df")),r=n.n(a);function s(){var e=localStorage.getItem("language");return e||(e="fr"===navigator.language.substring(0,2)?"fr":"en",localStorage.setItem("language",e)),e}function o(){var e=localStorage.getItem("language");return e="fr"===e?"en":"fr",r.a.locale(e),localStorage.setItem("language",e),e}function c(){return"fr"===s()}function u(){return"en"===s()}function l(e){if("en"===e||"fr"===e)return r.a.locale(e),localStorage.setItem("language",e),e;console.error("invalid language ".concat(e))}function d(e,t){if(!e)return"";t||(t=s());var n=f(e);if(null===n)return e;if("fr"===t){if(n.fr&&n.fr.length>0)return n.fr}else{if(n.en&&n.en.length>0)return n.en;if(!n.en&&n.fr&&n.fr.length>0)return n.fr}return n.default?n.default:n.en}var m=d;function f(e){if(null===e||void 0===e||""===e)return null;if(Array.isArray(e))return!e||e.length<2?null:{fr:e[1],en:e[0]};if(e["en"]||e["fr"]||e["default"])return e;if("string"===Object(i["a"])(e)&&p(e))return JSON.parse(e);if("string"===Object(i["a"])(e)&&e.indexOf("|")>=0){var t=e.split("|");return t.length<2?null:{fr:t[1],en:t[0]}}return"string"===Object(i["a"])(e)?null:{fr:"",en:""}}function p(e){try{var t=JSON.parse(e);return"object"===Object(i["a"])(t)}catch(n){return!1}}},bab5:function(e,t,n){e.exports=n.p+"img/default.a7dc2503.png"},bc52:function(e,t,n){e.exports=n.p+"img/bread.c983ef3f.png"},bcba:function(e,t,n){e.exports=n.p+"img/canada.844048f9.png"},bcee:function(e,t,n){"use strict";n("0215")},bd6b:function(e,t,n){"use strict";n("6cb3")},bea0:function(e,t,n){e.exports=n.p+"img/temperature.c981e7fa.png"},bea3:function(e,t,n){e.exports=n.p+"img/cola.0eda2845.png"},bee9:function(e,t,n){},bff7:function(e,t,n){"use strict";n("0d78")},c095:function(e,t,n){e.exports=n.p+"img/girl-fight.ae460d9e.png"},c0b0:function(e,t,n){e.exports=n.p+"img/calendar.6cc659f6.png"},c0d6:function(e,t,n){"use strict";var i=n("c7eb"),a=n("1da1"),r=n("b85c"),s=n("5530"),o=(n("99af"),n("b0c0"),n("d3b7"),n("2b0e")),c=n("2f62"),u=n("bfa9"),l=(n("7db0"),n("c740"),n("14d9"),n("13d5"),n("a434"),n("e9f5"),n("d866"),n("f665"),n("9485"),n("a9e3"),n("3ca3"),n("ddb0"),n("a2b6")),d=n("b86e"),m=n("edc8"),f=n("7f45"),p=n.n(f);function h(){if(O.state.user){var e={id:O.state.user.id,first_name:O.state.user.first_name,last_name:O.state.user.last_name,order:{items:O.state.order.items,tableId:O.state.order.table.id},tip:null};o["default"].prototype.$socket.tables.emit("update",{user:e})}}var g={items:[],restaurant:null,table:{users:[]},animation:!1,date:p()().format("YYYY-MM-DD"),time:null,mode:null,modeDate:null,source:"food-force"},b={namespaced:!0,state:function(){return g},getters:{orderCalories:function(e){return e.items?e.items.reduce((function(e,t){return e+(t.item.calories||0)*t.quantity}),0):0}},mutations:{setOrderDate:function(e,t){e.date=t},setOrderTime:function(e,t){e.time=t},setOrderSource:function(e,t){e.source=t},setOrderMode:function(e,t){e.mode=t},setOrderModeDate:function(e,t){e.orderModeDate=t},resetOrder:function(e){e.items=[],e.restaurant=null,e.tip=null,h()},removeFromOrder:function(e,t){var n=e.items.findIndex((function(e){return e.type===t.type&&e.item.id===t.item.id}));n>=0&&(e.items.splice(n,1),h())},setOrderItemQty:function(e,t){var n=t.itemID,i=t.qty,a=e.items.find((function(e){return e.item.id===n}));a&&(a.quantity=Number(i))},setOrderRestaurant:function(e,t){e.restaurant=t,t&&t.currency?localStorage.setItem("currency",t.currency):localStorage.removeItem("currency")},setTip:function(e,t){e.tip=t},setTable:function(e,t){e.table=t,o["default"].prototype.$socket.tables.emit("join_table",{id:O.state.user.id,first_name:O.state.user.first_name,last_name:O.state.user.last_name,order:{items:O.state.order.items,tableId:O.state.order.table.id}})},addItemToOrder:function(e,t){var n=t.item,i=t.modifiers,a=t.quantity,r=t.notes;e.items&&0!==e.items.length?m["a"].post("/client/order/add-item",{restaurant_id:e.restaurant.id,account_id:e.user?e.user.id:null,item_id:n.id}):m["a"].post("/client/order/start",{restaurant_id:e.restaurant.id,account_id:O.state.user?O.state.user.id:null,item_id:n.id});var s=e.items.find((function(e){return e.item.id===n.id&&Object(l["h"])(e.modifiers,i)}));s?(s.quantity+=a||1,r&&(s.notes=r)):e.items.push({type:"item",item:n,modifiers:i,quantity:a||1,notes:r||""})},addComboToOrder:function(e,t){var n=t.combo,i=t.modifiers,a=t.quantity,r=t.notes;e.items&&0!==e.items.length?m["a"].post("/client/order/add-item",{restaurant_id:e.restaurant.id,account_id:e.user?e.user.id:null,combo_id:n.id}):m["a"].post("/client/order/start",{restaurant_id:e.restaurant.id,account_id:O.state.user?O.state.user.id:null,combo_id:n.id});var s=e.items.find((function(e){return"combo"===e.type&&e.item.id===n.id&&e.item.slots.every((function(e){return e.selectedItem===n.slots.find((function(t){return t.id===e.id})).selectedItem}))&&Object(l["h"])(e.modifiers,i)}));s?(s.quantity+=a||1,r&&(s.notes=r)):e.items.push({type:"combo",item:n,modifiers:i,quantity:a||1,notes:r||""})},clearTable:function(e){e.table={id:null,restaurant_id:null,users:[]},o["default"].prototype.$socket.tables.emit("leave_table",{})},clearTableUsers:function(e){e.table.users=[]},addTableUser:function(e,t){if(console.log("adding ",t),e.table.users||
1(e.table.users=[]),t.id!==O.state.user.id){var n=e.table.users.findIndex((function(e){return e.id===t.id}));n<0?e.table.users.push(t):e.table.users.splice(n,1,t)}},deleteTableUser:function(e,t){if(t&&O.state.user){if(e.table.users||(e.table.users=[]),t.id===O.state.user.id)return;var n=e.table.users.findIndex((function(e){return e.id===t.id}));n>=0&&e.table.users.splice(n,1)}}},actions:{resetOrderAndSetRestaurant:function(e,t){var n=e.commit;return Object(l["e"])({message:Object(d["g"])("Please wait...|Chargement en cours...")},(function(){return n("resetOrder"),n("clearTable"),m["a"].get("/client/restaurant/".concat(t)).then((function(e){n("setRestaurant",e.data,{root:!0}),n("setOrderRestaurant",e.data)})).catch((function(e){return Promise.reject(e)}))}))},promptResetOrder:function(e,t){var n=e.state,i=e.commit,a=e.dispatch;return new Promise((function(e,r){n.items.length>0&&n.items.find((function(e){return e.item.restaurant_id!==t}))?Object(l["d"])({header:Object(d["g"])("Discard order|Vider le panier"),message:Object(d["g"])("Items in your order must be from the same restaurant. Adding this item to the order will result in discarding any items in your current order. Do you wish to proceeed?\n                        |Les articles d'une commande doivent provenir d'un même restaurant. Ajouter cet article à la commande supprimera les articles actuels."),buttons:[{text:Object(d["g"])("Cancel|Annuler"),handler:function(t){return e(!1)}},{text:Object(d["g"])("Proceed|Continuer"),handler:function(n){a("resetOrderAndSetRestaurant",t).then((function(t){return e(!0)})).catch((function(e){return r(e)}))}}]}):n.restaurant&&n.restaurant.id===t?e(!0):Object(l["e"])({message:Object(d["g"])("Please wait...|Chargement en cours...")},(function(){return m["a"].get("/client/restaurant/".concat(t)).then((function(t){i("setRestaurant",t.data,{root:!0}),i("setOrderRestaurant",t.data),e(!0)})).catch((function(e){return r(e)}))}))}))},addItemToOrder:function(e,t){var n=e.state,r=e.commit,s=e.dispatch,o=t.item,c=t.modifiers,u=t.quantity,m=t.notes;return new Promise(function(){var e=Object(a["a"])(Object(i["a"])().mark((function e(t){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=1,s("promptResetOrder",o.restaurant_id);case 1:if(e.sent){e.next=2;break}return e.abrupt("return",t(!1));case 2:r("addItemToOrder",{item:o,modifiers:c||null,quantity:u,notes:m}),h(),Object(l["f"])({header:Object(d["g"])("Item added to order|Article ajouté à la commande"),position:"top",duration:2e3}),n.animation=!0,setTimeout((function(){n.animation=!1}),1e3),t(!0);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},addComboToOrder:function(e,t){var n=e.state,s=e.commit,o=e.dispatch,c=t.combo,u=t.modifiers,m=t.quantity,f=t.notes;return new Promise(function(){var e=Object(a["a"])(Object(i["a"])().mark((function e(t){var a,p,g,b;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=1,o("promptResetOrder",c.restaurant_id);case 1:if(e.sent){e.next=2;break}return e.abrupt("return",t(!1));case 2:if(!(n.restaurant&&n.restaurant.menu&&Array.isArray(n.restaurant.menu.items))){e.next=9;break}c.calories=0,a=Object(r["a"])(c.slots),e.prev=3,g=Object(i["a"])().mark((function e(){var t,a;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=p.value,t.selectedItem&&(a=n.restaurant.menu.items.find((function(e){return e.id===t.selectedItem})),a&&a.calories&&(c.calories+=a.calories));case 1:case"end":return e.stop()}}),e)})),a.s();case 4:if((p=a.n()).done){e.next=6;break}return e.delegateYield(g(),"t0",5);case 5:e.next=4;break;case 6:e.next=8;break;case 7:e.prev=7,b=e["catch"](3),a.e(b);case 8:return e.prev=8,a.f(),e.finish(8);case 9:s("addComboToOrder",{combo:c,modifiers:u||null,quantity:m,notes:f}),h(),Object(l["f"])({header:Object(d["g"])("Combo added to order|Combo ajouté à la commande"),position:"top",duration:2e3}),n.animation=!0,setTimeout((function(){n.animation=!1}),1e3),t(!0);case 10:case"end":return e.stop()}}),e,null,[[3,7,8,9]])})));return function(t){return e.apply(this,arguments)}}())}}},v=n("f365"),_=n("c1df"),y=n.n(_),w=n("aefb"),k=n("1547"),C=new u["a"]({storage:window.localStorage,reducer:function(e){return{listView:e.listView,order:e.order,delivery:e.delivery,restaurant_id:e.restaurant&&e.restaurant.id?e.restaurant.id:null,restaurant:e.restaurant,user:e.user,geolocation:e.geolocation,recommendationZone:e.recommendationZone,zoneLastTime:e.zoneLastTime,notifications:e.notifications,notificationsContinuation:e.notificationsContinuation}}});o["default"].use(c["a"]);var x={user:null,loginStatus:"",delivery:{address:null,phone:"",address_complement:"",comments:""},geolocation:{name:"",coords:null,lastTime:null},restaurant:null,menu:null,restaurants:[],recommendationZone:null,zoneLastTime:null,notifications:[],notificationsContinuation:0,
1commentsModal:{visible:!1,recommendationId:null,commentId:null,autofocus:!1}},S={appVersion:null,device:null,initialLoading:!0,desktopMenuVisible:!1,notificationsVisible:!1,cuisines:null,tags:{},types:{},personas:[],searchVisible:!1,listView:"list",applicationReady:!1,phoneValidationVisible:!1,registerModalVisible:!1,registerModalTab:"login",constantsLoaded:!1,isMobileLayout:!1,isSmallLayout:!1,isMobileOrTabletLayout:!1,isLargeLayout:!1,isExtraLargeLayout:!1},O=t["a"]=new c["a"].Store({modules:{order:b},state:Object.assign(S,x),getters:{currentUser:function(e){return e.user?e.user:null},isAuthenticated:function(e){return!!e.user},fullName:function(e){return e.user?e.user.first_name+" "+e.user.last_name:""}},mutations:{setListView:function(e,t){e.listView=t},setMenu:function(e,t){e.menu=t},setRestaurant:function(e,t){e.restaurant=t,e.order&&0===e.order.items.length&&(this.commit("order/resetOrder"),t&&t.menu&&this.commit("order/setOrderRestaurant",t))},setRestaurantHours:function(e,t){e.restaurant&&(e.restaurant.hours=t)},setSearchVisible:function(e,t){e.searchVisible=t},setDelivery:function(e,t){e.delivery=t||{address:null,phone:"",address_complement:"",comments:""}},setUserAddress:function(e,t){e.user=Object(s["a"])(Object(s["a"])({},e.user),{address:t.address,address_complement:t.address_complement,city:t.city,state:t.state,postal_code:t.postal_code,country:t.country})},setRestaurants:function(e,t){e.restaurants=t},setMenuConstants:function(e,t){e.cuisines=t.cuisines,e.types={};var n,i=Object(r["a"])(t.types);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.types[a.id]=a}}catch(u){i.e(u)}finally{i.f()}e.tags={};var s,o=Object(r["a"])(t.tags);try{for(o.s();!(s=o.n()).done;){var c=s.value;e.tags[c.id]=c}}catch(u){o.e(u)}finally{o.f()}e.personas=t.personas,e.constantsLoaded=!0},setAppVersion:function(e,t){e.appVersion=t},setDevice:function(e,t){e.device=t},startLogin:function(e){e.loginStatus="loading"},authSuccess:function(e,t){e.loginStatus="success",e.user=t},setGeolocationCoords:function(e,t){e.geolocation.coords=t},setGeolocationName:function(e,t){e.geolocation.name=t},setGeolocationTime:function(e,t){e.geolocation.lastTime=t},notConnected:function(e){e.loginStatus="not_connected"},authError:function(e){e.loginStatus="error"},loggedOut:function(e){e.loginStatus="logged_out",e.user=null},updateWindow:function(e){e.isMobileLayout=window.isMobileLayout,e.isSmallLayout=window.isSmallLayout,e.isTabletLayout=window.isTabletLayout,e.isMobileOrTabletLayout=window.isMobileOrTabletLayout,e.isLargeLayout=window.isLargeLayout,e.isExtraLargeLayout=window.isExtraLargeLayout},resetStore:function(e){for(var t in x)e[t]=x[t];for(var n in g)e.order[n]=g[n];this.commit("updateWindow")},setRecommendationZone:function(e,t){e.recommendationZone=t,e.zoneLastTime=y()().format("YYYY-MM-DD")},setNotifications:function(e,t){var n=t.notifications,i=t.continuation;e.notifications=n,e.notificationsContinuation=i},togglePhoneValidation:function(e,t){e.phoneValidationVisible=t},showLoginRegisterModal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"login";e.registerModalVisible=!0,e.registerModalTab=t},toggleRegisterModal:function(e,t){e.registerModalVisible=t},toggleCommentsModal:function(e,t){t.hasOwnProperty("visible")&&(e.commentsModal.visible=t.visible),t.hasOwnProperty("recommendationId")&&(e.commentsModal.recommendationId=t.recommendationId),t.hasOwnProperty("commentId")&&(e.commentsModal.commentId=t.commentId),t.hasOwnProperty("autofocus")&&(e.commentsModal.autofocus=t.autofocus)}},actions:{getCurrentUser:function(e){var t=e.commit,n=e.dispatch;return new Promise(function(){var e=Object(a["a"])(Object(i["a"])().mark((function e(a,r){var s,o,c;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t("startLogin"),s=localStorage.getItem("token"),!s){e.next=5;break}return e.next=1,m["a"].setToken(s);case 1:return e.next=2,w["a"].getId();case 2:return o=e.sent.uuid,e.next=3,w["a"].getInfo();case 3:return c=e.sent,e.next=4,m["a"].get("/client/account/current-user",{device_id:o,device_model:c.model,os:c.operatingSystem,os_version:c.osVersion,native:k["a"].isNativePlatform()}).then((function(e){var i=e.data;i&&(t("authSuccess",i),v["a"].registerPushNotificationToken(),n("loadNotifications",!0),a())})).catch((function(e){t("authError",e),localStorage.removeItem("token"),m["a"].removeToken(),r(e)}));case 4:n("loadMenuConstants"),e.next=6;break;case 5:t("notConnected"),a();case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())},loadMenuConstants:function(e){var t=e.commit;return m["a"].get("/client/menus/constants").then((function(e){t("setMenuConstants",e.data)})).catch((function(e){return console.error(e.response.data)}))},loadNotifications:function(e){var t=e.commit,n=e.state,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!i&&n.notificationsContinuation<0)return Promise.resolve();var a=n.notificationsContinuation;return i&&(a=0),m["a"].get("/client/account/notifications",{limit:15,offset:a}).then((function(e){t("setNotifications",0===a?{notifications:e.data.notifications,continuation:e.data.continuation}:{notifications:n.notifications.concat(e.data.notifications),continuation:e.data.continuation})})).catch((function(e){return console.error(e.response.data)}))}
1,login:function(e,t){var n=e.commit,r=e.dispatch;return new Promise(function(){var e=Object(a["a"])(Object(i["a"])().mark((function e(a,o){var c,u;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=1,w["a"].getId();case 1:return c=e.sent.uuid,e.next=2,w["a"].getInfo();case 2:u=e.sent,n("startLogin"),m["a"].post(t.url,Object(s["a"])(Object(s["a"])({},t.params),{},{device_id:c,device_model:u.model,os:u.operatingSystem,os_version:u.osVersion,native:k["a"].isNativePlatform()})).then((function(e){var t=e.data;localStorage.setItem("token",t.token),m["a"].setToken(t.token),n("authSuccess",t),v["a"].registerPushNotificationToken(),r("loadNotifications",!0),r("loadMenuConstants"),a(t)})).catch((function(e){n("authError",e),localStorage.removeItem("constants"),localStorage.removeItem("token"),m["a"].removeToken(),o(e)}));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())},logout:function(e){var t=e.commit,n=(e.dispatch,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return new Promise((function(e,i){t("loggedOut"),localStorage.removeItem("token"),localStorage.removeItem("constants"),m["a"].removeToken(),n&&t("resetStore"),e()}))}},plugins:[C.plugin]})},c1dd:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("b-input-group",{staticClass:"input-location"},[t("GmapAutocomplete",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]}),t("b-input",{ref:"autocomplete",attrs:{value:e.value,placeholder:e.placeholder,autocomplete:"off","data-test":"input-location"}}),e.hideAutoLocation?e._e():t("b-input-group-append",[t("b-btn",{on:{click:e.getCurrentAddress}},[t("i",{staticClass:"fas fa-location-crosshairs"})])],1),e.value?t("i",{staticClass:"fas fa-times position-absolute bg-white",class:{solo:e.hideAutoLocation},on:{click:function(t){return e.$emit("place-changed",null)}}}):e._e()],1)},a=[],r=n("c7eb"),s=n("5530"),o=n("1da1"),c=(n("a9e3"),n("d3b7"),n("0582")),u=n("38a7"),l={name:"e-input-location",props:{value:{type:String},placeholder:{type:String},options:{type:Object,default:function(e){}},location:{type:Object},radius:{type:Number,default:5e4},hideAutoLocation:{type:Boolean,default:!1}},data:function(){return{searchBox:null}},created:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var n,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,e.$nextTick();case 1:if(window.google){t.next=2;break}return t.next=2,e.loadGmapApi();case 2:n=e.options,n||(n={}),e.location&&(i=Object(u["a"])(e.location.lat,e.location.lng,e.radius),n.bounds=new google.maps.LatLngBounds(i.northEast,i.southWest)),e.searchBox=new window.google.maps.places.Autocomplete(e.$refs.autocomplete.$el,Object(s["a"])({},n)),e.searchBox.addListener("place_changed",(function(){var t=e.searchBox.getPlace();e.setPlace(t)}));case 3:case"end":return t.stop()}}),t)})))()},methods:{loadGmapApi:function(){return new Promise((function(e){var t=window.vueGoogleMapsInit;window.vueGoogleMapsInit=function(){t(),e()}}))},getCurrentAddress:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=1,c["a"].getCurrentLocation();case 1:n=t.sent,e.setPlace(n);case 2:case"end":return t.stop()}}),t)})))()},setPlace:function(e){this.$emit("input",e.formatted_address);var t=Object(u["d"])(e.address_components);this.$emit("place-changed",{place:e,lat:e.geometry.location.lat(),lng:e.geometry.location.lng(),address:t.street_number+" "+t.route,formatted_address:e.formatted_address,city:t.locality,state:t.administrative_area_level_1,postal_code:t.postal_code,country:t.country})}}},d=l,m=(n("3eb1"),n("2877")),f=Object(m["a"])(d,i,a,!1,null,null,null);t["a"]=f.exports},c26b:function(e,t,n){e.exports=n.p+"img/gray-man-fly.cd609ceb.png"},c44d:function(e,t,n){e.exports=n.p+"img/kiosk.bff9ddae.png"},c469:function(e,t,n){"use strict";n("7c3e")},c4c8:function(e,t,n){"use strict";n("10a4")},c4f8:function(e,t,n){e.exports=n.p+"img/sugar.ccd9b75a.png"},c711:function(e,t,n){e.exports=n.p+"img/restaurant-placeholder.86d14ad8.png"},c753:function(e,t,n){e.exports=n.p+"img/apple.38b6df27.png"},c851:function(e,t,n){e.exports=n.p+"img/social-trends-en.f9bee614.png"},c8d7:function(e,t,n){e.exports=n.p+"img/steak.07cee4a8.png"},c8f7:function(e,t,n){e.exports=n.p+"img/cash-register.73e20eef.png"},c9ff:function(e,t,n){e.exports=n.p+"img/tortilla.d579ba04.png"},ca2f:function(e,t,n){},ca38:function(e,t,n){"use strict";n("38ba")},ca5f:function(e,t,n){e.exports=n.p+"img/camera.89455a9d.png"},ca849:function(e,t,n){e.exports=n.p+"img/thinking.ad903f52.png"},cb0f:function(e,t,n){e.exports=n.p+"img/hot_pepper.8f5ed470.png"},cb4e:function(e,t,n){e.exports=n.p+"img/heart.d327dd0d.png"},cb9b:function(e,t,n){e.exports=n.p+"img/andy-bold.69e09de7.webp"},cbc8:function(e,t,n){e.exports=n.p+"img/background-mobile.9bd53c1f.jpg"},cc5e:function(e,t,n){e.exports=n.p+"img/explore-fr.49a90142.webp"},cca8:function(e,t,n){e.exports=n.p+"img/car.b845c5e5.svg"},cdd0:function(e,t,n){e.exports=n.p+"img/salt.66be406d.png"},ce25:function(e,t,n){e.exports=n.p+"img/drink.cf58056c.png"},cea3:function(e,t,n){e.exports=n.p+"img/wine.75f4ee14.png"},cf2f:function(e,t,n){e.exports=n.p+"img/fried.01d30084.png"},cf85:function(e,t,n){e.exports=n.p+"img/discount.a6878a68.png"},cf8e:function(e,t,n){e.exports=n.p+"img/turkey.d8b9dc29.png"},d07d:function(e,t,n){e.exports=n.p+"img/new-drive-through.1feb74e2.webp"},d09c:function(e,t,n){e.exports=n.p+"img/eat.833ab463.png"},d16c:function(e,t,n){},d1db:function(e,t,n){e.exports=n.p+"img/promo-code.b1252d93.png"},d250:function(e,t,n){e.exports=n.p+"img/gray-man-standing.98d422d8.png"},d2c5:function(e,t,n){e.exports=n.p+"img/green-man-back.0ab1ae5b.png"},d2fd:function(e,t,n){},d517:function(e,t,n){e.exports=n.p+"img/question.83b4fcfb.png"},d536:function(e,t,n){e.exports=n.p+"img/user.a769a15c.png"},d580:function(e,t,n){e.exports=n.p+"img/tea.43b76067.png"},d5801:function(e,t,n){e.exports=n.p+"img/vegan.c5fa21c7.png"},d62e:function(e,t,n){e.exports=n.p+"img/selected.4f21371d.png"},d68d:function(e,t,n){e.exports=n.p+"img/man-heroic-pose.5afe4b0c.png"},d7d1:function(e,t,n){e.exports=n.p+"img/sushi.9d4de281.png"},d910:function(e,t,n){e.exports=n.p+"img/ramen-25.1240a8ae.png"},d9c8:function(e,t,n){"use strict";n("6900")},da38:function(e,t,n){e.exports=n.p+"img/plate-fish.ab17a694.png"},da88:function(e,t,n){e.exports=n.p+"img/phone-validation.dceaca34.png"},db03:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("form",{staticClass:"login-body text-left",attrs:{id:"registration-form"}},[e._t("header",(function(){return[t("div",{staticClass:"text-center mb-2"},[t("b-img",{attrs:{width:"150",src:"https://eyeinlivestorage.blob.core.windows.net/public/food-for
1ce/food-force-client-logo.png"}})],1)]})),t("b-row",[t("b-col",{attrs:{sm:"12",md:"6"}},[t("b-form-group",{scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("First name|Prénom")]),t("span",{staticClass:"text-danger font-weight-bold pl-1"},[e._v("*")])]},proxy:!0}])},[t("b-input",{ref:"firstname",staticClass:"form-control",attrs:{id:"first-name",autocomplete:"fname given-name",name:"firstname",required:"",type:"text",state:e.firstNameValid,maxlength:"50"},model:{value:e.newUser.first_name,callback:function(t){e.$set(e.newUser,"first_name",t)},expression:"newUser.first_name"}})],1)],1),t("b-col",{attrs:{sm:"12",md:"6"}},[t("b-form-group",{scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Last name|Nom")]),t("span",{staticClass:"text-danger font-weight-bold pl-1"},[e._v("*")])]},proxy:!0}])},[t("b-input",{ref:"lastname",staticClass:"form-control",attrs:{id:"last-name",autocomplete:"lname family-name",name:"name",required:"",type:"text",state:e.lastNameValid,maxlength:"50"},model:{value:e.newUser.last_name,callback:function(t){e.$set(e.newUser,"last_name",t)},expression:"newUser.last_name"}})],1)],1)],1),e.isInvited?t("div",{staticClass:"email-lock mx-auto"},[e._v(e._s(e.newUser.email)),t("span",{staticClass:"text-right"})]):t("b-form-group",[t("label",[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Email|Courriel")]),t("span",{staticClass:"text-danger font-weight-bold pl-1"},[e._v("*")])]),t("b-form-input",{ref:"email",staticClass:"form-control",attrs:{autocomplete:"email",id:"login-email",name:"email",required:"",type:"email",state:e.emailValid&&e.emailAvailable,maxlength:"250"},on:{change:e.testEmailAvailability},model:{value:e.newUser.email,callback:function(t){e.$set(e.newUser,"email",t)},expression:"newUser.email"}}),e.newUser.email?e.emailValid?e.emailAvailable?e._e():t("b-form-invalid-feedback",{directives:[{name:"tr",rawName:"v-tr"}],attrs:{id:"login-email"}},[e._v("The email address is already taken|Ce courriel est déjà utilisé")]):t("b-form-invalid-feedback",{directives:[{name:"tr",rawName:"v-tr"}],attrs:{id:"login-email"}},[e._v("This email address is not valid|Ce courriel est incorrect")]):t("b-form-invalid-feedback",{directives:[{name:"tr",rawName:"v-tr"}],attrs:{id:"login-email"}},[e._v("Email address required|Courriel requis")])],1),e.showPhone?t("b-form-group",{scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Phone number|Téléphone")]),t("span",{staticClass:"text-danger font-weight-bold pl-1"},[e._v("*")])]},proxy:!0}],null,!1,647670318)},[t("e-tel-input",{ref:"phone",model:{value:e.newUser.phone_number,callback:function(t){e.$set(e.newUser,"phone_number",t)},expression:"newUser.phone_number"}}),e.newUser.phone_number&&!e.phoneValid?t("div",{staticClass:"invalid-feedback mt-2 d-block"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Invalid phone number|Numéro de téléphone invalide.")])]):e.newUser.phone_number?e._e():t("div",{staticClass:"invalid-feedback mt-2 d-block"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Phone number is required|Merci de fournir votre numéro de téléphone")])])],1):e._e(),t("b-row",[t("b-col",{attrs:{sm:"12",md:"6"}},[t("b-form-group",{scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Password|Mot de passe")]),t("span",{staticClass:"text-danger font-weight-bold pl-1"},[e._v("*")])]},proxy:!0}])},[t("b-input",{ref:"password",staticClass:"form-control",attrs:{autocomplete:"password",id:"login-password",name:"password",required:"",type:"password",state:e.passwordValid,maxlength:"32"},model:{value:e.newUser.password,callback:function(t){e.$set(e.newUser,"password",t)},expression:"newUser.password"}})],1)],1),t("b-col",{attrs:{sm:"12",md:"6"}},[t("b-form-group",{scopedSlots:e._u([{key:"label",fn:function(){return[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Confirmation|Confirmation")]),t("span",{staticClass:"text-danger font-weight-bold pl-1"},[e._v("*")])]},proxy:!0}])},[t("b-input",{ref:"confirm",staticClass:"form-control",attrs:{id:"login-confirm",name:"confirm",required:"",type:"password",state:e.passwordConfirmValid,maxlength:"32"},model:{value:e.confirm,callback:function(t){e.confirm=t},expression:"confirm"}})],1)],1)],1),e.passwordValid?e._e():t("div",{staticClass:"invalid-feedback d-block",staticStyle:{margin:"-10px 0 10px"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Your password must have at least 8 characters, a number and an uppercase letter|Votre mot de passe doit avoir au moins 8 caractères, un chiffre et une lettre majuscule.")])]),e.passwordValid&&!e.passwordConfirmValid?t("div",{staticClass:"invalid-feedback d-block",staticStyle:{margin:"-10px 0 10px"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Please confirm your password|Merci de confirmer votre mot de passe")])]):e._e(
1),t("div",{staticClass:"d-block mt-3",staticStyle:{"font-weight":"500","font-size":"10pt"}},[t("b-checkbox",{model:{value:e.acceptTerms,callback:function(t){e.acceptTerms=t},expression:"acceptTerms"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"mr-1"},[e._v("I accept the |J'accepte les ")]),t("a",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"text-underline text-primary",on:{"!click":function(t){t.stopPropagation(),e.termsAndConditionsActive=!0,e.termsAndConditionsVisible=!0}}},[e._v(" Terms and Conditions and the Data Privacy Policy|termes et conditions et la politique de confidentialité ")]),e._v(". ")])],1),t("div",{staticClass:"d-block mt-3",staticStyle:{"font-weight":"500","font-size":"10pt"}},[t("b-checkbox",{model:{value:e.acceptSMS,callback:function(t){e.acceptSMS=t},expression:"acceptSMS"}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v(" I consent to receiving SMS messages to verify my account and follow the status of orders placed on TheFoodForce| J'accepte de recevoir des messages SMS pour valider mon compte et pour suivre le statut des commandes passées sur TheFoodForce ")])])],1),t("b-btn",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"mt-3",attrs:{size:"xl",block:e.isMobileLayout,variant:"primary",disabled:!e.formValid},on:{click:e.createAccount}},[e._v("Register|S'inscrire")]),e.acceptTerms?e._e():t("div",{staticClass:"invalid-feedback d-block mt-3 text-center"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Please accept the terms and conditions to register|Merci d'accepter les termes et conditions pour vous inscrire")])]),e.acceptSMS?e._e():t("div",{staticClass:"invalid-feedback d-block mt-3 text-center"},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("You have to agree to receive SMS to create your account|Vous devez accepter de recevoir des messages SMS pour créer votre compte")])]),t("b-modal",{attrs:{title:e._f("tr")("Terms and Conditions|Termes et conditions"),scrollable:"","body-class":"p-0 terms-and-conditions-modal"},model:{value:e.termsAndConditionsVisible,callback:function(t){e.termsAndConditionsVisible=t},expression:"termsAndConditionsVisible"}},[e.termsAndConditionsActive?t("e-terms-and-policies",{attrs:{source:"food-force"}}
1):e._e()],1),t("b-modal",{attrs:{title:e._f("tr")("Verify your phone number|Vérifier votre numéro de téléphone"),scrollable:"","no-close-on-backdrop":""},scopedSlots:e._u([{key:"modal-footer",fn:function(){return[t("b-btn",{attrs:{variant:"transparent"},on:{click:function(t){e.showPhoneModal=!1}}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Cancel|Annuler")])])]},proxy:!0}]),model:{value:e.showPhoneModal,callback:function(t){e.showPhoneModal=t},expression:"showPhoneModal"}},[t("div",{staticClass:"text-center d-block pb-2"},[t("b-img",{staticClass:"my-2",attrs:{src:n("da88")}}),t("div",[t("h5",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Enter Code|Entrez le code")]),t("b-input",{staticClass:"code-input mx-auto text-center py-4",attrs:{placeholder:"Code",size:"lg",autocomplete:"off",maxlength:6},model:{value:e.newUser.verification_code,callback:function(t){e.$set(e.newUser,"verification_code",t)},expression:"newUser.verification_code"}}),t("div",{staticClass:"f-500 mt-4"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("We have sent a code to|Nous avons envoyé un code au")]),t("div",{staticClass:"text-primary"},[e._v(e._s(e.newUser.phone_number))])]),t("e-button-async",{staticClass:"mt-3",attrs:{disabled:!e.newUser.verification_code||e.newUser.verification_code.length<6,variant:"primary",size:"xl"},on:{"async-click":e.verifyPhoneNumber}},[t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Verify Phone|Vérifier le téléphone")])]),e.retrySMSVisible?[t("hr"),t("b-btn",{on:{click:e.sendCode}},[t("i",{staticClass:"fas fa-sync mr-1"}),t("span",{directives:[{name:"tr",rawName:"v-tr"}]},[e._v("Send another SMS Code|Envoyer un autre code")])])]:e._e()],2)],1)])],2)},a=[],r=n("c7eb"),s=n("1da1"),o=(n("14d9"),n("d3b7"),n("ac1f"),n("00b4"),n("a2b6")),c=n("bc3a"),u=n.n(c),l=n("734f"),d=n("3280"),m=n("a502"),f=n("edc8"),p={name:"register-form",components:{ETermsAndPolicies:m["a"],ETelInput:d["a"]},props:{value:{},showPhone:{type:Boolean}},data:function(){return{newUser:{first_name:"",last_name:"",phone_number:"",email:"",verification_code:null},codeSent:!1,phoneValidated:!1,showPhoneModal:!1,acceptTerms:!1,acceptSMS:!0,emailAvailable:!0,retrySMSVisible:!1,termsAndConditionsVisible:!1,termsAndConditionsActive:!1,confirm:"",error_msg:"",country:null,stateName:null}},computed:{isInvited:function(){return Boolean(this.$route.params.invitation_id)},emailValid:function(){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/.test(this.newUser.email)},passwordValid:function(){return/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,32}$/.test(this.newUser.password)},phoneValid:function(){return/^\+\d{11}$/.test(this.newUser.phone_number)},passwordConfirmValid:function(){return this.passwordValid&&this.newUser.password===this.confirm},firstNameValid:function(){return/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,}$/i.test(this.newUser.first_name)&&this.newUser.first_name.length<50},lastNameValid:function(){return/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,}$/i.test(this.newUser.last_name)&&this.newUser.last_name.length<50},postalCodeValid:function(){return Object(o["a"])(this.newUser.postal_code)},formValid:function(){return this.acceptTerms&&this.acceptSMS&&this.emailValid&&this.emailAvailable&&this.passwordValid&&this.passwordConfirmValid&&this.firstNameValid&&this.lastNameValid&&(!this.showPhone||this.phoneValid)}},created:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var n,i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isInvited&&e.loadEmailFromInvitation(e.$route.params.invitation_id),t.prev=1,t.next=2,u.a.get("https://geolocation-db.com/json/");case 2:n=t.sent,e.country=n.data.country_code,e.stateName=n.data.state,t.next=4;break;case 3:t.prev=3,i=t["catch"](1),console.error(i);case 4:case"end":return t.stop()}}),t,null,[[1,3]])})))()},methods:{testEmailAvailability:function(){var e=this;this.newUser.email&&""!==this.newUser.email&&f["a"].get("/client/accounts/email-available/".concat(this.newUser.email)).then((function(t){e.emailAvailable=t.data}))},validateForm:function(){return this.isInvited||!this.$refs.email||this.$refs.email.state?this.$refs.password.state?this.$refs.confirm.state?this.$refs.firstname.state?!!this.$refs.lastname.state||(this.error_msg=this.tr(["Last name invalid","Nom invalide"]),!1):(this.error_msg=this.tr(["First name invalid","Prénom invalide"]),!1):(this.error_msg=this.tr(["Oops, passwords don't match","Oops, les mots de passe sont différents"]),!1):(this.error_msg=this.tr(["Password invali
1d, need at least 5 characters","Mot de passe invalide. Le mot de passe doit contenir au moins 5 caractères"]),!1):(this.error_msg=this.tr(["Email invalid or already used","Email invalide ou déjà utilisée"]),!1)},createAccount:function(){var e=this;if(this.validateForm()){if(!this.phoneValidated)return this.showPhoneModal=!0,this.codeSent?void 0:this.sendCode();this.showLoading("Creating account|Création du compte"),this.newUser.language=Object(l["a"])(),this.$emit("creating"),this.$route.params.invitation_id&&(this.newUser.invitation_id=this.$route.params.invitation_id),this.$route.query.mac_address&&(this.newUser.mac_address=this.$route.query.mac_address),f["a"].post("/client/account/create",this.newUser).then((function(){e.$emit("created",e.newUser),e.hideLoading()})).catch((function(t){e.$emit("failed"),e.hideLoading(),"error_already_exists"===t.data?e.$swal({icon:"error",title:e.tr(["Error","Erreur"]),text:e.tr(["This email is already used","Cet email est déjà utilisée"])}):e.$swal({icon:"error",title:e.tr(["Error","Erreur"]),text:e.tr(["Account creation failure","Erreur lors de la création du compte"])})}))}else this.$swal({icon:"info",text:this.error_msg})},loadEmailFromInvitation:function(e){var t=this;f["a"].get("/client/accounts/invitations/get-guest-email/".concat(e)).then((function(e){t.newUser.email=e.data,t.testEmailAvailability(),t.$forceUpdate()})).catch((function(e){t.$swal({icon:"error",title:t.tr(["Error","Erreur"]),text:t.tr(["This invitation is not valid","Cette invitation n'est plus valide"])}).then((function(){t.$router.push("/trends")}))}))},sendCode:function(){var e=this;return this.showLoading("Sending Code|Envoie du code","We are sending a validation code to your phone number|Nous envoyons un code de vérification sur votre téléphone"),f["a"].post("/client/account/send-sms-code",{phone_number:this.newUser.phone_number,language:this.getLanguage()}).then((function(){e.codeSent=!0,e.retrySMSVisible=!1,setTimeout((function(){e.retrySMSVisible=!0}),3e4)})).catch((function(t){e.handleCodeError(t)})).finally((function(){return e.hideLoading()}))},verifyPhoneNumber:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};return f["a"].post("/client/account/check-sms-code",{phone_number:this.newUser.phone_number,verification_code:this.newUser.verification_code}).then((function(){e.phoneValidated=!0,e.showPhoneModal=!1,e.createAccount()})).catch((function(t){return e.handleCodeError(t)})).finally((function(){t()}))},handleCodeError:function(e){var t=e.response.data;return console.error(t),"missing_phone_number"===t?this.$swal({icon:"info",title:this.tr("Missing phone number|Numéro de téléphone manquant"),text:this.tr("No phone number linked to your account|Aucun numéro n'est associé à votre compte")}):"too_many_sms_sent"===t||"many_sms_sent_please_wait"===t?this.$swal({icon:"info",title:this.tr("Too many SMS Sent|Trop de SMS envoyés"),text:this.tr("Too many SMS Sent, please wait a bit a try again|Trop de SMS ont déjà été envoyés, merci d'attendre et de réessayer plus tard")}):"phone_verification_code_expired"===t?this.$swal({icon:"info",title:this.tr("Code Expired|Code expiré"),text:this.tr("Sorry this code has expired, please request a new one.|Désolé, ce code a expiré, merci d'en demander un nouveau.")}):"phone_already_verified"===t?this.$swal({icon:"info",title:this.tr("Phone number already verified|Numéro de téléphone déjà vérifié"),text:this.tr("Your phone number has already been verified|Votre numéro de téléphone a déjà été vérifié")}):this.$swal({icon:"info",title:this.tr("Wrong code|Code invalide"),text:this.tr("This code is incorrect|Le code que vous avez saisi est incorrect")})}}},h=p,g=(n("f9df"),n("2877")),b=Object(g["a"])(h,i,a,!1,null,"9b9e8e62",null);t["a"]=b.exports},dc13:function(e,t,n){},dc1c:function(e,t,n){e.exports=n.p+"img/grocery-bag-25.f8719dce.png"},dc61:function(e,t,n){e.exports=n.p+"img/sushi.75d2102c.png"},dc92:function(e,t,n){e.exports=n.p+"img/gluten.f2715001.png"},dd1f:function(e,t,n){"use strict";n("a522")},dd56:function(e,t,n){e.exports=n.p+"img/vegetables.fb492f79.png"},de22:function(e,t,n){e.exports=n.p+"img/kosher.51ac53c1.png"},de45:function(e,t,n){e.exports=n.p+"img/beer.eabfcf64.png"},df55:function(e,t,n){e.exports=n.p+"img/peanut-free.2c214c94.png"},df68:function(e,t,n){e.exports=n.p+"img/gray-man-face.dc7c4674.png"},df96:function(e,t,n){e.exports=n.p+"img/balloons.d151a114.png"},e008:function(e,t,n){e.exports=n.p+"img/sandwich.c7ef259d.png"},e04c:function(e,t,n){e.exports=n.p+"img/classic.ce5205bf.png"},e08e:function(e,t,n){e.exports=n.p+"img/not-spicy.16815aad.png"},e168:function(e,t,n){e.exports=n.p+"img/explore-en.7657b03b.webp"},e1a6:function(e,t,n){"use strict";n("0d2e")},e26a:function(e,t,n){e.exports=n.p+"img/food-banner-5.8a231500.jpg"},e28b:function(e,t,n){e.exports=n.p+"img/wine-25.23d6da15.png"},e401:function(e,t,n){"use strict";n("ebc5")}
1,e468:function(e,t,n){e.exports=n.p+"img/diamond.e4186005.png"},e4a6:function(e,t,n){e.exports=n.p+"img/spoon.aaf9eb89.png"},e4ac:function(e,t,n){e.exports=n.p+"img/carrot.a61b73a5.png"},e50e:function(e,t,n){e.exports=n.p+"img/donut-25.150dbdf9.png"},e529:function(e,t,n){e.exports=n.p+"img/wine.d2fbc3a6.png"},e54d:function(e,t,n){e.exports=n.p+"img/take-out.e9f445fe.png"},e6cc:function(e,t,n){"use strict";n("85d6")},e71b:function(e,t,n){e.exports=n.p+"img/pickup.8b0e98e7.png"},e771:function(e,t,n){e.exports=n.p+"img/recommandations.6f1f9c7f.jpg"},e855:function(e,t,n){e.exports=n.p+"img/beer-25.e6c7d5dc.png"},e916:function(e,t,n){e.exports=n.p+"img/halal.f9438c5d.png"},e9e1:function(e,t,n){e.exports=n.p+"img/new-drive-through.1b359ef6.png"},eafa:function(e,t,n){"use strict";var i=n("c7eb"),a=n("1da1"),r=(n("a4d3"),n("e01a"),n("99af"),n("14d9"),n("b0c0"),n("d3b7"),n("ac9e")),s=n("1547"),o=Object(s["f"])("SharePlugin"),c=o,u=n("edc8");t["a"]={methods:{generateShareLink:function(e,t){var n=this;return new Promise((function(i,a){u["a"].post("/client/share-link/create".concat(n.user?"/me":""),{type:t,item_id:e.id}).then((function(e){e.data.id&&(e.data.url="".concat(window.env.VUE_APP_URLS__FOOD_FORCE_SHARE,"/share/").concat(e.data.id)),i(e.data)})).catch((function(e){return a(e)}))}))},shareLink:function(e,t){var n=this;return Object(a["a"])(Object(i["a"])().mark((function a(){var s;return Object(i["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=1,n.generateShareLink(e,t);case 1:return s=i.sent,i.abrupt("return",r["a"].share({title:"",text:"",url:"".concat(window.env.VUE_APP_URLS__FOOD_FORCE_SHARE,"/share/").concat(s.id)}).catch((function(e){n.$swal({icon:"info",text:e})})));case 2:case"end":return i.stop()}}),a)})))()},shareSimpleLink:function(e){var t=this;return r["a"].share({title:"",text:"",url:e}).catch((function(e){t.$swal({icon:"info",text:e})}))},shareOptions:function(e,t){var n=this,i=[{title:this.tr("Share link|Partager le lien"),icon:"fal fa-link",handler:function(){return n.shareLink(e,t)}}];return this.isNative?i.push({title:this.tr("Share on social|Partager sur les réseaux"),icon:"fal fa-circle-ellipsis",handler:function(){var t=n.showLoader(n.tr("Preparing media to be shared|Préparation du partage")),i="".concat(window.env.VUE_APP_URL,"/profile/").concat(e.account_guid,"?recommendation_id=").concat(e.id);return c.share({url:e.image_url,text:"".concat(n.tr(e.name)," \n").concat(n.tr(e.description)," \n\n").concat(i)}).catch((function(){return n.alert({header:n.tr("Unable to share|Échec du partage"),message:n.tr("Unable to share this post for the moment.|Impossible de partager ce post pour le moment."),buttons:["OK"]})})).finally((function(){return n.hideLoader(t)}))}}):(i.push({title:this.tr("Share on Twitter|Partager sur Twitter"),icon:"fab fa-twitter",handler:function(){n.publishOnSocialMedia("twitter",e,t)}}),i.push({title:this.tr("Share on Pinterest|Partager sur Pinterest"),icon:"fab fa-pinterest",handler:function(){n.publishOnSocialMedia("pinterest",e,t)}})),i},publishOnSocialMedia:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"twitter",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=this.showLoader(this.tr("Preparing media to be shared|Préparation du partage"));this.generateShareLink(n,i).then((function(i){var r=e.tr(n.name);switch(r+=" - "+e.tr(n.description),t){case"twitter":e.openTwitterComposer(r,i.url,"thefoodforce,foodie,foodiscovery");break;case"pinterest":e.openPinterestComposer(r,i.url,n.image_url);break}e.hideLoader(a)}))},openPinterestComposer:function(e,t,n){var i="https://www.pinterest.ca/pin-builder/?media=".concat(encodeURIComponent(n),"&description=").concat(encodeURIComponent(e),"&url=").concat(encodeURIComponent(t)),a=800,r=600;window.open(i,"Create new Pin | Pinterest","width=".concat(a,",height=").concat(r,",left=").concat(screen.width/2-a,",top=").concat(screen.height/2-r))},openTwitterComposer:function(e,t,n,i){var a="https://twitter.com/intent/tweet?text=".concat(encodeURIComponent(e),"&url=").concat(encodeURIComponent(t));n&&(a+="&hashtags=".concat(n)),i&&(a+="&via=".concat(i));var r=600,s=400;window.open(a,"Compose new Tweet | Twitter","width=".concat(r,",height=").concat(s,",left=").concat(screen.width/2-r,",top=").concat(screen.height/2-s))}}}},ebaa:function(e,t,n){e.exports=n.p+"img/social-trends-fr.d829bb29.webp"},ebc5:function(e,t,n){},ebfb:function(e,t,n){e.exports=n.p+"img/default-bg-trends.1598d04e.webp"},ed56:function(e,t,n){e.exports=n.p+"img/lactose-free.5044e382.png"},ed97:function(e,t,n){var i={"./ion-action-sheet-controller_8.entry.js":["0d7e","chunk-0e072455"],"./ion-action-sheet-ios.entry.js":["6039","chunk-4f3678b7"],"./ion-action-sheet-md.entry.js":["2a5b","chunk-dffd094a"],"./ion-alert-ios.entry.js":["86e0","chunk-41729f35"],"./ion-alert-md.entry.js":["aab5","chunk-45df0daa"],"./ion-app_8-ios.entry.js":["daa4","chunk-58018476"],"./ion-app_8-md.entry.js":["d81a","chunk-dae3f45e"],"./ion-avatar_3-ios.entry.js":["7636","chunk-4da36b
115"],"./ion-avatar_3-md.entry.js":["9ace","chunk-245db3ed"],"./ion-back-button-ios.entry.js":["76f7","chunk-4d93dcb2"],"./ion-back-button-md.entry.js":["bf96","chunk-268044d4"],"./ion-backdrop-ios.entry.js":["9bb0","chunk-2d0f060d"],"./ion-backdrop-md.entry.js":["3394","chunk-2d0b9671"],"./ion-button_2-ios.entry.js":["60a1","chunk-7a234d26"],"./ion-button_2-md.entry.js":["062c","chunk-57a83ac0"],"./ion-card_5-ios.entry.js":["df70","chunk-bd819d48"],"./ion-card_5-md.entry.js":["41e5","chunk-469a106c"],"./ion-checkbox-ios.entry.js":["aada","chunk-7d21e4da"],"./ion-checkbox-md.entry.js":["2f4c","chunk-6435f914"],"./ion-chip-ios.entry.js":["7fbb","chunk-6d941db0"],"./ion-chip-md.entry.js":["af74","chunk-29757256"],"./ion-col_3.entry.js":["7c04","chunk-2d0e1b06"],"./ion-datetime_3-ios.entry.js":["eed0","chunk-de1eb938"],"./ion-datetime_3-md.entry.js":["cabb","chunk-972e2b1c"],"./ion-fab_3-ios.entry.js":["4e51","chunk-0471966a"],"./ion-fab_3-md.entry.js":["38d3","chunk-3172533a"],"./ion-img.entry.js":["acf3","chunk-2d213925"],"./ion-infinite-scroll_2-ios.entry.js":["2803","chunk-a9591d90"],"./ion-infinite-scroll_2-md.entry.js":["b7c2","chunk-a92d751a"],"./ion-input-ios.entry.js":["5096","chunk-198e3942"],"./ion-input-md.entry.js":["2d16","chunk-ae124cc0"],"./ion-item-option_3-ios.entry.js":["c563","chunk-09cd0b70"],"./ion-item-option_3-md.entry.js":["3286","chunk-658c23da"],"./ion-item_8-ios.entry.js":["1af7","chunk-5b23fdd4"],"./ion-item_8-md.entry.js":["7c02","chunk-2a9b8bee"],"./ion-loading-ios.entry.js":["4d5d","chunk-0867d75f"],"./ion-loading-md.entry.js":["b6df","chunk-882768b0"],"./ion-menu_4-ios.entry.js":["9936","chunk-28a9e288"],"./ion-menu_4-md.entry.js":["9d0e","chunk-0ffeab9f"],"./ion-modal-ios.entry.js":["9cc9","chunk-57598eed"],"./ion-modal-md.entry.js":["c8bc","chunk-4a868a77"],"./ion-nav_5.entry.js":["f487","chunk-3ee4eca5"],"./ion-popover-ios.entry.js":["f31f","chunk-3609acea"],"./ion-popover-md.entry.js":["3c61","chunk-f8c074fc"],"./ion-progress-bar-ios.entry.js":["53d4","chunk-0a1eaca9"],"./ion-progress-bar-md.entry.js":["77f1","chunk-36da2acc"],"./ion-radio_2-ios.entry.js":["5547","chunk-6a5dbffb"],"./ion-radio_2-md.entry.js":["dc25","chunk-f71781cc"],"./ion-range-ios.entry.js":["353f","chunk-32cdbffc"],"./ion-range-md.entry.js":["3323","chunk-ea2d3954"],"./ion-refresher_2-ios.entry.js":["dedf","chunk-a92a499c"],"./ion-refresher_2-md.entry.js":["6b32","chunk-a9543e8c"],"./ion-reorder_2-ios.entry.js":["677e","chunk-6da41528"],"./ion-reorder_2-md.entry.js":["6733","chunk-6da41684"],"./ion-ripple-effect.entry.js":["9d3f","chunk-2d0f0814"],"./ion-route_4.entry.js":["7c90","chunk-793ec3d8"],"./ion-searchbar-ios.entry.js":["9083","chunk-1f16206c"],"./ion-searchbar-md.entry.js":["5716","chunk-37ff8997"],"./ion-segment_2-ios.entry.js":["747c","chunk-c377db64"],"./ion-segment_2-md.entry.js":["8628","chunk-9f295fda"],"./ion-select_3-ios.entry.js":["045e","chunk-4960e528"],"./ion-select_3-md.entry.js":["4a00","chunk-55fd9bc5"],"./ion-slide_2-ios.entry.js":["2edb","chunk-2d0be327"],"./ion-slide_2-md.entry.js":["b4c5","chunk-2d20fcba"],"./ion-spinner.entry.js":["cdda","chunk-45636d0e"],"./ion-split-pane-ios.entry.js":["103b2","chunk-74499ace"],"./ion-split-pane-md.entry.js":["41d4","chunk-2d0c0883"],"./ion-tab-bar_2-ios.entry.js":["db46","chunk-6d44dfd7"],"./ion-tab-bar_2-md.entry.js":["dd4b","chunk-efc7162e"],"./ion-tab_2.entry.js":["e0cb","chunk-dada39de"],"./ion-text.entry.js":["084e","chunk-d6be8784"],"./ion-textarea-ios.entry.js":["5d19","chunk-6ae2b080"],"./ion-textarea-md.entry.js":["e136","chunk-2aed0630"],"./ion-toast-ios.entry.js":["f878","chunk-41c90a6b"],"./ion-toast-md.entry.js":["d670","chunk-3bd70db3"],"./ion-toggle-ios.entry.js":["ecc3","chunk-dd32cf7c"],"./ion-toggle-md.entry.js":["072f","chunk-3b7db6f5"],"./ion-virtual-scroll.entry.js":["ec57","chunk-2d2304b6"]};function a(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return n.e(t[1]).then((function(){return n(a)}))}a.keys=function(){return Object.keys(i)},a.id="ed97",e.exports=a},edc8:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("53ca"),a=n("c7eb"),r=n("1da1"),s=n("d4ec"),o=n("bee2"),c=(n("d9e2"),n("99af"),n("e9c4"),n("d3b7"),n("ac1f"),n("3ca3"),n("5319"),n("841c"),n("ddb0"),n("2b3d"),n("bf19"),n("9861"),n("88a7"),n("271a"),n("5494"),n("bc3a")),u=n.n(c),l=n("b8
16e"),d=function(){function e(){Object(s["a"])(this,e)}return Object(o["a"])(e,null,[{key:"set",value:function(e,t){return new Promise((function(n){if("undefined"!==("undefined"===typeof chrome?"undefined":Object(i["a"])(chrome))&&chrome.storage){var a={};a[e]=t,chrome.storage.sync.set(a,n)}else localStorage.setItem(e,t),n()}))}},{key:"get",value:function(e){return new Promise((function(t,n){if("undefined"!==("undefined"===typeof chrome?"undefined":Object(i["a"])(chrome))&&chrome.storage)chrome.storage.sync.get(e,(function(i){if(i){var a=i[e];if(!a)return void n('Storage key "'+e+'" does not exist');t(a)}}));else{var a=localStorage.getItem(e);if(!a)return void n('Storage key "'+e+'" does not exist');t(a)}}))}},{key:"remove",value:function(e){return new Promise((function(t){if("undefined"!==("undefined"===typeof chrome?"undefined":Object(i["a"])(chrome))&&chrome.storage){var n={};n[e]=null,chrome.storage.sync.set(n,t)}else localStorage.removeItem(e),t()}))}},{key:"clearAll",value:function(){return new Promise((function(e){"undefined"!==("undefined"===typeof chrome?"undefined":Object(i["a"])(chrome))&&chrome.storage?chrome.storage.sync.clear():localStorage.clear(),e()}))}}])}(),m=n("1940"),f=n.n(m),p=n("c0d6"),h=function(){function e(){Object(s["a"])(this,e)}return Object(o["a"])(e,null,[{key:"init",value:function(){var e=this;u.a.defaults.withCredentials=!0,u.a.interceptors.response.use((function(t){return t.headers.hasOwnProperty("x-renew-token")&&e.setToken(t.headers["x-renew-token"]),t}),(function(t){return e.handleError(t.response),Promise.reject(t)}));var t="https:"===window.location.protocol?"wss":"ws";if(window.env.VUE_APP_API_URL)if(window.location.hostname.indexOf("192.168.")>=0||window.location.hostname.indexOf("10.0.")>=0){var n=/:(\d{2,4})/g.exec(window.env.VUE_APP_API_URL)[1];this.baseUrl="".concat(window.location.protocol,"//").concat(window.location.hostname,":").concat(n),this.websocketBaseUrl="".concat(t,"://").concat(window.location.hostname,":").concat(n)}else this.baseUrl=window.env.VUE_APP_API_URL,this.websocketBaseUrl=window.env.VUE_APP_API_URL.replace("https",t);else this.baseUrl="",this.websocketBaseUrl="".concat(t,"://").concat(window.location.host)}},{key:"setToken",value:function(){var e=Object(r["a"])(Object(a["a"])().mark((function e(t){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return u.a.defaults.headers.common.Authorization="Bearer "+t,e.next=1,d.set("token",t);case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getToken",value:function(){var e=Object(r["a"])(Object(a["a"])().mark((function e(){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",d.get("token"));case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"removeToken",value:function(){var e=Object(r["a"])(Object(a["a"])().mark((function e(){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return delete u.a.defaults.headers.common.Authorization,e.next=1,d.remove("token");case 1:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"get",value:function(e,t,n){return this.request(e,"GET",t,n)}},{key:"post",value:function(e,t,n){return this.request(e,"POST",t,n)}},{key:"put",value:function(e,t,n){return this.request(e,"PUT",t,n)}},{key:"patch",value:function(e,t,n){return this.request(e,"PATCH",t,n)}},{key:"delete",value:function(e,t,n){return this.request(e,"DELETE",t,n)}},{key:"websocketConnect",value:function(){var e=Object(r["a"])(Object(a["a"])().mark((function e(t){var n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=1,this.getToken();case 1:if(n=e.sent,!n){e.next=2;break}return e.abrupt("return",new WebSocket("".concat(this.websocketBaseUrl).concat(t,"?token=").concat(n)));case 2:return e.abrupt("return",new WebSocket("".concat(this.websocketBaseUrl).concat(t)));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_dispatchEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)}},{key:"request",value:function(t,n,a,r){var s=this;this.initialiazed||(e.init(),this.initialiazed=!0),r||(r={}),r.withCredentials=!0;var o=this.baseUrl;return r.external?o="":r.eye_intelligence_api?o=window.env.VUE_APP_URLS__EYEINTELLIGENCE_API:r.
1system_api?o=window.env.VUE_APP_URLS__SYSTEM_API:r.food_force_api?o=window.env.VUE_APP_URLS__FOOD_FORCE_API:r.licensing_api?o=window.env.VUE_APP_URLS__ACCOUNT:r.baseUrl&&(o=r.baseUrl),t=o+t,localStorage.hasOwnProperty("enable_debug")&&(-1===t.indexOf("?")?t+="?":t+="&",t+="enable_debug=".concat(localStorage.getItem("enable_debug"))),new Promise((function(e,c){a?a.progressCallback&&console.error("Error progressCallback is a Network option, not a Network param",t):a={};var l={url:t,method:n};if("GET"===n?l.params=a:l.data=a,l.onDownloadProgress=function(e){r.onDownloadProgress&&r.onDownloadProgress(e);var i={url:t,method:n,received:e.loaded,total:e.total,percent:Math.round(100*e.loaded/e.total),finished:!1};s._dispatchEvent("fetch-progress",i)},l.onUploadProgress=function(e){var i=e.lengthComputable?e.total:e.target.getResponseHeader("content-length")||e.target.getResponseHeader("x-decompressed-content-length");if(i){r.onUploadProgress&&r.onUploadProgress(Math.round(100*e.loaded/i),e);var a={url:t,method:n,received:e.loaded,total:i,percent:Math.round(100*e.loaded/i),finished:!1};s._dispatchEvent("fetch-progress",a)}},r){if(r.process_files){var d=new FormData;for(var m in a)null!==a[m]&&"object"===Object(i["a"])(a[m])&&a[m].constructor!==File?d.append(m,JSON.stringify(a[m])):d.append(m,a[m]);l.data=d,l.headers={"Content-Type":"multipart/form-data"}}r.responseType&&(l.responseType=r.responseType),r.responseEncoding&&(l.responseEncoding=r.responseEncoding)}var f=new URL(document.URL),p=new URLSearchParams(f.search);p.has("enable_debug")&&(l.params||(l.params={}),l.params.enable_debug=p.get("enable_debug"));var h=!1,g=null;r.disableTimeout||r.progressCallback||(g=setTimeout((function(){h||(h=!0,s.handleError({status:408}),c(new Error("Request timeout")))}),r.timeout||12e4)),s._dispatchEvent("fetch-start",{url:t,method:n}),u()(l).then((function(i){if(202===i.status&&i.data.id){var a=function(){u.a.get("".concat(o,"/progress/").concat(i.data.id)).then((function(i){i.data.finished?(h=!0,s._dispatchEvent("fetch-end",{url:t,method:n}),g&&clearTimeout(g),i.data.error?s.handleError(i.data.error):(i.data=i.data.data,e(i))):(r.progressCallback&&r.progressCallback(i.data.progress),h||setTimeout(a,r.progressRefreshInterval||2e3))})).catch(c)};a()}else s._dispatchEvent("fetch-end",{url:t,method:n}),h=!0,g&&clearTimeout(g),e(i)})).catch((function(e){g&&clearTimeout(g),c(e)}))}))}},{key:"handleError",value:function(e){if(e){var t;401===e.status&&e.config&&!e.config.__isRetryRequest&&p["a"].dispatch("logout"),e.headers&&e.headers.hasOwnProperty("x-renew-token")&&this.setToken(e.headers["x-renew-token"]),e.data&&e.data.stack&&("string"===Object(i["a"])(e.data)?t=e.data:e.data.stack&&(t=e.data.stack)),e.stack&&(t=e.stack),console.error(t||e);var n="localhost:"===window.location.host.substr(0,10)||"192.168."===window.location.host.substr(0,8)||"10.0."===window.location.host.substr(0,5),a="dev."===window.location.host.substr(0,4);switch(e.status){case 500:f()({title:Object(l["g"])("Network error|Erreur réseau"),text:n||a?t:Object(l["g"])("Something wrong happened|Une erreur s'est produite"),icon:"error"});break;case 403:f()({title:Object(l["g"])("Access denied|Accès refusé"),text:Object(l["g"])("You don't have the permission to access this resource|Vous n'avez pas la permission d'accéder à cette ressource"),icon:"error"});break;case 408:f()({title:Object(l["g"])("Request timeout|Délai dépassé"),text:Object(l["g"])("The server took too long to answer|Le serveur a pris trop de temps à répondre"),icon:"error"});break}return e}}}])}()},edf5:function(e,t,n){"use strict";n("2a85")},ee47:function(e,t,n){e.exports=n.p+"img/croissant.28365083.png"},ee4d:function(e,t,n){e.exports=n.p+"img/cart.de9f5f40.png"},ef52:function(e,t,n){"use strict";n("4845")},efab:function(e,t,n){e.exports=n.p+"img/new-delivery.7db77d22.png"},f036:function(e,t,n){e.exports=n.p+"img/vegetarian.fa41a77a.png"},f075:function(e,t,n){e.exports=n.p+"img/starbucks-menu.d4ff3c6a.png"},f13d:function(e,t,n){e.exports=n.p+"img/plate-egg.e141ca18.png"},f1a4:function(e,t,n){e.exports=n.p+"img/search.d6395ac0.png"},f1ab:function(e,t,n){e.exports=n.p+"img/teacup.6bba3d32.png"},f201:function(e,t,n){"use strict";n("64b1")},f213:function(e,t,n){e.exports=n.p+"img/cocktail.43f797b3.png"},f2bd:function(e,t,n){var i={"./ion-icon.entry.js":["88f6","chunk-2d0df486"]};function a(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return n.e(t[1]).then((function(){return n(a)}))}a.keys=function(){return Object.keys(i)},a.id="f2bd",e.exports=a},f365:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n("c7eb"),a=n("b85c"),r=n("1da1"),s=n("d4ec"),o=n("bee2"),c=(n("14d9"),n("e9c4"),n("1547")),u=n("6ac3"),l=n("edc8"),d=n("aefb"),m=n("41cb"),f=n("b86e"),p=function(){function e(){Object(s["a"])(this,e)}return Object(o["a"])(e,null,[{key:"init",value:function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(t){var n,r,s,o;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!c["a"].isNativePlatform()){e.next=10;break}if("android"!==c["a"].getPlatform()){e.next=9;break}n=Object(a["a"])(t),e.prev=1,n.s();case 2:if((r=n.n()).done){e.next=4;break}return s=r.value,e.next=3,u["a"].createChannel(s).then((function(){console.log("push channel created")})).catch((function(e){console.error("push channel error: ",e)}));case 3:e.next=2;break;case 4:e.next=6;break;case 5:e.prev=5,o=e["catch"](1),n.e(o);case 6:return e.prev=6,n.f(),e.finish(6);case 7:return e.next=8,u["a"].createChannel({id:"eyein",name:"Eyein",description:Object(f["g"])("Main notification channel|Canal principal de notifications"),importance:4,visibility:1,vibration:!0}).then((function(){console.log("main channel created")})).catch((function(e){console.error("main channel error: ",e)}));case 8:return e.next=9,u["a"].createChannel({id:"silent",name:"Silent",description:Object(f["g"])("Silent notifications|Notifications silencieuses"),importance:2,visibility:1,vibration:!1}).then((function(){console.log("silent channel created")})).catch((function(e){console.error("silent channel error: ",e)}));case 9:return e.next=10,u["a"].addListener("pushNotificationActionPerformed",(function(e){var t=e.notification.data.redirect;if(t)return m["a"].push(t)}));case 10:case"end":return e.stop()}}),e,null,[[1,5,6,7]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"registerPushNotificationToken",value:function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!c["a"].isNativePlatform()){e.next=4;break}return e.next=1,d["a"].getId();case 1:return t=e.sent.uuid,e.next=2,u["a"].addListener("registration",(function(e){return console.log("TOKEN",e.value),l["a"].post("/client/account/register-device-token",{token:e.value,device_id:t}).catch((function(e){return console.error(e.response.data)}))}));case 2:return e.next=3,u["a"].addListener("registrationError",(function(e){console.error(JSON.stringify(e))}));case 3:return e.next=4,u["a"].requestPermissions().then((function(e){if("granted"===e.receive)return u["a"].register()})).catch((function(e){return console.error(e)}));case 4:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()}])}()},f37d:function(e,t,n){"use strict";n("64aa")},f3b5:function(e,t,n){e.exports=n.p+"img/shrimp.c150309d.png"},f3fc:function(e,t,n){e.exports=n.p+"img/new-takeout.2662ab87.webp"},f4c5:function(e,t,n){},f60d:function(e,t,n){e.exports=n.p+"img/sushi-25.2196383a.png"},f654:function(e,t,n){e.exports=n.p+"img/profile.76b45b02.png"},f68b:function(e,t,n){e.exports=n.p+"img/new-curbside-pickup.1a7d5523.webp"},f73d:function(e,t,n){e.exports=n.p+"img/donut.309691b0.png"},f7b0:function(e,t,n){},f92b:function(e,t,n){"use strict";n("caad"),n("b0c0"),n("2532"),n("498a");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"restaurant-item",class:[e.size],on:{click:e.showRestaurantCard}},[e.noLocation?e._e():t("div",{staticClass:"place text-ellipsis"},[t("span",[e._v(e._s(e.value.city))])]),t("div",{staticClass:"image-container"},[t("e-img",{staticClass:"image",attrs:{src:e.image,"use-thumbnail":e.thumbnail}}),e.showLogo?t("e-img",{staticClass:"logo",class:{"with-overlay":e.showLogoOverlay},attrs:{"portrait-mode":"",src:e.logo,"use-thumbnail":e.thumbnail}}
1):e._e(),!e.noLike&&e.user&&e.user.favorite_restaurants.includes(e.value.id)?t("div",{staticClass:"likes"},[t("i",{staticClass:"fas fa-heart fa-fw mr-1 text-pink"})]):e._e()],1),t("div",{staticClass:"content"},[e.noContent?e._e():t("div",{staticClass:"d-flex align-items-baseline justify-content-between"},[t("div",{directives:[{name:"tr",rawName:"v-tr"}],staticClass:"name"},[e._v(e._s(e.value.name))])]),e.noDescription?e._e():t("div",{staticClass:"short-description text-ellipsis"},[e._v(e._s((e.tr(e.value.menu_description)||"").trim()))])]),e.restaurantCardEnabled?t("restaurant-card",{attrs:{"restaurant-id":e.value.id},model:{value:e.restaurantCardVisible,callback:function(t){e.restaurantCardVisible=t},expression:"restaurantCardVisible"}}):e._e()],1)},a=[],r=n("a73e"),s={name:"restaurant-list-item",components:{RestaurantCard:r["a"]},props:{value:{type:Object},thumbnail:{type:Boolean},size:{type:String,default:"md"},noRestaurantType:{type:Boolean},showLogoOverlay:{type:Boolean},showLogo:{type:Boolean},noContent:{type:Boolean},noLike:{type:Boolean},noLocation:{type:Boolean},noDescription:{type:Boolean}},data:function(){return{restaurantCardVisible:!1,restaurantCardEnabled:!1}},computed:{image:function(){return this.value.cover_image_path||this.value.logo_image_path||"img/icons/restaurant-placeholder.png"},logo:function(){return this.value.logo_image_path||null}},methods:{showRestaurantCard:function(){this.restaurantCardVisible=!0,this.restaurantCardEnabled=!0}}},o=s,c=(n("bd6b"),n("2877")),u=Object(c["a"])(o,i,a,!1,null,null,null);t["a"]=u.exports},f948:function(e,t,n){e.exports=n.p+"img/food-banner.0faf1df9.jpg"},f951:function(e,t,n){e.exports=n.p+"img/egg-free.51cdb299.png"},f9df:function(e,t,n){"use strict";n("88f5")},faf5:function(e,t,n){e.exports=n.p+"img/burrito.e6d6544c.png"},fc13:function(e,t,n){e.exports=n.p+"img/logo-welcome-en.42cec935.png"},fc18:function(e,t,n){"use strict";n("8855")},fc42:function(e,t,n){e.exports=n.p+"img/guide.cf98e366.png"},fcc3:function(e,t,n){"use strict";n("d16c")}});

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.