1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="58e8e861-1602-44b2-96cc-8756e9357c34",e._sentryDebugIdIdentifier="sentry-dbid-58e8e861-1602-44b2-96cc-8756e9357c34")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"a88e036ba4a2c0997e784353ac1910d6b2544a0f"},(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[78382],{
1"./src/components/BriefListingCard/BriefListingIcons.js":(e,s,t)=>{t.d(s,{XC:()=>d,gN:()=>c,kd:()=>l});t("./node_modules/react/index.js");var r=t("./src/components/SvgIcon/SvgIcon.js"),n=t("./src/components/BriefListingCard/BriefListingCard.module.scss"),o=t("./node_modules/react/jsx-runtime.js"),a="30",i="15",l=e=>{var{size:s=a,style:t={}}=e;return(0,o.jsx)(r.Z,{icon:"map_marker",className:n.Z.svgIconContainer,style:t,size:s})},c=e=>{var{size:s=a,style:t={}}=e;return(0,o.jsx)(r.Z,{icon:"planet_earth",className:n.Z.svgIconContainer,style:t,size:s})},d=e=>{var{size:s=i,style:t={}}=e;return(0,o.jsx)(r.Z,{icon:"chevron-right",className:n.Z.svgIconContainer,style:t,size:s})}},
1"./src/components/Label/Label.js":(e,s,t)=>{t.d(s,{Z:()=>h});var r=t("./node_modules/prop-types/index.js"),n=t.n(r),o=t("./node_modules/react/index.js");const a={container:"_26CPqnDP",clickable:"_3BkG0RAM",primary:"_2mGbJqdr",inverse:"_1-pD55Gb",success:"_2E-F5G7J",danger:"qfwZeIMW",info:"k40yWp9w",secondary:"_2b2kPjFI",darkgrey:"_1uijR5Zq",transparent:"_3_SgSuor",purple:"-UePUs6N",white:"_2vqI5pXp",black:"_2IQR6u4R"};var i=t("./node_modules/react/jsx-runtime.js"),l=["children","className","color","inverse","onClick"];function c(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?c(Object(t),!0).forEach((function(s){u(e,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}))}return e}function u(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function m(e,s){if(null==e)return{};var t,r,n=function(e,s){if(null==e)return{};var t,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],s.indexOf(t)>=0||(n[t]=e[t]);return n}(e,s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],s.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var p=e=>{var{children:s,className:t="",color:r="primary",inverse:n=!1,onClick:o=null}=e,c=m(e,l);return(0,i.jsx)("div",d(d({className:"".concat(a.container," ").concat(a[r]," ").concat(n?a.inverse:""," ").concat(o?a.clickable:""," ").concat(t),onClick:()=>o?o():null},c),{},{children:s}))};p.propTypes=d({children:n().node,className:n().string,color:n().oneOf(["danger","darkgrey","info","primary","secondary","success","transparent","purple","white","black"]),inverse:n().bool,onClick:n().func},o.Component.propTypes);const h=p},
1"./src/components/Pitch/PaymentModal.js":(e,s,t)=>{t.d(s,{Z:()=>D});var r=t("./node_modules/prop-types/index.js"),n=t.n(r),o=t("./node_modules/react/index.js"),a=t("./node_modules/react-router-dom/esm/react-router-dom.js"),i=t("./node_modules/react-bootstrap/es/Checkbox.js"),l=t("./node_modules/react-bootstrap/es/Button.js"),c=t("./node_modules/react-bootstrap/es/Radio.js"),d=t("./node_modules/react-bootstrap/es/FormGroup.js"),u=t("./node_modules/react-bootstrap/es/ControlLabel.js"),m=t("./node_modules/react-bootstrap/es/FormControl.js"),p=t("./src/helpers/HelperFunctions.js"),h=t("./src/components/SvgIcon/SvgIcon.js");const j={initialHireContainer:"GMPKghOZ",infoText:"_1JQbUyYf",termsCheckboxes:"_3748hO0_",ctaButtons:"HxQB48DM",ctaButton:"JfPLu8iY",quotedAmountContainer:"_3E5YvP-c",ctaButtonContainer:"_2_cmqjIJ",ctaButtonTextIcon:"_z-zEz6f",paymentOptionsContainer:"_3jhqxi0t",radioButtonsContainer:"ZoCG1QgM",totalAmountContainer:"_15hwwd1S",totalAmountQuestion:"_2n7EZK92",totalToPayContainer:"_33ZPQQga",totalToPayLabel:"_3tQShk04",totalToPayValue:"_20g1x7zX",errorTextContainer:"_31GNVYKq",errorText:"_1JIZGa0T",showErrorText:"_2K89PynG"};var b=t("./src/helpers/globalVariables.js"),y=t("./node_modules/react-router-bootstrap/lib/index.js"),x=t("./src/redux/modules/briefDetails.js"),g=t("./node_modules/react-redux/es/index.js"),f=t("./src/helpers/Analytics.js"),v=t("./node_modules/react-bootstrap/es/Row.js"),_=t("./node_modules/react-bootstrap/es/Col.js"),N=t("./node_modules/react/jsx-runtime.js");function P(e){var{children:s}=e;return(0,N.jsx)(N.Fragment,{children:(0,N.jsx)(v.Z,{children:(0,N.jsx)(_.Z,{xs:12,children:s})})})}function O(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),t.push.apply(t,r)}return t}function C(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?O(Object(t),!0).forEach((function(s){w(e,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}))}return e}function w(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}P.propTypes={children:n().array.isRequired};var k=(e,s,t,r)=>{var n=Number(s.day_rate/100),o=Number(n/8);e.currency!==s.day_rate_currency&&(n=(0,p.Nh)(n,s.day_rate_currency,e.currency),o=(0,p.Nh)(o,s.day_rate_currency,e.currency));var a=Number(r)||0;return"day_rate"===t?a=Number(n*r):"hourly_rate"===t&&(a=Number(o*r)),Math.round(100*a)/100},S=(e,s,t,r)=>{var n=k(e,s,t,r);return(0,p.lb)(100*n,e.currency)},A=(e,s)=>{var t=Number(s.day_rate/8),r=(0,p.Nh)(t,s.day_rate_currency,e.currency);return(0,N.jsxs)("span",{children:[(0,N.jsxs)("span",{className:"mr--",children:["Hourly rate â ","".concat((0,p.lb)(r,e.currency))]}),e.currency!==s.day_rate_currency&&(0,N.jsx)("span",{className:j.infoText,children:"(".concat((0,p.lb)(t,s.day_rate_currency),")")})]})},T=(e,s)=>{var t=Number(s.day_rate),r=(0,p.Nh)(t,s.day_rate_currency,e.currency);return(0,N.jsxs)("span",{children:[(0,N.jsxs)("span",{className:"mr--",children:["Day rate â ","".concat((0,p.lb)(r,e.currency)," ")]}),e.currency!==s.day_rate_currency&&(0,N.jsx)("span",{className:j.infoText,children:"(".concat((0,p.lb)(t,s.day_rate_currency),")")})]})},Z=e=>{var{pitch:s,onNext:t,projectTermsAgreed:r,platformTermsAgreed:n,onTermsCheck:o}=e;return(0,N.jsx)(P,{children:(0,N.jsxs)("div",{className:j.initialHireContainer,children:[(0,N.jsxs)("div",{className:j.termsCheckboxes,children:[(0,N.jsxs)(i.Z,{checked:r,onChange:()=>o("project"),children:["I agree to"," ",(0,N.jsx)(a.Link,{target:"_blank",to:"/platform-terms",children:"Twine's Platform Terms"})]}),(0,N.jsxs)(i.Z,{checked:n,onChange:()=>o("platform"),children:["I agree to"," ",(0,N.jsx)(a.Link,{target:"_blank",to:"/engagement-terms",children:"Engagement Terms"})," ","with ",s.sender.displayname]})]}),(0,N.jsx)("div",{className:j.ctaButtonContainer,children:(0,N.jsx)("div",{className:j.ctaButtons,children:(0,N.jsx)(l.Z,{bsStyle:"success",onClick:t,className:j.ctaButton,disabled:!r||!n,children:(0,N.jsxs)("div",{className:j.ctaButtonTextIcon,children:[(0,N.jsx)("span",{className:"mr--",children:" Next "}),(0,N.jsx)(h.Z,{icon:"chevron-right",size:"16"})]})})})})]})})},B=e=>{var{pitch:s,onNext:t,initialPaymentFeeAgreed:r,onInitialFeeAmountChange:n}=e;return(0,N.jsx)(P,{children:(0,N.jsxs)("div",{className:j.initialHireContainer,children:["Has an initial payment fee been agreed with ",s.sender.displayname," and would you like to use Twine to manage payments?",(0,N.jsxs)("div",{className:j.radioButtonsContainer,children:[(0,N.jsx)(c.Z,{checked:r,label:"Yes",className:j.radio,id:"initalFeeTrue",onCh
1ange:n,children:"Yes"}),(0,N.jsx)(c.Z,{checked:!r,label:"No",className:j.radio,id:"initalFeeFalse",onChange:n,children:"No"})]}),(0,N.jsx)("p",{className:"mt+ ".concat(j.infoText),children:"Making your payment through Twine will add additional security to your hire and take away the hassle for you to focus on your project goals."}),(0,N.jsx)("div",{className:j.ctaButtonContainer,children:(0,N.jsx)("div",{className:j.ctaButtons,children:(0,N.jsx)(l.Z,{bsStyle:"success",onClick:t,className:j.ctaButton,children:(0,N.jsxs)("div",{className:j.ctaButtonTextIcon,children:[(0,N.jsxs)("span",{className:"mr--",children:[r?"Next":"Hire"," "]}),(0,N.jsx)(h.Z,{icon:"chevron-right",size:"16"})]})})})}),(0,N.jsxs)("p",{className:"mt+ ".concat(j.infoText),children:["You can make additional payments to ",s.sender.displayname," at a later date."]})]})})},L=e=>{var{pitch:s,hireOthers:t,inMessages:r,closeModal:n}=e;return(0,N.jsxs)(P,{children:[(0,N.jsxs)("div",{className:j.initialHireContainer,children:[(0,N.jsx)("div",{className:"mb+",children:" You have now marked ".concat(s.sender.displayname," as hired ð")}),(0,N.jsxs)("div",{className:"mb+",children:["You can now make a payment to ",s.sender.displayname," at anytime by clicking Pay within Messages on Twine. They may also request a bill."]})]}),(0,N.jsxs)("div",{className:j.ctaButtonContainer,children:[(0,N.jsx)("div",{className:j.ctaButtons,children:(0,N.jsx)(l.Z,{bsStyle:"info",onClick:t,children:(0,N.jsxs)("div",{className:j.ctaButtonTextIcon,children:[(0,N.jsx)("span",{className:"mr--",children:" Hire Others "}),(0,N.jsx)(h.Z,{icon:"chevron-right",size:"16"})]})})}),(0,N.jsx)("div",{className:j.ctaButtons,children:(0,N.jsx)(y.Ji,{to:!r&&"/messages/"+s.sender.username,children:(0,N.jsx)(l.Z,{bsStyle:"success",onClick:n,children:(0,N.jsxs)("div",{className:j.ctaButtonTextIcon,children:[(0,N.jsxs)("span",{className:"mr--",children:[" ",s.sender.displayname," "]}),(0,N.jsx)(h.Z,{icon:"bubble",size:"16"})]})})})})]})]})},M=e=>{var{brief:s,pitch:t,paymentOption:r,onPaymentOptionChange:n,onNext:o}=e,a=t.day_rate&&t.day_rate_currency;return(0,N.jsxs)(P,{children:[(0,N.jsxs)("div",{className:j.paymentOptionsContainer,children:[(0,N.jsx)("div",{children:"How would you like to pay ".concat(t.sender.displayname||t.sender.username,"?")}),(0,N.jsxs)("div",{className:j.radioButtonsContainer,children:[(0,N.jsx)(c.Z,{checked:"specific_amount"===r,className:j.radio,id:"pay-modal-specific_amount",onChange:n,children:"Specific amount"}),a&&(0,N.jsx)(c.Z,{checked:"day_rate"===r,className:j.radio,id:"pay-modal-day_rate",onChange:n,children:T(s,t)}),a&&(0,N.jsx)(c.Z,{checked:"hourly_rate"===r,className:j.radio,id:"pay-modal-hourly_rate",onChange:n,children:A(s,t)})]})]}),(0,N.jsx)("div",{className:j.ctaButtonContainer,children:(0,N.jsxs)(l.Z,{bsStyle:"success",onClick:o,className:j.ctaButton,children:[(0,N.jsx)("span",{className:"mr--",children:"Next"}),(0,N.jsx)(h.Z,{icon:"chevron-right",size:"16"})]})})]})},H=e=>{var{brief:s,pitch:t,paymentOption:r,paymentAmount:n,onPaymentAmountChange:o,onPay:a,isFormValid:i,pitchErrors:c,readOnlyAmount:y,totalVaulted:x}=e;return(0,N.jsxs)(P,{children:[(0,N.jsxs)("div",{className:j.totalAmountContainer,children:[!y&&(0,N.jsx)("div",{className:"mt",children:(0,N.jsxs)(d.Z,{children:[(0,N.jsxs)(u.Z,{className:j.totalAmountQuestion,children:["day_rate"===r&&"How many days do you need ".concat(t.sender.displayname,"'s help?"),"hourly_rate"===r&&"How many hours do you need ".concat(t.sender.displayname,"'s help?"),"specific_amount"===r&&"How much would you like to pay ".concat(t.sender.displayname,"?")]}),(0,N.jsx)(m.Z,{type:"number",value:n,id:"total-to-pay-input",onChange:o,placeholder:"day_rate"===r?"Number of days":"hourly_rate"===r?"Number of hours":"Enter amount"})]})}),(0,N.jsxs)("div",{className:j.totalToPayContainer,children:[(0,N.jsx)("div",{className:j.totalToPayLabel,children:y?"Amount to Release":"Total amount to pay ".concat(t.sender.displayname," now")}),(0,N.jsx)("div",{className:j.totalToPayValue,children:y?(0,p.lb)(x,s.currency):S(s,t,r,n)})]})]}),(0,N.jsx)("div",{className:j.errorTextContainer,children:c&&(0,N.jsx)("span",{className:"".concat(j.errorText," ").concat(c.minimumInitialPitchAmount&&j.showErrorText),children:"The minimum amount is ".concat("gbp"===s.currency?"£":"$").concat(b.T)})}),(0,N.jsx)("div",{className:j.initialHireContainer,children:(0,N.jsxs)("p",{className:"".concat(j.infoText),children:["All payments are secured in the Twine vault until you release them to"," ",t.sender.displayname]})}),(0,N.jsx)("div",{className:j.ctaButtonContainer,children:(0,N.jsxs)(l.Z,{bsStyle:"success",onClick:a,className:j.ctaButton,disabled:!i(),children:[(0,N.jsx)("span",{className:"mr--",children:"Pay"}),(0,N.jsx)(h.Z,{icon:"chevron-right",size:"16"})]})})]})};class R extends o.Component{constructor(e){var s;super(e),s=this,this.onTermsCheck=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"project",{projectTermsAgreed:t,platformTermsAgreed:r}=s.state;"project"===e?s.setState({projectTermsAgreed:!t}):s.setState({platformTermsAgreed:!r})},this.onNext=()=>{var{currentStep:e,initialPaymentFeeAgreed:s}=this.state,{pitch:t,brief:r,onAcceptPitch:n,onAcceptPitchOverride:o}=this.props;if(2===e&&s)this.setState({currentStep:e+2});else{if(2===e&&!s)return this.setState({currentStep:e+1}),void(o?o():((0,f.L9)("client-no-payment-hire-made",{briefId:null==r?void 0:r.id,pitchId:null==t?void 0:t.id}),n(r,t)));if(4===e){var{paymentOption:a}=this.state,i=0;return i="day_rate"===a||"hourly_rate"===a?1:t.budget&&r.amount?30:Number((t.budget||r.amount)/100),void this.setState({currentStep:e+1,paymentAmount:i},(()=>this.validateForm()))}this.setState({currentStep:e+1},(()=>this.validateForm()))}},this.onPay=()=>{var{pitch:e,brief:s,onAccept:t}=this.props,{currentStep:r,paymentAmount:n,paymentOption:o}=this.state;5===r&&t(k(s,e,o,n))},this.onRelease=()=>{var{pitch:e,brief:s,onAccept:t}=this.props,{currentStep:r}=this.state;4===r&&t(Number((e.budget||s.amount)/100))},this.onPaymentOptionChange=e=>{this.setState({paymentOption:e.target.id.split("-")[2]},(()=>this.validateForm()))},this.onInitialFeeAmountChange=()=>{this.setState({initialPaymentFeeAgreed:!this.state.initialPaymentFeeAgreed},(()=>this.validateForm()))},this.onPaymentAmountChange=e=>{var{value:s}=e.target,t=Number(s)||0;t&&t<0&&(t=0),this.setState({paymentAmount:t},(()=>this.validateForm()))},this.validateForm=()=>{var{pitch:e,brief:s}=this.props,{paymentAmount:t,paymentOption:r}=this.state,n={};k(s,e,r,t)<b.T&&(n.minimumInitialPitchAmount=!0),Object.keys(n).length>0?this.setState({pitchErrors:n}):this.setState({pitchErrors:{}}
1)},this.isFormValid=()=>!Object.keys(this.state.pitchErrors).length>0,this.state={currentStep:1,paymentAmount:0,paymentOption:"specific_amount",initialPaymentFeeAgreed:!0,projectTermsAgreed:!1,platformTermsAgreed:!1,pitchErrors:{}};var{skipProjectTermsStep:t,skipPaymentFlow:r}=e;t?this.state=C(C({},this.state),{},{currentStep:5,paymentAmount:b.T,paymentOption:"specific_amount"}):r&&(this.state=C(C({},this.state),{},{currentStep:4,paymentAmount:0,paymentOption:null}))}UNSAFE_componentWillReceiveProps(e){var{skipProjectTermsStep:s,skipPaymentFlow:t}=e;s?this.setState(C(C({},this.state),{},{currentStep:3,paymentAmount:b.T,paymentOption:"specific_amount"}),this.forceUpdate()):t&&this.setState(C(C({},this.state),{},{currentStep:4,paymentAmount:0,paymentOption:null}),this.forceUpdate())}render(){var{brief:e,pitch:s,hireOthers:t,closeModal:r}=this.props,{currentStep:n,paymentOption:o,paymentAmount:a,pitchErrors:i,projectTermsAgreed:l,platformTermsAgreed:c}=this.state;switch(s.sender||(s.sender=s.users.sender,s.sender.displayname=s.users.sender.user_displayname?s.users.sender.user_displayname:s.users.sender.username),n){case 1:return(0,N.jsx)(Z,{pitch:s,projectTermsAgreed:l,platformTermsAgreed:c,onNext:this.onNext,onTermsCheck:this.onTermsCheck});case 2:return(0,N.jsx)(B,{pitch:s,initialPaymentFeeAgreed:this.state.initialPaymentFeeAgreed,onInitialFeeAmountChange:e=>this.onInitialFeeAmountChange(e),onNext:this.onNext});case 3:return(0,N.jsx)(L,{pitch:s,brief:e,hireOthers:t,closeModal:r});case 4:return(0,N.jsx)(M,{brief:e,pitch:s,paymentOption:o,onPaymentOptionChange:this.onPaymentOptionChange,onNext:this.onNext});case 5:return(0,N.jsx)(H,{brief:e,pitch:s,pitchErrors:i,paymentOption:o,paymentAmount:a,onPay:this.onPay,onNext:this.onNext,isFormValid:this.isFormValid,onPaymentAmountChange:this.onPaymentAmountChange,readOnlyAmount:this.props.readOnlyAmount,totalVaulted:this.props.totalVaulted});default:return(0,N.jsx)("span",{})}}}Z.propTypes={pitch:n().object,onNext:n().func,projectTermsAgreed:n().bool,platformTermsAgreed:n().bool,onTermsCheck:n().func},B.propTypes={pitch:n().object,onNext:n().func,initialPaymentFeeAgreed:n().bool,onInitialFeeAmountChange:n().func},L.propTypes={pitch:n().object,hireOthers:n().func,inMessages:n().bool,closeModal:n().func},M.propTypes={brief:n().object,pitch:n().object,paymentOption:n().string,onPaymentOptionChange:n().func,onNext:n().func},H.propTypes={brief:n().object,pitch:n().object,paymentOption:n().string,paymentAmount:n().number,onPaymentAmountChange:n().func,onPay:n().func,isFormValid:n().func,pitchErrors:n().object,totalVaulted:n().number,readOnlyAmount:n().bool},R.propTypes={brief:n().object,pitch:n().object,skipProjectTermsStep:n().bool,skipPaymentFlow:n().bool,totalVaulted:n().number,readOnlyAmount:n().bool,onAccept:n().func.isRequired,onAcceptPitch:n().func,onAcceptPitchOverride:n().func,hireOthers:n().func,closeModal:n().func};const D=(0,g.connect)(null,(e=>({onAcceptPitch:(s,t)=>e((0,x.qP)(s,t))})))(R)},
1"./src/components/Shared/Buttons/BrowseCTA/BrowseCTA.js":(e,s,t)=>{t.d(s,{Z:()=>j});t("./node_modules/core-js/modules/es.array.includes.js"),t("./node_modules/core-js/modules/es.string.includes.js");var r=t("./node_modules/prop-types/index.js"),n=t.n(r),o=(t("./node_modules/react/index.js"),t("./node_modules/react-bootstrap/lib/Button.js")),a=t.n(o),i=t("./src/components/Shared/LinkOrAnchor.js"),l=t("./src/components/SvgIcon/SvgIcon.js"),c=t("./src/helpers/HelperFunctions.js");const d="_3dOnM82R",u="u8_uHwiH",m="T-Is6h9U";var p=t("./node_modules/react/jsx-runtime.js"),h=e=>{var{browseURL:s,browseFilter:t,bsStyle:r,bsSize:n,handleOnClick:o,title:h}=e;return(0,p.jsx)(i.Z,{isLink:!(s&&s.includes("post-a-job")),to:s||(0,c.Wv)(t),children:(0,p.jsx)("div",{className:d,children:(0,p.jsx)(a(),{bsStyle:r,bsSize:n,onClick:o,children:(0,p.jsxs)("div",{className:u,children:[(0,p.jsx)("span",{className:m,children:h||"Browse freelancers"}),(0,p.jsx)(l.Z,{icon:"chevron-right",size:"14"})]})})})})};h.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},h.defaultProps={bsStyle:"primary",bsSize:"lg"};const j=h},
1"./src/components/Shared/LinkOrAnchor.js":(e,s,t)=>{t.d(s,{Z:()=>p});var r=t("./node_modules/prop-types/index.js"),n=t.n(r),o=(t("./node_modules/react/index.js"),t("./node_modules/react-router-dom/esm/react-router-dom.js")),a=t("./node_modules/react/jsx-runtime.js"),i=["isLink","children","to"];function l(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?l(Object(t),!0).forEach((function(s){d(e,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}))}return e}function d(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}function u(e,s){if(null==e)return{};var t,r,n=function(e,s){if(null==e)return{};var t,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],s.indexOf(t)>=0||(n[t]=e[t]);return n}(e,s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],s.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var m=e=>{var{isLink:s,children:t,to:r}=e,n=u(e,i);return s?(0,a.jsx)(o.Link,c(c({to:r},n),{},{children:t})):(0,a.jsx)("a",c(c({href:r},n),{},{children:t}))};m.propTypes={children:n().node,isLink:n().bool,to:n().string};const p=m},
1"./src/containers/ManageBriefs/ManageBriefs.js":(e,s,t)=>{t.r(s),t.d(s,{default:()=>Fe});t("./node_modules/core-js/modules/es.regexp.exec.js"),t("./node_modules/core-js/modules/es.string.search.js"),t("./node_modules/core-js/modules/es.string.replace.js"),t("./node_modules/core-js/modules/es.array.includes.js"),t("./node_modules/core-js/modules/es.string.includes.js"),t("./node_modules/core-js/modules/es.regexp.test.js");var r=t("./node_modules/react/index.js"),n=t("./node_modules/prop-types/index.js"),o=t.n(n),a=t("./node_modules/moment/moment.js"),i=t.n(a),l=t("./node_modules/react-redux/es/index.js"),c=t("./node_modules/react-router-dom/esm/react-router-dom.js"),d=t("./node_modules/react-helmet/es/Helmet.js"),u=t("./node_modules/react-bootstrap/lib/Button.js"),m=t.n(u),p=t("./node_modules/react-bootstrap/lib/Col.js"),h=t.n(p),j=t("./node_modules/react-bootstrap/lib/Grid.js"),b=t.n(j),y=t("./node_modules/react-bootstrap/lib/Row.js"),x=t.n(y),g=t("./src/redux/modules/manageBriefs.js"),f=t("./src/redux/modules/successMessage.js"),v=t("./src/redux/modules/suggestedRoles.js"),_=t("./src/redux/modules/partners.js"),N=t("./src/components/Panel/Panel.js"),P=t("./src/components/Loader/Loader.js"),O=t("./node_modules/react-bootstrap/es/MenuItem.js"),C=t("./node_modules/react-bootstrap/es/NavDropdown.js"),w=t("./node_modules/react-bootstrap/es/Button.js"),k=t("./src/components/SvgIcon/SvgIcon.js"),S=t("./src/components/BriefListingCard/BriefListingIcons.js"),A=t("./src/components/Label/Label.js"),T=(t("./node_modules/core-js/modules/es.array.iterator.js"),t("./node_modules/core-js/modules/web.dom-collections.iterator.js"),t("./node_modules/core-js/modules/es.promise.js"),t("./node_modules/react-router/esm/react-router.js")),Z=t("./node_modules/react-bootstrap/es/Row.js"),B=t("./node_modules/react-bootstrap/es/Col.js"),L=t("./src/redux/modules/payments.js"),M=t("./src/redux/modules/errorMessage.js"),H=t("./src/redux/modules/briefCard.js"),R=t("./node_modules/react/jsx-runtime.js");const D=e=>{var{image:s,size:t=45,avgColor:r="#ccc"}=e,n={width:t,height:t,borderRadius:t/2,WebkitBorderRadius:t/2,MozBorderRadius:t/2,backgroundColor:r,overflow:"hidden",display:"inline-block",padding:0,margin:0};return(0,R.jsx)("div",{style:n,children:(0,R.jsx)("img",{src:s,style:{width:"100%",height:"100%"},alt:"Twine"})})};var E=t("./src/components/Badges/UserStatusBadges/UserStatusBadges.js"),I=t("./src/components/Modal/Modal.js"),F=t("./src/components/Pitch/PaymentModal.js"),V=t("./src/helpers/HelperFunctions.js"),z=t("./node_modules/react-bootstrap/lib/NavDropdown.js"),U=t.n(z),q=t("./node_modules/react-bootstrap/lib/MenuItem.js"),G=t.n(q),Y=e=>{var{messagesLink:s,id:t,endHire:r,canEndHire:n,makePayment:o,canMakePayment:a}=e,i=(0,R.jsx)("div",{}),l=(0,R.jsx)("div",{});return n&&(i=(0,R.jsx)(G(),{onClick:()=>r(),children:"End hire"})),a&&(l=(0,R.jsx)(G(),{onClick:()=>o(),children:"Make payment"})),(0,R.jsx)("div",{style:{listStyleType:"none"},children:(0,R.jsxs)(U(),{noCaret:!0,pullRight:!0,title:(0,R.jsx)("span",{style:{top:"3px"},children:(0,R.jsx)(k.Z,{color:"#333",size:"24",icon:"more"})}),style:{color:"white"},id:t,children:[(0,R.jsx)(G(),{href:s,children:"Messages"}),l,(0,R.jsx)(G(),{href:"/payments",children:"Payment history"}),i]})})};Y.propTypes={messagesLink:o().string,id:o().string,endHire:o().func,canEndHire:o().bool,makePayment:o().func,canMakePayment:o().bool},Y.defaultProps={messagesLink:"/messages",id:"dropdown-icon"};const W=Y,K={container:"_1_w-hrD-",firstColumn:"_1HnvhG94",grid:"COvsLFlN",firstColumnLink:"_14wdaUg3",mobilePaidOut:"dlmuSN1B",secondColumn:"_2PMmMRfO",thirdColumn:"KQDyRBtm",fourthColumn:"_2cxZL9Mo",statusLabel:"_1qQ3x8Aa",amountRequested:"XOyS40h8",messageIconMobile:"_20WFQytz",navDropdownMobile:"LjLtX2mX",navDropdownDesktop:"_1Vduz1Ve",messageLabel:"_1FW-nVp-",title:"_3UdtVanP",paidOutTitleDesktop:"_3ThVqiRx",paidOutTitleMedium:"_1HCnIxgg",activeHireDisplayName:"_24XKlrVf",verifiedAndPro:"_1JsxDhS8",column:"_13qHf4k-",verifiedAndProBox:"_1MVTU-c-",messageClient:"_3N40Dkl3",messageIcon:"_5XfcQDR4"};function J(e,s,t,r,n,o,a){try{var i=e[o](a),l=i.value}catch(e){return void t(e)}i.done?s(l):Promise.resolve(l).then(r,n)}var{column:Q,navDropdownMobile:X,firstColumn:$,firstColumnLink:ee,activeHireDisplayName:se,verifiedAndProBox:te,verifiedAndPro:re,messageIconMobile:ne,statusLabel:oe,amountRequested:ae,secondColumn:ie,messageClient:le,messageLabel:ce,messageIcon:de,thirdColumn:ue,mobilePaidOut:me,fourthColumn:pe,navDropdownDesktop:he}=K,je=e=>{var{history:s,releaseVaultedMoney:t,setSuccessMessage:n,activeHire:o,endHire:a,endHireUpdateActiveHires:i,setErrorMessage:l}=e,[d,u]=(0,r.useState)(!1),[m,p]=(0,r.useState)(!1),[h,j]=(0,r.useState)(!!o.totalVaulted),[b,y]=(0,r.useState)(o.totalPaidOut),[x,g]=(0,r.useState)(!0),f=function(){var e,s=(e=function*(e,s){try{yield a(e,s),g(!1),i()}catch(e){l("Failed to end hire: ".concat(e.message)),console.error(e)}},function(){var s=this,t=arguments;return new Promise((function(r,n){var o=e.apply(s,t);function a(e){J(o,r,n,a,i,"next",e)}function i(e){J(o,r,n,a,i,"throw",e)}a(void 0)}))});return function(e,t){return s.apply(this,arguments)}}();if(!x)return(0,R.jsx)("div",{});var{totalVaulted:v,currency:_,freelancerAvatar:N,bills:P,freelancer:O,pitch:C,brief:S,outstandingBilled:T,ratingId:L,ratingUrlCode:M}=o,H="?bills=";P.forEach((e=>{null===e.paid_at&&(H+="".concat(e.bill_id,","))})),H=H.substring(0,H.length-1);var z="";if(!1!==M){var U="/testimonials/".concat(L,"/").concat(M);z=(0,R.jsx)(w.Z,{href:U,children:"Leave review"})}var q=C.completed_at&&""!==C.completed_at,G=!(h||T||q),Y=0===T,K=(0,V.lb)(T,_),je=(0,V.lb)(v,_),be=(0,V.lb)(b,_),ye="/messages/".concat(O.username),xe=C.users.sender.user_displayname?C.users.sender.user_displayname:C.users.sender.username;return(0,R.jsxs)(Z.Z,{children:[(0,R.jsxs)(B.Z,{sm:5,className:Q,children:[(0,R.jsx)("div",{className:X,children:(0,R.jsx)(W,{messagesLink:ye,id:"nav-dropdown-mobile",endHire:()=>f(S.id,C.message_id),canMakePayment:Y,canEndHire:G,makePayment:()=>p(!0)})}),(0,R.jsxs)("div",{className:$+" mb",children:[(0,R.jsxs)("div",{className:ee,children:[(0,R.jsxs)(c.Link,{to:"/".concat(O.username),className:ee,children:[(0,R.jsx)(D,{image:N[46].square.main,size:35}),(0,R.jsx)("p",{className:se,children:O.displayname}),(0,R.jsx)("div",{className:te,children:(0,R.jsx)(E.Z,{user:O,className:re})})]}),(0,R.jsx)(c.Link,{to:ye,children:(0,R.jsx)("span",{className:ne,children:(0,R.jsx)(k.Z,{icon:"bubble",color:"#40a0f5",size:"14",style:{marginBottom:"5px"}})})}),z]}),!!T&&(0,R.jsx)(A.Z,{className:oe+" ml "+ae,children:"".concat(K," requested")}),!!h&&(0,R.jsxs)(A.Z,{className:oe+" ml",color:"primary",children:["".concat(je," held "),(0,R.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",className:"bi bi-lock-fill",fill:"
1currentColor",children:[(0,R.jsx)("path",{d:"M2.5 9a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9z"}),(0,R.jsx)("path",{fillRule:"evenodd",d:"M4.5 4a3.5 3.5 0 1 1 7 0v3h-1V4a2.5 2.5 0 0 0-5 0v3h-1V4z"})]})]})]})]}),(0,R.jsx)(B.Z,{sm:1,className:Q,children:(0,R.jsx)("div",{className:"".concat(ie," ").concat(le),children:(0,R.jsxs)(c.Link,{to:ye,className:"".concat(ie," ").concat(ce),children:[(0,R.jsx)("span",{className:de,children:(0,R.jsx)(k.Z,{icon:"bubble",color:"#40a0f5",size:"14"})}),"Messages"]})})}),(0,R.jsx)(B.Z,{sm:3,className:Q,children:(0,R.jsxs)("div",{className:ue,children:[(0,R.jsx)("div",{className:me,children:"Paid Out"}),be]})}),(0,R.jsx)(B.Z,{sm:1,className:Q,children:(0,R.jsxs)("div",{className:pe,children:[!!T&&(0,R.jsx)(c.Link,{to:"/manage/briefs/".concat(S.id,"/pay/").concat(C.message_id).concat(H),children:(0,R.jsx)(w.Z,{bsStyle:"success",children:"Pay ".concat(K)})}),!!h&&(0,R.jsx)(w.Z,{bsStyle:"success",onClick:()=>u(!0),children:"Release ".concat(je)}),!h&&!T&&(0,R.jsx)(w.Z,{bsStyle:"success",onClick:()=>p(!0),children:"New Payment"})]})}),(0,R.jsx)(B.Z,{sm:1,className:he,children:(0,R.jsx)(W,{canMakePayment:Y,messagesLink:ye,id:"nav-dropdown",endHire:()=>f(S.id,C.message_id),canEndHire:G,makePayment:()=>p(!0)})}),(0,R.jsx)(I.Z,{closeButton:!0,title:"Release Payment",show:d,onExit:()=>u(!1),children:(0,R.jsx)(F.Z,{skipProjectTermsStep:!0,brief:S,pitch:C,totalVaulted:v,onAccept:()=>((e,s)=>{u(!1),t(e).then((()=>{j(!1),y(b+s),n("Your money has been released to the freelancer.")})).catch((e=>{alert("Failed to release money to the freelancer: ".concat(e.message))}))})(C.message_id,v)})}),(0,R.jsx)(I.Z,{closeButton:!0,show:m,title:"Pay ".concat(xe),onExit:()=>p(!1),children:(0,R.jsx)(F.Z,{skipProjectTermsStep:!0,brief:S,pitch:C,onAccept:e=>{return t=S.id,r=C.message_id,n=100*e,void s.push("/manage/briefs/".concat(t,"/pay/").concat(r,"?amount=").concat(n,"&vaultable=true"));var t,r,n}})})]})};je.propTypes={history:o().object,releaseVaultedMoney:o().func,setSuccessMessage:o().func,activeHire:o().object,endHire:o().func,endHireUpdateActiveHires:o().func,setErrorMessage:o().func};const be=(0,T.EN)((0,l.connect)(null,{releaseVaultedMoney:L.Xd,setSuccessMessage:f.GC,setErrorMessage:M.uH,endHire:H.Ew})(je));var ye=e=>{var{activeHires:s}=e,[t,n]=(0,r.useState)(s.length),o=()=>{n(t-1)};return t<1?(0,R.jsx)("div",{}):(0,R.jsxs)(b(),{className:K.grid,children:[(0,R.jsx)("hr",{}),(0,R.jsxs)(x(),{children:[(0,R.jsx)(h(),{sm:5,className:K.column,children:(0,R.jsx)("a",{className:"mb "+K.title,children:"Active Hires"})}),(0,R.jsx)(h(),{sm:1,className:K.column}),(0,R.jsx)(h(),{sm:3,className:K.column,children:(0,R.jsxs)("div",{style:{display:"flex",justifyContent:"center"},children:[(0,R.jsx)("a",{className:K.paidOutTitleDesktop,children:"Total Paid Out"}),(0,R.jsx)("a",{className:K.paidOutTitleMedium,children:"Paid Out"})]})})]}),s.map(((e,s)=>(0,R.jsx)(be,{activeHire:e,endHireUpdateActiveHires:o},e+s)))]})};ye.propTypes={getEarningsListPaginated:o().func,getUserByUsername:o().func,activeHires:o().array,briefId:o().number};const xe=ye;var ge=t("./src/redux/modules/briefs2.js"),fe=t("./src/components/Shared/Buttons/BrowseCTA/BrowseCTA.js");const ve={container:"_19TrwYx-",top:"_1o7M91oV clearfix",bottom:"_1j4jfQ8g clearfix",middle:"_3gQJM9lm",title:"_31ZVYWwy",posted:"_3Y5ua_0t",status:"_2BG7qscq",statusLabel:"_3P7lfkbp",statusLabelMobile:"uXTVR_rN",expires:"_19yZRuAM",expiresMobile:"xG0RT_rR",ctas:"_3Oa1qoZd",invite:"_2VFpV7pi",pitches:"_3-51lRUD",accepted:"tGmx12Kr",displayname:"_1HVkWXlx",number:"_2UP2mkCR",messagesButton:"_2La39aG3",viewText:"_1nUlQK3L",role:"_3qTLK_Tj",roleMobile:"_3PVeWstG"};var _e,Ne;function Pe(e,s){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);s&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),t.push.apply(t,r)}return t}function Oe(e){for(var s=1;s<arguments.length;s++){var t=null!=arguments[s]?arguments[s]:{};s%2?Pe(Object(t),!0).forEach((function(s){Ce(e,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEac
1h((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}))}return e}function Ce(e,s,t){return s in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}var we=(0,l.connect)((e=>({loadingActiveHires:e.briefCard.loadingActiveHires,loadedActiveHires:e.briefCard.loadedActiveHires,activeHires:e.briefCard.activeHires})),{getActiveAndCompletedHires:H.D1,updateBrief:ge.nT})((Ne=class extends r.PureComponent{constructor(e){super(e),this.handleCloseJobForNewPitches=()=>{var e=i()(i().utc()).subtract(1,"days").format("YYYY-MM-DD HH:mm:ss");this.updateBriefExpiresAt(e)},this.handleOpenJobForNewPitches=()=>{var e=i()(i().utc()).add(1,"month").format("YYYY-MM-DD HH:mm:ss");this.updateBriefExpiresAt(e)},this.updateBriefExpiresAt=e=>{var{updateBrief:s,brief:t}=this.props,{isOpen:r}=this.state,n=t.links.main_relative.split("/")[2];void 0!==t&&s(n,t,{expires_at:e}).then((()=>{this.setState({isOpen:!r})}))},this.state={activeHires:null,isOpen:"expired"!==e.status}}componentDidMount(){this.state.activeHires||this.props.getActiveAndCompletedHires(this.props.brief.id).then((e=>{this.setState({activeHires:e})}))}expiresInLessThanSevenDays(){var{brief:e}=this.props,s=i()(e.expires_at).fromNow(!0);return!(!(0,V.Yo)(s)||!s.includes("days"))&&(0,V.zz)(s)<7}render(){var{brief:e,status:s,loadedActiveHires:t,loadingActiveHires:r}=this.props,{isOpen:n,activeHires:o}=this.state,a=n?"Open":"Closed",l=!!o&&(t&&o.length>0),d="danger";n&&(d="success");var u=(0,R.jsx)(O.Z,{onClick:this.handleOpenJobForNewPitches,children:"Open job to new pitches"});n&&(u=(0,R.jsx)(O.Z,{onClick:this.handleCloseJobForNewPitches,children:"Close to new pitches"}));var m=(0,R.jsx)("div",{style:{listStyleType:"none",marginLeft:"10px"},children:(0,R.jsxs)(C.Z,{noCaret:!0,pullRight:!0,title:(0,R.jsx)(k.Z,{size:"24",color:"#000",icon:"more"}),id:"dropdown-icon-1",children:[(0,R.jsx)(O.Z,{href:e.links.ats_main_relative,children:"View pending pitches"}),(0,R.jsx)(O.Z,{href:"/payments",children:"View payments"}),u]})}),p=e.num_of_approved_pitches_and_not_accepted;return(0,R.jsxs)(N.Z,{className:ve.container,children:[(0,R.jsxs)("div",{className:ve.top,children:[(0,R.jsxs)("div",{className:ve.status,children:[m,(0,R.jsx)(A.Z,{className:ve.statusLabel,color:d,children:(0,R.jsx)("strong",{children:a})}),"expired"!==s&&this.expiresInLessThanSevenDays()&&(0,R.jsxs)("div",{className:ve.expires+" mr",children:["Expires in ",i()(e.expires_at).fromNow(!0)]})]}),(0,R.jsx)(A.Z,{className:ve.statusLabelMobile,color:d,children:(0,R.jsx)("strong",{children:a})}),"expired"!==s&&this.expiresInLessThanSevenDays()&&(0,R.jsxs)("div",{className:ve.expiresMobile+" mr",children:["Expires in ",i()(e.expires_at).fromNow(!0)]}),(0,R.jsxs)(c.Link,{className:ve.title,to:e.links.ats_main_relative,children:[e.text,e.remote?(0,R.jsx)(S.gN,{size:"25",style:{verticalAlign:"sub",margin:"auto 2px",marginLeft:"7px"}}):(0,R.jsx)(S.kd,{size:"25",style:{verticalAlign:"sub",margin:"auto 2px",marginLeft:"7px"}}),(0,R.jsx)(A.Z,{className:ve.role,color:"primary",inverse:!0,children:e.role||e.skill}),e.private&&(0,R.jsx)(A.Z,{className:ve.role,color:"danger",inverse:!0,children:"Private"})]}),(0,R.jsxs)("div",{className:ve.posted,children:["Posted ",i()(e.timestamp).fromNow()]})]}),(0,R.jsxs)("div",{className:ve.middle,children:[(0,R.jsx)(A.Z,{className:ve.roleMobile,color:"primary",inverse:!0,children:e.role||e.skill}),e.private&&(0,R.jsx)(A.Z,{className:ve.roleMobile,color:"danger",inverse:!0,children:"Private"})]}),(0,R.jsxs)("div",{className:ve.bottom,children:["live"===s&&0===e.num_of_pitches&&(0,R.jsx)("div",{className:ve.invite,children:(0,R.jsx)(fe.Z,{browseFilter:Oe({role:e.role,skill:e.skill},e.remote?{}:{location:e.location}),bsStyle:"info",title:"Invite freelancers"})}),p>0&&(0,R.jsx)("div",{className:ve.pitches,children:(0,R.jsx)(c.Link,{to:e.links.ats_main_relative,children:(0,R.jsxs)("a",{children:[(0,R.jsx)(A.Z,{className:ve.inprogress,color:"primary",children:(0,R.jsx)("strong",{children:p})})," ","pending pitch",1!==p?"es":""]})})}),(0,R.jsx)("div",{className:ve.ctas,children:(0,R.jsx)(c.Link,{to:e.links.ats_main_relative,children:(0,R.jsx)(w.Z,{bsStyle:"primary",children:(0,R.jsxs)("strong",{children:[(0,R.jsx)("span",{className:ve.viewText,children:"View "}),"Pitches"]})})})})]}),r&&(0,R.jsx)(P.Z,{className:"mt",loading:!0}),l&&(0,R.jsx)(xe,{activeHires:o,briefId:this.props.brief.id})]})}}
1,Ne.propTypes={brief:o().object,status:o().string,getActiveAndCompletedHires:o().func,loadingActiveHires:o().bool,loadedActiveHires:o().bool,activeHires:o().array,updateBrief:o().func},_e=Ne))||_e;const ke=we;var Se=t("./src/config.js"),Ae=t("./node_modules/react-select/dist/react-select.esm.js"),Te=t("./src/helpers/Analytics.js");const Ze=t.p+"post-a-brief.6d18eb9a.png",Be=t.p+"search-creatives.e8149a94.png";var Le=t("./src/containers/Ads/ManageBriefsBanner/ManageBriefsBanner.js");const Me="_1a0OR_6F",He="yJ4tsAdq",Re="_1ZTavsgi",De="_1U6bV4fm";var Ee,Ie,Fe=(0,l.connect)((e=>({user:e.auth.user,suggestedRoles:e.suggestedRoles.suggestedRoles,loadingSuggestedRoles:e.suggestedRoles.loading,loadedSuggestedRoles:e.suggestedRoles.loaded,loadingAllBriefs:e.manageBriefs.loadingAllBriefs,loadedAllBriefs:e.manageBriefs.loadedAllBriefs,allBriefs:e.manageBriefs.allBriefs,loadingPartners:e.partners.loadingPartners,loadedPartners:e.partners.loadedPartners,partners:e.partners.partners})),{loadSuggestedRoles:v.zD,loadAllBriefs:g.S9,loadPartners:_.U,setSuccessMessage:f.GC})((Ie=class extends r.Component{constructor(e){var s;super(e),this.hasBriefs=()=>this.props.allBriefs&&this.props.allBriefs.length>0,this.handleChangeSearchRole=e=>{this.setState({selectedRole:void 0===e?void 0:e.label},(()=>{void 0!==this.state.selectedRole&&this.props.history.push((0,V.Wv)({role:this.state.selectedRole}))}))},this.showSuccessMessage=()=>{this.props.setSuccessMessage("Your payment has been processed successfully"),window.history.replaceState(null,null,"?")},this.state={selectedRole:void 0,testingPartners:null!==(s=e.location.query.testing)&&void 0!==s&&s}}componentDidMount(){(0,Te.L9)("user-landed-on-manage-briefs",{loggedIn:!!this.props.user,userType:this.props.user?this.props.user.type:"guest"});var{user:e,history:s}=this.props,{pathname:t,search:r}=window.location;if("/manage/briefs"===t){var n=document.referrer||"direct";return(0,Te.L9)("legacy_manage_briefs_url_visited",{oldUrl:"".concat(t).concat(r),referrer:n,userType:e?e.type:"guest",userId:e?e.id:null}),void s.replace("/ats".concat(r))}this.props.loadingAllBriefs||this.props.loadAllBriefs(this.props.user.id),this.props.loadPartners("manage_jobs",this.state.testingPartners),this.props.loadedSuggestedRoles||this.props.loadingSuggestedRoles||this.props.loadSuggestedRoles()}componentDidUpdate(e){var{loadedAllBriefs:s,loadedSuggestedRoles:t,location:r}=this.props;e.loadedAllBriefs===s&&e.loadedSuggestedRoles===t||(r.search||"").includes("payment-successful")&&s&&t&&this.showSuccessMessage()}render(){var{user:e,suggestedRoles:s,loadingSuggestedRoles:t,allBriefs:r,loadedAllBriefs:n}=this.props,{selectedRole:o}=this.state,a="";r&&(a=r.length>0?r.map((e=>{var s=i()(i().utc()).format("YYYY-MM-DD HH:mm:ss"),t="expired";return e.expires_at>s&&(t="live"),(0,R.jsx)(ke,{brief:e,status:t},e.id)})):"");var l="Manage your project briefs on Twine. Manage your project from start to finish through Twine. Get a quality freelancer for your project.";return(0,R.jsxs)("div",{className:"container",children:[(0,R.jsx)(d.Z,{title:"Manage your project briefs on Twine",link:[{rel:"canonical",href:"".concat(Se.Z.baseUrl,"/ats")}],meta:[{property:"description",content:l},{property:"og:description",content:l},{property:"twitter:description",content:l}]}),(0,R.jsxs)("h1",{className:Me,children:["Manage Jobs ",(0,R.jsx)("span",{className:"pointer hidden-xs"})]}),(0,R.jsx)(b(),{children:(0,R.jsx)(x(),{children:(0,R.jsx)(h(),{xs:12,className:He,children:(0,R.jsxs)("div",{children:[(0,R.jsx)("span",{children:(0,R.jsx)(c.Link,{to:"/jobs",children:" Jobs "})}),(0,R.jsx)("span",{children:"> Manage Jobs"}),e&&"seller"===e.type&&(0,R.jsx)("a",{href:"/post-a-job",children:(0,R.jsx)(m(),{bsStyle:"primary",id:"hire-a-creative-header-button-desktop",className:Re,children:"Post a job"})})]})})})}),!n&&(0,R.jsx)(P.Z,{className:"mt",loading:!0}),n&&!this.hasBriefs()&&(0,R.jsxs)("div",{children:[(0,R.jsx)("h3",{className:"lato-bold text-center fs-22",children:"Welcome to your manage jobs page"}),(0,R.jsx)("p",{className:"lato-regular text-center fs-16",children:"You don't have any job or project briefs. What would you like to do?"})]}),n&&this.hasBriefs()&&(0,R.jsx)(b(),{children:(0,R.jsx)(x(),{children:(0,R.jsx)(h(),{xs:12,style:{paddingLeft:"0px"},children:a})})}),(0,R.jsxs)(b(),{children:[(0,R.jsx)(x(),{children:(0,R.jsx)(h(),{xs:12,lg:8,lgOffset:2,children:(0,R.jsx)(Le.Z,{userLocationText:e.location.text,partners:this.props.partners,loadedPartners:this.props.loadedPartners})})}),n&&(0,R.jsxs)(x(),{className:"mb++",children:[(0,R.jsx)(h(),{xs:12,sm:6,lg:4,lgOffset:2,children:(0,R.jsxs)("div",{className:"bg-white p++ f jc-center ".concat(De),style:{alignItems:"center",border:"2px s
1olid #40a0f5",borderRadius:"4px"},children:[!this.hasBriefs()&&(0,R.jsx)("div",{style:{height:"158px",paddingTop:"22px"},children:(0,R.jsx)("img",{alt:"Twine",src:Ze,title:"Post a project brief"})}),(0,R.jsx)(m(),{bsStyle:"primary",bsSize:"lg",className:"lato-bold mt center",style:{margin:this.hasBriefs()?"24px 0":"34px 0"},href:"/post-a-job",children:"Post a job"})]})}),(0,R.jsx)(h(),{xs:12,sm:6,lg:4,children:(0,R.jsxs)("div",{className:"bg-white text-center p++",style:{border:"2px solid #0fe2af",borderRadius:"4px"},children:[!this.hasBriefs()&&(0,R.jsx)("div",{style:{height:"158px"},className:"mb",children:(0,R.jsx)("img",{alt:"Twine",src:Be,title:"Search for creatives"})}),(0,R.jsx)("p",{className:"lato-bold fs-22",children:"Search for a freelancer:"}),(0,R.jsx)(Ae.ZP,{isClearable:!1,options:s.filter((e=>{var{name:s}=e;return!/(agent|film agent|music agent|promoter|record label|artist manager|location manager)/.test(s.toLowerCase())})).map((e=>{var{name:s}=e;return{label:s,value:s}})),value:o?{label:o,value:o}:void 0,placeholder:"E.g: Graphic designer",className:"center mb",style:{width:"100%"},noOptionsMessage:()=>(0,R.jsx)("div",{className:"no-results-found",children:t?"loading roles...":"No roles found"}),onChange:this.handleChangeSearchRole})]})})]}),(0,R.jsx)(x(),{children:(0,R.jsx)(h(),{xs:12,lg:8,lgOffset:2,children:(0,R.jsxs)(N.Z,{children:[(0,R.jsx)("h3",{className:"lato-bold text-left fs-20 no-margin mb",children:"Help section:"}),(0,R.jsxs)("div",{className:"lato-regular fs-16",children:[(0,R.jsx)("p",{className:"no-margin",children:(0,R.jsx)("a",{href:"https://help.twine.net/en/category/clients-vvkuot/",title:"Help",children:"Visit our client help section"})}),(0,R.jsxs)("p",{className:"no-margin",children:["Got any questions?"," ",(0,R.jsx)("a",{href:"/contact",title:"Contact",children:"Contact the Twine team"})]})]})]})})})]})]})}},Ie.propTypes={loadedSuggestedRoles:o().bool,loadingSuggestedRoles:o().bool,loadSuggestedRoles:o().func,suggestedRoles:o().array,loadingAllBriefs:o().bool,loadedAllBriefs:o().bool,allBriefs:o().array,loadAllBriefs:o().func,loadingPartners:o().bool,loadedPartners:o().bool,partners:o().array,loadPartners:o().func,setSuccessMessage:o().func,location:o().object,user:o().object,history:o().object},Ee=Ie))||Ee},
1"./src/helpers/globalVariables.js":(e,s,t)=>{t.d(s,{T:()=>r});var r=25},
1"./src/components/BriefListingCard/BriefListingCard.module.scss":(e,s,t)=>{t.d(s,{Z:()=>r});const r={container:"_1VUA98J5",emptyAvatar:"_279iAn9b",emptyTitle:"_3VkhdxW0",labels:"_2lOyZBOK",emptyLabels:"_26_zssui",roleSkillPillButton:"_2jh7M8cl",budgetPillButton:"_1OaozGrO",description:"_1_BBMokf",emptyDescription:"_1XHD0jeB",dates:"_1x_cIddu",emptyDates:"_2b7eZDU2",bullet:"_2zqjX65d",ctas:"_1PXd85X_",emptyCta:"_28wwKudE",moreInfoButton:"dsjBG9LG",statusLabel:"_3tKZldjF",inProgress:"F1AsEtz0",completed:"_2uYBFdzt",inactive:"_9BV01n23",svgIconContainer:"_1UPfHOvo",briefTitleContainer:"_19GTZ4F6",briefTitle:"_1tckwgU2",briefBudgetStatusContainer:"xN9qA84r",briefBudgetIcons:"_26coMBd9",briefPopularityBadge:"_4sSpwzxF",popularityBadgeLabel:"_2bed7Wzk",lowPopularityBadgeLabel:"_1CzIaqlp"}},
vendor: 1,539 bytes, line 1
1"./node_modules/react-bootstrap/es/Checkbox.js":(e,s,t)=>{t.d(s,{Z:()=>h});var r=t("./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js"),n=t("./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js"),o=t("./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js"),a=t("./node_modules/classnames/index.js"),i=t.n(a),l=t("./node_modules/react/index.js"),c=t("./node_modules/prop-types/index.js"),d=t.n(c),u=(t("./node_modules/warning/browser.js"),t("./node_modules/react-bootstrap/es/utils/bootstrapUtils.js")),m={inline:d().bool,disabled:d().bool,title:d().string,validationState:d().oneOf(["success","warning","error",null]),inputRef:d().func},p=function(e){function s(){return e.apply(this,arguments)||this}return(0,o.Z)(s,e),s.prototype.render=function(){var e=this.props,s=e.inline,t=e.disabled,o=e.validationState,a=e.inputRef,c=e.className,d=e.style,m=e.title,p=e.children,h=(0,n.Z)(e,["inline","disabled","validationState","inputRef","className","style","title","children"]),j=(0,u.D9)(h),b=j[0],y=j[1],x=l.createElement("input",(0,r.Z)({},y,{ref:a,type:"checkbox",disabled:t}));if(s){var g,f=((g={})[(0,u.O4)(b,"inline")]=!0,g.disabled=t,g);return l.createElement("label",{className:i()(c,f),style:d,title:m},x,p)}var v=(0,r.Z)({},(0,u.Nj)(b),{disabled:t});return o&&(v["has-"+o]=!0),l.createElement("div",{className:i()(c,v),style:d},l.createElement("label",{title:m},x,p))},s}(l.Component);p.propTypes=m,p.defaultProps={inline:!1,disabled:!1,title:""};const h=(0,u.Pn)("checkbox",p)},
vendor: 1,160 bytes, line 1
1"./node_modules/react-bootstrap/es/ControlLabel.js":(e,s,t)=>{t.d(s,{Z:()=>j});var r=t("./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js"),n=t("./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js"),o=t("./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js"),a=t("./node_modules/classnames/index.js"),i=t.n(a),l=t("./node_modules/react/index.js"),c=t("./node_modules/prop-types/index.js"),d=t.n(c),u=(t("./node_modules/warning/browser.js"),t("./node_modules/react-bootstrap/es/utils/bootstrapUtils.js")),m={htmlFor:d().string,srOnly:d().bool},p={$bs_formGroup:d().object},h=function(e){function s(){return e.apply(this,arguments)||this}return(0,o.Z)(s,e),s.prototype.render=function(){var e=this.context.$bs_formGroup,s=e&&e.controlId,t=this.props,o=t.htmlFor,a=void 0===o?s:o,c=t.srOnly,d=t.className,m=(0,n.Z)(t,["htmlFor","srOnly","className"]),p=(0,u.D9)(m),h=p[0],j=p[1],b=(0,r.Z)({},(0,u.Nj)(h),{"sr-only":c});return l.createElement("label",(0,r.Z)({},j,{htmlFor:a,className:i()(d,b)}))},s}(l.Component);h.propTypes=m,h.defaultProps={srOnly:!1},h.contextTypes=p;const j=(0,u.Pn)("control-label",h)},
vendor: 1,616 bytes, line 1
1"./node_modules/react-bootstrap/es/FormGroup.js":(e,s,t)=>{t.d(s,{Z:()=>y});var r=t("./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js"),n=t("./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js"),o=t("./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js"),a=t("./node_modules/classnames/index.js"),i=t.n(a),l=t("./node_modules/react/index.js"),c=t("./node_modules/prop-types/index.js"),d=t.n(c),u=t("./node_modules/react-bootstrap/es/utils/bootstrapUtils.js"),m=t("./node_modules/react-bootstrap/es/utils/StyleConfig.js"),p=t("./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js"),h={controlId:d().string,validationState:d().oneOf(["success","warning","error",null])},j={$bs_formGroup:d().object.isRequired},b=function(e){function s(){return e.apply(this,arguments)||this}(0,o.Z)(s,e);var t=s.prototype;return t.getChildContext=function(){var e=this.props;return{$bs_formGroup:{controlId:e.controlId,validationState:e.validationState}}},t.hasFeedback=function(e){var s=this;return p.Z.some(e,(function(e){return"feedback"===e.props.bsRole||e.props.children&&s.hasFeedback(e.props.children)}))},t.render=function(){var e=this.props,s=e.validationState,t=e.className,o=e.children,a=(0,n.Z)(e,["validationState","className","children"]),c=(0,u.vD)(a,["controlId"]),d=c[0],m=c[1],p=(0,r.Z)({},(0,u.Nj)(d),{"has-feedback":this.hasFeedback(o)});return s&&(p["has-"+s]=!0),l.createElement("div",(0,r.Z)({},m,{className:i()(t,p)}),o)},s}(l.Component);b.propTypes=h,b.childContextTypes=j;const y=(0,u.Pn)("form-group",(0,u.F6)([m.$u.LARGE,m.$u.SMALL],b))},
vendor: 1,705 bytes, line 1
1"./node_modules/react-bootstrap/es/NavDropdown.js":(e,s,t)=>{t.d(s,{Z:()=>b});var r=t("./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js"),n=t("./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js"),o=t("./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js"),a=t("./node_modules/classnames/index.js"),i=t.n(a),l=t("./node_modules/react/index.js"),c=t("./node_modules/prop-types/index.js"),d=t.n(c),u=t("./node_modules/react-bootstrap/es/Dropdown.js"),m=t("./node_modules/react-bootstrap/es/utils/splitComponentProps.js"),p=t("./node_modules/react-bootstrap/es/utils/ValidComponentChildren.js"),h=(0,o.Z)({},u.Z.propTypes,{title:d().node.isRequired,noCaret:d().bool,active:d().bool,activeKey:d().any,activeHref:d().string,children:d().node}),j=function(e){function s(){return e.apply(this,arguments)||this}(0,n.Z)(s,e);var t=s.prototype;return t.isActive=function(e,s,t){var r=this,n=e.props;return!!(n.active||null!=s&&n.eventKey===s||t&&n.href===t)||(!!p.Z.some(n.children,(function(e){return r.isActive(e,s,t)}))||n.active)},t.render=function(){var e=this,s=this.props,t=s.title,n=s.activeKey,a=s.activeHref,c=s.className,d=s.style,h=s.children,j=(0,r.Z)(s,["title","activeKey","activeHref","className","style","children"]),b=this.isActive(this,n,a);delete j.active,delete j.eventKey;var y=(0,m.Z)(j,u.Z.ControlledComponent),x=y[0],g=y[1];return l.createElement(u.Z,(0,o.Z)({},x,{componentClass:"li",className:i()(c,{active:b}),style:d}),l.createElement(u.Z.Toggle,(0,o.Z)({},g,{useAnchor:!0}),t),l.createElement(u.Z.Menu,null,p.Z.map(h,(function(s){return l.cloneElement(s,{active:e.isActive(s,n,a)})}))))},s}(l.Component);j.propTypes=h;const b=j},
vendor: 1,529 bytes, line 1
1"./node_modules/react-bootstrap/es/Radio.js":(e,s,t)=>{t.d(s,{Z:()=>h});var r=t("./node_modules/@babel/runtime-corejs2/helpers/esm/extends.js"),n=t("./node_modules/@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose.js"),o=t("./node_modules/@babel/runtime-corejs2/helpers/esm/inheritsLoose.js"),a=t("./node_modules/classnames/index.js"),i=t.n(a),l=t("./node_modules/react/index.js"),c=t("./node_modules/prop-types/index.js"),d=t.n(c),u=(t("./node_modules/warning/browser.js"),t("./node_modules/react-bootstrap/es/utils/bootstrapUtils.js")),m={inline:d().bool,disabled:d().bool,title:d().string,validationState:d().oneOf(["success","warning","error",null]),inputRef:d().func},p=function(e){function s(){return e.apply(this,arguments)||this}return(0,o.Z)(s,e),s.prototype.render=function(){var e=this.props,s=e.inline,t=e.disabled,o=e.validationState,a=e.inputRef,c=e.className,d=e.style,m=e.title,p=e.children,h=(0,n.Z)(e,["inline","disabled","validationState","inputRef","className","style","title","children"]),j=(0,u.D9)(h),b=j[0],y=j[1],x=l.createElement("input",(0,r.Z)({},y,{ref:a,type:"radio",disabled:t}));if(s){var g,f=((g={})[(0,u.O4)(b,"inline")]=!0,g.disabled=t,g);return l.createElement("label",{className:i()(c,f),style:d,title:m},x,p)}var v=(0,r.Z)({},(0,u.Nj)(b),{disabled:t});return o&&(v["has-"+o]=!0),l.createElement("div",{className:i()(c,v),style:d},l.createElement("label",{title:m},x,p))},s}(l.Component);p.propTypes=m,p.defaultProps={inline:!1,disabled:!1,title:""};const h=(0,u.Pn)("radio",p)}
1}]); 2//# sourceMappingURL=ManageBriefs-ManageBriefs-6093afa189a45c9d6408.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.