PageSourceSearch

https://static.helperchoice.com/build/2663.9f570a25.js

js helperchoice.com collected 2026-10-02 06:04:48 UTC 13,808 bytes, 1 lines download raw bytes

1(self.webpackChunkyoopies=self.webpackChunkyoopies||[]).push([[2663],{38511:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"acceptJobApplication"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"applicationId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"message"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"acceptJobApplication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"applicationId"},value:{kind:"Variable",name:{kind:"Name",value:"applicationId"}}},{kind:"Argument",name:{kind:"Name",value:"message"},value:{kind:"Variable",name:{kind:"Name",value:"message"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:162}};t.loc.source={body:"mutation acceptJobApplication($applicationId: Int!, $message: String!) {\n  acceptJobApplication (applicationId: $applicationId, message: $message) {\n    id\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(e){a(e,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(e){a(e,t)}),e.definitions&&e.definitions.forEach(function(e){a(e,t)})}var i={};function s(e,t){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;a(e,t),i[e.name.value]=t}}),e.exports=t,e.exports.acceptJobApplication=function(e,t){var a={kind:e.kind,definitions:[s(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var n=i[t]||new Set,o=new Set,l=new Set;for(n.forEach(function(e){l.add(e)});l.size>0;){var p=l;l=new Set,p.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(t){var i=s(e,t);i&&a.definitions.push(i)}),a}(t,"acceptJobApplication")},20687:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return c}});var i=a(36957),s=a(95353),n=a(41249),o=a(38511),l=a.n(o),p={name:"AcceptCandidateModal",components:{CandidatesCollapsableText:n.default},props:{applicationId:{type:Number,required:!0},applicantInfos:{type:Object,required:!0},isCandidatesList:{type:Boolean,default:!1},showModal:{type:Boolean,default:!1}},computed:{...(0,i.OH)("candidatesModule",["showReplyModal"]),modalClass(){return this.replySent?"yp-overlay-modal--background":null},buttonDisabled(){return""===this.acceptMessage||this.isLoading}},watch:{showReplyModal(){this.$nextTick(()=>{this.$refs.collapsableText&&this.$refs.collapsableText.initComponent()})}},data(){return{acceptMessage:"",errorMessage:"",replySent:!1,isLoading:!1}},methods:{...(0,s.i0)({reloadJobApplicationListForAd:"candidatesModule/reloadJobApplicationListForAd",increaseFreeAnswersSent:"userModule/increaseFreeAnswersSent"}),acceptCandidate(){this.isLoading=!0,this.$apollo.mutate({mutation:l(),variables:{applicationId:this.applicationId,message:this.acceptMessage}}).then(()=>{this.replySent=!0,this.increaseFreeAnswersSent(),window.dataLayer.push({event:"trackEvent",eventName:"accept_application"})}).catch(e=>{const t=e.graphQLErrors[0];if("NoMoreFreeMessageException"===t.type)window.location=this.$routing.generate("employer_premium",{noMessage:1});else{this.errorMessage=this.$t("yoopies.candidates.applicant-profile.accept-modal.error-message");const e=t&&t.errors?t.errors.message:null;e&&(this.errorMessage=e)}}).finally(()=>{this.isLoading=!1})},closeModal(){this.isCandidatesList?this.$emit("closeReplyModal"):this.showReplyModal=!1,this.replySent&&this.$emit("reloadList",this.applicationId)}}},c=(0,a(14486).A)(p,function(){var e=this,t=e._self._c;return t("YpOverlayModal",{attrs:{show:e.isCandidatesList?e.showModal:e.showReplyModal,fullSize:!0,modalClass:e.modalClass},on:{close:e.closeModal}},[t("template",{staticClass:"yp-modal-header-title",slot:"overlay-modal-header"},[e._v("\n    "+e._s(e.$t("yoopies.candidates.applicant-profile.accept-modal.title",{firstName:e.applicantInfos.profileInfos.firstName}))+"\n\n  ")]),e._v(" "),t("template",{slot:"overlay-modal-content"},[e.replySent?t("div",{staticClass:"accept-candidate-success"},[t("div",{staticClass:"accept-candidate-success__picture"},[t("YpProfilePicture",{attrs:{isChildminder:e.applicantInfos.profileInfos.isChildminder,isAe:e.applicantInfos.profileInfos.isAe,isVerified:e.applicantInfos.profileInfos.isVerified,size:"big"}},[t("template",{slot:"profile-picture"},[t("img",{attrs:{src:e.applicantInfos.profileInfos.picture}})])],2)],1),e._v(" "),t("div",{staticClass:"accept-candidate-success__title"},[e._v("\n        "+e._s(e.$t("yoopies.candidates.applicant-profile.accept-modal.success.title"))+"\n      ")]),e._v(" "),t("div",{staticClass:"accept-candidate-success__content"},[e._v("\n        "+e._s(e.$t("yoopies.candidates.applicant-profile.accept-modal.success.description",{firstName:e.applicantInfos.profileInfos.firstName}))+"\n      ")]),e._v(" "),t("YpButton",{staticClass:"accept-candidate-success__button",on:{click:e.closeModal}},[e._v("\n        "+e._s(e.$t("yoopies.candidates.applicant-profile.accept-modal.success.button"))+"\n      ")])],1):t("div",{staticClass:"accept-candidate"},[t("div",{staticClass:"accept-candidate__picture"},[t("YpProfilePicture",{attrs:{isChildminder:e.applicantInfos.profileInfos.isChildminder,isAe:e.applicantInfos.profileInfos.isAe,isVerified:e.applicantInfos.profileInfos.isVerified,size:"small"}},[t("template",{slot:"profile-picture"},[t("img",{attrs:{src:e.applicantInfos.profileInfos.picture}})])],2)],1),e._v(" "),t("CandidatesCollapsableText",{ref:"collapsableText",attrs:{onlyMobile:!1,maxHeight:120}},[t("template",{slot:"title"},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.job-application-label"))+"\n          "+e._s(e.applicantInfos.profileInfos.firstName)+"\n        ")]),e._v(" "),t("template",{slot:"content"},[e._v("\n          "+e._s(e.applicantInfos.message)+"\n        ")])],2),e._v(" "),t("label",{staticClass:"accept-candidate__label",attrs:{for:"accept-candidate-message"}},[e._v("\n        "+e._s(e.$t("yoopies.candidates.applicant-profile.accept-modal.label",{firstName:e.applicantInfos.profileInfos.firstName}))+"\n      ")]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.acceptMessage,expression:"acceptMessage"}],staticClass:"accept-candidate__message yp-textarea yp-textarea--montserrat",attrs:{id:"accept-candidate-message",placeholder:e.$t("yoopies.candidates.applicant-profile.accept-modal.placeholder")},domProps:{value:e.acceptMessage},on:{input:function(t){t.target.composing||(e.acceptMessage=t.target.value)}}}),e._v(" "),e.errorMessage?t("div",{staticClass:"accept-candidate__error"}
1,[e._v("\n        "+e._s(e.errorMessage)+"\n      ")]):e._e(),e._v(" "),t("div",{staticClass:"accept-candidate__action"},[t("YpButton",{staticClass:"accept-candidate__button",attrs:{isLoading:e.isLoading,disabled:e.buttonDisabled},on:{click:e.acceptCandidate}},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.reply"))+"\n        ")])],1)],1)])],2)},[],!1,null,"501cfd84",null).exports},41249:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return n}});var i=a(789),s={name:"CandidatesCollapsableText",props:{onlyMobile:{type:Boolean,default:!0},classname:{type:String},maxHeight:{type:Number,default:80},isCandidatesList:{type:Boolean,default:!1}},data(){return{isMobile:null,realHeight:null,isTooShort:null,isCollapsed:!1}},mounted(){this.initComponent();let e=window.innerWidth;window.addEventListener("resize",()=>e!==window.innerWidth&&(e=window.innerWidth,this.initComponent(),!0))},methods:{initComponent(){this.isMobile=this.checkIfMobile(),this.realHeight=this.getRealHeight(),this.isTooShort=this.checkIfTooShort(),this.isDisabled?this.forceExpand():this.forceCollapse()},forceCollapse(){this.isCollapsed=!0},forceExpand(){this.isCollapsed=!1},checkIfMobile(){return window.matchMedia(`(max-width: ${i.A.md}px)`).matches},getRealHeight(){return this.$refs.collapsableText.clientHeight},checkIfTooShort(){return this.realHeight<this.maxHeight},handleClick(){this.isCollapsed=!this.isCollapsed},hasSlotContent(e){return!!this.$slots[e]||!!this.$scopedSlots[e]}},computed:{isDisabled(){return this.isTooShort||this.onlyMobile&&!this.isMobile},buttonText(){return this.isCollapsed?this.$t("yoopies.collapsable_text.button.open"):this.$t("yoopies.collapsable_text.button.close")},inlineStyle(){return this.isCollapsed?{maxHeight:`${this.maxHeight}px`,height:`${this.maxHeight}px`}:null}}},n=(0,a(14486).A)(s,function(){var e=this,t=e._self._c;return t("div",[e.isCandidatesList?t("div",{staticClass:"yp-candidates-collapsable yp-candidates-collapsable--list"},[t("p",{ref:"collapsableText",staticClass:"yp-candidates-collapsable__content yp-candidates-collapsable__content--list",style:e.inlineStyle},[e._t("content")],2)]):t("div",{staticClass:"yp-candidates-collapsable",class:{"yp-candidates-collapsable--disabled":e.isDisabled}},[e.hasSlotContent("title")?t("p",{staticClass:"yp-candidates-collapsable__title"},[e._t("title")],2):e._e(),e._v(" "),t("p",{ref:"collapsableText",staticClass:"yp-candidates-collapsable__content",class:[{"yp-candidates-collapsable__content--collapsed":e.isCollapsed},e.classname],style:e.inlineStyle},[e._t("content")],2),e._v(" "),t("YpButton",{staticClass:"yp-candidates-collapsable__button yp-p0",class:{"yp-candidates-collapsable__button--disabled":e.isDisabled},attrs:{minwidth:"initial",auto:!0,link:!0},on:{click:e.handleClick}},[e._v("\n      "+e._s(e.buttonText)+"\n    ")])],1)])},[],!1,null,"6abab20e",null).exports},98210:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p}});var i=a(36957),s=a(35290),n=a(20687),o=a.p+"static/floppy-disk_35ca9ba6.svg",l={name:"ProfileHeader",components:{ProfilePrice:s.default,AcceptCandidateModal:n.default},data(){return{floppyDisk:o}},props:{applicantInfos:{type:Object,required:!0},profileInfos:{type:Object,required:!0},applicationId:{type:Number,required:!0}},methods:{modalActionToggle(e){this.$emit("modalActionToggle",e)},modalReplyToggle(){this.$emit("modalReplyToggle")},reloadList(){this.$emit("reloadList")}},computed:{...(0,i.Jt)("candidatesModule",["jobApplicationStatus"])}},p=(0,a(14486).A)(l,function(){var e=this,t=e._self._c;return t("div",{staticClass:"candidates-profile-header__container"},[t("div",{staticClass:"candidates-profile-header"},[t("div",{staticClass:"candidates-profile-header__applicant-informations"},[t("YpProfileBlock",{attrs:{opinionNumber:e.profileInfos.opinionNumber,ratesNumber:e.profileInfos.ratesNumber,name:e.profileInfos.name,location:e.profileInfos.location,inlineVersion:!0,isChildminder:e.profileInfos.isChildminder,isAe:e.profileInfos.isAe,isVerified:e.profileInfos.isVerified,bigVersion:!0}},[e.profileInfos.isChildminder&&"childcare"===e.applicantInfos.service?t("span",{attrs:{slot:"profile-badge-content"},slot:"profile-badge-content"},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.childminder-profile-label"))+"\n        ")]):e.profileInfos.isAe?t("span",{attrs:{slot:"profile-badge-content"},slot:"profile-badge-content"},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.ae-profile-label"))+"\n        ")]):e.profileInfos.isVerified?t("span",{attrs:{slot:"profile-badge-content"},slot:"profile-badge-content"},[e._v("\n          "+e._s(e.$t("yoopies.candidates.applicant-profile.verified-profile-label"))+"\n        ")]):e._e(
1),e._v(" "),t("template",{slot:"profile-picture"},[t("img",{attrs:{src:e.profileInfos.picture}})])],2)],1),e._v(" "),t("div",{staticClass:"candidates-profile-header__price"},[t("ProfilePrice",{attrs:{applicationId:e.applicationId,applicantFirstName:e.profileInfos.firstName,isChildminder:e.profileInfos.isChildminder,pricesList:e.applicantInfos.availableCosts,adType:e.applicantInfos.adType,adService:e.applicantInfos.service},on:{replyEvent:e.modalReplyToggle}}),e._v(" "),t("AcceptCandidateModal",{attrs:{applicationId:e.applicationId,applicantInfos:e.applicantInfos},on:{reloadList:e.reloadList}})],1)]),e._v(" "),t("div",{staticClass:"candidates-profile-header__footer"},[t("YpButton",{attrs:{btnColor:"red",dataYp:`button|application|decline|${this.applicationId}`,minwidth:"157px",disabled:"DECLINED"===e.jobApplicationStatus},on:{click:function(t){return e.modalActionToggle("decline")}}},["DECLINED"===e.jobApplicationStatus?[e._v("\n        "+e._s(e.$t("yoopies.candidates.applicant-profile.declined-candidate-label"))+"\n      ")]:[e._v("\n        "+e._s(e.$t("yoopies.candidates.applicant-profile.decline-candidate-label"))+"\n      ")]],2),e._v(" "),t("YpButton",{attrs:{dataYp:`button|application|reply|${this.applicationId}`,minwidth:"157px"},on:{click:e.modalReplyToggle}},[e._v("\n      "+e._s(e.$t("yoopies.candidates.dropdown-menu.reply-label"))+"\n    ")]),e._v(" "),t("YpButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.$t("yoopies.candidates.save-profile.tooltip"),placement:"top"},expression:"{ content: $t('yoopies.candidates.save-profile.tooltip'), placement: 'top'}"}],attrs:{light:!0,dataYp:`button|application|save|${this.applicationId}`},on:{click:function(t){return e.modalActionToggle("save")}}},[t("img",{attrs:{src:e.floppyDisk}})])],1)])},[],!1,null,"e495ca46",null).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.