PageSourceSearch

https://www.radius-as-a-service.com/_nuxt/CPI5qE2h.js

js radius-as-a-service.com collected 2026-09-25 14:50:17 UTC 13,494 bytes, 2 lines download raw bytes

1var S=Object.defineProperty;var A=(c,t,e)=>t in c?S(c,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[t]=e;var l=(c,t,e)=>A(c,typeof t!="symbol"?t+"":t,e);import{T as f,S as d}from"./CdFqSkse.js";import{a3 as g}from"./BE-vRCB0.js";import{F as y,a as E}from"./fL80RoFj.js";class L{constructor(t){var s;this.position=t;const e=(s=window.i18n)==null?void 0:s.loader;e&&e.then(()=>{var i;this.translationData=(i=window.i18n)==null?void 0:i.getTranslationData(["positionTypePermanently","positionTypeInternship","positionTypeTraining","positionTypeStudent"])})}get description(){return this.position.jobDescriptions&&this.position.jobDescriptions.jobDescription&&this.position.jobDescriptions.jobDescription.map?this.position.jobDescriptions.jobDescription.map((t,e)=>this.getEnhanchedDescription(e,t.name,t.value["#cdata-section"])).join(`
2`):null}hasStartingHtmlTag(t){return/^\s*<[^>]+>/.test(t)}getEnhanchedDescription(t,e,s){const i=t>0&&e&&e["#text"]?`<h4>${this.trimNewlines(e["#text"])}</h4>`:"";let o=s.replace(/<\/?span[^>]*>/g,""),n=0;const r=5,a=2;return t===0?o=o.replace(new RegExp("(?<=<\\/[^>]+>|^|<br>)([^<]+)(?=<[^>]+>|$|<br>)","g"),(m,h)=>h.length>r&&/^\s*$/.test(h)?h:n<a&&h.length>r&&h[0]!==","?(n++,"<p>"+h.trim()+"</p>"):h).replace(/<\/p><br>/g,"<br></p>"):!this.hasStartingHtmlTag(o)&&o.length>r&&(o="<p>"+o+"</p>"),`${i}${o}`.replace(/<\/p><br><p>/g,"</p><p>")}get id(){return this.getValue("id").replace(/\s/g,"")}get title(){return this.removeGenderNotations(this.getValue("name"))}removeGenderNotations(t){const e=/\(m\/w\/d\)|\(m\/f\/d\)|\(h\/m\/d\)/gi;return t.replace(e,"").trim()}get tags(){const t=this.getValue("keywords");return t?t.split(","):[]}getTeamText(t){if(!t)return;let e=t;if(e.includes("/")){const s=e.split(" / "),i=s[0],o=s[1],n="CSOC",r="Managed Services",a="Products";if(i===r&&o!==n)e=r;else if(i===a)e=`${a} ${o}`;else switch(o){case"Azure Architecture":e="Azure";break;case"M365 Architecture":e="Workplace";break;case n:e="Security";break;default:e=o;break}}return e+" Team"}get team(){const t=this.getTeamText(this.getValue("department")),e=t?" / ":"";return`${t||""}${this.positionType?e+this.positionType:""}`}get data(){return{id:this.id,title:this.title,description:this.description,team:this.team,position_type:this.positionType,tags:this.tags,order:this.order}}get positionType(){var e,s,i,o;let t=this.getValue("employmentType");switch(t){case"permanent":t=(e=window.i18n)==null?void 0:e.translate("positionTypePermanently");break;case"intern":t=(s=window.i18n)==null?void 0:s.translate("positionTypeInternship");break;case"trainee":t=(i=window.i18n)==null?void 0:i.translate("positionTypeTraining");break;case"working_student":t=(o=window.i18n)==null?void 0:o.translate("positionTypeStudent");break;default:case"freelance":case"temporary":t=null;break}return t}get order(){const t=this.tags.find(i=>i.includes("ORDER_"));if(!t)return null;const e=t.split("_")[1];return parseInt(e,10)}trimNewlines(t){return t.replace(/\n|\t|    /g,"")}getValue(t,e="text"){return this.position&&this.position[t]?this.trimNewlines(this.position[t][`#${e}`]):null}}const u={VALID:200,CREATED:201,NO_CONTENT:204,PAYLOAD_TOO_LARGE:413,INTERNAL_SERVER_ERROR:500};class T{constructor(t){l(this,"defaultLang","de");l(this,"types",{OPENINGS:"openings",APPLICATIONS:"applications",DOCUMENTS:"documents"});l(this,"recruitingChannels",{CAREER_PAGE:1610421});l(this,"phaseIds",{NEW_APPLICATION:890494});l(this,"responseTypes",{XML:"xml",JSON:"json"});l(this,"defaultClientName","c4a8");l(this,"mockApplyUrl","mock/jobApply.json");l(this,"mockDocumentsUrl","mock/jobDocuments.json");this.options=t,(!this.options.client_name||this.options.client_name==="glueckkanja")&&(this.options.client_name=this.defaultClientName),this.lang=this.defaultLang,this.jobId=null,this.apiUrl="https://api.personio.de/v1",this.openingsUrl=`https://${this.options.client_name}.jobs.personio.de/xml`,this.applicationsUrl="https://apim-c4a8-recruiting-prd-weu.azure-api.net/applications",this.documentsUrl="https://apim-c4a8-recruiting-prd-weu.azure-api.net/applications/documents"}getUrl(t){var i;let e;t!==this.types.OPENINGS&&((i=this.options.apiUrl)!=null&&i.match(/.xml$/))?t===this.types.APPLICATIONS?e=this.options.mockApplyUrl?this.options.mockApplyUrl:this.mockApplyUrl:e=this.options.mockDocumentsUrl?this.options.mockDocumentsUrl:this.mockDocumentsUrl:e=this.options.apiUrl?this.options.apiUrl:this[`${t}Url`];const s=this.lang!==this.defaultLang?this.options.apiUrl?"":`?language=${this.lang}`:"";return`${e}${s}`}setLang(t){this.lang=t}setFilter(t){this.filter=t}
2getAll(){const t=this.getUrl(this.types.OPENINGS);return this.fetch(t,null,this.responseTypes.XML)}getOpening(t){return this.options.jobId=t,this.getAll()}convertPosition(t){var o;const e=new L(t),s=(o=this.options)==null?void 0:o.jobId;return e.description===null||s&&e.id!==s||!this.filterPosition(e)?null:{...e.data,lang:this.lang}}filterPosition(t){var e,s;return!((s=(e=this.filter)==null?void 0:e.tags)!=null&&s.length)||this.filter.tags.some(i=>t.tags.map(o=>o.toLowerCase()).includes(i.toLowerCase()))?t:null}convertData(t){var o,n;const e=t,s="workzag-jobs",i=(o=t[s])==null?void 0:o.position;return e.objects=i.length?(n=t[s])==null?void 0:n.position.map(r=>this.convertPosition(r)).filter(Boolean):[this.convertPosition(i)].filter(Boolean),e.meta={offset:0,limit:20,total:10},e}getConvertedJson(t){const e=new DOMParser,s=typeof t=="string"?t.trimStart():t,i=e.parseFromString(s,"application/xml"),o=f.XMLtoJSON(i);return this.convertData(o)}fetchXML(t){return new Promise((e,s)=>{t.then(i=>i.text()).then(i=>{e({json:()=>this.getConvertedJson(i)})}).catch(i=>{s("Personio fetchXML Error")})})}fetch(t,e,s){return new Promise((i,o)=>{var n;if((n=this.options)!=null&&n.client_name){const r=fetch(t,e),a=s===this.responseTypes.XML?this.fetchXML(r):r;i(a)}else o("no client_name specified")})}async uploadDocuments(t){const e=t.length>0?t:[t],s=[];return Array.from(e).forEach(i=>{s.push(this.uploadDocument(i))}),Promise.all(s)}
2async uploadDocument(t){const e=this.getUrl(this.types.DOCUMENTS),s=new FormData;return s.append("file",new File([t],t.name,{type:t.type})),this.fetch(e,{method:"POST",body:s,headers:{...this.getHeaders()}})}async applyFileData(t,e,s){return new Promise((i,o)=>{this.uploadDocuments(t).then(n=>{if(this.hasValidResponseCodes(n))return this.addFilesToFields(n,s,i,o);const r=n[0];r.json().then(a=>{if(a.errors)return o({statusCode:r.status,errors:a.errors})}).catch(a=>o(a))}).catch(n=>o(n))})}addFilesToFields(t,e,s,i){const o=e;o.files=[];const n=t.map(r=>r.json().then(a=>{o.files.push({uuid:a.uuid,original_filename:a.original_filename,category:"cv"})}));return Promise.all(n).then(()=>s(o)).catch(r=>i(r))}getMappedFieldName(t){let e;switch(t){case"salary":e="salary_expectations";break;case"cancellation":e="available_from";break;case"gender":case"birthday":case"location":case"phone":e=t;break;default:e="custom_attribute_"+t;break}return e}isValidResponseCode(t){return this.options.apiUrl?t.status===u.VALID:t.status===u.VALID||t.status===u.CREATED||t.status===u.NO_CONTENT}hasValidResponseCodes(t){return t.every(e=>this.isValidResponseCode(e))}handleApply(t){return new Promise((e,s)=>{this.apply({fields:t}).then(i=>{if(this.isValidResponseCode(i))return e();i.json().then(o=>{if(o.errors)return s({statusCode:i.status,errors:o.errors})}).catch(o=>s(o))}).catch(i=>s(i))})}getFormPayload(t,e){const s={job_position_id:parseInt(this.options.jobId),attributes:[],phase:{type:"custom",id:this.phaseIds.NEW_APPLICATION},recruiting_channel_id:this.recruitingChannels.CAREER_PAGE},i={first_name:!0,last_name:!0,email:!0,message:!0};for(let o=0;o<t.length;o++){const r=t[o].input,a=e.getName(r.name),m=f.camalCaseToSnakeCase(a);i.hasOwnProperty(m)?s[m]=r.value:m!=="_gotcha"&&s.attributes.push({id:this.getMappedFieldName(m),value:r.value})}return s}getHeaders(){return{"Ocp-Apim-Subscription-Key":this.options.apiKey}}
2async apply(t){const e=this.getUrl(this.types.APPLICATIONS);return this.fetch(e,{method:"POST",body:JSON.stringify(t.fields),headers:{...this.getHeaders(),"Content-Type":"application/json"}})}}class D{constructor(t){l(this,"jobDataUrl","/assets/data/jobs/");this.options=t,this.api=new T(this.options),this.jobDataUrl=f.getSiteAssetPath(this.jobDataUrl)}setLang(t){this.api.setLang(t)}setFilter(t){this.api.setFilter(t)}getAll(){return this.api.getAll()}getOpening(t){return this.api.getOpening(t)}getUrl(t,e,s){return this.api.getUrl(t,e,s)}fetch(t,e){return this.api.fetch(t,e)}getLangFromEntry(t){return t.lang||null}getJobId(){let t="";const e=window.location.hash;if(e)if(e.indexOf("-")!==-1){const s=e.split("-");t=s[s.length-1]}else t=e.substring(1);else this.options.jobId&&(t=this.options.jobId);return t}getOrderedList(t){const e=t.filter(i=>i.order!==void 0).sort((i,o)=>o.order-i.order),s=t.filter(i=>i.order===void 0);return[...e,...s]}getFormData(t){const e=y.getFormData(t);return this.api.getFormPayload(e,y)}applyFileData(t,e,s){return this.api.applyFileData(t,e,s)}handleApply(t){return this.api.handleApply(t)}}const p=class p{constructor(t,e){this.root=t,this.options=e,this.closeSelector=".modal__close",this.successCloseSelector=".modal__success-close .cta",this.errorCloseSelector=".modal__error-close .cta",this.applicationSelector=".modal__application",this.modalSuccessHeadlineSelector=".modal__success-headline > *",this.buttonSelector='[data-trigger="modal"]',this.formSelector=".form",this.close=this.root.querySelector(this.closeSelector),this.successClose=this.root.querySelector(this.successCloseSelector),this.errorClose=this.root.querySelector(this.errorCloseSelector),this.application=this.root.querySelector(this.applicationSelector),this.form=this.root.querySelector(this.formSelector),this.modalId=this.root.dataset.modalId,this.root.classList.add(d.READY),this.application&&(this.clientName=this.root.dataset.clientName,this.apiUrl=this.root.dataset.apiUrl,this.jobId=this.root.dataset.jobId,this.apiKey=this.root.dataset.apiKey,this.mockApplyUrl=this.root.dataset.mockApplyUrl,this.mockDocumentsUrl=this.root.dataset.mockDocumentsUrl,this.api=new D({...this.jobId&&{jobId:this.jobId},...this.apiUrl&&{apiUrl:this.apiUrl},client_name:this.clientName,apiKey:this.apiKey,mockApplyUrl:this.mockApplyUrl,mockDocumentsUrl:this.mockDocumentsUrl}),this.api.options.jobId=this.api.getJobId()||this.jobId),this.bindEvents()}isNotVueApp(t){return t.getAttribute("data-v-app")===null}bindEvents(){var t,e,s;if((t=this.close)==null||t.addEventListener("click",this.handleClose.bind(this)),(e=this.successClose)==null||e.addEventListener("click",this.handleClose.bind(this)),(s=this.errorClose)==null||s.addEventListener("click",this.handleClose.bind(this)),this.application){const i=this.root.parentNode,o=y.getInstance(this.form);if(i&&this.isNotVueApp(i)){const n=i.querySelector(this.buttonSelector);n==null||n.addEventListener("click",this.handleOpen.bind(this))}else i&&this.addTriggerListeners();o&&o.canHaveCustomSubmit()&&(o.customSubmit=this.handleApplicationSubmit.bind(this))}else this.root.dataset.modalId&&this.addTriggerListeners();document.addEventListener(g.OPEN_MODAL,this.handleModalOpen.bind(this))}addTriggerListeners(){document.querySelectorAll(`[data-trigger-id='${this.modalId}']`).forEach(e=>e.addEventListener("click",this.handleOpen.bind(this)))}handleModalOpen(t){var s;t.stopImmediatePropagation();const e=(s=t==null?void 0:t.detail)==null?void 0:s.id;!e||e!==this.modalId||this.handleOpen(t)}handleApplicationSubmit(t){t.preventDefault(),t.stopImmediatePropagation(),this.setLoading(!0);const e=this.form.querySelector(E.base64Selector),s=e==null?void 0:e.value;let i=this.api.getFormData(this.form),o;if(s)o={name:e.dataset.fileName};else{const n=this.form.querySelector('input[type="file"]');o=n==null?void 0:n.files}o?this.handleApplicationRequest(i,o,s):this.handleError()}setLoading(t){document.dispatchEvent(new CustomEvent(g.LOAD_MODAL,{detail:t}))}handleApplicationRequest(t,e,s){this.api.applyFileData(e,s,t).then(i=>{this.api.handleApply(i).then(()=>{this.setLoading(!1),this.handleApplicationSuccess(i)}).catch(o=>{this.setLoading(!1),this.handleError(o)})}).catch(i=>{this.setLoading(!1),this.handleError(i)})}handleApplicationSuccess(t){this.root.classList.add(d.SUCCESS);const e=this.root.querySelector(this.modalSuccessHeadlineSelector);if(e){e.dataset.text||(e.dataset.text=e.innerText);const s=t.first_name;e.innerText=`${e.dataset.text} ${s}`}}handleError(t){if(!t)return;const e=typeof t=="string"?t:t.message?t.message:t;(typeof t=="object"&&t.statusCode?t.statusCode:u.INTERNAL_SERVER_ERROR)===u.PAYLOAD_TOO_LARGE?this.handlePayloadTooLarge(t):this.root.classList.add(d.ERROR)}handlePayloadTooLarge(t){document.dispatchEvent(new CustomEvent(g.FORM_ATTACHMENT_ERROR,{detail:t}))}handleClose(t){t.preventDefault(),p.close(this.root)}handleOpen(t){t.preventDefault(),p.open(this.root)}static initElement(t,e){const s=new this(t,e);return this.instances.push(s),s}static open(t){t&&window.$&&$(t).modal("show")}static close(t){t&&window.$&&($(t).modal("hide"),p.resetModal(t))}static resetModal(t){setTimeout(function(){const e=t.querySelector("form");e==null||e.reset(),t.classList.remove(d.SUCCESS),t.classList.remove(d.ERROR)},200)}static init(t){this.instances=[];const e=t||document,s=`${this.rootSelector}:not(.${d.READY})`;[].forEach.call(e.querySelectorAll(s),i=>{this.initElement(i)})}};l(p,"rootSelector",".modal"),l(p,"instances",[]);let b=p;export{b as M};

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.