WearablesCreateVersionModal.react",["fbt","$InternalEnum","GeoButton.react","GeoCancelButton.react","GeoLink.react","GeoModalFooter.react","GeoModalHeader.react","GeoModal_DEPRECATED.react","GeoMultiSelector.react","GeoMultiSelectorItem.react","GeoRadioList.react","GeoRadioListItem.react","GeoSection.react","GeoTextArea.react","GeoTextInput.react","GeoVStack.react","HWDeviceType","Recoil","RelayHooks","WearablesCreateVersionModal_application.graphql","WearablesReleaseChannelUtils","WearablesStore","isStringNullOrEmpty","react","react-compiler-runtime","useCreateWearablesProjectVersionMutation"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useState,_=d.useTransition,f=n("$InternalEnum").Mirrored(["Major","Minor","Patch"]);function g(e,t){if(r("isStringNullOrEmpty")(e))return"1.0.0";var n=e.split("."),o=parseInt(n[0],10),a=parseInt(n[1],10),i=parseInt(n[2],10);switch(t){case f.Major:return o+1+".0.0";case f.Minor:return o+"."+(a+1)+".0";case f.Patch:return o+"."+a+"."+(i+1)}}function h(t){var a=o("react-compiler-runtime").c(53),i=t.isShown,l=t.onHide,u=t.wearablesProjectRef,d=_(),m=d[1],h=o("Recoil").useRecoilValue(o("WearablesStore").ShowEmployeeOnlyFeaturesAtom),C=p(""),b=C[0],v=C[1],S=p(f.Major),R=S[0],L=S[1],E=p(null),k=E[0],I=E[1],T=r("useCreateWearablesProjectVersionMutation")(),D=T[0],x=T[1],$=o("RelayHooks").useFragment(e!==void 0?e:e=n("WearablesCreateVersionModal_application.graphql"),u),P=$==null?void 0:$.latest_version,N=$==null?void 0:$.id,M;a[0]!==l?(M=function(){l(),m(function(){v(""),L(f.Major),I(null)})},a[0]=l,a[1]=M):M=a[1];var w=M,A;a[2]!==D||a[3]!==b||a[4]!==P||a[5]!==w||a[6]!==N||a[7]!==k||a[8]!==R?(A=function(){var e=g(P,R);D({description:b,onCompleted:w,projectID:N,supportedDevices:k,version:e})},a[2]=D,a[3]=b,a[4]=P,a[5]=w,a[6]=N,a[7]=k,a[8]=R,a[9]=A):A=a[9];var F=A,O;a[10]===Symbol.for("react.memo_cache_sentinel")?(O=s._(/*BTDS*/"Create version"),a[10]=O):O=a[10];var B;a[11]!==x||a[12]!==F?(B=c.jsx(r("GeoButton.react"),{"data-testid":void 0,isLoading:x,label:O,onClick:F,variant:"primary"}),a[11]=x,a[12]=F,a[13]=B):B=a[13];var W;a[14]!==x?(W=c.jsx(r("GeoCancelButton.react"),{isDisabled:x}),a[14]=x,a[15]=W):W=a[15];var q;a[16]!==B||a[17]!==W?(q=c.jsx(r("GeoModalFooter.react"),{primaryButton:B,secondaryButton:W}),a[16]=B,a[17]=W,a[18]=q):q=a[18];var U;a[19]===Symbol.for("react.memo_cache_sentinel")?(U=c.jsx(r("GeoModalHeader.react"),{description:s._(/*BTDS*/"The version will use the latest project changes."),heading:s._(/*BTDS*/"New version")}),a[19]=U):U=a[19];var V;a[20]===Symbol.for("react.memo_cache_sentinel")?(V=s._(/*BTDS*/"Create version"),a[20]=V):V=a[20];var H;a[21]===Symbol.for("react.memo_cache_sentinel")?(H=s._(/*BTDS*/"Type"),a[21]=H):H=a[21];var G;a[22]===Symbol.for("react.memo_cache_sentinel")?(G=c.jsx(r("GeoRadioListItem.react"),{description:s._(/*BTDS*/"This version includes API changes incompatible with previous versions."),label:s._(/*BTDS*/"Major"),value:f.Major}),a[22]=G):G=a[22];var z;a[23]===Symbol.for("react.memo_cache_sentinel")?(z=c.jsx(r("GeoRadioListItem.react"),{description:s._(/*BTDS*/"This version adds functionality compatible with previous versions."),label:s._(/*BTDS*/"Minor"),value:f.Minor}),a[23]=z):z=a[23];var j;a[24]===Symbol.for("react.memo_cache_sentinel")?(j=c.jsx(r("GeoRadioListItem.react"),{description:s._(/*BTDS*/"This version includes bug fixes compatible with previous versions."),label:s._(/*BTDS*/"Patch"),value:f.Patch}),a[24]=j):j=a[24];var K;a[25]!==R?(K=c.jsxs(r("GeoRadioList.react"),{label:H,onChange:L,value:R,children:[G,z,j]}),a[25]=R,a[26]=K):K=a[26];var Q;a[27]===Symbol.for("react.memo_cache_sentinel")?(Q=s._(/*BTDS*/"This is set by the version type."),a[27]=Q):Q=a[27];var X;a[28]===Symbol.for("react.memo_cache_sentinel")?(X=s._(/*BTDS*/"Version number"),a[28]=X):X=a[28];var Y;a[29]!==P||a[30]!==R?(Y=g(P,R),a[29]=P,a[30]=R,a[31]=Y):Y=a[31];var J;a[32]!==Y?(J=c.jsx(r("GeoTextInput.react"),{description:Q,isDisabled:!0,label:X,value:Y}),a[32]=Y,a[33]=J):J=a[33];var Z;a[34]===Symbol.for("react.memo_cache_sentinel")?(Z=s._(/*BTDS*/"This is only visible to members of your team."),a[34]=Z):Z=a[34];var ee;a[35]===Symbol.for("react.memo_cache_sentinel")?(ee=s._(/*BTDS*/"Description"),a[35]=ee):ee=a[35];var te;a[36]===Symbol.for("react.memo_cache_sentinel")?(te=s._(/*BTDS*/"Enter text..."),a[36]=te):te=a[36];var ne;a[37]!==b?(ne=c.jsx(r("GeoTextArea.react"),{"data-testid":void 0,description:Z,isOptional:!0,label:ee,maxLength:100,onChange:v,placeholder:te,value:b}),a[37]=b,a[38]=ne):ne=a[38];var re;a[39]!==h||a[40]!==N||a[41]!==k?(re=h&&c.jsx(r("GeoMultiSelector.react"),{"data-button-testid":"version-create-modal-supported-devices-button",description:s._(/*BTDS*/"If you leave this empty this version will follow the supported devices that were set for this application in {=m2}.",[s._implicitParam("=m2",c.jsx(r("GeoLink.react"),{href:o("WearablesReleaseChannelUtils").getApplicationMetadataLink(N),target:"_blank",children:s._(/*BTDS*/"Application Metadata Internal Tool")}))]),label:s._(/*BTDS*/"Supported devices"),onChange:I,value:k,children:Object.keys(r("HWDeviceType")).map(y)}),a[39]=h,a[40]=N,a[41]=k,a[42]=re):re=a[42];var oe;a[43]!==K||a[44]!==J||a[45]!==ne||a[46]!==re?(oe=c.jsx(r("GeoSection.react"),{children:c.jsxs(r("GeoVStack.react"),{context:"container",relation:"unrelated",children:[K,J,ne,re]})}),a[43]=K,a[44]=J,a[45]=ne,a[46]=re,a[47]=oe):oe=a[47];var ae;return a[48]!==i||a[49]!==w||a[50]!==oe||a[51]!==q?(ae=c.jsx(r("GeoModal_DEPRECATED.react"),{"data-testid":void 0,footer:q,header:U,isShown:i,label:V,onHide:w,children:oe}),a[48]=i,a[49]=w,a[50]=oe,a[51]=q,a[52]=ae):ae=a[52],ae}function y(e){return c.jsx(r("GeoMultiSelectorItem.react"),{"data-testid":void 0,label:e,value:e},e)}y.displayName=y.name+" [from "+i.id+"]",l.UpdateType=f,l.WearablesCreateVersionModal=h}),226);
-----
useCreateWearablesProjectVersionMutation.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{kind:"Variable",name:"data",variableName:"input"}],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"created_time",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"review_status",storageKey:null},s={alias:null,args:null,concreteType:"XFBAppViolation",kind:"LinkedField",name:"visible_active_violations_to_developers",plural:!0,selections:[n],storageKey:null},u=[n,a,o];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useCreateWearablesProjectVersionMutation",selections:[{alias:null,args:t,concreteType:"XARCreateWearablesApplicationVersionResponsePayload",kind:"LinkedField",name:"xar_create_wearables_application_version",plural:!1,selections:[{alias:null,args:null,concreteType:"XARWearablesApplicationVersion",kind:"LinkedField",name:"wearables_application_version",plural:!1,selections:[n,r,o,{alias:null,args:null,concreteType:"XARDevProfile",kind:"LinkedField",name:"created_by",plural:!1,selections:[a],storageKey:null},i,{args:null,kind:"FragmentSpread",name:"WearablesVersionDetailsOverviewTab_version"},{args:null,kind:"FragmentSpread",name:"WearablesVersionDetailsReleaseChannelsTab_version"},{args:null,kind:"FragmentSpread",name:"WearablesVersionDetailsProjectDataTab_version"},l,s],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useCreateWearablesProjectVersionMutation",selections:[{alias:null,args:t,concreteType:"XARCreateWearablesApplicationVersionResponsePayload",kind:"LinkedField",name:"xar_create_wearables_application_version",plural:!1,selections:[{alias:null,args:null,concreteType:"XARWearablesApplicationVersion",kind:"LinkedField",name:"wearables_application_version",plural:!1,selections:[n,r,o,{alias:null,args:null,concreteType:"XARDevProfile",kind:"LinkedField",name:"created_by",plural:!1,selections:[a,n],storageKey:null},i,{alias:null,args:null,concreteType:"XARWearablesApplicationVersionReleaseChannelsConnection",kind:"LinkedField",name:"release_channels",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},n,a,o],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"XARWearablesApplication",kind:"LinkedField",name:"application",plural:!1,selections:[n,{alias:null,args:null,concreteType:"XARWearablesProdReleaseChannel",kind:"LinkedField",name:"prod_release_channel",plural:!1,selections:u,storageKey:null},{alias:null,args:null,concreteType:"XARWearablesApplicationReleaseChannelsConnection",kind:"LinkedField",name:"release_channels",plural:!1,selections:[{alias:null,args:null,concreteType:"XARWearablesReleaseChannel",kind:"LinkedField",name:"nodes",plural:!0,selections:u,storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_taken_down",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hw_supported_devices",storageKey:null},{alias:null,args:null,concreteType:"XARWearablesVersionApplicationData",kind:"LinkedField",name:"application_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ios_package_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ios_universal_link",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"android_package_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"android_app_signature",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"app_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"app_icon_name_light_mode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"app_icon_name_dark_mode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"app_icon_uri_light_mode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"app_icon_uri_dark_mode",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"camera_permission_justification",storageKey:null}],storageKey:null},l,s],storageKey:null}],storageKey:null}]},params:{id:"25401175089570511",metadata:{},name:"useCreateWearablesProjectVersionMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----