BizKitNewsPublisherApplicationPaywallAccess.react",["ix","BizKitNewsPublisherApplicationPaywallAccessMutation.graphql","BizKitNewsPublisherApplicationPaywallAccess_application.graphql","BizKitNewsPublisherApplicationStatusDetailStrings.react","BizKitNewsPublisherApplicationStatusDetailsItem.react","BizKitNewsPublisherApplicationStringUtils.react","CometRelay","FBLogger","GeoBaseText.react","GeoButton.react","GeoCancelButton.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoSpinner.react","GeoTextInput.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useState,o=i!==void 0?i:i=b("BizKitNewsPublisherApplicationPaywallAccess_application.graphql"),p=j!==void 0?j:j=b("BizKitNewsPublisherApplicationPaywallAccessMutation.graphql");function a(a){a=a.application;a=d("CometRelay").useFragment(o,a);var b=a==null?void 0:a.id;if(b==null)throw c("FBLogger")("news_publisher_registration").mustfix("Application must have an ID");var e=h("518322"),f=h("182542"),g=n(""),i=g[0],j=g[1];g=n("");var k=g[0],q=g[1];g=n(!1);var r=g[0],s=g[1];g=n(!1);var t=g[0],u=g[1];g=n(!1);var v=g[0],w=g[1];g=n("");var x=g[0],y=g[1];g=d("CometRelay").useMutation(p);var z=g[0],A=g[1],B=m(function(a,c,b){z({onCompleted:function(a){w(!0)},onError:function(a){s(!0)},variables:{input:{application_id:a,password:{sensitive_string_value:b},username:c}}})},[z]);g=function(a){return a!=null?d("BizKitNewsPublisherApplicationStringUtils.react").getPaywallLoginCredentialsDescriptionAfterSubmissionText(F):d("BizKitNewsPublisherApplicationStringUtils.react").getPaywallLoginCredentialsDescriptionBeforeSubmissionText(F)};var C=function(a){return a!=null?"success":"inactive"},D=function(){u(!1),w(!1)},E=function(){B(b,x,k),q("")},F=function(){u(!0)},G=function(a){q(a)},H=function(a){j(a)},I=function(a){y(a)},J=function(){if(A)return l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{label:"loading"})});else if(v)return l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{label:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_MODAL_FORM_PRIMARY_BUTTON_LABEL,onClick:D,variant:"primary"})});return l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{isDisabled:x===""||k===""||k!==i,label:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_MODAL_FORM_PRIMARY_BUTTON_LABEL,onClick:E,variant:"primary"}),secondaryButton:l.jsx(c("GeoCancelButton.react"),{})})},K=function(){if(A)return l.jsx(c("GeoSection.react"),{children:l.jsx(c("GeoSpinner.react"),{label:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_SPINNER_TITLE,size:"large"})});return v?l.jsx(c("GeoSection.react"),{children:l.jsx(c("GeoGuidanceCard.react"),{header:l.jsx(c("GeoGuidanceCardHeader.react"),{heading:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_CREDENTIALS_SUBMISSION_SUCCESS_HEADER}),status:"success",children:l.jsx(c("GeoGuidanceCardContent.react"),{children:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_CREDENTIALS_SUBMISSION_SUCCESS_CONTENT})})}):l.jsxs(c("GeoSection.react"),{children:[r&&l.jsx(c("GeoNotice.react"),{status:"error",children:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").INFO_NOTICE_CONTENT_ERROR}),l.jsx(c("GeoTextInput.react"),{label:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_MODAL_USERNAME_INPUT_LABEL,onChange:I}),l.jsx(c("GeoTextInput.react"),{label:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_MODAL_PASSWORD_INPUT_LABEL,onChange:G,type:"password"}),l.jsx(c("GeoTextInput.react"),{errorMessage:i!==""&&k!==i?c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_PASSWORDS_DO_NOT_MATCH_LABEL:null,label:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_MODAL_CONFIRM_PASSWORD_INPUT_LABEL,onChange:H,type:"password"}),l.jsx("div",{style:{marginTop:10},children:l.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",children:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_CREDENTIALS_USAGE_EXPLANATION})})]})};a=a.paywallLoginCredentials;a=a==null?void 0:a.username;return l.jsxs("div",{children:[l.jsx(c("BizKitNewsPublisherApplicationStatusDetailsItem.react"),{description:g(a),highlightType:C(a),icon:a!=null&&a!==""?e:f,title:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_CREDENTIALS_SECTION_TITLE}),l.jsx(c("GeoModal.react"),{footer:J(),header:l.jsx(c("GeoModalHeader.react"),{heading:c("BizKitNewsPublisherApplicationStatusDetailStrings.react").PAYWALL_MODAL_FORM_TITLE}),isShown:t,onHide:D,children:K()})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitNewsPublisherApplicationPaywallAccessMutation.graphql",["BizKitNewsPublisherApplicationPaywallAccessMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,concreteType:"PublisherPaywallLoginCredentials",kind:"LinkedField",name:"paywall_credentials",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BizKitNewsPublisherApplicationPaywallAccessMutation",selections:[{alias:null,args:c,concreteType:"UpdatePaywallCredentialsResponsePayload",kind:"LinkedField",name:"update_paywall_credentials",plural:!1,selections:[{alias:null,args:null,concreteType:"NewsPublisherApplication",kind:"LinkedField",name:"application",plural:!1,selections:[d],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BizKitNewsPublisherApplicationPaywallAccessMutation",selections:[{alias:null,args:c,concreteType:"UpdatePaywallCredentialsResponsePayload",kind:"LinkedField",name:"update_paywall_credentials",plural:!1,selections:[{alias:null,args:null,concreteType:"NewsPublisherApplication",kind:"LinkedField",name:"application",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BizKitNewsPublisherApplicationPaywallAccessMutation_facebookRelayOperation"),metadata:{},name:"BizKitNewsPublisherApplicationPaywallAccessMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BizKitNewsPublisherApplicationPaywallAccessMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="23939359165649279"}),null);
-----
-----
BizKitNewsPublisherApplicationPaywallAccessMutation.graphql",["BizKitNewsPublisherApplicationPaywallAccessMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{kind:"Variable",name:"input",variableName:"input"}],d={alias:null,args:null,concreteType:"PublisherPaywallLoginCredentials",kind:"LinkedField",name:"paywall_credentials",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"BizKitNewsPublisherApplicationPaywallAccessMutation",selections:[{alias:null,args:c,concreteType:"UpdatePaywallCredentialsResponsePayload",kind:"LinkedField",name:"update_paywall_credentials",plural:!1,selections:[{alias:null,args:null,concreteType:"NewsPublisherApplication",kind:"LinkedField",name:"application",plural:!1,selections:[d],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"BizKitNewsPublisherApplicationPaywallAccessMutation",selections:[{alias:null,args:c,concreteType:"UpdatePaywallCredentialsResponsePayload",kind:"LinkedField",name:"update_paywall_credentials",plural:!1,selections:[{alias:null,args:null,concreteType:"NewsPublisherApplication",kind:"LinkedField",name:"application",plural:!1,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("BizKitNewsPublisherApplicationPaywallAccessMutation_facebookRelayOperation"),metadata:{},name:"BizKitNewsPublisherApplicationPaywallAccessMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
-----
BizKitNewsPublisherApplicationPaywallAccessMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="23939359165649279"}),null);
-----