EVOLUTION-MANAGER
Edit File: 444-1136958997f68805c0d5.js
"use strict";(self.webpackChunkfont_awesome_admin=self.webpackChunkfont_awesome_admin||[]).push([[444,27,587],{3119:(e,t,n)=>{n.d(t,{A:()=>d});var o=n(6677),a=n(5556),s=n.n(a);const c={alert:"lX8h3LbX6kaLN7_hLhlw","alert-icon":"nx2ZqeD9AnYnPnKHAqKJ","alert-title":"ovRzytWn5jGccLKV78T9","alert-message":"M_C6Dj_EqhO8IuY52iA6","alert-action":"liWjpcvKZkKaYPsJjQPA","alert-warning":"MLwfZfK5uVZOtIHI1cdt"};var l=n(6942),r=n.n(l),i=n(6784),m=n(6188);function u(e={}){return(0,o.createElement)("div",{className:r()(c.alert,c[`alert-${e.type}`]),role:"alert"},(0,o.createElement)("div",{className:c["alert-icon"]},function(e={}){switch(e.type){case"info":return(0,o.createElement)(i.g,{icon:m.iW_,title:"info",fixedWidth:!0});case"warning":default:return(0,o.createElement)(i.g,{icon:m.zpE,title:"warning",fixedWidth:!0});case"pending":return(0,o.createElement)(i.g,{icon:m.z1G,title:"pending",spin:!0,fixedWidth:!0});case"success":return(0,o.createElement)(i.g,{icon:m.Wcv,title:"success",fixedWidth:!0})}}(e)),(0,o.createElement)("div",{className:c["alert-message"]},(0,o.createElement)("h2",{className:c["alert-title"]},e.title),(0,o.createElement)("div",{className:c["alert-copy"]},e.children)))}u.propTypes={title:s().string.isRequired,type:s().oneOf(["info","warning","success","pending"]),children:s().oneOfType([s().object,s().string,s().arrayOf(s().element)]).isRequired};const d=u},192:(e,t,n)=>{n.d(t,{A:()=>_});var o=n(6677),a=n(5556),s=n.n(a),c=n(2896),l=n(6312),r=n(2037),i=n.n(r),m=n(962),u=n.n(m),d=n(2806);const p=86400,f=3600,E=60;function h(e){const t=Math.floor(e/p),n=Math.floor((e-t*p)/f),o=Math.floor((e-(t*p+n*f))/E),a=e-(t*p+n*f+o*E);return u()([t,n,o,a].reduce(((e,t,n)=>(0===n&&0!==t?e.push(t.toString()):e.push(i()(t.toString(),2,"0")),e)),[]),(e=>e.match(/^[0]+$/))).join(":")}function g(e){const t=e-Math.floor(new Date/1e3);return t<0?0:t}function _({addDescription:e,children:t}){const n=(0,c.d4)((e=>e.detectConflictsUntil)),[a,s]=(0,o.useState)(g(n)),r=(0,c.wA)();return(0,o.useEffect)((()=>{let e=null;return g(n)>0?e=setTimeout((()=>s(g(n))),1e3):(s(h(0)),r({type:"CONFLICT_DETECTION_TIMER_EXPIRED"})),()=>e&&clearTimeout(e)}),[n,a,r]),a<=0?null:(0,o.createElement)("span",{className:l.A["conflict-detection-timer"]},h(a),!!e&&(a>60 /* translators: 1: space */?(0,d.sprintf)((0,d.__)("%1$sminutes left to browse your site for trouble","font-awesome")," ") /* translators: 1: space */:(0,d.sprintf)((0,d.__)("%1$sseconds left to browse your site for trouble","font-awesome")," ")),t)}_.propTypes={addDescription:s().bool}},3002:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(6677),a=n.n(o);var s=n(3119),c=n(2806);const l=(0,o.createElement)(s.A,{title:(0,c.__)("Whoops, this is embarrassing","font-awesome"),type:"warning"},(0,o.createElement)("p",null,(0,c.__)("Some unexpected error has occurred. There might be some additional diagnostic information in the JavaScript console.","font-awesome"))),r=function(){return(0,o.createElement)("div",{className:"iVV55iNB320NJJLspy7m"},l)};var i=n(9458);class m extends a().Component{constructor(e){super(e),this.state={error:null,errorInfo:null}}componentDidCatch(e,t){console.group(i.V2),console.log(e),console.log(t),console.groupEnd(),this.setState({error:e,errorInfo:t})}render(){return this.state.error?(0,o.createElement)(r,null):this.props.children}}const u=m},4627:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(5597);const a=o.createInterpolateElement||o.__experimentalCreateInterpolateElement},7444:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ie});var o=n(6677),a=n(6175),s=n.n(a),c=n(3002),l=n(2896),r=n(6942),i=n.n(r);const m={"pseudo-elements-screenshot":"uL1wb8HtJb_0IkG3PeEN","tab-header":"VJ5yoahvOPmye_Iv2x78"};var u=n(5027),d=n(6784),p=n(6188),f=n(7897);const E={"release-provider-error":"GfbntzmAC3JXYwdY57Hz","warning-banner":"nkCRdVrm4cTGk23nWmwZ","option-header":"_V54L7D6KbeTsNGQHyuu","option-status":"jH1jbDhGqqv7Grbj6p5p","option-choices":"KYI6mFOoLc2LXE3_WOAV","option-choice":"uMUQXnIQhpFojiorojGR","option-choice-container":"Q3PqTXZI2xQbQuon9Brf","option-explanation":"p0FxJ9gY4EvqdrEJ5pDs","option-label":"rr6y9ViQbhSy0YAp3Svc","option-label-text":"d104q4pTcfNp1fl3EEwj","option-divider":"pFNsNzsa6QtxNtsHMsos","options-setter":"x21UupVYDcbhJEXG_vuB",features:"elGAHNDAzrtnF0LZNYl_","option-label-explanation":"FHOPD8z6_efjfjjQHK9B","checking-option-status-indicator":"kP55KzmQ_7zoJ5baS76k"};var h=n(6312),g=n(1448),_=n.n(g),N=n(7091),w=n.n(N),b=n(3119),v=n(5556),y=n.n(v),A=n(8156),k=n.n(A),S=n(2806);const T="";function C({useOption:e,handleSubmit:t}){const n=e("usePro"),a=e("technology"),s=e("version"),c=e("compat"),r=e("pseudoElements"),m=!!s.match(/^6\./),g=(0,l.d4)((e=>e.pendingOptions)),N=(0,l.d4)((e=>e.pendingOptionConflicts)),v=(0,l.d4)((e=>e.preferenceConflictDetection.hasChecked)),y=(0,l.d4)((e=>e.preferenceConflictDetection.success)),A=(0,l.d4)((e=>e.preferenceConflictDetection.message)),C=(0,l.d4)((e=>{const{releases:{available:t,latest_version_5:n,latest_version_6:o}}=e;return t.reduce(((e,t)=>(e[t]=n===t?`${t} (latest 5.x)`:o===t?`${t} (latest)`:t,e)),{})})),x=(0,l.wA)();function O(e={},t=!0){const n=k()(e,"technology"),o=n?"webfont"===n?{...e,pseudoElements:!0}:{...e,pseudoElements:!1}:e;x((0,u.addPendingOption)(o)),t&&x((0,u.checkPreferenceConflicts)())}function D(e){return _()(g,e)?v&&!y?(0,o.createElement)(b.A,{title:(0,S.__)("Error checking preferences","font-awesome"),type:"warning"},(0,o.createElement)("p",null,A)):_()(N,e)?(0,o.createElement)(b.A,{title:(0,S.__)("Preference Conflict","font-awesome"),type:"warning"},w()(N[e])>1?(0,o.createElement)("div",null,(0,S.__)("This change might cause problems for these themes or plugins","font-awesome"),": ",N[e].join(", "),"."):(0,o.createElement)("div",null,(0,S.__)("This change might cause problems for the theme or plugin","font-awesome"),": ",N[e][0],".")):null:null}return(0,o.createElement)("div",{className:i()(E["options-setter"])},(0,o.createElement)("form",{onSubmit:e=>e.preventDefault()},(0,o.createElement)("div",{className:i()(h.A.flex,h.A["flex-row"])},(0,o.createElement)("div",{className:E["option-header"]},"Icons"),(0,o.createElement)("div",{className:E["option-choice-container"]},(0,o.createElement)("div",{className:E["option-choices"]},(0,o.createElement)("div",{className:E["option-choice"]},(0,o.createElement)("input",{id:"code_edit_icons_pro",name:"code_edit_icons",type:"radio",checked:n,onChange:()=>O({usePro:!0}),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"code_edit_icons_pro",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.GEE,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,o.createElement)("span",{className:E["option-label-text"]},"Pro"))),(0,o.createElement)("div",{className:E["option-choice"]},(0,o.createElement)("input",{id:"code_edit_icons_free",name:"code_edit_icons",type:"radio",checked:!n,onChange:()=>O({usePro:!1}),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"code_edit_icons_free",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,size:"lg",fixedWidth:!0,className:h.A["checked-icon"]}),(0,o.createElement)(d.g,{icon:f.GEE,size:"lg",fixedWidth:!0,className:h.A["unchecked-icon"]})),(0,o.createElement)("span",{className:E["option-label-text"]},"Free")))),n&&m&&(0,o.createElement)(b.A,{title:(0,S.__)("Heads up! Pro Version 6 is not available from CDN","font-awesome"),type:"warning"},(0,o.createElement)("p",null,'You can, however, use a Kit. Make sure you have a paid subscription and select "Use a Kit" above. We\'ll walk you through the other details from there.')),n&&!m&&(0,o.createElement)(b.A,{title:(0,S.__)("Heads up! Pro requires a Font Awesome subscription","font-awesome"),type:"info"},(0,o.createElement)("p",null,"And you need to add your WordPress site to the allowed domains for your CDN."),(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,o.createElement)("a",{rel:"noopener noreferrer",target:"_blank",href:"https://fontawesome.com/account/cdn"},(0,S.__)("Manage my allowed domains","font-awesome"),(0,o.createElement)(d.g,{icon:p.AaJ,style:{marginLeft:".5em"}}))),(0,o.createElement)("li",null,(0,o.createElement)("a",{rel:"noopener noreferrer",target:"_blank",href:"https://fontawesome.com/pro"},(0,S.__)("Get Pro","font-awesome"),(0,o.createElement)(d.g,{icon:p.AaJ,style:{marginLeft:".5em"}}))))),D("usePro"))),(0,o.createElement)("hr",{className:E["option-divider"]}),(0,o.createElement)("div",{className:i()(h.A.flex,h.A["flex-row"])},(0,o.createElement)("div",{className:E["option-header"]},(0,S.__)("Technology","font-awesome")),(0,o.createElement)("div",{className:E["option-choice-container"]},(0,o.createElement)("div",{className:E["option-choices"]},(0,o.createElement)("div",{className:E["option-choice"]},(0,o.createElement)("input",{id:"code_edit_tech_svg",name:"code_edit_tech",type:"radio",checked:"svg"===a,onChange:()=>O({technology:"svg"}),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"code_edit_tech_svg",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.GEE,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,o.createElement)("span",{className:E["option-label-text"]},(0,S.__)("SVG","font-awesome")))),(0,o.createElement)("div",{className:E["option-choice"]},(0,o.createElement)("input",{id:"code_edit_tech_webfont",name:"code_edit_tech",type:"radio",checked:"webfont"===a,onChange:()=>O({technology:"webfont",pseudoElements:!1}),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"code_edit_tech_webfont",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,size:"lg",fixedWidth:!0,className:h.A["checked-icon"]}),(0,o.createElement)(d.g,{icon:f.GEE,size:"lg",fixedWidth:!0,className:h.A["unchecked-icon"]})),(0,o.createElement)("span",{className:E["option-label-text"]},(0,S.__)("Web Font","font-awesome"),"webfont"===a&&(0,o.createElement)("span",{className:E["option-label-explanation"]},(0,S.__)("CSS Pseudo-elements are enabled by default with Web Font","font-awesome")))))),D("technology"))),(0,o.createElement)("div",{className:i()(h.A.flex,h.A["flex-row"])},(0,o.createElement)("div",{className:E["option-header"]}),(0,o.createElement)("div",{className:E["option-choice-container"],style:{marginTop:"1em"}},"svg"===a&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("input",{id:"code_edit_features_pseudo_elements",name:"code_edit_features",type:"checkbox",checked:r,onChange:()=>O({pseudoElements:!r}),className:i()(h.A["sr-only"],h.A["input-checkbox-custom"])}),(0,o.createElement)("label",{htmlFor:"code_edit_features_pseudo_elements",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.rQb,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.Nfw,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,o.createElement)("span",{className:E["option-label-text"]},(0,S.__)("Enable CSS Pseudo-elements with SVG","font-awesome"),(0,o.createElement)("span",{className:E["option-label-explanation"]},(0,S.__)("May cause performance issues.","font-awesome")," ",(0,o.createElement)("a",{rel:"noopener noreferrer",target:"_blank",style:{marginLeft:".5em"},href:"https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements"},(0,S.__)("Learn more","font-awesome")," ",(0,o.createElement)(d.g,{icon:p.AaJ,style:{marginLeft:".5em"}}))))),D("pseudoElements")))),(0,o.createElement)("hr",{className:E["option-divider"]}),(0,o.createElement)("div",{className:i()(h.A.flex,h.A["flex-row"])},(0,o.createElement)("div",{className:E["option-header"]},"Version"),(0,o.createElement)("div",{className:E["option-choice-container"]},(0,o.createElement)("div",{className:E["option-choices"]},(0,o.createElement)("select",{className:E["version-select"],name:"version",onChange:e=>O({version:e.target.value}),value:s},Object.keys(C).map(((e,t)=>(0,o.createElement)("option",{key:t,value:e},e===T?"-":C[e]))))),D("version"))),(0,o.createElement)("hr",{className:E["option-divider"]}),(0,o.createElement)("div",{className:i()(h.A.flex,h.A["flex-row"],E.features)},(0,o.createElement)("div",{className:E["option-header"]},"Older Version Compatibility"),(0,o.createElement)("div",{className:E["option-choice-container"]},(0,o.createElement)("div",{className:E["option-choices"]},(0,o.createElement)("div",{className:E["option-choice"]},(0,o.createElement)("input",{id:"code_edit_compat_on",name:"code_edit_compat_on",type:"radio",value:c,checked:c,onChange:()=>O({compat:!c}),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"code_edit_compat_on",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.GEE,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,o.createElement)("span",{className:E["option-label-text"]},(0,S.__)("On","font-awesome")))),(0,o.createElement)("div",{className:E["option-choice"]},(0,o.createElement)("input",{id:"code_edit_v4_compat_off",name:"code_edit_v4_compat_off",type:"radio",value:!c,checked:!c,onChange:()=>O({compat:!c}),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"code_edit_v4_compat_off",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,size:"lg",fixedWidth:!0,className:h.A["checked-icon"]}),(0,o.createElement)(d.g,{icon:f.GEE,size:"lg",fixedWidth:!0,className:h.A["unchecked-icon"]})),(0,o.createElement)("span",{className:E["option-label-text"]},(0,S.__)("Off","font-awesome"))))),D("compat")))))}C.propTypes={useOption:y().func.isRequired,handleOptionChange:y().func.isRequired,handleSubmit:y().func.isRequired};const x={"kit-tab-content":"kaJ7ZfPW8LYXB3jcG1xM","field-apitoken":"iw1ugzHiscI8cdqPxDt5","api-token-control-wrapper":"DnA1Iv_lwCTNSAFQGrON","api-token-control":"Pnf8O2SgfIFmVM0PSv3Z","api-token-update":"kjodIeFA7B16RQcru0GW","token-saved":"A0_oAmpyVJ9wdtADndGQ",remove:"HfzrDbHUd_u1i9ndGEBR","button-group":"elgzg717O9Crp2uzkrTD","button-dismissable":"V9u2jF9aJPfN0wX4PDVS","wrap-active-kit":"wziOBkVmZ17vJu2Sz35G","active-kit":"DFhEV9q8j6_YiAqxGCIQ",set:"y9VOhnGapgfPZMY_1Bh6",none:"czVzoPvuSXhcttrzFc9L","wrap-selectkit":"ngog_nfdj6MCATJVipdj","title-selectkit":"S_T55Hlv5ASeRm2CyHmV",selectkit:"fy5GsBzkO8Epk2RR04LH",refresh:"fNJ_UaCGqOZxk72kjIDA","kit-selector-container":"SstVIjmK5UOaiy_ltjXE","kit-select":"vdGJ8TWieYuqqCakSyHG","kit-config-view-container":"gJq7WtlHzhBcjrgjABY8","selected-kit-settings":"o1IZC2E8wgWEslXswxvX",label:"W3xNRcvtnX8v6hHiakrQ",value:"HS7POK_5ddxGDSTzJHun","tip-text":"co95Sqvd5n7VgX7SM5jt"};function O({useOption:e,masterSubmitButtonShowing:t,setMasterSubmitButtonShowing:n}){const a=(0,l.wA)(),s=(0,l.d4)((e=>e.options.kitToken)),c=e("kitToken"),[r,m]=(0,o.useState)(null),[E,g]=(0,o.useState)(!1),[_,N]=(0,o.useState)(!1),v=(0,l.d4)((e=>null!==r?r:e.options.apiToken)),y=(0,l.d4)((e=>e.kits))||[],A=(0,l.d4)((e=>e.optionsFormState.hasSubmitted)),k=(0,l.d4)((e=>e.optionsFormState.success)),T=(0,l.d4)((e=>e.optionsFormState.message)),C=(0,l.d4)((e=>e.optionsFormState.isSubmitting)),O=(0,l.d4)((e=>e.kitsQueryStatus)),D=(0,o.createRef)(),[I,P]=(0,o.useState)(!1);(0,o.useEffect)((()=>{D.current&&I&&D.current.focus()}));const R=(0,l.d4)((e=>!!e.options.apiToken));function F(){return(0,o.useEffect)((()=>{k&&_&&(N(!1),n(!0))})),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:i()(x["field-apitoken"],{[x["api-token-update"]]:_})},(0,o.createElement)("label",{htmlFor:"api_token"},(0,o.createElement)(d.g,{className:h.A.icon,icon:f.wRm,size:"lg"}),(0,S.__)("API Token","font-awesome")),(0,o.createElement)("div",null,(0,o.createElement)("input",{id:"api_token",name:"api_token",type:"text",ref:D,value:r||"",size:"20",onChange:e=>{P(!0),m(e.target.value)}}),(0,o.createElement)("p",null,(0,S.__)("Grab your secure and unique API token from your Font Awesome account page and enter it here so we can securely fetch your kits.","font-awesome")," ",(0,o.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://fontawesome.com/account#api-tokens"},(0,S.__)("Get your API token on fontawesome.com","font-awesome")," ",(0,o.createElement)(d.g,{icon:p.AaJ,style:{marginLeft:".5em"}}))))),(0,o.createElement)("div",{className:"submit"},(0,o.createElement)("input",{type:"submit",name:"submit",id:"submit",className:"button button-primary",value:(0,S.__)("Save API Token","font-awesome"),disabled:!r,onMouseDown:()=>{a((0,u.updateApiToken)({apiToken:r,runQueryKits:!0})),m(null)}}),A&&!k&&(0,o.createElement)("div",{className:i()(h.A["submit-status"],h.A.fail)},(0,o.createElement)("div",{className:i()(h.A["fail-icon-container"])},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.B0L})),(0,o.createElement)("div",{className:h.A.explanation},T)),C&&(0,o.createElement)("span",{className:i()(h.A["submit-status"],h.A.submitting)},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.z1G,spin:!0})),_&&!C&&(0,o.createElement)("button",{onClick:()=>(N(!1),n(!0),void a((0,u.resetOptionsFormState)())),className:x["button-dismissable"]},(0,S.__)("Nevermind","font-awesome"))))}return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:x["kit-tab-content"]},R?(0,o.createElement)(o.Fragment,null,(0,o.createElement)((function(){return(0,o.createElement)("div",{className:x["api-token-control-wrapper"]},(0,o.createElement)("div",{className:i()(x["api-token-control"],{[x["api-token-update"]]:_})},_?(0,o.createElement)(F,null):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:x["token-saved"]},(0,o.createElement)("span",null,(0,o.createElement)(d.g,{className:h.A.icon,icon:f.SGM,size:"lg"})),(0,S.__)("API Token Saved","font-awesome")),!!v&&(0,o.createElement)("div",{className:x["button-group"]},(0,o.createElement)("button",{onClick:()=>(a((0,u.resetOptionsFormState)()),N(!0),n(!1),void g(!1)),className:x.refresh,type:"button"},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.VNe,title:"update",alt:"update"}),(0,o.createElement)("span",null,(0,S.__)("Update token","font-awesome"))),(0,o.createElement)("button",{onClick:()=>{s?g(!0):a((0,u.updateApiToken)({apiToken:!1}))},className:x.remove,type:"button"},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.BeE,title:"remove",alt:"remove"}))))),E&&(0,o.createElement)("div",{className:x["api-token-control-alert-wrapper"]},(0,o.createElement)(b.A,{title:(0,S.__)("Whoa, whoa, whoa!","font-awesome"),type:"warning"},(0,S.__)('You can\'t remove your API token when "Use a Kit" is active. Switch to "Use CDN" first.',"font-awesome"))))}),null),(0,o.createElement)((function(){const e=v?O.isSubmitting?"querying":O.hasSubmitted?O.success?w()(y)>0?"kitSelection":"noKitsFoundAfterQuery":"networkError":s?"showingOnlyActiveKit":"apiTokenReadyNoKitsYet":"noApiToken",n=(0,o.createElement)("button",{onClick:()=>a((0,u.queryKits)()),className:x.refresh},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.yek,title:"refresh",alt:"refresh"}),(0,o.createElement)("span",null,0===w()(y)?(0,S.__)("Get latest kits data","font-awesome"):(0,S.__)("Refresh kits data","font-awesome"))),l=s?(0,o.createElement)("div",{className:x["wrap-active-kit"]},(0,o.createElement)("p",{className:i()(x["active-kit"],x.set)},(0,o.createElement)(d.g,{className:h.A.icon,icon:f.SGM,size:"lg"}),(0,S.sprintf)((0,S.__)("%s Kit is Currently Active"),s))):null;return(0,o.createElement)("div",{className:x["kit-selector-container"]},l,(0,o.createElement)("div",{className:x["wrap-selectkit"]},(0,o.createElement)("h3",{className:x["title-selectkit"]},(0,o.createElement)(d.g,{className:h.A.icon,icon:f.wRm,size:"lg"}),(0,S.__)("Pick a Kit to Use or Check Settings","font-awesome")),(0,o.createElement)("div",{className:x.selectkit},(0,o.createElement)("p",null,(0,S.__)("Refresh your kits data to get the latest kit settings, then select the kit you would like to use. Remember to save when you're ready to use it.","font-awesome")),{noApiToken:"noApiToken",apiTokenReadyNoKitsYet:(0,o.createElement)(o.Fragment,null,l," ",n),querying:(0,o.createElement)("div",null,(0,o.createElement)("span",null,(0,S.__)("Loading your kits...","font-awesome")),(0,o.createElement)("span",{className:i()(h.A["submit-status"],h.A.submitting)},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.z1G,spin:!0}))),networkError:(0,o.createElement)("div",{className:i()(h.A["submit-status"],h.A.fail)},(0,o.createElement)("div",{className:i()(h.A["fail-icon-container"])},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.B0L})),(0,o.createElement)("div",{className:h.A.explanation},O.message)),noKitsFoundAfterQuery:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(b.A,{title:"Zoinks! Looks like you don't have any kits set up yet.",type:"info"},(0,o.createElement)("p",null,(0,S.__)("Head over to Font Awesome to create one, then come back here and refresh your kits.","font-awesome")," ",(0,o.createElement)("a",{rel:"noopener noreferrer",target:"_blank",href:"https://fontawesome.com/kits"},(0,S.__)("Create a kit on Font Awesome","font-awesome")," ",(0,o.createElement)(d.g,{icon:p.AaJ})))),n),kitSelection:(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:x["field-kitselect"]},(0,o.createElement)("select",{className:x["kit-select"],id:"kits",name:"kit",onChange:e=>function({kitToken:e}){if(""===e)return;const t=(y||[]).find((t=>t.token===e));if(!t)throw new Error((0,S.sprintf)((0,S.__)("When selecting to use kit %s, somehow the information we needed was missing. Try reloading the page."),e));a(s===e?(0,u.resetPendingOptions)():(0,u.addPendingOption)({kitToken:e,technology:"svg"===t.technologySelected?"svg":"webfont",usePro:"pro"===t.licenseSelected,compat:t.shimEnabled,version:t.version,pseudoElements:"svg"!==t.technologySelected})),a((0,u.checkPreferenceConflicts)())}({kitToken:e.target.value}),disabled:!t,value:c||""},(0,o.createElement)("option",{key:"empty",value:""},(0,S.__)("Select a kit","font-awesome")),y.map(((e,t)=>(0,o.createElement)("option",{key:t,value:e.token},`${e.name} (${e.token})`)))),n)),showingOnlyActiveKit:(0,o.createElement)(o.Fragment,null,n)}[e])))}),null)):(0,o.createElement)(F,null)))}O.propTypes={useOption:y().func.isRequired,handleOptionChange:y().func.isRequired,masterSubmitButtonShowing:y().bool.isRequired,setMasterSubmitButtonShowing:y().func.isRequired};var D=n(4627);function I({kitToken:e}){const t=(0,l.d4)((t=>k()(t,"options.kitToken")===e)),n=(0,l.d4)((t=>(t.kits||[]).find((t=>t.token===e)))),a=(0,l.d4)((e=>e.pendingOptionConflicts)),s=(0,l.d4)((e=>e.preferenceConflictDetection.hasChecked)),c=(0,l.d4)((e=>e.preferenceConflictDetection.success)),r=(0,l.d4)((e=>t?e.options.technology:"svg"===n.technologySelected?"svg":"webfont")),i=(0,l.d4)((e=>t?e.options.usePro:"pro"===n.licenseSelected)),m=(0,l.d4)((e=>t?e.options.compat:n.shimEnabled)),u=(0,l.d4)((e=>t?e.options.version:n.version));function f(e){return s&&c&&_()(a,e)?(0,o.createElement)(b.A,{title:(0,S.__)("Preference Conflict","font-awesome"),type:"warning"},w()(a[e])>1?(0,o.createElement)("div",null,(0,S.__)("This change might cause problems for these themes or plugins:","font-awesome")," ",a[e].join(", "),"."):(0,o.createElement)("div",null,(0,S.__)("This change might cause problems for the theme or plugin:","font-awesome")," ",a[e][0],".")):null}return t||n?(0,o.createElement)("div",{className:x["kit-config-view-container"]},(0,o.createElement)("table",{className:x["selected-kit-settings"]},(0,o.createElement)("tbody",null,(0,o.createElement)("tr",null,(0,o.createElement)("th",{className:x.label},(0,S.__)("Icons","font-awesome")),(0,o.createElement)("td",{className:x.value},i?"Pro":"Free",f("usePro"))),(0,o.createElement)("tr",null,(0,o.createElement)("th",{className:x.label},(0,S.__)("Technology","font-awesome")),(0,o.createElement)("td",{className:x.value},r,f("technology"))),(0,o.createElement)("tr",null,(0,o.createElement)("th",{className:x.label},(0,S.__)("Version","font-awesome")),(0,o.createElement)("td",{className:x.value},u,f("version"))),(0,o.createElement)("tr",null,(0,o.createElement)("th",{className:x.label},(0,S.__)("Older Version Compatibility","font-awesome")),(0,o.createElement)("td",{className:x.value},m?"On":"Off",f("compat"))))),(0,o.createElement)("p",{className:x["tip-text"]},(0,D.A)((0,S.__)("Make changes on <a>fontawesome.com/kits <externalLinkIcon/></a>","font-awesome"),{a:(0,o.createElement)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://fontawesome.com/kits"}),externalLinkIcon:(0,o.createElement)(d.g,{icon:p.AaJ,style:{marginLeft:".5em"}})}))):(0,o.createElement)(b.A,{type:"warning",title:(0,S.__)("Oh no! We could not find the kit data for the selected kit token.","font-awesome")},(0,S.__)("Try reloading.","font-awesome"))}I.propTypes={kitToken:y().string.isRequired};const P={"select-config-container":"wVJC_TuxmtpxI03Tbdkt"};function R(){return(0,o.createElement)("span",{className:E["checking-option-status-indicator"]},(0,o.createElement)(d.g,{spin:!0,className:i()(h.A.icon),icon:p.z1G})," ",(0,S.__)("checking for preference conflicts","font-awesome"),"...")}function F(){const e=(0,l.wA)(),t=(0,l.d4)((e=>!!e.options.kitToken)),[n,a]=(0,o.useState)(t),s=(0,l.d4)((e=>e.preferenceConflictDetection.isChecking)),c=(0,l.d4)((e=>e.optionsFormState.hasSubmitted)),r=(0,l.d4)((e=>e.optionsFormState.success)),m=(0,l.d4)((e=>e.optionsFormState.message)),g=(0,l.d4)((e=>e.optionsFormState.isSubmitting)),N=(0,l.d4)((e=>e.pendingOptions)),b=(0,l.d4)((e=>e.options.apiToken)),[v,y]=(0,o.useState)(!0);function A(e){return(0,l.d4)((t=>_()(t.pendingOptions,e)?t.pendingOptions[e]:t.options[e]))}function k(t){t&&"function"==typeof t.preventDefault&&t.preventDefault(),e((0,u.submitPendingOptions)())}const T=A("kitToken"),x=(0,l.d4)((e=>e.options.kitToken));function D(t={}){e((0,u.addPendingOption)(t))}return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:h.A["wrapper-div"]},(0,o.createElement)("h3",null,(0,S.__)("How are you using Font Awesome?","font-awesome")),(0,o.createElement)("div",{className:P["select-config-container"]},(0,o.createElement)("span",null,(0,o.createElement)("input",{id:"select_use_kits",name:"select_use_kits",type:"radio",value:n,checked:n,onChange:()=>(a(!0),y(!0),void e((0,u.chooseIntoKitConfig)())),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"select_use_kits",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.GEE,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,o.createElement)("span",{className:E["option-label-text"]},(0,S.__)("Use A Kit","font-awesome")))),(0,o.createElement)("span",null,(0,o.createElement)("input",{id:"select_use_cdn",name:"select_use_cdn",type:"radio",value:!n,checked:!n,onChange:()=>(a(!1),void e((0,u.chooseAwayFromKitConfig)({activeKitToken:x}))),className:i()(h.A["sr-only"],h.A["input-radio-custom"])}),(0,o.createElement)("label",{htmlFor:"select_use_cdn",className:E["option-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.RVf,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.GEE,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,o.createElement)("span",{className:E["option-label-text"]},(0,S.__)("Use CDN","font-awesome"))))),(0,o.createElement)(o.Fragment,null,n?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(O,{useOption:A,handleOptionChange:D,handleSubmit:k,masterSubmitButtonShowing:v,setMasterSubmitButtonShowing:y}),!!T&&(0,o.createElement)(I,{kitToken:T})):(0,o.createElement)(C,{useOption:A,handleOptionChange:D,handleSubmit:k}))),(!n||b&&v)&&(0,o.createElement)("div",{className:i()(h.A["submit-wrapper"],["submit"])},(0,o.createElement)("input",{type:"submit",name:"submit",id:"submit",className:"button button-primary",value:(0,S.__)("Save Changes","font-awesome"),disabled:0===w()(N),onClick:k}),c?r?(0,o.createElement)("span",{className:i()(h.A["submit-status"],h.A.success)},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.e68})):(0,o.createElement)("div",{className:i()(h.A["submit-status"],h.A.fail)},(0,o.createElement)("div",{className:i()(h.A["fail-icon-container"])},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.B0L})),(0,o.createElement)("div",{className:h.A.explanation},m)):null,g?(0,o.createElement)("span",{className:i()(h.A["submit-status"],h.A.submitting)},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.z1G,spin:!0})):s?(0,o.createElement)(R,null):w()(N)>0?(0,o.createElement)("span",{className:h.A["submit-status"]},(0,S.__)("you have pending changes","font-awesome")):null))}const W={},M={"client-requirements":"FGrSfvJewATz8TfOqA_j",conflicted:"dDmxKRAWr1lhLPK3Z838"};var z=n(7309),L=n.n(z);const B="-";function G(){const e=(0,l.d4)((e=>e.clientPreferences)),t=(0,l.d4)((e=>e.preferenceConflicts)),n=w()(e),a=w()(t);return(0,o.createElement)("div",{className:M["client-requirements"]},(0,o.createElement)("h3",{className:h.A["section-title"]},(0,S.__)("Registered themes or plugins","font-awesome")),n?(0,o.createElement)("div",null,(0,o.createElement)("p",{className:h.A.explanation},(0,S.__)("Below is the list of active themes or plugins using Font Awesome that have opted-in to share information about the settings they are expecting.","font-awesome"),a?(0,o.createElement)("span",{className:h.A.explanation},(0,S.__)("The highlights show where the settings are mismatched. You might want to adjust your settings to match, or your icons may not work as expected.","font-awesome")):null),(0,o.createElement)("table",{className:i()("widefat","striped")},(0,o.createElement)("thead",null,(0,o.createElement)("tr",{className:h.A["table-header"]},(0,o.createElement)("th",null,(0,S.__)("Name","font-awesome")),(0,o.createElement)("th",{className:i()({[M.conflicted]:!!t.usePro})},(0,S.__)("Icons","font-awesome")),(0,o.createElement)("th",{className:i()({[M.conflicted]:!!t.technology})},(0,S.__)("Technology","font-awesome")),(0,o.createElement)("th",{className:i()({[M.conflicted]:!!t.version})},(0,S.__)("Version","font-awesome")),(0,o.createElement)("th",{className:i()({[M.conflicted]:!!t.compat})},(0,S.__)("V4 Compat","font-awesome")),(0,o.createElement)("th",{className:i()({[M.conflicted]:!!t.pseudoElements})},(0,S.__)("CSS Pseudo-elements","font-awesome")))),(0,o.createElement)("tbody",null,Object.values(e).map(((e,n)=>{const a=n=>!!L()(t[n],(t=>t===e.name));return(0,o.createElement)("tr",{key:n},(0,o.createElement)("td",null,e.name),(0,o.createElement)("td",{className:i()({[M.conflicted]:a("usePro")})},_()(e,"usePro")?e.usePro?"Pro":"Free":B),(0,o.createElement)("td",{className:i()({[M.conflicted]:a("technology")})},_()(e,"technology")?e.technology:B),(0,o.createElement)("td",{className:i()({[M.conflicted]:a("version")})},_()(e,"version")?function(e=[]){return e.map((e=>`${e[1]}${e[0]}`)).join((0,S.sprintf)(/* translators: 1: space */ /* translators: 1: space */ (0,S.__)("%1$sand%1$s")," "))}(e.version):B),(0,o.createElement)("td",{className:i()({[M.conflicted]:a("compat")})},_()(e,"compat")?e.compat?"true":"false":B),(0,o.createElement)("td",{className:i()({[M.conflicted]:a("pseudoElements")})},_()(e,"pseudoElements")?e.pseudoElements?"true":"false":B))}))))):(0,o.createElement)("p",{className:h.A.explanation},(0,S.__)("No active themes or plugins have requested preferences for Font Awesome.","font-awesome")))}function U(){return(0,o.createElement)("div",{className:i()(h.A.explanation,W["font-awesome-versions-section"])},(0,o.createElement)("h2",{className:h.A["section-title"]},(0,S.__)("Versions of Font Awesome Active on Your Site","font-awesome")),(0,o.createElement)("p",null,(0,D.A)((0,S.__)("<b>Registered plugins and themes</b> have opted to share information about the Font Awesome settings they are expecting, and are therefore easier to fix. For the <b>unregistered plugins and themes</b>, which are more unpredictable, we have provided options for you to block their Font Awesome source from loading and causing issues.","font-awesome"),{b:(0,o.createElement)("b",null)})),(0,o.createElement)(G,null))}var q=n(3442);const V={"unregistered-clients":"heZgRJQYY60l5e4s0W_4","column-label":"cBkIuJWm4fbhOOHopdph","block-all-container":"qxjS23M34RH041PZzC82","remove-all-container":"L1uULhjJTYD39y7vA6HC","checkbox-label":"JL6BMdxHE5CPnMDBfHe8"};var j=n(2516),K=n.n(j),H=n(2404),Y=n.n(H),J=n(3054),$=n.n(J),Q=n(6245),X=n.n(Q);function Z(){const e=(0,l.wA)(),t=(0,l.d4)((e=>e.unregisteredClients)),n=(0,l.d4)((e=>(0,q.jm)(e))),a=(0,l.d4)((e=>null!==e.blocklistUpdateStatus.pending?e.blocklistUpdateStatus.pending:n)),s=(0,l.d4)((e=>e.unregisteredClientsDeletionStatus.pending)),c=w()(Object.keys(t))>0,r=Y()(Object.keys(t).sort(),[...a||[]].sort()),m=Y()(Object.keys(t).sort(),[...s||[]].sort()),E=Object.keys(t);function g(e){return!!a.find((t=>t===e))}function _(e){return!!s.find((t=>t===e))}function N(t,n){const o="all"===t?m?[]:n:_(t)?s.filter((e=>e!==t)):[...s,t];e((0,u.updatePendingUnregisteredClientsForDeletion)(o))}function b(t,o){const s="all"===t?r?[]:o:g(t)?a.filter((e=>e!==t)):[...a,t],c=$()(n),l=$()(s);c.length===l.length&&0===w()(X()(c,l))&&0===w()(X()(l,c))?e((0,u.updatePendingBlocklist)(null)):e((0,u.updatePendingBlocklist)(s))}return(0,o.createElement)("div",{className:i()(V["unregistered-clients"],{[V["none-detected"]]:!c})},(0,o.createElement)("h3",{className:h.A["section-title"]},(0,S.__)("Other themes or plugins","font-awesome")),c?(0,o.createElement)("div",null,(0,o.createElement)("p",{className:h.A.explanation},(0,S.__)("Below is the list of other versions of Font Awesome from active plugins or themes that are loading on your site. Check off any that you would like to block from loading. Normally this just blocks the conflicting version of Font Awesome and doesn't affect the other functions of the plugin, but you should verify your site works as expected. If you think you've fixed a found conflict, you can clear it from the table.","font-awesome")),(0,o.createElement)("table",{className:i()("widefat","striped")},(0,o.createElement)("thead",null,(0,o.createElement)("tr",{className:h.A["table-header"]},(0,o.createElement)("th",null,(0,o.createElement)("div",{className:V["column-label"]},(0,S.__)("Block","font-awesome")),w()(E)>1&&(0,o.createElement)("div",{className:V["block-all-container"]},(0,o.createElement)("input",{id:"block_all_detected_conflicts",name:"block_all_detected_conflicts",type:"checkbox",value:"all",checked:r,onChange:()=>b("all",E),className:i()(h.A["sr-only"],h.A["input-checkbox-custom"])}),(0,o.createElement)("label",{htmlFor:"block_all_detected_conflicts",className:V["checkbox-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.rQb,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.Nfw,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,S.__)("All","font-awesome")))),(0,o.createElement)("th",null,(0,o.createElement)("span",{className:V["column-label"]},(0,S.__)("Type","font-awesome"))),(0,o.createElement)("th",null,(0,o.createElement)("span",{className:V["column-label"]},(0,S.__)("URL","font-awesome"))),(0,o.createElement)("th",null,(0,o.createElement)("div",{className:V["column-label"]},(0,S.__)("Clear","font-awesome")),w()(E)>1&&(0,o.createElement)("div",{className:V["remove-all-container"]},(0,o.createElement)("input",{id:"remove_all_detected_conflicts",name:"remove_all_detected_conflicts",type:"checkbox",value:"all",checked:m,onChange:()=>N("all",E),className:i()(h.A["sr-only"],h.A["input-checkbox-custom"])}),(0,o.createElement)("label",{htmlFor:"remove_all_detected_conflicts",className:V["checkbox-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.rQb,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.Nfw,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})),(0,S.__)("All","font-awesome")))))),(0,o.createElement)("tbody",null,E.map((e=>{return(0,o.createElement)("tr",{key:e},(0,o.createElement)("td",null,(0,o.createElement)("input",{id:`block_${e}`,name:`block_${e}`,type:"checkbox",value:e,checked:g(e),onChange:()=>b(e),className:i()(h.A["sr-only"],h.A["input-checkbox-custom"])}),(0,o.createElement)("label",{htmlFor:`block_${e}`,className:V["checkbox-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.rQb,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.Nfw,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})))),(0,o.createElement)("td",null,k()(t[e],"tagName","unknown").toLowerCase()),(0,o.createElement)("td",null,t[e].src||t[e].href||(0,D.A)((0,S.__)("<em>in page source. </em><excerpt/>","font-awesome"),{em:(0,o.createElement)("em",null),excerpt:(e=>e?(0,o.createElement)(o.Fragment,null,"File starts with: ",(0,o.createElement)("code",null,e)):"")((n=k()(t[e],"innerText"),n?K()(n,{length:100}):null))})),(0,o.createElement)("td",null,(0,o.createElement)("input",{id:`remove_${e}`,name:`remove_${e}`,type:"checkbox",value:e,checked:_(e),onChange:()=>N(e),className:i()(h.A["sr-only"],h.A["input-checkbox-custom"])}),(0,o.createElement)("label",{htmlFor:`remove_${e}`,className:V["checkbox-label"]},(0,o.createElement)("span",{className:h.A.relative},(0,o.createElement)(d.g,{icon:p.rQb,className:h.A["checked-icon"],size:"lg",fixedWidth:!0}),(0,o.createElement)(d.g,{icon:f.Nfw,className:h.A["unchecked-icon"],size:"lg",fixedWidth:!0})))));var n}))))):(0,o.createElement)("div",{className:i()(h.A.explanation,h.A.flex,h.A["flex-row"])},(0,o.createElement)("div",null,(0,o.createElement)(d.g,{icon:p.Wcv,size:"lg"})),(0,o.createElement)("div",{className:h.A["space-left"]},(0,S.__)("We haven't detected any plugins or themes trying to load Font Awesome.","font-awesome"))))}const ee={"v3-deprecation-warning":"n4FnenNNXVSnogTxvEag","snooze-button":"SkXS_7p2VPLT73VFRBky",label:"OLbojYNxmUgjVLX8SD7b"};function te(){const{snooze:e,atts:t,v5name:n,v5prefix:a}=(0,l.d4)((e=>e.v3DeprecationWarning)),{isSubmitting:s,hasSubmitted:c,success:r}=(0,l.d4)((e=>e.v3DeprecationWarningStatus)),m=(0,l.wA)();return e?null:(0,o.createElement)(b.A,{title:(0,S.__)("Font Awesome 3 icon names are deprecated","font-awesome"),type:"warning"},(0,o.createElement)("p",null,(0,D.A)((0,S.sprintf)((0,S.__)("Looks like you're using an old Font Awesome 3 icon name in your shortcode: <code>%s</code>. We discontinued support for Font Awesome 3 quite some time ago. Won't you jump into <a>the newest Font Awesome</a> with us? It's way better, and it's easy to upgrade.","font-awesome"),t.name),{code:(0,o.createElement)("code",null),a:(0,o.createElement)("a",{rel:"noopener noreferrer",target:"_blank",href:"https://fontawesome.com/"})})),(0,o.createElement)("p",null,(0,S.__)("Just adjust your shortcode from this:","font-awesome")),(0,o.createElement)("blockquote",null,(0,o.createElement)("code",null,'[icon name="',t.name,'"]')),(0,o.createElement)("p",null,(0,S.__)("to this:","font-awesome")),(0,o.createElement)("blockquote",null,(0,o.createElement)("code",null,'[icon name="',n,'" prefix="',a,'"]')),(0,o.createElement)("p",null,(0,D.A)((0,S.__)("You'll need to go adjust any version 3 icon names in [icon] shortcodes in your pages, posts, widgets, templates (or wherever they're coming from) to the new format with prefix. You can check the icon names and prefixes in our <linkIconGallery>Icon Gallery</linkIconGallery>. But what's that prefix, you ask? We now support a number of different styles for each icon. <linkLearnMore>Learn more</linkLearnMore>","font-awesome"),{linkIconGallery:(0,o.createElement)("a",{rel:"noopener noreferrer",target:"_blank",href:"https://fontawesome.com/icons?d=gallery"}),linkLearnMore:(0,o.createElement)("a",{rel:"noopener noreferrer",target:"_blank",href:"https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#changes"})})),(0,o.createElement)("p",null,(0,D.A)((0,S.__)("Once you update your icon shortcodes, this warning will disappear or you could hit snooze to hide it for a while. <strong>But we're gonna remove this v3-to-v5 magic soon, though, so don't wait forever.</strong>","font-awesome"),{strong:(0,o.createElement)("strong",null)})),(0,o.createElement)("p",null,(0,o.createElement)("button",{disabled:s,onClick:()=>m((0,u.snoozeV3DeprecationWarning)()),className:i()(ee["snooze-button"],"button","button-primary")},s?(0,o.createElement)(d.g,{icon:p.z1G,spin:!0,className:ee.submitting}):c?r?(0,o.createElement)(d.g,{icon:p.e68,className:ee.success}):(0,o.createElement)(d.g,{icon:p.B0L,className:ee.fail}):(0,o.createElement)(d.g,{icon:p.a$,className:ee.snooze}),(0,o.createElement)("span",{className:ee.label},(0,S.__)("Snooze","font-awesome")))))}var ne=n(192),oe=n(8587);function ae(){const e=(0,l.wA)(),t=(0,l.d4)((e=>e.detectConflictsUntil)),n=(new Date).valueOf(),a=new Date(1e3*t)>n,{isSubmitting:s,hasSubmitted:c,message:r,success:i}=(0,l.d4)((e=>e.conflictDetectionScannerStatus)),m=(0,l.d4)((e=>e.showConflictDetectionReporter)),f=(0,l.Pj)();return(0,o.useEffect)((()=>{m&&!(0,oe.isConflictDetectionReporterMounted)()&&(0,oe.mountConflictDetectionReporter)(f)}),[m,f]),(0,o.createElement)("div",null,(0,o.createElement)("h2",{className:h.A["section-title"]},(0,S.__)("Detect Conflicts with Other Versions of Font Awesome","font-awesome")),(0,o.createElement)("div",{className:h.A.explanation},(0,o.createElement)("p",null,(0,S.__)("If you are having trouble loading Font Awesome icons on your WordPress site, it may be because other themes or plugins are loading conflicting versions of Font Awesome. You can use our conflict scanner to detect other versions of Font Awesome running on your site.","font-awesome")),(0,o.createElement)("p",null,(0,D.A)((0,S.__)("Enable the scanner below and a box will appear in the bottom corner of your window while it runs for 10 minutes (only you and other admins can see the box). While the scanner is running, browse your site, especially the pages having trouble to catch any <noWrap>Slimers - *ahem* - conflicts</noWrap> in the scanner.","font-awesome"),{noWrap:(0,o.createElement)("span",{style:{whiteSpace:"nowrap"}})}))),(0,o.createElement)("div",{className:h.A["scanner-actions"]},a?(0,o.createElement)("button",{className:h.A.faPrimary,disabled:!0},(0,S.__)("Scanner running","font-awesome"),": ",(0,o.createElement)(ne.A,null)):(0,o.createElement)("button",{className:"button button-primary",disabled:s,onClick:()=>e((0,u.setConflictDetectionScanner)({enable:!0}))},(0,S.sprintf)((0,S.__)("Enable scanner for %d minutes","font-awesome"),u.CONFLICT_DETECTION_SCANNER_DURATION_MIN)),(0,o.createElement)("div",{className:h.A["scanner-runstatus"]},s?(0,o.createElement)(d.g,{icon:p.z1G,spin:!0}):c?i?(0,o.createElement)(d.g,{icon:p.e68}):(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.g,{icon:p.B0L})," ",(0,o.createElement)("span",null,r)):null)),(0,o.createElement)("hr",{className:h.A["section-divider"]}))}function se(){const e=(0,l.wA)(),t=(0,l.d4)((e=>!!e.v3DeprecationWarning)),n=(0,l.d4)((e=>e.unregisteredClients)),a=(0,l.d4)((e=>e.blocklistUpdateStatus)),s=(0,l.d4)((e=>e.unregisteredClientsDeletionStatus)),c=w()(n)>0,r=null!==a.pending||w()(s.pending)>0,m=s.hasSubmitted||a.hasSubmitted,f=s.isSubmitting||a.isSubmitting,E=(s.hasSubmitted||a.hasSubmitted)&&(s.success||!s.hasSubmitted)&&(a.success||!a.hasSubmitted);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:h.A["wrapper-div"]},t&&(0,o.createElement)(te,null),(0,o.createElement)(ae,null),(0,o.createElement)(U,null),(0,o.createElement)(Z,null)),c&&(0,o.createElement)("div",{className:i()(h.A["submit-wrapper"],["submit"])},(0,o.createElement)("input",{type:"submit",name:"submit",id:"submit",className:"button button-primary",value:(0,S.__)("Save Changes","font-awesome"),disabled:!r,onClick:function(t){t.preventDefault(),a.pending?e((0,u.submitPendingBlocklist)()):e((0,u.resetPendingBlocklistSubmissionStatus)()),w()(s.pending)>0?e((0,u.submitPendingUnregisteredClientDeletions)()):e((0,u.resetUnregisteredClientsDeletionStatus)())}}),m?E?(0,o.createElement)("span",{className:i()(h.A["submit-status"],h.A.success)},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.e68})):(0,o.createElement)("div",{className:i()(h.A["submit-status"],h.A.fail)},(0,o.createElement)("div",{className:i()(h.A["fail-icon-container"])},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.B0L})),(0,o.createElement)("div",{className:h.A.explanation},!!a.message&&(0,o.createElement)("p",null," ",a.message," "),!!s.message&&(0,o.createElement)("p",null," ",s.message," "))):null,f?(0,o.createElement)("span",{className:i()(h.A["submit-status"],h.A.submitting)},(0,o.createElement)(d.g,{className:h.A.icon,icon:p.z1G,spin:!0})):r?(0,o.createElement)("span",{className:h.A["submit-status"]},(0,S.__)("you have pending changes","font-awesome")):null))}function ce(){const e=(0,l.d4)((e=>e.activeAdminTab||q.M7)),t=(0,l.wA)();return(0,o.createElement)("div",{className:i()(m["font-awesome-admin-view"])},(0,o.createElement)("h1",null,"Font Awesome"),(0,o.createElement)("div",{className:m["tab-header"]},(0,o.createElement)("button",{onClick:()=>t((0,u.setActiveAdminTab)(q.M7)),disabled:e===q.M7},(0,S.__)("Settings","font-awesome")),(0,o.createElement)("button",{onClick:()=>t((0,u.setActiveAdminTab)(q.HM)),disabled:e===q.HM},(0,S.__)("Troubleshoot","font-awesome"))),{[q.M7]:(0,o.createElement)(F,null),[q.HM]:(0,o.createElement)(se,null)}[e])}var le=n(1073),re=n.n(le);function ie(e){re()((()=>s().render((0,o.createElement)(c.A,null,(0,o.createElement)(l.Kq,{store:e},(0,o.createElement)(ce,null))),document.getElementById("font-awesome-admin"))))}},8587:(e,t,n)=>{n.r(t),n.d(t,{CONFLICT_DETECTION_SHADOW_HOST_ID:()=>T,isConflictDetectionReporterMounted:()=>x,mountConflictDetectionReporter:()=>C});var o=n(6677),a=n(6175),s=n.n(a),c=n(2896),l=n(5027),r=n(6784),i=n(6188),m=n(3442),u=n(192),d=n(7091),p=n.n(d),f=n(1448),E=n.n(f),h=n(2806),g=n(3002);const _={running:{code:"Running",display:(0,h.__)("Running","font-awesome")},done:{code:"Done",display:(0,h.__)("Done","font-awesome")},submitting:{code:"Submitting",display:(0,h.__)("Submitting","font-awesome")},none:{code:"None",display:(0,h.__)("None","font-awesome")},error:{code:"Error",display:(0,h.__)("Error","font-awesome")},expired:{code:"Expired",display:(0,h.__)("Expired","font-awesome")},ready:{code:"Ready",display:(0,h.__)("Ready","font-awesome")},stopped:{code:"Stopped",display:(0,h.__)("Stopped","font-awesome")},stopping:{code:"Stopping",display:(0,h.__)("Stopping","font-awesome")},restarting:{code:"Restarting",display:(0,h.__)("Restarting","font-awesome")}},N={container:{position:"fixed",fontFamily:'"Helvetica Neue",Helvetica,Arial,sans-serif',right:"10px",bottom:"10px",width:"450px",height:"auto",maxHeight:"60%",border:"1px solid #CDD4DB",borderRadius:"3px",boxShadow:"1px 1px 5px 0 rgba(132,142,151,.3)",background:"#008DED",zIndex:"99",overflowY:"scroll",fontSize:"14px",lineHeight:"1.4em",color:"#fff"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px 20px",color:"#CAECFF"},content:{width:"100%",padding:"0 20px 10px 20px",boxSizing:"border-box"},adminEyesOnly:{margin:"0",fontSize:"12px"},h1:{margin:".3em 0",fontSize:"14px"},h2:{margin:".3em 0",fontSize:"18px"},p:{margin:".5em 0"},link:{color:"#fff"},tally:{display:"flex",alignItems:"center",margin:".5em 0",textAlign:"center"},count:{flexBasis:"1em",marginRight:"5px",fontWeight:"600",fontSize:"20px"},timerRow:{display:"flex",alignItems:"center",backgroundColor:"#0064B1",padding:"10px 20px",color:"#fff",fontWeight:"600"},button:{margin:"0 0 0 10px",border:"0",padding:"5px",backgroundColor:"transparent",color:"#fff",opacity:".7",cursor:"pointer"},badness:{padding:"20px 25px",backgroundColor:"#FFC100",color:"#202529"}},w=(b=function(){const e=(0,c.wA)(),t=(0,c.d4)((e=>e.settingsPageUrl)),n=`${t}&tab=ts`,a=(0,c.d4)((e=>e.activeAdminTab)),s=window.location.href.startsWith(t)&&a===m.HM,d=(0,c.d4)((e=>e.userAttemptedToStopScanner)),f=(0,c.d4)((e=>e.unregisteredClients)),g=(0,c.d4)((e=>e.unregisteredClientDetectionStatus.unregisteredClientsBeforeDetection)),w=(0,c.d4)((e=>e.unregisteredClientDetectionStatus.recentConflictsDetected)),b=(0,c.d4)((e=>!e.showConflictDetectionReporter)),v=(0,c.d4)((e=>b&&e.conflictDetectionScannerStatus.isSubmitting)),y=(0,c.d4)((e=>e.conflictDetectionScannerStatus.hasSubmitted&&e.conflictDetectionScannerStatus.success)),A=(0,c.d4)((e=>d&&!e.conflictDetectionScannerStatus.hasSubmitted)),k=(0,c.d4)((e=>d&&!A&&e.conflictDetectionScannerStatus.success)),S=(0,c.d4)((e=>{const{isSubmitting:t,hasSubmitted:n,success:o}=e.unregisteredClientDetectionStatus;return d?A?_.stopping:k?_.stopped:_.error:v?_.restarting:b?_.expired:y?_.ready:o&&0===p()(f)?_.none:o?_.done:t?_.submitting:n?_.error:_.running})),T=(0,c.d4)((e=>e.unregisteredClientDetectionStatus.message)),C=(0,o.createElement)("div",null,(0,o.createElement)("h2",{style:N.tally},(0,o.createElement)("span",null,p()(f))," ",(0,o.createElement)("span",null," ",(0,h.__)("Results to Review","font-awesome"))),(0,o.createElement)("p",{style:N.p},s?(0,h.__)("Manage results or restart the scanner here on the Troubleshoot tab.","font-awesome"):(0,o.createElement)(o.Fragment,null,(0,h.__)("Manage results or restart the scanner on the Troubleshoot tab.","font-awesome")," ",(0,o.createElement)("a",{href:n,style:N.link},(0,h.__)("Go","font-awesome"))))),x=(0,o.createElement)("div",null,(0,o.createElement)("div",{style:N.status},(0,o.createElement)("h2",{style:N.h2},(0,o.createElement)(r.g,{icon:i.dB,size:"sm",spin:!0})," ",(0,o.createElement)("span",null,S.display))));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{style:N.header},(0,o.createElement)("h1",{style:N.h1},(0,h.__)("Font Awesome Conflict Scanner","font-awesome")),(0,o.createElement)("p",{style:N.adminEyesOnly},(0,h.__)("only admins can see this box","font-awesome"))),(0,o.createElement)("div",{style:N.content},{None:(0,o.createElement)("div",null,(0,o.createElement)("div",{style:N.status},(0,o.createElement)("h2",{style:N.h2},(0,o.createElement)(r.g,{icon:i.y3I,size:"sm"})," ",(0,o.createElement)("span",null,(0,h.__)("All clear!","font-awesome"))),(0,o.createElement)("p",{style:N.p},(0,h.__)("No new conflicts found on this page.","font-awesome")))),Running:(0,o.createElement)("div",null,(0,o.createElement)("div",{style:N.status},(0,o.createElement)("h2",{style:N.h2},(0,o.createElement)(r.g,{icon:i.dB,size:"sm",spin:!0})," ",(0,o.createElement)("span",null,(0,h.__)("Scanning","font-awesome"),"...")))),Restarting:(0,o.createElement)("div",null,(0,o.createElement)("div",{style:N.status},(0,o.createElement)("h2",{style:N.h2},(0,o.createElement)(r.g,{icon:i.dB,size:"sm",spin:!0})," ",(0,o.createElement)("span",null,(0,h.__)("Restarting","font-awesome"),"...")))),Ready:(0,o.createElement)("div",null,(0,o.createElement)("div",null,(0,o.createElement)("h2",{style:N.h2},(0,o.createElement)(r.g,{icon:i.Wcv,size:"sm"})," ",(0,h.__)("Proton pack charged!","font-awesome")),(0,o.createElement)("p",{style:N.p},(0,h.__)("Wander through the pages of your web site and this scanner will track progress.","font-awesome")))),Submitting:x,Stopping:x,Done:(0,o.createElement)("div",null,(0,o.createElement)("div",{style:N.status},(0,o.createElement)("h2",{style:N.h2},(0,o.createElement)(r.g,{icon:i.SGM,size:"sm"})," ",(0,o.createElement)("span",null,(0,h.__)("Page scan complete","font-awesome")))),(0,o.createElement)("p",{style:N.tally},(0,o.createElement)("span",{style:N.count},p()(Object.keys(w).filter((e=>!E()(g,e)))))," ",(0,o.createElement)("span",null,(0,h.__)("new conflicts found on this page","font-awesome"))),(0,o.createElement)("p",{style:N.tally},(0,o.createElement)("span",{style:N.count},p()(f))," ",(0,o.createElement)("span",null,"total found"),s?(0,o.createElement)("span",null," (",(0,h.__)("manage conflicts here on the Troubleshoot tab","font-awesome"),")"):(0,o.createElement)("span",null," (",(0,o.createElement)("a",{href:n,style:N.link},(0,h.__)("manage","font-awesome")),")"))),Expired:C,Stopped:C,Error:(0,o.createElement)("div",null,(0,o.createElement)("h2",{style:N.h2},(0,o.createElement)(r.g,{icon:i.B0L})," ",(0,o.createElement)("span",null,(0,h.__)("Don't cross the streams! It would be bad.","font-awesome"))),(0,o.createElement)("p",{style:N.p},T))}[S.code]),(0,o.createElement)("div",{style:N.timerRow},(0,o.createElement)("span",null,(0,o.createElement)(u.A,{addDescription:!0},(0,o.createElement)("button",{style:N.button,title:(0,h.__)("Stop timer","font-awesome"),onClick:()=>(e((0,l.userAttemptToStopScanner)()),void e((0,l.setConflictDetectionScanner)({enable:!1})))},(0,o.createElement)(r.g,{icon:i.s0Q,size:"lg"})))),{Expired:(0,h.__)("Timer expired","font-awesome"),Stopped:(0,h.__)("Timer stopped","font-awesome"),Restarting:null}[S.code]))},class extends g.A{render(){return(0,o.createElement)("div",{style:N.container},this.state.error?(0,o.createElement)("div",{style:N.badness},(0,o.createElement)(r.g,{icon:i.zpE}),(0,h.__)(" Whoops, this is embarrassing! Some unexpected error has occurred. There might be some additional diagnostic information in the JavaScript console.","font-awesome")):(0,o.createElement)(b,null))}});var b,v=n(7107),y=n(4081),A=n.n(y),k=n(1073),S=n.n(k);const T="font-awesome-plugin-conflict-detection-shadow-host";function C(e){S()((()=>{const t=document.createElement("DIV");t.setAttribute("id",T),document.body.appendChild(t);const n=t.attachShadow({mode:"open"});A()(n);const a=document.createElement("STYLE"),l=v.tT.css(),r=document.createTextNode(l);a.appendChild(r);const i=document.createElement("DIV");n.appendChild(a),n.appendChild(i),s().render((0,o.createElement)(c.Kq,{store:e},(0,o.createElement)(w,null)),i)}))}function x(){const e=document.getElementById(T);return!!e&&!!e.shadowRoot}},5027:(e,t,n)=>{n.r(t),n.d(t,{CONFLICT_DETECTION_SCANNER_DURATION_MIN:()=>N,addPendingOption:()=>D,checkPreferenceConflicts:()=>z,chooseAwayFromKitConfig:()=>L,chooseIntoKitConfig:()=>B,preprocessResponse:()=>C,queryKits:()=>G,reportDetectedConflicts:()=>j,resetOptionsFormState:()=>O,resetPendingBlocklistSubmissionStatus:()=>R,resetPendingOptions:()=>x,resetUnregisteredClientsDeletionStatus:()=>P,setActiveAdminTab:()=>H,setConflictDetectionScanner:()=>Y,snoozeV3DeprecationWarning:()=>K,submitPendingBlocklist:()=>M,submitPendingOptions:()=>U,submitPendingUnregisteredClientDeletions:()=>F,updateApiToken:()=>q,updatePendingBlocklist:()=>W,updatePendingUnregisteredClientsForDeletion:()=>I,userAttemptToStopScanner:()=>V});var o=n(1083),a=n(8938),s=n.n(a),c=n(7091),l=n.n(c),r=n(8156),i=n.n(r),m=n(7309),u=n.n(m),d=n(9458),p=n(2806),f=n(1448),E=n.n(f);function h(e,t=0){let n=null,o=null;if("string"!=typeof e)return null;if(t>=e.length)return null;try{return n=JSON.parse(e.slice(t)),{start:t,parsed:n}}catch(n){const a=e.indexOf("[",t+1),s=e.indexOf("{",t+1);if(-1===a&&-1===s)return null;o=-1!==a&&-1!==s?a<s?a:s:-1!==s?s:a}return null===o?null:h(e,o)}const g=function(e){if(!e||""===e)return null;const t=h(e);if(null===t)return null;{const{start:n,parsed:o}=t;return{start:n,json:e.slice(n),trimmed:e.slice(0,n),parsed:o}}},_=o.A.create(),N=10,w=1,b=(0,p.__)("Couldn't save those changes","font-awesome"),v=(0,p.__)("Changes not saved because your WordPress server does not allow this kind of request. Look for details in the browser console.","font-awesome"),y=(0,p.__)("Couldn't check preferences","font-awesome"),A=(0,p.__)("A request to your WordPress server never received a response","font-awesome"),k=(0,p.__)("A request to your WordPress server failed","font-awesome"),S=(0,p.__)("Couldn't start the scanner","font-awesome"),T=(0,p.__)("Couldn't snooze","font-awesome");function C(e){const t=E()(e,"headers.fontawesome-confirmation");if(204===e.status&&""!==e.data)return(0,d.Ay)({error:null,confirmed:t,trimmed:e.data,expectEmpty:!0}),e.data={},e;const n=i()(e,"data",null),o="string"==typeof n&&l()(n)>0,a=o?g(n):{};o&&a&&(e.data=i()(a,"parsed"));const s=i()(a,"trimmed",""),c=i()(e,"data.errors",null);if(e.status>=400){if(c)e.uiMessage=(0,d.Ay)({error:e.data,confirmed:t,trimmed:s});else{const n=i()(e,"config.method","").toUpperCase(),o=i()(e,"config.url"),a=e.status,s=i()(e,"statusText"),c=(0,d.b3)(e),l=(0,d.cA)(i()(e,"headers",{})),r=(0,d.cA)(i()(e,"config.headers",{})),m=i()(e,"data");e.uiMessage=(0,d.Ay)({confirmed:t,requestData:c,requestMethod:n,requestUrl:o,responseHeaders:l,requestHeaders:r,responseStatus:a,responseStatusText:s,responseData:m}),405===a&&(e.uiMessage=v)}return e}if(e.status<400&&e.status>=300)return t&&""===s||(e.uiMessage=(0,d.Ay)({error:null,confirmed:t,trimmed:s})),e;if(c){const n=!0;return e.falsePositive=!0,e.uiMessage=(0,d.Ay)({error:e.data,confirmed:t,falsePositive:n,trimmed:s}),e}{const n=i()(e,"data.error",null);return n?(e.uiMessage=(0,d.Ay)({error:n,ok:!0,confirmed:t,trimmed:s}),e):(t||(e.uiMessage=(0,d.Ay)({error:null,ok:!0,confirmed:t,trimmed:s})),e)}}function x(){return{type:"RESET_PENDING_OPTIONS"}}function O(){return{type:"OPTIONS_FORM_STATE_RESET"}}function D(e){return function(t,n){const{options:o}=n();for(const[n,a]of s()(e))t(o[n]===a?{type:"RESET_PENDING_OPTION",change:{[n]:a}}:{type:"ADD_PENDING_OPTION",change:{[n]:a}})}}function I(e=[]){return{type:"UPDATE_PENDING_UNREGISTERED_CLIENTS_FOR_DELETION",data:e}}function P(){return{type:"DELETE_UNREGISTERED_CLIENTS_RESET"}}function R(){return{type:"BLOCKLIST_UPDATE_RESET"}}function F(){return function(e,t){const{apiNonce:n,apiUrl:o,unregisteredClientsDeletionStatus:a}=t(),s=i()(a,"pending",null);if(!s||0===l()(s))return;e({type:"DELETE_UNREGISTERED_CLIENTS_START"});const c=({uiMessage:t})=>{e({type:"DELETE_UNREGISTERED_CLIENTS_END",success:!1,message:t||b})};return _.delete(`${o}/conflict-detection/conflicts`,{data:s,headers:{"X-WP-Nonce":n}}).then((t=>{const{status:n,data:o,falsePositive:a}=t;a?c(t):e({type:"DELETE_UNREGISTERED_CLIENTS_END",success:!0,data:204===n?null:o,message:""})})).catch(c)}}function W(e=[]){return{type:"UPDATE_PENDING_BLOCKLIST",data:e}}function M(){return function(e,t){const{apiNonce:n,apiUrl:o,blocklistUpdateStatus:a}=t(),s=i()(a,"pending",null);if(!s)return;e({type:"BLOCKLIST_UPDATE_START"});const c=({uiMessage:t})=>{e({type:"BLOCKLIST_UPDATE_END",success:!1,message:t||b})};return _.post(`${o}/conflict-detection/conflicts/blocklist`,s,{headers:{"X-WP-Nonce":n}}).then((t=>{const{status:n,data:o,falsePositive:a}=t;a?c(t):e({type:"BLOCKLIST_UPDATE_END",success:!0,data:204===n?null:o,message:""})})).catch(c)}}function z(){return function(e,t){e({type:"PREFERENCE_CHECK_START"});const{apiNonce:n,apiUrl:o,options:a,pendingOptions:s}=t(),c=({uiMessage:t})=>{e({type:"PREFERENCE_CHECK_END",success:!1,message:t||y})};return _.post(`${o}/preference-check`,{...a,...s},{headers:{"X-WP-Nonce":n}}).then((t=>{const{data:n,falsePositive:o}=t;o?c(t):e({type:"PREFERENCE_CHECK_END",success:!0,message:"",detectedConflicts:n})})).catch(c)}}function L({activeKitToken:e}){return function(t,n){const{releases:o}=n();t({type:"CHOOSE_AWAY_FROM_KIT_CONFIG",activeKitToken:e,concreteVersion:i()(o,"latest_version_6")})}}function B(){return{type:"CHOOSE_INTO_KIT_CONFIG"}}function G(){return function(e,t){const{apiNonce:n,apiUrl:o,options:a}=t(),s=i()(a,"kitToken",null);e({type:"KITS_QUERY_START"});const c=({uiMessage:t})=>{e({type:"KITS_QUERY_END",success:!1,message:t||(0,p.__)("Failed to fetch kits","font-awesome")})},l=({uiMessage:t})=>{e({type:"OPTIONS_FORM_SUBMIT_END",success:!1,message:t||(0,p.__)("Couldn't update latest kit settings","font-awesome")})};return _.post(`${o}/api`,"query { me { kits { name version technologySelected licenseSelected minified token shimEnabled autoAccessibilityEnabled status }}}",{headers:{"X-WP-Nonce":n}}).then((t=>{if(t.falsePositive)return c(t);const r=i()(t,"data.data");if(!i()(r,"me"))return e({type:"KITS_QUERY_END",success:!1,message:(0,p.__)("Failed to fetch kits. Regenerate your API Token and try again.","font-awesome")});if(e({type:"KITS_QUERY_END",data:r,success:!0}),!s)return;const m=i()(r,"me.kits",[]),d=u()(m,{token:s});if(!d)return;const f={};return a.usePro&&"pro"!==d.licenseSelected?f.usePro=!1:a.usePro||"pro"!==d.licenseSelected||(f.usePro=!0),"svg"===a.technology&&"svg"!==d.technologySelected?(f.technology="webfont",f.pseudoElements=!0):"svg"!==a.technology&&"svg"===d.technologySelected&&(f.technology="svg",f.pseudoElements=!1),a.version!==d.version&&(f.version=d.version),a.compat&&!d.shimEnabled?f.compat=!1:!a.compat&&d.shimEnabled&&(f.compat=!0),e({type:"OPTIONS_FORM_SUBMIT_START"}),_.post(`${o}/config`,{options:{...a,...f}},{headers:{"X-WP-Nonce":n}}).then((t=>{const{data:n,falsePositive:o}=t;if(o)return l(t);e({type:"OPTIONS_FORM_SUBMIT_END",data:n,success:!0,message:(0,p.__)("Kit changes saved","font-awesome")})})).catch(l)})).catch(c)}}function U(){return function(e,t){const{apiNonce:n,apiUrl:o,options:a,pendingOptions:s}=t();e({type:"OPTIONS_FORM_SUBMIT_START"});const c=({uiMessage:t})=>{e({type:"OPTIONS_FORM_SUBMIT_END",success:!1,message:t||b})};return _.post(`${o}/config`,{options:{...a,...s}},{headers:{"X-WP-Nonce":n}}).then((t=>{const{data:n,falsePositive:o}=t;o?c(t):e({type:"OPTIONS_FORM_SUBMIT_END",data:n,success:!0,message:(0,p.__)("Changes saved","font-awesome")})})).catch(c)}}function q({apiToken:e=!1,runQueryKits:t=!1}){return function(n,o){const{apiNonce:a,apiUrl:s,options:c}=o();n({type:"OPTIONS_FORM_SUBMIT_START"});const l=({uiMessage:e})=>{n({type:"OPTIONS_FORM_SUBMIT_END",success:!1,message:e||b})};return _.post(`${s}/config`,{options:{...c,apiToken:e}},{headers:{"X-WP-Nonce":a}}).then((e=>{const{data:o,falsePositive:a}=e;if(a)l(e);else if(n({type:"OPTIONS_FORM_SUBMIT_END",data:o,success:!0,message:(0,p.__)("API Token saved","font-awesome")}),t)return n(G())})).catch(l)}}function V(){return{type:"USER_STOP_SCANNER"}}function j({nodesTested:e={}}){return(t,n)=>{const{apiNonce:o,apiUrl:a,unregisteredClients:s,showConflictDetectionReporter:c}=n();if(c){if(l()(e.conflict)>0){const n=Object.keys(e.conflict).reduce((function(t,n){return t[n]=e.conflict[n],t}),{});t({type:"CONFLICT_DETECTION_SUBMIT_START",unregisteredClientsBeforeDetection:s,recentConflictsDetected:e.conflict});const c=({uiMessage:e})=>{t({type:"CONFLICT_DETECTION_SUBMIT_END",success:!1,message:e||b})};return _.post(`${a}/conflict-detection/conflicts`,n,{headers:{"X-WP-Nonce":o}}).then((e=>{const{status:n,data:o,falsePositive:a}=e;a?c(e):t({type:"CONFLICT_DETECTION_SUBMIT_END",success:!0,data:204===n||0===l()(o)?null:o})})).catch(c)}t({type:"CONFLICT_DETECTION_NONE_FOUND"})}}}function K(){return(e,t)=>{const{apiNonce:n,apiUrl:o}=t();e({type:"SNOOZE_V3DEPRECATION_WARNING_START"});const a=({uiMessage:t})=>{e({type:"SNOOZE_V3DEPRECATION_WARNING_END",success:!1,message:t||T})};return _.post(`${o}/v3deprecation`,{snooze:!0},{headers:{"X-WP-Nonce":n}}).then((t=>{const{falsePositive:n}=t;n?a(t):e({type:"SNOOZE_V3DEPRECATION_WARNING_END",success:!0,snooze:!0,message:""})})).catch(a)}}function H(e){return{type:"SET_ACTIVE_ADMIN_TAB",tab:e}}function Y({enable:e=!0}){return function(t,n){const{apiNonce:o,apiUrl:a}=n(),s=e?"ENABLE_CONFLICT_DETECTION_SCANNER_END":"DISABLE_CONFLICT_DETECTION_SCANNER_END";t({type:e?"ENABLE_CONFLICT_DETECTION_SCANNER_START":"DISABLE_CONFLICT_DETECTION_SCANNER_START"});const c=({uiMessage:e})=>{t({type:s,success:!1,message:e||S})};return _.post(`${a}/conflict-detection/until`,e?Math.floor(new Date((new Date).valueOf()+1e3*N*60)/1e3):Math.floor(new Date/1e3)-w,{headers:{"X-WP-Nonce":o}}).then((e=>{const{status:n,data:o,falsePositive:a}=e;a?c(e):t({type:s,data:204===n?null:o,success:!0})})).catch(c)}}_.interceptors.response.use((e=>C(e)),(e=>{if(e.response)e.response=C(e.response),e.uiMessage=i()(e,"response.uiMessage");else if(e.request){const t="fontawesome_request_noresponse",n={errors:{[t]:[A]},error_data:{[t]:{request:e.request}}};e.uiMessage=(0,d.Ay)({error:n})}else{const t="fontawesome_request_failed",n={errors:{[t]:[k]},error_data:{[t]:{failedRequestMessage:e.message}}};e.uiMessage=(0,d.Ay)({error:n})}return Promise.reject(e)}))},9458:(e,t,n)=>{n.d(t,{Ay:()=>S,V2:()=>m,b3:()=>A,cA:()=>k});var o=n(8156),a=n.n(o),s=n(3560),c=n.n(s),l=n(7091),r=n.n(l),i=n(2806);const m=(0,i.__)("Font Awesome WordPress Plugin Error Report","font-awesome"),u=(0,i.__)("D'oh! That failed big time.","font-awesome"),d=(0,i.__)("There was an error attempting to report the error.","font-awesome"),p=(0,i.__)("Oh no! Your web browser could not reach your WordPress server.","font-awesome"),f=(0,i.__)("It looks like your web browser session expired. Try logging out and log back in to WordPress admin.","font-awesome"),E=(0,i.__)("The last request was successful, but it also returned the following error(s), which might be helpful for troubleshooting.","font-awesome"),h=(0,i.__)("Error","font-awesome"),g=(0,i.__)("WARNING: The last request contained errors, though your WordPress server reported it as a success. This usually means there's a problem with your theme or one of your other plugins emitting output that is causing problems.","font-awesome"),_=(0,i.__)("WARNING: The last response from your WordPress server did not include the confirmation header that should be in all valid Font Awesome responses. This is a clue that some code from another theme or plugin is acting badly and causing the wrong headers to be sent.","font-awesome"),N=(0,i.__)("CONFIRMED: The last response from your WordPress server included the confirmation header that is expected for all valid responses from the Font Awesome plugin's code running on your WordPress server.","font-awesome"),w=(0,i.__)("WARNING: Invalid Data Trimmed from Server Response","font-awesome"),b=(0,i.__)("WARNING: We expected the last response from the server to contain no data, but it contained something unexpected.","font-awesome"),v=(0,i.__)("Your WordPress server returned an error for that last request, but there was no information about the error.","font-awesome"),y=["requestMethod","responseStatus","responseStatusText","requestUrl","requestData","responseHeaders","responseData","requestHeaders"];function A(e={}){const t=a()(e,"config.headers.Content-Type","").toLowerCase(),n=a()(e,"config.data","");let o="";if("application/json"===t){try{const e=JSON.parse(n);"boolean"!=typeof a()(e,"options.apiToken")&&c()(e,"options.apiToken","REDACTED"),o=JSON.stringify(e)}catch(e){o=`ERROR while redacting request data: ${e.toString()}`}return o}return n}function k(e={}){const t={...e};for(const e in t)"x-wp-nonce"===e.toLowerCase()&&(t[e]="REDACTED");return t}const S=function(e){const{error:t=null,ok:n=!1,falsePositive:o=!1,confirmed:s=!1,expectEmpty:c=!1,trimmed:l=""}=e;console.group(m),n&&console.info(E),o&&console.info(g),s?console.info(N):console.info(_);const i=[];for(const t of y){const n=a()(e,t);if(void 0!==n){const e=typeof n;if("string"===e||"number"===e)i.push(`${t}: ${n}`);else if("object"===e){i.push(`${t}:`);for(const e in n)i.push(`\t${e}: ${n[e].toString()}`)}else console.info(`Unexpected report content type '${e}' for ${t}:`,n)}}r()(i)>0&&console.info(`Extra Info:\n${i.join("\n")}`),""!==l&&(console.group(w),c&&console.info(b),console.info(l),console.groupEnd());const A=null!==t?function(e={}){const t=Object.keys(e.errors||[]).map((t=>({code:t,message:a()(e,`errors.${t}.0`),data:a()(e,`error_data.${t}`)})));return 0===r()(t)&&t.push({code:"fontawesome_unknown_error",message:d}),t.reduce(((e,t)=>{console.group(h);const n=function(e){if(!a()(e,"code"))return console.info(d),u;let t=null,n="";const o=a()(e,"message");o&&(n=n.concat(`message: ${o}\n`),t=o);const s=a()(e,"code");if(s)switch(n=n.concat(`code: ${s}\n`),s){case"rest_no_route":t=p;break;case"rest_cookie_invalid_nonce":t=f;break;case"fontawesome_unknown_error":t=u}const c=a()(e,"data");if("string"==typeof c)n=n.concat(`data: ${c}\n`);else{const t=a()(e,"data.status");t&&(n=n.concat(`status: ${t}\n`));const o=a()(e,"data.trace");o&&(n=n.concat(`trace:\n${o}\n`))}n&&""!==n?console.info(n):console.info(e);const l=a()(e,"data.request");l&&console.info(l);const r=a()(e,"data.failedRequestMessage");return r&&console.info(r),t}(t);return console.groupEnd(),e||"previous_exception"===t.code?e:n}),null)}(t):null;return t&&""===l&&s&&console.info(v),console.groupEnd(),A}},6312:(e,t,n)=>{n.d(t,{A:()=>o});const o={"wrapper-div":"xAYNgmh_FT28wOZEe4og","submit-wrapper":"W3wz4Liah2EvWxtTBXN8","submit-status":"OpLLWfmNs6BXGmnmuinK",fail:"q0fCXPnTi1vRhNmP0IEt","fail-icon-container":"A2dLn8oZtVzuXngZMDRp",explanation:"xFoMk9Jc8Ir4n5Olcce1",success:"fQeEY3YNz4yh6R7vdi7J",icon:"JPBgwk6PxfiitLxJLE54","section-title":"VklefjWwawC59yrOPe3e","section-divider":"e8Vu3y2YBkuW8N9IhY2m","table-header":"gNYVG50hxMZs8Gqbj_T0","more-less":"dpYyb_l0GWlAiVkOmmYt","scanner-actions":"WJl_9YHKGkhUvtVwgVco","scanner-runstatus":"HBCEbIhIET1XISEYneSA",faPrimary:"ZXe2iyFqFThwx_UF4CBf","conflict-detection-timer":"HgLyUkphZYd8YsLSMJAZ",warning:"Gu2u4ZSZT25Yqm8zSogj","sr-only":"WOV9bdVrpJVdQWzhBnHZ",flex:"QN_KH8sqi5QFBDqaH1rI","flex-row":"bBMVcUUJf1GW7veG1Zic","flex-column":"pIa2BGO1ABMtYZY185Bf",relative:"h0koIl1zvME7toM3jUk9",status:"kWqY7l_wn27HmdUNz7ZY",good:"q3No9l7YMUEH1xvYTNfI","success-icon":"Y7M4JHzDp7jtCt6MonbK","conflict-icon":"a6qTuZmDiKS_FHgMZawo",conflict:"PwCQsIQEdGz9b0cOj3iA","warning-icon":"rw5FUVRrrdM17WyxcRZ9","space-left":"QEoklKhbCbwOUBs0cspa","input-checkbox-custom":"oWHnpotXuoOIlJoqkkgw","checked-icon":"NzRaF0U8aKPVtS6JIaK8","input-radio-custom":"gIUwcNcpOHhTKG4sTlfg","unchecked-icon":"iemYJRvB4tzF1xnuGiAw","option-label-explanation":"BFR5diS8tiViycbuTDVS"}}}]);