(this["webpackJsonptotal-jobs-decoder-v2"]=this["webpackJsonptotal-jobs-decoder-v2"]||[]).push([[0],{11:function(e,t,a){e.exports={handle:"style_handle__4nndx",hasClick:"style_hasClick__2qZBh",hasReplacements:"style_hasReplacements__2Gq83","male-coded":"style_male-coded__3wV7u",masculine:"style_masculine__1PshY","female-coded":"style_female-coded__19H14",feminine:"style_feminine__2TtJP",border:"style_border__bK8b0",replacements:"style_replacements__1a2pb",onRight:"style_onRight__1Hewb",replacementsTitle:"style_replacementsTitle__3m9Wl",list:"style_list__1KmXA",suggestion:"style_suggestion__ZmOYU"}},120:function(e,t,a){e.exports={wrap:"style_wrap__1njw-",editor:"style_editor__121tN",note:"style_note__jNZkF",words:"style_words__29M9m"}},131:function(e,t,a){},132:function(e,t,a){"use strict";a.r(t);var n=a(0),r=(a(1),a(22)),s=a.n(r),c=a(9),o=a.n(c);t.default=function(e){var t=e.copy,r=t.title,c=t.one,l=t.two,i=t.three,d=t.standfirst,u=[{text:c,icon:a(133).default},{text:l,icon:a(134).default},{text:i,icon:a(135).default}];return Object(n.jsx)("div",{className:o()(s.a.wrap),children:Object(n.jsxs)("div",{className:s.a.header,children:[Object(n.jsx)("h1",{className:s.a.title,children:r}),Object(n.jsx)("ul",{className:s.a.ctaItems,children:u.map((function(e){var t=e.text,a=e.icon;return Object(n.jsxs)("li",{className:s.a.item,children:[Object(n.jsx)("img",{width:"32",height:"32",className:s.a.icon,src:a,alt:""}),Object(n.jsx)("span",{className:s.a.text,children:t})]},t)}))}),Object(n.jsx)("div",{className:s.a.standfirst,children:d})]})})}},133:function(e,t,a){"use strict";a.r(t),t.default=a.p+"static/media/1.ba028598.svg"},134:function(e,t,a){"use strict";a.r(t),t.default=a.p+"static/media/2.07bd99bb.svg"},135:function(e,t,a){"use strict";a.r(t),t.default=a.p+"static/media/3.eb0ca521.svg"},15:function(e,t,a){e.exports={wrap:"style_wrap__fJb8X",bar:"style_bar__2iCOl",masculine:"style_masculine__3q8Nl",feminine:"style_feminine__2xF58",otherIsZero:"style_otherIsZero__3nGcs",isZero:"style_isZero__Klm_r",key:"style_key__1cMLs",text:"style_text__1GC5_"}},18:function(e,t,a){e.exports={wrap:"style_wrap__39Uk4",children:"style_children__1fT8i",title:"style_title__NqYAh",loader:"style_loader__iEuzP",icon:"style_icon__Ar3lX",rotate:"style_rotate__2dCk8",isLoading:"style_isLoading__CHyiU",flush:"style_flush__3X1HK",grid:"style_grid__1FUlo",gi:"style_gi__11cm2"}},22:function(e,t,a){e.exports={wrap:"style_wrap__hw_u1",header:"style_header__qVV4Y",title:"style_title__lLhwv",ctaItems:"style_ctaItems__2drTC",item:"style_item__3AYrW",icon:"style_icon__3a-xh",standfirst:"style_standfirst__mKjl_"}},23:function(e,t,a){e.exports={cta:"style_cta__3ATrS",heading:"style_heading__2igl2",img:"style_img__13Rop",text:"style_text__2L_L_",button:"style_button__1UQgh"}},232:function(e){e.exports=JSON.parse('{"metadata":{"title":"Gender Bias Decoder | IrishJobs","lang":"en-uk","description":"Reveal the hidden gender bias in job adverts and other text with IrishJobs\' interactive tool."},"input":{"title":"Decode your text","initialText":"Research shows that many words are associated with masculine or feminine stereotypes, such as aggression or compassion. These words can unconsciously influence the jobs people apply for.\\n \\nCheck your text and find out if you\'re using gender-biased terms. Our suggested alternatives will help you make your job ads more successful and appeal to more candidates.\\n \\nType in or paste your text here to start.","noReplacements":"No replacement suggestions","buttons":{"undo":"Undo","redo":"Redo","clear":"Clear"}},"output":{"title":"Your results","male":["male-coded"],"female":["female-coded"],"results":{"none":"You\'re not using any male-coded or female-coded words.","balance":"You have a balance of male-coded and female-coded words.","moreMale":"You\'re using more male-coded words than female-coded words.","moreFemale":"You\'re using more female-coded words than male-coded words.","bias":{"low":"Your text is less biased than most job ads on our site.","average":"Your text has an average amount of bias.","high":"Your text is more biased than most job ads on our site."}},"wordsListTitle":"{{percentageMale}}% of all words in your text are male-coded.","replacementText":"We suggest replacing them:"},"tooltip":{"text":"We suggest replacing \u2018{{current}}\u2019 with one of these alternatives:","noReplacements":"No replacement available.","removeWord":"We recommend removing \u2018{{current}}\u2019.","femaleTitle":"No replacement available for \u2018{{current}}\u2019.","femaleCopy":"We don\'t have any alternatives for female-coded words as they don\'t have the same negative effect as male-coded words. Read more on How it works.","removeText":"Remove it"},"info":{"cta":"How it works","copy":[{"type":"text","value":"How does gender bias affect job applicants?"},{"type":"text","value":"A 2011 study by the University of Waterloo (Canada) and Duke University (US) found that the language used in job adverts affects who applies for the roles."},{"type":"text","value":"Job adverts for roles in male-dominated industries tend to use more male-coded words. And on average, women find job adverts less appealing when they use male-biased language. Removing this bias can have a positive effect on the number of applications from female candidates."},{"type":"text","value":"The same isn\u2019t true for female-coded words \u2013 they show no difference on applications across male- and female-dominated industries."},{"type":"text","value":"What are male- and female-coded words?"},{"type":"text","value":"Male- and female-coded words are terms that reflect male and female stereotypes. For example, according to the research, \u201cindependent\u201d is a word that tends to be associated with men, while \\"responsible\\" is usually associated with women."},{"type":"text","value":"How does the Gender Bias Decoder work?"},{"type":"text","value":"Using the original study, IrishJobs linguists and data experts have created a dictionary of male- and female-coded words. They\'ve also made a list of synonyms for the male-coded words, which can be either neutral or female-coded."},{"type":"text","value":"The IrishJobs Gender Bias Decoder highlights these gendered words to help identify unintentional gender bias in job adverts. The male-coded words can reduce your number of applicants, so we\'ve provided alternative suggestions for these. We\'ve decided not to show alternatives for female-coded words, as the research shows that they don\'t have the same negative impact on job applicants."},{"type":"text","value":"By replacing male-biased language with our neutral or female-coded suggestions, your job advert will appeal to more people and generate more applications."},{"type":"text","value":" Source: Danielle Gaucher, Justin Friesen, and Aaron C. Kay (2011), Evidence That Gendered Wording in Job Advertisements Exists and Sustains Gender Inequality (Journal of Personality and Social Psychology, July 2011, Vol 101(1), p109-128)."}]}}')},25:function(e,t,a){e.exports={wrap:"style_wrap__1HPJU",input:"style_input__fYi8m",sticky:"style_sticky__5qdfP",output:"style_output__3UoHZ",cta:"style_cta__4uJQp",label:"style_label__2mskm",title:"style_title__2wOYk",link:"style_link__RwzKm"}},26:function(e,t,a){e.exports={wrap:"style_wrap__2dqSL",footer:"style_footer__1dMuo",inner:"style_inner__2u6hD",copy:"style_copy__1U5Wu",nav:"style_nav__3tw8_",link:"style_link__3KBJh"}},265:function(e,t,a){"use strict";a.r(t);var n=a(0),r=(a(1),a(26)),s=a.n(r),c=a(60);t.default=function(e){var t=e.text;return Object(n.jsx)("footer",{className:s.a.wrap,children:Object(n.jsx)(c.a,{children:Object(n.jsxs)("div",{className:s.a.footer,children:[t&&Object(n.jsx)("p",{children:Object(n.jsx)("strong",{children:t})}),Object(n.jsxs)("div",{className:s.a.inner,children:[Object(n.jsx)("div",{className:s.a.copy,children:Object(n.jsxs)("p",{children:["\xa9 Totaljobs Group Ltd ",(new Date).getFullYear()]})}),Object(n.jsxs)("div",{className:s.a.nav,children:[Object(n.jsx)("a",{href:"https://www.totaljobs.com/about/privacy-policy",className:s.a.link,rel:"nofollow",children:"Privacy\xa0Policy"}),Object(n.jsx)("a",{href:"https://www.totaljobs.com/about/cookies",className:s.a.link,rel:"nofollow",children:"Cookies"})]})]})]})})})}},267:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a(1),s=a.n(r),c=a(42),o=(a(131),a(132).default),l=a(7),i=a(10),d=a(25),u=a.n(d),h=a(118),p=a(119),j=a(44),m=a(125),b=a(123),f=a(120),_=a.n(f),O=(a(136),a(32)),v={pageLoad:function(e){},textPaste:function(){},redo:function(){},undo:function(){},clear:function(){},replaceText:function(e,t){"".concat(e,"|").concat(t)},apiResponse:function(e,t){var a=t.amount_of_bias,n=t.bias_balance_score,r=t.female_coded_count,s=t.female_per_100_score,c=t.male_coded_count,o=t.male_per_100_score,l=t.mf_ratio_score,i=t.text_length;"".concat(a,"_").concat(n,"_").concat(r,"_").concat(s,"_").concat(c,"_").concat(o,"_").concat(l,"_").concat(i)},removeText:function(e){"".concat(e)}},x=a(33),y=a.n(x),g=a(8);function w(){return(w=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var S=r.createElement("path",{d:"M10.63 5.55a.49.49 0 01-.088-.971l.088-.008h3.519a7.123 7.123 0 00-9.228-.839 7.026 7.026 0 00-.068 11.383.49.49 0 01-.578.79 8.006 8.006 0 01.077-12.97 8.103 8.103 0 0110.359.811V.49c0-.24.173-.44.402-.482L15.2 0c.24 0 .44.173.482.402l.008.088v4.57c0 .028-.002.05-.005.073l.005-.072a.492.492 0 01-.027.16l-.006.017a.475.475 0 01-.074.13l-.013.014a.36.36 0 01-.044.045l-.018.015a.15.15 0 01-.02.016l-.031.02a.49.49 0 01-.018.01l.049-.03a.49.49 0 01-.112.061.372.372 0 01-.082.024h-.006a.4.4 0 01-.083.009L10.63 5.55z",fillRule:"evenodd"});function T(e,t){var a=e.title,n=e.titleId,s=N(e,["title","titleId"]);return r.createElement("svg",w({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},s),a?r.createElement("title",{id:n},a):null,S)}var k=r.forwardRef(T);a.p;function E(){return(E=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var L=r.createElement("path",{d:"M1.49 5.551l-.014.001a.49.49 0 01-.061-.005l.075.004a.492.492 0 01-.163-.026.048.048 0 00-.016-.008.345.345 0 01-.06-.027c-.006-.005-.013-.008-.019-.012a.218.218 0 01-.03-.02l-.023-.018a.492.492 0 01-.011-.01l.034.029a.491.491 0 01-.085-.079l-.008-.01a.37.37 0 01-.038-.053l-.016-.03a.337.337 0 01-.035-.085.39.39 0 01-.01-.038l-.002-.015-.004-.027A.492.492 0 011 5.078V.49a.49.49 0 01.972-.088L1.98.49l-.001 3.258a8.105 8.105 0 0110.361-.813 8.006 8.006 0 01.077 12.97.49.49 0 01-.579-.79 7.026 7.026 0 00-.066-11.382 7.124 7.124 0 00-9.23.838h3.52c.24 0 .44.174.481.402l.008.088a.49.49 0 01-.402.482l-.088.008H1.49z",fillRule:"evenodd"});function z(e,t){var a=e.title,n=e.titleId,s=C(e,["title","titleId"]);return r.createElement("svg",E({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},s),a?r.createElement("title",{id:n},a):null,L)}var R=r.forwardRef(z);a.p;function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var P=r.createElement("path",{d:"M15.857.143a.49.49 0 01.056.625l-.056.068L8.693 8l7.164 7.164a.49.49 0 01-.625.75l-.068-.057L8 8.693.836 15.857a.49.49 0 01-.75-.625l.057-.068L7.307 8 .143.836a.49.49 0 01.625-.75l.068.057L8 7.307 15.164.143a.49.49 0 01.693 0z",fillRule:"evenodd"});function B(e,t){var a=e.title,n=e.titleId,s=M(e,["title","titleId"]);return r.createElement("svg",I({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},s),a?r.createElement("title",{id:n},a):null,P)}var H=r.forwardRef(B),A=(a.p,function(e){var t=e.children,a=e.type,r=Object(O.a)(e,["children","type"]);return Object(n.jsx)("button",Object(l.a)(Object(l.a)({className:y.a.button},r),{},{children:Object(n.jsxs)("span",{className:y.a.cta,children:[Object(n.jsxs)("span",{className:y.a.icon,children:["redo"===a&&Object(n.jsx)(k,{}),"undo"===a&&Object(n.jsx)(R,{}),"clear"===a&&Object(n.jsx)(H,{})]}),Object(n.jsx)("span",{className:y.a.text,children:t})]})}))}),F=function(e){var t=e.editorState,a=e.update,r=e.copy;return Object(n.jsxs)("div",{className:y.a.wrap,children:[Object(n.jsx)(A,{onClick:function(){v.undo(),a(g.EditorState.undo(t))},type:"undo",children:r.undo}),Object(n.jsx)(A,{onClick:function(){v.redo(),a(g.EditorState.redo(t))},type:"redo",children:r.redo}),Object(n.jsx)(A,{onClick:function(){v.clear(),a(g.EditorState.moveFocusToEnd(g.EditorState.push(t,g.ContentState.createFromText(""))))},type:"clear",children:r.clear})]})},U=a(6),J=a(18),W=a.n(J),V=a(9),Y=a.n(V),Z=function(e){var t,a=e.title,r=e.children,s=e.flush,c=e.extra,o=e.isLoading;return Object(n.jsxs)("div",{className:Y()(W.a.wrap,(t={},Object(U.a)(t,W.a.flush,s),Object(U.a)(t,W.a.isLoading,o),t)),children:[Object(n.jsx)("div",{className:W.a.title,children:Object(n.jsxs)("div",{className:W.a.grid,children:[Object(n.jsx)("span",{className:W.a.gi,children:Object(n.jsx)("h2",{children:a})}),c&&Object(n.jsx)("span",{className:W.a.gi,children:c})]})}),Object(n.jsxs)("div",{className:W.a.children,children:[Object(n.jsx)("div",{className:W.a.loader,children:Object(n.jsx)("svg",{className:W.a.icon,xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"32",height:"32","data-icon":"loop-circular","data-container-transform":"translate(0 3)",viewBox:"0 0 32 32",children:Object(n.jsx)("path",{d:"M16 0c-.483-.002-.955.01-1.438.063-1.286.139-2.564.466-3.781 1-4.694 2.061-7.781 6.811-7.781 11.938h-3l4.5 6 4.5-6h-3c0-3.913 2.416-7.614 6-9.188 3.713-1.63 8.196-.772 11.063 2.094l2.125-2.125c-2.466-2.465-5.808-3.77-9.188-3.781zm11.5 7l-4.5 6h3c0 3.913-2.416 7.583-6 9.156-3.713 1.63-8.196.772-11.063-2.094l-2.125 2.125c3.757 3.756 9.536 4.857 14.406 2.719 4.694-2.061 7.781-6.779 7.781-11.906h3l-4.5-6z",transform:"translate(0 3)"})})}),r]})]})},D=a(124),K=a(11),G=a.n(K),q=a(4),X=a.n(q),Q=function e(t){var a,s=t.children,c=t.type,o=t.i,d=t.hasHover,u=t.onUpdate,h=t.phrase,p=t.onClick,j=t.words,m=void 0===j?[]:j,b=Object(O.a)(t,["children","type","i","hasHover","onUpdate","phrase","onClick","words"]),f=Object(r.useRef)(),_=Object(r.useState)(o),x=m[Object(i.a)(_,1)[0]],y=(null===x||void 0===x?void 0:x.replacement)||{replacements:[]};if(x&&y.position){var g=Object(i.a)(x.position,2),w=g[0],N=g[1],S=Object(i.a)(y.position,2),T=[w-S[0],S[1]-N];y.replacements=y.replacements.map((function(e){return Object(l.a)(Object(l.a)({},e),{},{position:[b.start-T[0],b.end+T[1]]})}))}var k=Object(r.useState)({}),E=Object(i.a)(k,2),C=E[0],L=E[1],z=Object(r.useCallback)((function(){f.current&&L(f.current.getBoundingClientRect().toJSON())}),[]);Object(r.useLayoutEffect)((function(){z()}),[z]);var R=y.replacements.length>0&&""!==y.replacements[0].phrase,I=1===y.replacements.length&&""===y.replacements[0].phrase;return Object(n.jsxs)("span",{className:Y()(G.a.handle,(a={},Object(U.a)(a,G.a.onRight,C.left>=window.innerWidth-(window.innerWidth>=600?280:190)),Object(U.a)(a,G.a.hasReplacements,d),Object(U.a)(a,G.a.hasClick,p),Object(U.a)(a,G.a[c],c),a)),ref:f,onMouseEnter:z,onClick:p,children:[s,Object(n.jsxs)("span",{className:G.a.border,children:[d&&"feminine"===c&&Object(n.jsxs)("span",{className:G.a.replacements,contentEditable:!1,children:[Object(n.jsx)("p",{className:G.a.replacementsTitle,children:Object(n.jsx)("span",{dangerouslySetInnerHTML:{__html:q.tooltip.femaleTitle.replace(/{{current}}/gi,h)}})}),Object(n.jsx)("p",{children:q.tooltip.femaleCopy})]}),d&&y&&"masculine"===c&&Object(n.jsxs)("span",{className:G.a.replacements,contentEditable:!1,children:[Object(n.jsxs)("p",{className:G.a.replacementsTitle,children:[R&&!I&&Object(n.jsx)(n.Fragment,{children:Object(n.jsx)("span",{dangerouslySetInnerHTML:{__html:q.tooltip.text.replace(/{{current}}/gi,y.biased_phrase)}})}),!R&&!I&&Object(n.jsx)(n.Fragment,{children:Object(n.jsx)("span",{dangerouslySetInnerHTML:{__html:q.tooltip.noReplacements.replace(/{{current}}/gi,h)}})}),I&&Object(n.jsx)(n.Fragment,{children:Object(n.jsx)("span",{dangerouslySetInnerHTML:{__html:q.tooltip.removeWord.replace(/{{current}}/gi,h)}})})]}),R&&Object(n.jsx)("ul",{className:G.a.list,children:y.replacements.map((function(t){var a=t.phrase,r=t.coding,s=t.position;t.biased_phrase;return Object(n.jsx)("li",{className:G.a.suggestion,children:Object(n.jsx)(e,{type:r,onClick:function(){v.replaceText(y.biased_phrase,a),u(b.blockKey,s[0],s[1],a)},children:a})},a)}))}),I&&Object(n.jsx)("ul",{className:G.a.list,children:y.replacements.map((function(t){var a=t.phrase,r=(t.coding,t.position);return Object(n.jsx)("li",{className:G.a.suggestion,children:Object(n.jsx)(e,{onClick:function(){v.removeText(y.biased_phrase),u(b.blockKey,r[0],r[1]+1,a)},children:q.tooltip.removeText})},a)}))})]})]})]})},$=function(e,t){return function(a,n,r){if(e.length){var s=a.getText(),c=[],o=0,l=t.find((function(e){return e.key===a.getKey()}));(l?e.filter((function(e){var t=l.start,a=l.end;return e.position[0]>=t&&e.position[1]<=a})):e).map((function(e){return e.term})).forEach((function(e){var t="(?:[^a-zA-Z]|^)(".concat(e,")(?:[^a-zA-Z]|$)"),a=new RegExp(t,"i").exec(s);if(a){var n=a.index+a[0].indexOf(a[1]),r=n+a[1].length;s=s.substring(r),c.push({start:o+n,end:o+r,text:a[1]}),o+=r}})),c.forEach((function(e){var t=e.start,a=e.end;return n(t,a)}))}}},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=function(t){return Object(D.a)(e.filter((function(e){return e.coding===t})).sort((function(e,t){return e.position[0]-t.position[0]})))},s=0,c=0,o=r("male-coded"),i=r("female-coded");return new g.CompositeDecorator([{strategy:$(o,a),props:{words:o},component:function(e){var a=Object(n.jsx)(Q,Object(l.a)(Object(l.a)({},e),{},{type:"masculine",onUpdate:t,i:s,hasHover:!0,phrase:e.decoratedText}));return s+=1,a}},{strategy:$(i,a),props:{words:i},component:function(e){var a=Object(n.jsx)(Q,Object(l.a)(Object(l.a)({},e),{},{type:"feminine",i:c,onUpdate:t,hasHover:!0,phrase:e.decoratedText}));return c+=1,a}}])},te=function(e,t,a,n,r){var s=e.getCurrentContent(),c=g.SelectionState.createEmpty(t).merge({anchorOffset:a,focusOffset:n});s=g.Modifier.replaceText(s,c,r);var o=c.merge({anchorOffset:c.getAnchorOffset()+r.length,focusOffset:c.getAnchorOffset()+r.length});return g.EditorState.forceSelection(g.EditorState.push(e,s),o)},ae=a(121),ne=a.n(ae),re=function(e){Object(m.a)(a,e);var t=Object(b.a)(a);function a(e){var n;Object(h.a)(this,a),(n=t.call(this,e)).updateEditorState=n.updateEditorState.bind(Object(j.a)(n)),n.replace=n.replace.bind(Object(j.a)(n));var r=ee(n.props.words,n.replace);n.updateTextDebounced=ne()((function(e){n.props.setText(e)}),400);var s=g.ContentState.createFromText("");return n.state={editorState:g.EditorState.createWithContent(s,r)},n}return Object(p.a)(a,[{key:"updateEditorState",value:function(e){this.updateTextDebounced(e.getCurrentContent().getPlainText()),this.setState({editorState:e})}},{key:"replace",value:function(e,t,a,n){var r=te(this.state.editorState,e,t,a,n);this.setState({editorState:r}),this.updateTextDebounced(r.getCurrentContent().getPlainText())}},{key:"componentWillUpdate",value:function(e){if(JSON.stringify(this.props.words)!==JSON.stringify(e.words)){var t=this.state.editorState.getCurrentContent().getBlocksAsArray().map((function(e){return{size:e.getLength(),key:e.getKey()}})).reduce((function(e,t,a){var n=0===a?0:e[a-1].end+1;return e.push({key:t.key,start:n,end:n+t.size,size:t.size}),e}),[]),a=ee(e.words,this.replace,t);this.updateEditorState(g.EditorState.set(this.state.editorState,{decorator:a}))}}},{key:"render",value:function(){var e=this.props.copy;return Object(n.jsx)(Z,{title:e.title,flush:!0,extra:Object(n.jsx)(F,{copy:e.buttons,editorState:this.state.editorState,update:this.updateEditorState}),children:Object(n.jsx)("div",{className:_.a.editor,children:Object(n.jsx)(g.Editor,{placeholder:e.initialText,editorState:this.state.editorState,onChange:this.updateEditorState,handlePastedText:function(){return v.textPaste(),!1}})})})}}]),a}(s.a.Component),se=a(23),ce=a.n(se),oe=function(e){var t,a=e.heading,r=e.text,s=e.url,c=e.cta,o=e.img;return Object(n.jsx)("div",{children:Object(n.jsxs)("div",{className:Y()(ce.a.cta,(t={},Object(U.a)(t,ce.a.ss,!1),Object(U.a)(t,ce.a.tj,!0),t)),children:[Object(n.jsx)("div",{children:Object(n.jsx)("img",{className:ce.a.img,src:o,alt:""})}),Object(n.jsxs)("div",{children:[Object(n.jsx)("p",{className:ce.a.heading,children:a}),Object(n.jsx)("p",{className:ce.a.text,children:r}),Object(n.jsx)("p",{className:ce.a.text,children:Object(n.jsx)("a",{className:ce.a.button,href:s,target:"_blank",rel:"noreferrer",children:c})})]})]})})},le=a(15),ie=a.n(le),de=function(e){var t,a,r=e.male_coded_count,s=e.female_coded_count;e.mf_ratio_score;return Object(n.jsxs)("div",{className:ie.a.wrap,children:[Object(n.jsxs)("div",{className:ie.a.bar,style:{"--size":r},children:[Object(n.jsx)("div",{className:Y()(ie.a.masculine,(t={},Object(U.a)(t,ie.a.isZero,0===r),Object(U.a)(t,ie.a.otherIsZero,0===s),t)),style:{"--size":r}}),Object(n.jsx)("div",{className:Y()(ie.a.feminine,(a={},Object(U.a)(a,ie.a.isZero,0===s),Object(U.a)(a,ie.a.otherIsZero,0===r),a)),style:{"--size":s}})]}),Object(n.jsxs)("div",{className:ie.a.key,children:[Object(n.jsx)("span",{className:Y()(ie.a.text,Object(U.a)({},ie.a.isZero,0===r)),children:r}),Object(n.jsx)("span",{className:Y()(ie.a.text,Object(U.a)({},ie.a.isZero,0===s)),children:s})]})]})},ue=a(45),he=a.n(ue),pe=a(34),je=a.n(pe),me=a(73),be=a.n(me);be.a.setAppElement("#decoder-root");var fe=function(){return Object(n.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",children:Object(n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",children:Object(n.jsx)("path",{d:"M15.857.143a.49.49 0 01.056.625l-.056.068L8.693 8l7.164 7.164a.49.49 0 01-.625.75l-.068-.057L8 8.693.836 15.857a.49.49 0 01-.75-.625l.057-.068L7.307 8 .143.836a.49.49 0 01.625-.75l.068.057L8 7.307 15.164.143a.49.49 0 01.693 0z","fill-rule":"evenodd"})})})},_e=function(e){var t=e.children,a=e.openText,s=void 0===a?"Open me!":a,c=Object(r.useState)(!1),o=Object(i.a)(c,2),l=o[0],d=o[1];return Object(n.jsxs)("div",{children:[Object(n.jsx)("button",{className:je.a.openButton,onClick:function(){return d(!0)},children:s}),Object(n.jsxs)(be.a,{closeTimeoutMS:300,isOpen:l,className:je.a.modal,shouldCloseOnOverlayClick:!0,children:[Object(n.jsx)("div",{className:je.a.close,children:Object(n.jsx)("button",{className:je.a.closeButton,onClick:function(){return d(!1)},children:Object(n.jsx)(fe,{})})}),Object(n.jsx)("div",{className:je.a.modalInner,children:t})]})]})},Oe=function(){var e=q.info.cta,t=q.info.copy;return Object(n.jsxs)(_e,{openText:Object(n.jsxs)("span",{className:he.a.cta,children:[Object(n.jsx)("svg",{className:he.a.icon,width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:Object(n.jsx)("path",{d:"M8 0a8 8 0 110 16A8 8 0 018 0zm0 .941A7.059 7.059 0 108 15.06 7.059 7.059 0 008 .94zM7.658 5.48c.414 0 .756.31.806.71l.007.103v4.449c0 .098.066.181.157.206l.056.008h1.027a.47.47 0 01.085.933l-.085.008H8.684c-.598 0-1.09-.455-1.149-1.037l-.006-.118V6.419h-.898a.47.47 0 01-.463-.385l-.008-.085a.47.47 0 01.386-.463l.085-.007h1.027zm.167-1.715l.063.004.015.001.017.002.035.006a.5.5 0 01.043.01l-.078-.016a.642.642 0 11-.19 0l.095-.007z",fill:"currentColor",fillRule:"evenodd"})}),!1,e]}),children:[Object(n.jsx)("h2",{className:he.a.title,children:e}),t.map((function(e,t){var a=e.value;return Object(n.jsx)("p",{className:he.a.p,dangerouslySetInnerHTML:{__html:a}},t)}))]})},ve=a(59),xe=a.n(ve),ye=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(r){return xe()(r,new RegExp(e,"gi"),(function(e,r){return Object(n.jsxs)(n.Fragment,{children:[" ",Object(n.jsx)(t,Object(l.a)(Object(l.a)({},a),{},{children:e}))," "]})}))}},ge=function(e){var t=ye(" (".concat(q.output.male.join("|"),") "),Q,{type:"masculine"}),a=ye(" (".concat(q.output.female.join("|"),") "),Q,{type:"feminine"});return ye("(.+)",(function(e){var t=e.children,a=Object(O.a)(e,["children"]);return Object(n.jsx)("strong",Object(l.a)(Object(l.a)({},a),{},{children:t}))}))(a(t(e)))},we=function(e,t,a){var n=t+a;return 0===n?ge(e.none):n>0&&a===t?ge(e.balance):t>a?ge(e.moreMale):a>t?ge(e.moreFemale):void 0},Ne=a(35),Se=a.n(Ne),Te=function(e){var t=e.metrics,a=e.words,s=e.copy,c=e.isLoading,o=t||{male_coded_count:0,female_coded_count:0,male_per_100_score:0,female_per_100_score:0},d=o.male_coded_count,u=o.female_coded_count,h=o.male_per_100_score,p=d+u,j=we(s.results,d,u);return Object(n.jsx)(Z,{title:s.title,extra:Object(n.jsx)(Oe,{}),isLoading:c,children:Object(n.jsxs)("div",{className:Se.a.wrap,children:[Object(n.jsx)("p",{className:Se.a.resultsTitle,children:j}),0!==p&&Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("div",{className:Se.a.chart,children:Object(n.jsx)(de,Object(l.a)({},t))}),Object(n.jsxs)("p",{className:Se.a.title,children:[s.results.bias[t.amount_of_bias]," ",function(e,t){var a={percentageMale:t};return Object.entries(a).reduce((function(e,t){var a=Object(i.a)(t,2),r=a[0],s=a[1];return xe()(e,"{{".concat(r,"}}"),(function(e){return Object(n.jsx)("strong",{children:s})}))}),e)}(s.wordsListTitle,h.toFixed(1)),h>0&&Object(n.jsxs)(n.Fragment,{children:[" ",s.replacementText]})]}),Object(n.jsx)("p",{className:Se.a.words,children:a.filter((function(e){return"male-coded"===e.coding})).sort((function(e,t){return e.term.localeCompare(t.term)})).map((function(e,t){var a=e.term,s=e.coding;return Object(n.jsxs)(r.Fragment,{children:[Object(n.jsx)(Q,{type:s,children:a})," "]},t)}))})]})]})})},ke=a(74),Ee=a.n(ke),Ce=a(122),Le=window.bwSettings.apiURL,ze={},Re=null,Ie="landing-page-tj",Me=function(e){var t=Object(r.useState)(null),a=Object(i.a)(t,2),n=a[0],s=a[1],c=Object(r.useState)(null),o=Object(i.a)(c,2),l=o[0],d=o[1],u=Object(r.useState)(!1),h=Object(i.a)(u,2),p=h[0],j=h[1];return Object(r.useEffect)((function(){var t=e.trim();if(""===t)return s(null);ze[t]?s(ze[t]):function(){var e=Object(Ce.a)(Ee.a.mark((function e(){var a,n,r,c;return Ee.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(null),j(!0),e.prev=2,Re&&Re(),a=new AbortController,n=a.signal,Re=function(){return a.abort()},e.next=9,fetch("".concat(Le,"/prediction"),{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:t,language:q.metadata.lang,source:Ie}),signal:n});case 9:if((r=e.sent).ok){e.next=12;break}throw new Error("Something went wrong.");case 12:return e.next=14,r.json();case 14:c=e.sent,Re=null,ze[t]=c,v.apiResponse(c.response_id,c.metrics),s(c),j(!1),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(2),console.log(e.t0),"AbortError"!==e.t0.name&&(j(!1),d(e.t0));case 26:case"end":return e.stop()}}),e,null,[[2,22]])})));return function(){return e.apply(this,arguments)}}()()}),[e]),{response:n,error:l,isLoading:p}},Pe=function(e){e.inputData;var t=Object(r.useState)(""),a=Object(i.a)(t,2),s=a[0],c=a[1],o=Me(s),d=o.response,h=o.isLoading;return Object(n.jsxs)("div",{className:u.a.wrap,children:[Object(n.jsx)("div",{className:u.a.input,children:Object(n.jsx)("div",{className:u.a.sticky,children:Object(n.jsx)(re,{words:(null===d||void 0===d?void 0:d.detected_bias)||[],copy:q.input,setText:function(e){s!==e&&c(e)}})})}),Object(n.jsx)("div",{className:u.a.output,children:Object(n.jsxs)("div",{className:u.a.sticky,children:[Object(n.jsx)(Te,{isLoading:h,metrics:null===d||void 0===d?void 0:d.metrics,words:null===d||void 0===d?void 0:d.detected_bias,copy:q.output}),q.switchText&&Object(n.jsxs)("p",{children:[q.switchText," ",Object(n.jsx)("a",{className:u.a.link,href:window.bwSettings.deURL,children:q.switchTextCTA})]})]})}),q.cta&&Object(n.jsx)("div",{className:u.a.cta,children:Object(n.jsx)(oe,Object(l.a)({},q.cta))})]})},Be=a(268).default,He=a(265).default;v.pageLoad(X.a.metadata.lang);var Ae=function(){return Object(n.jsx)("div",{children:Object(n.jsxs)("div",{className:"tj",children:[X.a.intro&&Object(n.jsx)(Be,{}),X.a.intro&&Object(n.jsx)(o,{copy:X.a.intro}),Object(n.jsx)(Pe,{}),X.a.footer&&Object(n.jsx)(He,{text:X.a.footer})]})})},Fe=(a(266),document.getElementById("decoder-root"));Fe.hasChildNodes()?Object(c.hydrate)(Object(n.jsx)(Ae,{}),Fe):Object(c.render)(Object(n.jsx)(Ae,{}),Fe)},268:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a(1),s=a(61),c=a.n(s),o=a(60);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var d=r.createElement("path",{d:"M163.205 25.926c2.285 0 3.706-.594 3.727-1.828.055-.943-.354-1.525-2.24-1.874l-4.391-.823c-3.2-.549-6.445-2.286-6.445-6.399 0-3.82 3.635-7.175 9.166-7.175 3.93 0 8.684 1.317 9.486 7.358h-5.53c-.137-1.965-1.854-2.605-3.956-2.605-2.285 0-3.223.955-3.224 1.828 0 .823.436 1.783 2.539 2.148l3.772.64c3.382.594 6.536 2.148 6.536 6.353-.272 4.575-4.047 7.222-9.578 7.222-4.67 0-9.081-2.203-9.896-7.636h5.572c.51 2.11 2.067 2.79 4.462 2.79zm-23.59-.594c-1.965 0-3.772-.548-5.189-2.56V15.87c1.417-2.011 3.224-2.56 5.189-2.56 3.428 0 5.646 2.743 5.646 5.988 0 3.29-2.218 6.033-5.646 6.033zm.914-17.46c-2.422 0-4.412.686-6.103 1.782V.228h-5.988v29.994h5.988v-1.234c1.691 1.097 3.681 1.783 6.103 1.783 6.033 0 10.72-5.12 10.72-11.472 0-6.308-4.687-11.426-10.72-11.426zm-26.095 17.46c-3.335 0-5.463-2.469-5.463-5.988 0-3.565 2.128-6.033 5.463-6.033 3.292 0 5.419 2.468 5.419 6.033 0 3.52-2.127 5.988-5.419 5.988zm0-17.46c-6.855 0-11.45 4.708-11.45 11.472 0 6.719 4.595 11.427 11.45 11.427 6.81 0 11.407-4.708 11.407-11.427 0-6.764-4.596-11.471-11.407-11.471zM94.44 6.216h5.988V.228H94.44v5.987zm5.988 21.914c0 6.428-1.945 10.228-9.49 10.228v-5.295c2.588 0 3.502-1.38 3.502-4.156V8.484h5.988v19.645zm-16.103 2.094h5.987V.23h-5.987v29.994zm-9.776-7.449c-1.417 2.011-3.223 2.56-5.19 2.56-3.427 0-5.645-2.743-5.645-5.988 0-3.29 2.218-6.033 5.646-6.033 1.966 0 3.772.549 5.19 2.56v6.901zm0-14.351v1.234c-1.69-1.097-3.68-1.783-6.103-1.783-6.033 0-10.72 5.12-10.72 11.472 0 6.307 4.687 11.427 10.72 11.427 2.422 0 4.412-.686 6.103-1.783v1.234h5.988V8.423h-5.988zm-18.386 3.148V6.21h-3.501V.23h-5.987v5.98h-3.501v5.362h3.501v8.973c0 6.428 2.027 10.229 9.488 10.229v-5.296c-2.664 0-3.501-1.38-3.501-4.156v-9.75h3.501zM31.458 25.333c-3.336 0-5.464-2.467-5.464-5.987 0-3.565 2.128-6.033 5.464-6.033 3.29 0 5.418 2.468 5.418 6.033 0 3.52-2.128 5.987-5.418 5.987zm0-17.459c-6.856 0-11.451 4.708-11.451 11.472 0 6.72 4.595 11.427 11.45 11.427 6.81 0 11.406-4.708 11.406-11.427 0-6.764-4.596-11.472-11.405-11.472zM0 6.21h25.089V.214H0v5.995zm9.551 24.015h5.987V8.486H9.55v21.738z",fill:"#3CBF0A",fillRule:"evenodd"});function u(e,t){var a=e.title,n=e.titleId,s=i(e,["title","titleId"]);return r.createElement("svg",l({width:111,height:24,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 173 39",ref:t,"aria-labelledby":n},s),a?r.createElement("title",{id:n},a):null,d)}var h=r.forwardRef(u);a.p,t.default=function(){return Object(n.jsx)("header",{className:c.a.header,children:Object(n.jsx)(o.a,{isLarge:!0,children:Object(n.jsx)("div",{className:c.a.container,children:Object(n.jsxs)("a",{className:c.a.link,href:"https://www.totaljobs.com/","aria-label":"totaljobs.com",target:"blank",children:[Object(n.jsx)(h,{})," "]})})})})}},33:function(e,t,a){e.exports={wrap:"style_wrap__dQlxJ",button:"style_button__1XBuE",cta:"style_cta__2tWpE",text:"style_text__2nV2I",icon:"style_icon__2cVTR"}},34:function(e,t,a){e.exports={wrap:"style_wrap__1eiio",openButton:"style_openButton__2OEdJ",modal:"style_modal__2agqS",modalInner:"style_modalInner__XDwlm",close:"style_close__3Jb_s",closeButton:"style_closeButton__2dfs4"}},35:function(e,t,a){e.exports={wrap:"style_wrap__2rOWW",chart:"style_chart__14eOj",resultsTitle:"style_resultsTitle__3BFai",title:"style_title__3lDyh",words:"style_words__REN8a"}},36:function(e,t,a){e.exports={container:"style_container__1HOb1"}},4:function(e,t,a){e.exports=a(232)},45:function(e,t,a){e.exports={title:"style_title__1Td7a",p:"style_p__3XQrI",cta:"style_cta__27T1i",icon:"style_icon__15Xlw"}},60:function(e,t,a){"use strict";var n=a(0),r=a(6),s=(a(1),a(36)),c=a.n(s),o=a(9),l=a.n(o);t.a=function(e){var t=e.children,a=e.isSmall,s=e.noPadding,o=e.noMargin,i=e.className,d=e.isLarge;return Object(n.jsx)("section",{className:l()(c.a.container,Object(r.a)({},c.a.isSmall,a),Object(r.a)({},c.a.isLarge,d),Object(r.a)({},c.a.noPadding,s),Object(r.a)({},c.a.noMargin,o),i),children:t})}},61:function(e,t,a){e.exports={header:"style_header__1v-hU",container:"style_container__2ylbe",link:"style_link__273MC"}}},[[267,1,2]]]);
//# sourceMappingURL=main.44f56df1.chunk.js.map