1import{a as Se}from"./chunk-6WRRS23R.js";import{a as ge}from"./chunk-HZSYZ7UK.js";import{b as Ce,c as xe,m as ie}from"./chunk-QKV3JSRF.js";import{a as ee,b as te,c as ke}from"./chunk-FDZOEZLV.js";import{c as _e,d as C,e as we,f as J}from"./chunk-NAUQ2YLB.js";import{b as ye}from"./chunk-DLCLPIE2.js";import{N as A}from"./chunk-OF4PHCNS.js";import{a as ve}from"./chunk-APSS2ABN.js";import{I as fe,R as he,S as q,U as G,Y as T,h as pe,i as ue}from"./chunk-2DHHXBOR.js";import{Aa as b,Gb as u,Hb as ce,Ib as z,M as ae,Nb as r,Ob as a,Pb as _,Qb as B,Rb as F,Tb as P,Ub as p,Vb as f,Wb as N,Xb as V,Yb as Z,Zb as j,ab as h,ba as se,bd as $,ca as k,cb as s,dc as c,ec as me,fc as U,fd as de,ga as X,ha as S,jb as d,pb as y,pd as L,qa as le,qb as I,ra as g,sa as v,u as Q,ub as E,uc as D,vc as R}from"./chunk-RPEPMGJ4.js";import{a as H,b as K,k as w}from"./chunk-LXPS6FQF.js";var W=(()=>{let i=class i{constructor(e,t,n,l){this.customer=e,this.userAddresses=t,this.geolocationService=n,this.analytics=l,this.showTitlesAndPills=!1,this.whiteText=!1,this.citiesChoices=[],this.selectedCity=null,this.selectCity=new b,this.selectLocation=new b,this.openPositionModal=new b,this.forceShowAddressInput=!1,this.fetchingGeolocation=!1}ngOnInit(){}dispatchLocationSelected(e){this.forceShowAddressInput=!1,this.selectLocation.emit(e)}clickOnCity(e){this.selectCity.emit(e.key),this.analytics.logAnalyticsEvent("city_select",{city:e.key,from:"suggestions"})}clickOnMyPosition(){this.getGeolocation(),this.analytics.logAnalyticsEvent("geolocation_click",{source:"button"})}clickOnSavedAddress(e,t){this.selectLocation.emit(e),this.analytics.logAnalyticsEvent("filter_with_saved_address",{position:t})}getGeolocation(){return w(this,null,function*(){this.fetchingGeolocation=!0;try{let e=yield this.geolocationService.getUserGeolocation();if(e?.length||(e=yield this.geolocationService.getUserGeolocation({large:!0})),!e?.length)throw window.alert("Aucune adresse n'a pu \xEAtre d\xE9termin\xE9e avec votre position, vous pouvez entrer manuellement votre emplacement."),new Error("Aucune adresse correpsondante \xE0 votre localisation n'a \xE9t\xE9 trouv\xE9e");this.dispatchLocationSelected(e[0])}catch(e){console.error(e)}this.fetchingGeolocation=!1})}ngOnChanges(e){return w(this,null,function*(){if(!e.selectedLocation)return;let t=e.selectedLocation.previousValue,n=e.selectedLocation.currentValue;if(n&&n.formatted_address){this.forceShowAddressInput=!1;return}if(!n||!n.latitude)return;let l=!0;if(t){if(n?.latitude===t?.latitude&&n?.longitude===t?.longitude&&t.formatted_address){this.selectedLocation=K(H({},this.selectedLocation),{formatted_address:t.formatted_address});return}l=!n.formatted_address}let M=(yield this.geolocationService.reverseGeocode({latitude:n.latitude,longitude:n.longitude}))[0].formatted_address;this.selectedLocation=K(H({},this.selectedLocation),{formatted_address:M})})}};i.\u0275fac=function(t){return new(t||i)(d(xe),d(J),d(we),d(C))},i.\u0275cmp=y({type:i,selectors:[["unor-where-are-you-section"]],inputs:{showTitlesAndPills:"showTitlesAndPills",whiteText:"whiteText",citiesChoices:"citiesChoices",selectedCity:"selectedCity",selectedLocation:"selectedLocation"},outputs:{selectCity:"selectCity",selectLocation:"selectLocation",openPositionModal:"openPositionModal"},features:[le],decls:6,vars:7,consts:[[1,"container","py-2","px-3"],[1,"btn","rounded-pill","px-3","py-2",3,"click"],[1,"d-flex","align-items-center","position-relative"],["name","location-outline",1,"font-size-xl","me-1","ms--1"],[1,"font-size-md","fw-semi-bold","text-truncate",2,"max-width","13rem"]],template:function(t,n){t&1&&(r(0,"div",0)(1,"button",1),p("click",function(){return n.openPositionModal.emit()}),r(2,"div",2),_(3,"ion-icon",3),r(4,"div",4),c(5),a()()()()),t&2&&(s(),z("text-primary",!!n.selectedLocation)("bg-white",!!n.selectedLocation)("btn-primary",!n.selectedLocation),s(4),U(" ",(n.selectedLocation==null?null:n.selectedLocation.formatted_address)||"S\xE9lectionner une adresse"," "))},dependencies:[T],styles:[".address-input-container[_ngcontent-%COMP%]{min-height:0}.full-page-address-input[_ngcontent-%COMP%]{min-height:calc(80vh - 50px)}.container[_ngcontent-%COMP%]{max-width:720px}"],data:{animation:[]}});let o=i;return o}
1)();var be=(()=>{let i=class i{constructor(e,t){this.analytics=e,this.device=t,this.platform=null,this.operatingSystem=null}ngOnInit(){return w(this,null,function*(){})}badgeClick(e){this.analytics.logAnalyticsEvent("native_app_banner_click_"+e)}};i.\u0275fac=function(t){return new(t||i)(d(C),d(ye))},i.\u0275cmp=y({type:i,selectors:[["app-native-app-banner"]],decls:28,vars:2,consts:[[3,"expand"],[1,"p-3","bg-white","border-bottom"],[1,"d-flex","align-items-center"],["src","/apple-touch-icon.png","alt","",1,"rounded-3","border","border-light",2,"height","3rem"],[1,"flex-fill","ps-3","text-truncate"],[1,"fw-semi-bold","font-size-md"],[1,"font-size-xs","text-muted","text-truncate"],[1,"me--"],["href","https://apps.apple.com/us/app/borneo/id1572306318","target","_blank",3,"click"],[1,"btn","text-info","font-size-md","rounded-pill","bg-light","fw-semi-bold","px-3"],["src","/apple-touch-icon.png","alt","",1,"rounded-circle","border","border-light",2,"height","3rem"],[1,"me--2"],["href","https://play.google.com/store/apps/details?id=com.borneoapp","target","_blank",3,"click"],[1,"btn","text-info","font-size-md","fw-semi-bold","px-2","text-uppercase"]],template:function(t,n){t&1&&(r(0,"unor-expandable-block",0)(1,"div",1)(2,"div",2)(3,"div"),_(4,"img",3),a(),r(5,"div",4)(6,"div",5),c(7,"Borneo"),a(),r(8,"div",6),c(9,"T\xE9l\xE9chargez l'application iOS"),a()(),r(10,"div",7)(11,"a",8),p("click",function(){return n.badgeClick("ios")}),r(12,"button",9),c(13,"Ouvrir"),a()()()()()(),r(14,"unor-expandable-block",0)(15,"div",1)(16,"div",2)(17,"div"),_(18,"img",10),a(),r(19,"div",4)(20,"div",5),c(21,"Borneo"),a(),r(22,"div",6),c(23,"T\xE9l\xE9chargez l'application Android"),a()(),r(24,"div",11)(25,"a",12),p("click",function(){return n.badgeClick("android")}),r(26,"button",13),c(27,"Ouvrir"),a()()()()()()),t&2&&(u("expand",n.platform==="web"&&n.operatingSystem==="ios"),s(14),u("expand",n.platform==="web"&&n.operatingSystem==="android"))},dependencies:[ge],encapsulation:2});let o=i;return o})();var Pe=["*"];function je(o,i){if(o&1&&(B(0),r(1,"div",9),c(2),a(),F()),o&2){let m=f();s(2),me(m.env)}}function De(o,i){if(o&1){let m=P();r(0,"li",10)(1,"div",11)(2,"unor-where-are-you-section",12),D(3,"async"),p("selectLocation",function(t){g(m);let n=f();return v(n.userAddresses.saveAddress(t))})("openPositionModal",function(){g(m);let t=f();return v(t.openPositionRequestModal())}),a()()()}if(o&2){let m=f();s(2),u("selectedLocation",R(3,1,m.selectedLocation$))}}function Re(o,i){if(o&1){let m=P();r(0,"div",13)(1,"unor-where-are-you-section",12),D(2,"async"),p("selectLocation",function(t){g(m);let n=f();return v(n.userAddresses.saveAddress(t))})("openPositionModal",function(){g(m);let t=f();return v(t.openPositionRequestModal())}),a()()}if(o&2){let m=f();s(),u("selectedLocation",R(2,1,m.selectedLocation$))}}var Ie=(()=>{let i=class i{constructor(e,t,n,l,M,O,Y){this.theme=e,this.analytics=t,this.router=n,this.orders=l,this.auth=M,this.ordersS=O,this.userAddresses=Y,this.environment=S(A),this.returnPath="/list/geo",this.hideLocationPill=!1,this.logoClick=new b,this.env=this.environment.environment,this.isLargeScreen=window?.innerWidth>992}ngOnInit(){this.selectedLocation$=this.userAddresses.addresses$.pipe(Q(e=>e.length?e[0]:null)),this.currentOrders$=this.ordersS.getCurrentOrders(),this.logoURL$=this.theme.change.asObservable().pipe(Q(e=>`/assets/logos/logo-borneo-${e.backgroundColor==="black"?"dark":"light"}-bg.svg`),ae())}openPositionRequestModal(){this.router.navigate([],{queryParams:{[Ce.PositionRequest]:1},queryParamsHandling:"merge"})}openMyOrders(){return w(this,null,function*(){this.analytics.logAnalyticsEvent("see_my_orders"),yield this.router.navigate([],{queryParams:{orders:"show"},queryParamsHandling:"merge"})})}
1onLogoClick(){this.logoClick.emit(),this.analytics.logAnalyticsEvent("logo_click")}returnClick(){this.analytics.logAnalyticsEvent("return_click")}openCurrentOrder(e){if(e.length)return this.analytics.logAnalyticsEvent("open_current_orders"),e.length>1?this.router.navigate([],{queryParams:{orders:"show"}}):this.router.navigate([],{queryParams:{orderID:e[0].orderID}})}};i.\u0275fac=function(t){return new(t||i)(d(Se),d(C),d(he),d(ie),d(_e),d(ie),d(J))},i.\u0275cmp=y({type:i,selectors:[["unor-nav-bar"]],inputs:{returnPath:"returnPath",hideLocationPill:"hideLocationPill"},outputs:{logoClick:"logoClick"},ngContentSelectors:Pe,decls:14,vars:13,consts:[[1,"p-3","mx-auto",2,"z-index","1900","max-width","992px"],[1,"list-inline","d-flex","align-items-center","p-0","m-0"],[1,"d-lg-none","mx--2","px-2","rounded"],[1,"position-relative","d-block",3,"click","routerLink"],["alt","Logo de Borneo",1,"d-block",2,"max-height","2rem",3,"src"],[4,"ngIf"],["class","d-none d-md-block",4,"ngIf"],[1,"d-none","d-lg-block","ms-3"],["class","mt--2 mb-2 d-md-none",4,"ngIf"],[1,"environment-pill","position-absolute","rounded-pill","color-white","font-size-xxs","fw-semi-bold"],[1,"d-none","d-md-block"],[1,"my--2"],[3,"selectLocation","openPositionModal","selectedLocation"],[1,"mt--2","mb-2","d-md-none"]],template:function(t,n){if(t&1&&(N(),_(0,"app-native-app-banner"),r(1,"div",0),D(2,"async"),r(3,"ul",1)(4,"li",2)(5,"a",3),p("click",function(){return n.onLogoClick()}),_(6,"img",4),D(7,"async"),E(8,je,3,1,"ng-container",5),a()(),E(9,De,4,3,"li",6),r(10,"li",7)(11,"div"),V(12),a()()()(),E(13,Re,3,3,"div",8)),t&2){let l;s(),ce("top",(l=R(2,9,n.currentOrders$))!=null&&l.length?"44px":0),z("position-stick",n.isLargeScreen),s(4),u("routerLink",n.returnPath),s(),u("src",R(7,11,n.logoURL$),h),s(2),u("ngIf",n.env!=="prod"),s(),u("ngIf",!n.hideLocationPill),s(4),u("ngIf",!n.hideLocationPill)}},dependencies:[be,q,$,W,de],styles:[".environment-pill[_ngcontent-%COMP%]{top:-6px;left:6.5rem;padding:.1rem .4rem;background:#0deca7}"]});let o=i;return o})();var Ee=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=I({type:i}),i.\u0275inj=k({providers:[{provide:ee,useValue:new ee({apiKey:"AIzaSyBw8t5R6tXB6yZ6WU0CJ8nttQ676xuVsIA",libraries:["places"]})}],imports:[L,te,te]});let o=i;return o})();var Le=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=I({type:i}),i.\u0275inj=k({imports:[L,fe,G,T,Ee,W,ke]});let o=i;return o})();var Mt=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=I({type:i}),i.\u0275inj=k({imports:[L,G,T,Le,Ie]});let o=i;return o})();var Oe=["*"];function ze(o,i){if(o&1){let m=P();B(0),r(1,"li",3)(2,"a",13),p("click",function(){g(m);let t=f();return v(t.linkClick("/"))}),c(3," Pour les clients "),a()(),r(4,"li",3)(5,"a",13),p("click",function(){g(m);let t=f();return v(t.linkClick("/restaurants"))}),c(6," Pour les professionnels "),a()(),r(7,"li",3)(8,"a",14),c(9," [email protected] "),a()(),F()}if(o&2){let m=f();s(2),Z("href",m.urls.client,h),s(3),Z("href",m.urls.restaurant,h)}}var Vt=(()=>{let i=class i{constructor(e){this.analytics=e,this.environment=S(A),this.inStore=!1,this.urls=this.environment.urls,this.version=this.environment.appVersion}ngOnInit(){}linkClick(e){this.analytics.logAnalyticsEvent("footer_click",{targetPath:e})}};i.\u0275fac=function(t){return new(t||i)(d(C))},i.\u0275cmp=y({type:i,selectors:[["rstnt-footer"]],inputs:{inStore:"inStore"},ngContentSelectors:Oe,decls:29,vars:12,consts:[[1,"mt-4","fw-semi-bold"],[1,"container","pt-3","text-center","pb-3"],[1,"list-inline","mb-0","pb-4"],[1,"list-inline-item","me-3","mb-2"],["routerDirection","root","rel","dofollow",3,"click","routerLink"],["routerDirection","root","rel","dofollow",3,"routerLink"],["routerDirection","root","rel","nofollow",3,"click","href"],["rel","nofollow",3,"click","href"],[4,"ngIf"],[1,"list-inline-item","text-black-50","mb-2"],[1,"mb-0","fw-normal"],[1,"list-inline-item","text-muted","mb-2"],[1,"m-0"],["rel","dofollow",3,"click","href"],["href","mailto:[email protected]","rel","nofollow"]],template:function(t,n){t&1&&(N(),r(0,"footer",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),p("click",function(){return n.linkClick("/")}),c(5," Accueil "),a()(),r(6,"li",3)(7,"a",5),c(8," Tous les restaurants "),a()(),r(9,"li",3)(10,"a",6),p("click",function(){return n.linkClick("/legal-notices")}),c(11," Mentions l\xE9gales "),a()(),r(12,"li",3)(13,"a",7),p("click",function(){return n.linkClick("/privacy-policy")}),c(14," Confidentialit\xE9 "),a()(),r(15,"li",3)(16,"a",7),p("click",function(){return n.linkClick("/terms-of-use")}),c(17," CGU "),a()(),r(18,"li",3)(19,"a",7),p("click",function(){return n.linkClick("/terms-of-sale")}
1),c(20," CGV "),a()(),E(21,ze,10,2,"ng-container",8),V(22),r(23,"li",9)(24,"p",10),c(25),a()(),r(26,"li",11)(27,"p",12),c(28,"Borneo \xA9 2025"),a()()()()()),t&2&&(s(4),u("routerLink",""),s(3),u("routerLink","/all"),s(3),j("href","",n.urls.client,"/static/legal-notices",h),s(3),j("href","",n.urls.client,"/static/privacy-policy",h),s(3),j("href","",n.urls.client,"/static/terms-of-use",h),s(3),j("href","",n.urls.client,"/static/terms-of-sale",h),s(2),u("ngIf",!n.inStore),s(4),U("v",n.version,""))},dependencies:[q,$],styles:[`.legal-text{font-size:.9rem}.legal-text h2{font-size:1.3rem!important}.legal-text h3{font-size:1.1rem!important;margin-top:1.2rem!important} 2`],encapsulation:2,changeDetection:0});let o=i;return o})();var Te=o=>{let i={"@context":"https://schema.org","@type":"Restaurant"};i.name=o.rootInfos.name,i.description=o.rootInfos?.subtitle,o?.contact?.phoneNumber&&(i.telephone=o.contact?.phoneNumber),i.image=o.rootInfos?.cover,i.logo=o.rootInfos?.logo,i.url=`https://borneoapp.com/${o.storeID}`,i.priceRange="\u20AC\u20AC",i.servesCuisine=o?.foodTags?.join(",")||null;let m=new ve(o.location);return i.address={"@type":"PostalAddress",streetAddress:o.location?.formatted_address,addressLocality:m.city,addressRegion:"EMEA",addressCountry:"FR",postalCode:m.postalCode},i.geo={"@type":"GeoCoordinates",latitude:m?.latitude,longitude:m?.longitude},o?.rating?.count&&o?.rating?.count>=5&&(i.aggregateRating={"@type":"AggregateRating",bestRating:5,worstRating:1,ratingExplanation:"Moyenne des notes donn\xE9es par les clients ayant command\xE9 dans le restaurant avec Borneo.",ratingValue:o.rating?.computed,ratingCount:o.rating?.count,reviewCount:o.rating?.count}),o.collections?.length&&(i.hasMenu={"@type":"Menu",hasMenuSection:o.collections.filter(e=>e.buyable).filter(e=>!e.deleted).filter(e=>e.available).map(e=>({"@type":"MenuSection",name:e.name,hasMenuItem:e.products.filter(t=>!t.deleted).filter(t=>t.available).map(t=>({"@type":"MenuItem",name:t.rootInfos?.name,description:t?.rootInfos?.description,offers:{"@type":"Offer",price:t?.rootInfos?.price?.eur,priceCurrency:"EUR"}}))}))}),JSON.stringify(i)};var Kt=(()=>{let i=class i{constructor(e,t){this.title=e,this.meta=t,this.environment=S(A)}resetTags(){let e=["name=description",'property="og:title"','property="og:description"','property="og:url"','property="og:image"','property="og:image:alt"','property="og:type"','name="twitter:card"','name="twitter:title"','name="twitter:site"','name="twitter:description"','name="twitter:image"','name="twitter:image:alt"',"name=robots"];for(let t of e)try{this.meta.removeTag(t)}catch{}}setCanonicalUrl(e){try{document.querySelectorAll("link").forEach(l=>{l.rel==="canonical"&&document.head.removeChild(l)});let n=document.createElement("link");n.rel="canonical",n.href=e,document.head.appendChild(n)}catch(t){console.error(t)}}setDescription(e){this.meta.getTag("description")?this.meta.updateTag({name:"description",content:e}):this.meta.addTag({name:"description",content:e})}setMetasForPage({title:e,description:t,path:n,hostName:l,image:M,relativeCoverPath:O,noindex:Y,jsonLD:Ae}){this.resetTags();let oe=`${l||this.environment.urls.client}/${n}`,re=`${O?this.environment.urls.client:""}${M}`;this.title.setTitle(e),this.setDescription(t),this.setCanonicalUrl(oe),Y&&this.meta.addTag({name:"robots",content:"noindex"}),this.meta.addTags([{property:"og:title",content:e},{property:"og:description",content:t},{property:"og:url",content:oe},{property:"og:image",content:re},{property:"og:image:alt",content:e}]),this.meta.addTags([{property:"og:type",content:"website"}]),this.meta.addTags([{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:e},{name:"twitter:description",content:t},{name:"twitter:image",content:re},{name:"twitter:image:alt",content:e},{name:"twitter:image:alt",content:e},{name:"twitter:site",content:this.environment.urls.client}]),this.updateJsonLdData(Ae)}setMetasForStore(e){let t=`${e.rootInfos.name} - Commandez en ligne d\xE8s maintenant`;t.length>65&&(t=`${e.rootInfos.name} - Commandez en ligne`),this.setMetasForPage({title:t,description:`D\xE9couvrez la carte de ${e.rootInfos.name} et commandez en ligne avec Borneo : l'application transparente et \xE9quitable !`,path:`${e.storeID}`,image:`${e.rootInfos.cover}`,relativeCoverPath:!1,noindex:!e.indexed,jsonLD:Te(e)})}updateJsonLdData(e){try{if(document.querySelectorAll('script[type="application/ld+json"]').forEach(l=>l.remove()),!e)return;let n=document.createElement("script");n.type="application/ld+json",n.innerText=e,document.head.appendChild(n)}catch(t){console.error(t)}}};i.\u0275fac=function(t){return new(t||i)(X(ue),X(pe))},i.\u0275prov=se({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o}
2)();export{Le as a,Vt as b,Kt as c,be as d,Ie as e,Mt as f};
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.