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`I`,Ä®:`I`,İ:`I`,Ä©:`i`,Ä«:`i`,Ä:`i`,į:`i`,ı:`i`,Ä´:`J`,ĵ:`j`,Ķ:`K`,Ä·:`k`,ĸ:`k`,Ĺ:`L`,Ä»:`L`,Ľ:`L`,Ä¿:`L`,Å:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,Å:`l`,Å:`l`,Å:`N`,Å
:`N`,Å:`N`,Å:`N`,Å:`n`,Å:`n`,Å:`n`,Å:`n`,Å:`O`,Å:`O`,Å:`O`,Å:`o`,Å:`o`,Å:`o`,Å:`R`,Å:`R`,Å:`R`,Å:`r`,Å:`r`,Å:`r`,Å:`S`,Å:`S`,Å:`S`,Å :`S`,Å:`s`,Å:`s`,Å:`s`,Å¡:`s`,Å¢:`T`,Ť:`T`,Ŧ:`T`,Å£:`t`,Å¥:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Å®:`U`,Ű:`U`,Ų:`U`,Å©:`u`,Å«:`u`,Å:`u`,ů:`u`,ű:`u`,ų:`u`,Å´:`W`,ŵ:`w`,Ŷ:`Y`,Å·:`y`,Ÿ:`Y`,Ź:`Z`,Å»:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Å:`Oe`,Å:`oe`,Å:`'n`,Å¿:`s`}
1),h=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,g=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function _(e){return e=s(e),e&&e.replace(h,m).replace(g,``)}var v=RegExp(`['â]`,`g`);function y(e){return function(t){return f(l(_(t).replace(v,``)),e,``)}}var b=y(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()});function x(e,t,n){let r=new URLSearchParams(e).toString();return r=r?`?${r}`:``,d(n,`${t}${r}`)}function S(e,t={},n={}){let r={...t,...n};return x(e,`v1/${b(r.source)}/search`,r).then(e=>({data:e}))}function C(e,t){return x(e,`v1/google-talent/commute`,t)}function w(e,t,n){if(n[`search-api-use-get`]==`true`){let r=new URLSearchParams(e).toString();return r=r?`?${r}`:``,d(n,`${t}${r}`)}return d(n,t,{method:`POST`,body:JSON.stringify({data:e,config:n[`site-config`]})})}function T(e,t={},n={}){let r={...t,...n};return w(e,`v1/${b(r.source)}/search`,r).then(e=>({data:e}))}function E(e,t){return w(e,`v1/google-talent/commute`,t)}var D=o(),O=D?T:S,k=D?E:C,A={data(){return{job:{}}},props:{jobData:{type:Object,required:!0}},mounted(){this.transformJobData()},watch:{jobData(){this.transformJobData()}},methods:{transformJobData(){this.job=this.jobData,this.jobData.job?this.setGoogleTalentJobData():this.setSolrJobData()},setSolrJobData(){this.job.title=this.job.title_exact,this.job.location=this.job.location_exact,this.job.job_url=c(this.job)},setGoogleTalentJobData(){this.job.job_url=c(this.job),this.job={...this.job,...this.job.job},delete this.job.job,this.addCustomAttributes(),delete this.job.customAttributes,this.job.commuteTime=this.commuteTime(),this.job.location=this.job.city_display,this.job.guid=this.jobData.job.requisitionId},addCustomAttributes(){for(let[e,t]of Object.entries(this.job.customAttributes)){let n=t.stringValues;this.job[e]=Array.isArray(n)?n.join(` `):n}},commuteTime(){if(!this.hasCommuteInfo)return null;let e=parseInt(this.job.commuteInfo.travelDuration.replace(`s`,``)),t=Math.floor(e/60/60),n=Math.floor(e/60)-t*60;return n==0?`< 1 minute`:n+` minutes`},fallbackAttribute(e,t,n=``){let r=u(this.job,e,n);return r||=u(this.job,t,n),r}},computed:{slotData(){return{job:this.job,isSolr:this.isSolr,isGoogleTalent:this.isGoogleTalent,fallbackAttribute:this.fallbackAttribute}},isSolr(){return!this.isGoogleTalent},isGoogleTalent(){return Object.prototype.hasOwnProperty.call(this.jobData,`job`)},hasCommuteInfo(){return Object.prototype.hasOwnProperty.call(this.job.commuteInfo,`travelDuration`)}}};function j(a,o,s,c,l,u){return r(),i(`section`,null,[e(a.$slots,`default`,t(n(u.slotData)))])}var M=a(A,[[`render`,j]]);export{y as i,k as n,O as r,M as t};
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.