OCDevManageWorldsInventoryCreationFlowTemplateSelection.react",["fbt","AvatarCreatorsCreationFlowGates","BizWebGeoLocalNavigationFooter.react","CometImage.react","EconomyDigiGoodsLogger","EconomyDigiGoodsSessionStorageUtil","GeoFlexbox.react","GeoImageTile.react","GeoImageTileGroup.react","GeoPill.react","GeoScrollableArea.react","GeoSidebarItem.react","GeoSidebarNavigation.react","GeoSidebarSection.react","OCDevManageOrganizationWorldsInventoryCreateRoute","OCDevManagePlaceholder.react","OCDevManageWorldsInventoryConstants","OCDevManageWorldsInventoryCreationFlowActions","OCDevManageWorldsInventoryCreationFlowContext","OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery.graphql","OCDevManageWorldsInventoryCreationFlowUtils","OCNavigatorHooks","RelayHooks","XFBAvatarAssetTemplateCategory.oculus","geoMargin","react","useOCDevManageWorldsOrgID","useOCDevManageWorldsQueryParams"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useEffect,m=180;function a(a){var b;a=a.queryRef;var e=c("useOCDevManageWorldsOrgID")(),f=d("OCNavigatorHooks").useNavigate(),g=c("useOCDevManageWorldsQueryParams")(),h=d("OCDevManageWorldsInventoryCreationFlowContext").useAvatarCreatorsCreationFlowDispatch(),i="cat_list",j=d("AvatarCreatorsCreationFlowGates").isDev()?d("OCDevManageWorldsInventoryConstants").CategoriesList:[d("OCDevManageWorldsInventoryConstants").CategoriesList[0]].concat(d("AvatarCreatorsCreationFlowGates").isBottomsEnabled()?[d("OCDevManageWorldsInventoryConstants").CategoriesList[1]]:[],d("AvatarCreatorsCreationFlowGates").isShoesEnabled()?[d("OCDevManageWorldsInventoryConstants").CategoriesList[2]]:[]),o=c("XFBAvatarAssetTemplateCategory.oculus").cast(g==null?void 0:g.template_category);b=((b=j.find(function(a){return a.key===o}))!=null?b:j[0]).key;l(function(){h(d("OCDevManageWorldsInventoryCreationFlowActions").clearAllTextures())},[h]);(g==null?void 0:g.utm_source)!==i&&(d("EconomyDigiGoodsSessionStorageUtil").economyDigiGoodsGetLoggingAttributes()||(d("EconomyDigiGoodsSessionStorageUtil").economyDigiGoodsSetLoggingAttributes({utmSource:g==null?void 0:g.utm_source}),d("EconomyDigiGoodsSessionStorageUtil").economyDigiGoodsSetWaterfallSessionId(),d("EconomyDigiGoodsSessionStorageUtil").economyDigiGoodsSetProductType("AVATAR_CLOTHING_RETEXTURE")),d("EconomyDigiGoodsLogger").logTemplateSelectPageImpression());return k.jsxs(k.Fragment,{children:[k.jsx(c("GeoFlexbox.react"),{direction:"column",grow:0,justifyContent:"center",xstyle:c("geoMargin").all12,children:k.jsx(c("GeoFlexbox.react"),{grow:1,xstyle:p.navBar,children:k.jsx(c("GeoSidebarNavigation.react"),{footer:k.jsx(c("BizWebGeoLocalNavigationFooter.react"),{}),isAutoCollapsible:!0,value:b,variant:"flat",onChange:function(a){var b;d("EconomyDigiGoodsLogger").logTemplateSelectCategoryListClick(a);f(c("OCDevManageOrganizationWorldsInventoryCreateRoute").getURI({organizationID:e}).addQueryData({step:(b=g==null?void 0:g.step)!=null?b:"template",template_category:a,utm_source:i}),{})},children:k.jsx(c("GeoSidebarSection.react"),{isLabelHidden:!0,label:"",children:j.map(function(a){var b=a.icon,d=a.iconActive,e=a.key;a=a.label;return k.jsx(c("GeoSidebarItem.react"),{"data-testid":void 0,icon:b,iconActive:d,label:a,value:e},e)})})})})}),k.jsx(c("GeoFlexbox.react"),{grow:2,xstyle:[p.templatesList,c("geoMargin").top12,c("geoMargin").horiz12],children:k.jsx(c("GeoScrollableArea.react"),{direction:"vertical",xstyle:p.templatesScrollable,children:k.jsx(c("OCDevManagePlaceholder.react"),{fallback:k.jsx(d("OCDevManageWorldsInventoryCreationFlowUtils").AvatarCreatorsCreationFlowLoadingImageGroupFallback,{height:m,width:m}),children:k.jsx(n,{queryRef:a})})})})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a){a=a.queryRef;var e=c("useOCDevManageWorldsOrgID")(),f=d("OCNavigatorHooks").useNavigate(),g=c("useOCDevManageWorldsQueryParams")();a=d("RelayHooks").usePreloadedQuery(i!==void 0?i:i=b("OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery.graphql"),a);a=a.avatar_asset_template_config_list;a=a==null?void 0:a.nodes;return k.jsx(c("GeoImageTileGroup.react"),{gutter:16,ratio:"square",children:a==null?void 0:a.map(function(a,b){var h=a.id,i=a.is_new,j=a.isolated_2d_render_uri;a=a.visibility_flag;return h!=null?k.jsx(c("GeoImageTile.react"),{"data-testid":void 0,heading:"",isHeaderHidden:!0,media:k.jsxs(c("GeoFlexbox.react"),{xstyle:p.tileFlexbox,children:[o(a,i),k.jsx(c("CometImage.react"),{src:j!=null?j:"",xstyle:p.thumbnail})]}),onPress:function(){var a;d("EconomyDigiGoodsSessionStorageUtil").economyDigiGoodsSetTemplateId(h);d("EconomyDigiGoodsLogger").logTemplateSelectItemClick(b);f(c("OCDevManageOrganizationWorldsInventoryCreateRoute").getURI({organizationID:e}).addQueryData({item_type:"clothing",step:"design",template_category:(a=g==null?void 0:g.template_category)!=null?a:"TOP",template_id:h}),{})}},h):null})})}n.displayName=n.name+" [from "+f.id+"]";function o(a,b){var d=null,e=null;a==="INTERNAL_FBONLY"?d=k.jsx(c("GeoPill.react"),{hasIcon:!0,label:"FB-only",status:"warning",value:h._(/*BTDS*/"FB-only")}):a==="BETA"&&(d=k.jsx(c("GeoPill.react"),{hasIcon:!0,label:"Beta",status:"progress",value:h._(/*BTDS*/"Beta")}));b!=null&&b&&(e=k.jsx(c("GeoPill.react"),{hasIcon:!0,label:h._(/*BTDS*/"New"),status:"success",value:h._(/*BTDS*/"New")}));a=k.jsxs("div",{style:{position:"absolute"},children:[d,e]});return a}var p={navBar:{width:"xh8yej3",$$css:!0},templatesList:{background:"x1md70p1",width:"xnq0rdo",$$css:!0},templatesScrollable:{width:"xh8yej3",$$css:!0},thumbnail:{paddingTop:"xqy66fx",paddingInlineEnd:"x1q3ajuy",paddingBottom:"xr1496l",paddingInlineStart:"x1gx403c",$$css:!0},tileFlexbox:{backgroundColor:"x12peec7",height:"x5yr21d",width:"xh8yej3",$$css:!0}};g["default"]=a}),226);
-----
OCDevManageWorldsInventoryCreationFlowQueries.entrypointutils",["OCDevManageWorldsInventoryCreationFlowDesign3DContentQuery$Parameters","OCDevManageWorldsInventoryCreationFlowFantaStyleSelectionQuery$Parameters","OCDevManageWorldsInventoryCreationFlowFantaUploadPanelQuery$Parameters","OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery$Parameters","XFBAvatarAssetTemplateCategory.oculus"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=a.routeParams;var b=a.item_type,d=a.step,e=a.template_category;a=a.template_id;var f={};d=d;if(d==null)switch(b){case"clothing":case null:d="template";break;case"fanta":d="fanta_template";break;default:d=""}if(d==="template"){f.templates={parameters:c("OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery$Parameters"),variables:{category:[(b=c("XFBAvatarAssetTemplateCategory.oculus").cast(e))!=null?b:"TOP"],useCase:"CREATOR_3P"}}}else d==="fanta_template"?f.fanta_template_list={parameters:c("OCDevManageWorldsInventoryCreationFlowFantaStyleSelectionQuery$Parameters"),variables:{category:["FANTA_BODY"],useCase:"CREATOR_3P"}}:d==="fanta_design"&&(f.fanta_template={parameters:c("OCDevManageWorldsInventoryCreationFlowFantaUploadPanelQuery$Parameters"),variables:{category:["FANTA_BODY"],useCase:"CREATOR_3P"}});a!=null&&(f.renderer={parameters:c("OCDevManageWorldsInventoryCreationFlowDesign3DContentQuery$Parameters"),variables:{templateID:a}});return f}g.getQueryParams=a}),98);
-----
OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery$Parameters",[],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:"24115526271376105",metadata:{},name:"OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----
OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"category"},{defaultValue:null,kind:"LocalArgument",name:"useCase"}],b=[{alias:null,args:[{kind:"Variable",name:"category",variableName:"category"},{kind:"Variable",name:"use_case",variableName:"useCase"}],concreteType:"AvatarAssetTemplateConfigListConnection",kind:"LinkedField",name:"avatar_asset_template_config_list",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBAVAAvatarAssetTemplateConfig",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_new",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"isolated_2d_render_uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"visibility_flag",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery",selections:b,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery",selections:b},params:{id:"24115526271376105",metadata:{},name:"OCDevManageWorldsInventoryCreationFlowTemplateSelectionQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----