/*! For license information please see feedback-collector.chunk.cc94dd0c0abb16b1f5c2.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[1624],{"0c1E":function(e,t,a){"use strict";a.r(t);var l=a("/m4v"),o=a("tOpy"),n=a("v0mk"),s=a("1y/S"),d=a("TK6r"),i=a("tGq4"),c=a("HCpi"),u=a("HKhc");const r=Object(o.createSelector)(i.l,i.i,d.c,d.d,d.a,d.b,c.b,(e,t,a,l,o,n,s)=>({name:t,showTypeField:l,additionalFields:o,CustomComponent:n,isOpen:a,email:e.email,env:s.environment})),b={hideFeedbackCollector:s.d,updateAdditionalFieldsInFeedbackCollector:s.f,showSuccessFlag:n.k};t.default=Object(l.b)(r,b)(u.a)},HKhc:function(e,t,a){"use strict";var l=a("mXGw"),o=a("I7SF"),n=a("PJU+"),s=a("MPKP"),d=a("HCpi"),i=a("fsjT"),c=a("YX0Q"),u=a("TRcq");const r=e=>({question:{fieldLabel:e.formatMessage(u.a.questionFieldLabel),selectOptionLabel:e.formatMessage(u.a.questionSelectOptionLabel)},comment:{fieldLabel:e.formatMessage(u.a.commentFieldLabel),selectOptionLabel:e.formatMessage(u.a.commentSelectOptionLabel)},bug:{fieldLabel:e.formatMessage(u.a.bugFieldLabel),selectOptionLabel:e.formatMessage(u.a.bugSelectOptionLabel)},suggestion:{fieldLabel:e.formatMessage(u.a.suggestionFieldLabel),selectOptionLabel:e.formatMessage(u.a.suggestionSelectOptionLabel)},empty:{fieldLabel:e.formatMessage(u.a.emptyFieldLabel),selectOptionLabel:e.formatMessage(u.a.emptySelectOptionLabel)}}),b=e=>{const{formatMessage:t}=Object(o.a)(),a=e.CustomComponent;return l.createElement(l.Fragment,null,t(u.a.feedbackPreambleTitleText,{p:e=>l.createElement("p",null,e),br:l.createElement("br",null)}),a&&l.createElement(a,null))},f=()=>{const{formatMessage:e}=Object(o.a)();return l.createElement("p",null,e(u.a.canContactLabelText,{a:e=>l.createElement("a",{href:c.a,target:"_blank",rel:"noopener noreferrer"},e)}))},m=()=>{const{formatMessage:e}=Object(o.a)();return l.createElement("p",null,e(u.a.enrolLabelText,{a:e=>l.createElement("a",{href:c.a,target:"_blank",rel:"noopener noreferrer"},e)}))};t.a=Object(n.c)(({email:e,name:t,isOpen:a,showTypeField:o,additionalFields:n,CustomComponent:p,intl:g,hideFeedbackCollector:h,showSuccessFlag:k,updateAdditionalFieldsInFeedbackCollector:F,env:y=Object(d.b)().environment})=>{const L=y===d.a.PROD?c.b:c.c,j=l.useCallback(()=>{h()},[]),C=l.useCallback(()=>{k(u.a.feedbackSentFlagTitle,void 0,u.a.feedbackSentFlagDescription)},[]),T=l.useCallback((e,t)=>{const a={...n};a[e]=t,F(a)},[n]),w=l.useMemo(()=>n?Object.entries(n).map(([e,t])=>({id:e,value:t})):[],[n]);return l.createElement("div",{"data-testid":"portal-feedback-collector"},a&&l.createElement(s.a,{onClose:j,onSubmit:C,email:e,name:t,requestTypeId:L.requestTypeId,embeddableKey:L.embeddableKey,feedbackTitle:g.formatMessage(u.a.feedbackTitle),showTypeField:o,feedbackTitleDetails:l.createElement(b,{CustomComponent:p?Object(i.a)({additionalFields:n,onChange:T})(p):void 0}),canBeContactedLabel:l.createElement(f,null),enrolInResearchLabel:l.createElement(m,null),summaryPlaceholder:g.formatMessage(u.a.summaryPlaceholder),customerNameFieldId:L.customerNameFieldId,canBeContactedFieldId:L.canBeContactedField.fieldId,canBeContactedDefaultValue:L.canBeContactedField.defaultValue,enrollInResearchFieldId:L.enrollInResearchField.fieldId,enrollInResearchDefaultValue:L.enrollInResearchField.defaultValue,typeFieldId:L.typeField.fieldId,typeBugDefaultValue:L.typeField.bugDefaultValue,typeCommentDefaultValue:L.typeField.commentDefaultValue,typeSuggestionDefaultValue:L.typeField.suggestionDefaultValue,typeQuestionDefaultValue:L.typeField.questionDefaultValue,typeEmptyDefaultValue:L.typeField.emptyDefaultValue,submitButtonLabel:g.formatMessage(u.a.submitButtonLabel),cancelButtonLabel:g.formatMessage(u.a.cancelButtonLabel),feedbackGroupLabels:r(g),additionalFields:w}))})},TK6r:function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return s}));const l=e=>e.ui.feedbackCollector.shouldOpenFeedbackWidget,o=e=>e.ui.feedbackCollector.showTypeField,n=e=>e.ui.feedbackCollector.additionalFields,s=e=>e.ui.feedbackCollector.CustomComponent},TRcq:function(e,t,a){"use strict";var l=a("GXOG");t.a=Object(l.c)({feedbackPreambleTitleText:{defaultMessage:"

Your thoughts are valuable in helping improve our products.

{br}",description:"Feedback Preamble Title",id:"sd.feedback.collector.feedback.preamble.title.text"},canContactLabelText:{defaultMessage:"Atlassian can contact me about this feedback. See our privacy policy",description:"Can Contact Label Text",id:"sd.feedback.collector.can.contact.label.text"},enrolLabelText:{defaultMessage:"I'd like to help improve Atlassian products by joining the Atlassian Research Group",description:"Enrol Label",id:"sd.feedback.collector.enrol.label.text"},feedbackTitle:{defaultMessage:"Share your thoughts",description:"Feedback Title",id:"sd.feedback.collector.feedback.title"},summaryPlaceholder:{defaultMessage:"Let us know what's on your mind",description:"Summary Placeholder",id:"sd.feedback.collector.summary.placeholder"},questionSelectOptionLabel:{defaultMessage:"Ask a question",description:"Select option label for Question",id:"sd.feedback.collector.question.select.option.label"},questionFieldLabel:{defaultMessage:"What would you like to know?",description:"Label to be shown when user chooses question from drop down",id:"sd.feedback.collector.question.field.label"},commentSelectOptionLabel:{defaultMessage:"Leave a comment",description:"Select option label for Comment",id:"sd.feedback.collector.comment.select.option.label"},commentFieldLabel:{defaultMessage:"Let us know what's on your mind",description:"Label to be shown when user chooses comment from drop down",id:"sd.feedback.collector.comment.field.label"},bugSelectOptionLabel:{defaultMessage:"Report a bug",description:"Select option label for Bug",id:"sd.feedback.collector.bug.select.option.label"},bugFieldLabel:{defaultMessage:"Describe the bug or issue",description:"Label to be shown when user chooses bug from drop down",id:"sd.feedback.collector.bug.field.label"},suggestionSelectOptionLabel:{defaultMessage:"Suggest an improvement",description:"Select option label for Suggestion",id:"sd.feedback.collector.suggestion.select.option.label"},suggestionFieldLabel:{defaultMessage:"Let us know what you'd like to improve",description:"Label to be shown when user chooses Suggestion from drop down",id:"sd.feedback.collector.suggestion.field.label"},emptySelectOptionLabel:{defaultMessage:"I want to...",description:"Select option label for Empty",id:"sd.feedback.collector.empty.select.option.label"},emptyFieldLabel:{defaultMessage:"Select an option",description:"Label to be shown when user chooses Empty from drop down",id:"sd.feedback.collector.empty.field.label"},submitButtonLabel:{defaultMessage:"Send feedback",description:"Submit Button Label",id:"sd.feedback.collector.submit.button.label"},cancelButtonLabel:{defaultMessage:"Cancel",description:"Cancel Button Label",id:"sd.feedback.collector.cancel.button.label"},feedbackSentFlagTitle:{defaultMessage:"Thanks",description:"Feedback Sent Flag Title",id:"sd.feedback.collector.feedback.sent.flag.title"},feedbackSentFlagDescription:{defaultMessage:"Your valuable feedback helps us continually improve our products.",description:"Feedback Title",id:"sd.feedback.collector.feedback.sent.flag.description"}})},YX0Q:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"c",(function(){return o})),a.d(t,"b",(function(){return n}));const l="https://support.atlassian.com/contact/#/",o={embeddableKey:"9923424e-09ae-489b-8dd8-4c2e3b68c9f9",requestTypeId:"263",typeField:{fieldId:"customfield_10105",bugDefaultValue:{id:"10311"},commentDefaultValue:{id:"10312"},suggestionDefaultValue:{id:"10313"},questionDefaultValue:{id:"10314"},emptyDefaultValue:{id:"10315"}},customerNameFieldId:"customfield_10104",canBeContactedField:{fieldId:"customfield_10106",defaultValue:"Yes"},enrollInResearchField:{fieldId:"customfield_10107",defaultValue:{id:"10316"}}},n={embeddableKey:"89a920ff-0dca-4035-9428-b7e418c4a4c6",requestTypeId:"34",typeField:{fieldId:"customfield_10075",bugDefaultValue:{id:"10171"},commentDefaultValue:{id:"10172"},suggestionDefaultValue:{id:"10173"},questionDefaultValue:{id:"10174"},emptyDefaultValue:{id:"10175"}},customerNameFieldId:"customfield_10033",canBeContactedField:{fieldId:"customfield_10038",defaultValue:"Yes"},enrollInResearchField:{fieldId:"customfield_10074",defaultValue:{id:"10169"}}}},fsjT:function(e,t,a){"use strict";var l=a("8VmE"),o=a.n(l),n=a("mXGw");t.a=e=>t=>{const a=a=>n.createElement(t,o()({},a,{onChange:e.onChange,additionalFields:e.additionalFields}));return a.displayName="WithAdditionalFieldsComponent",a}},scTB:function(e,t,a){var l={"./":["etvh",48],"./cs":["qyaL",91],"./cs.js":["qyaL",91],"./da":["k7u5",92],"./da.js":["k7u5",92],"./de":["qqFd",93],"./de.js":["qqFd",93],"./en":["NY+J",94],"./en.js":["NY+J",94],"./en_GB":["SbHE",95],"./en_GB.js":["SbHE",95],"./en_ZZ":["jFNf",96],"./en_ZZ.js":["jFNf",96],"./es":["cL+N",97],"./es.js":["cL+N",97],"./fi":["at8y",98],"./fi.js":["at8y",98],"./fr":["FXui",99],"./fr.js":["FXui",99],"./hu":["uOk8",100],"./hu.js":["uOk8",100],"./index":["etvh",48],"./index.js":["etvh",48],"./it":["oTBw",101],"./it.js":["oTBw",101],"./ja":["z2Bn",102],"./ja.js":["z2Bn",102],"./ko":["U/uU",103],"./ko.js":["U/uU",103],"./nb":["0Nyc",104],"./nb.js":["0Nyc",104],"./nl":["jnSW",105],"./nl.js":["jnSW",105],"./pl":["34j/",106],"./pl.js":["34j/",106],"./pt_BR":["Qmh0",107],"./pt_BR.js":["Qmh0",107],"./ru":["1pYQ",108],"./ru.js":["1pYQ",108],"./sv":["r3tP",109],"./sv.js":["r3tP",109],"./th":["XGvK",110],"./th.js":["XGvK",110],"./tr":["A56X",111],"./tr.js":["A56X",111],"./uk":["yAiQ",112],"./uk.js":["yAiQ",112],"./vi":["sc5G",113],"./vi.js":["sc5G",113],"./zh":["MOLT",114],"./zh.js":["MOLT",114],"./zh_TW":["BtAC",115],"./zh_TW.js":["BtAC",115]};function o(e){if(!a.o(l,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=l[e],o=t[0];return a.e(t[1]).then((function(){return a(o)}))}o.keys=function(){return Object.keys(l)},o.id="scTB",e.exports=o}}]); //# sourceMappingURL=../sourcemaps/feedback-collector.chunk.cc94dd0c0abb16b1f5c2.js.map