PageSourceSearch

https://bring4you.com/_next/static/chunks/pages/settings/subscribe-transporter-partner-f6d7e4952a36a3f0.js

js bring4you.com collected 2026-10-02 06:09:45 UTC 10,204 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="caf7c64c-7840-46e1-92ed-1465dbd4176e",e._sentryDebugIdIdentifier="sentry-dbid-caf7c64c-7840-46e1-92ed-1465dbd4176e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7012],{1130:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(1235);let a=(0,n.Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},4275:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(1235);let a=(0,n.Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},2895:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(1235);let a=(0,n.Z)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},2715:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/subscribe-transporter-partner",function(){return r(6135)}])},5435:function(e,t,r){"use strict";var n=r(887),a=r(7121),s=r(9925),i=r.n(s),l=r(9038),o=r(5663),d=r(5164);t.Z=function(e){var t=e.children,r=(0,l.useRouter)(),s=(0,n._)((0,o.useState)(!1),2),c=s[0],u=s[1],m=(0,d.a)().user,h=[{name:"Mon Profil",href:"/settings/profile",visibleTo:["community","community_sender","pro_sender","community_transporter","pro_transporter"]},{name:"Entreprise",href:"/settings/entreprise",visibleTo:["pro_sender","pro_transporter"]},{name:"V\xe9hicules et services",href:"/settings/transport-capacities",visibleTo:["community_transporter","pro_transporter"]},{name:"Abonnement",href:"/settings/subscribe-transporter-partner",visibleTo:["community_transporter","pro_transporter"]},{name:"Changer le mot de passe",href:"/settings/password",visibleTo:["community","community_sender","pro_sender","community_transporter","pro_transporter"]}],p=m?h.filter(function(e){return e.visibleTo.includes(m.type)}):h;return(0,a.BX)("div",{className:"block md:flex max-w-7xl mx-auto py-10",children:[(0,a.BX)("nav",{className:"hidden md:block w-64 flex-shrink-0 border-r border-gray-200 pr-8",children:[(0,a.tZ)("h2",{className:"text-xl font-bold mb-4",children:"Param\xe8tres"}),p.map(function(e){return(0,a.tZ)(i(),{href:e.href,className:"block py-2 text-sm font-medium rounded-lg px-3 ".concat(r.pathname===e.href?"bg-blue-500 text-white":"text-gray-700 hover:bg-gray-50"),children:e.name},e.name)})]}
1),(0,a.BX)("div",{className:"flex-1 min-w-0 w-full",children:[(0,a.BX)("div",{className:"md:hidden w-full",children:[(0,a.BX)("div",{className:"flex justify-between items-center mb-4 px-4",children:[(0,a.tZ)("h2",{className:"text-xl font-bold",children:"Param\xe8tres"}),(0,a.tZ)("button",{onClick:function(){return u(!c)},className:"p-2 rounded-md text-gray-600 hover:text-blue-500 hover:bg-gray-100 focus:outline-none","aria-label":"Toggle menu",children:(0,a.tZ)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c?(0,a.tZ)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):(0,a.tZ)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16m-7 6h7"})})})]}),c&&(0,a.tZ)("div",{className:"mb-8 px-4",children:(0,a.tZ)("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:p.map(function(e){return(0,a.tZ)(i(),{href:e.href,onClick:function(){return u(!1)},className:"block py-3 px-4 text-sm font-medium transition-colors ".concat(r.pathname===e.href?"bg-blue-500 text-white":"text-gray-700 hover:bg-gray-50"),children:e.name},e.name)})})})]}),(0,a.tZ)("main",{className:"p-4 md:p-0 md:pl-8",children:t})]})]})}},4441:function(e,t,r){"use strict";r.d(t,{Z:function(){return steps_PartnerStep}});var n=r(4965),a=r(887),s=r(2336),i=r(7121),l=r(5663),o=r(1235);let d=(0,o.Z)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var c=r(4275),u=r(2895),m=r(1130),h=r(5164),p=r(6021),x=["Acc\xe8s exclusif aux d\xe9m\xe9nagements et aux transports les plus int\xe9ressants","Visibilit\xe9 accrue sur toutes les annonces","Badge de certification sur votre profil","Support client prioritaire","Sans engagement - annulez \xe0 tout moment"],steps_PartnerStep=function(e){var t,r=e.onComplete,o=e.isOnboarding,f=void 0!==o&&o,b=(0,h.a)().user,g=(0,a._)((0,l.useState)(!1),2),v=g[0],y=g[1],Z=(0,a._)((0,l.useState)(null),2),N=Z[0],w=Z[1],_=(t=(0,n._)(function(){var e;return(0,s.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),y(!0),w(null),[4,(0,p.N)("/api/stripe/createStripeSubscription",{method:"POST"})];case 1:return e=t.sent(),window.location.href=e,[3,3];case 2:return w(t.sent().message||"Erreur lors de la redirection vers Stripe."),y(!1),[3,3];case 3:return[2]}})}),function(){return t.apply(this,arguments)});return(0,i.tZ)("div",{className:f?"":"min-h-screen bg-gray-50 py-12",children:(0,i.BX)("div",{className:f?"max-w-2xl mx-auto":"max-w-6xl mx-auto px-4",children:[(0,i.BX)("div",{className:"text-center mb-8",children:[(0,i.BX)("div",{className:"inline-flex items-center gap-2 bg-amber-100 text-amber-700 px-4 py-2 rounded-full text-sm font-medium mb-4",children:[(0,i.tZ)(d,{className:"w-4 h-4"}),"Offre exclusive pour les transporteurs"]}),(0,i.tZ)("h2",{className:"font-bold text-[#1e4062] ".concat(f?"text-xl":"text-3xl"),children:"Devenez Transporteur Partenaire"}),(0,i.tZ)("p",{className:"text-gray-600 mt-3 max-w-xl mx-auto",children:"Acc\xe9dez \xe0 des opportunit\xe9s de livraison professionnelle et d\xe9veloppez votre activit\xe9 avec Bring4You"})]}),(0,i.BX)("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden mb-8",children:[(0,i.tZ)("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 px-6 py-4",children:(0,i.BX)("div",{className:"flex items-center justify-between",children:[(0,i.BX)("div",{children:[(0,i.tZ)("h3",{className:"text-lg font-bold text-white",children:"Badge Transporteur Partenaire"}),(0,i.tZ)("p",{className:"text-blue-100 text-sm",children:"Acc\xe8s premium"})]}),(0,i.BX)("div",{className:"bg-white/20 backdrop-blur-sm rounded-xl px-4 py-2",children:[(0,i.tZ)("span",{className:"text-2xl font-bold text-white",children:"49€"}),(0,i.tZ)("span",{className:"text-blue-100 text-sm",children:"/mois"})]})]})}),(0,i.tZ)("div",{className:"p-6",children:(0,i.tZ)("div",{className:"space-y-3 mb-6",children:x.map(function(e,t){return(0,i.BX)("div",{className:"flex items-center gap-3",children:[(0,i.tZ)("div",{className:"w-5 h-5 rounded-full bg-green-100 flex items-center justify-center flex-shrink-0",children:(0,i.tZ)(c.Z,{className:"w-3 h-3 text-green-600"})}),(0,i.tZ)("span",{className:"text-gray-700 text-sm",children:e})]},t)})})})]}),(0,i.tZ)("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 p-5 mb-8",children:(0,i.BX)("div",{className:"flex items-center gap-4",children:[(0,i.tZ)("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-amber-400 to-orange-500 flex items-center justify-center flex-shrink-0",children:(0,i.tZ)(u.Z,{className:"w-6 h-6 text-white"})}),(0,i.BX)("div",{children:[(0,i.tZ)("div",{className:"flex gap-0.5 mb-1",children:[1,2,3,4,5].map(function(e){return(0,i.tZ)(u.Z,{className:"w-4 h-4 text-amber-400 fill-amber-400"},e)})}),(0,i.tZ)("p",{className:"text-gray-600 italic text-sm",children:'"Le badge partenaire m\'a permis de doubler mes courses en un mois !"'})]})]})}),(0,i.BX)("div",{className:"space-y-3",children:[N&&(0,i.tZ)("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg text-sm",children:N}),(null==b?void 0:b.partnerTransporter)?(0,i.BX)("div",{className:"bg-green-50 text-green-700 p-4 rounded-xl text-center font-medium",children:[(0,i.tZ)(c.Z,{className:"w-5 h-5 inline mr-2"}),"Vous \xeates d\xe9j\xe0 partenaire !"]}):(0,i.tZ)("button",{onClick:_,disabled:v,className:"w-full bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600 text-white font-bold py-4 rounded-xl text-lg shadow-lg transition-all flex items-center justify-center gap-2 disabled:opacity-70",children:v?(0,i.BX)(i.HY,{children:[(0,i.tZ)("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white"}),"Redirection vers Stripe..."]}):(0,i.BX)(i.HY,{children:["Obtenir le badge partenaire",(0,i.tZ)(m.Z,{className:"w-5 h-5"})]})}),(0,i.tZ)("button",{type:"button",onClick:r,className:"w-full text-gray-500 hover:text-gray-700 py-3 text-sm transition-colors",children:f?"Plus tard":"Retour"})]})]})})}},6135:function(e,t,r){"use strict";r.r(t);var n=r(7121),a=r(2687),s=r(5164),i=r(5435),l=r(4441);t.default=function(){var e=(0,s.a)(),t=e.user,r=e.isAuthenticated;return e.isLoading?(0,n.tZ)(a.Z,{title:"Chargement...",children:(0,n.tZ)("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:(0,n.tZ)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"})})}):r&&t?(0,n.tZ)(a.Z,{title:"Devenir Transporteur Partenaire | Bring4You",description:"Obtenez le badge transporteur partenaire et acc\xe9dez \xe0 des opportunit\xe9s exclusives de livraison professionnelle.",children:(0,n.tZ)(i.Z,{children:(0,n.tZ)("div",{className:"max-w-4xl mx-auto py-8 px-4",children:(0,n.tZ)(l.Z,{isOnboarding:!1,onComplete:function(){}})})})}):null}},9038:function(e,t,r){e.exports=r(1557)}},function(e){e.O(0,[8619,6267,2687,2888,179],function(){return e(e.s=2715)}),_N_E=e.O()}]);

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.