OCDevManageApplicationAttestationAPIView.react",["fbt","GeoButton.react","GeoCardFooter.react","GeoFlexbox.react","GeoHeading.react","GeoPageCard.react","GeoPageSection.react","GeoPopover.react","GeoSection.react","GeoText.react","GeoTooltipText.react","OCDevCenterDocumentationCMSRoute","OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch.react","OCDevManageApplicationAttestationAPIViewJWETokenEnablementSwitch.react","OCDevManageApplicationAttestationAPIViewMutation.graphql","OCDevManageApplicationAttestationAPIViewTokenExpirationDurationSelector.react","OCDevManageApplicationAttestationAPIView_application.graphql","OCDevManagePage.react","OCDevManagePageHeader.react","OCDevUIForm.react","OCDevUIFormSubmitButton.react","OCDevUILink.react","OCDevUISpacedLayout.react","RelayHooks","asyncToGeneratorRuntime","deepEquals","gkx","react","useOCDevManagePermissionDisabledMessage","useOCDevUICommitMutation","useOCDevUIFormState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){var e;a=a.application;var f=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationAttestationAPIView_application.graphql"),a);a=f.attestation_api_config;a=c("useOCDevUIFormState")({isDeviceIntegrityStateBypassEnabled:(e=a==null?void 0:a.enable_employee_bypass)!=null?e:!0,isJWETokenEnabled:(e=a==null?void 0:a.enable_jwe_encryption)!=null?e:!1,tokenExpirationTimeHour:(e=a==null?void 0:a.token_expiration_time_hour)!=null?e:24});var g=a[0],k=a[1],m=c("useOCDevUICommitMutation")(j!==void 0?j:j=b("OCDevManageApplicationAttestationAPIViewMutation.graphql"));function n(){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;yield m({input:{application_id:(a=f.id)!=null?a:"",enable_employee_bypass:g.isDeviceIntegrityStateBypassEnabled,enable_jwe_encryption:g.isJWETokenEnabled,token_expiration_time_hour:g.tokenExpirationTimeHour}})});return o.apply(this,arguments)}var p={isDeviceIntegrityStateBypassEnabled:!0,isJWETokenEnabled:!1,tokenExpirationTimeHour:24};e=c("useOCDevManagePermissionDisabledMessage")(f==null?void 0:f.organization,["MANAGE_APPLICATION"]);return l.jsx(c("OCDevManagePage.react"),{columns:8,header:l.jsx(c("OCDevManagePageHeader.react"),{heading:h._("u53d6u8bc1 API u914du7f6e")}),children:l.jsx(c("GeoPageSection.react"),{children:l.jsx(c("OCDevUIForm.react"),{onSubmit:n,children:l.jsxs(c("GeoPageCard.react"),{columns:8,footer:l.jsx(c("GeoCardFooter.react"),{primaryButton:l.jsx(c("OCDevUIFormSubmitButton.react"),{disabledTooltip:e,forceDisabled:e!=null,label:h._("u4fddu5b58")}),secondaryButton:l.jsx(c("GeoButton.react"),{isDisabled:c("deepEquals")(g,p),label:h._("u6062u590du9ed8u8ba4"),onClick:function(){return k(function(){return p})}})}),children:[l.jsx(c("GeoSection.react"),{children:l.jsx(c("GeoText.react"),{children:h._("u6839u636eu4f60u7684u5e94u7528u8981u6c42u5b9au5236{Attestation API Link}u8bbeu7f6eu3002",[h._param("Attestation API Link",l.jsx(c("OCDevUILink.react"),{href:c("OCDevCenterDocumentationCMSRoute").getURI({0:"documentation",path:"unity/ps-attestation-api/"}),children:"Attestation API"}))])})}),l.jsx(c("GeoSection.react"),{children:l.jsxs(c("OCDevUISpacedLayout.react"),{children:[l.jsxs(c("GeoFlexbox.react"),{children:[l.jsx(c("GeoHeading.react"),{level:1,children:h._("u7ed5u5f00u8bbeu5907u8bdau4fe1u72b6u6001")}),l.jsx(c("GeoPopover.react"),{content:l.jsx(c("GeoTooltipText.react"),{children:h._("u5982u679cu542fu7528uff0cMeta u5458u5de5u4fbfu53efu7ed5u5f00u53d6u8bc1u53e3u4ee4u4e2du7684u201cdevice_integrity_stateu201duff0cu5e76u80fdu5728 Meta u7684u5185u90e8u6d4bu8bd5u8bbeu5907u4e0au5bf9{App Name}u8fdbu884cu6d4bu8bd5uff0cu5373u4f7fu8fd9u4e9bu8bbeu5907u5904u4e8eu4e0du53d7u4fe1u4efbu72b6u6001uff0cu4f8bu5982u5df2u88abu89e3u9501u6216u201cu8d8au72f1u201du3002u9ed8u8ba4u8bbeu7f6eu662fu201cu5f00u201du3002",[h._param("App Name",(a=f==null?void 0:f.display_name)!=null?a:"your application")])}),heading:"",isSticky:!1})]}),l.jsx(c("OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch.react"),{application:f,value:g.isDeviceIntegrityStateBypassEnabled,onChange:function(a){return k(function(b){return babelHelpers["extends"]({},b,{isDeviceIntegrityStateBypassEnabled:a})})}})]})}),c("gkx")("25735")?l.jsx(c("GeoSection.react"),{children:l.jsxs(c("OCDevUISpacedLayout.react"),{children:[l.jsxs(c("GeoFlexbox.react"),{children:[l.jsx(c("GeoHeading.react"),{level:1,children:h._("JWE u53e3u4ee4")}),l.jsx(c("GeoPopover.react"),{content:l.jsx(c("GeoTooltipText.react"),{children:h._("u5982u679cu542fu7528uff0cu8fd4u56deu7684u53d6u8bc1u53e3u4ee4u5c06u4e3a JWEuff08JSON Web Encryptionuff0cu5373 JSON u7f51u7edcu52a0u5bc6uff09u53e3u4ee4u3002JWE u4f1au52a0u5bc6u6709u6548u8d1fu8f7duff0cu786eu4fddu6570u636eu5373u4f7fu88abu622au83b7u4e5fu80fdu5904u4e8eu4fddu5bc6u72b6u6001u3002u8fd9u5c42u989du5916u7684u52a0u5bc6u4fddu62a4u8ba9 JWE u6210u4e3au7eddu4f73u7684u6570u636eu4f20u8f93u4fddu969cu624bu6bb5u3002u6211u4eecu5efau8baeu542fu7528u8be5u529fu80fdu3002u53d6u8bc1u53e3u4ee4u9ed8u8ba4u4e3a JWTuff08JSON Web Tokenuff0cu5373 JSON u7f51u7edcu53e3u4ee4uff09u3002")}),heading:"",isSticky:!1})]}),l.jsx(c("OCDevManageApplicationAttestationAPIViewJWETokenEnablementSwitch.react"),{application:f,value:g.isJWETokenEnabled,onChange:function(a){return k(function(b){return babelHelpers["extends"]({},b,{isJWETokenEnabled:a})})}})]})}):null,l.jsx(c("GeoSection.react"),{children:l.jsxs(c("OCDevUISpacedLayout.react"),{children:[l.jsxs(c("GeoFlexbox.react"),{children:[l.jsx(c("GeoHeading.react"),{level:1,children:h._("u53e3u4ee4u6709u6548u671f")}),l.jsx(c("GeoPopover.react"),{content:l.jsx(c("GeoTooltipText.react"),{children:h._("u5bf9u7528u4e8eu654fu611fu64cdu4f5cu6216u5177u6709u9ad8u5b89u5168u5ea6u9700u8981u7684u5e94u7528uff0cu8bf7u8003u8651u5c06u6709u6548u671fu7f29u77edu4e3a 1-12 u5c0fu65f6u3002u5bf9u4e8eu6ce8u91cdu6027u80fdu548cu51cfu5c11u4e2du65adu7684u4e00u822cu5e94u7528uff0c24-48 u5c0fu65f6u4e3au5b9cu3002u9ed8u8ba4u4e3a 24 u5c0fu65f6u3002")}),heading:"",isSticky:!1})]}),l.jsx(c("GeoText.react"),{children:h._("u66f4u77edu7684u6709u6548u671fu80fdu7f29u77edu8bbeu5907u548cu5e94u7528u906du5165u4fb5u7684u68c0u6d4bu65f6u957fuff0cu4eceu800cu5f3au5316u5b89u5168u6027uff0cu4f46u9700u8981u66f4u9891u7e41u5730u53d6u8bc1u68c0u67e5u3002u53cdu4e4buff0cu66f4u957fu7684u6709u6548u671fu80fdu7f29u77edu5e94u7528u52a0u8f7du65f6u957fuff0cu4f46u82e5u51fau73b0u5165u4fb5uff0cu975eu6388u6743u8bbfu95eeu7684u8303u56f4u53efu80fdu4f1au6269u5927u3002")}),l.jsx(c("OCDevManageApplicationAttestationAPIViewTokenExpirationDurationSelector.react"),{value:g.tokenExpirationTimeHour,onChange:function(a){return k(function(b){return babelHelpers["extends"]({},b,{tokenExpirationTimeHour:a})})}})]})})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationAttestationAPIView_application.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageApplicationAttestationAPIView_application",selections:[{alias:null,args:null,concreteType:"XOCOCAttestationAPIConfigData",kind:"LinkedField",name:"attestation_api_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"enable_employee_bypass",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"enable_jwe_encryption",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"token_expiration_time_hour",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"Organization",kind:"LinkedField",name:"organization",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useOCDevManagePermissionDisabledMessage_organization"}],storageKey:null},{args:null,kind:"FragmentSpread",name:"OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application"},{args:null,kind:"FragmentSpread",name:"OCDevManageApplicationAttestationAPIViewJWETokenEnablementSwitch_application"}],type:"Application",abstractKey:null};e.exports=a}),null);
-----
OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch.react",["fbt","GeoSwitch.react","OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.application,f=a.onChange,g=a.value,j=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application.graphql"),e);function l(){if(g){var a;return h._("Meta u7528u4e8eu5185u90e8u6d4bu8bd5u7684u8bbeu5907u4f1au5728u53d6u8bc1u53e3u4ee4u7684u201cdevice_stateu201du4e2du7edfu4e00u628au201cdevice_integrity_stateu201du503cu8bbeu4e3au201cu9ad8u7ea7u201du3002u5373u4f7f{app name}u7684u670du52a1u5668u5bf9u6807u8bb0u4e3au201cu4e0du53d7u4fe1u4efbu201du7684u8bbeu5907u9650u5236u670du52a1uff0cMeta u7684u5185u90e8u6d4bu8bd5u56e2u961fu4ecdu53efu5728u8fd9u4e9bu8bbeu5907u4e0au5bf9u4f60u7684u5e94u7528u7a0bu5e8fu8fdbu884cu8bc4u4f30uff0cu7531u5176u662fu5728u521du59cbu7f16u8bd1u7248u672cu53d1u5e03u8bc4u4f30u671fu95f4u3002",[h._param("app name",(a=j==null?void 0:j.display_name)!=null?a:"your application")])}else if(Boolean(j==null?void 0:j.display_name))return h._("u5df2u7981u6b62{app name}u7ed5u5f00u8bbeu5907u8bdau4fe1u72b6u6001u3002Meta u7684u5185u90e8u6d4bu8bd5u56e2u961fu53efu80fdu4f1au5931u53bbu5728 Meta u5185u90e8u6d4bu8bd5u8bbeu5907u4e0au5bf9u4f60u7684u5e94u7528u7a0bu5e8fu8fdbu884cu6d4bu8bd5u7684u80fdu529buff0cu7531u5176u662fu5728u521du59cbu7f16u8bd1u7248u672cu53d1u5e03u8bc4u4f30u671fu95f4u3002",[h._param("app name",j.display_name)]);else return h._("u5df2u7981u6b62u7ed5u5f00u8bbeu5907u8bdau4fe1u72b6u6001u3002")}return k.jsx(c("GeoSwitch.react"),{description:l(),isLabelHidden:!1,label:g?h._("u5f00"):h._("u5173"),labelPosition:"suffix",value:g,onChange:function(a){return f(a)}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application",selections:[{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],type:"Application",abstractKey:null};e.exports=a}),null);
-----
OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch.react",["fbt","GeoSwitch.react","OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.application,f=a.onChange,g=a.value,j=d("RelayHooks").useFragment(i!==void 0?i:i=b("OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application.graphql"),e);function l(){if(g){var a;return h._("Meta u7528u4e8eu5185u90e8u6d4bu8bd5u7684u8bbeu5907u4f1au5728u53d6u8bc1u53e3u4ee4u7684u201cdevice_stateu201du4e2du7edfu4e00u628au201cdevice_integrity_stateu201du503cu8bbeu4e3au201cu9ad8u7ea7u201du3002u5373u4f7f{app name}u7684u670du52a1u5668u5bf9u6807u8bb0u4e3au201cu4e0du53d7u4fe1u4efbu201du7684u8bbeu5907u9650u5236u670du52a1uff0cMeta u7684u5185u90e8u6d4bu8bd5u56e2u961fu4ecdu53efu5728u8fd9u4e9bu8bbeu5907u4e0au5bf9u4f60u7684u5e94u7528u7a0bu5e8fu8fdbu884cu8bc4u4f30uff0cu7531u5176u662fu5728u521du59cbu7f16u8bd1u7248u672cu53d1u5e03u8bc4u4f30u671fu95f4u3002",[h._param("app name",(a=j==null?void 0:j.display_name)!=null?a:"your application")])}else if(Boolean(j==null?void 0:j.display_name))return h._("u5df2u7981u6b62{app name}u7ed5u5f00u8bbeu5907u8bdau4fe1u72b6u6001u3002Meta u7684u5185u90e8u6d4bu8bd5u56e2u961fu53efu80fdu4f1au5931u53bbu5728 Meta u5185u90e8u6d4bu8bd5u8bbeu5907u4e0au5bf9u4f60u7684u5e94u7528u7a0bu5e8fu8fdbu884cu6d4bu8bd5u7684u80fdu529buff0cu7531u5176u662fu5728u521du59cbu7f16u8bd1u7248u672cu53d1u5e03u8bc4u4f30u671fu95f4u3002",[h._param("app name",j.display_name)]);else return h._("u5df2u7981u6b62u7ed5u5f00u8bbeu5907u8bdau4fe1u72b6u6001u3002")}return k.jsx(c("GeoSwitch.react"),{description:l(),isLabelHidden:!1,label:g?h._("u5f00"):h._("u5173"),labelPosition:"suffix",value:g,onChange:function(a){return f(a)}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"OCDevManageApplicationAttestationAPIViewDeviceIntegrityStateBypassSwitch_application",selections:[{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],type:"Application",abstractKey:null};e.exports=a}),null);
-----