PageSourceSearch

https://www.twine.net/dist/BriefDetailsClient-BriefDetailsClient-c90bc50d363e106176c1.chunk.js

js twine.net collected 2026-09-24 19:40:59 UTC 158,825 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2f109f1-2cda-46b8-8e15-6e6da87cf07f",e._sentryDebugIdIdentifier="sentry-dbid-f2f109f1-2cda-46b8-8e15-6e6da87cf07f")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"85c3a7a97c3fcc14a905763857ba67fbaa98c93c"},(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[40332],{
1"./src/components/Linkify/Linkify.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>p});s("./node_modules/core-js/modules/es.regexp.constructor.js"),s("./node_modules/core-js/modules/es.regexp.dot-all.js"),s("./node_modules/core-js/modules/es.regexp.exec.js"),s("./node_modules/core-js/modules/es.regexp.to-string.js"),s("./node_modules/core-js/modules/es.regexp.test.js"),s("./node_modules/core-js/modules/es.string.match.js"),s("./node_modules/core-js/modules/es.string.replace.js"),s("./node_modules/core-js/modules/es.array.iterator.js"),s("./node_modules/core-js/modules/web.dom-collections.iterator.js");var i=s("./node_modules/prop-types/index.js"),n=s.n(i),r=s("./node_modules/react/index.js"),o=s("./node_modules/linkify-it/index.js"),a=s.n(o),l=s("./node_modules/tlds/index.json"),c=s("./node_modules/react/jsx-runtime.js"),d=new(a());d.tlds(l),d.add("@",{validate:(e,t,s)=>{var i=e.slice(t);return s.re.username||(s.re.username=new RegExp("^([a-zA-Z0-9_]){3,20}(?!_)(?=$|"+s.re.src_ZPCc+")")),s.re.username.test(i)?!(t>=2&&"@"===i[t-2])&&i.match(s.re.username)[0].length:0},normalize:e=>{e.url="/"+e.url.replace(/^@/,"")}}),d.add("#",{validate:(e,t,s)=>{var i=e.slice(t);return s.re.hashtag||(s.re.hashtag=new RegExp("^([a-zA-Z0-9_]){1,100}(?!_)(?=$|"+s.re.src_ZPCc+")")),s.re.hashtag.test(i)?!(t>=2&&"#"===i[t-2])&&i.match(s.re.hashtag)[0].length:0},normalize:e=>{e.url="/browse/"+e.url.replace(/^#/,"%23")}});class h extends r.Component{constructor(){super(...arguments),this.parseCounter=0}getMatches(e){var t=d.match(e);return t&&Object.keys(t).map(function(e){"#"===t[e].schema&&(t[e]=this.parseHashTags(t[e]))}.bind(this)),t}parseHashTags(e){return this.props.suggestedRoles.length>0&&this.props.suggestedRoles.forEach((t=>{void 0===t||t.slug.replace("-","")!==e.text.replace("#","")&&t.slug_plural.replace("-","")!==e.text.replace("#","")||(e.url="/find/"+t.slug_plural)})),this.props.suggestedSkills.length>0&&this.props.suggestedSkills.forEach((t=>{void 0===t||t.slug.replace("-","")!==e.text.replace("#","")&&t.slug_plural.replace("-","")!==e.text.replace("#","")||(e.url="/get/"+t.slug_plural)})),e}domain(e){return e.replace("http://","").replace("https://","").split("/")[0]}parseString(e){var t=[];if(""===e)return t;var s=this.getMatches(e);if(!s)return e;var i=0;return s.forEach(((s,n)=>{s.index>i&&t.push(e.substring(i,s.index));var o={href:s.url,key:"parse".concat(this.parseCounter,"match").concat(n)};for(var a in this.props.properties)if({}.hasOwnProperty.call(this.props.children,a)){var l=this.props.properties[a];l===h.MATCH&&(l=s.url),o[a]=l}var c=this.domain(window.location.href),d=this.domain(s.url);""!==d&&d!==c&&(o.target="_blank",o.rel="nofollow noopener noreferrer"),t.push(r.createElement(this.props.component,o,s.text)),i=s.lastIndex})),i<e.length&&t.push(e.substring(i)),1===t.length?t[0]:t}parse(e){var t=e;return"string"==typeof e?t=this.parseString(e):r.isValidElement(e)&&"a"!==e.type&&"button"!==e.type?t=r.cloneElement(e,{key:"parse".concat(++this.parseCounter)},this.parse(e.props.children)):e instanceof Array&&(t=e.map((e=>this.parse(e)))),t}render(){this.parseCounter=0;var e=this.parse(this.props.children);return(0,c.jsx)("span",{className:this.props.className,children:e})}}h.propTypes={className:n().string,component:n().any,properties:n().object,urlRegex:n().object,emailRegex:n().object,suggestedRoles:n().array,suggestedSkills:n().array,children:n().any},h.defaultProps={className:"Linkify",component:"a",properties:{},suggestedRoles:[],suggestedSkills:[]},h.MATCH="LINKIFY_MATCH";const p=h},
1"./src/components/Pitch/DeclinePitch.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>d});var i=s("./node_modules/prop-types/index.js"),n=s.n(i),r=(s("./node_modules/react/index.js"),s("./node_modules/react-bootstrap/lib/Button.js")),o=s.n(r),a=s("./src/components/Icon/Icon.js"),l=s("./node_modules/react/jsx-runtime.js"),c=e=>{var{onCancel:t,onDecline:s}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{style:{textAlign:"center",fontSize:"26px"},children:(0,l.jsx)("strong",{children:"Remove Freelancer"})}),(0,l.jsx)("div",{style:{textAlign:"center",fontSize:"400%",margin:0},children:(0,l.jsx)(a.Z,{color:"#d9534f",icon:""})}),(0,l.jsx)("p",{style:{textAlign:"center"},children:"Notify the freelancer that you're not working with them for this job."}),(0,l.jsx)("p",{style:{textAlign:"center"},children:"You can still favourite or hire them on future jobs."}),(0,l.jsxs)("p",{style:{textAlign:"center"},className:"mt",children:[(0,l.jsx)(o(),{style:{marginRight:50},bsStyle:"info",onClick:t,children:"Cancel"}),(0,l.jsx)(o(),{style:{marginLeft:50},bsStyle:"danger",onClick:s,children:"Remove freelancer"})]})]})};c.propTypes={onCancel:n().func.isRequired,onDecline:n().func.isRequired};const d=c},
1"./src/components/Price/Price.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var i=s("./node_modules/prop-types/index.js"),n=s.n(i),r=(s("./node_modules/react/index.js"),s("./src/helpers/HelperFunctions.js")),o=s("./node_modules/react/jsx-runtime.js"),a=e=>{var{amount:t,currency:s,rounded:i,style:n}=e;return t<0?(0,o.jsx)("span",{style:n,children:"Negotiable"}):(0,o.jsx)("span",{style:n,children:(0,r.lb)(t,s,!i)})};a.propTypes={amount:n().number.isRequired,currency:n().oneOf(["usd","gbp","eur",""]).isRequired,rounded:n().bool,style:n().object};const l=a},
1"./src/components/Shared/Buttons/BrowseCTA/BrowseCTA.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>g});s("./node_modules/core-js/modules/es.array.includes.js"),s("./node_modules/core-js/modules/es.string.includes.js");var i=s("./node_modules/prop-types/index.js"),n=s.n(i),r=(s("./node_modules/react/index.js"),s("./node_modules/react-bootstrap/lib/Button.js")),o=s.n(r),a=s("./src/components/Shared/LinkOrAnchor.js"),l=s("./src/components/SvgIcon/SvgIcon.js"),c=s("./src/helpers/HelperFunctions.js");const d="_3dOnM82R",h="u8_uHwiH",p="T-Is6h9U";var u=s("./node_modules/react/jsx-runtime.js"),m=e=>{var{browseURL:t,browseFilter:s,bsStyle:i,bsSize:n,handleOnClick:r,title:m}=e;return(0,u.jsx)(a.Z,{isLink:!(t&&t.includes("post-a-job")),to:t||(0,c.Wv)(s),children:(0,u.jsx)("div",{className:d,children:(0,u.jsx)(o(),{bsStyle:i,bsSize:n,onClick:r,children:(0,u.jsxs)("div",{className:h,children:[(0,u.jsx)("span",{className:p,children:m||"Browse freelancers"}),(0,u.jsx)(l.Z,{icon:"chevron-right",size:"14"})]})})})})};m.propTypes={bsStyle:n().string,bsSize:n().string,browseURL:n().string,browseFilter:n().shape({role:n().string,skill:n().string,country:n().string,city:n().string,location:n().string}),title:n().string,handleOnClick:n().func},m.defaultProps={bsStyle:"primary",bsSize:"lg"};const g=m},
1"./src/components/Shared/UserCard2/UserCard2.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>p});var i=s("./node_modules/core-js/modules/es.array.iterator.js"),n=s.n(i),r=s("./node_modules/core-js/modules/es.promise.js"),o=s.n(r),a=s("./node_modules/core-js/modules/web.dom-collections.iterator.js"),l=s.n(a),c=s("./node_modules/react/index.js"),d=s("./node_modules/@loadable/component/dist/loadable.esm.js"),h=(0,d.ZP)({resolved:{},chunkName:()=>"UserCard2Base",isReady(e){var t=this.resolve(e);return!0===this.resolved[t]&&!!s.m[t]},importAsync:()=>Promise.all([s.e(57790),s.e(33123),s.e(9039),s.e(85207)]).then(s.bind(s,"./src/components/Shared/UserCard2/UserCard2Base.js")),requireAsync(e){var t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){var t=this.resolve(e);return s(t)},resolve(){return"./src/components/Shared/UserCard2/UserCard2Base.js"}});const p=h},
1"./src/components/TimeAgo/TimeAgo.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});s("./node_modules/core-js/modules/es.regexp.exec.js"),s("./node_modules/core-js/modules/es.string.match.js"),s("./node_modules/react/index.js");var i=s("./node_modules/react/jsx-runtime.js"),n=["timestamp","showSuffix"];function r(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?r(Object(s),!0).forEach((function(t){a(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function a(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function l(e,t){if(null==e)return{};var s,i,n=function(e,t){if(null==e)return{};var s,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)s=r[i],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)s=r[i],t.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}var c=3600,d=86400,h=7*d,p=30*d,u=365*d;const m=e=>{var{timestamp:t,showSuffix:s=!0}=e,r=l(e,n),a=t.match(/\d+/g),m=new Date(Date.UTC(a[0],a[1]-1,a[2],a[3],a[4],a[5])).getTime(),g=(new Date).getTime(),j=Math.round(Math.abs(g-m)/1e3),x=m<g?"ago":"from now",b=0;return isNaN(j)||void 0===j?b="undefined":j<60?b="a minute":j<c?(b=Math.round(j/60,10),b+=1===b?" minute":" minutes"):j<d?(b=Math.round(j/c,10),b+=1===b?" hour":" hours"):j<h?(b=Math.round(j/d,10),b+=1===b?" day":" days"):j<p?(b=Math.round(j/h,10),b+=1===b?" week":" weeks"):j<u?(b=Math.round(j/p,10),b+=1===b?" month":" months"):(b=Math.round(j/u,10),b+=1===b?" year":" years"),(0,i.jsxs)("span",o(o({},r),{},{children:[b,s&&(0,i.jsxs)("span",{children:[" ",x]})]}))}},
1"./src/containers/BriefDetailsClient/BriefDetailsClient.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>ho});s("./node_modules/core-js/modules/es.regexp.exec.js"),s("./node_modules/core-js/modules/es.string.match.js"),s("./node_modules/core-js/modules/es.array.iterator.js"),s("./node_modules/core-js/modules/es.promise.js"),s("./node_modules/core-js/modules/web.dom-collections.iterator.js"),s("./node_modules/core-js/modules/es.string.replace.js");var i=s("./node_modules/prop-types/index.js"),n=s.n(i),r=s("./node_modules/react/index.js"),o=s("./node_modules/redux-connect/es/containers/decorator.js"),a=s("./src/helpers/HelperFunctions.js"),l=s("./node_modules/react-router-dom/esm/react-router-dom.js"),c=s("./src/components/Shared/Breadcrumbs.js"),d=(s("./node_modules/core-js/modules/es.array.includes.js"),s("./node_modules/core-js/modules/es.string.includes.js"),s("./node_modules/core-js/modules/es.object.assign.js"),s("./node_modules/moment/moment.js")),h=s.n(d),p=s("./node_modules/react-bootstrap/es/Row.js"),u=s("./node_modules/react-bootstrap/es/Col.js"),m=s("./node_modules/react-bootstrap/es/Button.js"),g=s("./node_modules/date-fns/esm/format/index.js"),j=s("./src/components/Shared/DatePicker.js"),x=s("./src/components/Label/Label.js"),b=s("./src/components/Shared/Markdown.js"),f=s("./src/components/Panel/Panel.js"),v=s("./src/components/Price/Price.js"),y=s("./src/components/SvgIcon/SvgIcon.js"),_=s("./src/components/AlertBox/AlertBox.js"),w=s("./src/components/Modal/Modal.js"),P=s("./src/components/Thumbnails/Thumbnail.js");function N(e,t){if(!t||!t.last_active)return null;var s=(new Date-new Date(t.last_active))/1e3/3600;return s<=1?"actively_reviewing":s<=48?"recently_active":null}var C=s("./src/components/ImageCropper2/ImageCropper2.js"),S=s("./src/components/SingleLocationDropdown/SingleLocationDropdown.js"),k=s("./src/components/Icon/Icon.js"),O=s("./src/components/Shared/Buttons/BrowseCTA/BrowseCTA.js"),T=s("./src/constants/constants.js"),R=s("./src/propTypes/sharedShapes.js");const D=n().shape({active:n().bool,amount:n().number,approved_at:n().string,blocked_at:n().string,budget:n().number,commission:n().number,currency:n().oneOf(["eur","gbp","usd"]),day_rate:n().bool,deleted_at:n().string,external:n().bool,external_url:n().string,expires_at:n().string,featured:n().bool,id:n().number,invites:n().shape({invites:n().array}),links:R.t,location:n().string,num_of_approved_pitches_and_not_accepted:n().number,num_of_pitches:n().number,num_of_pitches_or_pending_pitches:n().number,num_of_public_questions:n().number,priority:n().string,private:n().bool,questions:n().array,rating:n().array,remote:n().bool,role:n().string,roles:n().array,skill:n().string,spec:n().string,status:n().string,text:n().string,timestamp:n().string,user:n().number,user_id:n().number,voucher_id:n().number}),A="_2KWgrbFF",E="XBBI9Jpq",L="pxicjhAq",Z="PQJN9Qiq",B="_25HiSxkK",I="_1GSL3Tqo",M="_3bV-bIJW",U="SwjGU4Ot",Q="_2egaNaiG",F="_3Q4zaZ1f",z="_1XreXJIx",H="_1N9hp3bc",q="vsn0IkFv",W="_3ICjkUvA",Y="_1uMwA2i4",G="_26JKpnCN",J="_3velf4vP",V="_2ZHjRVdf",X="_1H_J1_rF",K="_2UGTQAjw",$="_1Wmea-2F",ee="_10RvtqbT",te="_1jZMOcWi",se="_22BjFPe9",ie="_3PFnM-n3",ne="IhAaly5q",re="_3p5h00rP",oe="_3oXOdJ6R",ae="_1RmT21e6",le="LGXiEsVa",ce="_2UWa2cZ0",de="_3td_N_wh",he="_39cPLicB",pe="_2hYEnEoo",ue="qwUWAZJA",me="_21u8ayRk",ge="JD8GlcDH",je="_3TxVfOc6",xe="JrAw_c2G",be="dC5wac-q",fe="_1v4d9FyS";var ve=s("./node_modules/react-redux/es/index.js"),ye=s("./src/redux/modules/reports.js"),_e=s("./src/components/Portfolio/ReportUser.js"),we=s("./node_modules/react/jsx-runtime.js"),Pe=e=>{var{claimant:t,accusedUser:s,isBrief:i,onClose:n,brief:o}=e,a=(0,ve.useDispatch)(),[l,c]=(0,r.useState)("example"),[d,h]=(0,r.useState)("Spam"),p=(e,t,s)=>{a((0,ye.iK)(e,t,s)),c(""),h("Spam"),n()};return(0,r.useEffect)((()=>{var e;console.log(o),i&&(e="".concat(null==t?void 0:t.displayname," is reporting ").concat(null==s?void 0:s.displayname," for the following brief: ").concat(o.links.main),c(e))}),[i]),(0,we.jsx)(_e.Z,{onChangeReportComments:e=>c(e),onChangeReportReason:e=>h(e),onReport:()=>p(s,d,l),reportComments:l,reportReason:d,user:s})};const Ne=Pe;Pe.propTypes={claimant:n().object,accusedUser:n().object,isBrief:n().bool,onClose:n().func};var Ce=e=>{var{brief:t,browseURL:s,editable:i,isOwner:n,isReview:o,narrow:c,onSaveEdit:d,owner:R,user:D}=e,[ve,ye]=(0,r.useState)({}),[_e,Pe]=(0,r.useState)(new Date(t.expires_at)),[Ce,Se]=(0,r.useState)(!1),[ke,Oe]=(0,r.useState)(!1),[Te,Re]=(0,r.useState)({}),[De,Ae]=(0,r.useState)(!1),[Ee,Le]=(0,r.useState)(null),[Ze,Be]=(0,r.useState)(!1);(0,r.useEffect)((()=>{window.location.href.includes("report=1")&&Be(!0)}),[]);var Ie=(e,t,s)=>{if(ye((i=>(0,a.Ee)(i,{[e]:{[t]:s}}))),"brief"===e&&"text"===t&&s.length>2){var i=Object.assign({},Te);delete i.briefTitle,Re(i)}},Me=N(0,R),Ue=(0,we.jsxs)("div",{className:de,children:[(0,we.jsx)("div",{className:Ce?ne:re,children:(0,we.jsxs)("div",{className:te,children:[(0,we.jsxs)("div",{className:X,children:[Ee?(0,we.jsx)("img",{src:Ee,className:"".concat(K," ").concat($),alt:"Twine"}):R.tempAvatar?(0,we.jsx)("img",{src:R.tempAvatar,className:ge,alt:"Twine"}):(0,we.jsx)(P.Z,{thumbnails:R.avatars,circle:!0,className:K}),Ce&&(0,we.jsxs)("div",{className:ee,onClick:()=>Oe(!0),children:[(0,we.jsx)("div",{}),(0,we.jsx)(y.Z,{icon:"pencil",color:"#fff",size:"24"})]})]}),(0,we.jsxs)("div",{className:se,children:[!Ce&&(0,we.jsx)("span",{className:ie,children:(0,we.jsx)("strong",{children:R.displayname})}),Ce&&(0,we.jsx)("input",{className:"form-control",defaultValue:R.displayname,onChange:e=>Ie("user","displayname",e.target.value),placeholder:"Enter a name (eg. My Company Ltd)",type:"text"})]})]})}),!Ce&&Me&&(0,we.jsx)("span",{className:"".concat(oe," ").concat("recently_active"===Me?le:ae),children:"actively_reviewing"===Me?"Actively reviewing":"Recently active"})]});return(0,we.jsxs)(f.Z,{className:"".concat(A," ").concat(c?L:""),noPadding:!0,children:[(0,we.jsxs)(f.Z.Item,{children:[!Ce&&t.remote&&(0,we.jsxs)("h1",{title:t.text+" – Remote job",children:[t.text," 🌎"]}),!Ce&&!t.remote&&(0,we.jsxs)("h1",{title:t.text+" – "+t.location,children:[t.text," 📍 ",t.location]}),Ce&&(0,we.jsxs)("div",{children:[(0,we.jsx)("input",{className:"form-control ".concat(E," ").concat(void 0!==Te.briefTitle?je:""),defaultValue:t.text,onChange:e=>Ie("brief","text",e.target.value),type:"text",maxLength:"140"}),(void 0!==ve.brief&&void 0!==ve.brief.text&&ve.brief.text.length>100||t.text.length>100)&&(0,we.jsx)("div",{children:(0,we.jsxs)("em",{children:["Characters left:"," ",140-(void 0!==ve.brief&&void 0!==ve.brief.text?ve.brief.text.length:t.text.length)]})}),void 0!==Te.briefTitle&&(0,we.jsx)("div",{className:xe,children:Te.briefTitle})]}),(0,we.jsxs)("div",{className:Z,children:[(0,we.jsx)(x.Z,{className:z,color:"primary",inverse:!0,children:t.role||t.skill}),Ce&&(0,we.jsx)("div",{className:B,children:(0,we.jsx)(p.Z,{children:(0,we.jsx)(u.Z,{xs:12,sm:8,md:4,children:(0,we.jsxs)("div",{className:I,children:[(0,we.jsxs)("label",{className:M,children:[(0,we.jsx)(k.Z,{style:{marginRight:"5px"},icon:"",color:"#5f5757"}),"Will your freelancer be required onsite?"]}),(0,we.jsx)(S.Z,{defaultLocation:t.location,onLocationChange:e=>(e=>{var t={};t=e.city&&e.country?{brief:{remote:0,location_text:e.city&&e.country?e.city+", "+e.country:e.country}}:{brief:{remote:1,location_text:""}}
1,ye((e=>(0,a.Ee)(e,t)))})(e),onLocationReset:()=>{var e={brief:{remote:1,location_text:""}};ye((t=>(0,a.Ee)(t,e)))},placeholder:"Enter location or leave empty for remote",showResetIcon:!0,shouldClearOnBlur:!0,shouldResetOnBlur:!0})]})})})}),!Ce&&t.amount&&0!==t.amount?(0,we.jsxs)(x.Z,{className:H,color:"success",inverse:!0,children:["Budget: ",(0,we.jsx)(v.Z,{currency:t.currency,amount:t.budget})]}):null,!Ce&&t.active&&(0,we.jsxs)(x.Z,{color:"darkgrey",className:q,children:[h()(t.expires_at).fromNow(!0)," left"]}),Ce&&(0,we.jsx)("div",{className:B,children:(0,we.jsxs)(p.Z,{children:[(0,we.jsx)(u.Z,{xs:12,sm:4,md:2,children:(0,we.jsxs)("div",{className:I,children:[(0,we.jsx)("label",{className:M,children:"Budget:"}),(0,we.jsxs)("div",{className:U,children:[(0,we.jsx)("input",{className:"form-control",value:ve.brief&&void 0!==ve.brief.amount?ve.brief.amount>-1&&""!==ve.brief.amount?ve.brief.amount/100:"":t.budget>-1?t.budget/100:"",onChange:e=>Ie("brief","amount",e.target.value?100*e.target.value:-1),placeholder:"Negotiable",type:"number"}),(0,we.jsx)("span",{className:Q,children:"usd"===t.currency?"$":"gbp"===t.currency?"£":"€"})]}),(0,we.jsx)("p",{className:F,onClick:()=>Ae(!0),children:"Why can't I change the currency?"})]})}),(0,we.jsx)(u.Z,{xs:12,sm:4,md:2,children:(0,we.jsxs)("div",{className:I,children:[(0,we.jsx)("label",{className:M,children:"Job closing date:"}),(0,we.jsx)(j.Z,{className:"form-control ".concat(W),dateFormat:"do MMMM",minDate:T.c3,onChange:e=>{Pe(e),Ie("brief","expires_at",(0,g.default)(e,"yyyy-MM-dd HH:mm:ss"))},selected:_e})]})})]})})]})]}),""!==t.spec||Ce?(0,we.jsxs)(f.Z.Item,{children:[!Ce&&(0,we.jsxs)("div",{className:Y,children:[(0,we.jsx)(b.Z,{text:t.spec}),n?(0,we.jsxs)("div",{className:ce,children:["Posted ",h()(t.timestamp).fromNow()]}):(0,we.jsxs)("div",{className:be,children:[(0,we.jsxs)("div",{className:ce,children:["Posted ",h()(t.approved_at).fromNow()]}),D&&(0,we.jsx)("div",{className:fe,children:(0,we.jsxs)(m.Z,{className:"ml",block:!0,bsStyle:"info",bsSize:"sm",onClick:()=>{Be(!0)},children:[(0,we.jsx)(y.Z,{icon:"flag",size:"14"})," Report user"]})})]})]}),Ce&&(0,we.jsxs)("div",{children:[(0,we.jsx)("div",{className:"mb--",style:{color:"#777777"},children:"Job description:"}),(0,we.jsx)("textarea",{className:"form-control",defaultValue:t.spec,onChange:e=>Ie("brief","spec",e.target.value),maxLength:"10000",rows:"14"})]}),Ce&&(void 0!==ve.brief&&void 0!==ve.brief.spec&&ve.brief.spec.length>8e3||t.spec.length>8e3)&&(0,we.jsx)("div",{children:(0,we.jsxs)("em",{children:["Characters left:"," ",1e4-(void 0!==ve.brief&&void 0!==ve.brief.spec?ve.brief.spec.length:t.spec.length)]})}),Ce&&(0,we.jsxs)("div",{className:"mt",style:{color:"#777777"},children:[(0,we.jsx)("input",{defaultChecked:ve.brief&&void 0!==ve.brief.private?ve.brief.private:t.private,onChange:e=>Ie("brief","private",e.target.checked?1:0),placeholder:"Negotiable",type:"checkbox"})," ","Mark job as unlisted."," ",(0,we.jsx)("i",{children:"If ticked, your job will only be visible to freelancers you invite to pitch"})]})]}):null,(0,we.jsx)(f.Z.Item,{className:V,children:"seller"!==R.type||Ce?(0,we.jsx)("div",{className:G,children:Ue}):(0,we.jsx)(l.Link,{to:R.links.main,className:G,children:Ue})}),i&&(0,we.jsx)(f.Z.Item,{className:he,children:(0,we.jsx)("div",{style:{justifyContent:o?"space-between":"center"},className:"f f-row ".concat(pe),children:Ce?[(0,we.jsxs)(m.Z,{bsStyle:"info",className:ue,onClick:()=>{ye({}),Se(!1)},children:[(0,we.jsx)(y.Z,{icon:"close",size:"16",className:J})," ","Cancel"]},"editing_cancel"),(0,we.jsxs)(m.Z,{bsStyle:"success",className:me,onClick:()=>{var e,t;(null==ve||null===(e=ve.brief)||void 0===e||null===(t=e.text)||void 0===t?void 0:t.length)<3?Re({briefTitle:"The job title must be more than 2 characters"}):(d(ve,Ee),ye({}),Se(!1),Le(null),Re({}))},children:[(0,we.jsx)(y.Z,{icon:"tick",size:"16",className:J})," ","Save changes"]},"editing_save")]:[(0,we.jsxs)(m.Z,{bsStyle:"primary",onClick:()=>{scroll({top:0,behavior:"smooth"}),Se(!0)},children:[(0,we.jsx)(y.Z,{icon:"pencil",size:"16",className:J})," ","Edit your brief"]},"edit_button"),o&&(0,we.jsx)(O.Z,{browseURL:s,title:"Next",bsStyle:"success"})]})}),(0,we.jsx)(_.Z,{show:De,onConfirm:()=>Ae(!1),title:"Why can't I change the currency?",text:(0,we.jsxs)("p",{children:["Freelancers can only pitch their rate in your chosen currency, and so changing it will cause confusion on freelancer rates.",(0,we.jsx)("br",{}),(0,we.jsx)("br",{}),"If you still need to change it, you can delete the job and post again with the correct currency."]}),icon:"info",theme:"info"}),(0,we.jsx)(w.Z,{onExit:()=>Oe(!1),show:ke,closeButton:!0,title:"Change your avatar",backgroundExit:!1,
1children:(0,we.jsx)(C.Z,{existingImage:R.avatars,onDone:e=>(e=>{var t={user:{avatar:e.image,crop:{avatar:{h:e.height,w:e.width,x:e.x,y:e.y}}}};ye((e=>(0,a.Ee)(e,t))),Oe(!1),Le(e.croppedImage)})(e)})}),(0,we.jsx)(w.Z,{show:Ze,closebutton:!0,onExit:()=>{Be(!1)},children:(0,we.jsx)(Ne,{accusedUser:R,claimaint:D,isBrief:!0,onClose:()=>Be(!1),brief:t})})]})};Ce.propTypes={brief:D,browseURL:n().string,editable:n().bool,isOwner:n().bool,isReview:n().bool,narrow:n().bool,onSaveEdit:n().func,owner:n().shape({avatars:n().object,tempAvatar:n().object,displayname:n().string,last_active:n().string,links:n().shape({main:n().string}),loaction:n().shape({text:n().string}),type:n().oneOf(["seller","buyer"])}),user:n().object};const Se=Ce;s("./node_modules/core-js/modules/es.json.stringify.js"),s("./node_modules/core-js/modules/es.string.trim.js"),s("./node_modules/core-js/modules/es.string.split.js"),s("./node_modules/core-js/modules/es.regexp.constructor.js"),s("./node_modules/core-js/modules/es.regexp.dot-all.js"),s("./node_modules/core-js/modules/es.regexp.to-string.js"),s("./node_modules/core-js/modules/es.string.search.js"),s("./node_modules/core-js/modules/web.url.js"),s("./node_modules/core-js/modules/web.url-search-params.js");var ke=s("./node_modules/react-helmet/es/Helmet.js"),Oe=s("./node_modules/connected-react-router/esm/actions.js"),Te=s("./node_modules/immutable/dist/immutable.js"),Re=s("./src/redux/modules/auth.js"),De=s("./src/redux/modules/successMessage.js"),Ae=s("./src/redux/modules/briefDetails.js"),Ee=s("./src/redux/modules/messages.js"),Le=s("./src/redux/modules/pitchWriter.js"),Ze=s("./src/redux/modules/rating.js"),Be=s("./src/redux/modules/pitches.js"),Ie=s("./src/redux/modules/portfolio.js"),Me=s("./src/redux/modules/partners.js"),Ue=s("./src/redux/modules/suggestedRoles.js"),Qe=s("./src/redux/modules/projects2.js"),Fe=s("./node_modules/react-bootstrap/es/Grid.js"),ze=s("./node_modules/react-bootstrap/es/Alert.js"),He=s("./node_modules/react-bootstrap/es/Glyphicon.js"),qe=s("./node_modules/react-bootstrap/es/Radio.js"),We=(s("./node_modules/core-js/modules/es.string.trim-end.js"),s("./node_modules/core-js/modules/es.regexp.flags.js"),s("./node_modules/core-js/modules/es.symbol.description.js"),s("./node_modules/react-bootstrap/lib/Button.js")),Ye=s.n(We),Ge=s("./node_modules/react-bootstrap/lib/OverlayTrigger.js"),Je=s.n(Ge),Ve=s("./node_modules/react-bootstrap/lib/Tooltip.js"),Xe=s.n(Ve),Ke=s("./src/components/Badges/UserStatusBadges/UserStatusBadges.js");const $e="L7kfb61b";const et=()=>(0,we.jsx)(x.Z,{color:"primary",inverse:!0,title:"This client has not validated their account on Twine. They will be emailed your application.",className:$e,children:"External Client"});var tt;var st,it,nt=/^[ \t]*\*\*([^\n]+?)\*\*[ \t]*$/gm,rt="who are you",ot=[{keywords:["client or customer","another company"],value:"For a client"},{keywords:["personal project","an individual"],value:"Individual"},{keywords:["company"],value:"A company"}],at=e=>e?e.charAt(0).toUpperCase()+e.slice(1):e,lt=String.raw(tt||(st=["d[d,]*(?:.d+)?"],(it=["\\d[\\d,]*(?:\\.\\d+)?"])||(it=st.slice(0)),tt=Object.freeze(Object.defineProperties(st,{raw:{value:Object.freeze(it)}})))),ct=new RegExp("([£$€])\\s?(".concat(lt,")\\s*(?:[-–—]|to)\\s*([£$€])?\\s?(").concat(lt,")"),"i"),dt=new RegExp("[£$€]\\s?".concat(lt)),ht=e=>{var t=e.match(ct);if(t){var[,s,i,n,r]=t;return"".concat(s).concat(i,"–").concat(n||s).concat(r)}var o=e.match(dt);return o?o[0].replace(/\s+/g,""):""},pt=[{label:"Hiring as",matches:e=>e.includes("capacity"),format:e=>{var t=e.toLowerCase(),s=ot.find((e=>{var{keywords:s}=e;return s.some((e=>t.includes(e)))}));return s?s.value:at(e)}},{label:"Hiring stage",matches:e=>e.includes("hiring process"),format:e=>at(e.replace(/^i(?:['’]m| am)\s+/i,""))},{label:"Work type",matches:e=>e.includes("type of work")||e.includes("one off job")||e.includes("larger project"),format:e=>{var t=e.toLowerCase();return t.includes("ongoing")||t.includes("larger project")?"Ongoing project":t.includes("no follow")?"Single job, no follow-up":t.includes("follow")?"Single job, potential follow-up":at(e)}},{label:"Experience level",matches:e=>e.includes("experience level"),format:e=>{var t=e.split(",").map((e=>
1e.split(":")[0].replace(/\([^)]*\)/g,"").trim())).filter(Boolean),s=t.filter(((e,s)=>t.indexOf(e)===s));return s.length?[at(s[0]),...s.slice(1).map((e=>e.toLowerCase()))].join(", "):""}}],ut=e=>{for(var t=new RegExp(nt),s=[],i=t.exec(e);null!==i;)s.push({heading:i[1].trim(),start:i.index,answerStart:i.index+i[0].length}),i=t.exec(e);return s.map(((t,i)=>{var n=s[i+1];return{heading:t.heading,start:t.start,answer:e.slice(t.answerStart,n?n.start:e.length).trim()}}))};const mt="_3PFCSD54",gt="_1RBeqaav",jt="_3EMcsljO",xt="Md2hk0G3",bt="_1SSD3k7a",ft="_3i3pH1e3",vt="_3GXkY-nT",yt="KSOQia3z",_t="_3oeQK3VX",wt="_2DCydNLu",Pt="YCND1-Lv",Nt="_11ExknOE",Ct="_2-NyAn4i",St="_1hktpb20",kt="_1M_tiTZa",Ot="Wi-zsTdU",Tt="skr_TjH-",Rt="_1mNg_D38",Dt="_3GD-nK-Q",At="_30X_yozj",Et="_14I4rnGe",Lt="_1thR9ohd",Zt="_3nvQ8ua_",Bt="_2as-1xyn",It="_1MCucmj0",Mt="_2RwTlcZC",Ut="_2QmvgCCh",Qt="_2QXxtSuT",Ft="_1jgQj3iI",zt="_2eA_uwB7",Ht="hGm9BVgY",qt="_18Xrr168",Wt="_1bYKRBBX",Yt="_3oNq2TMS",Gt="_28n4DNHX",Jt="_3o6DHE5R",Vt="veUxmFND",Xt="_34PWyOJ9",Kt="_6LRgqCd2",$t="_2cZs1QJH",es="_2IdXa6K2",ts="_1z7XqJuS",ss="_1nzTfw2e",is="_31Wd_8E7",ns="_3m4lnqkx",rs="o9gBmXKU",os="_239ul3wa",as="_3CpORhha";var ls=s("./src/components/SignUp/SignUp.js"),cs=e=>{var{id:t,text:s,placement:i="bottom",children:n}=e;return(0,we.jsx)(Je(),{placement:i,overlay:(0,we.jsx)(Xe(),{id:t,className:ft,children:s}),children:n})};cs.propTypes={children:n().element.isRequired,id:n().string.isRequired,placement:n().string,text:n().node.isRequired};var ds=e=>{var{icon:t,children:s,title:i}=e;return(0,we.jsxs)("span",{className:Lt,title:i,children:[(0,we.jsx)(y.Z,{className:Zt,icon:t,size:"15"}),s]})};ds.propTypes={children:n().node,icon:n().string.isRequired,title:n().string};var hs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().split(/\s+/).filter(Boolean);return t.length?t.length>1?"".concat(t[0][0]).concat(t[t.length-1][0]).toUpperCase():t[0].slice(0,2).toUpperCase():"?"},ps=[{key:"email",label:"email",icon:"mail"},{key:"sms",label:"WhatsApp / SMS",icon:"phone"},{key:"phone",label:"phone",icon:"phone"}],us=e=>{var t,s,{activityStatus:i,isPrivate:n,showContact:r,owner:o}=e,c=n?"Individual":(e=>e.organisation?e.sector&&"other"!==e.sector.toLowerCase()?"".concat((0,a.Ls)((0,a.Wu)(e.sector))," ").concat(e.sector.toLowerCase()," company"):"Organization":"")(o),d=(s=40,(t=c).length>s?"".concat(t.slice(0,s).trimEnd(),"…"):t),h=((e,t)=>{var{city:s,country:i,text:n}=e.location||{};return i?s&&!t?"".concat(s,", ").concat(i):i:n&&"Private"!==n&&!t?n:""})(o,n),p=[h,c].filter(Boolean).join(" · "),u=r?(e=>{var t=e.contact_options||{},s=ps.filter((e=>t[e.key]));return s.length?{icons:s.map((e=>e.icon)).filter(((e,t,s)=>s.indexOf(e)===t)),label:"Contact:",labelFirst:!0,title:"This client accepts contact by ".concat(s.map((e=>e.label)).join(", "),". Twine Pro members get these details after applying.")}:{icons:["lock"],label:"Contact via Twine",title:"This client keeps their contact details private"}})(o):null,m=n||"seller"!==o.type?"":o.links&&(o.links.main_relative||o.links.main)||"",g=!n&&(0,a.YT)(o)?(0,we.jsx)(P.Z,{thumbnails:o.avatars,circle:!0,className:qt}):(0,we.jsx)("div",{className:"".concat(qt," ").concat(n?Yt:Wt),children:n?(0,we.jsx)(y.Z,{icon:"user",width:"13",height:"18"}):hs(o.displayname)}),j=(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("span",{className:Xt,children:n?"Private client":o.displayname}),!n&&(0,we.jsx)(Ke.Z,{user:o,showPro:!1})]});return(0,we.jsxs)("div",{className:zt,children:[m?(0,we.jsx)(l.Link,{to:m,className:Ht,title:"View ".concat(o.displayname,"'s portfolio"),children:g}):g,(0,we.jsxs)("div",{className:Gt,children:[(0,we.jsxs)("div",{className:Jt,children:[m?(0,we.jsx)(l.Link,{to:m,className:Vt,title:"View ".concat(o.displayname,"'s portfolio"),children:j}):j,o.is_external&&(0,we.jsx)(et,{})]}),(h||d)&&(0,we.jsx)(cs,{id:"client-details",text:p,children:(0,we.jsxs)("div",{className:Kt,children:[h&&(0,we.jsx)("span",{className:$t,children:h}),d&&(0,we.jsx)("span",{className:es,children:h?" · ".concat(d):d})]})})]}),(i||u)&&(0,we.jsxs)("div",{className:ts,children:[i&&(0,we.jsxs)("div",{className:ss,children:[(0,we.jsx)("span",{className:is}
1),"actively_reviewing"===i?"Actively reviewing":"Recently active"]}),u&&(0,we.jsx)(cs,{id:"client-contact",text:u.title,children:(0,we.jsxs)("div",{className:ns,children:[u.labelFirst&&u.label,u.icons.map((e=>(0,we.jsx)(y.Z,{className:rs,icon:e,size:"12"},e))),!u.labelFirst&&u.label]})})]})]})};us.propTypes={activityStatus:n().string,isPrivate:n().bool,showContact:n().bool,owner:n().object.isRequired};class ms extends r.Component{constructor(e){super(e),this.handleShowReportModal=()=>{this.setState({showReportModal:!0})},this.state={showReportModal:!1,showSignUpModal:!1}}componentDidMount(){window.location.href.includes("report=1")&&this.setState({showReportModal:!0})}render(){var{brief:e,owner:t,isExpired:s,isExternal:i,isSaved:n,onBookmarkClick:r}=this.props,o=!1;(t.displayname.match(/user[0-9]+/i)||"client"===t.displayname.toLowerCase())&&(o=!0);var l="",c="",d="";if(!e.remote){var p=e.location.split(", ");l=p[0],d=(c=p[1])?"".concat(l,", ").concat(c):"".concat(l," only")}var u,{text:m,flags:g}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];return{text:e.replace(/\[([^[\]]+)\]/g,((e,s)=>{var i=s.trim();return i&&t.push(i),""})).replace(/\s{2,}/g," ").trim()||e,flags:t}}(e.text),j=s||!e.active,x=e.role||e.skill,{description:_,aboutClient:P,budget:C,details:S}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=ut(e);if(!t.length)return{description:e,aboutClient:"",budget:null,details:[]};var s=[e.slice(0,t[0].start).trim()],i=[],n="",r=null;return t.forEach((e=>{var{heading:t,answer:o}=e,a=t.toLowerCase(),l=pt.find((e=>{var{matches:t}=e;return t(a)}));if(l){var c=o?l.format(o):"";c&&i.push({label:l.label,value:c})}
1else a.includes(rt)?n=o:(null===r&&a.includes("budget")&&(r=ht(o)),s.push("**".concat(t,"**\n").concat(o)))})),{description:s.filter(Boolean).join("\n\n"),aboutClient:n,budget:r,details:i}}(e.spec),k=e.amount&&0!==e.amount&&-1!==e.amount;u=null===C?k?(0,we.jsx)(v.Z,{currency:e.currency,amount:e.budget}):"Open to offers":C||"Open to offers";var O,R=e.num_of_pitches>=5&&!s;return O=j?{label:"Job closed",className:Ct}:e.boosted_expires_at?{label:"Priority job",className:Pt,icon:"bolt",title:"This client urgently wants to hire"}:e.num_of_pitches>T.tm?{label:e.num_of_pitches>=T.xk?"Very popular job":"Popular job",className:Nt,title:"Pitch soon – this client has received pitches"}:{label:"Open job",className:wt,title:"Pitch before other freelancers"},(0,we.jsxs)("div",{itemScope:!0,itemType:"https://schema.org/JobPosting",children:[(0,we.jsxs)("div",{className:"hide",itemProp:"hiringOrganization",itemScope:!0,itemType:"https://schema.org/Organization",children:[(0,we.jsx)("span",{itemProp:"name",content:"Twine"}),(0,we.jsx)("span",{itemProp:"sameAs",content:"https://www.twine.net"}),(0,we.jsx)("span",{itemProp:"logo",content:"https://www.twine.net/assets/img/logos/twine-social-icon-min.png"})]}),e.role?(0,we.jsx)("div",{itemProp:"title",content:"Freelance ".concat(e.role)}):(0,we.jsx)("div",{itemProp:"title",content:"Freelancer for ".concat(e.skill," Project")}),(0,we.jsx)("div",{itemProp:"datePosted",content:e.approved_at}),(0,we.jsx)("div",{itemProp:"validThrough",content:e.expires_at}),(0,we.jsx)("div",{itemProp:"employmentType",content:"CONTRACTOR"}),e.remote?(0,we.jsxs)("div",{children:[(0,we.jsx)("div",{itemProp:"jobLocationType",content:"TELECOMMUTE"}),(0,we.jsxs)("div",{itemProp:"applicantLocationRequirements",itemScope:!0,itemType:"https://schema.org/Country",children:[(0,we.jsx)("span",{itemProp:"name",content:"USA"}),(0,we.jsx)("span",{itemProp:"name",content:"United Kingdom"}),(0,we.jsx)("span",{itemProp:"name",content:"Canada"}),(0,we.jsx)("span",{itemProp:"name",content:"Australia"}),(0,we.jsx)("span",{itemProp:"name",content:"Austria"}),(0,we.jsx)("span",{itemProp:"name",content:"Belarus"}),(0,we.jsx)("span",{itemProp:"name",content:"Belgium"}),(0,we.jsx)("span",{itemProp:"name",content:"Denmark"}),(0,we.jsx)("span",{itemProp:"name",content:"France"}),(0,we.jsx)("span",{itemProp:"name",content:"Germany"}),(0,we.jsx)("span",{itemProp:"name",content:"Greece"}),(0,we.jsx)("span",{itemProp:"name",content:"Italy"}),(0,we.jsx)("span",{itemProp:"name",content:"Netherlands"}),(0,we.jsx)("span",{itemProp:"name",content:"Portugal"}),(0,we.jsx)("span",{itemProp:"name",content:"Russia"}),(0,we.jsx)("span",{itemProp:"name",content:"Spain"}),(0,we.jsx)("span",{itemProp:"name",content:"Hong Kong"}),(0,we.jsx)("span",{itemProp:"name",content:"Malaysia"}),(0,we.jsx)("span",{itemProp:"name",content:"Singapore"}),(0,we.jsx)("span",{itemProp:"name",content:"South Korea"}),(0,we.jsx)("span",{itemProp:"name",content:"United Arab Emirates"})]})]}):(0,we.jsx)("div",{itemProp:"jobLocation",itemScope:!0,itemType:"https://schema.org/Place",children:(0,we.jsxs)("span",{itemProp:"address",itemScope:!0,itemType:"https://schema.org/PostalAddress",children:[(0,we.jsx)("span",{itemProp:"addressLocality",content:l}),(0,we.jsx)("span",{itemProp:"addressCountry",content:c})]})}),(0,we.jsxs)(f.Z,{className:mt,noPadding:!0,children:[(0,we.jsxs)(f.Z.Item,{children:[(0,we.jsxs)("div",{className:gt,children:[(0,we.jsxs)("div",{className:jt,children:[(0,we.jsxs)("div",{className:xt,children:[(0,we.jsxs)("span",{className:"".concat(vt," ").concat(O.className),title:O.title,children:[O.icon?(0,we.jsx)(y.Z,{className:_t,icon:O.icon,size:"12"}):(0,we.jsx)("span",{className:yt}),O.label]}),(0,we.jsxs)("span",{className:bt,children:[e.approved_at&&(0,we.jsx)(cs,{id:"brief-posted-date",text:"Job posted: ".concat((0,a._4)(e.approved_at)),children:(0,we.jsxs)("span",{children:["Posted ",h()(e.approved_at).fromNow()]})}),!j&&e.expires_at&&(0,we.jsx)(cs,{id:"brief-closing-date",text:"Closing date: ".concat((0,a._4)(e.expires_at)),children:(0,we.jsx)("span",{children:" · Closes in ".concat(h()(e.expires_at).fromNow(!0))})})]})]}),(0,we.jsxs)("button",{type:"button","aria-pressed":n,className:"".concat(St," ").concat(n?Ot:""),onClick:e=>{e.preventDefault(),e.stopPropagation(),this.props.user?r():this.setState({showSignUpM
1odal:!0})},children:[(0,we.jsx)(y.Z,{className:kt,icon:n?"bookmark":"bookmark-outline",width:"11",height:"15"}),n?"Saved":"Save"]})]}),(0,we.jsxs)("h1",{className:Tt,title:m,children:[m,g.map(((e,t)=>(0,we.jsx)("span",{className:"".concat(Rt," ").concat("urgent"===e.toLowerCase()?Dt:""),children:e},"".concat(e,"-").concat(t))))]}),x&&(0,we.jsx)("div",{className:At,children:x})]}),(0,we.jsxs)("div",{className:Et,children:[(0,we.jsx)(ds,{icon:"coin",children:u}),e.remote?(0,we.jsx)(ds,{icon:"sphere",title:"Remote job",children:"Remote"}):(0,we.jsx)(ds,{icon:"map-pin",title:"".concat(e.text," – ").concat(e.location),children:d}),R&&(0,we.jsx)(ds,{icon:"users",children:e.num_of_pitches>T.tm?"Popular":"".concat(e.num_of_pitches," applied")})]})]}),(0,we.jsx)(f.Z.Item,{className:Ft,children:(0,we.jsx)(us,{activityStatus:N(0,t),isPrivate:o,showContact:!i,owner:t})}),""!==e.spec?(0,we.jsx)(f.Z.Item,{children:(0,we.jsxs)("div",{itemProp:"description",className:Bt,children:[(0,we.jsx)(b.Z,{text:(e.remote?"":"".concat(e.role||e.skill," is needed in ").concat(e.location,".\n\n"))+_}),P&&(0,we.jsx)(b.Z,{text:"**About the client**\n".concat(P)}),S.length>0&&(0,we.jsx)("dl",{className:It,children:S.map((e=>{var{label:t,value:s}=e;return(0,we.jsxs)("div",{className:Mt,children:[(0,we.jsx)("dt",{className:Ut,children:t}),(0,we.jsx)("dd",{className:Qt,children:s})]},t)}))}),(0,we.jsx)("div",{className:os,children:this.props.user&&(0,we.jsx)("div",{className:as,children:(0,we.jsxs)(Ye(),{className:"ml",block:!0,bsStyle:"info",bsSize:"sm",onClick:()=>{this.handleShowReportModal()},children:[(0,we.jsx)(y.Z,{icon:"flag",size:"14"})," Report user"]})})})]})}):null,(0,we.jsx)(w.Z,{show:this.state.showReportModal,closebutton:!0,onExit:()=>{this.setState({showReportModal:!1})},children:(0,we.jsx)(Ne,{accusedUser:this.props.owner,claimant:this.props.user,isBrief:!0,onClose:()=>this.setState({showReportModal:!1}),brief:this.props.brief})}),!this.props.user&&(0,we.jsx)(w.Z,{show:this.state.showSignUpModal,subtitle:"Sign-up now to get jobs straight to your inbox",closeButton:!0,onExit:()=>{this.setState({showSignUpModal:!1})},children:(0,we.jsx)(ls.Z,{redirect:"onboarding",redirectFromGoogle:"signup",defaultAccountType:"seller"})})]})]})}}ms.propTypes={brief:D,owner:n().shape({avatars:n().object,contact_options:n().object,displayname:n().string,last_active:n().string,links:n().shape({main:n().string,main_relative:n().string}),location:n().shape({city:n().string,country:n().string,text:n().string}),verified:n().bool,type:n().oneOf(["seller","buyer"]),user:n().object,organisation:n().bool,sector:n().string,is_external:n().bool}),isExpired:n().bool,isExternal:n().bool,user:n().object,onBookmarkClick:n().func,isSaved:n().bool};const gs=ms;var js=s("./node_modules/react-bootstrap/lib/Panel.js"),xs=s.n(js);const bs="_3LeE1GIR",fs="_1jjYPOAj",vs="_3PpWnZb1",ys="_2l2cLzGO",_s="_2ZtgNVmt",ws="_1OzGXB5P",Ps="PrmD6AbM",Ns="_1ZhI6hPm";var Cs=e=>{var{pitch:t,paid:s,sentFinalFiles:i,onSendFiles:n}=e;return(0,we.jsxs)(xs(),{children:[(0,we.jsxs)("div",{className:"".concat(bs," ").concat(ws),children:[(0,we.jsx)("div",{className:fs,children:"1"}),(0,we.jsxs)("div",{className:vs,children:[(0,we.jsx)(k.Z,{icon:"",className:ys}),"Pitch accepted"," ",t.deposit&&t.deposit_paid_at?" and deposit received":""]})]}),(0,we.jsxs)("div",{className:"".concat(bs," ").concat(i?ws:Ps),children:[(0,we.jsx)("div",{className:fs,children:"2"}),(0,we.jsxs)("div",{children:[(0,we.jsxs)("div",{className:vs,children:[i&&(0,we.jsx)(k.Z,{icon:"",className:ys}),"Send project files",!i&&(0,we.jsx)(Ye(),{bsStyle:"primary",bsSize:"xs",onClick:n,className:_s,children:"send files"})]}),(0,we.jsxs)("div",{className:Ns,children:[(0,we.jsxs)("p",{children:["The"," ",(0,we.jsx)("a",{href:"https://link.twine.fm/underpinned",target:"_blank",title:"Underpinned.com",rel:"noreferrer",children:"UnderPinned Virtual Office"})," ","is the dream platform for freelancers looking to handle their admin."," ",(0,we.jsx)("a",{href:"https://link.twine.fm/underpinned",target:"_blank",title:"Underpinned.com",rel:"noreferrer",children:"Start here"}),"."]}),(0,we.jsx)("p",{children:'Send draft files using the "send files" button'})]})]})]}),s&&(0,we.jsxs)("div",{className:"".concat(bs," ").concat(i&&""===t.paid_at?Ps:""," ").concat(i&&""!==t.paid_at?ws:""),children:[(0,we.jsx)("div",{className:fs,children:"3"}),(0,we.jsxs)("div",{className:vs,children:[i&&""!==t.paid_at&&(0,we.jsx)(k.Z,{icon:"",className:ys}),"Receive payment"]})]}),(0,we.jsxs)("div",{className:"".concat(bs,"  ").concat(""===t.completed_at&&i&&(!s||s&&""!==t.paid_at)?Ps:""," ").concat(""!==t.completed_at&&i&&(!s||s&&""!==t.paid_at)?ws:""),children:[(0,we.jsx)("div",{className:fs,children:s?"4":"3"}),(0,we.jsxs)("div",{className:vs,children:[""!==t.completed_at&&(0,we.jsx)(k.Z,{icon:"",className:ys}),"Complete"]})]})]})};Cs.propTypes={pitch:n().object,paid:n().bool,sentFinalFiles:n().bool,onSendFiles:n().func};const Ss=Cs;s("./node_modules/core-js/modules/es.parse-int.js");var ks=s("./node_modules/react-bootstrap/es/OverlayTrigger.js"),Os=s("./node_modules/react-bootstrap/es/Tooltip.js");const Ts={container:"_16k-yRMY",heading:"_3IjCGRu_",body:"_12x2WnX6",buttonContainer:"_2C0AYu_l",item:"_3Um1wiX9",contactOption:"_1srQoYRl",alert:"_20ecARas",alertBody:"_1iTGSEyi",avatarPic:"_1_-a7Ob7",pitchText:"_25-vVkX6",pitchDetails:"_8cr2R1bK",label:"_1ca85612",deposit:"YhR-901v",editingButtons:"_3eiNfO_m",editingInput:"_15H0OuBa",errorMsg:"_1uDVGJHO",error:"_37Ib7awo",currencySymbol:"_3mNdj6qc",amountInput:"_42p9Z1Kj",daysLabel:"_3xlw-2GX",daysInput:"_3EB5R2vi",pitchAgainButton:"vJjXAese",headerContainer:"_3j2ZjSwP",pitchTitle:"_2xdGrp5P",date:"_1kL52d_g",title:"_1CGQx_jr",pitchStatus:"_3fUn7Rht",avatar:"_3SXSmVvE",pitchStatusMobile:"TOeEsbtq",pitchStatusPill:"_1GrL5Gqp"};var Rs=s("./src/redux/modules/errorMessage.js"),Ds=Object.freeze({BLOCKED:Symbol("blocked"),SUBMITTED_TO_TWINE:Symbol("submitted_to_twine"),SHARED_WITH_CLIENT:Symbol("shared_with_client"),PITCH_READ:Symbol("pitch_read"),DECLINED:Symbol("declined"),SHORTLISTED:Symbol("shortlisted"),ACCEPTED:Symbol("accepted"),COMPLETED:Symbol("completed")}),As=e=>{var{isPaidBrief:t,contactOptions:s,currency:i,editing:n,editingPitchAmount:o,editingPitchText:l,onCh
1angePitchAmount:c,onChangePitchText:d,onEdit:p,onEditSave:u,onEditCancel:g,onPitchAgain:j,onResendContactDetails:f,owner:y,pitch:_,pitchError:w,savingEdit:N,shouldOpenEditing:C,user:S}=e,k=(0,ve.useDispatch)(),[O,T]=(0,r.useState)(0),{resendingContactDetails:R,resendContactDetailsSuccess:D,resendContactDetailsError:A}=(0,ve.useSelector)((e=>e.briefDetails));(0,r.useEffect)((()=>{var e=localStorage.getItem("contactDetailsLastResend");if(e){var t=Math.max(0,60-Math.floor((Date.now()-parseInt(e))/1e3));if(t>0){T(t);var s=setInterval((()=>{T((e=>{var t=e-1;return t<=0&&(clearInterval(s),localStorage.removeItem("contactDetailsLastResend")),Math.max(0,t)}))}),1e3)}else localStorage.removeItem("contactDetailsLastResend")}}),[]),(0,r.useEffect)((()=>{!R&&D&&k((0,De.GC)("Contact details will be available in your messages within a few minutes")),!R&&A&&k((0,Rs.uH)("There was an error re-requesting the client details. Please try again later."))}),[R,D,A]);var E=Ds.SUBMITTED_TO_TWINE,L="transparent",Z="Your application has been submitted to Twine and is awaiting review",B="Submitted ⏳";switch(!0){case""!==_.blocked_at:E=Ds.BLOCKED,B="Not approved 🛑",Z="Your application has not been sent to the client. "+("wrong_location"==_.blocked_reason?"Your location does not match the location of the job":"spam"==_.blocked_reason?"We determined your application is spam":"public_question"==_.blocked_reason?"For more information about a job, ask a public question":"no_relevant_work"==_.blocked_reason?"Your portfolio must be relevant to this job":"not_enough_info"==_.blocked_reason?"You need to explain why you are right for the job":"using_template"==_.blocked_reason?"Your application must be personalised to the job":"using_external_links"==_.blocked_reason?"We do not allow links to competitor platforms":"not_level_project"==_.blocked_reason?"Your experience level does not match the level specified in the job":"brief_deleted"==_.blocked_reason?"Unfortunately, the client has taken down this job":"");break;case""!==_.completed_at:E=Ds.COMPLETED,B="Job complete 🎉",L="success",Z="The job is now complete. Thank you for your hard work!";break;case""!==_.accepted_at:E=Ds.ACCEPTED,B="Hired ✅",L="success",Z="Great news! You have been hired for the project";break;case""!==_.declined_at:E=Ds.DECLINED,B="Declined ❌",L="danger",Z="Unfortunately, the client has decided not to move forward with your application";break;case""!==_.liked_at:E=Ds.SHORTLISTED,B="Shortlisted 📋",L="purple",Z="Congratulations! Your application has been shortlisted by the client";break;case""!==_.receiver_viewed:E=Ds.PITCH_READ,B="Application read 👀",L="primary",Z="The client has read your application";break;case""!==_.approved_at:E=Ds.SHARED_WITH_CLIENT,B="Sent to Client ✉️",L="primary",Z="Your application has been reviewed and shared with the client for consideration"}var I=Object.values(s).every((e=>!1===e)),{email:M,phone:U,sms:Q}=s;return(0,r.useEffect)((()=>{C&&p()}),[]),(0,we.jsxs)("div",{className:"".concat(Ts.container),children:[(0,we.jsxs)("div",{children:[(0,we.jsx)("div",{children:(0,we.jsx)("p",{className:Ts.heading,children:"What happens now?"})}),(0,we.jsxs)("div",{className:Ts.body,children:[(0,we.jsxs)("ul",{children:[(0,we.jsx)("li",{className:Ts.item,children:S.auto_approve_pitch_flag?(0,we.jsxs)(we.Fragment,{children:["Clients details will be in"," ",(0,we.jsx)("a",{href:"/messages",children:"your messages"})," once this pitch is approved."]}):E==Ds.SUBMITTED_TO_TWINE?"Twine will review your application before sending it to the client.":"Your application has been sent to the client via Twine and email."}),I?(0,we.jsx)("li",{className:Ts.item,children:"Client wants to be contacted privately on Twine."}):(0,we.jsxs)("li",{className:Ts.item,children:["Client wants to be contacted by:",M&&(0,we.jsx)("span",{className:Ts.contactOption,children:"📧 Email"}),Q&&(0,we.jsx)("span",{className:Ts.contactOption,children:"📱 WhatsApp / SMS"}),U&&(0,we.jsx)("span",{className:Ts.contactOption,children:"📞 Phone"})]}),S&&S.pro&&!I&&""===_.approved_at&&!S.auto_approve_pitch_flag&&(0,we.jsxs)("li",{className:Ts.item,children:["Clients details will be in"," ",(0,we.jsx)("a",{href:"/messages",children:"your messages"})," once this pitch is approved."]}),S&&S.pro&&!I&&E===Ds.SHARED_WITH_CLIENT&&!S.auto_approve_pitch_flag&&(0,we.jsxs)("li",{className:Ts.item,children:["Clients details can be found in"," ",(0,we.jsx)("a",{href:"/messages/".concat(y.username),children:"your messages"}),"."]}
1),S&&!S.pro&&(0,we.jsxs)("li",{className:Ts.item,children:["Only ",(0,we.jsx)("a",{href:"/pricing/creative",children:"Twine Pro"})," members get direct client contact details."]}),""===_.declined_at&&!(null!=S&&S.pro)&&(0,we.jsxs)("li",{className:Ts.item,children:["You can"," ",(0,we.jsx)("a",{href:"/messages/".concat(y.username),children:"send another message"})," to the client if you don't hear back in 3 days."]}),""===_.declined_at&&(null==S?void 0:S.pro)&&(0,we.jsxs)("li",{className:Ts.item,children:[(0,we.jsx)("a",{href:"#",onClick:()=>{if(!(O>0)){f(),localStorage.setItem("contactDetailsLastResend",Date.now().toString()),T(60);var e=setInterval((()=>{T((t=>{var s=t-1;return s<=0&&(clearInterval(e),localStorage.removeItem("contactDetailsLastResend")),Math.max(0,s)}))}),1e3)}},children:"Re-request the client details"})," if they are not in your messages."]}),E===Ds.DECLINED&&(0,we.jsx)("li",{className:Ts.item,children:"This client may now be working with another freelancer"}),E===Ds.SHARED_WITH_CLIENT&&(0,we.jsx)("li",{className:Ts.item,children:"Look out for messages from the client asking more questions"})]}),S&&S.pro&&(E===Ds.SHARED_WITH_CLIENT||S.auto_approve_pitch_flag)&&(0,we.jsx)("div",{className:Ts.buttonContainer,children:(0,we.jsx)(m.Z,{href:"/messages/".concat(y.username),bsStyle:"primary",children:"Go to Messages"})})]})]}),(0,we.jsx)("div",{className:Ts.pitchStatusMobile,children:(0,we.jsx)(ks.Z,{placement:"bottom",overlay:(0,we.jsx)(Os.Z,{id:"tooltip",style:{fontSize:"14px",fontFamily:"Lato"},children:Z}),children:(0,we.jsx)(x.Z,{color:L,className:"".concat(Ts.pitchStatusPill),children:B})})}),(0,we.jsxs)("div",{className:Ts.headerContainer,children:[(0,we.jsxs)(r.Fragment,{className:Ts.pitchInfo,children:[(0,we.jsx)("div",{className:Ts.avatar,children:(0,we.jsx)(P.Z,{thumbnails:S.avatars,circle:!0,className:Ts.avatarPic})}),(0,we.jsxs)("div",{className:Ts.pitchTitle,children:[(0,we.jsx)("div",{className:Ts.title,children:(0,we.jsx)("strong",{children:"Your application:"})}),(0,we.jsxs)("div",{className:Ts.date,children:["Sent on ",h()(_.timestamp).format("Do MMM YYYY")]})]})]}),(0,we.jsx)("div",{className:Ts.pitchStatus,children:(0,we.jsx)(ks.Z,{placement:"bottom",overlay:(0,we.jsx)(Os.Z,{id:"tooltip",style:{fontSize:"14px",fontFamily:"Lato"},children:Z}),children:(0,we.jsx)(x.Z,{color:L,className:"".concat(Ts.pitchStatusPill),children:B})})})]}),(0,we.jsx)("div",{className:Ts.pitchText,style:{borderBottomLeftRadius:t&&0!=_.budget?0:"4px",borderBottomRightRadius:t&&0!=_.budget?0:"4px",marginBottom:t&&0!=_.budget?0:"20px"},children:n?(0,we.jsxs)("div",{children:[(0,we.jsx)("textarea",{className:"form-control",disabled:N,onChange:e=>d(e.target.value),placeholder:"Enter your pitch here",rows:"4",value:l}),w&&w.pitchText&&(0,we.jsx)("div",{className:Ts.errorMsg,children:w.pitchText})]}):(0,we.jsx)("div",{children:(0,we.jsx)(b.Z,{text:_.text,target:"_blank"})})}),t&&(n||0!=_.budget)&&(0,we.jsxs)("div",{className:Ts.pitchDetails,children:[(0,we.jsxs)("div",{className:Ts.label,style:{fontWeight:n?"normal":"bold",lineHeight:n?"34px":"23px"},children:["Your quote:"," "]}),n?(0,we.jsxs)("div",{className:Ts.editingInput,children:[(0,we.jsx)("input",{className:"form-control ".concat(Ts.amountInput," ").concat(w&&w.pitchAmount&&Ts.error),disabled:N,onChange:e=>c(e.target.value),placeholder:"Eg: 250",type:"number",value:o}),(0,we.jsx)("div",{className:Ts.currencySymbol,children:(0,a.N2)(i)}),w&&w.pitchAmount&&(0,we.jsx)("div",{className:Ts.errorMsg,children:w.pitchAmount}),(0,we.jsx)("span",{className:"aside-text fs-14",children:"Set to ".concat((0,a.N2)(i),"0 if you're still discussing\n                with the client")})]}):(0,we.jsx)("strong",{children:(0,we.jsx)(v.Z,{currency:i,amount:_.budget})}),(0,we.jsx)("br",{})]}),n&&(0,we.jsxs)("div",{className:Ts.editingButtons,children:[(0,we.jsx)(m.Z,{bsStyle:"primary",disabled:N,onClick:u,children:N?(0,we.jsx)("em",{children:"saving..."}):"Save"}),(0,we.jsx)(m.Z,{bsStyle:"info",disabled:N,onClick:g,children:"Cancel"})]}),""!==_.blocked_at&&"spam"!==_.blocked_reason&&(0,we.jsx)(m.Z,{bsStyle:"info",className:Ts.pitchAgainButton,onClick:j,children:"Re-appl
1y"}),h()().diff(_.timestamp,"minutes")>5&&""===_.blocked_at&&!n&&(0,we.jsx)(m.Z,{bsStyle:"info",className:Ts.pitchAgainButton,onClick:p,children:"Update application"})]})};As.propTypes={isPaidBrief:n().bool,contactOptions:n().object,currency:n().string,editing:n().bool,editingPitchAmount:n().object,editingPitchText:n().string,onChangePitchAmount:n().func,onChangePitchText:n().func,onEdit:n().func,onEditSave:n().func,onEditCancel:n().func,onPitchAgain:n().func,onResendContactDetails:n().func,owner:n().object,pitch:n().object,pitchError:n().object,savingEdit:n().bool,shouldOpenEditing:n().undefined,user:n().object};const Es=As;var Ls=s("./node_modules/date-fns/esm/addYears/index.js"),Zs=s("./node_modules/react-bootstrap/es/Checkbox.js"),Bs=s("./node_modules/react-bootstrap/es/Form.js"),Is=s("./node_modules/react-bootstrap/es/FormGroup.js");var Ms=s("./src/redux/modules/subscriptions.js"),Us=s("./src/components/FormSelect/FormSelect.js"),Qs=s("./node_modules/react-bootstrap/lib/index.js");var{bodyContainer:Fs,container:zs,icon:Hs,button:qs,footer:Ws}={container:"_39pQOvDF",icon:"_3n2DUh2i",bodyContainer:"_2amBh8KC",footer:"al0uazNB",button:"CPa15jPT"},Ys=e=>{var{message:t,requiredRank:s,profileLink:i}=e;return(0,we.jsxs)(f.Z,{className:"".concat(zs," box-shadow"),children:[(0,we.jsx)("div",{className:Hs,children:(0,we.jsx)(k.Z,{color:"#0777DA",icon:""})}),(0,we.jsx)("h1",{children:"Improve your profile"}),(0,we.jsxs)("div",{className:Fs,children:[t||(0,we.jsxs)("div",{children:[(0,we.jsx)("p",{children:"To contact the client about this job, you first need to improve your profile."}),(0,we.jsxs)("p",{children:["A ",(0,we.jsx)("strong",{children:s})," level profile score is required to apply."]})]}),(0,we.jsxs)("p",{children:["Need help? Access our"," ",(0,we.jsx)("a",{href:"https://help.twine.net/en/article/why-cant-i-pitch-13aguem/",title:"Help Center",children:"Help Center"})]})]}),(0,we.jsx)("div",{className:qs,children:(0,we.jsx)(l.Link,{to:i,children:(0,we.jsx)(Qs.zx,{bsStyle:"primary",className:"pl pr",children:"Edit your profile"})})}),(0,we.jsx)("p",{className:Ws,children:(0,we.jsxs)("strong",{children:["Or you can ",(0,we.jsx)(l.Link,{to:"/pricing/creative",children:"upgrade to Twine Pro"})," to apply on this job right now plus increase your chance of being hired."]})})]})};Ys.propTypes={message:n().node,requiredRank:n().string,profileLink:n().string.isRequired};const Gs=Ys;var Js=e=>{var{jobRole:t,portfolioLink:s}=e;return(0,we.jsxs)(f.Z,{className:"box-shadow",style:{padding:"30px 20px"},children:[(0,we.jsx)("p",{className:"text-center",children:(0,we.jsx)(y.Z,{icon:"clock",color:"#0777DA",size:"48"})}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontWeight:"700",fontSize:"20px"},children:(0,we.jsx)("strong",{children:"Your roles don't match this job"})}),(0,we.jsxs)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:["This job is looking for a ",(0,we.jsx)("strong",{children:t}),". To apply, add a matching or related featured role to your profile — this also affects your visibility to clients."," ",(0,we.jsx)("br",{}),(0,we.jsx)("br",{}),"Need help? Access our"," ",(0,we.jsx)("a",{href:"https://help.twine.net/en/article/why-cant-i-pitch-13aguem/",title:"Help Center",children:"Help Center"})]}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:"Once you've updated your roles, refresh this page to apply."}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:(0,we.jsx)(l.Link,{to:s,children:(0,we.jsx)(Qs.zx,{bsStyle:"primary",children:"Update your featured roles"})})})]})};Js.propTypes={jobRole:n().string.isRequired,portfolioLink:n().string.isRequired};const Vs={container:"l7e4UJq4",inputs:"_32-b8H54",inputLabel:"IxF-Qhjc",daysLabel:"Rc_sX4kc",submitButton:"Q38UFgRp",errorMsg:"_13yeAMon",error:"VwR9kDvK",templateButtons:"_3XC2YLFz",helpSvg:"_38GT4LWF",helpIcon:"_1iBa0n3a",tooltip:"_1IbK8461",relevantProjects:"_2RII03p7",empty:"_2Obyr7f1",emptyProject:"_5AKg1VBd",project:"_2C6BjMSD",thumbnail:"WQniHRFN",title:"_32gwFPnn",addRelevantProjectsButton:"_267zFrmy",datePicker:"_3xNYURj2",datePickerContainer:"_2gKKdDR_",dayRateContainer:"_2uzo7kcd",dayRate:"_3Kir8iaz",locationCheckboxContainer:"_7JlWsP7o",locationCheckboxTitle:"_1TrTWr1Q",locationCheckbox:"xV0vqknx",checkboxCopy:"_1A_-L9ku",addLinksContainer:"_1HFyPFGV",linksLabel:"_1KAkcr16",linksInputField:"_1nmlTV6E",linksCommaPrompt:"JVx-gS4i",collatoContainer:"_1x_v0Tz7",collatoLogo:"_1ktrBV-e",collatoLogoCopy:"CDeyBjj7",logo:"nRp3of-f",pitchTitleContainer:"MpfxXSSh",aiPitchModal:"_2KbWFBuF",pitchButtonsContainer:"_3ZpsssQY",exampleProjectButtons:"_1kmTuv52",boomVideoButton:"Tw8TcSqe",boomIcon:"_1CGX0r1w",helpPitchButtons:"_3Y1o5H_O",payoutDetailsContainer:"_2gf53yY0",payoutHeader:"_3EPZyl1s",payoutLink:"_2HtJ1lkB",externalGlyphIcon:"aXCahwMw",linkIcon:"_1FzCwMr1",checkboxError:"_2nnJrqdA",availabilityContainer:"-PBQl5-r",availabilityLabel:"_1AXcrLdn",availabilityInput:"_15g9fc6V",feeContainer:"nGTypewf",feeLabel:"_3XFp_EPT",feeInput:"_2Pso
1RE8y",feeErrorContainer:"_2ZsmoF-G",feeError:"UWRohrfo",loadingPitchContainer:"FYQgMlLf",discountUpsell:"_3ZX4h990"};var Xs=s("./src/components/Shared/UserCard2/UserCard2.js"),Ks=s("./src/components/Shared/UserCard2/UserCard2.module.scss");const $s=e=>{var{pitch:t,user:s,preferredRole:i}=e;return(0,we.jsx)(f.Z,{className:Ks.Z.gridContainer,children:(0,we.jsx)(Xs.Z,{user:s,pitch:t,preferredRole:i})})};var ei=s("./src/helpers/globalVariables.js"),ti=s("./src/components/Loader/Loader.js"),si=s("./src/helpers/Analytics.js"),ii=s("./src/helpers/PitchLimitHelper.js"),ni=(s("./node_modules/core-js/modules/es.regexp.test.js"),s("./node_modules/react-cookie/index.js")),ri=s.n(ni),oi="linkedin_landing_job",ai=/^\/projects\/[a-zA-Z0-9-]+$/,li=e=>{if(ai.test(e)){var t=new Date;t.setHours(t.getHours()+24),ri().save(oi,e,{path:"/",expires:t})}},ci=()=>{var e=ri().load(oi)||null;return!!e&&e===window.location.pathname},di=s("./src/helpers/ApplicationCreditsHelper.js");function hi(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function pi(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var ui=e=>{var t,{availabilityToggle:i,briefCurrency:n,briefId:o,briefRole:c,briefPaid:d,briefRemote:h,briefLocation:p,briefNoPitchLimits:u,creativeJob:x,creditsRoles:b,introsLeft:v,introsLoading:_,pitchText:P,pitchAmount:N,submittingPitch:C,totalPitches:S,pitchError:k,applicationCreditsRemaining:O=0,willUseCredits:R=!1,onChangeAvailability:D,onChangeAvailabilityToggle:A,onChangePitchAmount:E,onChangePitchText:L,onGeneratePitch:Z,onImportLastPitch:B,onSubmitPitch:I,loadingGeneratedPitch:M,locationCheckbox:U,onLocationCheckboxClick:Q,shareResumeCheckbox:F,onShareResumeCheckboxClick:z,onConfirmationCheckboxClick:H,authUserWasInvited:q,onAttachUpload:W,jobRole:Y,suggestedRoles:G,loadingSuggestedRoles:J,user:V}=e,X=(0,ve.useDispatch)(),K=new Date,[$,ee]=(0,r.useState)(new Date(V.available_at||K)),[te,se]=(0,r.useState)(0),[ie,ne]=(0,r.useState)(!1),[re,oe]=(0,r.useState)(!1),ae=new Date(V.joined),le=new Date(K.getFullYear(),K.getMonth(),ae.getDate());le<=K&&le.setMonth(le.getMonth()+1);var ce=(0,ii.L)(K,le),de=(0,ii.L)(K),{subscriptionUrl:he}=(0,ve.useSelector)((e=>e.subscriptions));(0,r.useEffect)((()=>{E(0),V&&V.subscribed&&X((0,Ms.zD)())}),[]);var pe=""!==V.bio,ue=x&&(0,a.tj)(c,b),me=!1,[ge,je]=ue||Array(2),xe=()=>he||"https://billing.stripe.com/p/login/4gw5kmbsI0Cb1q0cMM?prefilled_email=".concat(encodeURIComponent(V.email)),be=(0,di.C1)(V)&&V.has_purchased_credits&&O<=0?(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"14px",color:"#c0392b"},children:"You have no application credits remaining"}):null,fe=(0,we.jsxs)(r.Fragment,{children:[(0,we.jsx)("p",{children:(0,we.jsx)("strong",{children:"You need to add a bio"})}),(0,we.jsx)("p",{children:"Fill out a short bio on your profile."})]}),ye=(r.Fragment,c.toLowerCase(),(0,a.ac)(ge,"example"),(0,a.ac)(je,"example"),(0,we.jsxs)(f.Z,{className:"box-shadow",style:{padding:"30px 20px"},children:[(0,we.jsx)("p",{className:"text-center",children:(0,we.jsx)(y.Z,{icon:"email",color:"#0777DA",size:"48"})}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontWeight:"700",fontSize:"20px"},children:(0,we.jsx)("strong",{children:"Confirm your email"})}),(0,we.jsxs)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px",maxWidth:"350px",margin:"auto"},children:["Twine has sent you an activation email.",(0,we.jsx)("br",{}),"Open your email and ",(0,we.jsx)("b",{children:"click the link"})," to activate your account before you can apply.",(0,we.jsx)("br",{})]}),(0,we.jsxs)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"14px",color:"#666",marginTop:"20px"},children:["Once activated,"," ",(0,we.jsx)("a",{href:"#",onClick:()=>window.location.reload(),children:"reload the page"}),"."]})]})),_e="undefined"!=typeof window&&window.posthog&&"function"==typeof window.posthog.getFeatureFlag&&"test"===window.posthog.getFeatureFlag("new-pro-paywall")?"test":"control",Pe="test"===_e,Ne=(0,we.jsxs)(f.Z,{className:"box-shadow",style:{padding:"30px 20px"},children:[(0,we.jsx)("p",{className:"text-center",children:(0,we.jsx)(y.Z,{icon:"clock",color:"#0777DA",size:"48"})}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontWeight:"700",fontSize:"20px"},children:(0,we.jsx)("strong",{children:Pe?"This is a Pro and Premium job":"Free applications limit reached"})}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:Pe?(0,we.jsxs)(we.Fragment,{children:["Once a job becomes Popular, only Pro or Premium members can a
1pply.",(0,we.jsx)("br",{}),"This job is now Popular."]}):(0,we.jsxs)(we.Fragment,{children:["Each job receives a limited amount of applications from free accounts.",(0,we.jsx)("br",{}),"This job has hit that limit."]})}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:"Still want to apply?"}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:Pe?(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(m.Z,{bsStyle:"primary",componentClass:l.Link,to:"/pricing/creative",children:"Upgrade now"})," ",(0,we.jsx)(m.Z,{bsStyle:"default",componentClass:l.Link,to:"/pricing/creative",children:"Learn more"})]}):(0,we.jsx)(l.Link,{to:"/pricing/creative",children:(0,we.jsx)(m.Z,{bsStyle:"primary",children:"Upgrade to Twine Pro"})})}),be,null]}),Ce=(0,we.jsxs)(f.Z,{className:"box-shadow",style:{padding:"30px 20px"},children:[(0,we.jsx)("p",{className:"text-center",children:(0,we.jsx)(y.Z,{icon:"clock",color:"#0777DA",size:"48"})}),(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontWeight:"700",fontSize:"20px"},children:(0,we.jsx)("strong",{children:"Your applications limit reached"})}),(0,we.jsxs)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:[V.pro?"You've used your applications for this month. Next reset in ".concat(ce,"."):"You've used today's application. Next one resets in ".concat(de,"."),(0,we.jsx)("br",{}),V.pro?!V.premium&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("a",{href:xe()?xe():"/pricing/creative",target:"_blank",rel:"noreferrer",children:"Upgrade to Premium"})," ","for no applications limits"]}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("a",{href:"/pricing/creative",target:"_blank",rel:"noreferrer",children:"Upgrade your account"})," ","for more applications"]})]}),(0,we.jsxs)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:["Still want to apply?"," "]}),be,(0,we.jsx)("p",{style:{textAlign:"center",fontFamily:"Lato",fontSize:"16px"},children:V.pro?!V.premium&&(0,we.jsx)(we.Fragment,{children:(0,we.jsx)(m.Z,{href:xe()?xe():"/pricing/creative",bsStyle:"primary",children:"Upgrade to Twine Premium"})}):(0,we.jsx)(we.Fragment,{children:(0,we.jsx)(l.Link,{to:"/pricing/creative",children:(0,we.jsx)(m.Z,{bsStyle:"primary",children:"Upgrade your account"})})})}),null]}),Se=[{label:"Need to discuss",value:0},{label:(0,a.N2)(n,!1)+ei.T.toString(),value:ei.T},{label:(0,a.N2)(n,!1)+"100",value:100},{label:(0,a.N2)(n,!1)+"250",value:250},{label:(0,a.N2)(n,!1)+"500",value:500},{label:(0,a.N2)(n,!1)+"1000",value:1e3},{label:(0,a.N2)(n,!1)+"5000",value:5e3},{label:(0,a.N2)(n,!1)+"10000",value:1e4},{label:"Other amount",value:null}],ke=(()=>{if(u)return null;if(q)return null;if(V.premium)return null;if(V.pro&&V.messages_count>0)return null;if(!V.email_verified)return{element:ye,paywallReason:null};if(0===V.messages_count&&O<=0){var e=V.pro&&!V.premium?"pro_user_pitch_limit_reached":V.pro?null:"free_user_pitch_limit_reached";return{element:Ce,paywallReason:e}}return pe?ci()?null:S>T.tm&&O<=0?{element:Ne,paywallReason:"free_user_job_pitch_limit_reached"}:null:{element:(0,we.jsx)(Gs,{requiredRank:"medium",message:fe,profileLink:V.links.main_relative}),paywallReason:null}})(),Oe=null===ke,Te=null!==(t=null==ke?void 0:ke.paywallReason)&&void 0!==t?t:null,Re=Oe&&ci()&&S>T.tm;return(0,r.useEffect)((()=>{Te&&o&&null!=V&&V.id&&(0,si.L9)("pro-paywall-shown",function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(s),!0).forEach((function(t){pi(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):hi(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({userId:V.id,jobId:o,reason:Te},"free_user_job_pitch_limit_reached"===Te&&{variant:_e})),Re&&o&&null!=V&&V.id&&(0,si.L9)("linkedin-landing-job-apply-eligible",{jobId:o,userId:V.id}),o&&null!=V&&V.id&&(0,si.L9)("freelancer-job-viewed",{briefId:o,role:c,can_apply:Oe})}),[o,null==V?void 0:V.id]),(0,we.jsxs)("div",{id:"pitch-section",children:[me,(J||_)&&!q&&(0,we.jsx)(ti.Z,{}),!J&&!_&&(null==ke?void 0:ke.element),Oe&&!J&&!_&&(0,we.jsxs)("div",{className:"".concat(Vs.container," box-shadow"),children:[(0,we.jsx)("div",{className:Vs.pitchTitleContainer,children:(0,we.jsx)("h3",{children:"Easy Apply ⚡️"})}),M?(0,we.jsxs)("div",{className:Vs.loadingPitchContainer,children:[(0,we.jsx)("h3",{className:Vs.loadingPitchTitle,children:"✨ Generating your application"}),(0,we.jsx)("p",{className:Vs.loadingPitchText,children:"Hang tight whilst AI generates your application"}),(0,we.jsx)(ti.Z,{loading:!0})]}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("textarea",{className:"form-control ".concat(k&&k.pitchText&&Vs.error),style:{resize:"vertical"},disabled:C,maxLength:"10000",onChange:e=>L(e.target.value),placeholder:"To apply, write a short introduction. Keep it friendly and relevant to this job.\n\nYou can use markdown:\n**Bold text** and _italic text_\n[this is a link](www.example.com) and - for bullet points",rows:"5",value:P}),k&&k.pitchText&&(0,we.jsx)("div",{className:Vs.errorMsg,children:k.pitchText})]}),(0,we.jsxs)("div",{className:Vs.pitchButtonsContainer,children:[(0,we.jsxs)("div",{className:Vs.exampleProjectButtons,children:[(0,we.jsx)(m.Z,{title:"Attach an example from your portfolio",bsStyle:"info",onClick:()=>W(),disabled:C||M,children:"➕ Portfolio example"}),(0,we.jsxs)(m.Z,{bsStyle:"info",href:"https://www2.twine.net/BoomPitch",target:"_blank",rel:"noopener noreferrer",disabled:C||M,className:Vs.boomVideoButton,children:[(0,we.jsx)("img",{src:s("./static/images/partners/boom-icon.svg").Z,alt:"Record a video with Boom",className:Vs.boomIcon}),(0,we.jsx)("span",{children:"Video applications"})]})]}),(0,we.jsxs)("div",{className:Vs.helpPitchButtons,children:[(0,we.jsx)(m.Z,{title:"Import your most recent application",bsStyle:"info",onClick:()=>B(),disabled:C||M,children:"🔄 Last application"}),(0,we.jsx)(m.Z,{bsStyle:"info",onClick:()=>{(0,si.L9)("user-clicked-ai-pitch"),V.pro?Z():oe(!0)},disabled:C||M,children:"✨ Write this for me"})]})]}),d&&(0,we.jsxs)(r.Fragment,{children:[(0,we.jsx)("hr",{}),(0,we.jsxs)("div",{className:Vs.availabilityContainer,children:[(0,we.jsx)("label",{htmlFor:"availabilityInput",className:Vs.availabilityLabel,children:"Availability:"}),(0,we.jsx)(Us.Z,{id:"availabilityInput",className:Vs.availabilityInput,disabled:C,onChange:A,options:[{label:"Immediately",value:0},{label:"Starting from...",value:1}],value:i})]}),1===i&&(0,we.jsx)("div",{className:Vs.datePickerContainer,children:(0,we.jsx)(j.Z,{dateFormat:"do MMMM",className:"form-control ".concat(Vs.datePicker),minDate:K,maxDate:(0,Ls.default)(K,1),placeholderText:"Select availability",onChange:e=>{ee(e),D((0,g.default)(e,"yyyy-MM-dd HH:mm:ss"))},selected:$})}),k&&k.pitchAvailability&&(0,we.jsx)("div",{className:Vs.errorMsg,children:k.pitchAvailability}),(0,we.jsxs)(we.Fragment,{children:[(0,we.jsxs)("div",{className:Vs.availabilityContainer,children:[(0,we.jsx)("label",{htmlFor:"availabilityInput",className:Vs.availabilityLabel,children:"Approximate Project Fee:"}),(0,we.jsx)(Us.Z,{id:"availabilityInput",className:Vs.availabilityInput,disabled:C,onChange:e=>{var t;"Other amount"===(t=e)?ne(!0):(ne(!1),E(t),se(t))},options:Se,value:ie?"Other amount":te})]}),!0===ie&&(0,we.jsxs)("div",{className:Vs.feeContainer,children:[(0,we.jsx)("label",{className:Vs.feeLabel}),(0,we.jsx)("input",{className:"form-control ".concat(Vs.feeInput," ").concat(k&&k.pitchAmount&&Vs.error),disabled:C,onChange:e=>E(e.target.value),placeholder:"".concat((0,a.N2)(n,!1),"500"),e:!0,type:"number",value:N})]}),k&&k.pitchAmount&&(0,we.jsx)("div",{className:"".concat(Vs.errorMsg," ").concat(Vs.feeErrorContainer),children:(0,we.jsx)("div",{className:"".concat(Vs.errorMsg," ").concat(Vs.feeError),children:k.pitchAmount})}),k&&k.pitchDeposits&&(0,we.jsx)("div",{className:Vs.errorMsg,children:k.pitchDeposits})]}),!h&&(0,we.jsxs)("div",{className:Vs.locationCheckboxContainer,children:[(0,we.jsxs)(Zs.Z,{checked:U,onClick:Q,className:Vs.locationCheckbox,children:[(0,we.jsx)("p",{className:Vs.checkboxCopy,children:" I am available to travel to ".concat(p)}),k&&k.locationCheckbox&&(0,we.jsx)("div",{className:Vs.errorMsg,children:k.locationCheckbox})]}
1),V&&V.has_resume&&(0,we.jsx)(Zs.Z,{checked:F,onClick:z,className:Vs.locationCheckbox,children:(0,we.jsx)("p",{className:Vs.checkboxCopy,children:"Share my resume with this client"})})]})]}),d&&V&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("hr",{}),(0,we.jsxs)("div",{className:Vs.payoutDetailsContainer,children:[(0,we.jsx)(Bs.Z,{children:(0,we.jsx)(Is.Z,{children:(0,we.jsxs)(Zs.Z,{onClick:()=>H("terms"),children:["I agree to the"," ",(0,we.jsx)("a",{href:"/platform-terms",target:"_blank",children:"Platform Terms"})," ","to work with this client"]})})}),k&&k.termsConfirmation&&(0,we.jsx)("div",{className:Vs.checkboxError,children:(0,we.jsx)("div",{className:Vs.errorMsg,children:k.termsConfirmation})})]})]}),(0,we.jsx)(m.Z,{bsStyle:"primary",bsSize:"lg",className:Vs.submitButton,disabled:C,onClick:()=>I(),children:C?(0,we.jsx)("em",{children:"Sending application..."}):(0,we.jsxs)(we.Fragment,{children:["Send application",(0,we.jsx)(He.Z,{className:Vs.externalGlyphIcon,glyph:"send"})]})}),(0,we.jsxs)("p",{style:{fontSize:"0.9em",marginTop:0,overflow:"hidden",maxHeight:_?0:"20px",paddingLeft:"10px",paddingRight:"10px",textAlign:"center"},children:[R?(0,we.jsxs)(we.Fragment,{children:["1 application credit will be used (",O," remaining)"]}):V.pro?(0,we.jsxs)(we.Fragment,{children:[v>0&&(0,we.jsx)("span",{children:"This counts as 1 applications."})," ",v," application",1===v?"":"s"," left for next ",ce]}):(0,we.jsxs)(we.Fragment,{children:[v," free application",1===v?"":"s"," ","left today. Resets in ",de," "]}),(0,we.jsx)("a",{target:"_blank",href:"https://help.twine.net/en/article/what-are-pitches-jiedg8/",title:"Intro and pitch limits",rel:"noreferrer",children:(0,we.jsx)(y.Z,{icon:"help",color:"#aaa",size:"14"})})]}),!V.pro&&(0,we.jsxs)("p",{style:{fontSize:"0.9em",marginTop:0,overflow:"hidden",maxHeight:_?0:"20px",paddingLeft:"10px",paddingRight:"10px",textAlign:"center"},children:[(0,we.jsx)(l.Link,{to:"/pricing/creative",children:"Upgrade to Twine Pro"})," to increase to 50 monthly applications."]}),V.pro&&!V.premium&&(0,we.jsxs)("p",{style:{fontSize:"0.9em",marginTop:0,overflow:"hidden",maxHeight:_?0:"20px",paddingLeft:"10px",paddingRight:"10px",textAlign:"center"},children:[(0,we.jsx)(l.Link,{to:"/pricing/creative",children:"Upgrade to Twine Premium"})," for unlimited applications"]})]}),Oe&&V&&(!V.bio||""==V.bio||!V.top_roles||V.top_roles&&0==V.top_roles.length||!V.location||V.location&&""==V.location.text)||""!==P&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsxs)(f.Z,{className:"f f-row ac-center jc-sb",style:{padding:"10px 20px 0px 20px"},children:[(0,we.jsx)("p",{className:"fs-16 lato-bold",style:{margin:0},children:"Application preview"}),(0,we.jsx)(l.Link,{className:"pull-right mt--",to:"".concat(V.links.main_relative),children:"Edit Portfolio"})]}),(0,we.jsx)($s,{user:V,pitch:{text:P},preferredRole:c})]}),(0,we.jsx)(w.Z,{closeButton:!0,show:re,title:"Upgrade to Pro",onExit:()=>oe(!1),children:(0,we.jsxs)("div",{className:Vs.aiPitchModal,children:[(0,we.jsx)("p",{children:"Save time with a customised application written by AI. This feature is only available to Twine Pro members"}),(0,we.jsx)("div",{style:{textAlign:"center"},children:(0,we.jsx)(m.Z,{href:"/pricing/creative",bsStyle:"primary",children:"Upgrade to Pro"})})]})})]})};ui.propTypes={availabilityToggle:n().number,briefCurrency:n().string,briefId:n().number,briefRole:n().string,briefPaid:n().bool,briefRemote:n().bool,briefLocation:n().string,briefNoPitchLimits:n().bool,creativeJob:n().bool,creditsRoles:n().array,introsLeft:n().number,introsLoading:n().bool,applicationCreditsRemaining:n().number,willUseCredits:n().bool,pitchText:n().string,pitchAmount:n().string,submittingPitch:n().bool,totalPitches:n().number,pitchError:n().object,onChangeAvailability:n().func,onChangeAvailabilityToggle:n().func,onChangePitchAmount:n().func,onChangePitchText:n().func,onGeneratePitch:n().func,onImportLastPitch:n().func,onSubmitPitch:n().func,loadingGeneratedPitch:n().bool,locationCheckbox:n().bool,onLocationCheckboxClick:n().func,shareResumeCheckbox:n().bool,onShareResumeCheckboxClick:n().func,onConfirmationCheckboxClick:n().func,authUserWasInv
1ited:n().bool,onAttachUpload:n().func,jobRole:n().string,suggestedRoles:n().array,loadingSuggestedRoles:n().bool,user:n().object};const mi=(0,r.memo)(ui);var gi=s("./node_modules/react-bootstrap/es/ListGroup.js"),ji=s("./node_modules/react-bootstrap/es/ListGroupItem.js"),xi=s("./node_modules/react-bootstrap/es/Clearfix.js"),bi=s("./src/components/Pitch/PaymentModal.js"),fi=s("./src/components/Pitch/AddPaymentForPitch.js"),vi=s("./src/components/Pitch/DeclinePitch.js");function yi(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function _i(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(s),!0).forEach((function(t){wi(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):yi(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function wi(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class Pi extends r.Component{render(){var{color:e,className:t,children:s,href:i,onClick:n,bold:r}=this.props;return(0,we.jsx)("a",_i(_i({},this.props),{},{style:_i({color:e,padding:"2px 7px",border:(r?"2px":"1px")+" solid "+e,borderRadius:"1000px",MozBorderRadius:"1000px",WebkitBorderRadius:"1000px",fontFamily:"Lato",fontWeight:r?"700":"400"},this.props.style),className:"inverse-label "+(t?t+" ":"")+(i||n?"pointer":""),children:s}))}}Pi.propTypes={color:n().string,children:n().any,className:n().string,href:n().string,onClick:n().func,bold:n().bool,style:n().any};var Ni=s("./src/components/Linkify/Linkify.js"),Ci=s("./src/components/TimeAgo/TimeAgo.js");const Si="_3CJjpqo8";class ki extends r.Component{constructor(){super(),this.state={showAcceptPitch:!1,showDeclinePitch:!1,showConnectPayment:!1,showContractModal:!1,initializingBraintree:!1,braintreeNonce:"",pitchTooLarge:!1,fullPitch:!1}}componentDidMount(){this.timer=setInterval((()=>{this.forceStateUpdate()}),1e3),this.checkPitchHeight()}componentWillUnmount(){clearInterval(this.timer)}onAccept(){this.props.onAccepted(this.props.pitch),this.setState({showAcceptPitch:!1})}onDecline(){this.props.onDeclined(this.props.pitch),this.setState({showDeclinePitch:!1})}onPaymentMethodReceived(e){this.setState({braintreeNonce:e.nonce},(function(){this.paymentMethodAdded()}))}checkPitchHeight(){var e=document.getElementById("pitchWrapper_"+this.props.pitch.id);this.setState({pitchTooLarge:!!e&&e.scrollHeight>130})}showPaymentProcessor(){this.props.paymentVerificationRequired?(""===this.props.paymentToken&&this.props.getPaymentToken(),this.setState({showConnectPayment:!0})):this.setState({showAcceptPitch:!0})}paymentMethodAdded(){this.props.onAddPayment(this.state.braintreeNonce),this.setState({showConnectPayment:!1,showAcceptPitch:!0})}forceStateUpdate(){this.setState({forceUpdate:this.state.forceUpdate>9?0:this.state.forceUpdate+1})}humanReadableExpiry(e){var t=h()(e).diff(h()(),"seconds"),s=86400,i=3600;return t<=0?(0,we.jsxs)(Pi,{color:"#d9534f",bold:!0,children:[(0,we.jsx)(k.Z,{icon:"",className:"relative",style:{top:"-1px"}})," ","Expired"]}):t>s?(0,we.jsxs)(Pi,{color:"#ff9956",bold:!0,children:[(0,we.jsx)("span",{className:"hidden-xs",children:"Expires in"}),(0,we.jsx)("span",{className:"visible-xs-inline",children:"Exp."})," ",Math.floor(t/s)+"d "+Math.floor(t%s/i)+"h"]}):t>i?(0,we.jsxs)(Pi,{color:"#d9534f",bold:!0,children:[(0,we.jsx)("span",{className:"hidden-xs",children:"Expires in"}),(0,we.jsx)("span",{className:"visible-xs-inline",children:"Exp."})," ",Math.floor(t/i)+"h "+Math.floor(t%i/60)+"m"]}):t>60?(0,we.jsxs)(Pi,{color:"#d9534f",bold:!0,children:[(0,we.jsx)("span",{className:"hidden-xs",children:"Expires in"}),(0,we.jsx)("span",{className:"visible-xs-inline",children:"Exp."})," ",Math.floor(t/60)+"m "+Math.floor(t%60)+"s"]}):(0,we.jsxs)(Pi,{color:"#d9534f",bold:!0,children:[(0,we.jsx)("span",{className:"hidden-xs",children:"Expires in"}),(0,we.jsx)("span",{className:"visible-xs-inline",children:"Exp."})," ",t+"s"]})}render(){var{brief:e,pitch:t}=this.props,{showAcceptPitch:s,showDeclinePitch:i,showConnectPayment:n,showContractModal:r,pitchTooLarge:o,fullPitch:a}=this.state;return(0,we.jsxs)("div",{children:[(0,we.jsxs)(gi.Z,{children:[(0,we.jsx)(ji.Z,{children:(0,we.jsxs)(xi.Z,{children:[""===t.accepted_at&&""===t.declined_at&&(0,we.jsx)("div",{className:"right ml-",children:(0,we.jsx)("div",{style:{whiteSpace:"nowrap",position:"relative",top:"10px",fontSize:"16px"},children:this.humanReadableExpiry(t.expires_at)})}),""!==t.completed_at&&(0,we.jsx)("span",{className:"pull-right mt-",children:(0,we.jsxs)(Pi,{className:"pull-right",color:"#0fe2af",children:[(0,we.jsx)(k.Z,{icon:""})," Completed"]})}),""===t.completed_at&&""!==t.accepted_at&&(0,we.jsx)("span",{className:"pull-right mt-",children:(0,we.jsxs)(Pi,{className:"pull-right",color:"#0fe2af",children:[(0,we.jsx)(k.Z,{icon:""})," ","b"===this.props.acceptHireAB?"Hired":"Accepted"]})}),""===t.completed_at&&""!==t.declined_at&&(0,we.jsx)("span",{className:"pull-right mt-",children:(0,we.jsxs)(Pi,{className:"pull-right",color:"#d9534f",children:[(0,we.jsx)(k.Z,{icon:""})," Declined"]})}),(0,we.jsx)("div",{className:"left mr-",children:(0,we.jsx)("a",{href:t.sender.links.main,className:"no-decoration",children:(0,we.jsx)(P.Z,{thumbnails:t.sender.avatars,circle:!0,style:{width:"46px",height:"46px"}})})}),(0,we.jsxs)("div",{children:[(0,we.jsx)("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:(0,we.jsxs)("a",{href:t.sender.links.main,className:"no-decoration",children:[(0,we.jsx)("strong",{children:t.sender.displayname}),(0,we.jsx)("span",{style:{marginLeft:"5px"},children:(0,we.jsx)(Ke.Z,{user:t.sender})})]})}),(0,we.jsxs)("div",{style:{color:"#aaa",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:["Submitted ",(0,we.jsx)(Ci.Z,{timestamp:t.timestamp})]})]})]})}),!t.deposit_paid_at&&(0,we.jsx)(ji.Z,{children:(0,we.jsxs)(xi.Z,{children:[(0,we.jsx)("div",{className:o&&!a?Si:"",style:{maxHeight:a?"1000px":"130px",overflow:"hidden",transition:a?"max-height 1s ease-in-out":"max-height 1s cubic-bezier(0, 1, 0, 1)"},children:(0,we.jsx)("div",{id:"pitchWrapper_"+t.id,children:(0,we.jsx)(Ni.Z,{children:(0,we.jsx)("p",{style:{whiteSpace:"pre-line",overflowWrap:"break-word",fontSize:"16px",marginBottom:"0px"},children:t.text})})})}),o&&(0,we.jsx)("span",{onClick:()=>this.setState({fullPitch:!a}),className:"text-primary pointer",children:a?"Show less":"Show more"})]})}),t.amount>0||e.budget>0?(0,we.jsx)(ji.Z,{children:(0,we.jsxs)(xi.Z,{children:[(0,we.jsx)("div",{style:{whiteSpace:"pre-wrap",fontWeight:t.deposit&&""!==t.deposit_paid_at?"normal":"bold"},children:(0,we.jsxs)("span",{children:["Freelancer Fee:"," ",(0,we.jsx)(v.Z,{currency:e.currency,amount:t.budget>0?t.budget:e.amount})]})}),t.deposit?(0,we.jsxs)("div",{children:[(0,we.jsx)("div",{className:"mt--",style:{whiteSpace:"pre-wrap"},children:(0,we.jsxs)("span",{children:["Initial payment",""!==t.deposit_paid_at?" paid":"",":"," ",t.deposit,"%"," "]})}),""!==t.deposit_paid_at?(0,we.jsx)("div",{className:"mt--",style:{whiteSpace:"pre-wrap"},children:(0,we.jsxs)("strong",{children:["Total remaining:"," ",(0,we.jsx)(v.Z,{currency:e.currency,amount:""!==t.paid_at?0:(t.amount>0?t.amount:e.budget)-t.deposit_amount})]})}):null]}):null,t.available_at?(0,we.jsx)("div",{className:"mt--",style:{whiteSpace:"pre-wrap"},children:(0,we.jsxs)("span",{children:["Available from:"," ",h()(t.available_at).format("MMMM D, YYYY")]})}):null,t.days_to_complete?(0,we.jsx)("div",{className:"mt--",style:{whiteSpace:"pre-wrap"},children:(0,we.jsxs)("span",{children:["Estimated completion time: ",t.days_to_complete," day",t.days_to_complete>1?"s":""]})}):null,t.day_rate?(0,we.jsx)("div",{className:"mt--",style:{whiteSpace:"pre-wrap"},children:(0,we.jsxs)("span",{children:["Usual day rate:"," ",(0,we.jsx)(v.Z,{currency:t.day_rate_currency,amount:t.day_rate})]})}):null]})}):null,(0,we.jsx)(ji.Z,{children:(0,we.jsxs)(xi.Z,{children:[""!==t.accepted_at&&(t.amount>0||e.budget>0)?(0,we.jsx)(m.Z,{bsStyle:"info",onClick:()=>this.setState({showContractModal:!0}),style:{cursor:"pointer"},children:"Agreed Contract"}):null,(0,we.jsx)(l.Link,{className:""!==t.accepted_at?"pull-right":"",to:"/messages/"+t.sender.username,children:(0,we.jsx)(m.Z,{bsStyle:""===t.accepted_at?"info":"success",disabled:""===t.accepted_at&&h()().isAfter(t.expires_at),children:""===t.accepted_at?"Reply":"Message"})}),""===t.accepted_at&&""===t.declined_at&&(0,we.jsxs)("span",{children:[(0,we.jsxs)(m.Z,{className:"pull-right",bsStyle:"success",onClick:this.showPaymentProcessor.bind(this),disabled:h()().isAfter(t.expires_at),children:[(0,we.jsx)(k.Z,{icon:""})," ","b"===this.props.acceptHireAB?"Hire":"Accept"]}),(0,we.jsxs)(m.Z,{className:"pull-right",style:{marginRight:10},bsStyle:"info",onClick:()=>this.setState({showDeclinePitch:!0}),disabled:h()().isAfter(t.expires_at),children:[(0,we.jsx)(k.Z,{icon:""})," Decline"]})]})]})})]}),(0,we.jsx)(_.Z,{show:r,onConfirm:()=>this.setState({showContractModal:!1}),title:"Contract and Twine Terms",text:(0,we.jsxs)("p",{style:{textAlign:"left"},children:["By accepting to work with ",t.sender.displayname," (the"," ",'<strong>"Seller"</strong>), you (the <strong>"Buyer"</strong>)\n              agreed to Twine\'s'," ",(0,we.jsx)("a",{target:"_blank",href:"/terms",children:"Engagement Terms and Conditions"}),".",(0,we.jsx)("br",{}),(0,we.jsx)("br",{}),"These terms detail ownership of the work, your obligations as the\n              Buyer, the Sellers obligations and your obligation to pay Twine's\n              fee.",(0,we.jsx)("br",{}),(0,we.jsx)("br",{}),(0,we.jsx)("strong",{children:'"Twine Order Form"'})," is defined as what is agreed between the Buyer and Seller on this page and on Twine messages.",(0,we.jsx)("br",{}),(0,we.jsx)("br",{}),"You have also agreed to the"," ",(0,we.jsx)("a",{target:"_blank",href:"/platform-terms",children:"Platform Terms of Use"}),"."]}),icon:"info",theme:"info"}),(0,we.jsx)(w.Z,{show:i,onExit:()=>this.setState({showDeclinePitch:!1}),children:(0,we.jsx)(vi.Z,{onCancel:()=>this.setState({showDeclinePitch:!1}),onDecline:this.onDecline.bind(this)})}),(0,we.jsx)(w.Z,{show:n,onExit:()=>this.setState({showConnectPayment:!1}),children:(0,we.jsx)(fi.Z,{onCancel:()=>this.setState({showConnectPayment:!1}),onPaymentMethodReceived:this.onPaymentMethodReceived.bind(this),paymentToken:this.props.paymentToken,pitch:t})}),(0,we.jsx)(w.Z,{show:s,onExit:()=>this.setState({showAcceptPitch:!1}),children:(0,we.jsx)(bi.Z,{brief:e,pitch:t,onAccept:this.onAccept.bind(this)})})]},"pitch-pitchcomp-containerdiv-".concat(t.id))}}ki.propTypes={brief:n().object.isRequired,pitch:n().object.isRequired,onAccepted:n().func,onDeclined:n().func,getPaymentToken:n().func,paymentToken:n().string,onAddPayment:n().func,paymentVerificationRequired:n().bool,acceptHireAB:n().string},ki.timer=null;var Oi=s("./node_modules/react-bootstrap/lib/ListGroup.js"),Ti=s.n(Oi),Ri=s("./node_modules/react-bootstrap/lib/ListGroupItem.js"),Di=s.n(Ri);const Ai="_3pbVV2WL";var Ei=["askingQuestion","isOwner","loadedQuestions","loadingQuestions","loggedIn","moreQuestions","onAskQuestion","onEdit","onLoadMore","onPostQuestion","onUpdateQuestionText","ownQuestions","postingQuestion","questions","questionText"];function Li(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function Zi(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};
1t%2?Li(Object(s),!0).forEach((function(t){Bi(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Li(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function Bi(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Ii(e,t){if(null==e)return{};var s,i,n=function(e,t){if(null==e)return{};var s,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)s=r[i],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)s=r[i],t.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}var Mi=e=>{var{askingQuestion:t,isOwner:s,loadedQuestions:i,loadingQuestions:n,loggedIn:r,moreQuestions:o,onAskQuestion:a,onEdit:l,onLoadMore:c,onPostQuestion:d,onUpdateQuestionText:h,ownQuestions:p,postingQuestion:u,questions:m,questionText:g}=e,j=Ii(e,Ei);return(0,we.jsxs)(Ti(),Zi(Zi({},j),{},{className:Ai,children:[(0,we.jsxs)(Di(),{className:"cf",children:[(0,we.jsx)("strong",{className:"fs-16 lato-bold",style:{lineHeight:"33px"},children:"Public questions"}),!s&&!t&&(0,we.jsx)(Ye(),{bsStyle:"info",className:"right",onClick:()=>a(!0),children:"Ask a question"})]}),!t&&[p.length>0?p.map((e=>(0,we.jsxs)(Di(),{children:[(0,we.jsxs)("p",{style:{fontFamily:"Lato"},className:"no-margin word-wrap",children:[(0,we.jsxs)("strong",{children:["Q: ",e.question]})," ",s&&(0,we.jsx)("em",{children:(0,we.jsx)("a",{onClick:l.bind(null,e.id),className:"pointer",children:"edit answer"})})]}),(0,we.jsxs)("p",{style:{fontFamily:"Lato"},className:"no-margin word-wrap",children:["A:"," ",""!==e.answer?e.answer:(0,we.jsx)("em",{children:"Not answered yet"})]})]},"question_"+e.id))):null,m.length>0?m.map((e=>(0,we.jsxs)(Di(),{children:[(0,we.jsxs)("p",{style:{fontFamily:"Lato"},className:"no-margin word-wrap",children:[(0,we.jsxs)("strong",{children:["Q: ",e.question]})," ",s&&(0,we.jsx)("em",{children:(0,we.jsx)("a",{onClick:l.bind(null,e.id),className:"pointer",children:"edit answer"})})]}),(0,we.jsxs)("p",{style:{fontFamily:"Lato"},className:"no-margin word-wrap",children:["A:"," ",""!==e.answer?e.answer:(0,we.jsx)("em",{children:"Not answered yet"})]})]},"question_"+e.id))):null,n?(0,we.jsx)(Di(),{children:(0,we.jsx)(ti.Z,{loading:!0})},"1"):null,i&&0===m.length&&0===p.length?(0,we.jsx)(Di(),{children:(0,we.jsx)("em",{children:"No questions have been answered yet"})},"2"):null,!n&&o?(0,we.jsx)(Di(),{className:"text-center",children:(0,we.jsx)("a",{className:"pointer",onClick:c,children:(0,we.jsx)("em",{children:"More questions..."})})},"3"):null],t?(0,we.jsxs)(Di(),{className:"cf",children:[(0,we.jsx)("p",{style:{fontFamily:"Lato"},children:"Public questions are anonymous and appear under the job details once answered."}),(0,we.jsx)("p",{style:{fontFamily:"Lato"},children:"✅   Do: Ask for more detail about the job"}),(0,we.jsx)("p",{style:{fontFamily:"Lato"},children:"❌   Don't: Ask questions to self-promote or apply for the job"}),(0,we.jsxs)("p",{style:{fontFamily:"Lato"},children:["Use the"," ",(0,we.jsx)("a",{href:"https://help.twine.net/en/article/what-are-public-questions-1iawxu6/",target:"_blank",children:"Help Center"})," ","to learn more."]}),(0,we.jsx)("textarea",{rows:"4",className:"form-control",maxLength:"250",placeholder:r?"Type your anonymous question to the client here":"Sign in to ask a question",disabled:u||!r,value:g,onChange:h}),g.length>200&&(0,we.jsx)("div",{children:(0,we.jsxs)("em",{children:["Characters left: ",250-g.length]})}),(0,we.jsx)(Ye(),{className:"right mt pr++ pl++",onClick:r?d:()=>document.location="/signin",bsStyle:"success",disabled:u||r&&""===g,children:r?"Ask question":"Sign in to ask"}),(0,we.jsx)(Ye(),{bsStyle:"info",className:"right mt mr",onClick:()=>a(!1),children:"Cancel"})]}):null]}))};Mi.propTypes={questions:n().array,loadingQuestions:n().bool,loadedQuestions:n().bool,onLoadMore:n().func,moreQuestions:n().bool,postingQuestion:n().bool,questionText:n().string,onUpdateQuestionText:n().func,onPostQuestion:n().func,loggedIn:n().bool,isOwner:n().bool,onEdit:n().func,className:n().string};
1const Ui=Mi,Qi="_2wVJZe8m",Fi="_3d-TBwDK",zi="coWQClm-",Hi="_3qcM6lfS",qi="_1MxFM-PA";const Wi=e=>{var{className:t="",onClick:s,project:i,selected:n=!1}=e;return(0,we.jsx)("div",{className:"".concat(Qi," ").concat(n?Fi:""," ").concat(t),children:(0,we.jsxs)("div",{className:zi,onClick:s,children:[(0,we.jsx)(P.Z,{className:Hi,thumbnails:i.thumbnails}),(0,we.jsx)("div",{className:qi,children:i.title})]})})},Yi="_2v8nhxoC",Gi="_3vqdV2BH",Ji="_2HpdUawQ";const Vi=e=>{var{loadingProjects:t=!1,onSelectProject:s,projects:i=[],selectedProjects:n=[]}=e;return(0,we.jsxs)("div",{children:[i.map((e=>(0,we.jsx)(Wi,{className:Gi,onClick:()=>s(e.id,e.links.main),project:e,selected:n.includes(e.id)},e.id))),(0,we.jsx)(ti.Z,{className:Yi,loading:t}),!t&&0===i.length&&(0,we.jsx)("div",{className:Ji,children:"Your Twine portfolio is empty."})]})};var Xi=s("./src/components/Rating/RatingModal.js");const Ki="_39g1mUa0",$i="_3CUYTwD7",en="_1J5dVwzd",tn="_3O8XPM-s",sn="_2tvQfE9x",nn="_7yEIhRl7",rn="_3nA2V3lm",on="_1nBHP4js",an="eNLxe_C5",ln="dDmWZtwh",cn="bFQyPIrP",dn="_1vFVkF40",hn="_2kcZ2eM0",pn="QZsBzWBu",un="_13N0OoYZ",mn="WOx4BT-M",gn="_3-2NkdVj",jn="zVTM4C83",xn="_25sn2lx-",bn="_28i_4pO8";var fn=s("./src/components/Portfolio/PortfolioAbout/components/ChildComponents/Adverts/PortfolioAdverts.js");const vn="mz5FmzIE",yn="_5F3fsgCa",_n="_1k63AsSY",wn="_3MILliCg",Pn="_3nc5DP1F",Nn="vE4x_2Uh",Cn="eycNYHLK",Sn="_2mtYQ5FM",kn="_3a-TYk9Q",On="_1n5yCTN1",Tn="Vfv16avc",Rn="Jub62uPd";var Dn=s("./node_modules/react-google-invisible-recaptcha/index.js"),An=s("./node_modules/react-bootstrap/es/FormControl.js"),En=s("./node_modules/react-bootstrap/es/HelpBlock.js"),Ln=s("./src/components/ButtonWithLoader/ButtonWithLoader.jsx"),Zn=e=>{var{text:t,signUpContainerClass:s}=e,[i,n]=(0,r.useState)(""),[o,a]=(0,r.useState)({}),[l,c]=(0,r.useState)(!1),[d,h]=(0,r.useState)(""),[p,u]=(0,r.useState)(""),[m,g]=(0,r.useState)(!1),[j,x]=(0,r.useState)(!1),b=(0,ve.useSelector)((e=>e.auth)),f=(0,ve.useSelector)((e=>e.auth.emailError)),{emailValidationError:v,emailValidationType:y,signUpPasswordlessLoading:_,signUpPasswordlessResponse:w,signUpPasswordlessError:P}=b,N=(0,r.useRef)(null),C=(0,r.useRef)(o),S=(0,r.useRef)(!1),k=(0,ve.useDispatch)();(0,r.useEffect)((()=>{c(_)}),[_]),(0,r.useEffect)((()=>{var e;f.length>0&&u(null===(e=f[0])||void 0===e?void 0:e.toString())}),[f]),(0,r.useEffect)((()=>{"Invalid"===y?(h(""),u(""),u(v)):(h(""),u(""),h(v))}),[v,y]),(0,r.useEffect)((()=>{w&&!P&&x(!0)}),[w,P]),(0,r.useEffect)((()=>{P&&((0,si.L9)("job-details-sign-up-error",{error:P}),P.message?u(P.message):u("string"==typeof P?P:"An error occurred during sign up. Please try again."),g(!0))}),[P]),(0,r.useEffect)((()=>{var e=setTimeout((()=>{h(""),u(""),k((0,Re.eG)()),""!==i&&i.includes("@")&&i.includes(".")&&k((0,Re.oH)(i))}),250);return()=>clearTimeout(e)}),[i]);var O=()=>{(0,si.L9)("job-details-sign-up-attempt",{email:i});var e=""===i?(h(""),u(""),u("Please enter your email address"),g(!0),!1):i.includes("@")&&i.includes(".")?!p||(g(!0),!1):(h(""),u(""),u("Email doesn't contain @ or ."),g(!0),!1);if(!p&&e&&"Invalid"!==y){if(!i)return;var t={email:i,type:"seller",utm:{},ai_collector:!1},s=new Date;s.setTime(s.getTime()+3e5),ri().save("brief-link",window.location.pathname,{path:"/",expires:s});var n=ri().load("utm_source"),r=ri().load("utm_medium"),o=ri().load("utm_campaign"),l=new URLSearchParams(window.location.search);S.current="linkedin_job"===l.get("utm_campaign");var c=ri().load("utm_term"),d=ri().load("utm_content"),m=window.location.pathname;n&&(t.utm.source=n),r&&(t.utm.medium=r),o&&(t.utm.campaign=o),c&&(t.utm.term=c),d?t.utm.content=d:m&&(t.utm.content=m),N.current?a(t):k((0,Re._D)(t)).then((e=>{(0,si.L9)("job-details-sign-up-success",{email:i}),S.current&&null!=e&&e.new_user&&li(window.location.pathname),T(btoa(i))}))}};(0,r.useEffect)((()=>{C.current=o,Object.keys(o).length>0&&N.current.execute()}),[o]);var T=e=>{window.location="/auth/code?email=".concat(e)};return(0,we.jsxs)(we.Fragment,{children:[(0,we.jsxs)("div",{className:s,children:[(0,we.jsx)("div",{className:Nn,children:(0,we.jsx)(An.Z,{type:"email",placeholder:"e.g. [email protected]",disabled:!1,value:i,onChange:e=>(e=>{var t=e.target.value;n(t),h(""),u(""),g(!1),k((0,Re.eG)())})(e),className:[Cn,m&&kn]})}),(0,we.jsx)(Ln.Z,{bsStyle:"primary",disabled:l,style:{minWidth:75},onClick:()=>O(),loading:l,text:t,success:j})]}),!d&&!p&&(0,we.jsx)(En.Z,{children:" "}),d&&(0,we.jsx)(En.Z,{className:Tn,children:d}),p&&(0,we.jsx)(En.Z,{className:On,children:p}),(0,we.jsxs)("p",{className:Rn,children:["By applying, you agree to our ",(0,we.jsx)("a",{href:"/terms",children:"Terms"}),"."]}),(0,we.jsx)(Dn.default,{ref:N,sitekey:"6LeM6S4UAAAAAAcniUWEJH09QvM8KHx303jvWsY1",onResolved:()=>{C.current.recaptcha=N.current.getResponse(),k((0,Re._D)(C.current)).then((e=>{(0,si.L9)("job-details-sign-up-success",{email:C.current.email}),S.current&&null!=e&&e.new_user&&li(window.location.pathname),T(btoa(C.current.email))})),N.current.reset()}})]})};
1Zn.propTypes={text:n().string,signUpContainerClass:n().string};const Bn=Zn;function In(e){var{isExternal:t,popularityWarning:s=!1}=e;return(0,we.jsx)(we.Fragment,{children:(0,we.jsx)(gi.Z,{className:vn,children:(0,we.jsx)(ji.Z,{style:{border:0},children:(0,we.jsxs)("div",{style:{padding:"10px 5px"},children:[(0,we.jsx)("h2",{className:yn,children:t?"Apply":"Apply in 1-2 minutes"}),(0,we.jsx)("hr",{}),s&&(0,we.jsx)("div",{className:_n,children:"undefined"!=typeof window&&window.location.href.includes("utm_campaign=linkedin_job")||"linkedin_job"===ri().load("utm_campaign")?(0,we.jsx)(we.Fragment,{children:"Sign up below to apply for this job."}):(0,we.jsxs)(we.Fragment,{children:["This job has reached its application limit for free accounts. ",(0,we.jsx)("a",{href:"/pricing/creative",children:"Twine Pro"})," members can still apply."]})}),(0,we.jsx)("p",{className:wn,children:(0,we.jsx)("strong",{children:"Enter your email to apply"})}),(0,we.jsx)(Bn,{signUpContainerClass:Pn,text:"Apply now"}),(0,we.jsxs)("p",{className:Sn,children:["Already have an account? ",(0,we.jsx)("a",{href:"/signin",children:"Sign in"}),"."]})]})})})})}In.propTypes={isExternal:n().bool,popularityWarning:n().bool};var Mn=s("./src/components/SignUp/EmailInput.js"),Un=s("./node_modules/react-bootstrap/es/Panel.js");const Qn={container:"_1wZNA5R_",heading:"_1JHYFKt3",subHeading:"_3rCUF6aA",signUpContainer:"_3kZe-PnC",inputContainer:"_3cbOpOVQ",input:"_2a-j4qNW",helpText:"_3PZnm2Aj",emailInputDanger:"_1F4WnWYf",emailDanger:"Mywkj1yy"};var Fn=e=>{var{briefRole:t,loggedIn:s}=e,[i,n]=(0,r.useState)(),[o,a]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),h=(0,ve.useDispatch)(),p=t?"".concat(t," "):"";return(0,we.jsx)(we.Fragment,{children:(0,we.jsxs)(Un.Z,{className:Qn.container,children:[(0,we.jsx)("h2",{className:Qn.heading,children:"No longer accepting applications"}),s?(0,we.jsxs)("p",{className:Qn.subHeading,children:["Get instant notifications for new jobs. Update your"," ",(0,we.jsx)(l.Link,{to:"/settings#notifications",children:"notification settings"}),"."]}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("p",{className:Qn.subHeading,children:"Get instant notifications for new ".concat(p," jobs. Enter your email:")}),(0,we.jsxs)("div",{className:Qn.signUpContainer,children:[(0,we.jsx)("div",{className:Qn.inputContainer,children:(0,we.jsx)(Mn.Z,{type:"email",placeholder:"e.g. [email protected]",styles:Qn,disabled:!1,value:i,onChange:e=>(e=>{n(e.target.value),a(""),h((0,Re.eG)())})(e),className:Qn.input,isInPost:!1,resetContinue:()=>{}})}),(0,we.jsx)(Ln.Z,{onClick:()=>{i?o||(d(!0),(0,si.L9)("user-clicks-on-expired-job-signup"),window.location.href="/signup?email=".concat(i,"&type=seller"),d(!1)):a("Please enter your email.")},bsStyle:"primary",disabled:c,style:{minWidth:75},loading:c,text:"Notify me"})]})]}),o&&(0,we.jsx)(En.Z,{className:Qn.emailDanger,children:o})]})})};Fn.propTypes={briefRole:n().string};const zn=Fn,Hn="_1KtCZWzc",qn="_3wWhIZr7",Wn="_10BC6ChV",Yn="_3XIqPF4l",Gn="_8yzYh7tr",Jn="_31UUD7aF",Vn="_35h5Ym4X",Xn="_2owpa2zL";function Kn(){return(0,we.jsx)(gi.Z,{className:Hn,children:(0,we.jsx)(ji.Z,{style:{border:0},children:(0,we.jsxs)("div",{style:{padding:"10px 5px"},children:[(0,we.jsx)("h2",{className:qn,children:"How It Works"}),(0,we.jsx)("hr",{}),(0,we.jsxs)("div",{className:Yn,children:[(0,we.jsx)("div",{className:Gn,children:"🔍"}),(0,we.jsxs)("div",{className:Jn,children:[(0,we.jsx)("p",{className:Wn,children:(0,we.jsx)("strong",{children:"Get quality leads"})}),(0,we.jsx)("p",{children:"Review job leads for free, filter by local or global clients, and get real time notifications for new opportunities."})]})]}),(0,we.jsx)("hr",{}),(0,we.jsxs)("div",{className:Yn,children:[(0,we.jsx)("div",{className:Gn,children:"🎉"}),(0,we.jsxs)("div",{className:Jn,children:[(0,we.jsx)("p",{className:Wn,children:(0,we.jsx)("strong",{children:"Apply with ease"})}),(0,we.jsx)("p",{children:"Pick the best leads, unlock contact details, and apply effortlessly with Twine's AI application tools."})]})]}),(0,we.jsx)("hr",{}),(0,we.jsxs)("div",{className:Yn,children:[(0,we.jsx)("div",{className:Gn,children:"📈"}),(0,we.jsxs)("div",{className:Jn,children:[(0,we.jsx)("p",{className:Wn,children:(0,we.jsx)("strong",{children:"Grow your career"})}),(0,we.jsx)("p",{children:"Showcase your work, pitch to the best leads, land new clients and use Twine’s tools to find more opportunities."})]})]}),(0,we.jsx)("div",{className:Xn,children:(0,we.jsxs)(m.Z,{bsStyle:"primary",bsSize:"lg",href:"/signup?type=seller",className:Vn,onClick:()=>{var e=new Date;e.setTime(e.getTime()+3e5),ri().save("brief-link",window.location.pathname,{path:"/",expires:e})},children:[(0,we.jsx)("strong",{children:"Sign up for free"})," ",(0,we.jsx)(y.Z,{icon:"chevron-right",size:"16"})]})})]})})})}var $n=s("./src/redux/modules/jobs.js"),er=s("./src/components/JobListing/JobListing.jsx");const tr={RelatedJobs__link:"_3czWiA3a",relatedJobsLink:"_3czWiA3a",RelatedJobs__title:"_1rORhReY",relatedJobsTitle:"_1rORhReY"};var sr=e=>{var{briefId:t,role:s,skill:i,user:n,country:o,city:l,locationWithRoleLink:c}=e,d=(0,ve.useDispatch)(),h=(0,ve.useSelector)((e=>e.jobs)),p=l||o,u=l?"/jobs/in/".concat((0,a.H6)(o),"/").concat((0,a.H6)(l)):"/jobs/in/".concat((0,a.H6)(o));(0,r.useEffect)((()=>{d((0,$n.Q)(t,s,n,i))}),[]);var m=null==h?void 0:h.relatedJobs.map((e=>(0,we.jsx)(er.Z,{brief:e,relatedJobs:!0},e.id))),g="/hire-a-freelancer";return s&&o&&l?g="/find/".concat((0,a.H6)((0,a.iZ)(s)),"/").concat((0,a.Rm)(o),"/").concat((0,a.H6)(l)):s&&o?g="/find/".concat((0,a.H6)((0,a.iZ)(s)),"/").concat((0,a.Rm)(o)):s&&(g="/find/".concat((0,a.H6)((0,a.iZ)(s)))),(0,we.jsxs)("div",{className:tr.RelatedJobs,children:[(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("h2",{className:tr.RelatedJobs__title,children:"Similar Jobs"}),h.loading&&(0,we.jsx)(ti.Z,{loading:!0}),m]}),(0,we.jsxs)("div",{className:tr.RelatedJobs__link,children:["-"," ",(0,we.jsxs)("a",{href:"/jobs/"+(0,a.iZ)((0,a.H6)(s)),children:["Find more ",s," jobs"]}),p?(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("br",{}),"-"," ",(0,we.jsxs)("a",{href:c,children:["Find more ",s," jobs in ",p]}),(0,we.jsx)("br",{}),"-"," ",(0,we.jsxs)("a",{href:u,children:["Browse other jobs in ",p]})]}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("br",{}),"- ",(0,we.jsx)("a",{href:"/jobs",children:"Find more freelance jobs"})]}),(0,we.jsx)("hr",{}),"-"," ",(0,we.jsxs)("a",{href:"/find/"+(0,a.iZ)((0,a.H6)(s)),children:["Hire an expert ",s]}),p?(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("br",{}),"-"," ",(0,we.jsxs)("a",{href:g,children:["Hire a ",s," in ",p]})]}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("br",{}),"- ",(0,we.jsxs)("a",{href:g,children:["Hire expert ",s," near you"]})]})]})]})};
1sr.propTypes={briefId:n().number,role:n().string,skill:n().string,user:n().object,country:n().string,city:n().string,locationWithRoleLink:n().string};const ir=sr;var nr,rr,or=s("./src/components/Upsell/AriUpsell.js"),ar=s("./src/helpers/audienceTracking.js"),lr=/!\[[^\]]*\]\([^)]+\)/g,cr=/\[([^\]]+)\]\(([^)]+)\)/g,dr=/<?https?:\/\/[^\s<>[\]()'"]+>?/gi,hr=/<?\bwww\.[^\s<>[\]()'"]+>?/gi,pr=/\*{0,2}(?:Related Projects|Attached links):\*{0,2}/gi;function ur(e){return function(e){if(!e)return"";var t=String(e);return(t=(t=(t=(t=(t=t.replace(lr," ")).replace(cr,"$1")).replace(dr," ")).replace(hr," ")).replace(pr," ")).split(/\r\n|\r|\n/).map((e=>e.replace(/\s+/g," ").trim())).filter(Boolean).join("")}(e).length}function mr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return ur(e)>=t}function gr(e,t,s,i,n,r,o){try{var a=e[r](o),l=a.value}catch(e){return void s(e)}a.done?t(l):Promise.resolve(l).then(i,n)}function jr(e){return function(){var t=this,s=arguments;return new Promise((function(i,n){var r=e.apply(t,s);function o(e){gr(r,i,n,o,a,"next",e)}function a(e){gr(r,i,n,o,a,"throw",e)}o(void 0)}))}}function xr(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function br(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(s),!0).forEach((function(t){fr(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):xr(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function fr(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var vr=(0,o.O)([{promise:e=>{var{store:{dispatch:t,getState:s},match:{params:{id:i}}}=e,n=[],r=i?i.split("-")[0]:null;return r&&!(0,Ae.Kx)(s())&&n.push(t((0,Ae.qb)(r))),Promise.all(n)}}],(e=>({user:e.auth.user,brief:e.briefDetails.brief,briefEntities:e.entities.briefs,creativePitch:e.briefDetails.creativePitch,deletingBrief:e.briefDetails.deletingBrief,generatedPitch:e.pitchWriter.generatedPitch,introsLeft:e.messages.introsLeft,introsLoading:e.messages.introsLoading,applicationCreditsRemaining:e.messages.applicationCreditsRemaining,willUseCredits:e.messages.willUseCredits,loadedBrief:e.briefDetails.loadedBrief,loadedCreativePitch:e.briefDetails.loadedCreativePitch,loadedPartners:e.partners.loadedPartners,loadedPaymentToken:e.briefDetails.loadedPaymentToken,loadedQuestions:e.briefDetails.loadedQuestions,loadedOwnQuestions:e.briefDetails.loadedOwnQuestions,loadingCreativePitch:e.briefDetails.loadingCreativePitch,loadingPartners:e.partners.loadingPartners,loadingOwnerAcceptedPitch:e.briefDetails.loadingOwnerAcceptedPitch,loadingGeneratedPitch:e.pitchWriter.loadingGeneratedPitch,loadingQuestions:e.briefDetails.loadingQuestions,loadingOwnQuestions:e.briefDetails.loadingOwnQuestions,moreQuestions:e.briefDetails.moreQuestions,ownerAcceptedPitch:e.briefDetails.ownerAcceptedPitch,ownerPendingPitches:e.briefDetails.ownerPendingPitches,paymentToken:e.briefDetails.paymentToken,partners:e.partners.partners,portfolio:(0,Te.fromJS)(e.portfolio),postingQuestion:e.briefDetails.postingQuestion,publicQuestionEntities:e.entities.publicQuestions,questionPagesLoaded:e.briefDetails.questionPagesLoaded,questions:e.briefDetails.questions,ownQuestions:e.briefDetails.ownQuestions,questionText:e.briefDetails.questionText,sendingPitch:e.briefDetails.sendingPitch,sendPitchRoleMismatchError:e.briefDetails.sendPitchRoleMismatchError,totalPendingPitches:e.briefDetails.totalPendingPitches,updatingBrief:e.briefDetails.updatingBrief,voucherEntities:e.entities.vouchers,addingVoucher:e.briefDetails.addingVoucher,updatingPitch:e.briefDetails.updatingPitch,ownCredits:e.auth.ownCredits,entities:e.entities,myPitches:e.pitches.myPitches,suggestedRoles:e.suggestedRoles.suggestedRoles,loadingSuggestedRoles:e.suggestedRoles.loading,loadedSuggestedRoles:e.suggestedRoles.loaded})),{addVoucher:Ae.ow,connectPayPal:Ae.Fe,declinePitch:Ae.cx,deleteBrief:Ae.iF,generatePitch:Le.J,getPaymentToken:Ae.WO,inviteUser:Ae.R2,loadAcceptedPitch:Ae.r3,loadCreativePitch:Ae.PR,loadCredits:Ie.U2,loadOwnCredits:Re.BA,loadOwnQuestions:Ae.Ws,loadPartners:Me.U,loadPendingPitches:Ae.hM,loadQuestions:Ae.zB,postQuestion:Ae.Sh,pushState:Oe.VF,rate:Ze.rW,removeCreativeFromList:Ae.AP,resendContactDetails:Ae.TK,resetBriefDetails:Ae.Eu,sendPitch:Ae.Cj,setSuccessMessage:De.GC,updatePitch:Ae.YQ,updateQuestionText:Ae.h,loadIntros:Ee.t1,loadMyPitches:Be.wJ,loadSuggestedRoles:Ue.zD,loadAuth:Re.zD,saveJob:Qe.PU,unsaveJob:Qe.zg})((rr=class extends r.Component{constructor(e){var t,s;super(e),t=this,this.onConnectPayPal=e=>{if(!this.props.user)return!1;this.props.connectPayPal(this.props.user,e),this.setState({paymentVerificationRequired:!1})},this.getBrief=function(){var e,s,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.props,{encodedId:n}=i,r=null===(e=i.match)||void 0===e||null===(s=e.params)||void 0===s?void 0:s.id,o=n||(r?r.split("-")[0]:null);return(0,a.U2)(i.entities,["briefs",(0,a.U2)(i.briefs,[o,"id"])],null)},this.getBriefOld=()=>(0,a.U2)(this.props.entities,["briefs",this.props.brief]),this.getOwner=()=>this.getBrief()?(0,a.U2)(this.props.entities,["users",this.getBrief()&&this.getBrief().user]):null,this.getOwnerOld=()=>this.getBrief()?(0,a.U2)(this.props.entities,["users",this.getBrief().user]):null,this.getAcceptHireAB=()=>0!==this.getBrief().budget&&this.props.user&&this.props.user.id%2==1?"b":"a",this.getPaymentToken=()=>
1{if(!this.props.user)return!1;this.props.getPaymentToken(this.props.user,"braintree")},this.getDepositAmounts=()=>[{label:"80%",value:80},{label:"50%",value:50}],this.getDeleteReasons=()=>{var e=["Found someone elsewhere","Not enough or no pitches","Poor quality pitches"];return this.getBrief().amount&&0!==this.getBrief().amount&&e.push("Commission rate"),e.push("I'm reposting this brief"),e.push("Other"),e},this.getInvitedUserIds=()=>(0,a.U2)(this.getBrief(),["invites","invites"],[]).map((e=>(0,a.U2)(this.props.entities,["invites",e,"user_id"]))),this.isPageLoaded=()=>!this.props.user||this.props.loadedCreativePitch&&(!this.props.creativePitch||this.props.creativePitch&&(""===this.props.creativePitch.accepted_at||""!==this.props.creativePitch.accepted_at)),this.isBriefRelevant=()=>this.isPageLoaded()&&(this.getBrief().active||this.props.creativePitch),this.handlePitchUpdate=(e,t,s)=>{this.props.updatePitch(e,t,s)},this.handleDeleteReasonChange=e=>{this.setState({deleteReasonId:e})},this.handleResendContactDetails=()=>{this.props.resendContactDetails(this.props.creativePitch.id)},this.handleViewPitches=()=>{document.getElementById("pendingPitches").scrollIntoView()},this.handleSendPitch=()=>{var{availability:e,availabilityToggle:t,dayRate:s,dayRateCurrency:i,pitchAmount:n,pitchDeposit:r,pitchError:o,pitchText:a,locationCheckbox:l,confirmationCheckbox:c,shareResumeCheckbox:d}=this.state;if(!this.props.user)return"undefined"!=typeof sessionStorage&&sessionStorage.setItem("pitch_".concat(this.props.match.params.id),JSON.stringify({availability:e,pitchText:a,pitchAmount:n,pitchDeposit:r})),void(document.location="/signin?referer=".concat(encodeURIComponent("/projects/".concat(this.props.match.params.id))));var h={};a&&String(a).trim()?mr(a)||(h.pitchText="Please enter an application of at least 100 characters (links don't count)"):h.pitchText="Please enter a personalized application",this.getBrief().remote||l||(h.locationCheckbox="Please only pitch if you are available in this location"),this.getBrief().amount&&0!==this.getBrief().amount&&((""===n||n<0||null===n)&&(h.pitchAmount="Please enter a valid price for your work"),n>0&&n<25&&(h.pitchAmount="Please quote a minimum ".concat(25)),c.terms||(h.termsConfirmation="Please check the above box to indicate agreement with our terms.")),0===Object.keys(h).length?(this.props.sendPitch(this.props.brief,a,[],n,n?r:null,null,1===t&&e?e:null,i,s,d),"undefined"!=typeof sessionStorage&&sessionStorage.removeItem("pitch_".concat(this.props.match.params.id))):this.setState({pitchError:Object.assign({},o,h)})},this.isBriefExternal=()=>this.getBrief().external,this.handleEditPitch=()=>{var{editingPitchAmount:e,editingPitchDays:t,editingPitchDeposit:s,pitchError:i,editingPitchText:n}=this.state,r={};mr(n)||(r.pitchText="Please enter an application of at least 100 characters (links don't count)"),0===Object.keys(r).length?this.props.updatePitch(this.props.creativePitch.id,e,s,t,n):this.setState({pitchError:Object.assign({},i,r)})},this.handleInviteUser=e=>{this.props.inviteUser(this.props.user,e,this.getBrief())},this.handleRating=function(e,s,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";t.props.rate(e,s,i,n)},this.handleShowRelevantProjectsSelector=()=>{this.props.user?this.setState({showRelevantProjectsSelector:!0}):document.location="/signin?referer=".concat(encodeURIComponent("/projects/".concat(this.props.match.params.id)))},this.showRatingDialog=()=>{this.setState({showRatingDialog:!this.state.showRatingDialog})},this.checkUtmCampaigns=e=>["user-collaboration-followup-no-pitches-1","user-collaboration-pending-pitches","user-collaboration-pitch-accepted-buyer","user-collaboration-pitch-accepted-followup-get-update","user-collaboration-pitch-accepted-followup-no-contact-buyer-b","user-collaboration-pitch-accepted-followup-no-contact-buyer","user-collaboration-pitch-completed-buyer","user-collaboration-pitch-payment-received-confirmation","user-collaboration-pitch-rate","user-collaboration-public-question-posted","user-new-message-simple"].indexOf(e)>-1,this.handleAddVoucher=e=>{this.props.addVoucher(this.getBrief().id,e).then((()=>this.props.setSuccessMessage("Voucher Added")))},this.handleLocationCheckboxClick=()=>{this.setState({locationCheckbox:!this.state.locationCheckbox})},this.handleShareResumeCheckboxClick=()=>{this.setState({shareResumeCheckbox:!this.state.shareResumeCheckbox})},this.handleConfirmationCheckboxClick=e=>{var{confirmationCheckbox:t,pitchError:s}=this.state,i=br({},t);if(i[e]=!t[e],i.terms&&s&&s.termsConfirmation){var n=br({},s);delete n.termsConfirmation,this.setState({pitchError:n})}this.setState({confirmationCheckbox:i})}
1,this.authUserWasInvited=()=>this.getInvitedUserIds().includes(this.props.user.id),this.importLastPitch=jr((function*(){var e,{loadMyPitches:s,myPitches:i,user:n}=t.props,{pitchError:r}=t.state;0===Object.keys(i).length&&(yield s(null==n?void 0:n.id,null,1));var o=null===(e=Object.values(i).shift())||void 0===e?void 0:e.text;if(r&&r.pitchText){var a=br({},r);delete a.pitchText,t.setState({pitchError:a})}t.setState({pitchText:null==o?void 0:o.split(/Related Projects:|Attached links:/gim)[0]})})),this.getPortfolioRoles=()=>{var e,t,{portfolio:s,entities:i,user:n}=this.props,r=null===(e=s.toObject()[n.username])||void 0===e?void 0:e.toObject(),o=r?null===(t=r.credits)||void 0===t?void 0:t.toJS():[],a=[],l=[];return Object.keys(i.credits).map((e=>{var t=i.credits[e];null!=o&&o.includes(t.id)&&t.roles.forEach((e=>a.push(e)))})),Object.keys(i.roles).map((e=>{var t=i.roles[e];a.includes(t.id)&&l.push(t)})),l},this.briefIsExpired=e=>!!h()().isAfter(e),this.onSelectProject=(e,t)=>{this.setState((s=>{var i,n,{selectedRelevantProjects:r,pitchText:o}=s;if(r.includes(e)){i=r.filter((t=>e!==t));var a=new RegExp("\\n?".concat(t,"\n"),"g");n=o.replace(a,""),0===i.length&&(n=n.replace("**Related Projects:**","")),n=n.trim()}else i=[...r,e],n=0===r.length?"".concat(o,"\n\n**Related Projects:**\n\n").concat(t,"\n"):"".concat(o,"\n").concat(t,"\n");return{selectedRelevantProjects:i,pitchText:n}}))},this.handleGeneratePitch=()=>{var e=this.getBrief(),t=this.getOwner(),s={name:this.props.user.displayname,featuredRoles:this.props.user.featured_roles,location:this.props.user.location.text,bio:this.props.user.bio,jobDescription:e.spec,companyName:t.displayname,type:"pitch"};this.props.generatePitch(s)},this.handleBookmarkClick=()=>{var{saveJob:e,unsaveJob:t}=this.props,s=this.getBrief();s&&s.id&&(this.state.isSaved?(t(s.id),(0,si.L9)("user-unsaved-job",{userId:this.props.user?this.props.user.id:"Guest",briefId:s.id,page:"job details"}),this.setState({isSaved:!1})):(e(s.id),(0,si.L9)("user-saved-job",{userId:this.props.user?this.props.user.id:"Guest",briefId:s.id,page:"job details"}),this.setState({isSaved:!0})))};var i=this.getBrief();this.state={availability:e.user&&e.user.available_at&&h()().isBefore(e.user.available_at)?e.user.available_at:null,availabilityToggle:e.user&&e.user.available_at&&h()().isBefore(e.user.available_at)?1:0,dayRateCurrency:e.user&&e.user.day_rate_currency?e.user.day_rate_currency:"usd",dayRate:e.user&&e.user.day_rate?e.user.day_rate:0,isSaved:i&&i.saved_by_current_user||!1,paymentVerificationRequired:!0,showCompleteAndRateConfirmation:!1,showDeleteConfirmation:!1,deleteReasonId:0,showPaymentConfirmation:!1,showPitchSubmittedModal:!1,showRatingDialog:!1,showShareDialog:!1,showRelevantProjectsSelector:!1,pitchAmount:null,pitchDeposit:80,pitchError:{},pitchText:"",pitchDays:null,editingPitch:!1,editingPitchAmount:null,editingPitchDays:null,editingPitchDeposit:0,editingPitchText:"",pitchAgain:!1,askingQuestion:!1,editingBrief:!1,selectedRelevantProjects:[],locationCheckbox:!1,confirmationCheckbox:{terms:!1},shareResumeCheckbox:!(!e.user||!e.user.has_resume),testingPartners:null!==(s=e.location.query.testing)&&void 0!==s&&s}}componentDidMount(){var{history:e,match:t,location:s,loadedQuestions:i,loadingQuestions:n,loadQuestions:r,loadCredits:o,loadPartners:a,loadAcceptedPitch:l,loadCreativePitch:c,loadedOwnQuestions:d,loadingOwnQuestions:p,loadOwnQuestions:u,user:m}=this.props,g=this.getBrief();g&&void 0!==g.saved_by_current_user&&this.setState({isSaved:g.saved_by_current_user});var j,x=!!this.getBrief()&&this.getBrief().id;(m||"email"!==s.query.utm_source||e.push("/signin?referer=".concat(encodeURIComponent("/projects/".concat(t.params.id)))),i||n||!x||r(x,!(!m||!this.getOwner()||m.id!==this.getOwner().id)&&null),a("external",this.state.testingPartners),m&&(this.getOwner()&&m.id===this.getOwner().id&&x?l(x):m&&this.getOwner()&&m.id!==this.getOwner().id&&(x&&c(m.id,x),o(m.username,1,!0),this.props.loadIntros()),this.getOwner()&&m.id!==this.getOwner().id&&!d&&!p&&x&&u(m.id,x,!0)),x)&&(((e,t)=>{var s=ri().load(T.v0)||[],i={id:e,url:t};(s=s.filter((t=>
1t.id!==e))).unshift(i),s.length>5&&(s=s.slice(0,5));var n=new Date(Date.now()+2592e6);ri().save(T.v0,s,{path:"/",expires:n})})(x,"/projects/".concat(t.params.id)),(0,si.L9)("user-lands-on-job",{jobExternal:this.getBrief().external,role:this.getBrief().role,skill:this.getBrief().skill,jobRemote:this.getBrief().remote,jobLocation:this.getBrief().location,loggedIn:!!m,userType:m?m.type:"guest",userIsPro:m?m.pro:"guest",jobMonth:h()(this.getBrief().timestamp).format("YYYY-MM")}));(0,ar.S_)({user:this.props.user,locationSearch:(null===(j=this.props.location)||void 0===j?void 0:j.search)||"",reloadAuth:this.props.loadAuth});var{loadSuggestedRoles:b,loadedSuggestedRoles:f,loadingSuggestedRoles:v}=this.props;f||v||b()}UNSAFE_componentWillReceiveProps(e){var t,s,i,n;this.props.sendingPitch&&!e.sendingPitch&&!this.props.creativePitch&&e.creativePitch&&(this.setState({showPitchSubmittedModal:!0}),(0,si.L9)("freelancer-application-submitted",{briefId:null===(t=this.getBrief())||void 0===t?void 0:t.id,role:null===(s=this.getBrief())||void 0===s?void 0:s.role}),this.props.willUseCredits&&(0,si.L9)("payg-credit-consumed"),this.props.loadAuth(),this.props.loadIntros());this.props.sendingPitch&&!e.sendingPitch&&this.state.pitchAgain&&(this.setState({pitchAgain:!1}),e.creativePitch&&(0,si.L9)("freelancer-application-submitted",{briefId:null===(i=this.getBrief())||void 0===i?void 0:i.id,role:null===(n=this.getBrief())||void 0===n?void 0:n.role}));if(this.props.updatingPitch&&!e.updatingPitch&&this.setState({editingPitch:!1}),"undefined"!=typeof sessionStorage&&void 0!==sessionStorage["pitch_".concat(this.props.match.params.id)]){var r=JSON.parse(sessionStorage["pitch_".concat(this.props.match.params.id)]);this.setState({pitchText:r.pitchText,pitchAmount:r.pitchAmount,pitchDeposit:r.pitchDeposit})}this.props.loadingCreativePitch&&!e.loadingCreativePitch&&!this.props.creativePitch&&this.getBrief().amount>0&&this.setState({pitchAmount:this.getBrief().amount/100}),this.props.postingQuestion&&!e.postingQuestion&&this.setState({askingQuestion:!1})}UNSAFE_componentWillUpdate(){this.getBrief()&&""===this.getBrief().approved_at&&"invite"===this.props.match.params.subsection&&this.props.history.push(location.pathname.replace("/invite",""))}componentDidUpdate(e){e.generatedPitch!==this.props.generatedPitch&&this.props.generatedPitch&&this.setState((e=>({pitchText:this.props.generatedPitch,pitchError:Object.assign({},e.pitchError,{pitchText:null})}))),!this.getBrief(e)&&this.getBrief()&&(0,si.L9)("user-lands-on-job",{jobExternal:this.getBrief().external,role:this.getBrief().role,skill:this.getBrief().skill,jobRemote:this.getBrief().remote,jobLocation:this.getBrief().location,loggedIn:!!this.props.user,userType:this.props.user?this.props.user.type:"guest",userIsPro:this.props.user?this.props.user.pro:"guest",jobMonth:h()(this.getBrief().timestamp).format("YYYY-MM")})}componentWillUnmount(){this.props.resetBriefDetails()}render(){var e,t,s=this.getBrief(),i=this.getOwner(),{availability:n,availabilityToggle:r,dayRateCurrency:o,dayRate:d,isSaved:h,showCompleteAndRateConfirmation:g,showDeleteConfirmation:j,deleteReasonId:x,showPaymentConfirmation:b,showPitchSubmittedModal:v,showRatingDialog:P,pitchAmount:N,pitchDeposit:C,pitchError:S,pitchText:O,editingPitch:T,editingPitchAmount:R,editingPitchDays:D,editingPitchDeposit:A,editingPitchText:E,pitchAgain:L,selectedRelevantProjects:Z,showRelevantProjectsSelector:B,askingQuestion:I}=this.state,{user:M,history:U,creativePitch:Q,deletingBrief:F,entities:z,introsLeft:H,introsLoading:q,applicationCreditsRemaining:W,willUseCredits:Y,loadedBrief:G,loadingGeneratedPitch:J,ownerAcceptedPitch:V,ownCredits:X,sendingPitch:K,updatingPitch:$,loadedPartners:ee,partners:te}=this.props,se=this.props.location.query.utm_campaign||null;if(!s)return(0,we.jsx)(Fe.Z,{className:"mt++",children:(0,we.jsx)(p.Z,{children:(0,we.jsx)(u.Z,{xs:12,children:(0,we.jsx)(ze.Z,{className:"text-center",bsStyle:"danger",children:" "})})})});var ie=s.skill;"Branding"===ie?ie="Brand Design":"Copywriting"===ie&&(ie="Copywriter");var ne=i.displayname.match(/user[0-9]+/i)?"A client":i.displayname,re=s.text+" freelance job | Twine",oe=ne+(""!==s.role?" is looking for a"+((0,a.RB)(s.role)?"n ":" ")+s.role:" needs a"+((0,a.RB)(s.role)?"n ":" ")+ie)+": "+s.text,ae=s.location.split(", "),le=ae.length>1?ae[1]:ae[0],ce=ae.length>1?ae[0]:null,de=ce?"/jobs/".concat((0,a.H6)(s.role),"/in/").concat((0,a.H6)(le),"/").concat((0,a.H6)(ce)):"/jobs/".concat((0,a.H6)(s.role),"/in/").concat((0,a.H6)(le));return(0,we.jsxs)("div",{className:"mt++",children:[(0,we.jsx)(ke.Z,{title:re,link:[{rel:"canonical",href:s.links.main}],meta:[{name:"description",content:oe},{property:"og:title",content:re},{property:"og:description",content:oe},{property:"og:url",content:s.links.main},{property:"og:image",content:i.avatars.images[190].square.main},{name:"twitter:title",content:re},{name:"twitter:description",content:oe},{name:"twitter:image",content:i.avatars.images[190].square.main}]}),(0,we.jsxs)(Fe.Z,{children:[(0,we.jsx)(p.Z,{children:(0,we.jsx)(u.Z,{xs:12,children:(0,we.jsxs)(c.Z,{className:"mb++ ".concat(bn),children:[(M&&M.id!==i.id||!M)&&(s.amount&&0!==s.amount?(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(l.Link,{to:"/jobs",className:bn,children:"Find Freelance Jobs"}),(0,we.jsx)("span",{className:"ml mr",children:">"}),(0,we.jsxs)(l.Link,{to:"/jobs/".concat((0,a.H6)(s.role)),className:bn,children:[s.role," Jobs"]}),s.location&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("span",{className:"ml mr",children:">"}),(0,we.jsxs)(l.Link,{to:de,className:bn,children:[s.role," Jobs in ",null!=ce?ce:le]})]})]}):(0,we.jsx)(l.Link,{to:"/collaborate",children:"Collaborate"})),M&&M.id===i.id&&(0,we.jsx)(l.Link,{to:"/ats",children:"Manage Jobs"}),"Job Details"]}
1)})}),!M&&se&&this.checkUtmCampaigns(se)&&(0,we.jsxs)(ze.Z,{bsStyle:"success",className:"text-center lato-regular fs-18 pl pr",children:[(0,we.jsx)("span",{className:"mr ml",children:"Is this your project?"}),(0,we.jsx)(m.Z,{bsStyle:"success",bsSize:"lg",href:"/signin",className:"lato-bold",children:"Sign in to see your pitches"})]}),(0,we.jsxs)(p.Z,{children:[(0,we.jsxs)(u.Z,{lg:5,xsHidden:M&&i&&M.id===i.id,children:[(!M||M.id!==i.id)&&(0,we.jsx)(gs,{brief:s,owner:i,user:this.props.user,isExpired:this.briefIsExpired(s.expires_at),isExternal:this.isBriefExternal(),onBookmarkClick:this.handleBookmarkClick,isSaved:h}),(0,we.jsx)("br",{}),V&&(0,we.jsxs)("div",{children:[(0,we.jsx)("strong",{className:"mt",children:"Hired:"}),(0,we.jsx)("br",{}),(0,we.jsx)("br",{}),(0,we.jsx)(ki,{brief:s,pitch:V,acceptHireAB:this.getAcceptHireAB(),paymentVerificationRequired:!(V.deposit>0)&&this.state.paymentVerificationRequired})]}),this.isBriefRelevant()&&!this.isBriefExternal()&&M&&i.id!==M.id&&(!Q||""===Q.accepted_at)&&(!Q||L)&&(0,we.jsx)(Ui,{askingQuestion:I,onAskQuestion:e=>this.setState({askingQuestion:e}),questions:this.props.questions.map((e=>this.props.publicQuestionEntities[e])),ownQuestions:this.props.ownQuestions.map((e=>this.props.publicQuestionEntities[e])),loadingQuestions:this.props.loadingQuestions,loadedQuestions:this.props.loadedQuestions,moreQuestions:this.props.moreQuestions,onLoadMore:()=>this.props.loadQuestions(this.props.brief,!(!M||!i||M.id!==i.id)&&null,this.props.questionPagesLoaded+1),postingQuestion:this.props.postingQuestion,questionText:this.props.questionText,onUpdateQuestionText:e=>this.props.updateQuestionText(e.target.value),onPostQuestion:()=>this.props.postQuestion(this.props.brief,this.props.questionText),loggedIn:!!M,isOwner:M&&i&&M.id===i.id,onEdit:e=>this.props.pushState(this.props.location.pathname+"/questions/"+e)})]}),(0,we.jsxs)(u.Z,{lg:7,id:"jobDetailsPitchSection",children:[!this.isPageLoaded()&&!(M&&M.id===i.id&&G)&&(0,we.jsx)("div",{className:"mt",children:(0,we.jsx)(ti.Z,{loading:!0})}),this.isPageLoaded()&&!this.isBriefRelevant()&&(0,we.jsx)(zn,{briefRole:""===this.getBrief().role?this.getBrief().skill:this.getBrief().role,loggedIn:!!M}),!M&&this.isBriefRelevant()&&(0,we.jsx)(In,{isExternal:this.isBriefExternal(),popularityWarning:s&&s.num_of_pitches>=1}),(0,we.jsxs)("div",{children:[this.props.sendPitchRoleMismatchError&&(0,we.jsxs)(ze.Z,{bsStyle:"danger",children:[this.props.sendPitchRoleMismatchError," ",(0,we.jsx)("a",{href:"".concat(M&&M.links&&M.links.main_relative,"?highlight=portfolio-roles"),children:"Update your featured roles"})]}),this.isBriefRelevant()&&!this.isBriefExternal()&&M&&i.id!==M.id&&(!Q||""===Q.accepted_at)&&(!Q||L)&&(0,we.jsx)(mi,{availability:n,availabilityToggle:r,authUserWasInvited:this.authUserWasInvited(),briefCurrency:this.getBrief().currency||"",briefId:this.getBrief().id,jobRole:this.getBrief().role||null,briefRole:""===this.getBrief().role?this.getBrief().skill:this.getBrief().role,suggestedRoles:this.props.suggestedRoles||[],loadingSuggestedRoles:this.props.loadingSuggestedRoles||!1,briefPaid:this.getBrief().amount&&0!==this.getBrief().amount,briefRemote:this.getBrief().remote,briefLocation:this.getBrief().location,briefNoPitchLimits:this.getBrief().no_pitch_limits||!1,locationCheckbox:this.state.locationCheckbox,onLocationCheckboxClick:this.handleLocationCheckboxClick,shareResumeCheckbox:this.state.shareResumeCheckbox,onShareResumeCheckboxClick:this.handleShareResumeCheckboxClick,onConfirmationCheckboxClick:this.handleConfirmationCheckboxClick,creativeJob:(0,a.o4)(""===this.getBrief().role?this.getBrief().skill:this.getBrief().role),creditsRoles:this.getPortfolioRoles(),dayRate:d,dayRateCurrency:o,depositAmounts:this.getDepositAmounts(),loadingPitch:!1,introsLeft:H,introsLoading:q,applicationCreditsRemaining:W,willUseCredits:Y,pitchAmount:N||"",pitchDeposit:C,pitchError:S,pitchText:O,onChangeAvailability:e=>this.setState({availability:e}),onChangeAvailabilityToggle:e=>this.setState({availabilityToggle:e}),onChangeDayRate:e=>this.setState({dayRate:e}),onChangeDayRateCurrency:e=>this.setState({dayRateCurrency:e}),onChangePitchAmount:e=>this.setState({pitchAmount:e,pitchError:Object.assign({},S,{pitchAmount:null})}),onChangePitchDeposit:e=>this.setState({pitchDeposit:e,pitchError:Object.assign({},S,{pitchDeposit:null})}),onChangePitchText:e=>this.setState({pitchText:e,pitchError:Object.assign({},S,{pitchText:null})}),loadingGeneratedPitch:J,onGeneratePitch:()=>this.handleGeneratePitch(),onImportLastPitch:()=>this.importLastPitch(),onShowRelevantProjectsSelector:()=>this.handleShowRelevantProjectsSelector(),onSubmitPitch:()=>this.handleSendPitch(),relevantProjects:Z.map((e=>z.projects[e])),submittedPitch:Q,submittingPitch:K,totalPitches:this.getBrief().num_of_pitches_or_pending_pitches,user:M,onAttachUpload:()=>this.setState({showRelevantProjectsSelector:!0})},1),this.isBriefRelevant()&&!this.isBriefExternal()&&(!M||i.id!==M.id&&(!Q||""===Q.accepted_at))&&Q&&!L&&(0,we.jsx)(Es,{authUserWasInv
1ited:this.authUserWasInvited(),briefRole:""===this.getBrief().role?this.getBrief().skill:this.getBrief().role,isPaidBrief:this.getBrief().amount&&0!==this.getBrief().amount,currency:this.getBrief().currency||"usd",contactOptions:i.contact_options,depositAmounts:this.getDepositAmounts(),shouldOpenEditing:this.props.location.query.editPitch,editing:T,editingPitchAmount:R,editingPitchDays:D,editingPitchDeposit:A,editingPitchText:E,onChangePitchAmount:e=>this.setState({editingPitchAmount:e,pitchError:Object.assign({},S,{pitchAmount:null})}),onChangePitchDays:e=>this.setState({editingPitchDays:e}),onChangePitchDeposit:e=>this.setState({editingPitchDeposit:e,pitchError:Object.assign({},S,{pitchDeposit:null})}),onChangePitchText:e=>this.setState({editingPitchText:e,pitchError:Object.assign({},S,{pitchText:null})}),onEdit:()=>this.setState({editingPitch:!0,editingPitchAmount:Q.budget/100,editingPitchDeposit:Q.deposit,editingPitchText:Q.text,pitchError:{},editingPitchDays:Q.days_to_complete?Q.days_to_complete:null,editingPitchAvailability:Q.available_at,editingDayRate:Q.day_rate,editingDayRateCurrency:Q.day_rate_currency}),onEditSave:()=>this.handleEditPitch(),onEditCancel:()=>this.setState({editingPitch:!1}),onPitchAgain:()=>this.setState({pitchAgain:!0,pitchText:Q.text,pitchAmount:Q.budget/100,pitchDeposit:Q.deposit,pitchDays:Q.days_to_complete?Q.days_to_complete:null}),onResendContactDetails:()=>this.handleResendContactDetails(),owner:i,pitch:Q,pitchError:S,savingEdit:$,user:M}),this.isBriefRelevant()&&!this.isBriefExternal()&&Q&&""!==Q.accepted_at&&""===Q.completed_at&&(0,we.jsxs)("div",{className:nn,children:[(0,we.jsx)("div",{className:rn,children:"You've been hired!"}),(0,we.jsxs)("p",{className:on,children:[(0,we.jsx)("span",{children:"Discuss the job with your client"}),(0,we.jsxs)("span",{className:"ml- ".concat(ln),children:[(0,we.jsx)("span",{className:cn,children:(0,we.jsx)(y.Z,{icon:"bubble",color:"#40a0f5",size:"14"})}),(0,we.jsx)(l.Link,{to:"/messages/".concat(z.users[Object.keys(z.users)[0]].username),className:dn,children:"Messages"})]})]}),(0,we.jsxs)("p",{className:on,children:[(0,we.jsx)("span",{children:"Request a payment from the client"}),(0,we.jsx)(m.Z,{bsStyle:"success",className:an,href:"/manage/pitches/".concat(Q.id,"/new-bill"),children:"New Bill"})]})]}),this.isBriefRelevant()&&!this.isBriefExternal()&&Q&&""!==Q.accepted_at&&""!==Q.completed_at&&(0,we.jsxs)("div",{className:nn,children:[(0,we.jsx)("div",{className:rn,children:"The client has ended this hire."}),(0,we.jsxs)("p",{className:on,children:[(0,we.jsx)("span",{children:"Please contact them to re-hire you if you have further bills."}),(0,we.jsxs)("span",{className:"ml- ".concat(ln),children:[(0,we.jsx)("span",{className:cn,children:(0,we.jsx)(y.Z,{icon:"bubble",color:"#40a0f5",size:"14"})}),(0,we.jsx)(l.Link,{to:"/messages/".concat(z.users[Object.keys(z.users)[0]].username),className:dn,children:"Messages"})]})]})]}),this.isBriefRelevant()&&!this.isBriefExternal()&&Q&&""!==Q.accepted_at&&!s.amount&&(0,we.jsx)(Ss,{paid:!(!s.amount||0===s.amount),pitch:Q,sentFinalFiles:!1,onSendFiles:()=>{}})]}),this.isBriefExternal()&&M&&!this.briefIsExpired(s.expires_at)&&(0,we.jsxs)(f.Z,{className:hn,children:[(0,we.jsx)("div",{className:un,children:(0,we.jsxs)("div",{className:mn,children:["External Job",(0,we.jsx)(He.Z,{className:xn,glyph:"share"})]})}),(0,we.jsxs)("div",{className:pn,children:[(0,we.jsx)("p",{children:"External jobs are hosted and applied for outside of Twine."}),(0,we.jsxs)("p",{className:"aside-text",children:["Source: ",new URL(this.getBrief().external_url).hostname]})]}),(0,we.jsx)("div",{className:gn,onClick:()=>(0,si.L9)("external-job-click-apply"),children:(0,we.jsx)("div",{children:(0,we.jsxs)(m.Z,{rel:"nofollow",bsStyle:"primary",bsSize:"large",href:this.getBrief().external_url,target:"blank",children:[(0,we.jsx)("span",{children:"Apply"})," ",(0,we.jsx)(He.Z,{className:xn,glyph:"share"})]})})}),(0,we.jsxs)("div",{className:jn,children:[(0,we.jsx)("p",{className:"mt",children:(0,we.jsx)("strong",{children:"Tired of writing cover letters?"})}),(0,we.jsxs)("p",{children:["Use Twine's AI writer ✨ for cover letters, proposals and pitches."," ",(0,we.jsx)("a",{href:"/freelance/cover-letter-proposal-writing-tool",children:"Try it out"})]})]})]}),(this.isBriefExternal()||this.briefIsExpired(s.expires_at))&&ee&&(0,we.jsx)("div",{children:(0,we.jsx)(fn.Z,{loadedPartners:ee,partners:te,userLocation:null!==(e=null==M||null===(t=M.location)||void 0===t?void 0:t.text)&&void 0!==e?e:null})}),!M&&(0,we.jsx)(Kn,{}
1),(!M||!1===M.pro)&&(0,we.jsx)(or.Z,{user:M,alwaysShow:!0,compactButtons:!0}),(0,we.jsx)(ir,{briefId:this.getBrief().id,role:this.getBrief().role,skill:this.getBrief().skill,user:M,country:le,city:ce,locationWithRoleLink:de})]})]})]}),(0,we.jsxs)(w.Z,{animation:"scale",show:j,onExit:()=>this.setState({showDeleteConfirmation:!1,deleteReasonId:0}),children:[(0,we.jsx)("div",{className:"text-center",style:{fontSize:"500%",margin:0},children:(0,we.jsx)(k.Z,{color:"#f0ad4e",icon:""})}),(0,we.jsx)("p",{className:"text-center",children:"Deleting this brief will decline all pitches"}),(0,we.jsx)("p",{className:"text-center mt++ mb",children:"Please tell us why you are deleting the brief"}),(0,we.jsx)("div",{className:"center",style:{display:"table"},children:this.getDeleteReasons().map(((e,t)=>(0,we.jsx)(qe.Z,{onChange:()=>this.handleDeleteReasonChange(t+1),checked:x===t+1,children:e},"delete_reason_"+t)))}),(0,we.jsxs)("p",{className:"text-center mt++",children:[(0,we.jsx)(m.Z,{disabled:0===x||F,style:{marginRight:"10px"},bsStyle:"warning",onClick:()=>this.handleDeleteBrief(!0),children:F?"Deleting...":"Delete"}),(0,we.jsx)(m.Z,{disabled:F,style:{marginLeft:"10px"},bsStyle:"info",onClick:()=>this.setState({showDeleteConfirmation:!1,deleteReasonId:0}),children:"Cancel"})]})]}),(0,we.jsx)(_.Z,{confirmButtonText:"Confirm",icon:"success",onCancel:()=>this.setState({showPaymentConfirmation:!1}),onConfirm:()=>U.push("/manage/briefs/pay/".concat(s.id,"/").concat(V.id)),show:b,text:"Are you ready to send payment for this project?",theme:"success"}),V&&(0,we.jsxs)(w.Z,{show:g,onExit:()=>this.setState({showCompleteAndRateConfirmation:!1}),children:[(0,we.jsx)("div",{style:{textAlign:"center",fontSize:"700%",margin:0},children:(0,we.jsx)(k.Z,{color:"#0fe2af",icon:""})}),(0,we.jsx)("p",{style:{textAlign:"center",fontSize:"200%"},children:(0,we.jsx)("strong",{children:"Complete and rate?"})}),(0,we.jsx)("p",{style:{textAlign:"center",fontSize:"130%"},children:"Are you ready to mark this project as complete and rate your creative?"}),(0,we.jsxs)("p",{className:"text-center mt",children:[(0,we.jsx)(m.Z,{style:{marginRight:50},bsSize:"lg",bsStyle:"info",onClick:()=>this.setState({showCompleteAndRateConfirmation:!1}),children:"Cancel"}),(0,we.jsx)(m.Z,{style:{marginLeft:50},bsSize:"lg",bsStyle:"success",href:"/manage/briefs/thankyou/"+s.id+"/"+V.id,children:"Confirm"})]})]}),(0,we.jsx)(_.Z,{icon:"success",onConfirm:()=>this.setState({showPitchSubmittedModal:!1}),show:v,title:"Your application has been sent and is awaiting review",theme:"success"}),P&&(0,we.jsx)(Xi.Z,{pitch:V,brief:s,user:V.sender,onRated:this.handleRating,onExit:()=>this.setState({showRatingDialog:!1}),subtitle:"How was it working with "+V.sender.displayname+"? Leave a rating now:"}),(0,we.jsxs)(w.Z,{onEnter:()=>{!this.props.user||this.props.ownCredits.loaded||this.props.ownCredits.loading||this.props.loadOwnCredits(this.props.user.id)},show:B,title:"Select relevant examples",closeButton:!0,onExit:()=>this.setState({showRelevantProjectsSelector:!1}),children:[(0,we.jsx)(Vi,{loadingProjects:X.loading,onSelectProject:this.onSelectProject,projects:X.credits.length>0&&void 0!==X.credits[0]?X.credits.map((e=>z.projects[z.credits[e].project])):[],selectedProjects:Z}),!X.loading&&X.more&&(0,we.jsx)(m.Z,{className:Ki,bsSize:"sm",bsStyle:"info",onClick:()=>this.props.loadOwnCredits(M.id,X.pagesLoaded+1),children:"Load more"}),(0,we.jsx)("div",{className:$i,children:(0,we.jsx)(m.Z,{bsStyle:"primary",className:en,onClick:()=>this.setState({showRelevantProjectsSelector:!1}),children:(0,we.jsxs)("div",{className:tn,children:[(0,we.jsx)("span",{className:sn,children:"Attach "}),(0,we.jsx)(y.Z,{icon:"Paper_clip_font_awesome",size:"20"})]})})})]})]})}},rr.propTypes={answerQuestion:n().func,brief:n().number,briefEntities:n().object,user:n().object,userEntities:n().object,connectPayPal:n().func,creativePitch:n().object,declinePitch:n().func,deleteBrief:n().func,deletingBrief:n().bool,encodedId:n().string,entities:n().object,generatePitch:n().func,generatedPitch:n().string,getPaymentToken:n().func,history:n().object,introsLeft:n().number,introsLoading:n().bool,loadIntros:n().func,applicationCreditsRemaining:n().number,willUseCredits:n().bool,inviteUser:n().func,loadAcceptedPitch:n().func,loadCreativePitch:n().func,loadCredits:n().func,loadPartners:n().func,loadedBrief:n().bool,loadedCreativePitch:n().bool,loadedPartners:n().bool,loadedPaymentToken:n().bool,loadedQuestions:n().bool,loadedOwnQuestions:n().bool,loadingCreativePitch:n().bool,loadingGeneratedPitch:n().bool,loadingIndividualQuestion:n().bool,loadingPartners:n().bool,loadingOwnerAcceptedPitch:n().bool,loadingQuestions:n().bool,loadingOwnQuestions:n().bool,loadPendingPitches:n().func,loadQuestion:n().func,loadQuestions:n().func,loadOwnCredits:n().func,loadOwnQuestions:n().func,location:n().object,moreQuestions:n().bool,ownerAcceptedPitch:n().object,ownerPendingPitches:n().array,ownCredits:n().object,match:n().object,paymentToken:n().string,portfolio:n().object,postingQuestion:n().bool,postQuestion:n().func,publicQuestionEntities:n().object,pushState:n().func,questionPagesLoaded:n().number,questions:n().array,ownQuestions:n().array,questionText:n().string,rate:n().func,removeCreativeFromList:n().func,resendContactDetails:n().func,resetBriefDetails:n().func,sendingPitch:n().bool,sendPitch:n().func,updatePitch:n().func,totalPendingPitches:n().number,updateAnswerText:n().func,updatedAnswerText:n().object,updateQuestionText:n().func,updatingBrief:n().bool,voucherEntities:n().object,addVoucher:n().func,addingVoucher:n().bool,setSuccessMessage:n().func,updatingPitch:n().bool,loadMyPitches:n().func,myPitches:n().object,partners:n().array,saveJob:n().func,unsaveJob:n().func,loadSuggestedRoles:n().func,suggestedRoles:n().array,loadingSuggestedRoles:n().bool,loadedSuggestedRoles:n().bool,sendPitchRoleMismatchError:n().string},nr=rr))||nr,yr=s("./src/containers/NotFound/NotFound.js");const _r="_3oEGQBXZ";var wr=e=>{var{onAnswer:t,postingAnswer:s,question:i}=e,[n,o]=(0,r.useState)(!1),[a,l]=(0,r.useState)(i.answer);(0,r.useEffect)((()=>{i.answer!==a&&o(!1)}),[i.answer]);var c=()=>{o(!0)};return(0,we.jsxs)(f.Z,{className:_r,children:[(0,we.jsxs)("p",{children:[(0,we.jsxs)("strong",{children:["Q: ",i.question]})," ",i.answer&&!n?(0,we.jsxs)("em",{children:["-"," ",(0,we.jsx)("a",{onClick:c,title:"Edit answer",children:"edit answer"})]}):""]}),(0,we.jsxs)("p",{children:["A:"," ",i.answer?i.answer:(0,we.jsxs)("em",{children:["Not answered yet."," ",!n&&(0,we.jsx)("a",{onClick:c,title:"Answer now",children:"Answer now"})]})]}),n&&(0,we.jsxs)("div",{children:[(0,we.jsx)("textarea",{rows:"4",className:"form-control",maxLength:"1000",placeholder:"Enter your answer and click Save",disabled:s,value:a,onChange:e=>{l(e.target.value)}}),a.length>800&&(0,we.jsx)("div",{children:(0,we.jsxs)("em",{children:["Characters left: ",1e3-a.length]})}),(0,we.jsx)(m.Z,{bsStyle:"info",disabled:s,onClick:()=>{o(!1),l(i.answer)},children:"Cancel"}),(0,we.jsx)(m.Z,{bsStyle:"success",disabled:""===a||s,onClick:()=>{t(i,a)},children:"Save"})]})]})};wr.propTypes={onAnswer:n().func,postingAnswer:n().bool,question:n().object};const Pr=wr,Nr="jmM33d9S",Cr="_2ofRjzkt",Sr="_2q8fBbmU";
1const kr=e=>{var{more:t,onAnswer:s,onLoadMore:i,postingAnswers:n=[],loading:r=!1,questions:o=[]}=e;return(0,we.jsxs)("div",{children:[!r&&0===o.length&&(0,we.jsx)("div",{className:Sr,children:"You currently have no public questions"}),o.map((e=>(0,we.jsx)(Pr,{onAnswer:s,postingAnswer:n.includes(e.id.toString()),question:e},e.id))),(0,we.jsx)(ti.Z,{className:Nr,loading:r}),!r&&t&&(0,we.jsx)("em",{className:Cr,children:(0,we.jsx)("a",{onClick:()=>i(),children:"Load more..."})})]})},Or="_2K6Rd0NF",Tr="_3XVwM5g1",Rr="_1EAkDuDN",Dr="_2f76PJSj",Ar="_1VPOSkXL",Er="_3uAaZsQH";function Lr(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function Zr(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}class Br extends r.Component{constructor(){super(...arguments),this.state={expanded:this.props.startExpanded},this.handleExpanded=()=>this.setState({expanded:!this.state.expanded})}render(){var{expanded:e}=this.state,{children:t,expandedStyle:s,title:i,maxHeight:n,mobileOnly:r}=this.props,o=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(s),!0).forEach((function(t){Zr(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Lr(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}({maxHeight:n},s);return(0,we.jsxs)(f.Z,{className:this.props.boxshadow?"box-shadow":"",children:[(0,we.jsxs)("div",{className:"".concat(Or," ").concat(r?Dr:""),onClick:this.handleExpanded,children:[(0,we.jsx)(f.Z.Header,{children:i}),(0,we.jsx)(y.Z,{className:"".concat(Tr," ").concat(e?Rr:""),icon:"chevron-down",size:"18"})]}),e&&(0,we.jsx)("hr",{style:{margin:0}}),(0,we.jsx)("div",{className:"".concat(Ar," ").concat(e?Er:""," ").concat(r?Dr:""),style:e?o:{},children:t})]})}}Br.propTypes={children:n().element,expandedStyle:n().object,maxHeight:n().oneOfType([n().string,n().number]),mobileOnly:n().bool,title:n().oneOfType([n().string,n().element]),startExpanded:n().bool},Br.defaultProps={expandedStyle:{},maxHeight:"",mobileOnly:!1,startExpanded:!1,boxshadow:!1};var Ir=s("./src/components/Shared/LinkOrSpan.js"),Mr=s("./src/components/Rating/Rating.js"),Ur=s("./src/hooks/useAuth.js");const Qr=e=>{var{active:t,user:s}=e,{user:i}=(0,Ur.Z)(),n=s||i,{avatars:r,displayname:o,links:l,rating:c}=n;return(0,we.jsxs)(xi.Z,{children:[(0,we.jsx)("div",{className:"left",style:{marginRight:"10px"},children:(0,we.jsx)(Ir.Z,{active:t,linkProps:{to:l.main_relative,className:"no-decoration"},children:(0,we.jsx)(P.Z,{thumbnails:r,circle:!0,style:{width:"46px",height:"46px"}})})}),(0,we.jsxs)("div",{children:[(0,we.jsx)("div",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:(0,we.jsxs)(Ir.Z,{active:t,linkProps:{to:l.main_relative,className:"no-decoration"},children:[(0,we.jsx)("strong",{children:o}),(0,we.jsx)("span",{style:{marginLeft:"5px"},children:(0,we.jsx)(Ke.Z,{user:n})})]})}),(0,we.jsx)(Mr.Z,{rating:(0,a.iY)(n),className:"fs-18 left"}),c.count>0&&(0,we.jsx)("span",{style:{verticalAlign:"sub",fontSize:"16px"},children:"(".concat(c.count,")")})]})]})},Fr="_3BjmAhUZ";var zr=["expandable","linksActive","freelancers"];function Hr(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function qr(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(s),!0).forEach((function(t){Wr(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Hr(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function Wr(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Yr(e,t){if(null==e)return{};var s,i,n=function(e,t){if(null==e)return{};var s,i,n={},r=Object.keys(e);for(i=0;i<r.length;i++)s=r[i],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)s=r[i],t.indexOf(s)>=0||Object.prototype.propertyIsEnumerable.call(e,s)&&(n[s]=e[s])}return n}class Gr extends r.Component{render(){var e=this.props,{expandable:t,linksActive:s,freelancers:i}=e,n=Yr(e,zr);return t?(0,we.jsx)(Br,{title:"Invited freelancers",children:i.length>0?i.map((e=>(0,we.jsx)("div",{className:Fr,children:(0,we.jsx)(Qr,{active:s,user:e})}))):(0,we.jsx)("noscript",{})}):(0,we.jsxs)(f.Z,qr(qr({},n),{},{children:[(0,we.jsx)(f.Z.Header,{children:"Invited freelancers"}),(0,we.jsx)("hr",{style:{margin:0}}),i.length>0&&i.map((e=>(0,we.jsx)("div",{className:Fr,children:(0,we.jsx)(Qr,{active:s,user:e})})))]}))}}Gr.propTypes={freelancers:n().array,linksActive:n().bool,expandable:n().bool};var Jr=s("./src/redux/modules/selectedRoleCategory.js"),Vr=s("./src/redux/modules/publicQuestions2.js"),Xr=s("./src/redux/modules/briefs2.js");const Kr="_1Bz1sgWE",$r="_1UW2LpEJ",eo="_1b3-L259",to="_1IT85jAW",so="ddlOwrL4",io="_1CdaqsDE";var no,ro,oo=s("./src/helpers/Constants.js");function ao(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,i)}return s}function lo(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};
1t%2?ao(Object(s),!0).forEach((function(t){co(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):ao(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function co(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const ho=(0,o.O)([{promise:e=>{var{store:{dispatch:t,getState:s},match:{params:{id:i}}}=e,n=[],r=i?i.split("-")[0]:null;return r&&!(0,a.U2)(s(),["briefs2",r])&&n.push(t((0,Xr.qb)(r))),Promise.all(n)}}],(e=>({auth:e.auth,briefs:e.briefs2,entities:e.entities,publicQuestions:e.publicQuestions2})),{answerPublicQuestion:Vr.T,decrementTotalPendingQuestions:Xr.bC,loadBrief:Xr.qb,loadPendingPublicQuestions:Xr.oA,loadPublicQuestions:Xr.rR,updateBrief:Xr.nT,updateUser:Re.Vx,updateLocalUser:Re.w4,setSelectedRoleCategory:Jr.Fe,clearSelectedRoleCategory:Jr.yg})((ro=class extends r.Component{constructor(e){var t;super(e),t=this,this.getEncodedId=function(){var e,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.props,{match:i}=s,n=null==i||null===(e=i.params)||void 0===e?void 0:e.id;return n?n.split("-")[0]:null},this.getBrief=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.props,s=t.getEncodedId(e);return(0,a.U2)(e.entities,["briefs",(0,a.U2)(e.briefs,[s,"id"])],null)},this.initLoadPublicQuestions=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],{briefs:s}=t.props,i=t.getEncodedId();!t.getBrief()||(0,a.U2)(s,[i,"loadedPublicQuestions"],!1)||(0,a.U2)(s,[i,"loadingPublicQuestions"],!1)||(e?t.props.loadPendingPublicQuestions(i):t.props.loadPublicQuestions(i))},this.state={invitedFreelancers:(0,a.U2)(this.getBrief(e),["invites","invites"],[]).map((t=>(0,a.U2)(e.entities,["users",(0,a.U2)(e.entities,["invites",t,"user_id"])])))}}componentDidMount(){var{auth:e,briefs:t,match:{params:s},location:i,loadBrief:n,setSelectedRoleCategory:r,history:o}=this.props,l=this.getBrief();if(l&&e.user&&l.user_id===e.user.id&&!s.subsection){var c=document.referrer||"direct",d=window.location.pathname;(0,si.L9)("old_ats_url_visited",{oldUrl:d,referrer:c,briefId:this.getEncodedId(),userType:e.user.type});var h=l.links.ats_main_relative||"/ats/".concat(s.id);o.replace(h)}if("review"===s.subsection&&l&&e.user&&(0,si.L9)("user-lands-on-post-review",{role:l.role,skill:l.skill,loggedIn:!!e.user,userType:e.user?e.user.type:"guest"}),!e.user&&"email"===i.query.utm_source){var p=this.getEncodedId();document.location="/signin?referer=".concat(encodeURIComponent("/projects/".concat(p)))}var u=this.getEncodedId();!l||(0,a.U2)(t,[u,"loading"],!1)||(0,a.U2)(t,[u,"loaded"],!1)||n(u),l&&l.role&&r((0,oo.WL)(l.role)),this.initLoadPublicQuestions(!0),this.initLoadPublicQuestions(!1)}componentDidUpdate(e){this.initLoadPublicQuestions(!0),this.initLoadPublicQuestions(!1);var{auth:t,match:{params:s},history:i}=this.props,n=this.getBrief(),r=this.getBrief(e);if(n&&!r&&t.user&&n.user_id===t.user.id&&!s.subsection){var o=n.links.ats_main_relative||"/ats/".concat(s.id);i.replace(o)}}componentWillUnmount(){this.props.clearSelectedRoleCategory()}handleAnswerQuestion(e,t,s){(0,si.L9)("client-brief-answers-public-question",{briefId:null==e?void 0:e.id,questionId:null==t?void 0:t.id}),this.props.answerPublicQuestion(e,t,s);var i=this.getEncodedId();this.props.decrementTotalPendingQuestions(i)}handleUpdateBrief(e,t,s){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t.brief){var n=this.getEncodedId();this.props.updateBrief(n,e,t.brief)}void 0!==t.user&&this.handleUpdateUser(t.user,s,i)}handleUpdateUser(e,t,s){this.props.updateUser(this.props.auth.user,e,!1,[],s),t&&this.props.updateLocalUser(this.props.auth.user.id,{avatars:{temp:t}})}render(){var e=this,{auth:t,briefs:s,entities:i,match:{params:n},publicQuestions:r}=this.props,o=this.getEncodedId(),{invitedFreelancers:d}=this.state,h=d.length>0,p=this.getBrief(),u=p&&t.user&&p.user_id===t.user.id?(0,a.U2)(t,["user"],null):p?(0,a.U2)(i,["users",p.user_id],null):null,m=(0,a.U2)(s,[o,"loading"],!1),g=(0,a.U2)(s,[o,"loaded"],!1);if(m)return(0,we.jsx)(ti.Z,{className:so,loading:!0});if(g&&!p)return(0,we.jsx)(yr.default,{});if(p&&t.user&&p.user_id===t.user.id&&!n.subsection)return(0,we.jsx)(ti.Z,{className:so,loading:!0});if(g&&!m&&p&&""!==p.deleted_at)return(0,we.jsxs)("div",{className:"container ".concat(Kr),children:[j,(0,we.jsxs)(c.Z,{className:to,children:[(0,we.jsx)(l.Link,{to:"/ats",children:"Manage Jobs"}),"Job Status"]}),(0,we.jsx)("div",{className:io,children:"This job has been deleted"})]});var j=(0,we.jsxs)("h1",{className:$r,children:[(0,we.jsx)("span",{className:eo,children:(0,we.jsx)(l.Link,{to:"/ats",children:(0,we.jsx)(y.Z,{icon:"chevron-left",size:"24"})})}),(0,a.U2)(p,["text"])]});return"review"===n.subsection&&p?t.user&&p&&t.user.id===p.user_id?(0,we.jsxs)("div",{className:"container ".concat(Kr),children:[(0,we.jsxs)("h3",{className:$r,children:[(0,we.jsx)(y.Z,{icon:"tick"})," Your job has been submitted to the Twine team for review before going live"]}),(0,we.jsxs)("div",{className:"f f-row f-xs-col jc-center",children:[(0,we.jsx)("div",{className:"".concat(h?"f-07":""," m"),children:(0,we.jsx)(Se,{isReview:!0,narrow:!h,brief:p,browseURL:"".concat(p.links.ats_main_relative),owner:u,editable:(0,a.U2)(t,["user","id"],null)===u.id,isOwner:(0,a.U2)(t,["user","id"],null)===u.id,onSaveEdit:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.handleUpdateBrief(p,t,s,i)},user:t.user})}),h&&(0,we.jsx)("div",{className:"f-03 f-col m",children:(0,we.jsx)(Gr,{linksActive:!1,freelancers:d})})]})]}):this.props.history.replace("/"):"brief"===n.subsection&&p?(0,we.jsxs)("div",{className:"container ".concat(Kr),children:[j,(0,we.jsxs)(c.Z,{className:to,children:[(0,we.jsx)(l.Link,{to:"/ats",children:"Manage Jobs"}),(0,we.jsx)(l.Link,{to:p.links.ats_main_relative||p.links.main_relative,children:"Job Status"}),"Job Details"]}
1),(0,we.jsx)(Se,{brief:p,owner:u,editable:(0,a.U2)(t,["user","id"],null)===u.id,isOwner:(0,a.U2)(t,["user","id"],null)===u.id,onSaveEdit:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.handleUpdateBrief(p,t,s,i)},user:t.user})]}):"questions"===n.subsection&&p?(0,we.jsxs)("div",{className:"container ".concat(Kr),children:[j,(0,we.jsxs)(c.Z,{className:to,children:[(0,we.jsx)(l.Link,{to:"/ats",children:"Manage Jobs"}),(0,we.jsx)(l.Link,{to:p.links.ats_main_relative||p.links.main_relative,children:"Job Status"}),"Public Questions"]}),(0,we.jsx)(kr,{more:(0,a.U2)(s,[o,"morePublicQuestions"],!1),postingAnswers:Object.keys(r).filter((e=>(0,a.U2)(r,[e,"answering"],!1))),loading:(0,a.U2)(s,[o,"loadingPublicQuestions"],!1),onAnswer:(e,t)=>this.handleAnswerQuestion(p,e,t),onLoadMore:()=>this.props.loadPublicQuestions(o,(0,a.U2)(s,[o,"publicQuestionsPagesLoaded"],0)+1),questions:(0,a.U2)(s,[o,"publicQuestions"],[]).map((e=>(0,a.U2)(i,["publicQuestions",e],!1)))})]}):(0,we.jsx)(vr,lo(lo({},this.props),{},{encodedId:o}))}},ro.propTypes={auth:n().object,briefs:n().object,entities:n().object,location:n().object,publicQuestions:n().object,answerPublicQuestion:n().func,decrementTotalPendingQuestions:n().func,loadBrief:n().func,loadPendingPublicQuestions:n().func,loadPublicQuestions:n().func,updateBrief:n().func,updateUser:n().func,updateLocalUser:n().func,match:n().object,history:n().object,setSelectedRoleCategory:n().func,clearSelectedRoleCategory:n().func},no=ro))||no},
1"./src/containers/NotFound/NotFound.js":(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>r});s("./node_modules/react/index.js");var i=s("./src/components/NotFoundContent/NotFoundContent.js"),n=s("./node_modules/react/jsx-runtime.js");function r(){return(0,n.jsx)(i.Z,{})}},
vendor: 471 bytes, line 1
1"./node_modules/core-js/modules/es.regexp.flags.js":(e,t,s)=>{var i=s("./node_modules/core-js/internals/descriptors.js"),n=s("./node_modules/core-js/internals/object-define-property.js"),r=s("./node_modules/core-js/internals/regexp-flags.js"),o=s("./node_modules/core-js/internals/fails.js");i&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&n.f(RegExp.prototype,"flags",{configurable:!0,get:r})},
vendor: 385 bytes, line 1
1"./node_modules/core-js/modules/es.string.trim-end.js":(e,t,s)=>{"use strict";var i=s("./node_modules/core-js/internals/export.js"),n=s("./node_modules/core-js/internals/string-trim.js").end,r=s("./node_modules/core-js/internals/string-trim-forced.js")("trimEnd"),o=r?function(){return n(this)}:"".trimEnd;i({target:"String",proto:!0,name:"trimEnd",forced:r},{trimEnd:o,trimRight:o})},
1"./src/components/Shared/UserCard2/UserCard2.module.scss":(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});const i={gridContainer:"_1ytYHkcd",profilePhoto:"fHVOVoJ1",profilePictureContainer:"_2V5FoOm7",profilePicturePlaceholder:"_29VX8wTQ",shortlistBtn:"bP7OTQAP",nameInfo:"_1LTmVuBB",nameContainer:"_2qByRO9G",displayname:"JDak64Ti",location:"_1KR2Tu-y",profileRating:"_370YYXpw",dayRate:"oOxycoRl",roles:"_1mhM1e5o",role:"_2mo8JmB3",contact:"_3mAtURqe",contactBtn:"_2tfGcTzt",moreInfo:"_3Sao84Zu",skills:"_2w7l7jWH",pitch:"_383RYvCi",bio:"iGIoDHL0",audioBio:"_3rpELCie",contentBox:"bH9TEmmo",projectCarousel:"_2jodrvIN",reducePaddingBottom:"_361e2cFA",lastSeen:"_2LjPDH_y",boldButton:"J-MWFMGh"}},
vendor: 1,368 bytes, line 1
1"./node_modules/react-bootstrap/es/ListGroup.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>j});var i=s("./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js"),n=s("./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js"),r=s("./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js"),o=s("./node_modules/classnames/index.js"),a=s.n(o),l=s("./node_modules/react/index.js"),c=s("./node_modules/prop-types-extra/lib/elementType.js"),d=s.n(c),h=s("./node_modules/react-bootstrap/es/ListGroupItem.js"),p=s("./node_modules/react-bootstrap/es/utils/bootstrapUtils.js"),u=s("./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js"),m={componentClass:d()};var g=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,s=e.componentClass,r=void 0===s?function(e){return e?u.Z.some(e,(function(e){return e.type!==h.Z||e.props.href||e.props.onClick}))?"div":"ul":"div"}(t):s,o=e.className,c=(0,n.Z)(e,["children","componentClass","className"]),d=(0,p.D9)(c),m=d[0],g=d[1],j=(0,p.Nj)(m),x="ul"===r&&u.Z.every(t,(function(e){return e.type===h.Z}));return l.createElement(r,(0,i.Z)({},g,{className:a()(o,j)}),x?u.Z.map(t,(function(e){return(0,l.cloneElement)(e,{listItem:!0})})):t)},t}(l.Component);g.propTypes=m;const j=(0,p.Pn)("list-group",g)},
vendor: 1,682 bytes, line 1
1"./node_modules/react-bootstrap/es/ListGroupItem.js":(e,t,s)=>{"use strict";s.d(t,{Z:()=>x});var i=s("./node_modules/@babel/runtime-corejs2/core-js/object/values.js"),n=s.n(i),r=s("./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js"),o=s("./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js"),a=s("./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js"),l=s("./node_modules/classnames/index.js"),c=s.n(l),d=s("./node_modules/react/index.js"),h=s("./node_modules/prop-types/index.js"),p=s.n(h),u=s("./node_modules/react-bootstrap/es/utils/bootstrapUtils.js"),m=s("./node_modules/react-bootstrap/es/utils/StyleConfig.js"),g={active:p().any,disabled:p().any,header:p().node,listItem:p().bool,onClick:p().func,href:p().string,type:p().string},j=function(e){function t(){return e.apply(this,arguments)||this}(0,a.Z)(t,e);var s=t.prototype;return s.renderHeader=function(e,t){return d.isValidElement(e)?(0,d.cloneElement)(e,{className:c()(e.props.className,t)}):d.createElement("h4",{className:t},e)},s.render=function(){var e,t=this.props,s=t.active,i=t.disabled,n=t.className,a=t.header,l=t.listItem,h=t.children,p=(0,o.Z)(t,["active","disabled","className","header","listItem","children"]),m=(0,u.D9)(p),g=m[0],j=m[1],x=(0,r.Z)({},(0,u.Nj)(g),{active:s,disabled:i});return j.href?e="a":j.onClick?(e="button",j.type=j.type||"button"):e=l?"li":"span",j.className=c()(n,x),a?d.createElement(e,j,this.renderHeader(a,(0,u.O4)(g,"heading")),d.createElement("p",{className:(0,u.O4)(g,"text")},h)):d.createElement(e,j,h)},t}(d.Component);j.propTypes=g,j.defaultProps={listItem:!1};const x=(0,u.Pn)("list-group-item",(0,u.KS)(n()(m.ZM),j))},
1"./static/images/partners/boom-icon.svg":(e,t,s)=>{"use strict";s.d(t,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNjcxIiBoZWlnaHQ9IjY0MSIgdmlld0JveD0iMCAwIDY3MSA2NDEiIGZpbGw9Im5vbmUiPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTAgMzA0Ljc1NUM4LjE5MjQ3IDEzNS4yODggMTQ3LjkxNyAwLjM2MDQ0MiAzMTkuMjE0IDBWNjcuNTY3OEMzMTkuMjE0IDE5OC41NjMgMjEzLjA5NCAzMDQuNzU1IDgyLjE4ODkgMzA0Ljc1NUgwWk0zMTkuMjE0IDY0MUMxNDguNTI2IDY0MC42NDEgOS4xODc3OSA1MDYuNjcxIDAuMDkyNTU4MiAzMzguMDU0SDgyLjE4ODdDMjEzLjA5NCAzMzguMDU0IDMxOS4yMTQgNDQ0LjI0NiAzMTkuMjE0IDU3NS4yNDFWNjQxWk02NzAuOTA4IDMzOC4wNTRDNjYxLjgyNSA1MDYuNDQgNTIyLjg1NiA2NDAuMjczIDM1Mi40ODkgNjQwLjk5OFY1NzUuMjQxQzM1Mi40ODkgNDQ0LjI0NiA0NTguNjA5IDMzOC4wNTQgNTg5LjUxNSAzMzguMDU0SDY3MC45MDhaTTY3MSAzMDQuNzU1SDU4OS41MTVDNDU4LjYwOSAzMDQuNzU1IDM1Mi40ODkgMTk4LjU2MyAzNTIuNDg5IDY3LjU2NzhWMC4wMDIyNDQ0NkM1MjMuNDY2IDAuNzI5ODU4IDY2Mi44MTkgMTM1LjUyIDY3MSAzMDQuNzU1WiIgZmlsbD0iI0ZGNkY2MSIvPgo8L3N2Zz4="}
1}]);
2//# sourceMappingURL=BriefDetailsClient-BriefDetailsClient-c90bc50d363e106176c1.chunk.js.map

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.