PageSourceSearch

https://btpcfa-aura.fr/_nuxt/00e9473.js

js btpcfa-aura.fr collected 2026-10-04 10:04:50 UTC 16,713 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{307:function(t,e,n){},308:function(t,e,n){"use strict";(function(t){var r=n(1);r.a.config.optionMergeStrategies.head=r.a.config.optionMergeStrategies.data,e.a={head:function(){var title=this.metas&&this.metas.title,e=this.metas&&this.metas.description,n=this.metas&&this.metas.url||t.env.URL+this.$route.fullPath,image=this.metas&&this.metas.image,r={};return title&&(r.meta||(r.meta=[]),title+=" | BTP CFA Auvergne - Rhône-Alpes",r.title=title,r.meta.push({hid:"og:title",property:"og:title",content:title}),r.meta.push({hid:"twitter:title",property:"twitter:title",content:title})),e&&(r.meta||(r.meta=[]),r.meta.push({hid:"description",name:"description",content:e}),r.meta.push({hid:"og:description",name:"og:description",content:e}),r.meta.push({hid:"twitter:description",name:"twitter:description",content:e})),image&&(r.meta||(r.meta=[]),r.meta.push({hid:"og:image",name:"og:image",content:image}),r.meta.push({hid:"twitter:image",name:"twitter:image",content:image})),r.meta||(r.meta=[]),r.meta.push({hid:"og:url",property:"og:url",content:n}),r}}}).call(this,n(115))},309:function(t,e,n){"use strict";n(42);var r={props:{title:{type:String,default:null},category:{type:String,default:null},image:{type:Object,default:function(){return{src:void 0,alt:"BTP CFA"}}},imageLeft:{type:Object,default:function(){return{src:void 0,alt:"BTP CFA"}}},imageRight:{type:Object,default:function(){return{src:void 0,alt:"BTP CFA"}}},size:{type:String,default:"medium"},theme:{type:String,default:"base",validator:function(t){return["base","formations-slug","cfas-slug"].includes(t)}}}},o=(n(310),n(2)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"Hero",class:"Hero--"+t.size+" Hero--"+t.theme},["base"===t.theme?n("BaseImage",{staticClass:"Hero-image",attrs:{src:t.image.url,alt:t.image.alt}}):"formations-slug"===t.theme||"cfas-slug"===t.theme?n("div",{staticClass:"Hero-bg"},[n("BaseImage",{staticClass:"Hero-bgImage left",attrs:{src:t.imageLeft.url,alt:t.imageLeft.alt}}),t._v(" "),t._t("right",[n("BaseImage",{staticClass:"Hero-bgImage right",attrs:{src:t.imageRight.url,alt:t.imageRight.alt}})])],2):t._e(),t._v(" "),n("div",{staticClass:"Hero-wrapper"},[t.category?n("div",{staticClass:"Hero-category AppTitle-strip--yellow"},[t._v("\n      "+t._s(t.category)+"\n    ")]):t._e(),t._v(" "),t.title?n("h1",{staticClass:"Hero-title",domProps:{innerHTML:t._s(t.title)}}):t._e(),t._v(" "),t._t("default")],2),t._v(" "),t._t("bt")],2)}),[],!1,null,"328390c3",null);e.a=component.exports},310:function(t,e,n){"use strict";n(307)},311:function(t,e,n){"use strict";var r=n(5),o=n(113)(5),l="find",c=!0;l in[]&&Array(1).find((function(){c=!1})),r(r.P+r.F*c,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(116)(l)},312:function(t,e,n){},315:function(t,e,n){"use strict";n(312)},317:function(t,e,n){},319:function(t,e,n){"use strict";n(25),n(22),n(21),n(34),n(35);var r=n(11),o=n(79);var l=n(117),c=n(59);function f(t){return function(t){if(Array.isArray(t))return Object(o.a)(t)}(t)||Object(l.a)(t)||Object(c.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n(179);function m(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var d={props:{data:{type:Array,default:function(){return[]}},apiRoute:{type:String,default:null},limit:{type:Number,default:10},objectKey:{type:String,default:null},params:{type:Object,default:function(){}},hasMoreInitial:{type:Boolean,default:!1}},data:function(){return{page:1,list:f(this.data),status:200,cpt:0,hasMore:this.hasMoreInitial}},computed:{isInitial:function(){return 200===this.status},isLoading:function(){return"loading"===this.status},hasError:function(){return 0===this.status}},watch:{data:function(t,e){this.cpt++,this.list=t},params:function(t,e){t!==e&&(this.page=1,this.list=[],this.getData())}},methods:{getData:function(){var t=this;this.status="loading";var e=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
1i%2?m(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):m(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({page:this.page,per_page:this.limit},this.params);this.$api.get(this.apiRoute,{params:e}).then((function(e){t.status=e.status;var n,r=e.data.data[t.objectKey];r.length>0?((n=t.list).push.apply(n,f(e.data.data[t.objectKey])),r.length<t.limit&&(t.hasMore=!1),t.hasMore=e.data.data.hasMore):t.hasMore=!1})).catch((function(){t.status=0}))},onClickLoadMore:function(){this.page++,this.getData()}}},h=d,v=(n(315),n(2)),component=Object(v.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"List"},[n("transition",{attrs:{name:"loader"}},[n("BaseLoader",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticClass:"List-loading"})],1),t._v(" "),n("transition-group",{staticClass:"List-items",style:{"--total":t.list.length},attrs:{name:"list-item",tag:"div"}},[t._l(t.list,(function(e,r){return n("article",{key:"list-item-"+r+"-"+t.cpt,staticClass:"List-item",style:{"--i":r}},[t._t("default",null,{listItem:e})],2)})),t._v(" "),n("article",{key:"last-item-"+t.cpt,staticClass:"List-item",style:{"--i":t.list.length+1}},[t._t("lastItem")],2)],2),t._v(" "),n("transition",{attrs:{name:"no-result"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:0===t.list.length&&t.isInitial,expression:"list.length === 0 && isInitial"}],staticClass:"List-noResult"},[t._t("noresults",[t._v("\n        "+t._s(t.$t("global.list.noResult"))+"\n      ")])],2)]),t._v(" "),t.apiRoute&&t.hasMore?n("div",{staticClass:"List-more u-bgGreyLight"},[n("BaseButton",{directives:[{name:"show",rawName:"v-show",value:t.isInitial,expression:"isInitial"}],attrs:{label:t.$t("global.buttons.loadMore")},nativeOn:{click:function(e){return t.onClickLoadMore()}}}),t._v(" "),n("BaseLoader",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}]})],1):t._e()],1)}),[],!1,null,"1335f372",null);e.a=component.exports},333:function(t,e,n){"use strict";n(317)},337:function(t,e,n){"use strict";n(42),n(17);var r={props:{options:{type:Array,default:function(){return[{id:0,label:"option 1"},{id:1,label:"option 2"}]}},placeholder:{type:String,default:""},name:{type:String,default:"value"},value:{type:Object,default:null},theme:{type:String,default:void 0,validator:function(t){return["big","big-yellow"].includes(t)}}},data:function(){return{selectedValue:this.value}},mounted:function(){this.$refs.select&&this.$refs.select.value&&(this.$refs.input.value=this.$refs.select.value.id)},methods:{onInput:function(t){this.$refs.input.value=t.id,this.selectedValue=t,this.$emit("onInput",{value:t,name:this.name})}}},o=(n(333),n(2)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"Select",class:t.theme},[n("v-select",{ref:"select",attrs:{options:t.options,placeholder:t.placeholder,clearable:!1,label:"label"},on:{input:t.onInput},model:{value:t.selectedValue,callback:function(e){t.selectedValue=e},expression:"selectedValue"}}),t._v(" "),n("input",{ref:"input",attrs:{name:t.name,type:"hidden"}})],1)}),[],!1,null,"40da2e8e",null);e.a=component.exports},346:function(t,e,n){var r=n(5),o=n(180)(!1);r(r.S,"Object",{values:function(t){return o(t)}})},347:function(t,e,n){},384:function(t,e,n){"use strict";n(347)},385:function(t,e){},419:function(t,e,n){"use strict";n(42),n(311);var r={components:{BaseSelect:n(337).a},props:{theme:{type:String,default:void 0,validator:function(t){return["big"].includes(t)}},faculties:{type:Array,default:function(){return[{id:1,label:"Bâtiment travaux publics"}]}},cfas:{type:Array,default:function(){return[{id:0,label:"Auvergnes Rhône-Alpes",prefix:"en"}]}}},data:function(){return{prefix:"en",faculty:null,cfa:null}},created:function(){if(this.$route.query.filiere&&"null"!==this.$route.query.filiere){var t=this.$route.query.filiere;this.setFacultyBySlug(t)}else this.faculty=this.faculties[0];if(this.$route.query.cfa&&"null"!==this.$route.query.cfa){var e=this.$route.query.cfa;this.setCfaBySlug(e)}else this.cfa=this.cfas[0]},methods:{onSubmit:function(){var data={faculty:this.faculty,cfa:this.cfa};this.$emit("onSubmit",data)},onInputFaculty:function(select){this.faculty=select.value},onInputCfas:function(select){this.prefix=select.value.prefix,this.cfa=select.value},setFacultyBySlug:function(t){var e=this.faculties.find((function(element){return element.slug===t}));this.faculty=e},setCfaBySlug:function(t){var e=this.cfas.find((function(element){return element.slug===t}));this.cfa=e}}},o=(n(384),n(2)),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"FormationsSearch",class:t.theme,attrs:{action:"#",method:"GET"},on:{submit:function(e){return e.preventDefault(),t.onSubmit(e)}}},[n("div",{staticClass:"FormationsSearch-title"},[n("BaseIcon",{staticClass:"FormationsSearch-titleIcon",attrs:{name:"loupe"}}),t._v(" "),n("p",{staticClass:"FormationsSearch-titleLabel",domProps:{innerHTML:t._s(t.$t("formations.search.title"))}}
1)],1),t._v(" "),n("div",{staticClass:"FormationsSearch-fields"},[n("div",{staticClass:"FormationsSearch-fieldsSelects"},[n("BaseSelect",{ref:"faculties",staticClass:"FormationsSearch-fieldsSelect",attrs:{options:t.faculties,value:t.faculty,placeholder:t.$t("formations.search.selects.faculties.placeholder"),theme:"big",name:"faculty"},on:{onInput:t.onInputFaculty}}),t._v(" "),n("div",{staticClass:"FormationsSearch-fieldsSelectWrapper"},[n("p",{staticClass:"FormationsSearch-fieldsSelectPrefix",domProps:{innerHTML:t._s(t.prefix)}}),t._v(" "),n("BaseSelect",{ref:"cfas",staticClass:"FormationsSearch-fieldsSelect",attrs:{options:t.cfas,value:t.cfa,placeholder:t.$t("formations.search.selects.cfas.placeholder"),theme:"big-yellow",name:"cfa"},on:{onInput:t.onInputCfas}})],1)],1),t._v(" "),n("BaseButton",{staticClass:"FormationsSearch-button",attrs:{label:t.$t("formations.search.bt"),theme:"grey",type:"submit"}})],1)])}),[],!1,null,"0c458bca",null);e.a=component.exports},450:function(t,e,n){},545:function(t,e,n){t.exports=n.p+"img/hero-formations.8918b6f.jpg"},546:function(t,e,n){"use strict";n(450)},547:function(t,e,n){"use strict";var r=n(385),o=n.n(r);e.default=o.a},638:function(t,e,n){"use strict";n.r(e);n(25),n(22),n(34),n(35);var r=n(11),o=n(3),l=(n(23),n(21),n(60),n(42),n(346),n(311),n(48),n(309)),c=n(319),f=n(419),m=n(308);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var v={components:{Hero:l.a,FormationsSearch:f.a,List:c.a},mixins:[m.a],asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r,o,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.app,r=t.error,e.prev=1,e.next=4,n.$api.get("/pages/formations");case 4:return(o=e.sent).data.data.faculties.unshift({id:null,slug:null,title:"Bâtiment - Travaux Publics"}),o.data.data.cfas.unshift({id:null,slug:null,title:"Auvergne - Rhône-Alpes",prefix:"en"}),e.abrupt("return",{formations:o.data.data.formations,faculties:o.data.data.faculties,cfas:o.data.data.cfas,diplomas:o.data.data.diplomas,metas:o.data.data.metas,formationOffer:o.data.data.formation_offer});case 10:e.prev=10,e.t0=e.catch(1),r({statusCode:404,message:(null==e.t0||null==(l=e.t0.response)||null==(c=l.data)?void 0:c.message)||"Page non trouvée"});case 13:case"end":return e.stop()}}),e,null,[[1,10]])})))()},data:function(){return{listFormations:[],listDiplomas:[],selectedCfa:null,selectedFaculty:null,formations:null,faculties:null,cfas:null,metas:null}},computed:{nbrResults:function(){return this.formationListFilteredAndSort.map((function(t){return t.items.length})).reduce((function(a,b){return a+b}),0)},listFaculties:function(){return this.faculties.map((function(i){return h(h({},i),{},{label:i.title})}))},listCfas:function(){return this.cfas.map((function(i){return h(h({},i),{},{label:i.title,prefix:"au"})}))},formationListFilteredAndSort:function(){for(var t=this,e=this.formations.filter((function(e){var n;return!t.selectedFaculty||(null==e||null==(n=e.faculties)?void 0:n.includes(t.selectedFaculty.id))})).filter((function(e){var n;return!t.selectedCfa||(null==e||null==(n=e.cfas)?void 0:n.includes(t.selectedCfa.id))})).reduce((function(e,n){return e[n.diploma]?e[n.diploma].items.push(n):e[n.diploma]={diploma:t.getDiplomaById(n.diploma).label,items:[n]},e}),[]),n=[],i=0;i<this.diplomas.length;i++)for(var r=0;r<e.length;r++)e[r]&&e[r].diploma===this.diplomas[i].label&&n.push(e[r]);return Object.values(n)}},watch:{"$route.query":{immediate:!0,handler:function(t,e){var n=this.getCfaBySlug(t.cfa);this.selectedCfa=n||null;var r=this.getFacultyBySlug(t.filiere);this.selectedFaculty=r||null}}},mounted:function(){},methods:{getDiplomaById:function(t){return this.diplomas.find((function(e){return e.id===t}))},getCfaBySlug:function(t){return this.cfas.find((function(e){return e.slug===t}))},getFacultyBySlug:function(t){return this.faculties.find((function(e){return e.slug===t}))},onSubmitSearch:function(data){var path="?filiere=".concat(data.faculty?data.faculty.slug:null,"&cfa=").concat(data.cfa?data.cfa.slug:null);this.$router.push({path:path})}}},y=(n(546),n(2)),C=n(547),component=Object(y.a)(v,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("main",{staticClass:"Formations main"},[r("Hero",{attrs:{title:t.$t("formations.hero.title"),image:{url:n(545),alt:t.$t("formations.hero.altImage")}}},[r("div",{staticClass:"FormationsHero-text",domProps:{innerHTML:t._s(t.$t("formations.hero.text"))}}),t._v(" "),r("div",{staticClass:"FormationsHero-buttons"},[r("BaseButton",{staticClass:"FormationsHero-button",attrs:{label:t.$t("formations.hero.button.label"),to:{name:"contact"},theme:"outline",icon:"contact"}}),t._v(" "),t.formationOffer?r("BaseButton",{staticClass:"FormationsHero-button",attrs:{href:t.formationOffer.url,label:t.formationOffer.title,theme:"outline",icon:"education"}}):t._e()],1)]),t._v(" "),r("FormationsSearch",{ref:"search",attrs:{faculties:t.listFaculties,cfas:t.listCfas},on:{onSubmit:t.onSubmitSearch}}),t._v(" "),r("section",{staticClass:"FormationsContent u-bgGreyXLight"}
1,[r("div",{staticClass:"FormationsContent-wrapper AppWrapper-1120"},[r("div",{staticClass:"FormationsContent-results u-textBebasSpacing u-cGrey"},[t._v("\n        "+t._s(t.nbrResults+" "+t.$t("formations.results"))+"\n      ")]),t._v(" "),r("List",{ref:"list",staticClass:"FormationsContent-list",attrs:{data:t.formationListFilteredAndSort},scopedSlots:t._u([{key:"noresults",fn:function(){return[r("p",{staticClass:"FormationsContent-noresult",domProps:{innerHTML:t._s(t.$t("formations.noresult"))}}),t._v(" "),r("BaseButton",{staticClass:"FormationsContent-listNoResults",attrs:{to:{name:"contact"},label:"Contactez-nous"}})]},proxy:!0},{key:"default",fn:function(e){return[r("div",{staticClass:"FormationsContent-listGroup"},[r("h2",{staticClass:"FormationsContent-listGroupTitle u-textBebasSpacing"},[t._v("\n              "+t._s(e.listItem.diploma)+"\n            ")]),t._v(" "),r("transition-group",{attrs:{name:"list-item"}},t._l(e.listItem.items,(function(e,n){return r("li",{key:"formation-item-"+n,staticClass:"FormationsContent-listGroupItem"},[r("nuxt-link",{staticClass:"FormationsContent-listGroupItemLink",attrs:{to:{name:"formations-slug",params:{slug:e.slug}}}},[t._v("\n                  "+t._s(e.title)+"\n                ")])],1)})),0)],1)]}}])})],1)])],1)}),[],!1,null,"4a829f1d",null);"function"==typeof C.default&&Object(C.default)(component);e.default=component.exports}}]);

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.