1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5570],{5570:function(e,n,l){l.d(n,{p:function(){return L}});var c,s,i=l(85893),o=l(2734),r=l(98396),t=l(26447),a=l(98456),d=l(99226),x=l(31635),u=l(11163),h=l(67294),j=l(60215),Z=l(12469),p=l(3023),m=l(55113),f=l(69661),v=l(15861),y=l(83321),E=l(67720),_=l(1163),g=l(87631),R=l(98084),O=l(18216),C=l(51932),D=l(60181),k=l(23508),S=l(91886),A=l(28922),H=l(79064),N=l(57922),$=l(48885),T=l(59334),b=l(63931),I=l(84118);(s=c||(c={})).STORE_AGENCY="store_agency",s.NETWORK_HEAD="network_head",s.OPERATING_TOUR="operating_tour";var w=l(97096),P=function(){var e,n,l,s,o,r=(0,x.$G)("common").t,t=(0,u.useRouter)(),a=(0,j.t)(),d=a.user,Z=a.signOut,p=(0,h.useState)(!0),m=p[0],f=p[1],v=function(){f(!m)},y=function(e){return t.asPath===e};return(0,i.jsxs)(I.Z,{children:[(null==d?void 0:d.travel_agency)!==void 0&&(0,i.jsxs)(b.Z,{onClick:function(){t.push((0,_.ny)(t.locale))},selected:y((0,_.ny)(t.locale)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(A.Z,{fontSize:"small"})}),(0,i.jsx)(T.Z,{children:r("dashboard")})]}),(0,i.jsxs)(b.Z,{onClick:function(){t.push((0,_.Jg)(t.locale))},selected:y((0,_.Jg)(t.locale)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(g.Z,{fontSize:"small"})}),(0,i.jsx)(T.Z,{children:r("Profile")})]}),(null==d?void 0:null===(e=d.travel_agency)||void 0===e?void 0:e.id)&&(null==d?void 0:null===(n=d.travel_agency)||void 0===n?void 0:n.agency_type)===c.NETWORK_HEAD&&(0,i.jsxs)(b.Z,{onClick:function(){t.push((0,_.Vd)(t.locale))},selected:y((0,_.Vd)(t.locale)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(R.Z,{fontSize:"small"})}),(0,i.jsx)(T.Z,{children:r("My agencies")})]}),(null==d?void 0:null===(l=d.travel_agency)||void 0===l?void 0:l.id)&&(null==d?void 0:null===(s=d.travel_agency)||void 0===s?void 0:s.agency_type)===c.NETWORK_HEAD&&(0,i.jsxs)(b.Z,{onClick:function(){t.push((0,_.by)(t.locale))},selected:y((0,_.by)(t.locale)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(O.Z,{fontSize:"small"})}),(0,i.jsx)(T.Z,{children:r("Orders from my agencies")})]}),(0,i.jsxs)(b.Z,{onClick:function(){v()},children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(S.Z,{fontSize:"small"})}),(0,i.jsx)(T.Z,{children:r("Mes commandes")}),m?(0,i.jsx)(D.Z,{}):(0,i.jsx)(k.Z,{})]}),(0,i.jsx)(N.Z,{in:m,timeout:"auto",unmountOnExit:!0,children:(0,i.jsxs)(I.Z,{component:"div",disablePadding:!0,children:[(0,i.jsxs)(b.Z,{sx:{pl:4},onClick:function(){t.push({pathname:(0,_.H$)(t.locale),query:{type:w.i.VALIDATED_ORDERS}})},selected:y("".concat((0,_.H$)(t.locale),"?type=").concat(w.i.VALIDATED_ORDERS)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(S.Z,{color:"success"})}),(0,i.jsx)(T.Z,{primary:r("validatedOrders")})]}),(null==d?void 0:null===(o=d.travel_agency)||void 0===o?void 0:o.id)&&(0,i.jsxs)(b.Z,{sx:{pl:4},onClick:function(){t.push({pathname:(0,_.H$)(t.locale),query:{type:w.i.NOT_YET_PAID_ORDERS}})},selected:y("".concat((0,_.H$)(t.locale),"?type=").concat(w.i.NOT_YET_PAID_ORDERS)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(S.Z,{color:"success"})}),(0,i.jsx)(T.Z,{primary:r("notYetPaidOrders")})]}),(0,i.jsxs)(b.Z,{sx:{pl:4},onClick:function(){t.push({pathname:(0,_.H$)(t.locale),query:{type:w.i.ARCHIVED_ORDERS}})},selected:y("".concat((0,_.H$)(t.locale),"?type=").concat(w.i.ARCHIVED_ORDERS)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(S.Z,{color:"error"})}),(0,i.jsx)(T.Z,{primary:r("archivedOrders")})]}),(0,i.jsxs)(b.Z,{sx:{pl:4},onClick:function(){t.push({pathname:(0,_.H$)(t.locale),query:{type:w.i.CANCELED_ORDERS}})},selected:y("".concat((0,_.H$)(t.locale),"?type=").concat(w.i.CANCELED_ORDERS)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(S.Z,{color:"warning"})}),(0,i.jsx)(T.Z,{primary:r("canceledOrders")})]}),(0,i.jsxs)(b.Z,{sx:{pl:4},onClick:function(){t.push({pathname:(0,_.H$)(t.locale),query:{type:w.i.OPEN_ORDERS}})},selected:y("".concat((0,_.H$)(t.locale),"?type=").concat(w.i.OPEN_ORDERS)),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(S.Z,{color:"primary"})}),(0,i.jsx)(T.Z,{primary:r("openOrders")})]})]})}),(null==d?void 0:d.travel_agency)!==void 0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(E.Z,{sx:{mt:2}}),(0,i.jsxs)(b.Z,{onClick:function(){t.push((0,_.me)(t.locale))},selected:y("".concat((0,_.me)(t.locale))),children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(H.Z,{fontSize:"small"})}),(0,i.jsx)(T.Z,{children:r("Changer mot de passe")})]})]}),(0,i.jsx)(E.Z,{}),(0,i.jsxs)(b.Z,{onClick:function(){Z()},children:[(0,i.jsx)($.Z,{children:(0,i.jsx)(C.Z,{fontSize:"small"})}),(0,i.jsx)(T.Z,{children:r("D\xe9connexion")})]})]})},z=function(){var e=(0,x.$G)("common").t,n=(0,u.useRouter)(),l=(0,j.t)().user;return(0,i.jsx)(d.Z,{sx:{width:300,minWidth:300,pt:0},children:(0,i.jsx)(m.Z,{elevation:0,sx:{p:2,border:"solid 1px #eee"},children:(0,i.jsxs)(t.Z,{direction:"column",spacing:2,children:[(0,i.jsx)(m.Z,{sx:{p:3,backgroundColor:"#eee"},children:(0,i.jsxs)(t.Z,{direction:"row",flexWrap:"nowrap",alignItems:"center",spacing:2,children:[(0,i.jsx)(f.Z,{sx:{bgcolor:"#fff",color:"black"},alt:"Remy Sharp",children:(0,i.jsx)(p.Z,{})}),(0,i.jsx)(v.Z,{fontWeight:500,children:"".concat(null==l?void 0:l.firstName," ").concat(null==l?void 0:l.lastName)})]})}),(0,i.jsx)(y.Z,{size:"large",startIcon:(0,i.jsx)(Z.Z,{}),fullWidth:!0,color:"info",variant:"contained",onClick:function(){return n.push((0,_.mJ)(n.locale))},children:e("ReserveAnOrder")}),(0,i.jsx)(E.Z,{}),(0,i.jsx)(P,{})]})})})},L=function(e){var n=e.children;(0,x.$G)("common").t;var l=(0,u.useRouter)(),c=(0,j.t)(),s=c.isLoading,Z=(c.isLogged,c.user);c.isError,c.setLoggedUser;var p=(0,o.Z)(),m=(0,r.Z)(p.breakpoints.up("sm"));return((0,h.useEffect)(function(){void 0!==Z||s||l.push("/")},[Z,s,l]),s)?(0,i.jsx)(t.Z,{alignItems:"center",justifyContent:"center",children:(0,i.jsx)(a.Z,{})}):(0,i.jsxs)(t.Z,{direction:"row",spacing:5,children:[m&&(0,i.jsx)(z,{}),(0,i.jsx)(d.Z,{sx:{flexGrow:1},children:n})]})}}}]);
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.