PageSourceSearch

https://static.helperchoice.com/build/14427.b37749ec.js

js helperchoice.com collected 2026-10-02 06:05:18 UTC 17,659 bytes, 1 lines download raw bytes

1(self.webpackChunkyoopies=self.webpackChunkyoopies||[]).push([[4369,14427,37689,54575],{46445:function(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"declineJobApplication"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"applicationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"declineJobApplication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"applicationId"},value:{kind:"Variable",name:{kind:"Name",value:"applicationId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:126}};i.loc.source={body:"mutation declineJobApplication($applicationId: Int!) {\n  declineJobApplication (applicationId: $applicationId) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&i.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,i)}),e.definitions&&e.definitions.forEach(function(e){t(e,i)})}var a={};function n(e,i){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==i)return a}}i.definitions.forEach(function(e){if(e.name){var i=new Set;t(e,i),a[e.name.value]=i}}),e.exports=i,e.exports.declineJobApplication=function(e,i){var t={kind:e.kind,definitions:[n(e,i)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=a[i]||new Set,s=new Set,l=new Set;for(o.forEach(function(e){l.add(e)});l.size>0;){var d=l;l=new Set,d.forEach(function(e){s.has(e)||(s.add(e),(a[e]||new Set).forEach(function(e){l.add(e)}))})}return s.forEach(function(i){var a=n(e,i);a&&t.definitions.push(a)}),t}(i,"declineJobApplication")},63129:function(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"markJobApplicationAsSaved"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"applicationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"markJobApplicationAsSaved"},arguments:[{kind:"Argument",name:{kind:"Name",value:"applicationId"},value:{kind:"Variable",name:{kind:"Name",value:"applicationId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:134}};i.loc.source={body:"mutation markJobApplicationAsSaved($applicationId: Int!) {\n  markJobApplicationAsSaved (applicationId: $applicationId) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function t(e,i){if("FragmentSpread"===e.kind)i.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&i.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){t(e,i)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){t(e,i)}),e.definitions&&e.definitions.forEach(function(e){t(e,i)})}var a={};function n(e,i){for(var t=0;t<e.definitions.length;t++){var a=e.definitions[t];if(a.name&&a.name.value==i)return a}}i.definitions.forEach(function(e){if(e.name){var i=new Set;t(e,i),a[e.name.value]=i}}),e.exports=i,e.exports.markJobApplicationAsSaved=function(e,i){var t={kind:e.kind,definitions:[n(e,i)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var o=a[i]||new Set,s=new Set,l=new Set;for(o.forEach(function(e){l.add(e)});l.size>0;){var d=l;l=new Set,d.forEach(function(e){s.has(e)||(s.add(e),(a[e]||new Set).forEach(function(e){l.add(e)}))})}return s.forEach(function(i){var a=n(e,i);a&&t.definitions.push(a)}),t}(i,"markJobApplicationAsSaved")},54575:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return r}});var a=t(36957),n=t(46445),o=t.n(n),s=t(63129),l=t.n(s),d={name:"CandidateActionContainer",props:{profileInfos:{type:Object,required:!0},applicationId:{type:Number,required:!0},isCandidatesList:{type:Boolean,default:!1},modalType:{type:String,default:"decline"},showModal:{type:Boolean,default:!1}},data(){return{isLoading:!1,errorMessage:""}},computed:{...(0,a.OH)("candidatesModule",["showActionModal"]),declineModalTitle(){return this.$t(`yoopies.candidates.applicant-profile.${this.modalType}-modal.title`,{firstName:this.profileInfos.firstName})}},methods:{declineUser(){this.isLoading=!0,this.$apollo.mutate({mutation:o(),variables:{applicationId:this.applicationId}}).then(()=>{this.isLoading=!1,this.closeModal(),this.$emit("reloadList"),window.dataLayer.push({event:"trackEvent",eventName:"refuse_application"})}).catch(()=>{this.errorMessage=this.$t("yoopies.candidates.applicant-profile.decline-user-error-message"),this.isLoading=!1})},saveUser(){this.isLoading=!0,this.$apollo.mutate({mutation:l(),variables:{applicationId:this.applicationId}}).then(()=>{this.isLoading=!1,this.closeModal(),this.$emit("reloadList")}).catch(()=>{this.errorMessage=this.$t("yoopies.candidates.applicant-profile.decline-user-error-message"),this.isLoading=!1})},closeModal(){this.isCandidatesList?this.$emit("closeActionModal"):this.showActionModal=!1}}},r=(0,t(14486).A)(d,function(){var e=this,i=e._self._c;return i("YpOverlayModal",{attrs:{show:e.isCandidatesList?e.showModal:e.showActionModal},on:{close:e.closeModal}},[i("div",{attrs:{slot:"overlay-modal-content"},slot:"overlay-modal-content"},[i("div",{staticClass:"yp-user-decline-block"},[i("div",{staticClass:"yp-picture-container"},[i("img",{attrs:{src:e.profileInfos.picture}})]),e._v(" "),i("div",{staticClass:"yp-overlay-text--dark-grey"},[e._v(e._s(e.declineModalTitle))]),e._v(" "),i("div",{staticClass:"yp-overlay-text--light-blue"},[e._v("\n        "+e._s(e.$t(`yoopies.candidates.applicant-profile.decline-modal.${e.modalType}-explanation`))+"\n      ")]),e._v(" "),e.errorMessage?i("div",{staticClass:"yp-user-decline-block-error-container"}
1,[e._v("\n        "+e._s(e.errorMessage)+"\n      ")]):e._e(),e._v(" "),i("div",{staticClass:"yp-user-decline-block-bottom-container"},["decline"===e.modalType?i("YpButton",{attrs:{light:!0,auto:!0,isLoading:e.isLoading,disabled:e.isLoading,dataYp:"button|decline-popup|decline",minwidth:"initial"},on:{click:e.declineUser}},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.decline-modal.decline-label"))+"\n        ")]):i("YpButton",{attrs:{light:!0,auto:!0,isLoading:e.isLoading,disabled:e.isLoading,dataYp:"button|save-popup|save",minwidth:"initial"},on:{click:e.saveUser}},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.decline-modal.save-label"))+"\n        ")]),e._v(" "),i("YpButton",{attrs:{auto:!0,minwidth:"initial",dataYp:"button|decline-popup|back"},on:{click:e.closeModal}},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.decline-modal.back-to-profile-label"))+"\n        ")])],1)])])])},[],!1,null,"1da586e6",null).exports},44904:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return h}});var a=t(36957),n=(t(81018),t(42405));const o=e=>e*Math.PI/180;var s=e=>{const i=o(e.lat2-e.lat1),t=o(e.lon2-e.lon1),a=o(e.lat1),n=o(e.lat2),s=Math.sin(i/2)*Math.sin(i/2)+Math.sin(t/2)*Math.sin(t/2)*Math.cos(a)*Math.cos(n),l=6371*(2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s)));return+`${Math.round(`${l}e+2`)}e-2`},l=t(35290),d=t(41249),r=t(20687),c=t(50490),p=t(54575),m=t(71898),u=t.p+"static/heart_c2085b42.svg",f={name:"CandidatesListProfileMobile",components:{NeedPremiumModal:c.default,ProfilePrice:l.default,CandidatesCollapsableText:d.default,AcceptCandidateModal:r.default,CandidateActionContainer:p.default,CandidatesTimer:m.default},props:{profile:{type:Object,required:!0},adId:{type:Number},hideTimer:{type:Boolean,default:!1}},data(){return{heart:u,backButtonFlag:!1,showReplyModal:!1,showPremiumModal:!1,showActionModal:!1,modalType:"decline"}},methods:{showCreationDate(e){return this.$moment(e).format("MM/DD/YY")},showModalAction(e){window.location.hash="modal",this.modalType=e,this.showActionModal=!0},async showModalReply(){await this.$ypGtm.trackEvent({name:"click_accept_application"}),this.needsPremium?(this.showPremiumModal=!0,await this.$ypGtm.trackEvent({name:"premium_required_popup_view"})):this.showReplyModal=!0},async clickPremiumPopup(){await this.$ypGtm.trackEvent({name:"click_become_premium_popup"}),window.location.href=this.$routing.generate("employer_premium",{noMessage:1})},closeReplyModal(){this.showReplyModal=!1},closePremiumModal(){this.showPremiumModal=!1},closeActionModal(){this.showActionModal=!1},showDistance(e,i,t,a){const n=s(e,i,t,a);return n<1?100*n+"m":`${n}km`},closeModalsOnBackButton(e){e.oldURL.length>e.newURL.length&&(this.showActionModal=!1,this.showReplyModal=!1)},reloadList(){this.$emit("reloadList")}},computed:{...(0,a.Jt)("userModule",["ads","autologToken","currentUser"]),context:(0,a.Jt)("contextModule"),...(0,a.Jt)("candidatesModule",["jobApplicationStatus"]),applicantInfos(){return{profileInfos:this.profile,message:this.profile.message,service:n.A.getServiceFromAdType(this.profile.adType)}},getLocationWithDistance(){const e={lat1:this.currentUser.address.latitude,lon1:this.currentUser.address.longitude,lat2:this.profile.address.latitude,lon2:this.profile.address.longitude};return`${this.profile.location}, ${this.showDistance(e)}`},needsPremium(){return!this.currentUser.isPremium&&(null===this.context.config.free_answer||this.currentUser.freeAnswersSent>=this.context.config.free_answer)}},mounted(){window.addEventListener("hashchange",this.closeModalsOnBackButton,!1)},beforeDestroy(){window.removeEventListener("hashchange",this.closeModalsOnBackButton,!0)}},h=(0,t(14486).A)(f,function(){var e=this,i=e._self._c;return i("div",{staticClass:"candidates-mobile-item"},[e.hideTimer?e._e():i("CandidatesTimer",{attrs:{"created-at":e.profile.createdAt,name:e.profile.firstName}}),e._v(" "),i("div",{staticClass:"candidates-mobile-item-top",class:{"no-rates":!e.applicantInfos.profileInfos.ratesNumber}},[i("router-link",{staticClass:"candidates-mobile-item-top__link",attrs:{to:{name:"employer_candidates_job_application_overview",params:{ad:e.adId,applicationId:e.profile.id}},"data-yp":`button|application-list|view|${e.profile.id}`}}),e._v(" "),i("YpProfileBlock",{attrs:{opinionNumber:e.profile.opinionNumber,ratesNumber:e.profile.ratesNumber,name:e.profile.name,location:e.getLocationWithDistance,inlineVersion:!0,isChildminder:e.profile.isChildminder,isAe:e.profile.isAe,isVerified:e.profile.isVerified}},[i("template",{slot:"profile-picture"},[i("img",{attrs:{src:e.profile.href}})])],2),e._v(" "),e.applicantInfos.service?i("ProfilePrice",{attrs:{applicationId:e.profile.id,applicantFirstName:e.profile.firstName,isChildminder:e.profile.isChildminder,pricesList:e.profile.availableCosts,adType:e.profile.adType,adService:e.applicantInfos.service,isCandidatesList:!0}}
1):e._e()],1),e._v(" "),i("CandidatesCollapsableText",{attrs:{onlyMobile:!0,maxHeight:58,isCandidatesList:!0}},[i("template",{slot:"content"},[e._v(e._s(e.profile.message))])],2),e._v(" "),i("div",{staticClass:"candidates-mobile-item-actions"},[i("YpButton",{attrs:{btnColor:"red",dataYp:`button|application|decline|${this.profile.id}`,disabled:"DECLINED"===e.jobApplicationStatus},on:{click:function(i){return e.showModalAction("decline")}}},[e._v("\n      "+e._s(e.$t("yoopies.candidates.applicant-profile.decline-candidate-label"))+"\n    ")]),e._v(" "),i("YpButton",{attrs:{dataYp:`button|application|reply|${this.profile.id}`},on:{click:e.showModalReply}},[e._v("\n      "+e._s(e.$t("yoopies.candidates.dropdown-menu.reply-label"))+"\n    ")]),e._v(" "),i("YpButton",{attrs:{light:!0,dataYp:`button|application|save|${this.profile.id}`},on:{click:function(i){return e.showModalAction("save")}}},[i("img",{attrs:{src:e.heart}})])],1),e._v(" "),i("AcceptCandidateModal",{attrs:{applicationId:e.profile.id,applicantInfos:e.applicantInfos,isCandidatesList:!0,showModal:e.showReplyModal},on:{reloadList:e.reloadList,closeReplyModal:e.closeReplyModal}}),e._v(" "),i("NeedPremiumModal",{attrs:{applicantInfos:e.applicantInfos,isCandidatesList:!0,showModal:e.showPremiumModal},on:{closePremiumModal:e.closePremiumModal,clickPremium:e.clickPremiumPopup}}),e._v(" "),i("CandidateActionContainer",{attrs:{applicationId:e.profile.id,profileInfos:e.profile,isCandidatesList:!0,modalType:e.modalType,showModal:e.showActionModal},on:{reloadList:e.reloadList,closeActionModal:e.closeActionModal}})],1)},[],!1,null,"e01363de",null).exports},71898:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return o}});var a=t.p+"static/clock_b3b8a346.svg",n={name:"CandidatesTimer",props:{createdAt:{type:String,required:!0},name:{type:String,default:""},short:{type:Boolean,default:!1}},data(){return{clock:a,date:this.$moment(this.createdAt).add(3,"days"),diff:"",intervalFunc:null}},computed:{timeLeft(){if(this.diff){const e=this.diff.asHours();let i=parseFloat(e);i=60*i*60;const t=Math.floor(i/3600);i-=60*t*60;const a=Math.floor(i/60);i-=60*a;return{hours:t,minutes:a,seconds:Math.round(i)}}return 0}},methods:{init(){this.intervalFunc=setInterval(()=>{this.diff=this.$moment.duration(this.date.diff(this.$moment()))},1e3)}},mounted(){this.init()},destroy(){clearInterval(this.intervalFunc)}},o=(0,t(14486).A)(n,function(){var e=this,i=e._self._c;return e.diff>0?i("div",{staticClass:"candidates-timer",class:{"candidates-timer--short":e.short}},[i("img",{attrs:{src:e.clock}}),e._v("\n  "+e._s(e.$t("yoopies.candidates.applicant-profile.timer."+e.short,{hoursLeft:e.timeLeft.hours,minutesLeft:e.timeLeft.minutes,secondsLeft:e.timeLeft.seconds,name:e.name}))+"\n")]):e._e()},[],!1,null,"7655ab21",null).exports},50490:function(e,i,t){"use strict";t.r(i),t.d(i,{default:function(){return r}});var a=t(36957),n=t(56333),o=t(35987),s=t.p+"static/axa_fd4f47c3.svg",l=t.p+"static/document_e7e8a5a0.svg",d={name:"NeedPremiumModal",props:{applicantInfos:{type:Object,required:!0},isCandidatesList:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1}},data(){return{Success:o,Axa:s,Document:l}},computed:{...(0,a.OH)("candidatesModule",["showPremiumModal"]),isCountryFr(){return"FR"===n.kT}},methods:{closeModal(){this.isCandidatesList?this.$emit("closePremiumModal"):this.showPremiumModal=!1,this.replySent&&this.$emit("reloadList",this.applicationId)}},watch:{showPremiumModal(){this.$nextTick(()=>{this.$refs.collapsableText&&this.$refs.collapsableText.initComponent()})}}},r=(0,t(14486).A)(d,function(){var e=this,i=e._self._c;return i("YpOverlayModal",{attrs:{show:e.isCandidatesList?e.showModal:e.showPremiumModal,fullSize:!0},on:{close:e.closeModal}},[i("template",{slot:"overlay-modal-content"},[i("div",{staticClass:"premium-modal"},[i("header",[i("YpProfilePicture",{attrs:{isChildminder:e.applicantInfos.profileInfos.isChildminder,isAe:e.applicantInfos.profileInfos.isAe,isVerified:e.applicantInfos.profileInfos.isVerified}},[i("template",{slot:"profile-picture"},[i("img",{attrs:{src:e.applicantInfos.profileInfos.picture,alt:""}})])],2),e._v(" "),i("div",[i("h2",[e._v("\n            "+e._s(e.$t("yoopies.candidates.premium-modal.title",{firstName:e.applicantInfos.profileInfos.firstName}))+"\n          ")]),e._v(" "),i("p",[e._v("\n            "+e._s(e.$t("yoopies.candidates.premium-modal.description"))+"\n          ")])])],1),e._v(" "),i("div",[i("ul",{staticClass:"benefits"},[i("li",[i("img",{attrs:{src:e.Success,alt:""}}),e._v(" "),i("div",[i("b",[e._v(e._s(e.$t("yoopies.candidates.premium-modal.benefits.unlimited_contact")))]),e._v(" "),i("span",[e._v("\n                "+e._s(e.$t("yoopies.candidates.premium-modal.benefits.unlimited_contact_description"))+"\n              ")])])]),e._v(" "),e.isCountryFr?[i("li",[i("img",{attrs:{src:e.Axa,alt:""}}),e._v(" "),i("div",[i("b",[e._v(e._s(e.$t("yoopies.candidates.premium-modal.benefits.insurance")))]),e._v(" "),i("span",[e._v("\n                  "+e._s(e.$t("yoopies.candidates.premium-modal.benefits.insurance_description"))+"\n                ")])])]),e._v(" "),i("li",[i("img",{attrs:{src:e.Document,alt:""}}),e._v(" "),i("div",[i("b",[e._v(e._s(e.$t("yoopies.candidates.premium-modal.benefits.simplified_paperwork")))]),e._v(" "),i("span",[e._v("\n                  "+e._s(e.$t("yoopies.candidates.premium-modal.benefits.simplified_paperwork_description"))+"\n                ")])])])]:[i("li",[i("img",{attrs:{src:e.Success,alt:""}}),e._v(" "),i("div",[i("b",[e._v(e._s(e.$t("yoopies.candidates.premium-modal.benefits.view_phone")))]),e._v(" "),i("span",[e._v("\n                  "+e._s(e.$t("yoopies.candidates.premium-modal.benefits.view_phone_description"))+"\n                ")])])]),e._v(" "),i("li",[i("img",{attrs:{src:e.Success,alt:""}}),e._v(" "),i("div",[i("b",[e._v(e._s(e.$t("yoopies.candidates.premium-modal.benefits.priority_support")))])])])]],2)]),e._v(" "),i("div",[i("YpButton",{attrs:{auto:!0,btnColor:"orange"},on:{click:function(i){return e.$emit("clickPremium")}}},[e._v("\n          "+e._s(e.$t("yoopies.candidates.premium-modal.btn.label"))+"\n        ")]),e._v(" "),i("p",{staticClass:"sub-description"},[e._v("\n          "+e._s(e.$t("yoopies.candidates.premium-modal.btn.sub-label"))+"\n        ")])],1)])])],2)},[],!1,null,"7e4e7808",null).exports},35987:function(e,i,t){"use strict";e.exports=t.p+"static/success_9bc27f79.svg"}}]);

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.