1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["expert"],{"0004":function(t,e,s){},"0398":function(t,e,s){"use strict";s("55b4")},"0c2d":function(t,e,s){},"0eaa":function(t,e,s){"use strict";s("0004")},1320:function(t,e,s){ 2/*! algoliasearch-lite.umd.js | 4.26.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */ 3!function(e,s){t.exports=s()}(0,(function(){"use strict";function t(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function e(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,a)}return s}function s(s){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){t(s,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(r,t))}))}return s}function a(t,e){if(null==t)return{};var s,a,r=function(t,e){if(null==t)return{};var s,a,r={},i=Object.keys(t);for(a=0;a<i.length;a++)s=i[a],e.indexOf(s)>=0||(r[s]=t[s]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)s=i[a],e.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(r[s]=t[s])}return r}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var s=[],a=!0,r=!1,i=void 0;try{for(var o,n=t[Symbol.iterator]();!(a=(o=n.next()).done)&&(s.push(o.value),!e||s.length!==e);a=!0);}catch(t){r=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(r)throw i}}return s}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,s=new Array(t.length);e<t.length;e++)s[e]=t[e];return s}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(){var t="undefined"!=typeof globalThis?globalThis:void 0;return t&&t.scheduler&&t.scheduler.yield?t.scheduler.yield().catch((function(t){return console.error("Failed to yield to main: ",t),new Promise((function(t){return setTimeout(t,0)}))})):new Promise((function(t){return setTimeout(t,0)}))}function n(t){var e,s="algoliasearch-client-js-".concat(t.key),a=function(){return void 0===e&&(e=t.localStorage||window.localStorage),e},i=function(){return JSON.parse(a().getItem(s)||"{}")},n=function(t){a().setItem(s,JSON.stringify(t))},l=function(){var e=t.timeToLive?1e3*t.timeToLive:null,s=i(),a=(new Date).getTime();return Object.fromEntries(Object.entries(s).filter((function(t){var s=r(t,2)[1];return!(!s||void 0===s.timestamp)&&(!e||s.timestamp+e>=a)})))};return{get:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return o().then((function(){var a=l(),r=a[JSON.stringify(t)];return n(a),r?r.value:e().then((function(t){return s.miss(t).then((function(){return t}))}))}))},set:function(t,e){return o().then((function(){var r=i();return r[JSON.stringify(t)]={timestamp:(new Date).getTime(),value:e},a().setItem(s,JSON.stringify(r)),e}))},delete:function(t){return o().then((function(){var e=i();delete e[JSON.stringify(t)],a().setItem(s,JSON.stringify(e))}))},clear:function(){return Promise.resolve().then((function(){a().removeItem(s)}))}}}function l(t){var e=i(t.caches),s=e.shift();return void 0===s?{get:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=e();return a.then((function(t){return Promise.all([t,s.miss(t)])})).then((function(t){return r(t,1)[0]}))},set:function(t,e){return Promise.resolve(e)},delete:function(t){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,a){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return s.get(t,a,r).catch((function(){return l({caches:e}).get(t,a,r)}))},set:function(t,a){return s.set(t,a).catch((function(){return l({caches:e}).set(t,a)}))},delete:function(t){return s.delete(t).catch((function(){return l({caches:e}).delete(t)}))}
3,clear:function(){return s.clear().catch((function(){return l({caches:e}).clear()}))}}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},e={};return{get:function(s,a){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(s);if(i in e)return Promise.resolve(t.serializable?JSON.parse(e[i]):e[i]);var o=a(),n=r&&r.miss||function(){return Promise.resolve()};return o.then((function(t){return n(t)})).then((function(){return o}))},set:function(s,a){return e[JSON.stringify(s)]=t.serializable?JSON.stringify(a):a,Promise.resolve(a)},delete:function(t){return delete e[JSON.stringify(t)],Promise.resolve()},clear:function(){return e={},Promise.resolve()}}}function u(t){for(var e=t.length-1;e>0;e--){var s=Math.floor(Math.random()*(e+1)),a=t[e];t[e]=t[s],t[s]=a}return t}function d(t,e){return e?(Object.keys(e).forEach((function(s){t[s]=e[s](t)})),t):t}function p(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),a=1;a<e;a++)s[a-1]=arguments[a];var r=0;return t.replace(/%s/g,(function(){return encodeURIComponent(s[r++])}))}var m={WithinQueryParameters:0,WithinHeaders:1};function v(t,e){var s=t||{},a=s.data||{};return Object.keys(s).forEach((function(t){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(t)&&(a[t]=s[t])})),{data:Object.entries(a).length>0?a:void 0,timeout:s.timeout||e,headers:s.headers||{},queryParameters:s.queryParameters||{},cacheable:s.cacheable}}var _={Read:1,Write:2,Any:3},f=1,h=2,b=3;function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return s(s({},t),{},{status:e,lastUpdate:Date.now()})}function C(t){return"string"==typeof t?{protocol:"https",url:t,accept:_.Any}:{protocol:t.protocol||"https",url:t.url,accept:t.accept||_.Any}}var y="GET",x="POST";function k(t,e){return Promise.all(e.map((function(e){return t.get(e,(function(){return Promise.resolve(g(e))}))}))).then((function(t){var s=t.filter((function(t){return function(t){return t.status===f||Date.now()-t.lastUpdate>12e4}(t)})),a=t.filter((function(t){return function(t){return t.status===b&&Date.now()-t.lastUpdate<=12e4}(t)})),r=[].concat(i(s),i(a));return{getTimeout:function(t,e){return(0===a.length&&0===t?1:a.length+3+t)*e},statelessHosts:r.length>0?r.map((function(t){return C(t)})):e}}))}function w(t,e,a,r){var o=[],n=function(t,e){if(t.method!==y&&(void 0!==t.data||void 0!==e.data)){var a=Array.isArray(t.data)?t.data:s(s({},t.data),e.data);return JSON.stringify(a)}}(a,r),l=function(t,e){var a=s(s({},t.headers),e.headers),r={};return Object.keys(a).forEach((function(t){var e=a[t];r[t.toLowerCase()]=e})),r}(t,r),c=a.method,u=a.method!==y?{}:s(s({},a.data),r.data),d=s(s(s({"x-algolia-agent":t.userAgent.value},t.queryParameters),u),r.queryParameters),p=0,m=function e(s,i){var u=s.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:P(o)};var m={data:n,headers:l,method:c,url:A(u,a.path,d),connectTimeout:i(p,t.timeouts.connect),responseTimeout:i(p,r.timeout)},v=function(t){var e={request:m,response:t,host:u,triesLeft:s.length};return o.push(e),e},_={onSuccess:function(t){return function(t){try{return JSON.parse(t.content)}catch(e){throw function(t,e){return{name:"DeserializationError",message:t,response:e}}(e.message,t)}}(t)},onRetry:function(a){var r=v(a);return a.isTimedOut&&p++,Promise.all([t.logger.info("Retryable failure",S(r)),t.hostsCache.set(u,g(u,a.isTimedOut?b:h))]).then((function(){return e(s,i)}))},onFail:function(t){throw v(t),function(t,e){var s=t.content,a=t.status,r=s;try{r=JSON.parse(s).message}catch(t){}return function(t,e,s){return{name:"ApiError",message:t,status:e,transporterStackTrace:s}}(r,a,e)}(t,P(o))}};return t.requester.send(m).then((function(t){return function(t,e){return function(t){var e=t.status;return t.isTimedOut||function(t){var e=t.isTimedOut,s=t.status;return!e&&0==~~s}(t)||2!=~~(e/100)&&4!=~~(e/100)}(t)?e.onRetry(t):2==~~(t.status/100)?e.onSuccess(t):e.onFail(t)}(t,_)}))};return k(t.hostsCache,e).then((function(t){return m(i(t.statelessHosts).reverse(),t.getTimeout)}))}function E(t){var e={value:"Algolia for JavaScript (".concat(t,")"),add:function(t){var s="; ".concat(t.segment).concat(void 0!==t.version?" (".concat(t.version,")"):"");return-1===e.value.indexOf(s)&&(e.value="".concat(e.value).concat(s)),e}};return e}function A(t,e,s){var a=O(s),r="".concat(t.protocol,"://").concat(t.url,"/").concat("/"===e.charAt(0)?e.substr(1):e);return a.length&&(r+="?".concat(a)),r}function O(t){return Object.keys(t).map((function(e){return p("%s=%s",e,(s=t[e],"[object Object]"===Object.prototype.toString.call(s)||"[object Array]"===Object.prototype.toString.call(s)?JSON.stringify(t[e]):t[e]));var s})).join("&")}function P(t){return t.map((function(t){return S(t)}))}function S(t){var e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return s(s({},t),{},{request:s(s({},t.request),{},{headers:s(s({},t.request.headers),e)})})}var N=function(t){var e=t.appId,a=function(t,e,s){var a={"x-algolia-api-key":s,"x-algolia-application-id":e};return{headers:function(){return t===m.WithinHeaders?a:{}},queryParameters:function(){return t===m.WithinQueryParameters?a:{}}}}(void 0!==t.authMode?t.authMode:m.WithinHeaders,e,t.apiKey),i=function(t){var e=t.hostsCache,s=t.logger,a=t.requester,i=t.requestsCache,o=t.responsesCache,n=t.timeouts,l=t.userAgent,c=t.hosts,u=t.queryParameters,d={hostsCache:e,logger:s,requester:a,requestsCache:i,responsesCache:o,timeouts:n,userAgent:l,headers:t.headers,queryParameters:u,hosts:c.map((function(t){return C(t)})),read:function(t,e){var s=v(e,d.timeouts.read),a=function(){return w(d,d.hosts.filter((function(t){return 0!=(t.accept&_.Read)})),t,s)};if(!0!==(void 0!==s.cacheable?s.cacheable:t.cacheable))return a();var i={request:t,mappedRequestOptions:s,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(i,(function(){return d.requestsCache.get(i,(function(){return d.requestsCache.set(i,a()).then((function(t){return Promise.all([d.requestsCache.delete(i),t])}),(function(t){return Promise.all([d.requestsCache.delete(i),Promise.reject(t)])})).then((function(t){var e=r(t,2);return e[0],e[1]}))}))}),{miss:function(t){return d.responsesCache.set(i,t)}})},write:function(t,e){return w(d,d.hosts.filter((function(t){return 0!=(t.accept&_.Write)})),t,v(e,d.timeouts.write))}};return d}(s(s({hosts:[{url:"".concat(e,"-dsn.algolia.net"),accept:_.Read},{url:"".concat(e,".algolia.net"),accept:_.Write}].concat(u([{url:"".concat(e,"-1.algolianet.com")},{url:"".concat(e,"-2.algolianet.com")},{url:"".concat(e,"-3.algolianet.com")}]))},t),{},{headers:s(s(s({},a.headers()),{"content-type":"application/x-www-form-urlencoded"}),t.headers),queryParameters:s(s({},a.queryParameters()),t.queryParameters)}));return d({transporter:i,appId:e,addAlgoliaAgent:function(t,e){i.userAgent.add({segment:t,ver
3sion:e})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((function(){}))}},t.methods)},F=function(t){return function(e,s){return e.method===y?t.transporter.read(e,s):t.transporter.write(e,s)}},j=function(t){return function(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={transporter:t.transporter,appId:t.appId,indexName:e};return d(a,s.methods)}},L=function(t){return function(e,a){var r=e.map((function(t){return s(s({},t),{},{params:O(t.params||{})})}));return t.transporter.read({method:x,path:"1/indexes/*/queries",data:{requests:r},cacheable:!0},a)}},I=function(t){return function(e,r){return Promise.all(e.map((function(e){var i=e.params,o=i.facetName,n=i.facetQuery,l=a(i,["facetName","facetQuery"]);return j(t)(e.indexName,{methods:{searchForFacetValues:$}}).searchForFacetValues(o,n,s(s({},r),l))})))}},B=function(t){return function(e,s,a){return t.transporter.read({method:x,path:p("1/answers/%s/prediction",t.indexName),data:{query:e,queryLanguages:s},cacheable:!0},a)}},q=function(t){return function(e,s){return t.transporter.read({method:x,path:p("1/indexes/%s/query",t.indexName),data:{query:e},cacheable:!0},s)}},$=function(t){return function(e,s,a){return t.transporter.read({method:x,path:p("1/indexes/%s/facets/%s/query",t.indexName,e),data:{facetQuery:s},cacheable:!0},a)}},T=1,M=2,D=3,z=function(t){return function(e,a){var r=e.map((function(t){return s(s({},t),{},{threshold:t.threshold||0})}));return t.transporter.read({method:x,path:"1/indexes/*/recommendations",data:{requests:r},cacheable:!0},a)}};function R(t,e,a){var r,i={appId:t,apiKey:e,timeouts:{connect:1,read:2,write:30},requester:{send:function(t){return new Promise((function(e){var s=new XMLHttpRequest;s.open(t.method,t.url,!0),Object.keys(t.headers).forEach((function(e){return s.setRequestHeader(e,t.headers[e])}));var a,r=function(t,a){return setTimeout((function(){s.abort(),e({status:0,content:a,isTimedOut:!0})}),1e3*t)},i=r(t.connectTimeout,"Connection timeout");s.onreadystatechange=function(){s.readyState>s.OPENED&&void 0===a&&(clearTimeout(i),a=r(t.responseTimeout,"Socket timeout"))},s.onerror=function(){0===s.status&&(clearTimeout(i),clearTimeout(a),e({content:s.responseText||"Network request failed",status:s.status,isTimedOut:!1}))},s.onload=function(){clearTimeout(i),clearTimeout(a),e({content:s.responseText,status:s.status,isTimedOut:!1})},s.send(t.data)}))}},logger:(r=D,{debug:function(t,e){return T>=r&&console.debug(t,e),Promise.resolve()},info:function(t,e){return M>=r&&console.info(t,e),Promise.resolve()},error:function(t,e){return console.error(t,e),Promise.resolve()}}),responsesCache:c(),requestsCache:c({serializable:!1}),hostsCache:l({caches:[n({key:"".concat("4.26.0","-").concat(t)}),c()]}),userAgent:E("4.26.0").add({segment:"Browser",version:"lite"}),authMode:m.WithinQueryParameters};return N(s(s(s({},i),a),{},{methods:{search:L,searchForFacetValues:I,multipleQueries:L,multipleSearchForFacetValues:I,customRequest:F,initIndex:function(t){return function(e){return j(t)(e,{methods:{search:q,searchForFacetValues:$,findAnswers:B}})}},getRecommendations:z}}))}return R.version="4.26.0",R}))},"132d":function(t,e,s){"use strict";s("14d9"),s("e9f5"),s("f665"),s("4804");var a,r=s("7e2b"),i=s("a9ad"),o=s("af2b"),n=s("7560"),l=s("80d2"),c=s("2b0e"),u=s("58df");function d(t){return["fas","far","fal","fab","fad","fak"].some(e=>t.includes(e))}function p(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(a||(a={}));const m=Object(u["a"])(r["a"],i["a"],o["a"],n["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(l["C"])(this,t)},getSize(){const t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(l["z"])(t).find(e=>t[e]);return e&&a[e]||Object(l["h"])(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const t=this.getSize(),e={...this.getDefaultData(),style:t?{fontSize:t,height:t,width:t}:void 0};return this.applyColors(e),e},applyColors(t){t.class={...t.class,...this.themeClasses},this.setTextColor(this.color,t)},renderFontIcon(t,e){const s=[],a=this.getDefaultData();let r="material-icons";const i=t.indexOf("-"),o=i<=-1;o?s.push(t):(r=t.slice(0,i),d(r)&&(r="")),a.class[r]=!0,a.class[t]=!o;const n=this.getSize();return n&&(a.style={fontSize:n}),this.applyColors(a),e(this.hasClickListener?"button":this.tag,a,s)},renderSvgIcon(t,e){const s={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},a=this.getSize();return a&&(s.style={fontSize:a,height:a,width:a}
3),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",s,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent(t,e){const s={class:{"v-icon__component":!0}},a=this.getSize();a&&(s.style={fontSize:a,height:a,width:a}),this.applyColors(s);const r=t.component;return s.props=t.props,s.nativeOn=s.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(r,s)])}},render(t){const e=this.getIcon();return"string"===typeof e?p(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});e["a"]=c["default"].extend({name:"v-icon",$_wrapperFor:m,functional:!0,render(t,{data:e,children:s}){let a="";return e.domProps&&(a=e.domProps.textContent||e.domProps.innerHTML||a,delete e.domProps.textContent,delete e.domProps.innerHTML),t(m,e,a?[a]:s)}})},"1dac":function(t,e,s){"use strict";s("eb3c")},"22cc":function(t,e,s){"use strict";s("0c2d")},"28d3":function(t,e,s){"use strict";s.r(e);var a=s("132d"),r=(s("14d9"),s("e9f5"),s("ab43"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"be"},[t.isLoggedIn?t.alreadyExpert?e("div",{staticClass:"be-gate"},[e("div",{staticClass:"be-gate-card"},[e("div",{staticClass:"be-gate-illustration be-gate-illustration-done"},[e(a["a"],{attrs:{size:"56",color:"#388E3C"}},[t._v("mdi-check-decagram")])],1),e("h1",{staticClass:"be-gate-title"},[t._v(t._s(t.t("already_expert_title")))]),e("p",{staticClass:"be-gate-desc"},[t._v(t._s(t.t("already_expert_desc")))]),e("button",{staticClass:"be-btn be-btn-primary be-btn-lg",on:{click:function(e){return t.$router.push("/experts")}}},[t._v(t._s(t.t("view_directory")))])])]):t.success?e("div",{staticClass:"be-gate"},[e("div",{staticClass:"be-gate-card be-gate-card-success"},[e("div",{staticClass:"be-success-burst"}),e("div",{staticClass:"be-gate-illustration be-gate-illustration-done"},[e(a["a"],{attrs:{size:"56",color:"#388E3C"}},[t._v("mdi-party-popper")])],1),e("h1",{staticClass:"be-gate-title"},[t._v(t._s(t.t("welcome_title")))]),e("p",{staticClass:"be-gate-desc"},[t._v(t._s(t.t("welcome_desc")))]),e("div",{staticClass:"be-success-stats"},[e("div",{staticClass:"be-success-stat"},[e("span",{staticClass:"be-success-stat-val"},[t._v(t._s(t.form.category_ids.length))]),e("span",{staticClass:"be-success-stat-label"},[t._v(t._s(t.t("specialties")))])]),e("div",{staticClass:"be-success-stat-sep"}),e("div",{staticClass:"be-success-stat"},[e("span",{staticClass:"be-success-stat-val"},[t._v(t._s(t.form.region))]),e("span",{staticClass:"be-success-stat-label"},[t._v(t._s(t.t("region_label")))])])]),e("button",{staticClass:"be-btn be-btn-primary be-btn-lg",on:{click:function(e){return t.$router.push("/experts")}}},[t._v(t._s(t.t("view_directory")))])])]):[e("div",{staticClass:"be-flow"},[e("aside",{staticClass:"be-sidebar"},[e("div",{staticClass:"be-sidebar-inner"},[e("button",{staticClass:"be-sidebar-back",on:{click:function(e){return t.$router.push("/experts")}}},[e(a["a"],{attrs:{"x-small":"",color:"rgba(255,255,255,0.6)"}},[t._v("mdi-arrow-left")])],1),e("div",{staticClass:"be-sidebar-brand"},[e("div",{staticClass:"be-sidebar-logo"},[t._v("J")]),e("span",[t._v(t._s(t.t("become_expert")))])]),e("nav",{staticClass:"be-steps"},t._l(t.steps,(function(s,r){return e("button",{key:r,class:["be-step",{active:t.step===r+1,done:t.step>r+1}],on:{click:function(e){t.step>r+1&&(t.step=r+1)}}},[e("div",{staticClass:"be-step-indicator"},[t.step>r+1?e(a["a"],{attrs:{"x-small":"",color:"#fff"}},[t._v("mdi-check")]):e("span",[t._v(t._s(r+1))])],1),e("div",{staticClass:"be-step-info"},[e("span",{staticClass:"be-step-label"},[t._v(t._s(s.label))]),e("span",{staticClass:"be-step-hint"},[t._v(t._s(s.hint))])])])})),0),e("div",{staticClass:"be-sidebar-footer"},[e("div",{staticClass:"be-sidebar-progress"},[e("div",{staticClass:"be-sidebar-progress-bar",style:{width:(t.step-1)/3*100+"%"}})]),e("span",{staticClass:"be-sidebar-progress-label"},[t._v("Ãtape "+t._s(t.step)+" sur 4")])])])]),e("main",{staticClass:"be-main"},[e("div",{staticClass:"be-main-inner"},[e("transition",{attrs:{name:"be-slide",mode:"out-in"}},[1===t.step?e("div",{key:"s1",staticClass:"be-panel"},[e("div",{staticClass:"be-panel-header"},[e("span",{staticClass:"be-panel-step-badge"},[t._v("01")]),e("h2",{staticClass:"be-panel-title"},[t._v(t._s(t.t("present_yourself")))]),e("p",{staticClass:"be-panel-desc"},[t._v(t._s(t.t("present_desc")))])]),e("div",{staticClass:"be-field-group"},[e("label",{staticClass:"be-label"},[t._v(t._s(t.t("bio_label"))+" "),e("span",{staticClass:"be-required"},[t._v("*")])]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.bio,expression:"form.bio"}
3],staticClass:"be-textarea",attrs:{rows:"4",placeholder:t.t("bio_placeholder")},domProps:{value:t.form.bio},on:{input:function(e){e.target.composing||t.$set(t.form,"bio",e.target.value)}}}),e("span",{staticClass:"be-field-hint"},[t._v(t._s((t.form.bio||"").length)+" / 20 caractères minimum")])]),e("div",{staticClass:"be-field-group"},[e("label",{staticClass:"be-label"},[t._v(t._s(t.t("years_experience_label")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.years_experience,expression:"form.years_experience"}],staticClass:"be-input be-input-short",attrs:{type:"number",min:"0",placeholder:"Ex: 5"},domProps:{value:t.form.years_experience},on:{input:function(e){e.target.composing||t.$set(t.form,"years_experience",e.target.value)}}})]),e("div",{staticClass:"be-field-row"},[e("div",{staticClass:"be-field-group be-field-grow"},[e("label",{staticClass:"be-label"},[t._v(t._s(t.t("region_label"))+" "),e("span",{staticClass:"be-required"},[t._v("*")])]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.region,expression:"form.region"}],staticClass:"be-select",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.form,"region",e.target.multiple?s:s[0])}}},[e("option",{attrs:{disabled:""},domProps:{value:null}},[t._v(t._s(t.t("select_placeholder")))]),t._l(t.regions,(function(s){return e("option",{key:s,domProps:{value:s}},[t._v(t._s(s))])}))],2)]),e("div",{staticClass:"be-field-group be-field-grow"},[e("label",{staticClass:"be-label"},[t._v(t._s(t.t("city_label")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.city,expression:"form.city"}],staticClass:"be-select",attrs:{disabled:!t.form.region},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.form,"city",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:"",disabled:""}},[t._v(t._s(t.form.region?t.t("select_placeholder"):t.t("select_region_first")))]),t._l(t.citiesForRegion,(function(s){return e("option",{key:s,domProps:{value:s}},[t._v(t._s(s))])}))],2)])]),e("div",{staticClass:"be-field-group"},[e("label",{staticClass:"be-label"},[t._v(t._s(t.t("address_label")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.location,expression:"form.location"}],staticClass:"be-input",attrs:{type:"text",placeholder:t.t("optional")},domProps:{value:t.form.location},on:{input:function(e){e.target.composing||t.$set(t.form,"location",e.target.value)}}})]),e("label",{staticClass:"be-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_mobile,expression:"form.is_mobile"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_mobile)?t._i(t.form.is_mobile,null)>-1:t.form.is_mobile},on:{change:function(e){var s=t.form.is_mobile,a=e.target,r=!!a.checked;if(Array.isArray(s)){var i=null,o=t._i(s,i);a.checked?o<0&&t.$set(t.form,"is_mobile",s.concat([i])):o>-1&&t.$set(t.form,"is_mobile",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.form,"is_mobile",r)}}}),e("span",{staticClass:"be-checkbox-mark"}),e("span",{staticClass:"be-checkbox-text"},[e(a["a"],{staticClass:"mr-1",attrs:{"x-small":"",color:"#EB9532"}},[t._v("mdi-motorbike")]),t._v(" "+t._s(t.t("can_travel")))],1)]),t.form.is_mobile?e("div",{staticClass:"be-field-group be-field-indent"},[e("label",{staticClass:"be-label"},[t._v(t._s(t.t("travel_radius")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.service_radius_km,expression:"form.service_radius_km"}],staticClass:"be-input be-input-short",attrs:{type:"number",min:"1",placeholder:"Ex: 30"},domProps:{value:t.form.service_radius_km},on:{input:function(e){e.target.composing||t.$set(t.form,"service_radius_km",e.target.value)}}})]):t._e(),e("div",{staticClass:"be-panel-actions"},[e("div"),e("button",{staticClass:"be-btn be-btn-primary",attrs:{disabled:!t.form.bio||(t.form.bio||"").length<20||!t.form.regi
3on},on:{click:function(e){t.step=2}}},[t._v(t._s(t.t("continue_btn"))+" "),e(a["a"],{staticClass:"ml-1",attrs:{small:"",color:"#fff"}},[t._v("mdi-arrow-right")])],1)])]):t._e()]),e("transition",{attrs:{name:"be-slide",mode:"out-in"}},[2===t.step?e("div",{key:"s2",staticClass:"be-panel"},[e("div",{staticClass:"be-panel-header"},[e("span",{staticClass:"be-panel-step-badge"},[t._v("02")]),e("h2",{staticClass:"be-panel-title"},[t._v(t._s(t.t("your_specialties")))]),e("p",{staticClass:"be-panel-desc"},[t._v(t._s(t.t("specialties_desc")))])]),t._l(t.parentCategories,(function(s){return e("div",{key:s.id,staticClass:"be-cat-group"},[e("h3",{staticClass:"be-cat-parent"},[t._v(t._s(s.name))]),e("div",{staticClass:"be-cat-children"},t._l(s.children||[],(function(s){return e("button",{key:s.id,class:["be-cat-chip",{selected:t.form.category_ids.includes(s.id)}],on:{click:function(e){return t.toggleCategory(s.id)}}},[t.form.category_ids.includes(s.id)?e(a["a"],{staticClass:"mr-1",attrs:{"x-small":"",color:"#388E3C"}},[t._v("mdi-check-circle")]):t._e(),t._v(" "+t._s(s.name)+" ")],1)})),0)])})),t.form.category_ids.length>0?e("div",{staticClass:"be-selection-count"},[e(a["a"],{attrs:{small:"",color:"#388E3C"}},[t._v("mdi-check-all")]),t._v(" "+t._s(t.form.category_ids.length)+" "+t._s(t.t("specialties")))],1):t._e(),e("div",{staticClass:"be-panel-actions"},[e("button",{staticClass:"be-btn be-btn-ghost",on:{click:function(e){t.step=1}}},[e(a["a"],{staticClass:"mr-1",attrs:{"x-small":""}},[t._v("mdi-arrow-left")]),t._v(" "+t._s(t.t("back_btn")))],1),e("button",{staticClass:"be-btn be-btn-primary",attrs:{disabled:0===t.form.category_ids.length},on:{click:function(e){t.step=3}}},[t._v(t._s(t.t("continue_btn"))+" "),e(a["a"],{staticClass:"ml-1",attrs:{small:"",color:"#fff"}},[t._v("mdi-arrow-right")])],1)])],2):t._e()]),e("transition",{attrs:{name:"be-slide",mode:"out-in"}},[3===t.step?e("div",{key:"s3",staticClass:"be-panel"},[e("div",{staticClass:"be-panel-header"},[e("span",{staticClass:"be-panel-step-badge"},[t._v("03")]),e("h2",{staticClass:"be-panel-title"},[t._v(t._s(t.t("your_rates")))]),e("p",{staticClass:"be-panel-desc"},[t._v(t._s(t.t("rates_desc")))])]),e("div",{staticClass:"be-rates-grid"},[e("div",{staticClass:"be-rate-card"},[e("div",{staticClass:"be-rate-card-icon"},[e(a["a"],{attrs:{color:"#388E3C"}},[t._v("mdi-clock-outline")])],1),e("label",{staticClass:"be-label"},[t._v(t._s(t.t("hourly_rate_label")))]),e("div",{staticClass:"be-rate-input-wrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.hourly_rate,expression:"form.hourly_rate"}],staticClass:"be-input",attrs:{type:"number",min:"0",placeholder:"0"},domProps:{value:t.form.hourly_rate},on:{input:function(e){e.target.composing||t.$set(t.form,"hourly_rate",e.target.value)}}}),e("span",{staticClass:"be-rate-suffix"},[t._v("XAF/h")])])]),e("div",{staticClass:"be-rate-card"},[e("div",{staticClass:"be-rate-card-icon"},[e(a["a"],{attrs:{color:"#EB9532"}},[t._v("mdi-calendar-outline")])],1),e("label",{staticClass:"be-label"},[t._v(t._s(t.t("daily_rate_label")))]),e("div",{staticClass:"be-rate-input-wrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.daily_rate,expression:"form.daily_rate"}],staticClass:"be-input",attrs:{type:"number",min:"0",placeholder:"0"},domProps:{value:t.form.daily_rate},on:{input:function(e){e.target.composing||t.$set(t.form,"daily_rate",e.target.value)}}}),e("span",{staticClass:"be-rate-suffix"},[t._v("XAF/jour")])])])]),e("div",{staticClass:"be-rates-hint"},[e(a["a"],{attrs:{"x-small":"",color:"#9CA09C"}},[t._v("mdi-information-outline")]),t._v(" "+t._s(t.t("rates_hint")))],1),e("div",{staticClass:"be-panel-actions"},[e("button",{staticClass:"be-btn be-btn-ghost",on:{click:function(e){t.step=2}}},[e(a["a"],{staticClass:"mr-1",attrs:{"x-small":""}},[t._v("mdi-arrow-left")]),t._v(" "+t._s(t.t("back_btn")))],1),e("button",{staticClass:"be-btn be-btn-primary",on:{click:function(e){t.step=4}}},[t._v(t._s(t.t("continue_btn"))+" "),e(a["a"],{staticClass:"ml-1",attrs:{small:"",color:"#fff"}},[t._v("mdi-arrow-right")])],1)])]):t._e()]),e("transition",{attrs:{name:"be-slide",mode:"out-in"}}
3,[4===t.step?e("div",{key:"s4",staticClass:"be-panel"},[e("div",{staticClass:"be-panel-header"},[e("span",{staticClass:"be-panel-step-badge"},[t._v("04")]),e("h2",{staticClass:"be-panel-title"},[t._v(t._s(t.t("summary")))]),e("p",{staticClass:"be-panel-desc"},[t._v(t._s(t.t("summary_desc")))])]),e("div",{staticClass:"be-summary"},[e("div",{staticClass:"be-summary-section"},[e("div",{staticClass:"be-summary-label"},[t._v(t._s(t.t("summary_bio")))]),e("div",{staticClass:"be-summary-value"},[t._v(t._s(t.form.bio))])]),e("div",{staticClass:"be-summary-section"},[e("div",{staticClass:"be-summary-label"},[t._v(t._s(t.t("summary_location")))]),e("div",{staticClass:"be-summary-value"},[t._v(t._s(t.form.region)+t._s(t.form.city?", "+t.form.city:"")),t.form.is_mobile?e("span",{staticClass:"be-summary-tag"},[e(a["a"],{attrs:{"x-small":"",color:"#EB9532"}},[t._v("mdi-motorbike")]),t._v(" Mobile ("+t._s(t.form.service_radius_km||"?")+" km)")],1):t._e()])]),e("div",{staticClass:"be-summary-section"},[e("div",{staticClass:"be-summary-label"},[t._v(t._s(t.t("summary_specialties")))]),e("div",{staticClass:"be-summary-chips"},t._l(t.form.category_ids,(function(s){return e("span",{key:s,staticClass:"be-summary-chip"},[t._v(t._s(t.getCategoryName(s)))])})),0)]),e("div",{staticClass:"be-summary-section"},[e("div",{staticClass:"be-summary-label"},[t._v(t._s(t.t("summary_rates")))]),e("div",{staticClass:"be-summary-value"},[t.form.hourly_rate?e("span",[t._v(t._s(Number(t.form.hourly_rate).toLocaleString())+" XAF/h")]):t._e(),t.form.hourly_rate&&t.form.daily_rate?e("span",[t._v(" ⢠")]):t._e(),t.form.daily_rate?e("span",[t._v(t._s(Number(t.form.daily_rate).toLocaleString())+" XAF/jour")]):t._e(),t.form.hourly_rate||t.form.daily_rate?t._e():e("span",{staticClass:"be-summary-muted"},[t._v(t._s(t.t("negotiable")))])])])]),t.error?e("div",{staticClass:"be-error"},[e(a["a"],{attrs:{small:"",color:"#E53E3E"}},[t._v("mdi-alert-circle")]),t._v(" "+t._s(t.error))],1):t._e(),e("div",{staticClass:"be-panel-actions"},[e("button",{staticClass:"be-btn be-btn-ghost",on:{click:function(e){t.step=3}}},[e(a["a"],{staticClass:"mr-1",attrs:{"x-small":""}},[t._v("mdi-arrow-left")]),t._v(" "+t._s(t.t("back_btn")))],1),e("button",{staticClass:"be-btn be-btn-submit",attrs:{disabled:t.loading},on:{click:t.submit}},[t.loading?[e("div",{staticClass:"be-spinner"}),t._v(" "+t._s(t.t("creating")))]:[e(a["a"],{staticClass:"mr-1",attrs:{small:"",color:"#fff"}},[t._v("mdi-check-bold")]),t._v(" "+t._s(t.t("create_profile")))]],2)])]):t._e()])],1)])])]:e("div",{staticClass:"be-gate"},[e("div",{staticClass:"be-gate-card"},[e("div",{staticClass:"be-gate-illustration"},[t._m(0),e(a["a"],{attrs:{size:"48",color:"#388E3C"}},[t._v("mdi-account-plus-outline")])],1),e("h1",{staticClass:"be-gate-title"},[t._v(t._s(t.t("join_network")))]),e("p",{staticClass:"be-gate-desc"},[t._v(t._s(t.t("login_required_desc")))]),e("button",{staticClass:"be-btn be-btn-primary be-btn-lg",on:{click:function(e){return t.$router.push("/login")}}},[e(a["a"],{attrs:{small:"",color:"#fff"}},[t._v("mdi-login")]),t._v(" "+t._s(t.t("login_btn")))],1),e("button",{staticClass:"be-btn be-btn-ghost",on:{click:function(e){return t.$router.push("/experts")}}},[t._v(t._s(t.t("explore_experts")))])])])],2)}),i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"be-gate-circle"},[e("div",{staticClass:"be-gate-circle-inner"})])}],o=(s("f665"),s("7d54"),{name:"BecomeExpert",metaInfo:{title:"Devenir Expert - Jangolo"},data(){return{step:1,loading:!1,success:!1,error:null,alreadyExpert:!1,parentCategories:[],allCategories:[],selectedCategoryIndices:{},form:{bio:"",years_experience:null,region:null,city:"",location:"",is_mobile:!1,service_radius_km:null,hourly_rate:null,daily_rate:null,category_ids:[]},regions:["Adamaoua","Centre","Est","Extrême-Nord","Littoral","Nord","Nord-Ouest","Ouest","Sud","Sud-Ouest"],citiesByRegion:{Adamaoua:["Ngaoundéré","Meiganga","Banyo","Tibati","Tignere","Djohong","Kontcha","Belel"],Centre:["Yaoundé","Mbalmayo","Obala","Monatele","Nanga Eboko","Esse","Akonolinga","Mfou","Soa","Ngoumou","Okola","Ntui"],Est:["Bertoua","Batouri","Abong-Mbang","Yokadouma","Moloundou","Garoua-Boulaï","Belabo","Doumé"],"Extrême-Nord":["Maroua","Kousséri","Mokolo","Mora","Yagoua","Kaélé","Maga","Waza","Mindif","Guidiguis"],Littoral:["Douala","Nkongsamba","Edea","Ãdéa","Loum","Manjo","Mbanga","Dizangué","Yabassi","Penja"],Nord:["Garoua","Guider","Figuil","Poli","Tcholliré","Pitoa","Lagdo","Rey Bouba","Bibemi"],"Nord-Ouest":["Bamenda","Kumbo","Ndop","Wum","Nkambe","Bali","Fundong","Mbengwi","Bafut","Jakiri"],Ouest:["Bafoussam","Dschang","Mbouda","Foumban","Bangangté","Bandjoun","Bafang","Foumbot","Galim","Tonga"],Sud:["Ebolowa","Kribi","Sangmélima","Ambam","Lolodorf","Mvangan","Campo","Akom II"],"Sud-Ouest":["Buea","Limbe","Kumba","Mamfe","Tiko","Muyuka","Mundemba","Bangem","Fontem","Tombel"]}}},computed:{isLoggedIn(){return this.$store.getters.isLoggedIn}
3,citiesForRegion(){return this.form.region&&this.citiesByRegion[this.form.region]||[]},steps(){return[{label:this.t("step_profile"),hint:this.t("step_profile_hint")},{label:this.t("step_specialties"),hint:this.t("step_specialties_hint")},{label:this.t("step_rates"),hint:this.t("step_rates_hint")},{label:this.t("step_confirm"),hint:this.t("step_confirm_hint")}]}},watch:{"form.region"(){this.form.city=""}},mounted(){this.fetchCategories(),this.isLoggedIn&&this.checkExistingProfile()},methods:{t(t){return this.$vuetify.lang.t("$vuetify.expert."+t)},async fetchCategories(){try{const t=await window.axios.get("https://expert-api.jangolo.com/categories"),e=t.data.data||t.data;this.parentCategories=e,this.allCategories=[],e.forEach(t=>{this.allCategories.push(t),t.children&&t.children.forEach(t=>this.allCategories.push(t))})}catch(t){}},async checkExistingProfile(){try{await window.axios.get("https://expert-api.jangolo.com/experts/me"),this.alreadyExpert=!0}catch(t){this.alreadyExpert=!1}},toggleCategory(t){const e=this.form.category_ids.indexOf(t);e>=0?this.form.category_ids.splice(e,1):this.form.category_ids.push(t)},getCategoryName(t){const e=this.allCategories.find(e=>e.id===t);return e?e.name:"..."},async submit(){this.loading=!0,this.error=null;try{const t={...this.form};t.hourly_rate||delete t.hourly_rate,t.daily_rate||delete t.daily_rate,t.years_experience||delete t.years_experience,t.service_radius_km||delete t.service_radius_km,await window.axios.post("https://expert-api.jangolo.com/experts/register",t),this.success=!0}catch(t){if(t.response&&409===t.response.status)this.error="Vous avez déjà un profil expert.",this.alreadyExpert=!0;else if(t.response&&t.response.data&&t.response.data.errors){const e=Object.values(t.response.data.errors)[0];this.error=Array.isArray(e)?e[0]:e}else t.response&&t.response.data&&t.response.data.message?this.error=t.response.data.message:this.error="Une erreur est survenue."}this.loading=!1}}}),n=o,l=(s("0eaa"),s("2877")),c=Object(l["a"])(n,r,i,!1,null,"72531857",null);e["default"]=c.exports},4804:function(t,e,s){},"55b4":function(t,e,s){},"5cf3":function(t,e,s){"use strict";s.r(e);var a=s("a523"),r=s("132d"),i=(s("14d9"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"xp"},[t.loading?e("div",{staticClass:"xp-loading"},[e("div",{staticClass:"xp-loading-spinner"})]):t.expert?[e("div",{staticClass:"xp-header"},[e("div",{staticClass:"xp-header-grain"}),e(a["a"],{staticClass:"xp-header-inner"},[e("div",{staticClass:"xp-header-nav"},[e("button",{staticClass:"xp-back",on:{click:function(e){return t.$router.push("/experts")}}},[e(r["a"],{attrs:{small:"",color:"#fff"}},[t._v("mdi-arrow-left")]),t._v(" "+t._s(t.t("back")))],1),t.isOwnProfile?e("button",{staticClass:"xp-edit-btn",on:{click:function(e){return t.$router.push("/experts/me/edit")}}},[e(r["a"],{attrs:{small:"",color:"#fff"}},[t._v("mdi-pencil")]),t._v(" "+t._s(t.t("edit_profile")))],1):t._e()]),e("div",{staticClass:"xp-header-content"},[e("div",{staticClass:"xp-avatar"},[e("span",[t._v(t._s(t.getInitials()))])]),e("div",{staticClass:"xp-header-info"},[e("div",{staticClass:"xp-header-top-row"},[e("h1",{staticClass:"xp-name"},[t._v(t._s(t.expert.user?t.expert.user.firstname+" "+t.expert.user.lastname:"Expert"))]),e("div",{staticClass:"xp-badges"},["VERIFIED"===t.expert.verification_status?e("span",{staticClass:"xp-badge xp-badge-verified"},[e(r["a"],{attrs:{"x-small":"",color:"#388E3C"}},[t._v("mdi-check-decagram")]),t._v(" "+t._s(t.t("verified")))],1):t._e(),t.expert.is_mobile?e("span",{staticClass:"xp-badge xp-badge-mobile"},[e(r["a"],{attrs:{"x-small":"",color:"#EB9532"}},[t._v("mdi-motorbike")]),t._v(" "+t._s(t.t("mobile")))],1):t._e()])]),e("div",{staticClass:"xp-location"},[e(r["a"],{attrs:{"x-small":"",color:"rgba(255,255,255,0.5)"}},[t._v("mdi-map-marker")]),t._v(" "+t._s(t.expert.location||t.expert.region||"Cameroun")+t._s(t.expert.city?", "+t.expert.city:""))],1),e("div",{staticClass:"xp-header-stats"},[e("div",{staticClass:"xp-hstat"},[e("span",{staticClass:"xp-hstat-star"},[t._v("â
")]),e("span",{staticClass:"xp-hstat-val"},[t._v(t._s(t.expert.rating_avg>0?Number(t.expert.rating_avg).toFixed(1):"â"))]),e("span",{staticClass:"xp-hstat-label"},[t._v("("+t._s(t.expert.rating_count||0)+" "+t._s(t.t("reviews"))+")")])]),e("div",{staticClass:"xp-hstat-sep"}),e("div",{staticClass:"xp-hstat"},[e("span",{staticClass:"xp-hstat-val"},[t._v(t._s(t.expert.completed_bookings||0))]),e("span",{staticClass:"xp-hstat-label"},[t._v(t._s(t.t("missions")))])]),t.expert.years_experience?[e("div",{staticClass:"xp-hstat-sep"}),e("div",{staticClass:"xp-hstat"},[e("span",{staticClass:"xp-hstat-val"},[t._v(t._s(t.expert.years_experience))]),e("span",{staticClass:"xp-hstat-label"}
3,[t._v(t._s(t.t("years_exp")))])])]:t._e()],2)])])])],1),e(a["a"],{staticClass:"xp-body"},[e("div",{staticClass:"xp-layout"},[e("div",{staticClass:"xp-main"},[e("section",{staticClass:"xp-section"},[e("h2",{staticClass:"xp-section-title"},[t._v(t._s(t.t("about")))]),e("p",{staticClass:"xp-bio"},[t._v(t._s(t.expert.bio||t.t("no_bio")))])]),t.expert.categories&&t.expert.categories.length?e("section",{staticClass:"xp-section"},[e("h2",{staticClass:"xp-section-title"},[t._v(t._s(t.t("specialties")))]),e("div",{staticClass:"xp-specialties"},t._l(t.expert.categories,(function(s){return e("span",{key:s.id,staticClass:"xp-specialty"},[t._v(t._s(s.name))])})),0)]):t._e(),t.expert.service_offerings&&t.expert.service_offerings.length?e("section",{staticClass:"xp-section"},[e("h2",{staticClass:"xp-section-title"},[t._v(t._s(t.t("services_offered")))]),e("div",{staticClass:"xp-offerings"},t._l(t.expert.service_offerings,(function(s){return e("div",{key:s.id,staticClass:"xp-offering"},[e("div",{staticClass:"xp-offering-info"},[e("h4",{staticClass:"xp-offering-title"},[t._v(t._s(s.title))]),s.description?e("p",{staticClass:"xp-offering-desc"},[t._v(t._s(s.description))]):t._e()]),e("div",{staticClass:"xp-offering-price"},["FIXED"===s.price_type?[t._v(t._s(Number(s.price_amount).toLocaleString())+" "),e("small",[t._v(t._s(s.currency))])]:"HOURLY"===s.price_type?[t._v(t._s(Number(s.price_amount).toLocaleString())+" "),e("small",[t._v(t._s(s.currency)+"/h")])]:"DAILY"===s.price_type?[t._v(t._s(Number(s.price_amount).toLocaleString())+" "),e("small",[t._v(t._s(s.currency)+"/j")])]:[e("span",{staticClass:"xp-offering-nego"},[t._v(t._s(t.t("negotiable")))])]],2)])})),0)]):t._e(),e("section",{staticClass:"xp-section"},[e("h2",{staticClass:"xp-section-title"},[t._v(t._s(t.t("reviews"))+" "),e("span",{staticClass:"xp-section-count"},[t._v("("+t._s(t.reviews.length)+")")])]),0===t.reviews.length?e("div",{staticClass:"xp-reviews-empty"},[e(r["a"],{attrs:{color:"#ddd"}},[t._v("mdi-comment-text-outline")]),e("span",[t._v(t._s(t.t("no_reviews")))])],1):e("div",{staticClass:"xp-reviews"},t._l(t.reviews,(function(s){return e("div",{key:s.id,staticClass:"xp-review"},[e("div",{staticClass:"xp-review-header"},[e("div",{staticClass:"xp-review-stars"},t._l(5,(function(a){return e("span",{key:a,class:["xp-star",{filled:a<=s.rating}]},[t._v("â
")])})),0),e("span",{staticClass:"xp-review-author"},[t._v(t._s(s.client?s.client.firstname:t.t("anonymous")))])]),e("p",{staticClass:"xp-review-text"},[t._v(t._s(s.comment||t.t("no_comment")))]),s.expert_response?e("div",{staticClass:"xp-review-response"},[e("span",{staticClass:"xp-review-response-label"},[t._v(t._s(t.t("expert_response")))]),e("p",[t._v(t._s(s.expert_response))])]):t._e()])})),0)])]),e("aside",{staticClass:"xp-sidebar"},[e("div",{staticClass:"xp-sidebar-card xp-sidebar-sticky"},[e("div",{staticClass:"xp-rates"},[t.expert.hourly_rate?e("div",{staticClass:"xp-rate"},[e("span",{staticClass:"xp-rate-label"},[t._v(t._s(t.t("hourly_rate")))]),e("span",{staticClass:"xp-rate-value"},[t._v(t._s(Number(t.expert.hourly_rate).toLocaleString())+" "),e("small",[t._v("XAF")])])]):t._e(),t.expert.daily_rate?e("div",{staticClass:"xp-rate"},[e("span",{staticClass:"xp-rate-label"},[t._v(t._s(t.t("daily_rate")))]),e("span",{staticClass:"xp-rate-value"},[t._v(t._s(Number(t.expert.daily_rate).toLocaleString())+" "),e("small",[t._v("XAF")])])]):t._e(),t.expert.hourly_rate||t.expert.daily_rate?t._e():e("div",{staticClass:"xp-rate"},[e("span",{staticClass:"xp-rate-label"},[t._v(t._s(t.t("rate_label")))]),e("span",{staticClass:"xp-rate-value xp-rate-nego"},[t._v(t._s(t.t("negotiable")))])])]),e("div",{staticClass:"xp-sidebar-divider"}),e("div",{staticClass:"xp-info-list"},[t.expert.availability_status?e("div",{staticClass:"xp-info-row"},[e("span",{staticClass:"xp-info-dot",style:{background:"AVAILABLE"===t.expert.availability_status?"#4CAF50":"BUSY"===t.expert.availability_status?"#F5A623":"#ccc"}}),e("span",[t._v(t._s("AVAILABLE"===t.expert.availability_status?t.t("available_now"):"BUSY"===t.expert.availability_status?t.t("busy"):t.t("unavailable")))])]):t._e(),t.expert.service_radius_km?e("div",{staticClass:"xp-info-row"},[e(r["a"],{attrs:{"x-small":"",color:"#999"}},[t._v("mdi-map-marker-radius")]),e("span",[t._v("Rayon de "+t._s(t.expert.service_radius_km)+" km")])],1):t._e()]),t.expert.coverage_zones&&t.expert.coverage_zones.length?e("div",{staticClass:"xp-coverage"},[e("h4",{staticClass:"xp-coverage-title"},[t._v(t._s(t.t("coverage_zones")))]),e("div",{staticClass:"xp-coverage-tags"},t._l(t.expert.coverage_zones,(function(s){return e("span",{key:s.id,staticClass:"xp-coverage-tag"},[t._v(t._s(s.region)+t._s(s.city?" / "+s.city:""))])})),0)]):t._e(),e("div",{staticClass:"xp-sidebar-divider"}),t.expert.user&&t.expert.user.telephone?e("div",{staticClass:"xp-contact-phone"},[e(r["a"],{attrs:{"x-small":"",color:"#999"}},[t._v("mdi-phone")]),e("a",{attrs:{href:"tel:"+t.expert.user.telephone}},[t._v(t._s(t.expert.user.telephone))])],1):t._e(),e("a",{staticClass:"xp-wa-btn",attrs:{href:t.whatsappLink,target:"_blank"}},[e(r["a"],{attrs:{color:"#fff",small:""}},[t._v("mdi-whatsapp")]),t._v(" "+t._s(t.t("contact_whatsapp")))],1)])])])])]:e("div",{staticClass:"xp-empty"},[e(r["a"],{attrs:{size:"48",color:"#ccc"}},[t._v("mdi-account-off-outline")]),e("h3",[t._v(t._s(t.t("not_found")))])],1
3)],2)}),o=[],n=s("ba7c"),l={name:"ExpertProfile",metaInfo(){return{title:this.expert?(this.expert.user?this.expert.user.firstname+" "+this.expert.user.lastname:"Expert")+" - Jangolo":"Expert - Jangolo"}},data(){return{expert:null,reviews:[],loading:!0}},computed:{whatsappLink(){if(!this.expert||!this.expert.user)return"#";const t=this.expert.user.mobile||this.expert.user.telephone||"",e=t.replace(/[^0-9]/g,""),s=9===e.length&&e.startsWith("6")?"237"+e:e;return`https://wa.me/${s}?text=${encodeURIComponent(this.t("whatsapp_message"))}`},isOwnProfile(){if(!this.expert||!this.expert.user||!this.$store.getters.isLoggedIn)return!1;try{const t=localStorage.getItem("user");if(t){const e=Object(n["a"])(t);return e&&e.id===this.expert.user.id}}catch(t){}return!1}},mounted(){this.fetchExpert()},methods:{t(t){return this.$vuetify.lang.t("$vuetify.expert."+t)},async fetchExpert(){try{const t=await this.$http.get("https://expert-api.jangolo.com/experts/"+this.$route.params.id);this.expert=t.data.data||t.data,this.fetchReviews(this.$route.params.id)}catch(t){}this.loading=!1},async fetchReviews(t){try{const e=await this.$http.get("https://expert-api.jangolo.com/experts/"+t+"/reviews");this.reviews=e.data.data||e.data}catch(e){}},getInitials(){return this.expert&&this.expert.user?(this.expert.user.firstname||"").charAt(0)+(this.expert.user.lastname||"").charAt(0):"?"}}},c=l,u=(s("1dac"),s("2877")),d=Object(u["a"])(c,i,o,!1,null,"8b3e2954",null);e["default"]=d.exports},7042:function(t,e,s){"use strict";s.r(e);var a=s("8336"),r=s("a523"),i=s("132d"),o=(s("14d9"),s("e9f5"),s("ab43"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"xd"},[e("div",{staticClass:"xd-hero"},[e("div",{staticClass:"xd-hero-grain"}),e(r["a"],{staticClass:"xd-hero-inner"},[e("div",{staticClass:"xd-hero-badge"},[e("span",{staticClass:"xd-hero-badge-dot"}),t._v(" "+t._s(t.t("hero_badge"))+" ")]),e("h1",{staticClass:"xd-hero-title"},[t._v(" "+t._s(t.t("hero_title_1"))),e("br"),e("span",{staticClass:"xd-hero-accent"},[t._v(t._s(t.t("hero_title_2")))])]),e("p",{staticClass:"xd-hero-desc"},[t._v(t._s(t.t("hero_desc")))]),e("div",{staticClass:"xd-hero-actions"},[t.isExpert?e(a["a"],{staticClass:"xd-btn-cta",attrs:{large:"",dark:"",color:"#388E3C",depressed:"",to:"/experts/me/edit"}},[e(i["a"],{attrs:{left:""}},[t._v("mdi-pencil")]),t._v(" "+t._s(t.t("edit_profile"))+" ")],1):e(a["a"],{staticClass:"xd-btn-cta",attrs:{large:"",dark:"",color:"#388E3C",depressed:"",to:"/become-expert"}},[e(i["a"],{attrs:{left:""}},[t._v("mdi-account-plus")]),t._v(" "+t._s(t.t("become_expert"))+" ")],1),e("div",{staticClass:"xd-hero-stat"},[e("span",{staticClass:"xd-hero-stat-num"},[t._v(t._s(t.totalExperts)+"+")]),e("span",{staticClass:"xd-hero-stat-label"},[t._v(t._s(t.t("active_experts")))])])],1)])],1),e(r["a"],{staticClass:"xd-body"},[e("div",{staticClass:"xd-search"},[e("div",{staticClass:"xd-search-inner"},[e(i["a"],{staticClass:"xd-search-icon",attrs:{color:"#388E3C"}},[t._v("mdi-magnify")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"xd-search-input",attrs:{type:"text",placeholder:t.t("search_placeholder")},domProps:{value:t.search},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.fetchExperts.apply(null,arguments)},input:function(e){e.target.composing||(t.search=e.target.value)}}}),e("button",{staticClass:"xd-search-btn",on:{click:t.fetchExperts}},[t._v(t._s(t.t("search_btn")))])],1)]),e("div",{staticClass:"xd-filters"},[e("div",{staticClass:"xd-filters-left"},t._l(t.parentCategories,(function(s){return e("button",{key:s.id,class:["xd-filter-chip",{active:t.selectedCategory===s.id}],on:{click:function(e){t.selectedCategory=t.selectedCategory===s.id?null:s.id,t.fetchExperts()}}},[t._v(" "+t._s(s.name)+" ")])})),0),e("div",{staticClass:"xd-filters-right"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedRegion,expression:"selectedRegion"}],staticClass:"xd-select",on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedRegion=e.target.multiple?s:s[0]},t.fetchExperts]}},[e("option",{domProps:{value:null}},[t._v(t._s(t.t("all_regions")))]),t._l(t.regions,(function(s){return e("option",{key:s,domProps:{value:s}},[t._v(t._s(s))])}))],2),e("button",{class:["xd-toggle",{active:t.quickFilters.includes("available")}],on:{click:function(e){return t.toggleFilter("available")}}},[e("span",{staticClass:"xd-toggle-dot",style:{background:t.quickFilters.includes("available")?"#4CAF50":"#ccc"}}),t._v(" "+t._s(t.t("filter_available"))+" ")]),e("button",{class:["xd-toggle",{active:t.quickFilters.includes("verified")}],on:{click:function(e){return t.toggleFilter("verified")}}},[e(i["a"],{attrs:{"x-small":"",color:t.quickFilters.includes("verified")?"#388E3C":"#999"}},[t._v("mdi-shield-check")]),t._v(" "+t._s(t.t("filter_verified"))+" ")],1)])]),t.loading?e("div",{staticClass:"xd-loading"},[e("div",{staticClass:"xd-loading-spinner"}),e("span",[t._v(t._s(t.t("searching")))])]):e("div",{staticClass:"xd-grid"},t._l(t.experts,(function(s,a){return e("div",{key:s.id,staticClass:"xd-card",style:{animationDelay:60*a+"ms"},on:{click:function(e){return t.$router.push("/experts/"+s.id)}}},[e("div",{staticClass:"xd-card-top"},[e("div",{staticClass:"xd-card-avatar",style:{background:t.avatarColor(a)}},[t._v(" "+t._s(t.getInitials(s))+" ")]),e("div",{staticClass:"xd-card-identity"},[e("h3",{staticClass:"xd-card-name"},[t._v(t._s(s.user?s.user.firstname+" "+s.user.lastname:"Expert"))]),e("span",{staticClass:"xd-card-loc"},[e(i["a"],{attrs:{"x-small":"",color:"#999"}},[t._v("mdi-map-marker")]),t._v(" "+t._s(s.region||"Cameroun")+t._s(s.city?", "+s.city:"")+" ")],1)]),"VERIFIED"===s.verification_status?e("div",{staticClass:"xd-card-badge",attrs:{title:"Profil vérifié"}},[e(i["a"],{attrs:{small:"",color:"#388E3C"}},[t._v("mdi-check-decagram")])],1):t._e()]),e("div",{staticClass:"xd-card-tags"}
3,[t._l((s.categories||[]).slice(0,2),(function(s){return e("span",{key:s.id,staticClass:"xd-tag"},[t._v(t._s(s.name))])})),(s.categories||[]).length>2?e("span",{staticClass:"xd-tag xd-tag-more"},[t._v("+"+t._s(s.categories.length-2))]):t._e()],2),e("p",{staticClass:"xd-card-bio"},[t._v(t._s(s.bio||t.t("no_description")))]),e("div",{staticClass:"xd-card-stats"},[s.rating_avg>0?e("div",{staticClass:"xd-stat"},[e("span",{staticClass:"xd-stat-star"},[t._v("â
")]),e("span",{staticClass:"xd-stat-val"},[t._v(t._s(Number(s.rating_avg).toFixed(1)))]),e("span",{staticClass:"xd-stat-sub"},[t._v("("+t._s(s.rating_count)+")")])]):e("div",{staticClass:"xd-stat"},[e("span",{staticClass:"xd-stat-sub"},[t._v(t._s(t.t("new_label")))])]),e("div",{staticClass:"xd-stat"},[e("span",{staticClass:"xd-stat-val"},[t._v(t._s(s.completed_bookings||0))]),e("span",{staticClass:"xd-stat-sub"},[t._v(t._s(t.t("missions")))])]),s.is_mobile?e("div",{staticClass:"xd-stat"},[e(i["a"],{attrs:{"x-small":"",color:"#EB9532"}},[t._v("mdi-motorbike")]),e("span",{staticClass:"xd-stat-sub"}
3,[t._v(t._s(t.t("mobile")))])],1):t._e()]),e("div",{staticClass:"xd-card-footer"},[e("span",{staticClass:"xd-card-price"},[s.hourly_rate?[t._v(t._s(Number(s.hourly_rate).toLocaleString())+" "),e("small",[t._v("XAF/h")])]:s.daily_rate?[t._v(t._s(Number(s.daily_rate).toLocaleString())+" "),e("small",[t._v("XAF/j")])]:[e("span",{staticClass:"xd-card-price-nego"},[t._v(t._s(t.t("negotiable")))])]],2),e("span",{staticClass:"xd-card-arrow"},[t._v("â")])])])})),0),t.loading||0!==t.experts.length?t._e():e("div",{staticClass:"xd-empty"},[e("div",{staticClass:"xd-empty-icon"},[e(i["a"],{attrs:{size:"48",color:"#ccc"}},[t._v("mdi-account-search-outline")])],1),e("h3",[t._v(t._s(t.t("no_expert_found")))]),e("p",[t._v(t._s(t.t("no_expert_hint")))])]),t.totalPages>1?e("div",{staticClass:"xd-pagination"},t._l(t.totalPages,(function(s){return e("button",{key:s,class:["xd-page-btn",{active:s===t.page}],on:{click:function(e){t.page=s,t.fetchExperts()}}},[t._v(t._s(s))])})),0):t._e()])],1)}),n=[],l=s("1320"),c=s.n(l);const u="expert_profiles";var d={name:"ExpertDirectory",metaInfo:{title:"Trouvez un Expert - Jangolo"},data(){return{experts:[],categories:[],parentCategories:[],loading:!1,search:"",isExpert:!1,selectedCategory:null,selectedRegion:null,quickFilters:[],page:1,totalPages:1,totalExperts:0,regions:["Adamaoua","Centre","Est","Extrême-Nord","Littoral","Nord","Nord-Ouest","Ouest","Sud","Sud-Ouest"]}},mounted(){this.fetchCategories(),this.fetchExperts(),this.checkExpertStatus()},watch:{search(){clearTimeout(this._searchDebounce),this._searchDebounce=setTimeout(()=>{this.page=1,this.fetchExperts()},300)}},beforeDestroy(){clearTimeout(this._searchDebounce)},methods:{t(t){return this.$vuetify.lang.t("$vuetify.expert."+t)},async checkExpertStatus(){if(this.$store.getters.isLoggedIn)try{await window.axios.get("https://expert-api.jangolo.com/experts/me"),this.isExpert=!0}catch(t){this.isExpert=!1}},toggleFilter(t){const e=this.quickFilters.indexOf(t);e>=0?this.quickFilters.splice(e,1):this.quickFilters.push(t),this.fetchExperts()},avatarColor(t){return["#E8F5E9","#FFF3E0","#E0F2F1","#FBE9E7","#F3E5F5","#E8EAF6","#FFFDE7","#EFEBE9"][t%8]},getAlgoliaIndex(){const t="MSZ95Q6M6D",e="2a24fced8e11300986314245c098aefb";return t&&e?(this._algoliaIndex||(this._algoliaIndex=c()(t,e).initIndex(u)),this._algoliaIndex):null},async fetchCategories(){const t=this.getAlgoliaIndex();if(t)try{const e=await t.search("",{facets:["parent_categories"],hitsPerPage:0}),s=e.facets&&e.facets.parent_categories||{};this.parentCategories=Object.entries(s).sort((t,e)=>e[1]-t[1]).map(([t,e])=>({id:t,name:t,count:e})),this.totalExperts=e.nbHits||0}catch(e){}},buildAlgoliaFilters(){const t=[];return this.selectedCategory&&t.push(`parent_categories:"${this.selectedCategory}"`),this.selectedRegion&&t.push(`region:"${this.selectedRegion}"`),this.quickFilters.includes("available")&&t.push('availability_status:"AVAILABLE"'),this.quickFilters.includes("verified")&&t.push('verification_status:"VERIFIED"'),this.quickFilters.includes("mobile")&&t.push("is_mobile:true"),t.join(" AND ")},async fetchExperts(){this.loading=!0;try{const t=this.getAlgoliaIndex();if(!t)return this.experts=[],void(this.totalPages=1);const e={page:this.page-1,hitsPerPage:15},s=this.buildAlgoliaFilters();s&&(e.filters=s);const{hits:a,nbPages:r}=await t.search(this.search||"",e);this.experts=a.map(this.normalizeAlgoliaHit),this.totalPages=r||1}catch(t){}this.loading=!1},normalizeAlgoliaHit(t){return{id:t.id,user:{id:t.user_id,firstname:t.firstname,lastname:t.lastname},bio:t.bio,slug:t.slug,availability_status:t.availability_status,hourly_rate:t.hourly_rate,daily_rate:t.daily_rate,years_experience:t.years_experience,verification_status:t.verification_status,rating_avg:t.rating_avg,rating_count:t.rating_count,is_mobile:t.is_mobile,location:t.location,region:t.region,city:t.city,completed_bookings:t.completed_bookings,categories:(t.categories||[]).map(t=>({name:t}))}},getInitials(t){return t.user?(t.user.firstname||"").charAt(0)+(t.user.lastname||"").charAt(0):"?"}}},p=d,m=(s("0398"),s("2877")),v=Object(m["a"])(p,o,n,!1,null,"bb74fd22",null);e["default"]=v.exports},"7a67":function(t,e,s){"use strict";s.r(e);var a=s("a523"),r=s("132d"),i=(s("14d9"),s("e9f5"),s("ab43"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"ep"},[t.loading?e("div",{staticClass:"ep-loading"},[e("div",{staticClass:"ep-spinner"})]):t.profile?[e("div",{staticClass:"ep-header"},[e("div",{staticClass:"ep-header-grain"}),e(a["a"],{staticClass:"ep-header-inner"},[e("button",{staticClass:"ep-back",on:{click:function(e){return t.$router.push("/experts/"+t.profile.id)}}},[e(r["a"],{attrs:{"x-small":"",color:"rgba(255,255,255,0.6)"}},[t._v("mdi-arrow-left")]),t._v(" "+t._s(t.t("back_to_profile")))],1),e("h1",{staticClass:"ep-header-title"},[t._v(t._s(t.t("edit_title")))]),e("p",{staticClass:"ep-header-desc"}
3,[t._v(t._s(t.t("edit_desc")))])])],1),e(a["a"],{staticClass:"ep-body"},[e("div",{staticClass:"ep-layout"},[e("div",{staticClass:"ep-main"},[e("section",{staticClass:"ep-section"},[e("h2",{staticClass:"ep-section-title"},[t._v(t._s(t.t("availability")))]),e("div",{staticClass:"ep-availability-row"},t._l(t.availabilityOptions,(function(s){return e("button",{key:s.value,class:["ep-avail-btn",{active:t.form.availability_status===s.value}],style:t.form.availability_status===s.value?{borderColor:s.color,background:s.bg}:{},on:{click:function(e){t.form.availability_status=s.value}}},[e("span",{staticClass:"ep-avail-dot",style:{background:s.color}}),t._v(" "+t._s(s.label)+" ")])})),0)]),e("section",{staticClass:"ep-section"},[e("h2",{staticClass:"ep-section-title"},[t._v(t._s(t.t("about")))]),e("div",{staticClass:"ep-field"},[e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("bio_label")))]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.bio,expression:"form.bio"}],staticClass:"ep-textarea",attrs:{rows:"5",placeholder:t.t("bio_placeholder")},domProps:{value:t.form.bio},on:{input:function(e){e.target.composing||t.$set(t.form,"bio",e.target.value)}}})]),e("div",{staticClass:"ep-field"},[e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("years_experience_label")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.years_experience,expression:"form.years_experience"}],staticClass:"ep-input ep-input-short",attrs:{type:"number",min:"0",placeholder:"Ex: 5"},domProps:{value:t.form.years_experience},on:{input:function(e){e.target.composing||t.$set(t.form,"years_experience",e.target.value)}}})])]),e("section",{staticClass:"ep-section"},[e("h2",{staticClass:"ep-section-title"},[t._v(t._s(t.t("location")))]),e("div",{staticClass:"ep-field-row"},[e("div",{staticClass:"ep-field ep-field-grow"},[e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("region_label")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.region,expression:"form.region"}],staticClass:"ep-select",on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.form,"region",e.target.multiple?s:s[0])}}},[e("option",{attrs:{disabled:""},domProps:{value:null}},[t._v(t._s(t.t("select_placeholder")))]),t._l(t.regions,(function(s){return e("option",{key:s,domProps:{value:s}},[t._v(t._s(s))])}))],2)]),e("div",{staticClass:"ep-field ep-field-grow"},[e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("city_label")))]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.city,expression:"form.city"}],staticClass:"ep-select",attrs:{disabled:!t.form.region},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.form,"city",e.target.multiple?s:s[0])}}},[e("option",{attrs:{value:""}},[t._v(t._s(t.form.region?t.t("select_placeholder"):t.t("select_region_first")))]),t._l(t.citiesForRegion,(function(s){return e("option",{key:s,domProps:{value:s}},[t._v(t._s(s))])}))],2)])]),e("div",{staticClass:"ep-field"},[e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("address_label")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.location,expression:"form.location"}],staticClass:"ep-input",attrs:{type:"text",placeholder:t.t("optional")},domProps:{value:t.form.location},on:{input:function(e){e.target.composing||t.$set(t.form,"location",e.target.value)}}})]),e("label",{staticClass:"ep-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.is_mobile,expression:"form.is_mobile"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.form.is_mobile)?t._i(t.form.is_mobile,null)>-1:t.form.is_mobile},on:{change:function(e){var s=t.form.is_mobile,a=e.target,r=!!a.checked;if(Array.isArray(s)){var i=null,o=t._i(s,i);a.checked?o<0&&t.$set(t.form,"is_mobile",s.concat([i])):o>-1&&t.$set(t.form,"is_mobile",s.slice(0,o).concat(s.slice(o+1)))}else t.$set(t.form,"is_mobile",r)}}}),e("span",{staticClass:"ep-checkbox-mark"}),e("span",{staticClass:"ep-checkbox-text"},[e(r["a"],{staticClass:"mr-1",attrs:{"x-small":"",color:"#EB9532"}},[t._v("mdi-motorbike")]),t._v(" "+t._s(t.t("can_travel")))],1)]),t.form.is_mobile?e("div",{staticClass:"ep-field ep-field-indent"},[e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("travel_radius")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.service_radius_km,expression:"form.service_radius_km"}
3],staticClass:"ep-input ep-input-short",attrs:{type:"number",min:"1",placeholder:"Ex: 30"},domProps:{value:t.form.service_radius_km},on:{input:function(e){e.target.composing||t.$set(t.form,"service_radius_km",e.target.value)}}})]):t._e()]),e("section",{staticClass:"ep-section"},[e("h2",{staticClass:"ep-section-title"},[t._v(t._s(t.t("your_rates")))]),e("div",{staticClass:"ep-rates-grid"},[e("div",{staticClass:"ep-rate-card"},[e("div",{staticClass:"ep-rate-icon"},[e(r["a"],{attrs:{color:"#388E3C"}},[t._v("mdi-clock-outline")])],1),e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("hourly_rate_label")))]),e("div",{staticClass:"ep-rate-input-wrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.hourly_rate,expression:"form.hourly_rate"}],staticClass:"ep-input",attrs:{type:"number",min:"0",placeholder:"0"},domProps:{value:t.form.hourly_rate},on:{input:function(e){e.target.composing||t.$set(t.form,"hourly_rate",e.target.value)}}}),e("span",{staticClass:"ep-rate-suffix"},[t._v("XAF/h")])])]),e("div",{staticClass:"ep-rate-card"},[e("div",{staticClass:"ep-rate-icon"},[e(r["a"],{attrs:{color:"#EB9532"}},[t._v("mdi-calendar-outline")])],1),e("label",{staticClass:"ep-label"},[t._v(t._s(t.t("daily_rate_label")))]),e("div",{staticClass:"ep-rate-input-wrap"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.daily_rate,expression:"form.daily_rate"}],staticClass:"ep-input",attrs:{type:"number",min:"0",placeholder:"0"},domProps:{value:t.form.daily_rate},on:{input:function(e){e.target.composing||t.$set(t.form,"daily_rate",e.target.value)}}}),e("span",{staticClass:"ep-rate-suffix"},[t._v("XAF/j")])])])])]),e("section",{staticClass:"ep-section"},[e("h2",{staticClass:"ep-section-title"},[t._v(t._s(t.t("your_specialties")))]),e("p",{staticClass:"ep-section-desc"},[t._v(t._s(t.t("specialties_desc")))]),t._l(t.parentCategories,(function(s){return e("div",{key:s.id,staticClass:"ep-cat-group"},[e("h3",{staticClass:"ep-cat-parent"},[t._v(t._s(s.name))]),e("div",{staticClass:"ep-cat-children"},t._l(s.children||[],(function(s){return e("button",{key:s.id,class:["ep-cat-chip",{selected:t.form.category_ids.includes(s.id)}],on:{click:function(e){return t.toggleCategory(s.id)}}},[t.form.category_ids.includes(s.id)?e(r["a"],{staticClass:"mr-1",attrs:{"x-small":"",color:"#388E3C"}},[t._v("mdi-check-circle")]):t._e(),t._v(" "+t._s(s.name)+" ")],1)})),0)])}))],2)]),e("aside",{staticClass:"ep-sidebar"},[e("div",{staticClass:"ep-sidebar-card ep-sidebar-sticky"},[e("div",{staticClass:"ep-sidebar-avatar"},[e("span",[t._v(t._s(t.getInitials()))])]),e("h3",{staticClass:"ep-sidebar-name"},[t._v(t._s(t.profile.user?t.profile.user.firstname+" "+t.profile.user.lastname:""))]),e("div",{staticClass:"ep-sidebar-meta"},[e("span",{staticClass:"ep-sidebar-badge",style:{background:"AVAILABLE"===t.form.availability_status?"#dcfce7":"BUSY"===t.form.availability_status?"#fef3c7":"#f3f4f6",color:"AVAILABLE"===t.form.availability_status?"#166534":"BUSY"===t.form.availability_status?"#92400e":"#6b7280"}},[t._v(" "+t._s("AVAILABLE"===t.form.availability_status?t.t("available_now"):"BUSY"===t.form.availability_status?t.t("busy"):t.t("unavailable"))+" ")])]),e("div",{staticClass:"ep-sidebar-divider"}),t.saved?e("div",{staticClass:"ep-saved"},[e(r["a"],{attrs:{small:"",color:"#388E3C"}},[t._v("mdi-check-circle")]),t._v(" "+t._s(t.t("saved_success")))],1):t._e(),t.error?e("div",{staticClass:"ep-error"},[e(r["a"],{attrs:{small:"",color:"#E53E3E"}},[t._v("mdi-alert-circle")]),t._v(" "+t._s(t.error))],1):t._e(),e("button",{staticClass:"ep-btn ep-btn-save",attrs:{disabled:t.saving},on:{click:t.save}},[t.saving?[e("div",{staticClass:"ep-btn-spinner"}),t._v(" "+t._s(t.t("saving")))]:[e(r["a"],{staticClass:"mr-1",attrs:{small:"",color:"#fff"}},[t._v("mdi-content-save")]),t._v(" "+t._s(t.t("save_changes")))]],2),e("button",{staticClass:"ep-btn ep-btn-ghost",on:{click:function(e){return t.$router.push("/experts/"+t.profile.id)}}},[t._v(t._s(t.t("view_public_profile")))])])])])])]:e("div",{staticClass:"ep-gate"},[e("div",{staticClass:"ep-gate-card"}
3,[e(r["a"],{attrs:{size:"48",color:"#9CA09C"}},[t._v("mdi-account-off-outline")]),e("h2",{staticClass:"ep-gate-title"},[t._v(t._s(t.t("no_profile")))]),e("p",{staticClass:"ep-gate-desc"},[t._v(t._s(t.t("no_profile_desc")))]),e("button",{staticClass:"ep-btn ep-btn-primary",on:{click:function(e){return t.$router.push("/become-expert")}}},[t._v(t._s(t.t("become_expert")))])],1)])],2)}),o=[],n=(s("7d54"),{name:"ExpertEditProfile",metaInfo:{title:"Modifier mon profil expert - Jangolo"},data(){return{loading:!0,saving:!1,saved:!1,error:null,profile:null,parentCategories:[],allCategories:[],form:{bio:"",years_experience:null,availability_status:"AVAILABLE",hourly_rate:null,daily_rate:null,region:null,city:"",location:"",is_mobile:!1,service_radius_km:null,category_ids:[]},regions:["Adamaoua","Centre","Est","Extrême-Nord","Littoral","Nord","Nord-Ouest","Ouest","Sud","Sud-Ouest"],citiesByRegion:{Adamaoua:["Ngaoundéré","Meiganga","Banyo","Tibati","Tignere","Djohong"],Centre:["Yaoundé","Mbalmayo","Obala","Monatele","Nanga Eboko","Akonolinga","Mfou","Soa","Ngoumou"],Est:["Bertoua","Batouri","Abong-Mbang","Yokadouma","Moloundou","Garoua-Boulaï"],"Extrême-Nord":["Maroua","Kousséri","Mokolo","Mora","Yagoua","Kaélé","Maga","Waza"],Littoral:["Douala","Nkongsamba","Edea","Loum","Manjo","Mbanga","Yabassi","Penja"],Nord:["Garoua","Guider","Figuil","Poli","Tcholliré","Pitoa","Lagdo"],"Nord-Ouest":["Bamenda","Kumbo","Ndop","Wum","Nkambe","Bali","Fundong","Mbengwi"],Ouest:["Bafoussam","Dschang","Mbouda","Foumban","Bangangté","Bandjoun","Bafang","Foumbot"],Sud:["Ebolowa","Kribi","Sangmélima","Ambam","Lolodorf","Campo"],"Sud-Ouest":["Buea","Limbe","Kumba","Mamfe","Tiko","Muyuka","Tombel"]}}},computed:{citiesForRegion(){return this.form.region&&this.citiesByRegion[this.form.region]||[]},availabilityOptions(){return[{value:"AVAILABLE",label:this.t("available_now"),color:"#4CAF50",bg:"#f0fdf4"},{value:"BUSY",label:this.t("busy"),color:"#F5A623",bg:"#fffbeb"},{value:"UNAVAILABLE",label:this.t("unavailable"),color:"#9CA09C",bg:"#f9fafb"}]}},mounted(){this.fetchProfile(),this.fetchCategories()},methods:{t(t){return this.$vuetify.lang.t("$vuetify.expert."+t)},getInitials(){return this.profile&&this.profile.user?(this.profile.user.firstname||"").charAt(0)+(this.profile.user.lastname||"").charAt(0):"?"},toggleCategory(t){const e=this.form.category_ids.indexOf(t);e>=0?this.form.category_ids.splice(e,1):this.form.category_ids.push(t)},async fetchProfile(){try{const t=await window.axios.get("https://expert-api.jangolo.com/experts/me");this.profile=t.data.data||t.data;const e=this.profile;this.form.bio=e.bio||"",this.form.years_experience=e.years_experience,this.form.availability_status=e.availability_status||"AVAILABLE",this.form.hourly_rate=e.hourly_rate,this.form.daily_rate=e.daily_rate,this.form.region=e.region,this.form.city=e.city||"",this.form.location=e.location||"",this.form.is_mobile=e.is_mobile||!1,this.form.service_radius_km=e.service_radius_km,this.form.category_ids=(e.categories||[]).map(t=>t.id)}catch(t){this.profile=null}this.loading=!1},async fetchCategories(){try{const t=await window.axios.get("https://expert-api.jangolo.com/categories"),e=t.data.data||t.data;this.parentCategories=e,this.allCategories=[],e.forEach(t=>{this.allCategories.push(t),t.children&&t.children.forEach(t=>this.allCategories.push(t))})}catch(t){}},async save(){this.saving=!0,this.saved=!1,this.error=null;try{const t={...this.form};t.hourly_rate||(t.hourly_rate=null),t.daily_rate||(t.daily_rate=null),t.years_experience||(t.years_experience=null),t.service_radius_km||(t.service_radius_km=null),await window.axios.put("https://expert-api.jangolo.com/experts/"+this.profile.id,t),this.saved=!0,setTimeout(()=>{this.saved=!1},4e3)}catch(t){if(t.response&&t.response.data&&t.response.data.errors){const e=Object.values(t.response.data.errors)[0];this.error=Array.isArray(e)?e[0]:e}else t.response&&t.response.data&&t.response.data.message?this.error=t.response.data.message:this.error=this.t("error_generic")}this.saving=!1}}}),l=n,c=(s("22cc"),s("2877")),u=Object(c["a"])(l,i,o,!1,null,"c6622aea",null);e["default"]=u.exports},d9f7:function(t,e,s){"use strict";s.d(e,"a",(function(){return o}
3)),s.d(e,"d",(function(){return n})),s.d(e,"b",(function(){return l})),s.d(e,"c",(function(){return c}));var a=s("80d2");const r={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function i(t){const e={};for(const s of t.split(r.styleList)){let[t,i]=s.split(r.styleProp);t=t.trim(),t&&("string"===typeof i&&(i=i.trim()),e[Object(a["c"])(t)]=i)}return e}function o(){const t={};let e,s=arguments.length;while(s--)for(e of Object.keys(arguments[s]))switch(e){case"class":case"directives":arguments[s][e]&&(t[e]=l(t[e],arguments[s][e]));break;case"style":arguments[s][e]&&(t[e]=n(t[e],arguments[s][e]));break;case"staticClass":if(!arguments[s][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[s][e].trim();break;case"on":case"nativeOn":arguments[s][e]&&(t[e]=c(t[e],arguments[s][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[s][e])break;t[e]||(t[e]={}),t[e]={...arguments[s][e],...t[e]};break;default:t[e]||(t[e]=arguments[s][e])}return t}function n(t,e){return t?e?(t=Object(a["H"])("string"===typeof t?i(t):t),t.concat("string"===typeof e?i(e):e)):t:e}function l(t,e){return e?t&&t?Object(a["H"])(t).concat(e):e:t}function c(...t){if(!t[0])return t[1];if(!t[1])return t[0];const e={};for(let s=2;s--;){const a=t[s];for(const t in a)a[t]&&(e[t]?e[t]=[].concat(a[t],e[t]):e[t]=a[t])}return e}},eb3c:function(t,e,s){}}]);
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.