AdsInsightsOppScorePopoverHeader.react",["fbt","AdsGuidanceActionsRawFbts","GeoBaseText.react","SYDGuidanceHubOpportunityScoreLiftPillBase.react","isNullOrZero","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(2);a=a.scoreLift;var e;b[0]!==a?(e=h._(/*BTDS*/"{popover header, recommendations text}",[h._param("popover header, recommendations text",j.jsxs("div",{children:[j.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",weight:"bold",children:d("AdsGuidanceActionsRawFbts").RECOMMENDATION}),j.jsx("div",{style:{position:"absolute",right:"25px",top:"15px"},children:!c("isNullOrZero")(a)&&j.jsx(c("SYDGuidanceHubOpportunityScoreLiftPillBase.react"),{scoreLift:a})})]}))]),b[0]=a,b[1]=e):e=b[1];return e}g["default"]=a}),226);
-----
PolarisAdAccountInsightsOverview.react",["IGDSBox.react","IGDSTextVariants.react","JSResourceForInteraction","PolarisAdAccountInsightsMetricDetails.react","PolarisAdAccountInsightsStrings.react","PolarisInsightsMetricTitle.react","PolarisInsightsMetricsStrings.react","isNullOrZero","react","react-compiler-runtime","useIGDSLazyDialog","usePolarisAdAccountInsightsOverviewData","usePolarisInsightsImpressionLogger.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("JSResourceForInteraction")("PolarisAdAccountInsightsOverviewInfoSheet.react").__setRef("PolarisAdAccountInsightsOverview.react");function a(a){var b=d("react-compiler-runtime").c(50),e=a.queryRef;a=a.timeframe;e=c("usePolarisAdAccountInsightsOverviewData")(e);var f=c("useIGDSLazyDialog")(j),g=f[0];b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f={component:d("usePolarisInsightsImpressionLogger.react").InstagramInsightsComponentType.AD_ACCOUNT_OVERVIEW},b[0]=f):f=b[0];f=d("usePolarisInsightsImpressionLogger.react").usePolarisInsightsComponentImpressionLogger(f);var h;b[1]!==e||b[2]!==a?(h=k(e,a),b[1]=e,b[2]=a,b[3]=h):h=b[3];var n;b[4]!==h?(n=i.jsx(c("IGDSBox.react"),{marginTop:1,children:i.jsx(d("IGDSTextVariants.react").IGDSTextBody2,{color:"secondaryText",textAlign:"center",children:h})}),b[4]=h,b[5]=n):n=b[5];h=n;n=!l(e);var o;b[6]===Symbol["for"]("react.memo_cache_sentinel")?(o={className:"x1hq5gj4 xs9mwh0"},b[6]=o):o=b[6];var p;b[7]!==g?(p=function(){return g({})},b[7]=g,b[8]=p):p=b[8];var q;b[9]!==p||b[10]!==h?(q=i.jsx(c("IGDSBox.react"),{paddingY:3,children:i.jsx(d("PolarisInsightsMetricTitle.react").PolarisInsightsMetricTitle,{disclaimer:h,onClickInfoSheet:p,title:d("PolarisAdAccountInsightsStrings.react").AD_ACCOUNT_INSIGHTS_OVERVIEW_TEXT})}),b[9]=p,b[10]=h,b[11]=q):q=b[11];p=e==null?void 0:e.adViews;b[12]!==n||b[13]!==p||b[14]!==a?(h=m(p,a,n),b[12]=n,b[13]=p,b[14]=a,b[15]=h):h=b[15];b[16]!==h?(p=i.jsx(d("PolarisAdAccountInsightsMetricDetails.react").PolarisAdAccountInsightsMetricDetails,{label:d("PolarisInsightsMetricsStrings.react").CONTENT_VIEWS_TEXT,value:h}),b[16]=h,b[17]=p):p=b[17];h=e==null?void 0:e.adReach;var r;b[18]!==n||b[19]!==h||b[20]!==a?(r=m(h,a,n),b[18]=n,b[19]=h,b[20]=a,b[21]=r):r=b[21];b[22]!==r?(h=i.jsx(d("PolarisAdAccountInsightsMetricDetails.react").PolarisAdAccountInsightsMetricDetails,{label:d("PolarisInsightsMetricsStrings.react").REACH_TEXT,value:r}),b[22]=r,b[23]=h):h=b[23];r=e==null?void 0:e.adEngagement;var s;b[24]!==n||b[25]!==r||b[26]!==a?(s=m(r,a,n),b[24]=n,b[25]=r,b[26]=a,b[27]=s):s=b[27];b[28]!==s?(r=i.jsx(d("PolarisAdAccountInsightsMetricDetails.react").PolarisAdAccountInsightsMetricDetails,{label:d("PolarisInsightsMetricsStrings.react").ENGAGEMENT_TEXT,value:s}),b[28]=s,b[29]=r):r=b[29];s=e==null?void 0:e.adLinkClicks;var t;b[30]!==n||b[31]!==s||b[32]!==a?(t=m(s,a,n),b[30]=n,b[31]=s,b[32]=a,b[33]=t):t=b[33];b[34]!==t?(s=i.jsx(d("PolarisAdAccountInsightsMetricDetails.react").PolarisAdAccountInsightsMetricDetails,{label:d("PolarisInsightsMetricsStrings.react").LINK_CLICKS_TEXT,value:t}),b[34]=t,b[35]=s):s=b[35];t=e==null?void 0:e.adFollows;b[36]!==n||b[37]!==t||b[38]!==a?(e=m(t,a,n),b[36]=n,b[37]=t,b[38]=a,b[39]=e):e=b[39];b[40]!==e?(n=i.jsx(d("PolarisAdAccountInsightsMetricDetails.react").PolarisAdAccountInsightsMetricDetails,{label:d("PolarisInsightsMetricsStrings.react").FOLLOWS_TEXT,value:e}),b[40]=e,b[41]=n):n=b[41];b[42]!==f||b[43]!==h||b[44]!==r||b[45]!==s||b[46]!==n||b[47]!==q||b[48]!==p?(t=i.jsxs("div",babelHelpers["extends"]({},o,{ref:f,children:[q,p,h,r,s,n]})),b[42]=f,b[43]=h,b[44]=r,b[45]=s,b[46]=n,b[47]=q,b[48]=p,b[49]=t):t=b[49];return t}function k(a,b){switch(b){case 7:case 14:case 30:case 60:case 90:return l(a)?d("PolarisAdAccountInsightsStrings.react").adAccountInsightsOverviewDisclaimerText(b.toString()):d("PolarisAdAccountInsightsStrings.react").adAccountInsightsOverviewEmptyStateDisclaimerText(b.toString());default:return d("PolarisAdAccountInsightsStrings.react").AD_ACCOUNT_INSIGHTS_DATEPICKER_AVAILABILITY_DISCLAIMER_TEXT}}function l(a){return!c("isNullOrZero")(a==null?void 0:a.adViews)||!c("isNullOrZero")(a==null?void 0:a.adReach)||!c("isNullOrZero")(a==null?void 0:a.adEngagement)||!c("isNullOrZero")(a==null?void 0:a.adLinkClicks)||!c("isNullOrZero")(a==null?void 0:a.adFollows)}function m(a,b,c){switch(b){case 7:case 14:case 30:case 60:case 90:return a==null&&c?0:a;default:return null}}g["default"]=a}),98);
-----
KadabraPromptShareDialogContent.react",["CometRelay","KDSChip.react","KDSFlexbox.react","KadabraPromptLoadingState.react","KadabraPromptShareDialogContentMutation.graphql","KadabraPromptShareDialogContent_data.graphql","KadabraPromptShareDialogTitle.react","isNullOrZero","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useState;function a(a){var e=d("react-compiler-runtime").c(13),f=a.dataKey,g=a.onError,j=a.postID,p=a.setTitle;a=a.title;f=d("CometRelay").useFragment(h!==void 0?h:h=b("KadabraPromptShareDialogContent_data.graphql"),f);var q;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(q=i!==void 0?i:i=b("KadabraPromptShareDialogContentMutation.graphql"),e[0]=q):q=e[0];q=d("CometRelay").useMutation(q);var r=q[0];q=m(null);var s=q[0],t=q[1],u;e[1]!==r||e[2]!==g||e[3]!==j||e[4]!==s?(q=function(){s==null&&r({onCompleted:function(a){t(a)},onError:g,optimisticUpdater:function(a){(a=a.get(j))==null?void 0:a.setValue(!0,"is_fetching_post_preview_data")},variables:{input:{id:j}}})},u=[g,r,j,s],e[1]=r,e[2]=g,e[3]=j,e[4]=s,e[5]=q,e[6]=u):(q=e[5],u=e[6]);l(q,u);u=s==null?void 0:(q=s.xfb_genai_post_preview)==null?void 0:q.topics;if(e[7]!==f||e[8]!==s||e[9]!==u||e[10]!==p||e[11]!==a){q=s==null?k.jsx(c("KadabraPromptLoadingState.react"),{}):k.jsxs(c("KDSFlexbox.react"),{direction:"column",rowGap:8,children:[k.jsx(c("KadabraPromptShareDialogTitle.react"),{dataKey:f,postPreviewKey:s==null?void 0:s.xfb_genai_post_preview,setTitle:p,title:a}),s==null?void 0:(q=s.xfb_genai_post_preview)==null?void 0:q.body_renderer.map(o),!c("isNullOrZero")(u==null?void 0:u.length)&&k.jsx(c("KDSFlexbox.react"),{columnGap:8,children:u==null?void 0:u.map(n)})]});e[7]=f;e[8]=s;e[9]=u;e[10]=p;e[11]=a;e[12]=q}else q=e[12];return q}function n(a){return(a==null?void 0:a.display_name)!=null&&k.jsx(c("KDSChip.react"),{label:a==null?void 0:a.display_name,variant:"topic"},a==null?void 0:a.display_name)}function o(a,b){return k.jsx(d("CometRelay").MatchContainer,{match:a},b)}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterTeams.react",["BUITable.react","BUITableColumn.react","BUITableGenericCell.react","GeoBaseText.react","GeoFlexbox.react","GeoLink.react","LegalMatterAppConfig","LegalMatterConstants","LegalMatterEmptyState.react","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","LegalMatterTeamsQuery.graphql","RelayHooks","enumUtils","immutable","isNullOrZero","react","useLegalMatterAutoSizer","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useState,m=155,n=[{key:"name",label:"Team",width:200}],o=h!==void 0?h:h=b("LegalMatterTeamsQuery.graphql");function a(a){a=a.userParam;a=d("RelayHooks").useLazyLoadQuery(o,{searchParams:{user_id:a}});a=a.teams;var b=d("useReactRouter").useRouter(),e=b.history;b=l("name");var f=b[0],g=b[1];b=l("asc");var h=b[0],i=b[1];b=c("useLegalMatterAutoSizer")({heightOffset:m,minHeight:d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT});var p=b.maxHeight;b=b.containerRef;var q=function(a){return d("LegalMatterAppConfig").ADMIN_PATH+"/"+d("LegalMatterAppConfig").ADMIN_ROUTES.teams.value+"/"+a+"/"+d("LegalMatterAppConfig").TEAM_DETAIL_ROUTES.members.value},r=k(function(a){var b=a.item;return j.jsx(c("BUITableGenericCell.react"),{align:"left",content:j.jsx(c("GeoLink.react"),{onClick:function(){return e.push(q(b.id))},children:j.jsx(c("GeoBaseText.react"),{color:"link",size:"value",children:(a=b==null?void 0:b.name)!=null?a:""})}),height:d("LegalMatterTableConstants").TABLE_CONFIG.SMALL_ROW_HEIGHT})},[e]),s=k(function(a){var b=a.key;a=a.label;var d=function(a){a=a.direction;i(a);g(b)};d={isSortable:!0,onSort:d,sortDirection:h};return j.jsx(c("LegalMatterTableHeaderCell.react"),babelHelpers["extends"]({columnKey:b,isResizable:!1,label:a},d))},[h]);a=c("immutable").List(a).sortBy(function(a){return a[d("enumUtils").assertKey(f,a)]}).update(function(a){return h==="asc"?a:a.reverse()});return j.jsx(c("GeoFlexbox.react"),{containerRef:b,grow:1,direction:"column",children:c("isNullOrZero")(a.size)?j.jsx(c("LegalMatterEmptyState.react"),{body:d("LegalMatterConstants").MESSAGES.NO_PERMISSIONS_FOR_TEAMS,isCard:!1}):j.jsx(c("BUITable.react"),{borders:"rows",hasFlexibleColumnWidths:!0,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:{labels:n.map(function(a){a=a.label;return a})}},items:a,maxHeight:p,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.SMALL_ROW_HEIGHT,children:n.map(function(a){return j.jsx(c("BUITableColumn.react"),{cell:r,header:function(){return s(a)},width:d("LegalMatterTableConstants").TABLE_CONFIG.MIN_COLUMN_WIDTH},a.key)})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterMattersTable.react",["BUITable.react","BUITableColumn.react","LegalMatterConstants","LegalMatterContext","LegalMatterEmptyState.react","LegalMatterMattersTableCell.react","LegalMatterMattersTable_matters.graphql","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","LegalMatterTableLayout","Promise","QuickPerformanceLogger","RelayHooks","isNullOrZero","isNullish","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect,o=e.useRef,p=e.useState,q=h!==void 0?h:h=b("LegalMatterMattersTable_matters.graphql"),r=c("qpl")._(640681457,"73");function a(a){var e=a.mattersRef,f=a.maxHeight,g=a.maxWidth,h=a.onChangeColumnWidths,k=a.onFavError,s=a.tableLayout;a=d("RelayHooks").usePaginationFragment(q,e);var t=a.data,u=a.loadNext,v=a.hasNext,w=a.isLoadingNext;e=m(c("LegalMatterContext"));var x=e.dispatch;a=e.state;a=(e=a.sortParams[d("LegalMatterConstants").SEARCH_FILTER_TYPES.MATTERS])!=null?e:{};var y=a.sortDirection,z=a.sortFieldCode;e=p(!1);a=e[0];var A=e[1];e=p(0);var B=e[0],C=e[1];e=(e=t)!=null?e:{};e=e.matters;e=(e=e)!=null?e:{};var D=e.count;e=e.edges;e=(e=e==null?void 0:e.map(function(a){return a.node}))!=null?e:[];var E=o(!1),F=function(){v&&!w&&u(d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE);return(j||(j=b("Promise"))).resolve([])},G=d("LegalMatterTableLayout").getVisibleColumnWidths(s);n(function(){var a=Object.values(G).reduce(function(a,b){return a+b},0);A(g>=a)},[s,g,G]);n(function(){t!=null&&E.current===!1&&(E.current=!0,(i||(i=c("QuickPerformanceLogger"))).markerEnd(r,2))});var H=Object.keys(d("LegalMatterTableLayout").getFixedVisibleColumnWidths(s)).length,I=function(a){return C(G[a])},J=function(a,b){var c;return h(babelHelpers["extends"]({},G,(c={},c[b]=Math.max(d("LegalMatterTableConstants").TABLE_CONFIG.MIN_COLUMN_WIDTH,Math.min(B+a,g*.9)),c)))},K=Object.entries(G).map(function(a){var b=a[0];a=a[1];var e=function(a){a=a.direction;return x({payload:{key:d("LegalMatterConstants").SEARCH_FILTER_TYPES.MATTERS,sortDirection:a,sortFieldCode:b},type:d("LegalMatterConstants").ACTION_TYPES.UPSERT_SORT_PARAMS})},f=z===b&&!c("isNullish")(y);return l.jsx(c("BUITableColumn.react"),{cell:function(a){a=a.item;return l.jsx(c("LegalMatterMattersTableCell.react"),{columnKey:b,columnLabel:s.columnLabels[b],height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,matter:a,onFavError:k})},header:function(){return l.jsx(c("LegalMatterTableHeaderCell.react"),{columnKey:b,label:s.columnLabels[b],isResizable:!0,onResizeStart:I,isSortable:!0,onResizeChange:J,onSort:e,sortDirection:f?y:"none"})},width:a},b)});return c("isNullOrZero")(D)?l.jsx(c("LegalMatterEmptyState.react"),{isCard:!1}):l.jsx(c("BUITable.react"),{borders:"rows",fixedColumnCount:H,hasFlexibleColumnWidths:a,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:null},items:e,loadingRowCount:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE,maxHeight:Math.max(d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT,f),onLoadMoreRows:F,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,totalRowCount:v?D:e.length,children:K})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterFinancialImpactTable.react",["BUITable.react","BUITableColumn.react","LegalMatterConstants","LegalMatterContext","LegalMatterEmptyState.react","LegalMatterFinancialImpactConstants","LegalMatterFinancialImpactContext","LegalMatterFinancialImpactHeaderSelectCell.react","LegalMatterFinancialImpactSortableField","LegalMatterFinancialImpactTableCell.react","LegalMatterFinancialImpactTable_financialImpacts.graphql","LegalMatterMemoConstants","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","LegalMatterTableLayout","Promise","RelayHooks","enumUtils","isNullOrZero","isNullish","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useState,p=h!==void 0?h:h=b("LegalMatterFinancialImpactTable_financialImpacts.graphql");function a(a){var e=a.financialImpacts,f=a.maxHeight,g=a.maxWidth,h=a.onChangeColumnWidths;a=a.tableLayout;var j=o(0),q=j[0],r=j[1];j=o(!1);var s=j[0],t=j[1];j=d("RelayHooks").usePaginationFragment(p,e);e=j.data;var u=j.loadNext,v=j.hasNext,w=j.isLoadingNext;j=m(c("LegalMatterContext"));var x=j.dispatch;j=j.state;var y=m(c("LegalMatterFinancialImpactContext")),z=y.dispatch;j=(y=j.sortParams[d("LegalMatterConstants").SEARCH_FILTER_TYPES.FINANCE])!=null?y:{};var A=j.sortDirection,B=j.sortFieldCode;j=(y=e)!=null?y:{};e=j.financialImpacts;j=(y=e)!=null?y:{edges:[]};e=j.count;var C=j.edges,D=a.columnLabels,E=d("LegalMatterTableLayout").getVisibleColumnWidths(a);y=Object.keys(E).map(function(a){return{key:a,width:E[a]}});j=function(){v&&!w&&u(d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE);return(i||(i=b("Promise"))).resolve([])};var F=l(function(a,b){b=b.item;return k.jsx(c("LegalMatterFinancialImpactTableCell.react"),{columnKey:a,columnLabel:D[a],financialImpactRef:b,height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT})},[D]);n(function(){z({payload:{financialImpacts:C.map(function(a){return(a=a.node)==null?void 0:a.id}).filter(Boolean)},type:d("LegalMatterFinancialImpactConstants").ACTION_TYPES.LOAD_FINANCIAL_IMPACTS})},[C,z]);n(function(){var a=Object.values(E).reduce(function(a,b){return a+b},0);t(g>=a)},[E,g,a]);a=Object.keys(d("LegalMatterTableLayout").getFixedVisibleColumnWidths(a)).length;var G=l(function(a){var b=function(b,a){var c;return h(babelHelpers["extends"]({},E,(c={},c[a]=q+b,c)))},e=function(a){return r(E[a])},f=function(b){b=b.direction;x({payload:{key:d("LegalMatterConstants").SEARCH_FILTER_TYPES.FINANCE,sortFieldCode:d("enumUtils").assertFromKey(a,c("LegalMatterFinancialImpactSortableField")),sortDirection:b},type:d("LegalMatterConstants").ACTION_TYPES.UPSERT_SORT_PARAMS})};f=c("isNullish")(d("enumUtils").coerceFromKey(a,c("LegalMatterFinancialImpactSortableField")))?{isSortable:!1}:{isSortable:!0,onSort:f,sortDirection:B===a&&!c("isNullish")(A)?A:"none"};return a===d("LegalMatterMemoConstants").COLUMN_CODES.SELECT?k.jsx(c("LegalMatterFinancialImpactHeaderSelectCell.react"),{}):k.jsx(c("LegalMatterTableHeaderCell.react"),babelHelpers["extends"]({columnKey:a,isResizable:!0,label:D[a],onResizeChange:b,onResizeStart:e},f))},[E,q,x,h,A,B,D]),H=Object.entries(E).map(function(a){var b=a[0];a=a[1];return k.jsx(c("BUITableColumn.react"),{cell:function(a){return F(b,a)},header:function(){return G(b)},width:a},b)});return c("isNullOrZero")(e)?k.jsx(c("LegalMatterEmptyState.react"),{}):k.jsx(c("BUITable.react"),{borders:"rows",fixedColumnCount:a,hasFlexibleColumnWidths:s,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:{labels:y.map(function(a){return D[c("nullthrows")(a.key)]})}},items:C.map(function(a){return a.node}),loadingRowCount:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE,maxHeight:Math.max(f,d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT),onLoadMoreRows:j,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,totalRowCount:e,children:H})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterRightPanelKeyDates.react",["DateConsts","DateTime","GeoBaseSpacingLayout.react","GeoSection.react","GeoSpinner.react","LegalMatterConstants","LegalMatterEmptyState.react","LegalMatterKeyDateItem.react","LegalMatterKeyDatesSearchFilterOperator","LegalMatterRightPanelKeyDates_keyDates.graphql","OnVisible.react","RelayHooks","Timezone","isNullOrZero","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.startTransition,l=e.useEffect,m=10,n=h!==void 0?h:h=b("LegalMatterRightPanelKeyDates_keyDates.graphql");function a(a){a=a.matterRef;c("vulture")("6T8Y4v1bSjW");a=d("RelayHooks").usePaginationFragment(n,a);var b=a.data,e=a.loadNext,f=a.hasNext,g=a.isLoadingNext,h=a.refetch,i=b.matterID;a=b.keyDates;b=function(){if(!f||g)return;e(m)};l(function(){k(function(){h({searchParams:{filters:[{field:"DATE",operator:c("LegalMatterKeyDatesSearchFilterOperator").DATE_IS_AFTER,value:String(c("DateTime").now(d("Timezone").getEnvironmentTimezoneID()).getUnixTimestamp()/d("DateConsts").MS_PER_SEC)}]},count:m,id:i})})},[i,h]);return j.jsx(c("GeoSection.react"),{children:j.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:c("isNullOrZero")(a==null?void 0:a.count)?j.jsx(c("LegalMatterEmptyState.react"),{body:d("LegalMatterConstants").MESSAGES.NO_KEY_DATES_FOR_MATTER,isCard:!1}):j.jsxs(j.Fragment,{children:[a==null?void 0:a.edges.map(function(a){a=a.node;return a!=null?j.jsx(c("LegalMatterKeyDateItem.react"),{hideAction:!0,keyDate:a,matterID:i},a.id):null}).filter(Boolean),f&&j.jsx(c("OnVisible.react"),{onVisible:b,children:j.jsx(c("GeoSpinner.react"),{center:!0,size:"large"})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterKeyDateItemHeader.react",["DateConsts","GeoBaseText.react","GeoFlexbox.react","GeoHeading.react","LegalMatterConstants","Timezone","formatDate","geoMargin","isNullOrZero","isStringNullOrEmpty","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.action,e=a.endDateTime,f=a.envTimeZoneID,g=a.isAllDay,h=a.startDateTime;a=a.subject;var j=function(){var a=c("isNullOrZero")((e.getTime()-h.getTime())/d("DateConsts").MS_PER_DAY);if(g!==!0)return c("formatDate")(h,d("LegalMatterConstants").DATE_TIME_FORMAT)+" - "+c("formatDate")(e,d("LegalMatterConstants").DATE_TIME_FORMAT)+" ("+d("Timezone").getExactName(f)+")";else return a?c("formatDate")(h,d("LegalMatterConstants").DATE_FORMAT):c("formatDate")(h,d("LegalMatterConstants").DATE_FORMAT)+" - "+c("formatDate")(e,d("LegalMatterConstants").DATE_FORMAT)};return i.jsxs(c("GeoFlexbox.react"),{justifyContent:"space-between",children:[i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:i.jsx(c("GeoHeading.react"),{level:3,children:c("isStringNullOrEmpty")(a)?d("LegalMatterConstants").LABELS.UNKNOWN:a})}),i.jsx(c("GeoBaseText.react"),{color:"headingDescription",size:"valueDescription",xstyle:c("geoMargin").top4,children:j()})]}),b]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterOverviewReadOnlyCard.react",["GeoFlexbox.react","GeoHeading.react","GeoSection.react","GeoText.react","LegalFMReadOnlyFieldContainer.react","LegalFMTemplate.react","LegalMatterConstants","LegalMatterOverviewReadOnlyCard_matter.graphql","LegalMatterOverviewTags.react","RelayHooks","distinctArray","geoMargin","isNullOrZero","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=h!==void 0?h:h=b("LegalMatterOverviewReadOnlyCard_matter.graphql");function a(a){a=a.matter;a=(a=d("RelayHooks").useFragment(l,a))!=null?a:{};var b=a.partnerMatterMappings;return k.jsxs(k.Fragment,{children:[k.jsx(c("LegalFMTemplate.react"),{readOnly:!0}),k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[k.jsx(c("GeoHeading.react"),{level:2,xstyle:c("geoMargin").vert12,children:d("LegalMatterConstants").LABELS.TAGS_AND_EXTERNAL_FIRMS}),k.jsx(c("LegalFMReadOnlyFieldContainer.react"),{label:d("LegalMatterConstants").LABELS.TAGS,children:k.jsx(c("LegalMatterOverviewTags.react"),{tagsRef:a})}),!c("isNullOrZero")(b==null?void 0:(a=b.nodes)==null?void 0:a.length)&&k.jsx(c("LegalFMReadOnlyFieldContainer.react"),{label:d("LegalMatterConstants").LABELS.EXTERNAL_FIRMS,children:k.jsx(c("GeoText.react"),{children:(i||(i=c("distinctArray")))(b==null?void 0:(a=b.nodes)==null?void 0:a.map(function(a){return a==null?void 0:(a=a.partner)==null?void 0:a.name})).sort().join(", ")})})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterDetailViewKeyDatesListView.react",["GeoBaseSpacingLayout.react","GeoSpinner.react","LegalMatterConstants","LegalMatterDetailViewKeyDatesListView_matter.graphql","LegalMatterEmptyState.react","LegalMatterKeyDateItem.react","OnVisible.react","RelayHooks","isNullOrZero","isNullish","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useEffect,m=10,n=h!==void 0?h:h=b("LegalMatterDetailViewKeyDatesListView_matter.graphql");function a(a){var b=a.matter,e=a.searchParams;a=d("RelayHooks").usePaginationFragment(n,b);b=a.data;var f=b.matterID;b=b.keyDates;var g=a.loadNext,h=a.hasNext,i=a.isLoadingNext,o=a.refetch,p=k(function(){o({searchParams:e,count:m,id:f},{fetchPolicy:"network-only"})},[f,o,e]);l(function(){p()},[p]);a=function(){if(!h||i)return;g(m)};b=(b=b)!=null?b:{};var q=b.count;b=b.edges;return c("isNullOrZero")(q)?j.jsx(c("LegalMatterEmptyState.react"),{body:d("LegalMatterConstants").MESSAGES.NO_KEY_DATES_FOR_RANGE,isCard:!1}):j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",children:[b==null?void 0:b.map(function(a){a=a.node;if(c("isNullish")(a))return null;var b=a.id;return b!=null&&f!=null?j.jsx(c("LegalMatterKeyDateItem.react"),{keyDate:a,matterID:f,width:720},b):null}),h&&j.jsx(c("OnVisible.react"),{onVisible:a,children:j.jsx(c("GeoSpinner.react"),{center:!0,size:"large"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterAdminFXRatesTable.react",["BUITable.react","BUITableColumn.react","GeoFlexbox.react","LegalMatterAdminFXRatesModal.react","LegalMatterAdminFXRatesTableCell.react","LegalMatterAdminFXRatesTableQuery.graphql","LegalMatterAdminFXRatesTable_fxRates.graphql","LegalMatterEmptyState.react","LegalMatterFXRatesConstants","LegalMatterFXRatesContext","LegalMatterFXRatesTableHeader","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","Promise","RelayHooks","enumUtils","isNullOrZero","isNullish","react","useLegalMatterAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useState,o=155,p=h!==void 0?h:h=b("LegalMatterAdminFXRatesTable_fxRates.graphql");function a(a){var e=a.fxRates;a=a.quarters;var f=d("RelayHooks").useRelayEnvironment();e=d("RelayHooks").usePaginationFragment(p,e);var g=e.data,h=e.loadNext,j=e.hasNext,q=e.isLoadingNext;e=g.fxRates;e=(g=e)!=null?g:{};g=e.count;e=e.edges;var r=n(!1),s=r[0],t=r[1];r=n(null);var u=r[0],v=r[1];r=m(c("LegalMatterFXRatesContext"));var w=r.dispatch;r=r.state;var x=r.sortedColumnKey,y=r.sortDirection;r=function(){v(null),t(!1),d("RelayHooks").fetchQuery(f,c("LegalMatterAdminFXRatesTableQuery.graphql"),{}).toPromise()};var z=function(a){v(a),t(!0)},A=function(a){j&&!q&&h(d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE);return(i||(i=b("Promise"))).resolve([])},B=c("useLegalMatterAutoSizer")({heightOffset:o,minHeight:d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT}),C=B.maxHeight;B=B.containerRef;var D=l(function(a,b){b=b.item;return k.jsx(c("LegalMatterAdminFXRatesTableCell.react"),{columnKey:a,fxRateRef:b,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,onEditFXRate:z})},[]),E=l(function(a){var b=a.key;a=a.label;var e=function(a){a=a.direction;return w({payload:{sortedColumnKey:d("enumUtils").assertFromKey(b,c("LegalMatterFXRatesTableHeader")),sortDirection:a},type:d("LegalMatterFXRatesConstants").ACTION_TYPES.UPDATE_SORT})};e=b!=="EDIT"?{isSortable:!0,onSort:e,sortDirection:x===b&&!c("isNullish")(y)?y:"none"}:{isSortable:!1};return k.jsx(c("LegalMatterTableHeaderCell.react"),babelHelpers["extends"]({columnKey:b,isResizable:!1,label:a},e))},[w,y,x]),F=d("LegalMatterFXRatesConstants").FX_RATE_COLUMNS.map(function(a){var b=a.key,d=a.width;return k.jsx(c("BUITableColumn.react"),{cell:function(a){return D(b,a)},header:function(){return E(a)},width:d},b)});return k.jsxs(c("GeoFlexbox.react"),{containerRef:B,grow:1,children:[c("isNullOrZero")(g)?k.jsx(c("LegalMatterEmptyState.react"),{}):k.jsx(c("BUITable.react"),{borders:"rows",hasFlexibleColumnWidths:!0,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:{labels:d("LegalMatterFXRatesConstants").FX_RATE_COLUMNS.map(function(a){a=a.label;return a})}},items:e.map(function(a){return a.node}),loadingRowCount:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE,maxHeight:C,onLoadMoreRows:A,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,totalRowCount:g,children:F}),s&&k.jsx(c("LegalMatterAdminFXRatesModal.react"),{fxRate:u,onHide:r,quartersRef:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CandidatePortalAutoScheduleCallUtils",["DateConsts","Instant","Timezone","TimezoneNamesData","filterNulls","formatDate","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";var h="D, M j, Y",i="g:i A",j={tzNamesModule:void 0,setupTimezoneNamesModule:function(){j.tzNamesModule||(j.tzNamesModule=d("Timezone").registerNamesModule(c("TimezoneNamesData")))},getTimezoneString:function(){j.setupTimezoneNamesModule();return d("Timezone").getExactName(d("Timezone").getEnvironmentTimezoneID())},getTimezoneID:function(a){j.setupTimezoneNamesModule();return d("Timezone").getByNameOrNull(a)},dateWithDelta:function(a,b){return new Date(a.getTime()+b)},dateWithDeltaDays:function(a,b){return j.dateWithDelta(a,b*d("DateConsts").MS_PER_DAY)},startOfMonday:function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate()-a.getDay()+1)},endOfFriday:function(a){return j.dateWithDeltaDays(j.startOfMonday(a),5)},getTimeStrWithFormat:function(a,b){b===void 0&&(b=i);return c("formatDate")(a,b)},getDateStrWithFormat:function(a,b){b===void 0&&(b=h);return c("formatDate")(a,b)},getTimeSlotDateStr:function(a){return j.getDateStrWithFormat(a.start_time)},getTimeSlotTimeStr:function(a){var b=j.getTimeStrWithFormat(a.start_time);a=j.getTimeStrWithFormat(a.end_time);return b+" - "+a},getTimeSlotStr:function(a,b){a={start_time:a,end_time:b};b=j.getTimeSlotDateStr(a);a=j.getTimeSlotTimeStr(a);return b+" "+a},getTimezoneOffset:function(a){j.setupTimezoneNamesModule();return d("Instant").getOffset(d("Instant").now(),c("isNullOrZero")(a)?d("Timezone").getEnvironmentTimezoneID():a)},getTeamMatchingBackRouteURI:function(a,b){var c=b==null?void 0:b.get("consideration_id");b=b==null?void 0:b.get("view_as_user_id");a=a.getURIBuilder();b!=null&&(a=a.setFBID("view_as_user_id",b));return a.getURI().stripTrailingSlash().addQueryData({id:c}).toString()},getFilteredTimeslots:function(a){a=(a=a)!=null?a:[];return c("filterNulls")(a.map(function(a){var b=a.end;a=a.start;return a!=null&&b!=null?{start_time:a,end_time:b}:null}))}};f.exports=j}),34);
-----
Misinfo3PFCTimestamp.react",["GeoBaseText.react","GeoTooltip.react","MisinfoFormatUtils","isNullOrZero","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.textColor;a=a.timestamp;if(c("isNullOrZero")(a))return null;var e=d("MisinfoFormatUtils").timeSince(a);e=i.jsx("abbr",{"data-shorten":!0,"data-utime":a,children:e});b=i.jsx(c("GeoBaseText.react"),{color:(b=b)!=null?b:"value",size:"value",children:e});return i.jsx(c("GeoTooltip.react"),{content:d("MisinfoFormatUtils").timestamp(a),children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsGuidedOnboardingAdAccountCreation.react",["fbt","AdsGuidedOnboardingAdAccountCreationFormGate.react","AdsGuidedOnboardingAdAccountCreationQuery.graphql","AdsGuidedOnboardingAdAccountCreationStrings","AdsGuidedOnboardingErrorFrameworkStrings","AdsGuidedOnboardingReloadUtils","AdsGuidedOnboardingStepWrapper.react","AdsScopeUtils","BizKitSettingsCreateAdAccountActions","DateTime","GeoButton.react","GeoNotice.react","RelayHooks","geoMargin","isNullOrZero","isStringNullOrEmpty","nullthrows","react","useAdsGuidedOnboardingLogger","useBizKitSettingsBusinessConfig"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useMemo,n=e.useState;function a(a){var e=a.setCurrentStep;a=d("useAdsGuidedOnboardingLogger").useAdsGuidedOnboardingLogger(f.id);var g=a.log;a=c("nullthrows")(c("AdsScopeUtils").getSelectedAccountID());var j=c("nullthrows")(c("AdsScopeUtils").getSelectedBusinessID()),o=c("useBizKitSettingsBusinessConfig")(),p=m(function(){return c("isNullOrZero")(o.timezoneID)?c("DateTime").localNow().getTimezoneID():o.timezoneID},[o.timezoneID]);p=n(p);var q=p[0];p=p[1];var r=n("USD"),s=r[0];r=r[1];var t=d("RelayHooks").useLazyLoadQuery(i!==void 0?i:i=b("AdsGuidedOnboardingAdAccountCreationQuery.graphql"),{adAccountID:a,businessID:j,pagePermissionActions:["ADMINISTER"]});a=d("BizKitSettingsCreateAdAccountActions").useCreateAdAccountMutation(j);var u=a[0];a=a[1];var v=n(!1),w=v[0],x=v[1],y=l(function(a){var b,c;b=(b=t==null?void 0:(b=t.business)==null?void 0:(b=b.owned_objects)==null?void 0:b.count)!=null?b:0;c=((c=t==null?void 0:(c=t.viewer)==null?void 0:(c=c.business_scoping)==null?void 0:(c=c.personal_scope)==null?void 0:(c=c.asset_lists)==null?void 0:c.map(function(a){return(a=a==null?void 0:(a=a.objects)==null?void 0:(a=a.nodes)==null?void 0:a.map(function(a){return a==null?void 0:(a=a.ent)==null?void 0:(a=a.viewer_profile_permissions)==null?void 0:a.includes("ADMINISTER")}))!=null?a:!1}).flat().findIndex(function(a){return a===!0}))!=null?c:-1)>=0;b>0?b="BP_SUMMARY_REVIEW_STEP":c===!0?b="BP_CLAIM_PAGE_STEP":b="BP_CREATE_PAGE_STEP";e(b,function(){d("AdsGuidedOnboardingReloadUtils").reloadWithAdAccount(a)},function(b){g("ads_guided_onboarding_business_ad_account_setting_step_error",{error:b}),d("AdsGuidedOnboardingReloadUtils").reloadWithAdAccount(a)},a)},[t==null?void 0:(v=t.business)==null?void 0:(v=v.owned_objects)==null?void 0:v.count,t==null?void 0:(v=t.viewer)==null?void 0:(v=v.business_scoping)==null?void 0:(v=v.personal_scope)==null?void 0:v.asset_lists,g,e]),z=l(function(a,e,b,d){u(a,e.toString(),c("nullthrows")(b).toString(),c("nullthrows")(d)).then(function(a){g("ads_guided_onboarding_business_ad_account_creation_success",{extraData:{new_value:a.adAccountID}}),y(a.adAccountID)})["catch"](function(a){g("ads_guided_onboarding_business_ad_account_creation_error",{error:a}),x(!0)})},[u,g,y]);return k.jsxs(c("AdsGuidedOnboardingStepWrapper.react"),{currentStep:"AD_ACCOUNT_CREATION_BP_SELECTION_STEP",moduleID:f.id,primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,disabledMessage:a?void 0:d("AdsGuidedOnboardingAdAccountCreationStrings").AD_ACCOUNT_CREATION_NEXT_BUTTON_DISABLED_MESSAGE,isDisabled:c("isNullOrZero")(q)||c("isStringNullOrEmpty")(s)||a,isLoading:a,label:h._("Next"),variant:"primary",onClick:function(){return z(j,o.businessName,c("nullthrows")(q).toString(),c("nullthrows")(s))}}),setCurrentStep:e,title:d("AdsGuidedOnboardingAdAccountCreationStrings").AD_ACCOUNT_CREATION_STEP_HEADER,onBack:function(){return e("LANDING_STEP")},children:[k.jsx(c("AdsGuidedOnboardingAdAccountCreationFormGate.react"),{currency:s,queryReference:t,setCurrency:r,setCurrentStep:e,setTimezone:p,timezone:q}),w?k.jsx(c("GeoNotice.react"),{status:"warning",xstyle:c("geoMargin").top16,children:d("AdsGuidedOnboardingErrorFrameworkStrings").MUTATION_FAILURE_CLICK_NEXT_AGAIN}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useExistingOfferFragment",["CMDiscountApplicationType","CMDiscountDataUtils","CMDiscountTargetGranularityType","CMOfferCategoryType","CMOfferUtils","DateTime","RelayHooks","SearchableEntry","Timezone","isNullOrZero","nullthrows","react","useExistingOfferFragment_data.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useMemo,k=d("Timezone").getEnvironmentTimezoneID()||d("Timezone").UTC,l=h!==void 0?h:h=b("useExistingOfferFragment_data.graphql");function m(a,b){var e,f,g,h,i;e=(e=b==null?void 0:b.end_date)!=null?e:0;var j=c("nullthrows")(c("CMDiscountApplicationType").cast(b==null?void 0:b.application_type),"Discount must have discount application type"),l=c("nullthrows")(d("CMDiscountDataUtils").getTargetType(b==null?void 0:b.offer_target_type),"Discount must have discount target type");f=(f=b==null?void 0:b.exclude_sale_priced_products)!=null?f:!1;g=d("CMOfferUtils").getNumberFromString(b==null?void 0:(g=b.minimum_subtotal_amount)==null?void 0:g.amount_with_offset);h=(h=b==null?void 0:b.minimum_quantity)!=null?h:0;var m=[],n=b==null?void 0:b.product_set;if(n!=null){var o;o=(o=(o=n.product_set_metadata)==null?void 0:o.cover_image_url)!=null?o:(o=n.firstProduct)==null?void 0:(o=o[0])==null?void 0:(o=o.main_image)==null?void 0:(o=o.image)==null?void 0:o.uri;m.push({id:c("nullthrows")(n.id,"Existing product set ID should not be null"),imageUri:o,name:(o=n.name)!=null?o:"",productCount:(o=n.dynamic_items_count)!=null?o:0})}o=b==null?void 0:(n=b.discount_tiers)==null?void 0:n.map(function(a){var b=a.fixed_amount_off,c=a.min_quantity,e=a.min_subtotal;a=a.percent_off;return{fixedAmountOff:d("CMOfferUtils").getNumberFromString(b==null?void 0:b.amount_with_offset),minQuantity:c,minSubtotal:d("CMOfferUtils").getNumberFromString(e==null?void 0:e.amount_with_offset),percentOff:a}}).reverse();n=(n=b==null?void 0:b.target_quantity)!=null?n:0;i=(i=b==null?void 0:b.additional_terms)!=null?i:"";var p=[],q=b==null?void 0:b.prerequisite_product_set;if(q!=null){var r;r=(r=(r=q.product_set_metadata)==null?void 0:r.cover_image_url)!=null?r:(r=q.firstProduct)==null?void 0:(r=r[0])==null?void 0:(r=r.main_image)==null?void 0:(r=r.image)==null?void 0:r.uri;p.push({id:c("nullthrows")(q.id,"Existing prerequisite product set ID should not be null"),imageUri:r,name:(r=q.name)!=null?r:"",productCount:(r=q.dynamic_items_count)!=null?r:0})}r=b==null?void 0:(q=b.public_coupon_code)==null?void 0:q.code;q=r!=null?new(c("SearchableEntry"))({title:r,uniqueID:r.toUpperCase()}):null;r=q==null?(r=b==null?void 0:(r=b.coupon_codes)==null?void 0:r.map(function(a){return new(c("SearchableEntry"))({title:c("nullthrows")(a==null?void 0:a.code),uniqueID:c("nullthrows")(a==null?void 0:a.code).toUpperCase()})}))!=null?r:[]:[];return{additionalTerms:i,amountType:d("CMDiscountDataUtils").getDiscountAmountType(b==null?void 0:b.amount_type),applicableCountries:(i=b==null?void 0:b.applicable_countries)!=null?i:[],approvalStatus:null,buyerVisibleTitle:b==null?void 0:b.buyer_visible_title,campaignCategory:null,claimableEndDate:null,claimableStartDate:null,commerceAudienceID:b==null?void 0:b.custom_audience_id,contentID:b==null?void 0:b.display_name_for_seller,couponCodes:r,couponCodeType:d("CMDiscountDataUtils").getCouponCodeType(r,q),currency:(r=(i=(r=(r=b==null?void 0:(i=b.fixed_amount_off)==null?void 0:i.currency)!=null?r:b==null?void 0:(i=b.minimum_subtotal_amount)==null?void 0:i.currency)!=null?r:b==null?void 0:(i=b.discount_tiers[0])==null?void 0:(r=i.fixed_amount_off)==null?void 0:r.currency)!=null?i:b==null?void 0:(r=b.discount_tiers[0])==null?void 0:(i=r.min_subtotal)==null?void 0:i.currency)!=null?r:"",discountApplicationType:j,discountID:a,discountType:d("CMDiscountDataUtils").getDiscountTypeForExistingDiscount(b==null?void 0:b.amount_type,h,g),eligibilityQEInfo:null,eligibilityRules:[],eligibleCustomersType:(i=b==null?void 0:b.eligible_customers_type)!=null?i:"EVERYONE",endDate:e!==0?c("DateTime").create(e,k):null,excludeSalePricedProducts:f,fixedAmountOff:d("CMOfferUtils").getNumberFromString(b==null?void 0:(r=b.fixed_amount_off)==null?void 0:r.amount_with_offset),getYValueType:d("CMDiscountDataUtils").getGetYValueType(b==null?void 0:b.amount_type,b==null?void 0:b.percent_off),hasLoyaltyOffer:!1,hasRedeemLimitPerOrder:!c("isNullOrZero")(b==null?void 0:b.redeem_limit_per_order),incentiveCampaign:null,incentiveStatus:b==null?void 0:b.incentive_status,incentiveSurfaces:[],incentiveVariant:null,loyaltyInfo:d("CMDiscountDataUtils").getLoyaltyInfo(b),minimumQuantity:h,minimumSubtotal:g,offerCategoryType:(b==null?void 0:b.application_type)==="DISPLAY_ONLY"?c("CMOfferCategoryType").Markdown:d("CMOfferUtils").getOfferCategoryTypeForExistingOffer(l,n),percentOff:b==null?void 0:b.percent_off,prerequisiteProductSelectionType:d("CMDiscountDataUtils").getProductSelectionType(b==null?void 0:b.prerequisite_selection),productSelectionType:c("nullthrows")(d("CMDiscountDataUtils").getProductSelectionType(b==null?void 0:b.offer_target_selection),"There must be a product selection type for discount"),productTypeRestriction:null,publicCouponCode:q,purchaseRequirements:d("CMOfferUtils").getPurchaseRequirementForExistingOffer(h,g,o),reclaimCooldownDuration:b==null?void 0:b.reclaim_cooldown_duration,redeemLimitPerOrder:b==null?void 0:b.redeem_limit_per_order,redeemLimitPerUser:b==null?void 0:b.redeem_limit_per_user,redemptionDuration:b==null?void 0:b.redemption_duration,salesChannels:null,selectedPrerequisiteProducts:[],selectedPrerequisiteProductSets:p,selectedProducts:[],selectedProductSets:m,startDate:(b==null?void 0:b.start_date)!=null?c("DateTime").create(b==null?void 0:b.start_date,k):null,targetGranularity:c("nullthrows")(c("CMDiscountTargetGranularityType").cast(b==null?void 0:b.offer_target_granularity),"There must be an offer target granularity for discount"),targetingCriteria:(i=b==null?void 0:(j=b.commerce_targeting_criteria)==null?void 0:(a=j.nodes)==null?void 0:a.map(function(a){var d;return{comparator_type:c("nullthrows")(a.comparator_type),eligible_customers_type:(d=b==null?void 0:b.eligible_customers_type)!=null?d:"EVERYONE",existing_custom_audience_id:b==null?void 0:b.custom_audience_id,product_type:a.commerce_product_targeting_type,rhs_value:{bool_value:a.rhs_bool_value,currency_value:a.rhs_currency_value!=null?{amount:c("nullthrows")((d=(d=a.rhs_currency_value)==null?void 0:d.amount_in_currency)!=null?d:"0"),currency:c("nullthrows")((d=a.rhs_currency_value)==null?void 0:d.currency)}:null,int_value:a.rhs_int_value,string_value:a.rhs_string_value},seller_type:a.commerce_seller_targeting_type,target_type:c("nullthrows")(a.target_type),user_type:a.commerce_user_targeting_type}}))!=null?i:[],targetQuantity:n,targetShippingOptionTypes:d("CMDiscountDataUtils").getTargetShippingOptionTypes(b==null?void 0:b.target_shipping_option_types),targetType:l,tieredDiscountAmountType:d("CMOfferUtils").getAmountTypeFromTier(o),tieredDiscountInfos:o,tieredDiscountRequirementType:d("CMOfferUtils").getRequirementsTypeFromTier(o),totalBudget:null}}function a(a){var b=d("RelayHooks").useFragment(l,a);return j(function(){return b!=null&&(b==null?void 0:b.id)!=null?m(b.id,b):null},[b])}g["default"]=a}),98);
-----
CMOfferBuilderStateContextProviderUtils",["CMDiscountApplicationType","CMOfferCategoryType","CMOfferConstants","CMOfferMarkdownSelection","CMOfferTierInfoActions","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=babelHelpers["extends"]({},a);if(a.tieredDiscountInfos&&a.tieredDiscountInfos.length-----
CMOfferUtils",["CMDiscountAmountType","CMDiscountApplicationType","CMDiscountTargetGranularityType","CMDiscountTargetType","CMDiscountType","CMOfferCategoryType","CMOfferConstants","CMOfferMarkdownSelection","CMOfferPurchaseRequirementsType","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f){if(b==="PRIVATE"||b==="PUBLIC")return c("CMDiscountApplicationType").BUYER_APPLIED;if(d===c("CMOfferPurchaseRequirementsType").MinimumQuantity||d===c("CMOfferPurchaseRequirementsType").MinimumSubtotal||d===c("CMOfferPurchaseRequirementsType").Tiered)return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;if(e===c("CMDiscountTargetGranularityType").ORDER_LEVEL)return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;if(((b=f)!=null?b:"EVERYONE")!=="EVERYONE")return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;if(a===c("CMOfferCategoryType").FreeShipping)return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;return a===c("CMOfferCategoryType").Markdown?c("CMDiscountApplicationType").DISPLAY_ONLY:c("CMDiscountApplicationType").SALE}function b(a,b){switch(a){case"COMMERCE_AUDIENCE":return[{comparator_type:"EQUALS",eligible_customers_type:"COMMERCE_AUDIENCE",existing_custom_audience_id:b,rhs_value:{bool_value:!0},target_type:"USER",user_type:"IN_COMMERCE_CUSTOM_AUDIENCE"}];case"NEW_CUSTOMERS":case"FOLLOWERS":case"ABANDONED_CART":return[{comparator_type:"EQUALS",eligible_customers_type:a,rhs_value:{bool_value:!0},target_type:"USER",user_type:"IN_COMMERCE_CUSTOM_AUDIENCE"}];case"EVERYONE":default:return[]}}function e(a,b){if(b==null)return null;switch(b){case c("CMOfferPurchaseRequirementsType").None:if(a!=null)switch(a){case c("CMDiscountAmountType").FixedAmount:return c("CMDiscountType").FixedAmount;case c("CMDiscountAmountType").Percentage:return c("CMDiscountType").Percentage}return null;case c("CMOfferPurchaseRequirementsType").MinimumSubtotal:return c("CMDiscountType").MinimumSubtotal;case c("CMOfferPurchaseRequirementsType").MinimumQuantity:return c("CMDiscountType").MinimumQuantity;case c("CMOfferPurchaseRequirementsType").Tiered:return c("CMDiscountType").Tiered}}function f(a,b,c){if(a>0||b>0)return c;else return c==null?void 0:c.slice(0,2)}function h(a,b,d){if(d==null?void 0:d.length)return c("CMOfferPurchaseRequirementsType").Tiered;if(a>0)return c("CMOfferPurchaseRequirementsType").MinimumQuantity;a=(d=b)!=null?d:0;return a>0?c("CMOfferPurchaseRequirementsType").MinimumSubtotal:c("CMOfferPurchaseRequirementsType").None}function i(a,b){if(b>0)return c("CMOfferCategoryType").BuyXGetY;return a===c("CMDiscountTargetType").Shipping?c("CMOfferCategoryType").FreeShipping:c("CMOfferCategoryType").AmountOff}function j(a){if(!(a==null?void 0:a.length))return d("CMOfferConstants").DEFAULT_TIERED_REQUIREMENTS_TYPE;a=a[0];if(!c("isNullOrZero")(a.minQuantity))return c("CMOfferPurchaseRequirementsType").MinimumQuantity;return!c("isNullOrZero")(a.minSubtotal)?c("CMOfferPurchaseRequirementsType").MinimumSubtotal:d("CMOfferConstants").DEFAULT_TIERED_REQUIREMENTS_TYPE}function k(a){if(!(a==null?void 0:a.length))return d("CMOfferConstants").DEFAULT_AMOUNT_TYPE;a=a[0];if((a==null?void 0:a.fixedAmountOff)!=null&&a.fixedAmountOff>0)return c("CMDiscountAmountType").FixedAmount;return(a==null?void 0:a.percentOff)!=null&&a.percentOff>0?c("CMDiscountAmountType").Percentage:d("CMOfferConstants").DEFAULT_AMOUNT_TYPE}function l(a){return(a==null?void 0:a.discountApplicationType)===c("CMDiscountApplicationType").SALE||(a==null?void 0:a.offerCategoryType)===c("CMOfferCategoryType").Markdown&&(a==null?void 0:a.markdownType)===d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.New}function m(a){return(a==null?void 0:a.offerCategoryType)===c("CMOfferCategoryType").Markdown&&(a==null?void 0:a.markdownType)===d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.Existing}function n(a){if(a==null)return null;a=Number(a);return isNaN(a)?null:a}g.getNewDiscountApplicationType=a;g.getNewTargetingCriteria=b;g.getNewDiscountType=e;g.getLoyaltyTiers=f;g.getPurchaseRequirementForExistingOffer=h;g.getOfferCategoryTypeForExistingOffer=i;g.getRequirementsTypeFromTier=j;g.getAmountTypeFromTier=k;g.isNewSalePricedItemsOffer=l;g.isExistingSalePricedItemsOffer=m;g.getNumberFromString=n}),98);
-----
CMDiscountValidations",["fbt","CMDiscountAmountType","CMDiscountApplicationType","CMDiscountBuilderReduxHooks","CMDiscountProductSelectionType","CMDiscountStrings","CMDiscountType","CMDiscountValidationCore","CMOfferBuilderStateHooks","CMOfferCategoryType","CMOfferConstants","CMOfferMarkdownSelection","CMOfferPurchaseRequirementsType","CMOfferUtils","CMOffersContextHooks","DateTime","isEmpty","isNullOrZero","justknobx","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=(j||d("react")).useMemo,l=c("justknobx")._("535"),m=1e8;function n(a){var b;return{additionalTerms:a.additionalTerms,amountType:(b=c("nullthrows"))(a.amountType,"Amount type cannot be null"),applicableCountries:a.applicableCountries,buyerVisibleTitle:a.buyerVisibleTitle,campaignCategory:a.campaignCategory,claimableEndDate:a.claimableEndDate,claimableStartDate:a.claimableStartDate,contentID:b(a.contentID,"Content ID cannot be null"),couponCodes:a.couponCodes,couponCodeType:a.couponCodeType,currency:a.currency,discountApplicationType:b(a.discountApplicationType,"Discount Application Type cannot be null"),discountID:a.discountID,discountType:b(a.discountType,"Discount Type cannot be null"),eligibilityRules:a.eligibilityRules,endDate:a.endDate,excludeSalePricedProducts:a.excludeSalePricedProducts,fixedAmountOff:a.fixedAmountOff,getYValueType:a.getYValueType,incentiveCampaign:a.incentiveCampaign,incentiveSurfaces:a.incentiveSurfaces,incentiveVariant:a.incentiveVariant,isAutomaticallyClaimed:a.isAutomaticallyClaimed,isClaimable:a.isClaimable,isTest:a.isTest,loyaltyInfo:a.loyaltyInfo,markdownType:a.markdownType,maxDiscountValue:a.maxDiscountValue,minimumQuantity:a.minimumQuantity,minimumSubtotal:a.minimumSubtotal,offerCategoryType:a.offerCategoryType,percentOff:a.percentOff,prerequisiteProductSelectionType:a.prerequisiteProductSelectionType,productSelectionType:b(a.productSelectionType,"Product Selection type cannot be null"),productTypeRestriction:a.productTypeRestriction,publicCouponCode:a.publicCouponCode,purchaseRequirements:a.purchaseRequirements,reclaimCooldownDuration:a.reclaimCooldownDuration,redeemLimitPerOrder:a.redeemLimitPerOrder,redeemLimitPerUser:a.redeemLimitPerUser,redemptionDuration:a.redemptionDuration,salesChannels:a.salesChannels,selectedPrerequisiteProducts:a.selectedPrerequisiteProducts,selectedPrerequisiteProductSets:a.selectedPrerequisiteProductSets,selectedProducts:a.selectedProducts,selectedProductSets:a.selectedProductSets,startDate:b(a.startDate,"Discount start date cannot be null"),targetGranularity:a.targetGranularity,targetingCriteria:a.targetingCriteria,targetQuantity:a.targetQuantity,targetShippingOptionTypes:a.targetShippingOptionTypes,targetType:a.targetType,tieredDiscountAmountType:a.tieredDiscountAmountType,tieredDiscountInfos:Y(a.tieredDiscountInfos,a.tieredDiscountAmountType,a.tieredDiscountRequirementType),tieredDiscountRequirementType:a.tieredDiscountRequirementType,totalBudget:a.totalBudget}}function a(a,b){return o(a,b,H)}function o(a,b,c){var e=d("CMDiscountBuilderReduxHooks").useCMDiscountBuilderState();return u(a,b,e,c)}function b(){return p(H)}function p(a){var b=d("CMDiscountBuilderReduxHooks").useCMDiscountBuilderState();return t(a,b)}function q(){var a=d("CMOfferBuilderStateHooks").useOfferBuilderFormState(),b=a.hasSubmittedPreviously;a.isSubmitting;var c=babelHelpers.objectWithoutPropertiesLoose(a,["hasSubmittedPreviously","isSubmitting"]),e=d("CMOffersContextHooks").useOffersConfig();a=d("CMOfferBuilderStateHooks").useOfferBuilderConfig();var f=a.prePopulatedProductDynamicItems,g=babelHelpers.objectWithoutPropertiesLoose(a,["prePopulatedProductDynamicItems"]);return k(function(){return babelHelpers["extends"]({config:babelHelpers["extends"]({},e,g)},c,{hasSubmitted:b,prePopulatedProductDynamicItems:f})},[c,b,e,g,f])}function e(a,b){return r(a,b,H)}function r(a,b,c){var d=q();return u(a,b,d,c)}function f(){return s(H)}function s(a){var b=q();return t(a,b)}function t(a,b){var c=b.hasDuplicateInternalName;return function(d){var e=Object.keys(d);e=e.some(function(c){return!u(c,d,b,a).isValid});return e||c?null:n(d)}}function u(a,b,c,e){e=e[a];return e==null?d("CMDiscountValidationCore").buildValidResponse():e(b,c)}var v={offerCategoryType:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.offerCategoryType,h._("Choose how you want the offer to be applied."))})}},w={commerceAudienceID:function(a,b){return d("CMDiscountValidationCore").onlyValidateOnSubmit(a,b,function(a){return a.eligibleCustomersType==="COMMERCE_AUDIENCE"?d("CMDiscountValidationCore").requiredStringValidation(a.commerceAudienceID,h._("A commerce audience must be created.")):d("CMDiscountValidationCore").buildValidResponse()})}},x={contentID:function(a,b){return d("CMDiscountValidationCore").onlyValidateOnSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredStringValidation(a.contentID,h._("A name must be entered."))})},couponCodes:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(K(a.discountApplicationType,a.couponCodes,a.couponCodeType),h._("At least one discount code must be entered."))})},function(a){return d("CMDiscountValidationCore").booleanValidation(a.couponCodes.length<=d("CMOfferConstants").MAX_COUPON_CODES,d("CMDiscountStrings").CouponCodeLimitReachedError)},function(a){for(var a=a.couponCodes,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(b){if(c>=a.length)break;e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e=e;e=M(e.getTitle(),d("CMOfferConstants").MAX_COUPON_CODE_CHARACTER_LIMIT);if(!e.isValid)return e}return d("CMDiscountValidationCore").buildValidResponse()}),publicCouponCode:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(L(a.discountApplicationType,a.publicCouponCode,a.couponCodeType),h._("Promo code is required"))})},function(a){a=a.publicCouponCode;return a==null?d("CMDiscountValidationCore").buildValidResponse():M(a.getTitle(),d("CMOfferConstants").MAX_PUBLIC_COUPON_CODE_CHARACTER_LIMIT)})},y={minimumQuantity:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(S(c("CMDiscountType").MinimumQuantity,a.discountType,a.minimumQuantity),h._("A minimum quantity must be entered."))})},minimumSubtotal:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(S(c("CMDiscountType").MinimumSubtotal,a.discountType,a.minimumSubtotal),h._("A minimum subtotal must be entered."))})},purchaseRequirements:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.purchaseRequirements,h._("A purchase requirement type must be selected."))})}},z={tieredDiscountInfos:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(aa(a.tieredDiscountInfos,a.discountType,a.tieredDiscountAmountType,a.tieredDiscountRequirementType),h._("Tiered minimums must have at least {minimum tiers} tiers.",[h._param("minimum tiers",d("CMOfferConstants").REQUIRED_TIERS)]))})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(X(a.tieredDiscountInfos,a.discountType,a.tieredDiscountAmountType,a.tieredDiscountRequirementType),h._("The minimum and amount off must be higher than the previous tier."))})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(V(a.tieredDiscountInfos,a.discountType),h._("Missing tier information"))})})},A={amountType:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(N(a.offerCategoryType,a.amountType),h._("A value type must be selected."))})},fixedAmountOff:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(Z(a.offerCategoryType,a.purchaseRequirements,a.markdownType,c("CMDiscountAmountType").FixedAmount,a.amountType,a.fixedAmountOff),h._("An amount greater than 0 must be entered."))})},function(a){return d("CMDiscountValidationCore").booleanValidation(c("isNullOrZero")(a.fixedAmountOff)||a.fixedAmountOff<=m,h._("Amount off can"t exceed 1,000,000.00"))}),percentOff:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(Z(a.offerCategoryType,a.purchaseRequirements,a.markdownType,c("CMDiscountAmountType").Percentage,a.amountType,a.percentOff),h._("A percentage greater than 0 must be entered."))})}},B={targetShippingOptionTypes:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(O(a.offerCategoryType,a.targetShippingOptionTypes),h._("A delivery option type must be selected."))})}},C={productSelectionType:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.productSelectionType,d("CMDiscountStrings").NoProductsErrorMessage)})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation($(a.productSelectionType,a.selectedProductSets,a.selectedProducts),d("CMDiscountStrings").NoProductsErrorMessage)})})},D={prerequisiteProductSelectionType:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(P(a.offerCategoryType,a.prerequisiteProductSelectionType),d("CMDiscountStrings").NoProductsErrorMessage)})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(da(a.offerCategoryType,a.prerequisiteProductSelectionType,a.selectedPrerequisiteProductSets,a.selectedPrerequisiteProducts),d("CMDiscountStrings").NoProductsErrorMessage)})}),redeemLimitPerOrder:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(Q(a.hasRedeemLimitPerOrder,a.offerCategoryType,a.redeemLimitPerOrder),h._("Application limit per order must be a positive number."))})},targetQuantity:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(R(a.offerCategoryType,a.targetQuantity),h._("A target quantity must be entered."))})}},E={applicableCountries:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(ea(a.applicableCountries,b),h._("At least one country/region must be selected."))})}};function F(a){a=a.buyerVisibleTitle;return d("CMDiscountValidationCore").booleanValidation((a!=null?a.length:0)<=l,h._("Your name can"t be longer than {max length} characters.",[h._param("max length",l)]))}var G={buyerVisibleTitle:function(a,b){return d("CMDiscountValidationCore").ignoreValidationWhen(!d("CMOfferUtils").isExistingSalePricedItemsOffer(a),a,b,d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredStringValidation(a.buyerVisibleTitle,h._("A name is required for this type of sale."))})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return F(a)})}))}};A=babelHelpers["extends"]({},A,z,B,C,D);z={endDate:d("CMDiscountValidationCore").chainValidations(function(a){return d("CMDiscountValidationCore").booleanValidation(!I(a.startDate,a.endDate),d("CMDiscountStrings").EndDateBeforeStartError)},function(a){return d("CMDiscountValidationCore").booleanValidation(!J(a.endDate),d("CMDiscountStrings").EndDateTimeInThePastError)}),startDate:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.startDate,h._("A start date for the discount must be entered."))})}};var H=babelHelpers["extends"]({},v,x,w,y,G,A,z,E);function I(a,b){return a==null||b==null?!1:b.isSameOrBefore(a)}function J(a){return a==null?!1:a.isBefore(c("DateTime").localNow())}function K(a,b,d){if(d!=="PRIVATE")return!0;return a!==c("CMDiscountApplicationType").BUYER_APPLIED?!0:b.length>0}function L(a,b,d){if(d!=="PUBLIC")return!0;return a!==c("CMDiscountApplicationType").BUYER_APPLIED?!0:b!=null}function M(a,b){if(!a.match("^[a-zA-Z0-9_]*$"))return d("CMDiscountValidationCore").buildErrorResponse(d("CMDiscountStrings").InvalidCouponCodeError);else if(a.length>b)return d("CMDiscountValidationCore").buildErrorResponse(d("CMDiscountStrings").getCouponCodeCharacterLimitError(b));return d("CMDiscountValidationCore").buildValidResponse()}function N(a,b){return a!==c("CMOfferCategoryType").AmountOff&&a!==c("CMOfferCategoryType").BuyXGetY?!0:b!==null}function O(a,b){return a!==c("CMOfferCategoryType").FreeShipping?!0:b!==null&&!(i||(i=c("isEmpty")))(b)}function P(a,b){return a!==c("CMOfferCategoryType").BuyXGetY?!0:b!==null}function Q(a,b,d){if(b!==c("CMOfferCategoryType").BuyXGetY)return!0;return!a?!0:d!=null&&d>0}function R(a,b){return a!==c("CMOfferCategoryType").BuyXGetY?!0:!c("isNullOrZero")(b)}function S(a,b,d){return b!==a?!0:!c("isNullOrZero")(d)}function T(a,b){if(a.length<=1)return!1;var d=a.slice(1);return d.every(function(d,e){e=a[e];switch(b){case c("CMDiscountAmountType").FixedAmount:return c("nullthrows")(e.fixedAmountOff)=d("CMOfferConstants").REQUIRED_TIERS}function Y(a,b,c){if(a==null||b==null||c==null)return[];var d=[];for(var e=0;e<(a==null?void 0:a.length);e++){var f=ba(a[e],b,c);f!=null&&d.push(f)}return d}function ba(a,b,d){var e=a.percentOff,f=a.minSubtotal,g=a.fixedAmountOff;a=a.minQuantity;var h=null,i=null,j=null,k=null;switch(b){case c("CMDiscountAmountType").FixedAmount:if(c("isNullOrZero")(g))return null;h=g;break;case c("CMDiscountAmountType").Percentage:if(c("isNullOrZero")(e))return null;i=e;break}switch(d){case c("CMOfferPurchaseRequirementsType").MinimumQuantity:if(c("isNullOrZero")(a))return null;k=a;break;case c("CMOfferPurchaseRequirementsType").MinimumSubtotal:if(c("isNullOrZero")(f))return null;j=f;break;default:}return{fixedAmountOff:h,minQuantity:k,minSubtotal:j,percentOff:i}}function ca(a,b,d){return b!==a?!0:!c("isNullOrZero")(d)&&d>0}function Z(a,b,e,f,g,h){if(b===c("CMOfferPurchaseRequirementsType").Tiered)return!0;b=a===c("CMOfferCategoryType").Markdown&&e===d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.New;return a!==c("CMOfferCategoryType").AmountOff&&a!==c("CMOfferCategoryType").BuyXGetY&&!b?!0:ca(f,g,h)}function $(a,b,d){if(a==null)return!1;switch(a){case c("CMDiscountProductSelectionType").EntireCatalog:return!0;case c("CMDiscountProductSelectionType").ExistingProductSet:return b.length>0;case c("CMDiscountProductSelectionType").SpecificProducts:return d.length>0}}function da(a,b,d,e){return a!==c("CMOfferCategoryType").BuyXGetY?!0:$(b,d,e)}function ea(a,b){b=(b=b==null?void 0:b.config.isMultinationalFlowEnabled)!=null?b:!1;return!b?!0:!(i||(i=c("isEmpty")))(a)}g.convertToVerifiedDiscountData=n;g.useFieldValidator_WithOldState=a;g.useFieldValidatorHelper_WithOldState=o;g.useGetVerifiedDiscountData_WithOldState=b;g.useGetVerifiedDiscountDataHelper_WithOldState=p;g.useFieldValidator_WithNewState=e;g.useFieldValidatorHelper_WithNewState=r;g.useGetVerifiedDiscountData_WithNewState=f;g.useGetVerifiedDiscountDataHelper_WithNewState=s;g.detailsSectionValidators=A;g.VALIDATORS=H;g.isEndDateBeforeStartDate=I}),226);
-----
CMOfferBuilderConstants",["CMDiscountAmountType","CMDiscountTargetGranularityType","CMOfferBuilderUtils","CMOfferConstants","CMOfferGetYValueType","CMOfferMarkdownSelection","CMOfferPurchaseRequirementsType","CMOfferTargetShippingOptionType","CMOfferTierInfoActions","TypedImmutableObject","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";var h;a=null;e=c("TypedImmutableObject").create({form:{error:null,hasDuplicateInternalName:!1,hasSubmittedPreviously:!1,isSubmitting:!1,previewCountry:""},offer:{additionalTerms:null,amountType:(b=d("CMOfferConstants")).DEFAULT_AMOUNT_TYPE,applicableCountries:[],approvalStatus:null,buyerVisibleTitle:null,campaignCategory:null,claimableEndDate:null,claimableStartDate:null,commerceAudienceID:null,contentID:"",couponCodes:[],couponCodeType:"NONE",currency:"",discountApplicationType:b.DEFAULT_APPLICATION_TYPE,discountID:null,discountType:b.DEFAULT_DISCOUNT_TYPE,eligibilityQEInfo:null,eligibilityRules:[],eligibleCustomersType:"EVERYONE",endDate:null,excludeSalePricedProducts:!1,fixedAmountOff:0,getYValueType:b.DEFAULT_GETY_VALUE_TYPE,hasLoyaltyOffer:!1,hasRedeemLimitPerOrder:!c("isNullOrZero")(a),incentiveCampaign:null,incentiveSurfaces:[],incentiveVariant:null,loyaltyInfo:null,markdownType:d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.New,minimumQuantity:0,minimumSubtotal:0,offerCategoryType:b.DEFAULT_CATEGORY_TYPE,percentOff:0,prerequisiteProductSelectionType:null,productSelectionType:null,productTypeRestriction:null,publicCouponCode:null,purchaseRequirements:b.DEFAULT_PURCHASE_REQUIREMENTS_TYPE,reclaimCooldownDuration:null,redeemLimitPerOrder:a,redeemLimitPerUser:0,redemptionDuration:null,salesChannels:null,selectedPrerequisiteProducts:[],selectedPrerequisiteProductSets:[],selectedProducts:[],selectedProductSets:[],startDate:d("CMOfferBuilderUtils").getDefaultOfferStartDate(),targetGranularity:b.DEFAULT_TARGET_GRANULARITY,targetingCriteria:null,targetQuantity:0,targetShippingOptionTypes:null,targetType:b.DEFAULT_TARGET_TYPE,tieredDiscountAmountType:b.DEFAULT_TIERED_AMOUNT_TYPE,tieredDiscountInfos:Array.from({length:b.MAX_TIERS},function(){return d("CMOfferTierInfoActions").getEmptyTierInfo()}),tieredDiscountRequirementType:b.DEFAULT_TIERED_REQUIREMENTS_TYPE,totalBudget:null}});f=c("TypedImmutableObject").create({flowType:"create",isOneClickPromo:!1,prePopulatedProductDynamicItems:[]});b=[(a=c("CMOfferPurchaseRequirementsType")).None,a.MinimumSubtotal,a.MinimumQuantity,a.Tiered];var i=[a.MinimumSubtotal,a.MinimumQuantity];a=[a.MinimumSubtotal,a.MinimumQuantity];var j=[(h=c("CMDiscountAmountType")).FixedAmount,h.Percentage],k=[h.Percentage];h=[h.FixedAmount,h.Percentage];var l=[c("CMDiscountTargetGranularityType").ITEM_LEVEL,c("CMDiscountTargetGranularityType").ORDER_LEVEL],m=[c("CMOfferTargetShippingOptionType").STANDARD,c("CMOfferTargetShippingOptionType").EXPEDITED,c("CMOfferTargetShippingOptionType").RUSH];c=[c("CMOfferGetYValueType").Free,c("CMOfferGetYValueType").AmountOff];g.DEFAULT_BUILDER_STATE=e;g.DEFAULT_OFFER_BUILDER_CONFIG=f;g.VALID_PURCHASE_REQUIREMENTS=b;g.VALID_TIERED_REQUIREMENTS=i;g.VALID_PURCHASE_REQUIREMENTS_BUYX_GETY=a;g.VALID_AMOUNT_TYPES=j;g.VALID_AMOUNT_TYPES_TIERED=k;g.VALID_AMOUNT_TYPES_TIERED_V2=h;g.VALID_TARGET_GRANULARITY_TYPES=l;g.VALID_SHIPPING_OPTION_TYPES=m;g.VALID_GETY_VALUE_TYPES=c}),98);
-----
AdsGuidedOnboardingBusinessAdAccountCreationPage.react",["fbt","AdsGuidedOnboardingAccountSetupStepWrapper.react","AdsGuidedOnboardingAsyncBusinessPortfolioDisplay.react","AdsGuidedOnboardingBusinessAdAccountCreationPageFragment.graphql","AdsGuidedOnboardingBusinessAdAccountCreationPageStrings","AdsGuidedOnboardingBusinessPortfolioCreationStrings","AdsGuidedOnboardingEditableAdAccountInfo.react","AdsPersonalSettingsAdAccountVerticalSelector.react","DateTime","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoTooltip.react","GeoVStack.react","RelayHooks","geoMargin","isNullOrZero","isStringNullOrEmpty","nullthrows","react","useAdsGuidedOnboardingAccountSetupRedirectOnComplete"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("AdsGuidedOnboardingBusinessAdAccountCreationPageFragment.graphql");function a(a){var b=a.businessID,e=a.businessName,g=a.createdAdAccountID,i=a.fragmentKey,j=a.isCreatingAdAccount,o=a.onBack,p=a.onNext;a=a.onRedirectError;i=d("RelayHooks").useFragment(n,i);var q=m(""),r=q[0],s=q[1];q=m("USD");var t=q[0];q=q[1];var u=m(c("DateTime").localNow().getTimezoneID()),v=u[0];u=u[1];var w=m(!1),x=w[0];w=w[1];var y=m(!1),z=y[0],A=y[1],B=c("useAdsGuidedOnboardingAccountSetupRedirectOnComplete")(b,g,j,a);l(function(){B()},[B]);y=c("isStringNullOrEmpty")(r)||c("isStringNullOrEmpty")(t)||c("isNullOrZero")(v);return k.jsx(c("AdsGuidedOnboardingAccountSetupStepWrapper.react"),{moduleID:f.id,primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:y||z||x,isLoading:z,label:h._("Create"),tooltip:r===""?d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_MISSING_TOOLTIP:null,variant:"primary",onClick:function(){A(!0),p({adAccountName:e,currency:t,industry:r,timezoneID:c("nullthrows")(v)})}},"next"),startContent:o&&k.jsx(c("GeoButton.react"),{"data-testid":void 0,label:h._("Back"),variant:"default",onClick:o}),subtitle:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").getBusinessAdAccountCreationPageSubtitle((g=e)!=null?g:""),title:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").BUSINESS_AD_ACCOUNT_CREATION_STEP_HEADING,children:k.jsxs(c("GeoVStack.react"),{context:"content",relation:"section",children:[k.jsx(c("AdsGuidedOnboardingAsyncBusinessPortfolioDisplay.react"),{businessDescription:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").BUSINESS_AD_ACCOUNT_BP_DESCRIPTION,businessID:b,clientBusinessName:(j=e)!=null?j:"",fragmentKey:i,isRefetching:x,setIsRefetching:w}),k.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").vert8,children:k.jsx(c("AdsPersonalSettingsAdAccountVerticalSelector.react"),{initialVerticalKey:r,isPrimaryVertical:!0,selectorLabel:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_INPUT_LABEL,selectorPlaceholder:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_INPUT_PLACEHOLDER,tooltipText:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_INPUT_TOOLTIP,onVerticalSelected:function(a){return s((a=a)!=null?a:"")}})}),k.jsxs(c("GeoVStack.react"),{context:"container",relation:"related",children:[k.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[k.jsxs(c("GeoFlexbox.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_CREATION_HEADING}),k.jsx(c("GeoTooltip.react"),{content:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_CREATION_TOOLTIP_CONTENT})]}),k.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_CREATION_DESCRIPTION})]}),k.jsx(c("AdsGuidedOnboardingEditableAdAccountInfo.react"),{currency:t,setCurrency:q,setTimezoneID:u,timezoneID:v})]}),k.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").getAdAccountAgreementInfoText((a=e)!=null?a:"")})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsUEditorCampaignScheduleHourDuration.react",["fbt","AdsBudgetUtils","AdsInterfacesLogger","AdsUEditorCampaignSetLiveVideoAcceleratedDeliveryAction","FlexLayout.react","GeoFlexbox.react","GeoNotice.react","GeoNumericInput.react","GeoText.react","geoMargin","isNullOrZero","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=1,l={width125:{width:"x1tucx9d",$$css:!0}};function a(a){var b=a.hostID,e=a.hourDuration,g=a.id;c("AdsInterfacesLogger").logOnce({eventName:"am_live_video_ads_hour_duration",data:{visible:!0,is_enabled:!0}});a=h._("hours");var i=h._("Your ad set has been scheduled to optimise your live video boost. Live video ads typically run for at least one hour. We recommend scheduling your ad set as precisely as possible. Changes to scheduling after your campaign begins can lead to lower performance."),m=function(a){c("isNullOrZero")(a)||c("AdsUEditorCampaignSetLiveVideoAcceleratedDeliveryAction").dispatch({hostID:b,campaignIDs:Array.from(g.getValues()),hourDuration:a,useLiveVideoAcceleratedDelivery:!0},{line:"70",module:"AdsUEditorCampaignScheduleHourDuration.react.js",moduleID:f.id})};return j.jsxs(c("FlexLayout.react"),{direction:"vertical",children:[j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:c("geoMargin").top4,children:[j.jsx("div",{xstyle:l.width125,children:j.jsx(c("GeoNumericInput.react"),{"data-testid":void 0,isLabelHidden:!0,label:d("AdsBudgetUtils").SCHEDULE_HOUR_DURATION_LABEL,min:k,value:e,onChange:m})}),j.jsx(c("GeoText.react"),{display:"block",xstyle:[c("geoMargin").top20,c("geoMargin").horiz8],children:a})]}),j.jsx(c("GeoNotice.react"),{status:"info",xstyle:c("geoMargin").vert20,children:i})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
isNullOrZero",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a==null||a===0}f["default"]=a}),66);
-----
SUIInlineTypeahead.react",["cx","AbstractTypeahead.react","DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE","SUISpinner.react","SUITheme","SUITokenizerItemList.react","SUITypeaheadNavigation","SearchSourceQueryStatus","createObjectFrom","isNullOrZero","joinClasses","react","withSUITheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");a=1e3;b={allowShowingSpinner:!1,areCategoriesCollapsible:!1,hasCategories:!1,hideSingleCategory:!1,shouldVirtualize:!0,shouldWrapSubtitle:!1,maxEntries:a};var k={queryString:"",isSearching:!1};e=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=j.createRef();e.$2=!1;e.$4=j.createRef();e.$6=function(a){e.props.hasCategories&&e.props.areCategoriesCollapsible&&e.$4.current!=null&&a!=null&&e.$4.current.expandCategoryForEntry(a)};e.$7=function(){e.$2&&e.setState({isSearching:!0})};e.$8=function(a){a=a.target.value;e.setState({queryString:a});e.props.onQueryChange&&e.props.onQueryChange(a)};e.$9=function(a,b){b.stopPropagation(),e.props.onRemoveSearchResult&&e.props.onRemoveSearchResult(a)};e.$10=function(a){if(e.$5(a))return;e.props.onChange(a);e.$2&&e.setState({queryString:""})};e.$11=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&e.setState({isSearching:!1}),e.props.onEntriesFound&&e.props.onEntriesFound(a)};e.$12=function(a){e.setState({isSearching:!1}),e.props.onNoEntriesFound&&e.props.onNoEntriesFound()};e.$5=function(a){var b=e.props,c=b.disabledEntryIDs;b=b.getDisableStateForEntry;c=c?c.has(a.getUniqueID()):!1;b&&(c=c||b(a));return c};e.state=k;e.$3=new(c("SUITypeaheadNavigation"))(e.$5,e.$6);return e}var e=b.prototype;e.componentDidMount=function(){this.$2=!0};e.componentWillUnmount=function(){this.$2=!1};e.focusInput=function(){this.$1.current&&this.$1.current.focusInput()};e.render=function(){var a=c("SUITheme").get(this).SUIInlineTypeahead,b=a.searchIcon,d=this.state.isSearching&&this.props.allowShowingSpinner;return j.jsxs("div",{className:c("joinClasses")(this.props.className,"_1vdu"),"data-testid":void 0,style:this.props.style,children:[j.jsx(c("AbstractTypeahead.react"),{additionalElements:this.props.additionalElements,ariaLabel:this.props.ariaLabel,autoHighlight:!0,"data-testid":void 0,excludedEntries:this.props.excludedEntryIDs?c("createObjectFrom")(Array.from(this.props.excludedEntryIDs)):void 0,hideViewWithEntries:!1,inputClassName:"_1vdv"+(d?" _35mr":""),inputRightChild:d?j.jsx(c("SUISpinner.react"),{className:"_35ms"}):null,inputStyle:a.inputTextColor!=null?{color:a.inputTextColor}:void 0,navigation:this.$3,onBlur:this.props.onBlur,onChange:this.$8,onEntriesFound:this.$11,onFocus:this.props.onFocus,onNoEntriesFound:this.$12,onSearch:this.$7,onSelectAttempt:this.$10,placeholder:this.props.placeholder,presenter:{ViewRenderer:c("SUITokenizerItemList.react"),alwaysVisibleOnFocus:this.props.emptySearchResultsContent!=null||this.props.beforeSearchResults!=null,extraRendererProps:{areCategoriesCollapsible:this.props.areCategoriesCollapsible,initiallyExpandedCategories:this.props.initiallyExpandedCategories,categoriesCompare:this.props.categoriesCompare,categoryItemCompare:this.props.categoryItemCompare,categoryHeader:this.props.categoryHeader,getCategoryHeaderProps:this.props.getCategoryHeaderProps,getCategorizedItems:this.props.getCategorizedItems,getLabelStyleForEntry:this.props.getLabelStyleForEntry,getLeftContentForEntry:this.props.getLeftContentForEntry,getRightContentForEntry:this.props.getRightContentForEntry,getSubtitleContentForEntry:this.props.getSubtitleContentForEntry,getTooltipInfo:this.props.getTooltipForEntry,hasCategories:this.props.hasCategories,hideSingleCategory:this.props.hideSingleCategory,isDisabledEntry:this.$5,emptySearchResultsContent:this.props.emptySearchResultsContent,customHeader:this.props.beforeSearchResults,onEndOfListReached:this.props.onEndOfListReached,onRemoveSearchResult:this.props.onRemoveSearchResult?this.$9:null,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,selectedEntries:this.props.selectedEntries,shouldContainWheelEvent:!0,shouldVirtualize:this.props.shouldVirtualize,shouldWrapSubtitle:this.props.shouldWrapSubtitle,style:{borderTop:"1px solid "+a.dividerBorderColor},theme:c("SUITheme").get(this),listMaxHeight:c("isNullOrZero")(this.props.maxListHeight)?null:this.props.maxListHeight,ref:this.$4},maxEntries:this.props.maxEntries,useLayer:!1},queryString:this.state.queryString,ref:this.$1,scrollIntoViewOnHighlight:!this.props.shouldVirtualize,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,selectOnBlur:!1,selectedEntries:this.props.selectedEntries||void 0,selectedEntry:this.props.selectedEntry||void 0,showEntriesOnFocus:!0}),j.cloneElement(b,{className:c("joinClasses")("_1vdw",l(b))})]})};return b}(j.PureComponent);e.defaultProps=b;function l(a){a=c("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(a);a=a.props;return a!=null&&typeof a==="object"&&typeof a.className==="string"?a.className:null}f=c("withSUITheme")(e);g["default"]=f}),98);
-----
SimpleInterfaceFormCalendarField.react",["cx","BUIText.react","FlexLayout.react","MarketingExpertWidgetTimezoneSelector.react","SimpleInterfaceCalendarView.react","Timezone","isNullOrZero","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b,e=a.field,f=a.handleTimeSlotChange,g=a.timeslots;a=a.value;b=(b=a==null?void 0:a.timezone_id)!=null?b:d("Timezone").getEnvironmentTimezoneID();var h=function(a){var b;b=!c("isNullOrZero")((b=a.time_interval)==null?void 0:b.start_time)&&!c("isNullOrZero")((b=a.time_interval)==null?void 0:b.end_time);f(a,b)};return j.jsxs("div",{className:"_aelo",children:[j.jsx(c("BUIText.react"),{size:"body3",weight:"bold",margin:"_3-91",children:e.label}),j.jsx(c("MarketingExpertWidgetTimezoneSelector.react"),{value:b,onChange:function(a){return h({timezone_id:a})}}),j.jsx(c("FlexLayout.react"),{align:"center",className:"_983n",direction:"horizontal",children:j.jsx(c("SimpleInterfaceCalendarView.react"),{availableTimeSlots:g,handleTimeSlotChange:h,meetingLength:45,timezoneID:b,selectedTimeslot:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AutoScheduleUtils",["DateConsts","DateTime","Instant","Timezone","TimezoneNamesData","formatDate","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";var h="D, M j, Y",i="g:i A",j=null;function a(a){return a.split(/ /g).map(function(a){return""+a.substring(0,1).toUpperCase()+a.substring(1)}).join(" ")}function b(a){return typeof a==="function"}function k(a,b){b===void 0&&(b=i);return c("formatDate")(a,b)}function l(a,b){b===void 0&&(b=h);return c("formatDate")(a,b)}function m(a){return l(a.start_time)}function n(a){var b=k(a.start_time);a=k(a.end_time);return b+" - "+a}function o(a,b){a={start_time:a,end_time:b};b=m(a);a=n(a);return b+" "+a}function e(a,b){b=c("isNullOrZero")(b)?d("DateConsts").SEC_PER_HOUR/2:b;return o(a,a+b)}function p(a){return a.getDay()===d("DateConsts").DAYS.SATURDAY||a.getDay()===d("DateConsts").DAYS.SUNDAY}function f(a,b){if(b<=0)return 0;var c=0;for(var d=1;d0;return{firstSlotStart:b?a[0].start_time:-1,lastSlotStart:b?a[a.length-1].start_time:-1,numSlots:a.length}}function A(){j||(j=d("Timezone").registerNamesModule(c("TimezoneNamesData")))}function B(){A();return d("Timezone").getExactName(d("Timezone").getEnvironmentTimezoneID())}function C(a,b){var e=d("Timezone").getEnvironmentTimezoneID();b=y(b);if(b!==null){e=c("DateTime").create(a,e).getParallel(b).getUnixTimestamp();return Math.floor(e/d("DateConsts").MS_PER_SEC)}else return a}g.capitalize=a;g.isFunction=b;g.getTimeStrWithFormat=k;g.getDateStrWithFormat=l;g.getTimeSlotDateStr=m;g.getTimeSlotTimeStr=n;g.getTimeSlotStr=o;g.getTimestampStr=e;g.isWeekend=p;g.deltaWeekDaysFromDeltaBusinessDays=f;g.dateWithDelta=q;g.dateWithDeltaDays=r;g.startOfMonday=s;g.startOfDay=t;g.endOfDay=u;g.endOfFriday=v;g.getDateFromLocalDate=w;g.getTimezoneOffset=x;g.getTimezoneID=y;g.getFirstAndLastSlotStartTimes=z;g.setupTimezoneNamesModule=A;g.getTimezoneString=B;g.convertDateToTimezone=C}),98);
-----
CandidatePortalAutoScheduleCallCalendar.react",["cx","fbt","AdsTimezone","CRMCalendar.react","CRMCalendarEvent.react","CRMCalendarEventColorEnum","CandidatePortalAutoScheduleCallCalendarEventDetailsDialog.react","CandidatePortalAutoScheduleCallCalendarLegend.react","CandidatePortalAutoScheduleCallCalendarPager.react","CandidatePortalAutoScheduleCallTimeZoneUtils","CandidatePortalAutoScheduleCallUtils","CandidatePortalDateTimeUtils","CandidatePortalHiringPersonaRole$FbtEnum","ConstUriUtils","DateConsts","DateStrings","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoLink.react","SUIBusinessTheme","SUITimeZoneSelector.react","XCPConversationSchedulingHiringPersonaUtils.candidateportal","curry","geoMargin","isNullOrZero","react","useCandidatePortalMobileBreakpoint","useUniqueID"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useRef,m=b.useState;function a(a){var b,e=a.candidatePrefillData,f=a.fbcScheduleAction,g=a.generateCustomModal,h=g===void 0?null:g;g=a.hiringPersonaID;var j=a.hiringPersonaRole,n=a.isProcessing,o=a.onSelectionConfirm,p=a.onSelectTimeslot,q=a.requireCandidateName,r=a.subHeader;r=r===void 0?null:r;var s=a.timeSlots;a=c("useCandidatePortalMobileBreakpoint")();var t=function(a){a=a.sort(function(a,b){return a.start_time-b.start_time});a=(a[0]||{}).start_time;return a?new Date(a*d("DateConsts").MS_PER_SEC):new Date()},u=l(Array(s.length).fill().map(function(a){return k.createRef()})),v=function(){var a=d("CandidatePortalAutoScheduleCallUtils").getTimezoneString();a=d("CandidatePortalAutoScheduleCallUtils").getTimezoneID(a);return c("isNullOrZero")(a)?null:new(c("SUITimeZoneSelector.react").VALUE)({timeZoneId:a})};t=m(t(s));var w=t[0],x=t[1];t=m(null);var y=t[0],z=t[1];t=m(d("CandidatePortalAutoScheduleCallUtils").getTimezoneString());var A=t[0],B=t[1];t=m(v());v=t[0];var C=t[1];t=function(a){var b=d("AdsTimezone").timezoneDataByID[a.timeZoneId].name;B(b);C(a)};var D=function(a,b){x(b||w),z(a?y:null),p(a&&y!=null?s[y]:null)},E=function(){z(null),p(null)},F=function(a){if(a<0||a>s.length)return;z(a);p(s[a])},G=s.map(function(a,b){var g=c("CandidatePortalAutoScheduleCallTimeZoneUtils").convertTimeSlot(a,A),i=g.start_time+"_"+g.end_time,j=y===b,l=function(){return!n&&F(b)},m=function(){return E()};a=c("curry")(o,a);var p=u.current[b],r=j&&f==null,s=new Date(g.start_time*1e3),t=s.getDate()+" "+d("DateStrings").getWeekdayName(s.getDay()).toString(),v=new Date(g.end_time*1e3);return k.jsxs(c("CRMCalendarEvent.react"),{className:"_12qk"+(j?"":" _12ql"),endTime:g.end_time*d("DateConsts").MS_PER_SEC,hasOutline:!1,height:0,onEventClicked:function(){},selected:j,shade:j?d("CRMCalendarEventColorEnum").GREEN:null,startTime:g.start_time*d("DateConsts").MS_PER_SEC,title:"",children:[k.jsx("a",{"aria-label":t+" "+s.toLocaleTimeString()+" to "+v.toLocaleTimeString()+" available time slot",className:"_12qq",href:"#",onClick:l,ref:p,role:"button",tabIndex:"0"}),h!=null?h(a,{onClose:m,isShown:r,timeSlot:g}):k.jsx(c("CandidatePortalAutoScheduleCallCalendarEventDetailsDialog.react"),{candidatePrefillData:e,isProcessing:n,onClose:m,onConfirm:a,requireCandidateName:q,shown:r,timeslot:g,timezone:d("CandidatePortalDateTimeUtils").getFormattedTimezone(A)})]},i)});b=g!=null?(b=d("ConstUriUtils").getUri("https://www.internalfb.com/intern/interviews/preferences"))==null?void 0:(b=b.addQueryParam("interviewer_fbid",g))==null?void 0:(g=b.addQueryParam("section","SCHEDULING"))==null?void 0:g.toString():null;g=c("useUniqueID")();g=k.jsxs(c("GeoHStack.react"),{alignItems:"center",xstyle:a?c("geoMargin").bottom12:[c("geoMargin").bottom8,c("geoMargin").start24],children:[k.jsx(c("GeoHeading.react"),{display:"inline",id:g,level:2,children:i._("__JHASH__7phunfbwJlE__JHASH__")}),k.jsx(c("SUITimeZoneSelector.react"),{isDisabled:n,labelledBy:g,onChange:t,shouldShowSubtitleInSelector:!0,theme:c("SUIBusinessTheme"),value:v})]});t=k.jsx(c("CandidatePortalAutoScheduleCallCalendarPager.react"),{date:w,disabled:n,onDateChange:function(a){return D(!1,a)},timeSlots:s});v=k.jsxs(k.Fragment,{children:[a&&g,k.jsxs(c("GeoFlexbox.react"),{direction:a?"column":"row",justifyContent:"space-between",children:[a?t:k.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",children:[t,g]}),k.jsx(c("CandidatePortalAutoScheduleCallCalendarLegend.react"),{})]}),e.is_internal===!0&&k.jsx(c("GeoFlexbox.react"),{alignItems:"center",direction:"row",xstyle:a?c("geoMargin").bottom16:[c("geoMargin").bottom16,c("geoMargin").top8],children:k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("__JHASH__cDydQc-ntcS__JHASH__",[i._enum(d("XCPConversationSchedulingHiringPersonaUtils.candidateportal").toJSEnum(j),c("CandidatePortalHiringPersonaRole$FbtEnum")),i._param("show interview preferences link",b!=null?",":" or"),i._param("interview preferences link",b!=null&&k.jsxs(k.Fragment,{children:[k.jsx(c("GeoBaseText.react"),{color:"placeholder",size:"value",children:i._("__JHASH__276JUYT59H3__JHASH__")})," ",k.jsx(c("GeoLink.react"),{href:b,target:"_blank",children:i._("__JHASH__Ka7dohqeoXY__JHASH__")})]}))])})})]});return k.jsxs(k.Fragment,{children:[v,r,k.jsx(c("CRMCalendar.react"),{className:"_5gwg _5l96",date:w,dayEndHour:18,dayStartHour:8,hideAllDaySection:!0,hourHeight:50,onDateChange:function(){return D(!1)},scrollToCurrentTime:!0,use12HourTime:!0,children:G})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsGuidedOnboardingAdAccountCreation.react",["fbt","AdsGuidedOnboardingAdAccountCreationFormGate.react","AdsGuidedOnboardingAdAccountCreationQuery.graphql","AdsGuidedOnboardingAdAccountCreationStrings","AdsGuidedOnboardingErrorFrameworkStrings","AdsGuidedOnboardingReloadUtils","AdsGuidedOnboardingStepWrapper.react","AdsInterfacesLogger","BizKitSettingsCreateAdAccountActions","DateTime","GeoButton.react","GeoNotice.react","RelayHooks","geoMargin","isNullOrZero","isStringNullOrEmpty","nullthrows","react","useAdsGuidedOnboardingBrowserIDs","useAdsGuidedOnboardingConfiguration","useBizKitSettingsBusinessConfig"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useMemo,n=e.useState;function a(a){var e=a.setCurrentStep;a=c("useAdsGuidedOnboardingBrowserIDs")();var g=a.act;a=a.business_id;g=c("nullthrows")(g);var j=c("nullthrows")(a),o=c("useBizKitSettingsBusinessConfig")(),p=d("useAdsGuidedOnboardingConfiguration").useAdsGuidedOnboardingConfiguration();a=m(function(){return c("isNullOrZero")(o.timezoneID)?c("DateTime").localNow().getTimezoneID():o.timezoneID},[o.timezoneID]);a=n(a);var q=a[0];a=a[1];var r=n("USD"),s=r[0];r=r[1];var t=d("RelayHooks").useLazyLoadQuery(i!==void 0?i:i=b("AdsGuidedOnboardingAdAccountCreationQuery.graphql"),{adAccountID:g,businessID:j,pagePermissionActions:["ADMINISTER"]});g=d("BizKitSettingsCreateAdAccountActions").useCreateAdAccountMutation(j);var u=g[0];g=g[1];var v=n(!1),w=v[0],x=v[1],y=l(function(a){var b,f;b=(b=t==null?void 0:(b=t.business)==null?void 0:(b=b.owned_objects)==null?void 0:b.count)!=null?b:0;f=((f=t==null?void 0:(f=t.viewer)==null?void 0:(f=f.business_scoping)==null?void 0:(f=f.personal_scope)==null?void 0:(f=f.asset_lists)==null?void 0:f.map(function(a){return(a=a==null?void 0:(a=a.objects)==null?void 0:(a=a.nodes)==null?void 0:a.map(function(a){return a==null?void 0:(a=a.ent)==null?void 0:(a=a.viewer_profile_permissions)==null?void 0:a.includes("ADMINISTER")}))!=null?a:!1}).flat().findIndex(function(a){return a===!0}))!=null?f:-1)>=0;b>0?b="BP_SUMMARY_REVIEW_STEP":f===!0?b="BP_CLAIM_PAGE_STEP":b="BP_CREATE_PAGE_STEP";e(b,function(){d("AdsGuidedOnboardingReloadUtils").reloadWithAdAccount(a)},function(b){var e;c("AdsInterfacesLogger").log({eventName:"ads_guided_onboarding_business_ad_account_setting_step_error",data:{component_name:"AdsGuidedOnboardingAdAccountCreation",error_code:(e=b.number)!=null?e:-1,error_name:b.name+": "+b.message,error_description:(e=b.description)!=null?e:"",meta_message:p.getOnboardingVersion()}});d("AdsGuidedOnboardingReloadUtils").reloadWithAdAccount(a)},a)},[p,t==null?void 0:(v=t.business)==null?void 0:(v=v.owned_objects)==null?void 0:v.count,t==null?void 0:(v=t.viewer)==null?void 0:(v=v.business_scoping)==null?void 0:(v=v.personal_scope)==null?void 0:v.asset_lists,e]),z=l(function(a,e,b,d){u(a,e.toString(),c("nullthrows")(b).toString(),c("nullthrows")(d)).then(function(a){c("AdsInterfacesLogger").log({eventName:"ads_guided_onboarding_business_ad_account_creation_success",data:{component_name:"AdsGuidedOnboardingAdAccountCreation",meta_message:p.getOnboardingVersion(),new_value:a.adAccountID}}),y(a.adAccountID)})["catch"](function(a){var b;c("AdsInterfacesLogger").log({eventName:"ads_guided_onboarding_business_ad_account_creation_error",data:{component_name:"AdsGuidedOnboardingAdAccountCreation",error_code:(b=a.number)!=null?b:-1,error_name:a.name+": "+a.message,error_description:(b=a.description)!=null?b:"",meta_message:p.getOnboardingVersion()}});x(!0)})},[u,p,y]);return k.jsxs(c("AdsGuidedOnboardingStepWrapper.react"),{currentStep:"AD_ACCOUNT_CREATION_BP_SELECTION_STEP",moduleID:f.id,primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,disabledMessage:g?void 0:d("AdsGuidedOnboardingAdAccountCreationStrings").AD_ACCOUNT_CREATION_NEXT_BUTTON_DISABLED_MESSAGE,isDisabled:c("isNullOrZero")(q)||c("isStringNullOrEmpty")(s)||g,isLoading:g,label:h._(["Next","174b5f5ffc2568d748b82150816e2ec9",1]),variant:"primary",onClick:function(){return z(j,o.businessName,c("nullthrows")(q).toString(),c("nullthrows")(s))}}),setCurrentStep:e,title:d("AdsGuidedOnboardingAdAccountCreationStrings").AD_ACCOUNT_CREATION_STEP_HEADER,onBack:function(){return e("LANDING_STEP")},children:[k.jsx(c("AdsGuidedOnboardingAdAccountCreationFormGate.react"),{currency:s,queryReference:t,setCurrency:r,setCurrentStep:e,setTimezone:a,timezone:q}),w?k.jsx(c("GeoNotice.react"),{status:"warning",xstyle:c("geoMargin").top16,children:d("AdsGuidedOnboardingErrorFrameworkStrings").MUTATION_FAILURE_CLICK_NEXT_AGAIN}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsGuidedOnboardingBusinessAdAccountCreationPage.react",["fbt","AdsGuidedOnboardingAccountSetupStepWrapper.react","AdsGuidedOnboardingAsyncBusinessPortfolioDisplay.react","AdsGuidedOnboardingBusinessAdAccountCreationPageFragment.graphql","AdsGuidedOnboardingBusinessAdAccountCreationPageStrings","AdsGuidedOnboardingBusinessPortfolioCreationStrings","AdsGuidedOnboardingEditableAdAccountInfo.react","AdsPersonalSettingsAdAccountVerticalSelector.react","DateTime","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoTooltip.react","GeoVStack.react","RelayHooks","geoMargin","isNullOrZero","isStringNullOrEmpty","nullthrows","react","useAdsGuidedOnboardingAccountSetupRedirectOnComplete"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("AdsGuidedOnboardingBusinessAdAccountCreationPageFragment.graphql");function a(a){var b=a.businessID,e=a.businessName,g=a.createdAdAccountID,i=a.fragmentKey,j=a.isCreatingAdAccount,o=a.onBack,p=a.onNext;a=d("RelayHooks").useFragment(n,i);i=m("");var q=i[0],r=i[1];i=m("USD");var s=i[0];i=i[1];var t=m(c("DateTime").localNow().getTimezoneID()),u=t[0];t=t[1];var v=m(!1),w=v[0];v=v[1];var x=m(!1),y=x[0],z=x[1],A=c("useAdsGuidedOnboardingAccountSetupRedirectOnComplete")(b,g,j);l(function(){A()},[A]);x=c("isStringNullOrEmpty")(q)||c("isStringNullOrEmpty")(s)||c("isNullOrZero")(u);return k.jsx(c("AdsGuidedOnboardingAccountSetupStepWrapper.react"),{moduleID:f.id,primaryButton:k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:x||y||w,isLoading:y,label:h._("u521bu5efa"),tooltip:q===""?d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_MISSING_TOOLTIP:null,variant:"primary",onClick:function(){z(!0),p({adAccountName:e,currency:s,industry:q,timezoneID:c("nullthrows")(u)})}},"next"),startContent:o&&k.jsx(c("GeoButton.react"),{"data-testid":void 0,label:h._("u8fd4u56de"),variant:"default",onClick:o}),subtitle:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").getBusinessAdAccountCreationPageSubtitle((g=e)!=null?g:""),title:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").BUSINESS_AD_ACCOUNT_CREATION_STEP_HEADING,children:k.jsxs(c("GeoVStack.react"),{context:"content",relation:"section",children:[k.jsx(c("AdsGuidedOnboardingAsyncBusinessPortfolioDisplay.react"),{businessDescription:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").BUSINESS_AD_ACCOUNT_BP_DESCRIPTION,businessID:b,clientBusinessName:(j=e)!=null?j:"",fragmentKey:a,isRefetching:w,setIsRefetching:v}),k.jsx(c("GeoFlexbox.react"),{xstyle:c("geoMargin").vert8,children:k.jsx(c("AdsPersonalSettingsAdAccountVerticalSelector.react"),{initialVerticalKey:q,isPrimaryVertical:!0,selectorLabel:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_INPUT_LABEL,selectorPlaceholder:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_INPUT_PLACEHOLDER,tooltipText:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_INDUSTRY_INPUT_TOOLTIP,onVerticalSelected:function(a){return r((a=a)!=null?a:"")}})}),k.jsxs(c("GeoVStack.react"),{context:"container",relation:"related",children:[k.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[k.jsxs(c("GeoFlexbox.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_CREATION_HEADING}),k.jsx(c("GeoTooltip.react"),{content:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_CREATION_TOOLTIP_CONTENT})]}),k.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:d("AdsGuidedOnboardingBusinessPortfolioCreationStrings").BUSINESS_AD_ACCOUNT_CREATION_DESCRIPTION})]}),k.jsx(c("AdsGuidedOnboardingEditableAdAccountInfo.react"),{currency:s,setCurrency:i,setTimezoneID:t,timezoneID:u})]}),k.jsx(c("GeoBaseText.react"),{color:"value",size:"valueDescription",children:d("AdsGuidedOnboardingBusinessAdAccountCreationPageStrings").getAdAccountAgreementInfoText((x=e)!=null?x:"")})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
PolarisStoriesV3HighlightsPage.react",["CometRelay","PolarisStoriesV3DeleteMediaContextProvider.react","PolarisStoriesV3HighlightsGallery.react","PolarisStoriesV3HighlightsNavigationContextProvider.react","PolarisStoriesV3HighlightsPageQuery.graphql","PolarisStoriesV3HighlightsPageVariant","PolarisStoriesV3HighlightsPage_query.graphql","PolarisStoriesV3HighlightsReelLoggingContextProvider.react","PolarisStoriesV3HighlightsViewerContainer.react","PolarisStoriesV3StandaloneLayout.react","PolarisStoriesV3ViewerLoggingContextProvider.react","XPolarisFeedControllerRouteBuilder","XPolarisProfileControllerRouteBuilder","isNullOrZero","react","usePolarisStoriesV3RedirectOnEmptyReelEffect"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||(j=d("react"))).unstable_useMemoCache,l=j;function a(a){var e,f=k(17),g=a.highlightId,j=a.initialHighlightId,m=a.query;a=a.variant;m=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("PolarisStoriesV3HighlightsPageQuery.graphql"),m);var n=d("CometRelay").usePaginationFragment(i!==void 0?i:i=b("PolarisStoriesV3HighlightsPage_query.graphql"),m),o=n.data,p=n.hasNext,q=n.hasPrevious,r=n.isLoadingNext,s=n.isLoadingPrevious,t=n.loadNext;n=n.loadPrevious;var u;f[0]!==g?(u=function(a){return a.node.id===g},f[0]=g,f[1]=u):u=f[1];u=o.xdt_api__v1__feed__reels_media__connection.edges.find(u);u=u==null?void 0:u.node;e=(u==null?void 0:(e=u.user)==null?void 0:e.username)!=null?c("XPolarisProfileControllerRouteBuilder").buildUri({username:u==null?void 0:(e=u.user)==null?void 0:e.username}):c("XPolarisFeedControllerRouteBuilder").buildUri({});e=e.toString();c("usePolarisStoriesV3RedirectOnEmptyReelEffect")(u,e);if((u==null?void 0:u.id)==null||c("isNullOrZero")((e=u.items)==null?void 0:e.length))return null;e=m.xdt_viewer;f[2]!==a||f[3]!==o||f[4]!==p||f[5]!==q||f[6]!==g||f[7]!==j||f[8]!==r||f[9]!==s||f[10]!==t||f[11]!==n||f[12]!==e||f[13]!==u?(m=a===c("PolarisStoriesV3HighlightsPageVariant").Gallery?l.jsx(c("PolarisStoriesV3HighlightsGallery.react"),{connection:o.xdt_api__v1__feed__reels_media__connection,hasNext:p,hasPrevious:q,highlightId:g,initialHighlightId:j,isLoadingNext:r,isLoadingPrevious:s,loadNext:t,loadPrevious:n,viewer:e}):l.jsx(c("PolarisStoriesV3HighlightsNavigationContextProvider.react"),{reel:u,children:l.jsx(c("PolarisStoriesV3HighlightsReelLoggingContextProvider.react"),{reel:u,viewer:e,children:l.jsx(c("PolarisStoriesV3DeleteMediaContextProvider.react"),{reelId:u.id,children:l.jsx(c("PolarisStoriesV3StandaloneLayout.react"),{children:l.jsx(c("PolarisStoriesV3HighlightsViewerContainer.react"),{reel:u,viewer:e})})})})}),f[2]=a,f[3]=o,f[4]=p,f[5]=q,f[6]=g,f[7]=j,f[8]=r,f[9]=s,f[10]=t,f[11]=n,f[12]=e,f[13]=u,f[14]=m):m=f[14];f[15]!==m?(a=l.jsx(c("PolarisStoriesV3ViewerLoggingContextProvider.react"),{module:"reel_highlight_profile",children:m}),f[15]=m,f[16]=a):a=f[16];return a}g["default"]=a}),98);
-----
CandidatePortalAutoScheduleCallUtils",["CPXCareerSiteCareerProfileHomePageController","DateConsts","Instant","Timezone","TimezoneNamesData","formatDate","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";var h="D, M j, Y",i="g:i A",j={tzNamesModule:void 0,setupTimezoneNamesModule:function(){j.tzNamesModule||(j.tzNamesModule=d("Timezone").registerNamesModule(c("TimezoneNamesData")))},getTimezoneString:function(){j.setupTimezoneNamesModule();return d("Timezone").getExactName(d("Timezone").getEnvironmentTimezoneID())},getTimezoneID:function(a){j.setupTimezoneNamesModule();return d("Timezone").getByNameOrNull(a)},dateWithDelta:function(a,b){return new Date(a.getTime()+b)},dateWithDeltaDays:function(a,b){return j.dateWithDelta(a,b*d("DateConsts").MS_PER_DAY)},startOfMonday:function(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate()-a.getDay()+1)},endOfFriday:function(a){return j.dateWithDeltaDays(j.startOfMonday(a),5)},getTimeStrWithFormat:function(a,b){b===void 0&&(b=i);return c("formatDate")(a,b)},getDateStrWithFormat:function(a,b){b===void 0&&(b=h);return c("formatDate")(a,b)},getTimeSlotDateStr:function(a){return j.getDateStrWithFormat(a.start_time)},getTimeSlotTimeStr:function(a){var b=j.getTimeStrWithFormat(a.start_time);a=j.getTimeStrWithFormat(a.end_time);return b+" - "+a},getTimeSlotStr:function(a,b){a={start_time:a,end_time:b};b=j.getTimeSlotDateStr(a);a=j.getTimeSlotTimeStr(a);return b+" "+a},getTimezoneOffset:function(a){j.setupTimezoneNamesModule();return d("Instant").getOffset(d("Instant").now(),c("isNullOrZero")(a)?d("Timezone").getEnvironmentTimezoneID():a)},getTeamMatchingBackRouteURI:function(a,b){var d=b==null?void 0:b.get("consideration_id");b=b==null?void 0:b.get("view_as_user_id");var e=c("CPXCareerSiteCareerProfileHomePageController").getURIBuilder();b!=null&&(e=e.setFBID("view_as_user_id",b));return e.setEnum("page_name",a).getURI().stripTrailingSlash().addQueryData({id:d}).toString()}};f.exports=j}),34);
-----
AutoScheduleCandidateCalendar.react",["cx","AdsTimezone","AutoScheduleCalendarEventDetailsDialog.react","AutoScheduleCalendarPager.react","AutoScheduleTimeZoneUtils","AutoScheduleUtils","CRMCalendar.react","CRMCalendarEvent.react","CRMCalendarEventColorEnum","DateConsts","SUIBusinessTheme","SUITimeZoneSelector.react","areEqual","curry","isNullOrZero","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;gthis.props.timeSlots.length)return;this.setState({selectedSlotIndex:a})};return b}(i.Component);g["default"]=a}),98);
-----
LegalMatterTeams.react",["BUITable.react","BUITableColumn.react","BUITableGenericCell.react","GeoBaseText.react","GeoFlexbox.react","GeoLink.react","LegalMatterAppConfig","LegalMatterConstants","LegalMatterEmptyState.react","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","LegalMatterTeamsQuery.graphql","RelayHooks","enumUtils","immutable","isNullOrZero","react","useLegalMatterAutoSizer","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useState,l=155,m=[{key:"name",label:"Team",width:200}],n=h!==void 0?h:h=b("LegalMatterTeamsQuery.graphql");function a(a){a=a.userParam;a=d("RelayHooks").useLazyLoadQuery(n,{searchParams:{user_id:a}});a=a.teams;var b=d("useReactRouter").useRouter(),e=b.history;b=k("name");var f=b[0],g=b[1];b=k("asc");var h=b[0],o=b[1];b=c("useLegalMatterAutoSizer")({heightOffset:l,minHeight:d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT});var p=b.maxHeight;b=b.containerRef;var q=function(a){return d("LegalMatterAppConfig").ADMIN_PATH+"/"+d("LegalMatterAppConfig").ADMIN_ROUTES.teams.value+"/"+a+"/"+d("LegalMatterAppConfig").TEAM_DETAIL_ROUTES.members.value},r=j(function(a){var b=a.item;return i.jsx(c("BUITableGenericCell.react"),{align:"left",content:i.jsx(c("GeoLink.react"),{onClick:function(){return e.push(q(b.id))},children:i.jsx(c("GeoBaseText.react"),{color:"link",size:"value",children:(a=b==null?void 0:b.name)!=null?a:""})}),height:d("LegalMatterTableConstants").TABLE_CONFIG.SMALL_ROW_HEIGHT})},[e]),s=j(function(a){var b=a.key;a=a.label;var d=function(a){a=a.direction;o(a);g(b)};d={isSortable:!0,onSort:d,sortDirection:h};return i.jsx(c("LegalMatterTableHeaderCell.react"),babelHelpers["extends"]({columnKey:b,isResizable:!1,label:a},d))},[h]);a=c("immutable").List(a).sortBy(function(a){return a[d("enumUtils").assertKey(f,a)]}).update(function(a){return h==="asc"?a:a.reverse()});return i.jsx(c("GeoFlexbox.react"),{containerRef:b,grow:1,direction:"column",children:c("isNullOrZero")(a.size)?i.jsx(c("LegalMatterEmptyState.react"),{body:d("LegalMatterConstants").MESSAGES.NO_PERMISSIONS_FOR_TEAMS,isCard:!1}):i.jsx(c("BUITable.react"),{borders:"rows",hasFlexibleColumnWidths:!0,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:{labels:m.map(function(a){a=a.label;return a})}},items:a,maxHeight:p,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.SMALL_ROW_HEIGHT,children:m.map(function(a){return i.jsx(c("BUITableColumn.react"),{cell:r,header:function(){return s(a)},width:d("LegalMatterTableConstants").TABLE_CONFIG.MIN_COLUMN_WIDTH},a.key)})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterMattersTable.react",["BUITable.react","BUITableColumn.react","LegalMatterConstants","LegalMatterContext","LegalMatterEmptyState.react","LegalMatterMattersTableCell.react","LegalMatterMattersTable_matters.graphql","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","LegalMatterTableLayout","Promise","QuickPerformanceLogger","RelayHooks","isNullOrZero","isNullish","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=e.useRef,m=e.useState,n=h!==void 0?h:h=b("LegalMatterMattersTable_matters.graphql"),o=c("qpl")._(640681457,"73");function a(a){var e=a.maxHeight,f=a.maxWidth,g=a.tableLayout,h=a.mattersRef,p=a.onChangeColumnWidths,q=a.onFavError;a=d("RelayHooks").usePaginationFragment(n,h);var r=a.data,s=a.loadNext,t=a.hasNext,u=a.isLoadingNext;h=j(c("LegalMatterContext"));var v=h.dispatch;a=h.state;a=(h=a.sortParams[d("LegalMatterConstants").SEARCH_FILTER_TYPES.MATTERS])!=null?h:{};var w=a.sortDirection,x=a.sortFieldCode;h=m(!1);a=h[0];var y=h[1];h=m(0);var z=h[0],A=h[1];h=(h=r)!=null?h:{};h=h.matters;h=(h=h)!=null?h:{};var B=h.count;h=h.edges;var C=l(!1),D=function(){t&&!u&&s(d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE);return b("Promise").resolve([])},E=d("LegalMatterTableLayout").getVisibleColumnWidths(g);k(function(){var a=Object.values(E).reduce(function(a,b){return a+b},0);y(f>=a)},[g,f,E]);k(function(){r!=null&&C.current===!1&&(C.current=!0,c("QuickPerformanceLogger").markerEnd(o,2))});var F=Object.keys(d("LegalMatterTableLayout").getFixedVisibleColumnWidths(g)).length,G=function(a){return A(E[a])},H=function(a,b){var c;return p(babelHelpers["extends"]({},E,(c={},c[b]=Math.max(d("LegalMatterTableConstants").TABLE_CONFIG.MIN_COLUMN_WIDTH,Math.min(z+a,f*.9)),c)))},I=Object.entries(E).map(function(a){var b=a[0];a=a[1];var e=function(a){a=a.direction;return v({payload:{key:d("LegalMatterConstants").SEARCH_FILTER_TYPES.MATTERS,sortDirection:a,sortFieldCode:b},type:d("LegalMatterConstants").ACTION_TYPES.UPSERT_SORT_PARAMS})},f=x===b&&!c("isNullish")(w);return i.jsx(c("BUITableColumn.react"),{cell:function(a){a=a.item;return i.jsx(c("LegalMatterMattersTableCell.react"),{columnKey:b,columnLabel:g.columnLabels[b],height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,matter:a,onFavError:q})},header:function(){return i.jsx(c("LegalMatterTableHeaderCell.react"),{columnKey:b,label:g.columnLabels[b],isResizable:!0,onResizeStart:G,isSortable:!0,onResizeChange:H,onSort:e,sortDirection:f?w:"none"})},width:a},b)});return c("isNullOrZero")(B)?i.jsx(c("LegalMatterEmptyState.react"),{isCard:!1}):i.jsx(c("BUITable.react"),{borders:"rows",fixedColumnCount:F,hasFlexibleColumnWidths:a,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:null},items:h.map(function(a){return a.node}),loadingRowCount:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE,maxHeight:Math.max(d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT,e),onLoadMoreRows:D,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,totalRowCount:B,children:I})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterKeyDateItemHeader.react",["DateConsts","GeoBaseText.react","GeoFlexbox.react","GeoHeading.react","LegalMatterConstants","Timezone","formatDate","geoMargin","isNullOrZero","isStringNullOrEmpty","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.action,e=a.endDateTime,f=a.envTimeZoneID,g=a.isAllDay,i=a.startDateTime;a=a.subject;var j=function(){var a=c("isNullOrZero")((e.getTime()-i.getTime())/d("DateConsts").MS_PER_DAY);if(g!==!0)return c("formatDate")(i,d("LegalMatterConstants").DATE_TIME_FORMAT)+" - "+c("formatDate")(e,d("LegalMatterConstants").DATE_TIME_FORMAT)+" ("+d("Timezone").getExactName(f)+")";else return a?c("formatDate")(i,d("LegalMatterConstants").DATE_FORMAT):c("formatDate")(i,d("LegalMatterConstants").DATE_FORMAT)+" - "+c("formatDate")(e,d("LegalMatterConstants").DATE_FORMAT)};return h.jsxs(c("GeoFlexbox.react"),{justifyContent:"space-between",children:[h.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[h.jsx(c("GeoFlexbox.react"),{alignItems:"center",children:h.jsx(c("GeoHeading.react"),{level:3,children:c("isStringNullOrEmpty")(a)?d("LegalMatterConstants").LABELS.UNKNOWN:a})}),h.jsx(c("GeoBaseText.react"),{color:"headingDescription",size:"valueDescription",xstyle:c("geoMargin").top4,children:j()})]}),b]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterRightPanelKeyDates.react",["DateConsts","DateTime","GeoBaseSpacingLayout.react","GeoSection.react","GeoSpinner.react","LegalMatterConstants","LegalMatterEmptyState.react","LegalMatterKeyDateItem.react","LegalMatterKeyDatesSearchFilterOperator","LegalMatterRightPanelKeyDates_keyDates.graphql","OnVisible.react","RelayHooks","Timezone","isNullOrZero","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.startTransition,k=e.useEffect,l=10,m=h!==void 0?h:h=b("LegalMatterRightPanelKeyDates_keyDates.graphql");function a(a){a=a.matterRef;a=d("RelayHooks").usePaginationFragment(m,a);var b=a.data,e=a.loadNext,f=a.hasNext,g=a.isLoadingNext,h=a.refetch;b=(a=b)!=null?a:{};var n=b.matterID;a=b.keyDates;b=function(){if(!f||g)return;e(l)};k(function(){j(function(){h({searchParams:{filters:[{field:"DATE",operator:c("LegalMatterKeyDatesSearchFilterOperator").DATE_IS_AFTER,value:String(c("DateTime").now(d("Timezone").getEnvironmentTimezoneID()).getUnixTimestamp()/d("DateConsts").MS_PER_SEC)}]},count:l,id:n})})},[n,h]);return i.jsx(c("GeoSection.react"),{children:i.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:c("isNullOrZero")(a==null?void 0:a.count)?i.jsx(c("LegalMatterEmptyState.react"),{body:d("LegalMatterConstants").MESSAGES.NO_KEY_DATES_FOR_MATTER,isCard:!1}):i.jsxs(i.Fragment,{children:[a==null?void 0:a.edges.map(function(a){a=a.node;return i.jsx(c("LegalMatterKeyDateItem.react"),{hideAction:!0,keyDate:a,matterID:n},a==null?void 0:a.id)}),f&&i.jsx(c("OnVisible.react"),{onVisible:b,children:i.jsx(c("GeoSpinner.react"),{center:!0,size:"large"})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterFinancialImpactTable.react",["BUITable.react","BUITableColumn.react","LegalMatterConstants","LegalMatterContext","LegalMatterEmptyState.react","LegalMatterFinancialImpactConstants","LegalMatterFinancialImpactContext","LegalMatterFinancialImpactHeaderSelectCell.react","LegalMatterFinancialImpactSortableField","LegalMatterFinancialImpactTableCell.react","LegalMatterFinancialImpactTable_financialImpacts.graphql","LegalMatterMemoConstants","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","LegalMatterTableLayout","Promise","RelayHooks","enumUtils","isNullOrZero","isNullish","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useState,n=h!==void 0?h:h=b("LegalMatterFinancialImpactTable_financialImpacts.graphql");function a(a){var e=a.financialImpacts,f=a.maxHeight,g=a.maxWidth,h=a.onChangeColumnWidths;a=a.tableLayout;var o=m(0),p=o[0],q=o[1];o=m(!1);var r=o[0],s=o[1];o=d("RelayHooks").usePaginationFragment(n,e);e=o.data;var t=o.loadNext,u=o.hasNext,v=o.isLoadingNext;o=k(c("LegalMatterContext"));var w=o.dispatch;o=o.state;var x=k(c("LegalMatterFinancialImpactContext")),y=x.dispatch;o=(x=o.sortParams[d("LegalMatterConstants").SEARCH_FILTER_TYPES.FINANCE])!=null?x:{};var z=o.sortDirection,A=o.sortFieldCode;o=(x=e)!=null?x:{};e=o.financialImpacts;o=(x=e)!=null?x:{};e=o.count;var B=o.edges,C=a.columnLabels,D=d("LegalMatterTableLayout").getVisibleColumnWidths(a);x=Object.keys(D).map(function(a){return{key:a,width:D[a]}});o=function(){u&&!v&&t(d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE);return b("Promise").resolve([])};var E=j(function(a,b){b=b.item;return i.jsx(c("LegalMatterFinancialImpactTableCell.react"),{columnKey:a,columnLabel:C[a],financialImpactRef:b,height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT})},[C]);l(function(){y({payload:{financialImpacts:B.map(function(a){return(a=a.node)==null?void 0:a.id}).filter(Boolean)},type:d("LegalMatterFinancialImpactConstants").ACTION_TYPES.LOAD_FINANCIAL_IMPACTS})},[B,y]);l(function(){var a=Object.values(D).reduce(function(a,b){return a+b},0);s(g>=a)},[D,g,a]);a=Object.keys(d("LegalMatterTableLayout").getFixedVisibleColumnWidths(a)).length;var F=j(function(a){var b=function(b,a){var c;return h(babelHelpers["extends"]({},D,(c={},c[a]=p+b,c)))},e=function(a){return q(D[a])},f=function(b){b=b.direction;w({payload:{key:d("LegalMatterConstants").SEARCH_FILTER_TYPES.FINANCE,sortFieldCode:d("enumUtils").assertFromKey(a,c("LegalMatterFinancialImpactSortableField")),sortDirection:b},type:d("LegalMatterConstants").ACTION_TYPES.UPSERT_SORT_PARAMS})};f=c("isNullish")(d("enumUtils").coerceFromKey(a,c("LegalMatterFinancialImpactSortableField")))?{isSortable:!1}:{isSortable:!0,onSort:f,sortDirection:A===a&&!c("isNullish")(z)?z:"none"};return a===d("LegalMatterMemoConstants").COLUMN_CODES.SELECT?i.jsx(c("LegalMatterFinancialImpactHeaderSelectCell.react"),{}):i.jsx(c("LegalMatterTableHeaderCell.react"),babelHelpers["extends"]({columnKey:a,isResizable:!0,label:C[a],onResizeChange:b,onResizeStart:e},f))},[D,p,w,h,z,A,C]),G=Object.entries(D).map(function(a){var b=a[0];a=a[1];return i.jsx(c("BUITableColumn.react"),{cell:function(a){return E(b,a)},header:function(){return F(b)},width:a},b)});return c("isNullOrZero")(e)?i.jsx(c("LegalMatterEmptyState.react"),{}):i.jsx(c("BUITable.react"),{borders:"rows",fixedColumnCount:a,hasFlexibleColumnWidths:r,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:{labels:x.map(function(a){return C[c("nullthrows")(a.key)]})}},items:B.map(function(a){return a.node}),loadingRowCount:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE,maxHeight:Math.max(f,d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT),onLoadMoreRows:o,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,totalRowCount:e,children:G})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterOverviewReadOnlyCard.react",["GeoFlexbox.react","GeoHeading.react","GeoSection.react","GeoText.react","LegalFMReadOnlyFieldContainer.react","LegalFMTemplate.react","LegalMatterConstants","LegalMatterOverviewReadOnlyCard_matter.graphql","LegalMatterOverviewTags.react","RelayHooks","distinctArray","geoMargin","isNullOrZero","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("LegalMatterOverviewReadOnlyCard_matter.graphql");function a(a){var b;a=a.matter;a=(a=d("RelayHooks").useFragment(j,a))!=null?a:{};var e=a.partnerMatterMappings;return i.jsxs(i.Fragment,{children:[i.jsx(c("LegalFMTemplate.react"),{readOnly:!0}),!c("isNullOrZero")(e==null?void 0:(b=e.nodes)==null?void 0:b.length)&&i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsx(c("GeoHeading.react"),{level:2,xstyle:c("geoMargin").vert12,children:d("LegalMatterConstants").LABELS.TAGS_AND_EXTERNAL_FIRMS}),i.jsx(c("LegalFMReadOnlyFieldContainer.react"),{label:d("LegalMatterConstants").LABELS.TAGS,children:i.jsx(c("LegalMatterOverviewTags.react"),{tagsRef:a})}),i.jsx(c("LegalFMReadOnlyFieldContainer.react"),{label:d("LegalMatterConstants").LABELS.EXTERNAL_FIRMS,children:i.jsx(c("GeoText.react"),{children:c("distinctArray")(e==null?void 0:(b=e.nodes)==null?void 0:b.map(function(a){return a==null?void 0:(a=a.partner)==null?void 0:a.name})).sort().join(", ")})})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterDetailViewKeyDatesListView.react",["GeoBaseSpacingLayout.react","GeoSpinner.react","LegalMatterConstants","LegalMatterDetailViewKeyDatesListView_matter.graphql","LegalMatterEmptyState.react","LegalMatterKeyDateItem.react","OnVisible.react","RelayHooks","isNullOrZero","isNullish","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useEffect,l=10,m=h!==void 0?h:h=b("LegalMatterDetailViewKeyDatesListView_matter.graphql");function a(a){var b=a.matter,e=a.searchParams;a=d("RelayHooks").usePaginationFragment(m,b);b=a.data;var f=b.matterID;b=b.keyDates;var g=a.loadNext,h=a.hasNext,n=a.isLoadingNext,o=a.refetch,p=j(function(){o({searchParams:e,count:l,id:f},{fetchPolicy:"network-only"})},[f,o,e]);k(function(){p()},[p]);a=function(){if(!h||n)return;g(l)};b=(b=b)!=null?b:{};var q=b.count;b=b.edges;return c("isNullOrZero")(q)?i.jsx(c("LegalMatterEmptyState.react"),{body:d("LegalMatterConstants").MESSAGES.NO_KEY_DATES_FOR_RANGE,isCard:!1}):i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",children:[b.map(function(a){a=a.node;if(c("isNullish")(a))return null;var b=a.id;return b!=null&&f!=null?i.jsx(c("LegalMatterKeyDateItem.react"),{keyDate:a,matterID:f,width:720},b):null}),h&&i.jsx(c("OnVisible.react"),{onVisible:a,children:i.jsx(c("GeoSpinner.react"),{center:!0,size:"large"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LegalMatterAdminFXRatesTable.react",["BUITable.react","BUITableColumn.react","GeoFlexbox.react","LegalMatterAdminFXRatesModal.react","LegalMatterAdminFXRatesTableCell.react","LegalMatterAdminFXRatesTableQuery.graphql","LegalMatterAdminFXRatesTable_fxRates.graphql","LegalMatterEmptyState.react","LegalMatterFXRatesConstants","LegalMatterFXRatesContext","LegalMatterFXRatesTableHeader","LegalMatterTableConstants","LegalMatterTableHeaderCell.react","Promise","RelayHooks","enumUtils","isNullOrZero","isNullish","react","useLegalMatterAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useState,m=155,n=h!==void 0?h:h=b("LegalMatterAdminFXRatesTable_fxRates.graphql");function a(a){var e=a.fxRates;a=a.quarters;var f=d("RelayHooks").useRelayEnvironment();e=d("RelayHooks").usePaginationFragment(n,e);var g=e.data,h=e.loadNext,o=e.hasNext,p=e.isLoadingNext;e=g.fxRates;e=(g=e)!=null?g:{};g=e.count;e=e.edges;var q=l(!1),r=q[0],s=q[1];q=l(null);var t=q[0],u=q[1];q=k(c("LegalMatterFXRatesContext"));var v=q.dispatch;q=q.state;var w=q.sortedColumnKey,x=q.sortDirection;q=function(){u(null),s(!1),d("RelayHooks").fetchQuery(f,c("LegalMatterAdminFXRatesTableQuery.graphql"),{}).toPromise()};var y=function(a){u(a),s(!0)},z=function(a){o&&!p&&h(d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE);return b("Promise").resolve([])},A=c("useLegalMatterAutoSizer")({heightOffset:m,minHeight:d("LegalMatterTableConstants").TABLE_CONFIG.MIN_TABLE_HEIGHT}),B=A.maxHeight;A=A.containerRef;var C=j(function(a,b){b=b.item;return i.jsx(c("LegalMatterAdminFXRatesTableCell.react"),{columnKey:a,fxRateRef:b,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,onEditFXRate:y})},[]),D=j(function(a){var b=a.key;a=a.label;var e=function(a){a=a.direction;return v({payload:{sortedColumnKey:d("enumUtils").assertFromKey(b,c("LegalMatterFXRatesTableHeader")),sortDirection:a},type:d("LegalMatterFXRatesConstants").ACTION_TYPES.UPDATE_SORT})};e=b!=="EDIT"?{isSortable:!0,onSort:e,sortDirection:w===b&&!c("isNullish")(x)?x:"none"}:{isSortable:!1};return i.jsx(c("LegalMatterTableHeaderCell.react"),babelHelpers["extends"]({columnKey:b,isResizable:!1,label:a},e))},[v,x,w]),E=d("LegalMatterFXRatesConstants").FX_RATE_COLUMNS.map(function(a){var b=a.key,d=a.width;return i.jsx(c("BUITableColumn.react"),{cell:function(a){return C(b,a)},header:function(){return D(a)},width:d},b)});return i.jsxs(c("GeoFlexbox.react"),{containerRef:A,grow:1,children:[c("isNullOrZero")(g)?i.jsx(c("LegalMatterEmptyState.react"),{}):i.jsx(c("BUITable.react"),{borders:"rows",hasFlexibleColumnWidths:!0,headerProps:{height:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_HEADER_HEIGHT,item:{labels:d("LegalMatterFXRatesConstants").FX_RATE_COLUMNS.map(function(a){a=a.label;return a})}},items:e.map(function(a){return a.node}),loadingRowCount:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_FETCH_SIZE,maxHeight:B,onLoadMoreRows:z,rowHeight:d("LegalMatterTableConstants").TABLE_CONFIG.DEFAULT_ROW_HEIGHT,totalRowCount:g,children:E}),r&&i.jsx(c("LegalMatterAdminFXRatesModal.react"),{fxRate:t,onHide:q,quartersRef:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TDRMWorkReportTable.react",["CountryNames","GeoBaseTableCell.react","GeoBaseText.react","GeoFlexbox.react","GeoLink.react","GeoTable.react","GeoTableWidth","GeoText.react","ISOCountryCode","RelayHooks","TDRMCommonConstants","TDRMEmptyState.react","TDRMFacepile.react","TDRMJobDecision","TDRMJobStatus","TDRMJobStatusWidget.react","TDRMJobsTableHeaderLabel","TDRMRouterUtil","TDRMSearchContext","TDRMWaitingTimePill.react","TDRMWorkReportTable_results.graphql","createGeoTableDataSource","enumUtils","formatDate","geoMargin","isNullOrZero","nullthrows","react","useReactRouter","useTDRMSearchReducer","useTDRMTableSortableColumn"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.Fragment,k=e.useContext,l=e.useMemo,m={dropShadow:{boxShadow:"x1y9yrg1",marginTop:"x1xmf6yo",$$css:!0},scrollable:{maxHeight:"xmz0i5r",overflowX:"xw2csxc",overflowY:"x1odjw0f",$$css:!0}},n=10,o=h!==void 0?h:h=b("TDRMWorkReportTable_results.graphql");function a(a){var b;a=a.queryResultsRef;var e=d("useReactRouter").useRouter(),f=e.history;e=d("RelayHooks").usePaginationFragment(o,a);a=e.data.results;var g=e.hasNext,h=e.isLoadingNext;e=e.loadNext;var p=k(c("TDRMSearchContext")),q=p.dispatch;p=p.state;a=(a=a)!=null?a:{};var r=a.jobs;a=a.requests;var s=((b=r==null?void 0:r.edges)!=null?b:[]).map(function(a){a=a.node;return a}).filter(Boolean),t=c("useTDRMTableSortableColumn")({dispatch:q,searchType:d("useTDRMSearchReducer").TDRMSearchType.WORK_REPORT,state:p});b=l(function(){return c("createGeoTableDataSource")(s,{getStableUniqueID:function(a){a=a.id;return c("nullthrows")(a)}})},[s]);q=l(function(){return[{cell:function(a){a=a.item;var b=a.id,e=a.request;return i.jsx(c("GeoBaseTableCell.react"),{children:i.jsx(c("GeoLink.react"),{onClick:function(){return d("TDRMRouterUtil").routeToJobDetailPage(f,c("nullthrows")(e==null?void 0:e.id),c("nullthrows")(b),null)},children:b})})},header:c("TDRMJobsTableHeaderLabel").JOB_ID,key:"JOB_ID",width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item.request;a=a==null?void 0:a.countryCode;return a!=null?c("CountryNames")[d("enumUtils").assert(a,c("ISOCountryCode"))]:a},header:c("TDRMJobsTableHeaderLabel").COUNTRY,key:"COUNTRY",width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item.metaApprovalDate;return c("formatDate")(a,d("TDRMCommonConstants").DATE_FORMAT)},features:{sortable:t.singleKey("META_APPROVAL_DATE")},header:c("TDRMJobsTableHeaderLabel").META_APPROVAL_DATE,key:"META_APPROVAL_DATE",width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item.reviewers;return(a==null?void 0:a.nodes)!=null?i.jsx(c("GeoBaseTableCell.react"),{children:i.jsx(c("TDRMFacepile.react"),{profiles:a.nodes.map(function(a){var b=a.firstName;a=a.lastName;return{firstName:(b=b)!=null?b:"",lastName:(b=a)!=null?b:""}})})}):null},header:c("TDRMJobsTableHeaderLabel").REVIEWERS,key:"REVIEWERS",width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item.notes;return i.jsx(c("GeoText.react"),{display:"truncate",children:(a=a)!=null?a:""})},header:c("TDRMJobsTableHeaderLabel").NOTES,key:"NOTES",width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item;var b=a.decision;a=a.status;return i.jsx(c("TDRMJobStatusWidget.react"),{jobDecision:d("enumUtils").coerceKey(b,c("TDRMJobDecision")),jobStatus:d("enumUtils").coerceFromKey(a,c("TDRMJobStatus")),type:"status-indicator"})},header:c("TDRMJobsTableHeaderLabel").DECISION,key:"DECISION",width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item.request;return"C#"+((a=a==null?void 0:a.caseNumber)!=null?a:"")},header:c("TDRMJobsTableHeaderLabel").REQUEST_ID,key:"REQUEST_ID",width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item;var b=a.creationTime;a=a.metaApprovalDate;return i.jsx(c("TDRMWaitingTimePill.react"),{endTimeInSecond:a,startTimeInSecond:b})},header:{label:c("TDRMJobsTableHeaderLabel").TOTAL_TIME,showTooltipInfoIcon:!0,tooltip:d("TDRMCommonConstants").TOOLTIPS.JOB_TOTAL_TIME},key:"TOTAL_TIME",width:d("GeoTableWidth").proportional(1)}]},[f,t]);return c("isNullOrZero")(s.length)?i.jsx(c("TDRMEmptyState.react"),{body:d("TDRMCommonConstants").MESSAGES.TABLES_EMPTY_STATE_MESSAGE}):i.jsxs(j,{children:[i.jsx(c("GeoTable.react"),{columns:q,dataSource:b,label:d("TDRMCommonConstants").COMMON_LABELS.WORK_REPORT_DESCRIPTION,pagination:{hasNext:g,isLoadingNext:h,loadNext:e,pageSize:n},xstyle:m.scrollable}),i.jsx(c("GeoFlexbox.react"),{shrink:0,xstyle:m.dropShadow,children:i.jsx(c("GeoBaseText.react"),{color:"heading",size:"header4",xstyle:c("geoMargin").all16,children:d("TDRMCommonConstants").MESSAGES.WORK_REPORT_TABLE_FOOTER_SUMMARY((p=r==null?void 0:r.count)!=null?p:0,(q=a==null?void 0:a.count)!=null?q:0)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TDRMJobsDefaultTable.react",["fbt","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoHStack.react","GeoTable.react","RelayHooks","TDRMCommonConstants","TDRMEmptyState.react","TDRMJobBulkAssignModal.react","TDRMJobTableAssignedReviewerColumn","TDRMJobTableContentTypeColumn","TDRMJobTableCountryColumn","TDRMJobTableJobIDColumn","TDRMJobTableStageColumn","TDRMJobTableStatusColumn","TDRMJobTableViolationColumn","TDRMJobsDefaultTable_jobs.graphql","TDRMSearchContext","createGeoTableDataSource","isNullOrZero","nullthrows","react","useBoolean","useGeoTableRowSelection","useGeoTableRowSelectionState","useTDRMTableSortableColumn"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useMemo,n=e.useState,o={dropShadow:{boxShadow:"x1y9yrg1",marginTop:"x1xmf6yo",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},scrollable:{maxHeight:"xmz0i5r",overflowX:"xw2csxc",overflowY:"x1odjw0f",$$css:!0}},p=10,q=i!==void 0?i:i=b("TDRMJobsDefaultTable_jobs.graphql");function a(a){var b,e=a.exportToCSVButton,f=a.jobsRef;a=a.searchType;var g=l(c("TDRMSearchContext")),i=g.dispatch;g=g.state;f=d("RelayHooks").usePaginationFragment(q,f);var r=f.data,s=f.hasNext,t=f.isLoadingNext;f=f.loadNext;var u=((b=r==null?void 0:(b=r.jobs)==null?void 0:b.edges)!=null?b:[]).map(function(a){a=a.node;return a}).filter(Boolean);b=n(new Set());var v=b[0];b=b[1];var w=c("useBoolean")(!1),x=w.setFalse,y=w.setTrue;w=w.value;var z=m(function(){return c("createGeoTableDataSource")(u,{getStableUniqueID:function(a){a=a.id;return c("nullthrows")(a)}})},[u]),A=k(function(a){a=a.id;return c("nullthrows")(a)},[]),B=k(function(a){a.isAllSelected;return h._("u5168u9009")},[]),C=k(function(a){a.isSelected;a=a.item;return h._("u9009u62e9{name}",[h._param("name",a.id)])},[]);b=c("useGeoTableRowSelectionState")({dataSource:z,getIDForItem:A,selectedItemIDs:v,setSelectedItemIDs:b});var D=b.getAllSelected,E=b.onSelectAll;b=b.onSelectItem;D=c("useGeoTableRowSelection")({getAllSelected:D,getIDForItem:A,getSelectAllLabel:B,getSelectLabel:C,onSelectAll:E,onSelectItem:b,selectedItemIDs:v});var F=c("useTDRMTableSortableColumn")({dispatch:i,searchType:a,state:g});A=m(function(){return[d("TDRMJobTableJobIDColumn").getJobIDColumnConfig({}),d("TDRMJobTableCountryColumn").getCountryColumnConfig(),babelHelpers["extends"]({},d("TDRMJobTableStatusColumn").getStatusColumnConfig(),{features:{sortable:F.singleKey("STATUS")}}),d("TDRMJobTableStageColumn").getStageColumnConfig(),d("TDRMJobTableAssignedReviewerColumn").getAssignedReviewerColumnConfig(),d("TDRMJobTableContentTypeColumn").getContentTypeColumnConfig(),d("TDRMJobTableViolationColumn").getViolationColumnConfig()]},[F]);B=m(function(){var a;return((a=u)!=null?a:[]).filter(function(a){a=a.id;return a!=null&&v.has(a)})},[u,v]);return c("isNullOrZero")(u.length)?j.jsx(c("TDRMEmptyState.react"),{body:d("TDRMCommonConstants").MESSAGES.TABLES_EMPTY_STATE_MESSAGE}):j.jsxs(j.Fragment,{children:[j.jsx(c("GeoTable.react"),{columns:A,dataSource:z,label:h._("All Jobs Table"),pagination:{hasNext:s,isLoadingNext:t,loadNext:f,pageSize:p},plugins:{selection:D},xstyle:o.scrollable}),j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",shrink:0,xstyle:o.dropShadow,children:[j.jsx(c("GeoBaseText.react"),{color:"heading",size:"header4",children:d("TDRMCommonConstants").COMMON_LABELS.DEFAULT_TABLE_FOOTER_LABEL(v.size,"jobs",(E=r==null?void 0:(C=r.jobs)==null?void 0:C.count)!=null?E:0)}),j.jsxs(c("GeoHStack.react"),{justifyContent:"end",children:[j.jsx(c("GeoButton.react"),{isDisabled:v.size===0,label:d("TDRMCommonConstants").COMMON_LABELS.ASSIGN_JOBS,variant:"primary",onClick:y}),e]}),j.jsx(c("TDRMJobBulkAssignModal.react"),{isShown:w,selectedJobRefs:B,onHide:x})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TDRMSettingsMemberTable.react",["ix","GeoButton.react","GeoCheckboxInput.react","GeoFlexbox.react","GeoTable.react","GeoTableWidth","GeoText.react","GeoVStack.react","RelayHooks","TDRMAddMemberModal.react","TDRMAppContext","TDRMCommonConstants","TDRMEmptyState.react","TDRMManageFirmMemberMutation","TDRMMemberRole","TDRMMemberRoleLabel","TDRMProfile.react","TDRMSettingsMemberTableQuery.graphql","createGeoTableDataSource","enumUtils","fbicon","isNullOrZero","nullthrows","objectValues","react","useBoolean","useGeoToaster","useTDRMToast"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useMemo,o=e.useState,p={dropShadow:{boxShadow:"x1y9yrg1",marginTop:"x1xmf6yo",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},scrollable:{maxHeight:"xmz0i5r",overflowX:"xw2csxc",overflowY:"x1odjw0f",$$css:!0}},q=i!==void 0?i:i=b("TDRMSettingsMemberTableQuery.graphql");function a(a){a=a.preloadQueryRef;a=d("RelayHooks").usePreloadedQuery(q,a);var b=a.canEditFirm;a=a.firm;var e=(b==null?void 0:b.canCurrentViewerEditFirm)===!0;b=l(c("TDRMAppContext"));var f=b.isMaintainer;a=(b=a)!=null?b:{};var g=a.id,i=a.members,r=n(function(){var a;return(a=i==null?void 0:i.nodes)!=null?a:[]},[i==null?void 0:i.nodes]);b=o({});var s=b[0],t=b[1];a=o({});var u=a[0],v=a[1];m(function(){var a={};r.map(function(b){var c=b.member;b=b.roles;a[(c=c==null?void 0:c.id)!=null?c:""]=(c=b)!=null?c:[]});t(a);v({})},[r]);var w=n(function(){return f||e},[e,f]),x=k(function(a,b){if(Object.keys(u).includes(a)){var c;return((c=u[a])!=null?c:[]).includes(b)}return((c=s[a])!=null?c:[]).includes(b)||((c=u[a])!=null?c:[]).includes(b)},[u,s]),y=k(function(a,b,c){var d,e=[].concat((d=u[b])!=null?d:s[b]);a?e.push(c):e=e.filter(function(a){return a!==c});a=(d=s[b])!=null?d:[];a.length===e.length&&a.every(function(a){return e.includes(a)})?delete u[b]:u[b]=e;v(babelHelpers["extends"]({},u))},[u,s]);b=c("useGeoToaster")();var z=b.clear;a=c("useTDRMToast")();var A=a.addErrorToast,B=a.addIndeterminateToast,C=a.addSuccessToast;b=d("RelayHooks").useMutation(d("TDRMManageFirmMemberMutation").manageFirmMemberMutation);var D=b[0];a=b[1];b=k(function(){D({onCompleted:function(a){var b;a=a.xep_tdrm_manage_firm_members;b=(b=a==null?void 0:a.updated_firm_member)!=null?b:[];a=(a=a==null?void 0:a.failed_records)!=null?a:[];z();v({});a.length>0&&A(a.length+" members failed to saved.");C(d("TDRMCommonConstants").COMMON_LABELS.SAVED_SUCCESSFULLY,b.length+" members changed.")},onError:function(a){z(),A(a.message)},variables:{input:{firm_members:Object.keys(u).map(function(a){return{firm_id:c("nullthrows")(g),member_id:a,member_roles:u[a]}})}}}),B(d("TDRMCommonConstants").MESSAGES.SAVING_PERMISSIONS)},[A,B,C,z,u,g,D]);var E=n(function(){return function(a){var b=a.role;return{cell:function(a){var e=a.item.member;return j.jsx(c("GeoCheckboxInput.react"),{isDisabled:!w,isLabelHidden:!0,label:d("enumUtils").assertFromKey(b,c("TDRMMemberRoleLabel")),value:x((a=e==null?void 0:e.id)!=null?a:"",b),onChange:function(a){return y(a,(a=e==null?void 0:e.id)!=null?a:"",b)}})},header:d("enumUtils").assertFromKey(b,c("TDRMMemberRoleLabel")),key:b,width:d("GeoTableWidth").proportional(1)}}},[y,w,x]),F=n(function(){return[{cell:function(a){var b;a=a.item.member;return j.jsx(c("TDRMProfile.react"),{firstName:(b=a==null?void 0:a.firstName)!=null?b:"",lastName:(b=a==null?void 0:a.lastName)!=null?b:""})},header:d("TDRMCommonConstants").COMMON_LABELS.NAME,key:d("TDRMCommonConstants").COMMON_LABELS.NAME,width:d("GeoTableWidth").proportional(1)},{cell:function(a){a=a.item.member;return j.jsx(c("GeoText.react"),{children:(a=a==null?void 0:a.email)!=null?a:""})},header:d("TDRMCommonConstants").COMMON_LABELS.EMAIL,key:d("TDRMCommonConstants").COMMON_LABELS.EMAIL,width:d("GeoTableWidth").proportional(1)}].concat(c("objectValues")(c("TDRMMemberRole")).map(function(a){return E({role:a})}))},[E]),G=c("useBoolean")(!1),H=G.setFalse,I=G.setTrue;G=G.value;var J=n(function(){return c("createGeoTableDataSource")(r,{getStableUniqueID:function(a){return a.id}})},[r]);return g==null||c("isNullOrZero")(r.length)?j.jsx(c("TDRMEmptyState.react"),{body:d("TDRMCommonConstants").MESSAGES.TABLES_EMPTY_STATE_MESSAGE}):j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("GeoTable.react"),{columns:F,dataSource:J,label:d("TDRMCommonConstants").COMMON_LABELS.WORK_REPORT_DESCRIPTION,xstyle:p.scrollable}),j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",shrink:0,xstyle:p.dropShadow,children:[f&&j.jsxs(j.Fragment,{children:[w===!0?j.jsx(c("GeoButton.react"),{icon:d("fbicon")._(h("483768"),16),label:d("TDRMCommonConstants").COMMON_LABELS.ASSIGN_USER_TO_FIRM,variant:"default",onClick:I}):j.jsx("div",{}),j.jsx(c("TDRMAddMemberModal.react"),{firmID:g,isShown:G,onHide:H})]}),j.jsx(c("GeoButton.react"),{isDisabled:Object.keys(u).length===0||a,isLoading:a,label:d("TDRMCommonConstants").COMMON_LABELS.SAVE_PERMISSIONS,variant:"primary",onClick:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TDRMSettingsProfileTable.react",["ix","CountryNames","GeoGrid.react","GeoIcon.react","GeoList.react","GeoListItem.react","GeoMediaItem.react","GeoTable.react","GeoTableContentCell.react","GeoTableWidth","GeoVStack.react","ISOCountryCode","RelayHooks","TDRMCommonConstants","TDRMEmptyState.react","TDRMSettingsProfileTableQuery.graphql","createGeoTableDataSource","fbicon","isNullOrZero","react","useGeoTableCustomRowRendering"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useMemo,m={marginTop42:{marginTop:"x1ajfak3",$$css:!0},scrollable:{maxHeight:"xmz0i5r",overflowX:"xw2csxc",overflowY:"x1odjw0f",$$css:!0}},n=i!==void 0?i:i=b("TDRMSettingsProfileTableQuery.graphql"),o=function(){return j.jsx(c("GeoTableContentCell.react"),{media:j.jsx(c("GeoMediaItem.react"),{media:j.jsx(c("GeoIcon.react"),{color:"info",icon:d("fbicon")._(h("477819"),16)})})})},p=function(a){return j.jsx(c("GeoList.react"),{children:a.hasRoles.map(function(a,b){return j.jsx(c("GeoListItem.react"),{label:"",media:j.jsx(c("GeoMediaItem.react"),{fit:"none",media:a?j.jsx(o,{}):j.jsx("span",{})})},b)})})};function a(){var a=d("RelayHooks").useLazyLoadQuery(n,{}),b=a.firmMember,e=l(function(){var a;return(a=b==null?void 0:b.nodes)!=null?a:[]},[b==null?void 0:b.nodes]);a=l(function(){return e.reduce(function(a,b){var d,e=(b==null?void 0:b.roles)||[];d=b==null?void 0:(d=b.firm)==null?void 0:d.countryCode;if(d==null)return a;b={adminPermission:e.includes("ADMIN"),name:(b=b==null?void 0:(b=b.firm)==null?void 0:b.name)!=null?b:"",reviewerPermission:e.includes("REVIEWER"),triagerPermission:e.includes("TRIAGER"),viewerPermission:e.includes("VIEWER")};e=c("CountryNames")[c("ISOCountryCode")[d]];a.has(e)||a.set(e,{countryCode:d,countryName:c("CountryNames")[c("ISOCountryCode")[d]],firms:[]});(d=a.get(e))==null?void 0:d.firms.push(b);return a},new Map())},[e]);var f=Array.from(a,function(a){a[0];a=a[1];return a});a=c("useGeoTableCustomRowRendering")({render:k(function(a){var b=a.item;return{Admin:function(){return j.jsx(p,{hasRoles:b.firms.map(function(a){a=a.adminPermission;return a})})},Country:function(){return j.jsx(c("GeoList.react"),{children:b.firms.map(function(a,d){return j.jsx(c("GeoListItem.react"),{label:d===0?b.countryName:"",media:d===0?null:j.jsx(c("GeoMediaItem.react"),{fit:"none",media:j.jsx("span",{})})},d)})})},Firm:function(){return j.jsx(c("GeoGrid.react"),{gap:22,children:b.firms.map(function(a,b){return j.jsx(c("GeoListItem.react"),{label:a.name},b)})})},Reviewer:function(){return j.jsx(p,{hasRoles:b.firms.map(function(a){a=a.reviewerPermission;return a})})},Triager:function(){return j.jsx(p,{hasRoles:b.firms.map(function(a){a=a.triagerPermission;return a})})},Viewer:function(){return j.jsx(p,{hasRoles:b.firms.map(function(a){a=a.viewerPermission;return a})})}}},[])});var g=l(function(){return[{header:"Country",key:"Country",width:d("GeoTableWidth").proportional(1,{minWidth:100})},{header:"Firm",key:"Firm",width:d("GeoTableWidth").proportional(2,{minWidth:200})},{header:"Admin",key:"Admin",width:d("GeoTableWidth").proportional(1)},{header:"Reviewer",key:"Reviewer",width:d("GeoTableWidth").proportional(1)},{header:"Triager",key:"Triager",width:d("GeoTableWidth").proportional(1)},{header:"Viewer",key:"Viewer",width:d("GeoTableWidth").proportional(1)}]},[]),h=l(function(){return c("createGeoTableDataSource")(f,{getStableUniqueID:function(a){return a.countryName}})},[f]);return c("isNullOrZero")(f.length)?j.jsx(c("TDRMEmptyState.react"),{body:d("TDRMCommonConstants").MESSAGES.TABLES_EMPTY_STATE_MESSAGE}):j.jsx(c("GeoVStack.react"),{xstyle:m.marginTop42,children:j.jsx(c("GeoTable.react"),{columns:g,dataSource:h,label:d("TDRMCommonConstants").COMMON_LABELS.WORK_REPORT_DESCRIPTION,plugins:{customRowRendering:a},xstyle:m.scrollable})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TDRMDashboardRequestsTable.react",["fbt","GeoBaseText.react","GeoButton.react","GeoFlexbox.react","GeoTable.react","RelayHooks","TDRMCommonConstants","TDRMDashboardRequestsTable_jobs.graphql","TDRMEmptyState.react","TDRMRequestBulkAssignModal.react","TDRMRequestTableCountryColumn","TDRMRequestTableDisplayStatusColumn","TDRMRequestTableJobsCountColumn","TDRMRequestTableLocationColumn","TDRMRequestTablePriorityColumn","TDRMRequestTableRegulatorColumn","TDRMRequestTableRequestIDColumn","TDRMRequestTableReviewersColumn","TDRMRequestTableTotalTimeColumn","TDRMSearchContext","createGeoTableDataSource","isNullOrZero","nullthrows","react","useBoolean","useGeoTableRowSelection","useGeoTableRowSelectionState","useTDRMSearchReducer","useTDRMTableSortableColumn"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useMemo,n=e.useState,o={dropShadow:{boxShadow:"x1y9yrg1",marginTop:"x1xmf6yo",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},scrollable:{maxHeight:"xmz0i5r",overflowX:"xw2csxc",overflowY:"x1odjw0f",$$css:!0}},p=10,q=i!==void 0?i:i=b("TDRMDashboardRequestsTable_jobs.graphql");function a(a){a=a.requestsRef;var b=l(c("TDRMSearchContext")),e=b.dispatch;b=b.state;a=d("RelayHooks").usePaginationFragment(q,a);var f=a.data.results,g=a.hasNext,i=a.isLoadingNext;a=a.loadNext;f=(f=f)!=null?f:{};var r=f.count;f=f.edges;var s=((f=f)!=null?f:[]).map(function(a){a=a.node;return a}).filter(Boolean);f=n(new Set());var t=f[0];f=f[1];var u=c("useBoolean")(!1),v=u.setFalse,w=u.setTrue;u=u.value;var x=m(function(){return c("createGeoTableDataSource")(s,{getStableUniqueID:function(a){a=a.id;return c("nullthrows")(a)}})},[s]),y=k(function(a){a=a.id;return c("nullthrows")(a)},[]),z=k(function(a){a.isAllSelected;return d("TDRMCommonConstants").COMMON_LABELS.SELECT_ALL},[]),A=k(function(a){a.isSelected;a=a.item;return d("TDRMCommonConstants").COMMON_LABELS.SELECT_ROW(a.id)},[]);f=c("useGeoTableRowSelectionState")({dataSource:x,getIDForItem:y,selectedItemIDs:t,setSelectedItemIDs:f});var B=f.getAllSelected,C=f.onSelectAll;f=f.onSelectItem;B=c("useGeoTableRowSelection")({getAllSelected:B,getIDForItem:y,getSelectAllLabel:z,getSelectLabel:A,onSelectAll:C,onSelectItem:f,selectedItemIDs:t});var D=c("useTDRMTableSortableColumn")({dispatch:e,searchType:d("useTDRMSearchReducer").TDRMSearchType.DASHBOARD_REQUESTS,state:b});y=m(function(){return[d("TDRMRequestTableRequestIDColumn").getRequestIDColumnConfig({}),d("TDRMRequestTableRegulatorColumn").getRegulatorColumnConfig(),d("TDRMRequestTableCountryColumn").getCountryColumnConfig(),d("TDRMRequestTableDisplayStatusColumn").getDisplayStatusColumnConfig(),d("TDRMRequestTableLocationColumn").getLocationColumnConfig(),d("TDRMRequestTableReviewersColumn").getReviewersColumnConfig(),babelHelpers["extends"]({},d("TDRMRequestTableJobsCountColumn").getJobsCountColumnConfig(),{features:{sortable:D.singleKey("NUMBER_OF_JOBS")}}),babelHelpers["extends"]({},d("TDRMRequestTablePriorityColumn").getPriorityColumnConfig(),{features:{sortable:D.singleKey("PRIORITY")}}),babelHelpers["extends"]({},d("TDRMRequestTableTotalTimeColumn").getTotalTimeColumnConfig(),{features:{sortable:D.singleKey("TOTAL_TIME")}})]},[D]);z=m(function(){var a;return((a=s)!=null?a:[]).filter(function(a){a=a.id;return a!=null&&t.has(a)})},[s,t]);return c("isNullOrZero")(r)?j.jsx(c("TDRMEmptyState.react"),{body:d("TDRMCommonConstants").MESSAGES.TABLES_EMPTY_STATE_MESSAGE}):j.jsxs(j.Fragment,{children:[j.jsx(c("GeoTable.react"),{columns:y,dataSource:x,label:h._("All requests Table"),pagination:{hasNext:g,isLoadingNext:i,loadNext:a,pageSize:p},plugins:{selection:B},xstyle:o.scrollable}),j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",shrink:0,xstyle:o.dropShadow,children:[j.jsx(c("GeoBaseText.react"),{color:"heading",size:"header4",children:d("TDRMCommonConstants").COMMON_LABELS.DEFAULT_TABLE_FOOTER_LABEL(t.size,"requests",r)}),j.jsx(c("GeoButton.react"),{isDisabled:t.size===0,label:d("TDRMCommonConstants").COMMON_LABELS.ASSIGN_REQUESTS,variant:"primary",onClick:w}),j.jsx(c("TDRMRequestBulkAssignModal.react"),{isShown:u,selectedRequestRefs:z,onHide:v})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TDRMContentRenderPhotoMediaWidget.react",["ClickableArea.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","Image.react","TDRMContentCopyConstants","isNullOrZero","react","useBoolean"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.originalHeight,e=a.originalWidth,f=a.src,g=a.thumbnailHeight;a=a.thumbnailWidth;var i=c("useBoolean")(!1),j=i.setFalse,k=i.setTrue;i=i.value;var l=function(a){a.preventDefault(),k()};return h.jsxs(h.Fragment,{children:[h.jsx(c("ClickableArea.react"),{onClick:k,children:h.jsx(c("Image.react"),{alt:d("TDRMContentCopyConstants").LABELS.VIDEO_OR_IMAGE_EXPIRED,className:"x1ypdohk",height:g,src:f,width:a,onContextMenu:l})}),h.jsx(c("GeoModal.react"),{footer:h.jsx(c("GeoModalFooter.react"),{primaryButton:h.jsx(c("GeoCancelButton.react"),{})}),header:h.jsx(c("GeoModalHeader.react"),{heading:d("TDRMContentCopyConstants").LABELS.ORIGINAL_IMAGE}),isShown:i,width:(c("isNullOrZero")(e)?a:e)+2*d("TDRMContentCopyConstants").MODAL_PADDING_OFFSET,onHide:j,children:h.jsx(c("GeoSection.react"),{children:h.jsx(c("Image.react"),{alt:d("TDRMContentCopyConstants").LABELS.VIDEO_OR_IMAGE_EXPIRED,height:c("isNullOrZero")(b)?g:b,src:f,width:c("isNullOrZero")(e)?a:e,onContextMenu:l})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
TDRMContentRenderStoryWidgetContainer.react",["GeoHStack.react","GeoHeading.react","GeoSelector.react","GeoSelectorItem.react","GeoVStack.react","RelayHooks","TDRMCommonConstants","TDRMContentRenderStoryWidget.react","TDRMContentRenderStoryWidgetContainer_reviewContent.graphql","TDRMCopyURLButton.react","TDRMUpdateContentViolationTypeMutation","geoMargin","isNullOrZero","react","uniqueID","useTDRMToast"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useState,k={container:{borderTopColor:"x2gebdf",borderEndColor:"x1ni984p",borderBottomColor:"xtuaca0",borderStartColor:"xhjwskp",borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"xvxx97b",borderEndWidth:"x1k52te8",borderBottomWidth:"x1es37l9",borderStartWidth:"xj8yzlp",boxSizing:"x9f619",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",width:"xewp6mh",$$css:!0},selector:{maxWidth:"x16em4ew",$$css:!0}},l=h!==void 0?h:h=b("TDRMContentRenderStoryWidgetContainer_reviewContent.graphql");function a(a){var b,e=a.index;a=a.reviewContentRef;a=d("RelayHooks").useFragment(l,a);b=(b=a)!=null?b:{};var f=b.assetURL,g=b.job,h=b.reviewContentID,m=b.violationType;b=g.canEdit;g=g.violationTypeOptions;var n=j(m),o=n[0],p=n[1];n=c("useTDRMToast")();var q=n.addErrorToast,r=n.addSuccessToast;n=d("RelayHooks").useMutation(d("TDRMUpdateContentViolationTypeMutation").updateContentViolationTypeMutation);var s=n[0];n=n[1];var t=function(a){if(a===m)return;s({onCompleted:function(){r(d("TDRMCommonConstants").COMMON_LABELS.SAVED_SUCCESSFULLY),p(a)},onError:function(a){q(a.message)},variables:{input:{data:{content_id:h,violation_type:a}}}})};return i.jsxs(c("GeoVStack.react"),{alignItems:"stretch",shrink:0,xstyle:[k.container,c("geoMargin").vert12],children:[i.jsxs(c("GeoHStack.react"),{alignItems:"center",justifyContent:"space-between",shrink:0,children:[i.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[i.jsx(c("GeoHeading.react"),{level:3,children:"#"+(e+1)}),!c("isNullOrZero")(g==null?void 0:g.length)&&i.jsxs(c("GeoSelector.react"),{isDisabled:!b||n,isLabelHidden:!0,isLoading:n,label:d("TDRMCommonConstants").COMMON_LABELS.VIOLATION_TYPE,placeholder:d("TDRMCommonConstants").COMMON_LABELS.SELECT_VIOLATION_TYPE,value:o,xstyle:k.selector,onChange:t,children:[(g==null?void 0:g.length)>0?i.jsx(c("GeoSelectorItem.react"),{label:d("TDRMCommonConstants").COMMON_LABELS.SELECT_VIOLATION_TYPE,value:null},c("uniqueID")()):null,((e=g)!=null?e:[]).map(function(a){var b=a.label;a=a.violationType;return i.jsx(c("GeoSelectorItem.react"),{label:(b=b)!=null?b:"",value:a},c("uniqueID")())})]})]}),f!=null&&i.jsx(c("TDRMCopyURLButton.react"),{url:f})]}),i.jsx(c("TDRMContentRenderStoryWidget.react"),{reviewContentRef:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
XSourcingEntityCommentThreadInitUtil",["RelayHooks","XSourcingEntityCommentThreadInitUtil_epmCollabContext.graphql","XSourcingEntityCommentThreadInitUtil_eventBidReview.graphql","gkx","isNullOrZero","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("XSourcingEntityCommentThreadInitUtil_epmCollabContext.graphql"),k=i!==void 0?i:i=b("XSourcingEntityCommentThreadInitUtil_eventBidReview.graphql");function a(a){var b;a=d("RelayHooks").useFragment(k,a);b=(b=a)!=null?b:{};var e=b.eventResponseID,f=b.event;b=b.worksheets;var g=[];if(c("gkx")("1478")){((f=f==null?void 0:(f=f.questionCategories)==null?void 0:f.nodes)!=null?f:[]).forEach(function(a){var b=c("nullthrows")(a.eventResponseEntity);if(l(b)){g.push({hasViewerReadExtern:m(b),id:b.id,isEmpty:!1,threadTypes:["EPM_SOURCING_BID_REVIEW_QUESTION_CATEGORY"],title:(b=a.name)!=null?b:""})}((a=(b=a.questions)==null?void 0:b.nodes)!=null?a:[]).forEach(function(a){var b=c("nullthrows")(a.eventResponseEntity);if(l(b)){g.push({hasViewerReadExtern:m(b),id:b.id,isEmpty:!1,threadTypes:["EPM_SOURCING_BID_REVIEW_QUESTION"],title:(b=a.name)!=null?b:""})}})})}var h=[];((f=b)!=null?f:[]).forEach(function(a){var b=c("nullthrows")(a==null?void 0:a.title);l(a)&&h.push({hasViewerReadExtern:m(a),id:c("nullthrows")(a==null?void 0:a.id),isEmpty:!1,threadTypes:["EPM_SOURCING_BID_REVIEW_WORKSHEET"],title:b});((a=a==null?void 0:a.worksheetDetails)!=null?a:[]).filter(function(a){return l(a)}).forEach(function(a){h.push({hasViewerReadExtern:m(a),id:c("nullthrows")(a==null?void 0:a.id),isEmpty:!1,threadTypes:["EPM_SOURCING_BID_REVIEW_WORKSHEET_LINE"],title:b+", line "+((a=a==null?void 0:a.rowNumber)!=null?a:"no row number")})})});return[{hasViewerReadExtern:a!=null&&l(a)&&m(a),id:(b=e)!=null?b:"",title:c("gkx")("1478")?"Questions & worksheets":"Worksheets",threadTypes:["EPM_SOURCING_SECTION_BID_REVIEW_WORKSHEET"]}].concat(g,h)}function l(a){return!c("isNullOrZero")((a=n(a))==null?void 0:(a=a.epmBuyAtActivityThread)==null?void 0:(a=a.epmActivityThreads)==null?void 0:a.count)}function m(a){return(a=(a=n(a))==null?void 0:(a=a.epmBuyAtActivityThread)==null?void 0:(a=a.epmActivityThreads)==null?void 0:(a=a.nodes)==null?void 0:a[0].hasViewerRead)!=null?a:!0}function n(a){return d("RelayHooks").readInlineData(j,a)}g.useXSourcingBidReviewComments=a;g.hasEPMActivity=l;g.hasViewerReadEPMThread=m;g.unmaskEpmCollabContext=n}),98);
-----
Misinfo3PFCTimestamp.react",["GeoBaseText.react","GeoTooltip.react","MisinfoFormatUtils","isNullOrZero","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.textColor;a=a.timestamp;if(c("isNullOrZero")(a))return null;var e=d("MisinfoFormatUtils").timeSince(a);e=h.jsx("abbr",{"data-shorten":!0,"data-utime":a,children:e});b=h.jsx(c("GeoBaseText.react"),{color:(b=b)!=null?b:"value",size:"value",children:e});return h.jsx(c("GeoTooltip.react"),{content:d("MisinfoFormatUtils").timestamp(a),children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OxsightsSegmentManagerSelectedSegmentsInfo.react",["BUITable.react","BUITableColumn.react","BUITableGenericCell.react","BUITableTextCell.react","CancelablePromise","GeoBaseText.react","GeoSpinner.react","LoadObject","OxsightsErrorFbts","OxsightsMISegmentUtils","OxsightsMetricsServiceUtils","OxsightsSegmentFbts","Promise","isNullOrZero","loadObjectComponent","mapMap","react","useDebouncedValue"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useEffect,j=e.useRef,k=e.useState,l=30,m=1/4,n=1/4,o=1/2,p=500,q="u2014",r={item:[d("OxsightsSegmentFbts").SEGMENT_NAME,d("OxsightsSegmentFbts").SEGMENT_SIZE,d("OxsightsSegmentFbts").FILTERS],height:l},s=function(a){return h.jsx(c("BUITableGenericCell.react"),{content:h.jsx(c("GeoBaseText.react"),{size:"value",color:"placeholder",children:a.item[a.columnIndex]}),align:"left",height:l})},t=function(a){return h.jsx(c("BUITableTextCell.react"),{content:a.item.segmentName,height:a.rowHeight})},u=function(a){return h.jsx(c("BUITableTextCell.react"),{content:a.item.segmentSize,height:a.rowHeight})},v=function(a){return h.jsx(c("BUITableTextCell.react"),{content:a.item.filters,height:a.rowHeight})},w=function(a,b){b=d("OxsightsMISegmentUtils").getFiltersData(b,a);var e=[];c("mapMap")(b,function(a,b){a.length>0&&e.push(a.length+" "+d("OxsightsSegmentFbts").groups[b].toString())});return e.join(", ")},x=c("loadObjectComponent")({loading:function(){return h.jsx(c("GeoSpinner.react"),{center:!0})},error:function(){return h.jsx(c("GeoBaseText.react"),{size:"value",color:"value",children:d("OxsightsErrorFbts").DEFAULT_ERROR_TITLE})},loaded:function(a){return h.jsxs(c("BUITable.react"),{headerProps:r,items:a,borders:"none",rowHeight:l,hasFlexibleColumnWidths:!0,children:[h.jsx(c("BUITableColumn.react"),{cell:t,width:m,header:s}),h.jsx(c("BUITableColumn.react"),{cell:u,width:n,header:s}),h.jsx(c("BUITableColumn.react"),{cell:v,width:o,header:s})]})}});function y(a,e){var f=b("Promise").all(a.map(function(a){return d("OxsightsMetricsServiceUtils").genSimpleMetricValue("mau",null,a.currentFilters)})),g=d("OxsightsMetricsServiceUtils").genSimpleMetricValue("mau");return b("Promise").all([f,g]).then(function(b){var f=b[0],g=b[1];return f.map(function(b,f){b=b!=null&&!c("isNullOrZero")(g.value)?d("OxsightsSegmentFbts").getSegmentSizePercentageFbt(b*100/g.value):q;return{segmentName:a[f].getTitle(),segmentSize:b,filters:w(a[f].currentFilters,e)}})})}function a(a){var b=a.displayedSegments,d=a.filterConfigs;a=k(c("LoadObject").empty());var e=a[0],f=a[1],g=c("useDebouncedValue")(b,p),l=j();i(function(){var a;(a=l.current)==null?void 0:a.cancel();f(c("LoadObject").loading());l.current=new(c("CancelablePromise"))(y(g,d));l.current.getPromise().then(function(a){f(c("LoadObject").withValue(a))})["catch"](function(a){a.isCanceled!==!0&&f(c("LoadObject").withError(a))});return function(){var a;(a=l.current)==null?void 0:a.cancel()}},[g,d]);return h.jsx(x,{object:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerMarketingCampaignLandingTitleCard.react",["fbt","GeoCard.react","GeoFlexbox.react","GeoHeading.react","GeoSection.react","GeoTab.react","GeoTabGroup.react","GeoText.react","geoMargin","isNullOrZero","isNullish","isStringNullOrEmpty","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.campaign,d=b.objective==="PRODUCT_LAUNCH"||b.state==="RUNNING"||b.state==="ARCHIVED";return i.jsxs(c("GeoCard.react"),{children:[i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsx(c("GeoHeading.react"),{level:4,children:j.TEMPLATE}),i.jsx(c("GeoText.react"),{children:c("isStringNullOrEmpty")(b.templateName)?p(b.objective):b.templateName}),i.jsx(c("GeoHeading.react"),{level:4,xstyle:c("geoMargin").top16,children:j.DURATION}),i.jsx(k,{end:b.endDate,start:b.startDate})]})}),i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoTabGroup.react"),{value:a.campaignViewMode,onChange:a.setCampaignViewMode,children:[i.jsx(c("GeoTab.react"),{label:j.PLAN,value:"plan"}),d?i.jsx(c("GeoTab.react"),{label:j.INSIGHTS,value:"insights"}):null]})})]})}a.displayName=a.name+" [from "+f.id+"]";var j={DURATION:h._("u6295u653eu671f"),INSIGHTS:h._("u6210u6548u5206u6790"),PLAN:h._("u6d3bu52a8"),SHOP:h._("u5e97u94fa"),TEMPLATE:h._("u6a21u677f"),UNSPECIFIED_DATE:h._("u672au6307u5b9a")};function k(a){var b=a.start;a=a.end;if(!c("isNullish")(a)&&!c("isNullOrZero")(a.instant)&&!c("isNullish")(b)&&!c("isNullOrZero")(b.instant)){var d=b.getYear()===a.getYear()?m:l;return i.jsx(c("GeoText.react"),{children:o(b,d,a,l)})}else if(!c("isNullish")(b)&&!c("isNullOrZero")(b.instant))return i.jsx(c("GeoText.react"),{children:n(b)});return i.jsx(c("GeoText.react"),{children:j.UNSPECIFIED_DATE})}k.displayName=k.name+" [from "+f.id+"]";var l="M j, Y",m="M j";function n(a){return h._("{date}",[h._param("date",a.format(l))])}n.displayName=n.name+" [from "+f.id+"]";function o(a,b,c,d){return h._("{start date} - {end date}",[h._param("start date",a.format(b)),h._param("end date",c.format(d))])}o.displayName=o.name+" [from "+f.id+"]";function p(a){switch(a){case"PRODUCT_LAUNCH":return h._("u63a8u5e7fu8fd1u671fu7684u5546u54c1u53d1u5e03u8ba1u5212");case"REACH_NEW_CUSTOMERS":return h._("u627eu5230u65b0u987eu5ba2");default:return h._("u81eau5b9au4e49u8425u9500u6d3bu52a8")}}g["default"]=a}),98);
-----
AdsUEditorCampaignScheduleHourDuration.react",["fbt","AdsBudgetUtils","AdsInterfacesLogger","AdsUEditorCampaignSetLiveVideoAcceleratedDeliveryAction","FlexLayout.react","GeoFlexbox.react","GeoNotice.react","GeoNumericInput.react","GeoText.react","geoMargin","isNullOrZero","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=1,k={width125:{width:"x1tucx9d",$$css:!0}};function a(a){c("AdsInterfacesLogger").logOnce({eventName:"am_live_video_ads_hour_duration",data:{visible:!0,is_enabled:!0}});var b=h._("u5c0fu65f6"),e=h._("u4f60u7684u76f4u64adu89c6u9891u901fu63a8u4f18u5316u5e7fu544au7ec4u5df2u6392u671fu3002u76f4u64adu89c6u9891u5e7fu544au901au5e38u6295u653eu81f3u5c11 1 u5c0fu65f6u3002u6211u4eecu5efau8baeu5c3du91cfu7cbeu786eu8bbeu7f6eu5e7fu544au7ec4u6295u653eu65f6u95f4u3002u5e7fu544au6295u653eu540eu66f4u6539u6392u671fu53efu80fdu4f1au5bfcu81f4u8868u73b0u53d8u5deeu3002"),f=function(b){c("isNullOrZero")(b)||c("AdsUEditorCampaignSetLiveVideoAcceleratedDeliveryAction").dispatch({hostID:a.hostID,campaignIDs:Array.from(a.id.getValues()),hourDuration:b,useLiveVideoAcceleratedDelivery:!0},{line:"69",module:"AdsUEditorCampaignScheduleHourDuration.react.js"})};return i.jsxs(c("FlexLayout.react"),{direction:"vertical",children:[i.jsxs(c("GeoFlexbox.react"),{alignItems:"center",xstyle:c("geoMargin").top4,children:[i.jsx("div",{xstyle:k.width125,children:i.jsx(c("GeoNumericInput.react"),{"data-testid":void 0,isLabelHidden:!0,label:d("AdsBudgetUtils").SCHEDULE_HOUR_DURATION_LABEL,min:j,value:a.hourDuration,onChange:f})}),i.jsx(c("GeoText.react"),{display:"block",xstyle:[c("geoMargin").top20,c("geoMargin").horiz8],children:b})]}),i.jsx(c("GeoNotice.react"),{status:"info",xstyle:c("geoMargin").vert20,children:e})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsCustomConversionEditRuleRow.react",["cx","fbt","AdsCustomConversionRuleInfo.react","AdsCustomConversionsUtil","BUIText.react","Layout.react","WebsiteCustomAudienceModel","WebsiteCustomAudienceOperators","getByPath","intlList","isNullOrZero","isStringNullOrEmpty","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=d("react").Component;var k=j.jsx(c("BUIText.react"),{color:"placeholder",size:"meta1",children:i._("uff0cu548c")});b=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$3=function(a,b,d){d=b===d.length-1;d=d?null:k;return j.jsxs("div",{children:[j.jsx(c("BUIText.react"),{color:"primary",margin:"_3-99",size:"meta1",children:c("intlList")(a,c("intlList").CONJUNCTIONS.OR)}),d]},b)};if(b.advancedRule!=null){e.state={hasCustomField:!0,isEventRule:!1,isValid:!0,ruleClauses:[],ruleLabel:null,ruleTokens:[]};return babelHelpers.assertThisInitialized(e)}var f=d("WebsiteCustomAudienceModel").Operations.deserializeRule(b.rule);f=f==null?void 0:f.clauses;if(f){var g=f.some(function(a){return c("getByPath")(a,["customfield"])!=null}),h=d("WebsiteCustomAudienceModel").Operations.getOperatorLabel(d("WebsiteCustomAudienceOperators").URLOperators,c("getByPath")(f[0],["filter"])),i=f.map(function(a){return c("getByPath")(a,["tokens"])});b=b.rule;b=d("AdsCustomConversionsUtil").isEventBased(b);e.state={hasCustomField:g,isEventRule:b,isValid:!0,ruleClauses:f,ruleLabel:h,ruleTokens:i}}else e.state={hasCustomField:!1,isEventRule:!1,isValid:!1,ruleClauses:[],ruleLabel:null,ruleTokens:[]};return e}var e=b.prototype;e.render=function(){if(!this.state.isValid)return j.jsx("div",{children:i._("u65e0u6548u89c4u5219")});var a=this.props,b=a.aggregationRule,d=a.rule;a=a.retentionDays;var e=this.state,f=e.isEventRule;e=e.hasCustomField;f=f?j.jsx(c("AdsCustomConversionRuleInfo.react"),{pixelAggregationRule:b,pixelRule:d,retentionDays:a}):e?this.$1():this.$2();return j.jsxs(c("Layout.react"),{className:"_2zvf",children:[j.jsx(c("Layout.react").Column,{className:"_2zvg",children:j.jsx("div",{children:j.jsx(c("BUIText.react"),{color:"primary",size:"meta1",weight:"bold",children:i._("u89c4u5219")})})}),j.jsx(c("Layout.react").Column,{className:"_2zvh",children:f})]})};e.$1=function(){var a=this.props,b=a.advancedRule,c=a.aggregationRule,e=a.retentionDays;a=a.rule;var f=this.state.ruleClauses;a=d("AdsCustomConversionsUtil").getRuleDisplay(a,c,e,b,f,null,"url",null,null);return j.jsx("div",{children:a})};e.$2=function(){var a=this.props,b=a.aggregationRule;a=a.retentionDays;var d=this.state.ruleTokens.map(this.$3,this);b=c("isStringNullOrEmpty")(b)?null:j.jsxs("div",{className:"_3-8x",children:[j.jsx(c("BUIText.react"),{color:"primary",size:"meta1",weight:"bold",children:i._("u5408u8ba1")}),j.jsx("div",{children:b})]});a=c("isNullOrZero")(a)?null:j.jsxs("div",{className:"_3-8x",children:[j.jsx(c("BUIText.react"),{color:"primary",size:"meta1",weight:"bold",children:i._("u7559u5b58u7387")}),j.jsxs("div",{children:[a," ",i._("u5929")]})]});return j.jsxs("div",{children:[j.jsx(c("BUIText.react"),{color:"primary",size:"meta1",weight:"bold",children:i._("u5305u542bu7b26u5408u4ee5u4e0bu60c5u51b5u7684u6d41u91cfuff1a")}),j.jsx(c("BUIText.react"),{color:"primary",display:"block",size:"meta1",weight:"bold",children:i._("{rule type}",[i._param("rule type",this.state.ruleLabel)])}),d,b,a]})};return b}(a);g["default"]=b}),98);
-----
useExistingOfferFragment",["CMDiscountApplicationType","CMDiscountDataUtils","CMDiscountTargetGranularityType","CMOfferCategoryType","CMOfferUtils","DateTime","RelayHooks","SearchableEntry","Timezone","isNullOrZero","nullthrows","react","useExistingOfferFragment_data.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useMemo,j=d("Timezone").getEnvironmentTimezoneID()||d("Timezone").UTC,k=h!==void 0?h:h=b("useExistingOfferFragment_data.graphql");function l(a,b){var e,f,g,h,i;e=(e=b==null?void 0:b.end_date)!=null?e:0;var k=c("nullthrows")(c("CMDiscountApplicationType").cast(b==null?void 0:b.application_type),"Discount must have discount application type"),l=c("nullthrows")(d("CMDiscountDataUtils").getTargetType(b==null?void 0:b.offer_target_type),"Discount must have discount target type");f=(f=b==null?void 0:b.exclude_sale_priced_products)!=null?f:!1;g=d("CMOfferUtils").getNumberFromString(b==null?void 0:(g=b.minimum_subtotal_amount)==null?void 0:g.amount_with_offset);h=(h=b==null?void 0:b.minimum_quantity)!=null?h:0;var m=[],n=b==null?void 0:b.product_set;if(n!=null){var o;o=(o=(o=n.product_set_metadata)==null?void 0:o.cover_image_url)!=null?o:(o=n.firstProduct)==null?void 0:(o=o[0])==null?void 0:(o=o.main_image)==null?void 0:(o=o.image)==null?void 0:o.uri;m.push({id:c("nullthrows")(n.id,"Existing product set ID should not be null"),imageUri:o,name:(o=n.name)!=null?o:"",productCount:(o=n.dynamic_items_count)!=null?o:0})}o=b==null?void 0:(n=b.discount_tiers)==null?void 0:n.map(function(a){var b=a.fixed_amount_off,c=a.min_quantity,e=a.min_subtotal;a=a.percent_off;return{fixedAmountOff:d("CMOfferUtils").getNumberFromString(b==null?void 0:b.amount_with_offset),minQuantity:c,minSubtotal:d("CMOfferUtils").getNumberFromString(e==null?void 0:e.amount_with_offset),percentOff:a}}).reverse();n=(n=b==null?void 0:b.target_quantity)!=null?n:0;i=(i=b==null?void 0:b.additional_terms)!=null?i:"";var p=[],q=b==null?void 0:b.prerequisite_product_set;if(q!=null){var r;r=(r=(r=q.product_set_metadata)==null?void 0:r.cover_image_url)!=null?r:(r=q.firstProduct)==null?void 0:(r=r[0])==null?void 0:(r=r.main_image)==null?void 0:(r=r.image)==null?void 0:r.uri;p.push({id:c("nullthrows")(q.id,"Existing prerequisite product set ID should not be null"),imageUri:r,name:(r=q.name)!=null?r:"",productCount:(r=q.dynamic_items_count)!=null?r:0})}r=b==null?void 0:(q=b.public_coupon_code)==null?void 0:q.code;q=r!=null?new(c("SearchableEntry"))({title:r,uniqueID:r.toUpperCase()}):null;r=q==null?(r=b==null?void 0:(r=b.coupon_codes)==null?void 0:r.map(function(a){return new(c("SearchableEntry"))({title:c("nullthrows")(a==null?void 0:a.code),uniqueID:c("nullthrows")(a==null?void 0:a.code).toUpperCase()})}))!=null?r:[]:[];return{additionalTerms:i,amountType:d("CMDiscountDataUtils").getDiscountAmountType(b==null?void 0:b.amount_type),applicableCountries:(i=b==null?void 0:b.applicable_countries)!=null?i:[],approvalStatus:null,buyerVisibleTitle:b==null?void 0:b.buyer_visible_title,campaignCategory:null,claimableEndDate:null,claimableStartDate:null,commerceAudienceID:b==null?void 0:b.custom_audience_id,contentID:b==null?void 0:b.display_name_for_seller,couponCodes:r,couponCodeType:d("CMDiscountDataUtils").getCouponCodeType(r,q),currency:(r=(i=(r=(r=b==null?void 0:(i=b.fixed_amount_off)==null?void 0:i.currency)!=null?r:b==null?void 0:(i=b.minimum_subtotal_amount)==null?void 0:i.currency)!=null?r:b==null?void 0:(i=b.discount_tiers[0])==null?void 0:(r=i.fixed_amount_off)==null?void 0:r.currency)!=null?i:b==null?void 0:(r=b.discount_tiers[0])==null?void 0:(i=r.min_subtotal)==null?void 0:i.currency)!=null?r:"",discountApplicationType:k,discountID:a,discountType:d("CMDiscountDataUtils").getDiscountTypeForExistingDiscount(b==null?void 0:b.amount_type,h,g),eligibilityQEInfo:null,eligibilityRules:[],eligibleCustomersType:(i=b==null?void 0:b.eligible_customers_type)!=null?i:"EVERYONE",endDate:e!==0?c("DateTime").create(e,j):null,excludeSalePricedProducts:f,fixedAmountOff:d("CMOfferUtils").getNumberFromString(b==null?void 0:(r=b.fixed_amount_off)==null?void 0:r.amount_with_offset),getYValueType:d("CMDiscountDataUtils").getGetYValueType(b==null?void 0:b.amount_type,b==null?void 0:b.percent_off),hasLoyaltyOffer:!1,hasRedeemLimitPerOrder:!c("isNullOrZero")(b==null?void 0:b.redeem_limit_per_order),incentiveCampaign:null,incentiveStatus:b==null?void 0:b.incentive_status,incentiveSurfaces:[],incentiveVariant:null,loyaltyInfo:d("CMDiscountDataUtils").getLoyaltyInfo(b),minimumQuantity:h,minimumSubtotal:g,offerCategoryType:(b==null?void 0:b.application_type)==="DISPLAY_ONLY"?c("CMOfferCategoryType").Markdown:d("CMOfferUtils").getOfferCategoryTypeForExistingOffer(l,n),percentOff:b==null?void 0:b.percent_off,prerequisiteProductSelectionType:d("CMDiscountDataUtils").getProductSelectionType(b==null?void 0:b.prerequisite_selection),productSelectionType:c("nullthrows")(d("CMDiscountDataUtils").getProductSelectionType(b==null?void 0:b.offer_target_selection),"There must be a product selection type for discount"),productTypeRestriction:null,publicCouponCode:q,purchaseRequirements:d("CMOfferUtils").getPurchaseRequirementForExistingOffer(h,g,o),reclaimCooldownDuration:b==null?void 0:b.reclaim_cooldown_duration,redeemLimitPerOrder:b==null?void 0:b.redeem_limit_per_order,redeemLimitPerUser:b==null?void 0:b.redeem_limit_per_user,redemptionDuration:b==null?void 0:b.redemption_duration,salesChannels:null,selectedPrerequisiteProducts:[],selectedPrerequisiteProductSets:p,selectedProducts:[],selectedProductSets:m,startDate:(b==null?void 0:b.start_date)!=null?c("DateTime").create(b==null?void 0:b.start_date,j):null,targetGranularity:c("nullthrows")(c("CMDiscountTargetGranularityType").cast(b==null?void 0:b.offer_target_granularity),"There must be an offer target granularity for discount"),targetingCriteria:(i=b==null?void 0:(k=b.commerce_targeting_criteria)==null?void 0:(a=k.nodes)==null?void 0:a.map(function(a){var d;return{comparator_type:c("nullthrows")(a.comparator_type),eligible_customers_type:(d=b==null?void 0:b.eligible_customers_type)!=null?d:"EVERYONE",existing_custom_audience_id:b==null?void 0:b.custom_audience_id,product_type:a.commerce_product_targeting_type,rhs_value:{bool_value:a.rhs_bool_value,currency_value:a.rhs_currency_value!=null?{amount:c("nullthrows")((d=(d=a.rhs_currency_value)==null?void 0:d.amount_in_currency)!=null?d:"0"),currency:c("nullthrows")((d=a.rhs_currency_value)==null?void 0:d.currency)}:null,int_value:a.rhs_int_value,string_value:a.rhs_string_value},seller_type:a.commerce_seller_targeting_type,target_type:c("nullthrows")(a.target_type),user_type:a.commerce_user_targeting_type}}))!=null?i:[],targetQuantity:n,targetShippingOptionTypes:d("CMDiscountDataUtils").getTargetShippingOptionTypes(b==null?void 0:b.target_shipping_option_types),targetType:l,tieredDiscountAmountType:d("CMOfferUtils").getAmountTypeFromTier(o),tieredDiscountInfos:o,tieredDiscountRequirementType:d("CMOfferUtils").getRequirementsTypeFromTier(o),totalBudget:null}}function a(a){var b=d("RelayHooks").useFragment(k,a);return i(function(){return b!=null&&(b==null?void 0:b.id)!=null?l(b.id,b):null},[b])}g["default"]=a}),98);
-----
CMOfferBuilderStateContextProviderUtils",["CMDiscountApplicationType","CMOfferCategoryType","CMOfferConstants","CMOfferMarkdownSelection","CMOfferTierInfoActions","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e=babelHelpers["extends"]({},a);if(a.tieredDiscountInfos&&a.tieredDiscountInfos.length-----
CMOfferUtils",["CMDiscountAmountType","CMDiscountApplicationType","CMDiscountTargetGranularityType","CMDiscountTargetType","CMDiscountType","CMOfferCategoryType","CMOfferConstants","CMOfferMarkdownSelection","CMOfferPurchaseRequirementsType","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f){if(b==="PRIVATE"||b==="PUBLIC")return c("CMDiscountApplicationType").BUYER_APPLIED;if(d===c("CMOfferPurchaseRequirementsType").MinimumQuantity||d===c("CMOfferPurchaseRequirementsType").MinimumSubtotal||d===c("CMOfferPurchaseRequirementsType").Tiered)return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;if(e===c("CMDiscountTargetGranularityType").ORDER_LEVEL)return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;if(((b=f)!=null?b:"EVERYONE")!=="EVERYONE")return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;if(a===c("CMOfferCategoryType").FreeShipping)return c("CMDiscountApplicationType").AUTOMATIC_AT_CHECKOUT;return a===c("CMOfferCategoryType").Markdown?c("CMDiscountApplicationType").DISPLAY_ONLY:c("CMDiscountApplicationType").SALE}function b(a,b){switch(a){case"COMMERCE_AUDIENCE":return[{comparator_type:"EQUALS",eligible_customers_type:"COMMERCE_AUDIENCE",existing_custom_audience_id:b,rhs_value:{bool_value:!0},target_type:"USER",user_type:"IN_COMMERCE_CUSTOM_AUDIENCE"}];case"NEW_CUSTOMERS":case"FOLLOWERS":case"ABANDONED_CART":return[{comparator_type:"EQUALS",eligible_customers_type:a,rhs_value:{bool_value:!0},target_type:"USER",user_type:"IN_COMMERCE_CUSTOM_AUDIENCE"}];case"EVERYONE":default:return[]}}function e(a,b){if(b==null)return null;switch(b){case c("CMOfferPurchaseRequirementsType").None:if(a!=null)switch(a){case c("CMDiscountAmountType").FixedAmount:return c("CMDiscountType").FixedAmount;case c("CMDiscountAmountType").Percentage:return c("CMDiscountType").Percentage}return null;case c("CMOfferPurchaseRequirementsType").MinimumSubtotal:return c("CMDiscountType").MinimumSubtotal;case c("CMOfferPurchaseRequirementsType").MinimumQuantity:return c("CMDiscountType").MinimumQuantity;case c("CMOfferPurchaseRequirementsType").Tiered:return c("CMDiscountType").Tiered}}function f(a,b,c){if(a>0||b>0)return c;else return c==null?void 0:c.slice(0,2)}function h(a,b,d){if(d==null?void 0:d.length)return c("CMOfferPurchaseRequirementsType").Tiered;if(a>0)return c("CMOfferPurchaseRequirementsType").MinimumQuantity;a=(d=b)!=null?d:0;return a>0?c("CMOfferPurchaseRequirementsType").MinimumSubtotal:c("CMOfferPurchaseRequirementsType").None}function i(a,b){if(b>0)return c("CMOfferCategoryType").BuyXGetY;return a===c("CMDiscountTargetType").Shipping?c("CMOfferCategoryType").FreeShipping:c("CMOfferCategoryType").AmountOff}function j(a){if(!(a==null?void 0:a.length))return d("CMOfferConstants").DEFAULT_TIERED_REQUIREMENTS_TYPE;a=a[0];if(!c("isNullOrZero")(a.minQuantity))return c("CMOfferPurchaseRequirementsType").MinimumQuantity;return!c("isNullOrZero")(a.minSubtotal)?c("CMOfferPurchaseRequirementsType").MinimumSubtotal:d("CMOfferConstants").DEFAULT_TIERED_REQUIREMENTS_TYPE}function k(a){if(!(a==null?void 0:a.length))return d("CMOfferConstants").DEFAULT_AMOUNT_TYPE;a=a[0];if((a==null?void 0:a.fixedAmountOff)!=null&&a.fixedAmountOff>0)return c("CMDiscountAmountType").FixedAmount;return(a==null?void 0:a.percentOff)!=null&&a.percentOff>0?c("CMDiscountAmountType").Percentage:d("CMOfferConstants").DEFAULT_AMOUNT_TYPE}function l(a){return(a==null?void 0:a.discountApplicationType)===c("CMDiscountApplicationType").SALE||(a==null?void 0:a.offerCategoryType)===c("CMOfferCategoryType").Markdown&&(a==null?void 0:a.markdownType)===d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.New}function m(a){return(a==null?void 0:a.offerCategoryType)===c("CMOfferCategoryType").Markdown&&(a==null?void 0:a.markdownType)===d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.Existing}function n(a){if(a==null)return null;a=Number(a);return isNaN(a)?null:a}g.getNewDiscountApplicationType=a;g.getNewTargetingCriteria=b;g.getNewDiscountType=e;g.getLoyaltyTiers=f;g.getPurchaseRequirementForExistingOffer=h;g.getOfferCategoryTypeForExistingOffer=i;g.getRequirementsTypeFromTier=j;g.getAmountTypeFromTier=k;g.isNewSalePricedItemsOffer=l;g.isExistingSalePricedItemsOffer=m;g.getNumberFromString=n}),98);
-----
CMDiscountValidations",["fbt","CMDiscountAmountType","CMDiscountApplicationType","CMDiscountBuilderReduxHooks","CMDiscountProductSelectionType","CMDiscountStrings","CMDiscountType","CMDiscountValidationCore","CMOfferBuilderStateHooks","CMOfferCategoryType","CMOfferConstants","CMOfferMarkdownSelection","CMOfferPurchaseRequirementsType","CMOfferUtils","CMOffersContextHooks","DateTime","isEmpty","isNullOrZero","justknobx","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react").useMemo,j=c("justknobx")._("535"),k=1e8;function l(a){return{additionalTerms:a.additionalTerms,amountType:c("nullthrows")(a.amountType,"Amount type cannot be null"),applicableCountries:a.applicableCountries,buyerVisibleTitle:a.buyerVisibleTitle,campaignCategory:a.campaignCategory,claimableEndDate:a.claimableEndDate,claimableStartDate:a.claimableStartDate,contentID:c("nullthrows")(a.contentID,"Content ID cannot be null"),couponCodes:a.couponCodes,couponCodeType:a.couponCodeType,currency:a.currency,discountApplicationType:c("nullthrows")(a.discountApplicationType,"Discount Application Type cannot be null"),discountID:a.discountID,discountType:c("nullthrows")(a.discountType,"Discount Type cannot be null"),eligibilityRules:a.eligibilityRules,endDate:a.endDate,excludeSalePricedProducts:a.excludeSalePricedProducts,fixedAmountOff:a.fixedAmountOff,getYValueType:a.getYValueType,incentiveCampaign:a.incentiveCampaign,incentiveSurfaces:a.incentiveSurfaces,incentiveVariant:a.incentiveVariant,isAutomaticallyClaimed:a.isAutomaticallyClaimed,isClaimable:a.isClaimable,isTest:a.isTest,loyaltyInfo:a.loyaltyInfo,markdownType:a.markdownType,maxDiscountValue:a.maxDiscountValue,minimumQuantity:a.minimumQuantity,minimumSubtotal:a.minimumSubtotal,offerCategoryType:a.offerCategoryType,percentOff:a.percentOff,prerequisiteProductSelectionType:a.prerequisiteProductSelectionType,productSelectionType:c("nullthrows")(a.productSelectionType,"Product Selection type cannot be null"),productTypeRestriction:a.productTypeRestriction,publicCouponCode:a.publicCouponCode,purchaseRequirements:a.purchaseRequirements,reclaimCooldownDuration:a.reclaimCooldownDuration,redeemLimitPerOrder:a.redeemLimitPerOrder,redeemLimitPerUser:a.redeemLimitPerUser,redemptionDuration:a.redemptionDuration,salesChannels:a.salesChannels,selectedPrerequisiteProducts:a.selectedPrerequisiteProducts,selectedPrerequisiteProductSets:a.selectedPrerequisiteProductSets,selectedProducts:a.selectedProducts,selectedProductSets:a.selectedProductSets,startDate:c("nullthrows")(a.startDate,"Discount start date cannot be null"),targetGranularity:a.targetGranularity,targetingCriteria:a.targetingCriteria,targetQuantity:a.targetQuantity,targetShippingOptionTypes:a.targetShippingOptionTypes,targetType:a.targetType,tieredDiscountAmountType:a.tieredDiscountAmountType,tieredDiscountInfos:X(a.tieredDiscountInfos,a.tieredDiscountAmountType,a.tieredDiscountRequirementType),tieredDiscountRequirementType:a.tieredDiscountRequirementType,totalBudget:a.totalBudget}}function a(a,b){return m(a,b,F)}function m(a,b,c){var e=d("CMDiscountBuilderReduxHooks").useCMDiscountBuilderState();return s(a,b,e,c)}function b(){return n(F)}function n(a){var b=d("CMDiscountBuilderReduxHooks").useCMDiscountBuilderState();return r(a,b)}function o(){var a=d("CMOfferBuilderStateHooks").useOfferBuilderFormState(),b=a.hasSubmittedPreviously;a.isSubmitting;var c=babelHelpers.objectWithoutPropertiesLoose(a,["hasSubmittedPreviously","isSubmitting"]),e=d("CMOffersContextHooks").useOffersConfig();a=d("CMOfferBuilderStateHooks").useOfferBuilderConfig();var f=a.prePopulatedProductDynamicItems,g=babelHelpers.objectWithoutPropertiesLoose(a,["prePopulatedProductDynamicItems"]);return i(function(){return babelHelpers["extends"]({config:babelHelpers["extends"]({},e,g)},c,{hasSubmitted:b,prePopulatedProductDynamicItems:f})},[c,b,e,g,f])}function e(a,b){return p(a,b,F)}function p(a,b,c){var d=o();return s(a,b,d,c)}function f(){return q(F)}function q(a){var b=o();return r(a,b)}function r(a,b){var c=b.hasDuplicateInternalName;return function(d){var e=Object.keys(d);e=e.some(function(c){return!s(c,d,b,a).isValid});return e||c?null:l(d)}}function s(a,b,c,e){e=e[a];return e==null?d("CMDiscountValidationCore").buildValidResponse():e(b,c)}var t={offerCategoryType:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.offerCategoryType,h._("u8bf7u9009u62e9u4f60u5e0cu671bu987eu5ba2u4f7fu7528u4f18u60e0u7684u65b9u5f0fu3002"))})}},u={commerceAudienceID:function(a,b){return d("CMDiscountValidationCore").onlyValidateOnSubmit(a,b,function(a){return a.eligibleCustomersType==="COMMERCE_AUDIENCE"?d("CMDiscountValidationCore").requiredStringValidation(a.commerceAudienceID,h._("u5fc5u987bu521bu5efau5546u4e1au53d7u4f17u3002")):d("CMDiscountValidationCore").buildValidResponse()})}},v={contentID:function(a,b){return d("CMDiscountValidationCore").onlyValidateOnSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredStringValidation(a.contentID,h._("u5fc5u987bu8f93u5165u540du79f0u3002"))})},couponCodes:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(I(a.discountApplicationType,a.couponCodes,a.couponCodeType),h._("u5fc5u987bu8f93u5165u81f3u5c11u4e00u7ec4u6298u6263u7801u3002"))})},function(a){return d("CMDiscountValidationCore").booleanValidation(a.couponCodes.length<=d("CMOfferConstants").MAX_COUPON_CODES,d("CMDiscountStrings").CouponCodeLimitReachedError)},function(a){for(var a=a.couponCodes,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(b){if(c>=a.length)break;e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e=e;e=K(e.getTitle(),d("CMOfferConstants").MAX_COUPON_CODE_CHARACTER_LIMIT);if(!e.isValid)return e}return d("CMDiscountValidationCore").buildValidResponse()}),publicCouponCode:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(J(a.discountApplicationType,a.publicCouponCode,a.couponCodeType),h._("u4f18u60e0u7801u662fu5fc5u586bu9879"))})},function(a){a=a.publicCouponCode;return a==null?d("CMDiscountValidationCore").buildValidResponse():K(a.getTitle(),d("CMOfferConstants").MAX_PUBLIC_COUPON_CODE_CHARACTER_LIMIT)})},w={minimumQuantity:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(Q(c("CMDiscountType").MinimumQuantity,a.discountType,a.minimumQuantity),h._("u5fc5u987bu8f93u5165u6700u5c0fu6570u91cfu3002"))})},minimumSubtotal:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(Q(c("CMDiscountType").MinimumSubtotal,a.discountType,a.minimumSubtotal),h._("u5fc5u987bu8f93u5165u6700u4f4eu6d88u8d39u91d1u989du3002"))})},purchaseRequirements:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.purchaseRequirements,h._("u5fc5u987bu9009u62e9u8d2du7269u8981u6c42u7c7bu578bu3002"))})}},x={tieredDiscountInfos:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(W(a.tieredDiscountInfos,a.discountType,a.tieredDiscountAmountType,a.tieredDiscountRequirementType),h._("u5206u7ea7u6298u6263u6700u5c0fu6570u91cfu8981u6c42u5fc5u987bu81f3u5c11u5305u542b{minimum tiers}u6863u3002",[h._param("minimum tiers",d("CMOfferConstants").REQUIRED_TIERS)]))})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(V(a.tieredDiscountInfos,a.discountType,a.tieredDiscountAmountType,a.tieredDiscountRequirementType),h._("u6700u5c0fu6570u91cfu548cu4f18u60e0u91d1u989du5fc5u987bu9ad8u4e8eu4e0au4e00u6863u3002"))})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(T(a.tieredDiscountInfos,a.discountType),h._("u7f3au5c11u5c42u7ea7u4fe1u606f"))})})},y={amountType:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(L(a.offerCategoryType,a.amountType),h._("u5fc5u987bu9009u62e9u4ef7u503cu7c7bu578bu3002"))})},fixedAmountOff:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(Z(a.offerCategoryType,a.purchaseRequirements,a.markdownType,c("CMDiscountAmountType").FixedAmount,a.amountType,a.fixedAmountOff),h._("u5fc5u987bu8f93u5165u5927u4e8e 0 u7684u91d1u989du3002"))})},function(a){return d("CMDiscountValidationCore").booleanValidation(c("isNullOrZero")(a.fixedAmountOff)||a.fixedAmountOff<=k,h._("u51cfu4ef7u91d1u989du4e0du80fdu8d85u8fc7 1,000,000.00"))}),percentOff:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(Z(a.offerCategoryType,a.purchaseRequirements,a.markdownType,c("CMDiscountAmountType").Percentage,a.amountType,a.percentOff),h._("u5fc5u987bu8f93u5165u5927u4e8e 0 u7684u767eu5206u6570u3002"))})}},z={targetShippingOptionTypes:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(M(a.offerCategoryType,a.targetShippingOptionTypes),h._("u5fc5u987bu9009u62e9u53d1u8d27u9009u9879u7c7bu578bu3002"))})}},A={productSelectionType:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.productSelectionType,d("CMDiscountStrings").NoProductsErrorMessage)})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation($(a.productSelectionType,a.selectedProductSets,a.selectedProducts),d("CMDiscountStrings").NoProductsErrorMessage)})})},B={prerequisiteProductSelectionType:d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(N(a.offerCategoryType,a.prerequisiteProductSelectionType),d("CMDiscountStrings").NoProductsErrorMessage)})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(ba(a.offerCategoryType,a.prerequisiteProductSelectionType,a.selectedPrerequisiteProductSets,a.selectedPrerequisiteProducts),d("CMDiscountStrings").NoProductsErrorMessage)})}),redeemLimitPerOrder:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(O(a.hasRedeemLimitPerOrder,a.offerCategoryType,a.redeemLimitPerOrder),h._("u6bcfu4efdu8ba2u5355u7684u4f18u60e0u4f7fu7528u6b21u6570u4e0au9650u5fc5u987bu662fu6b63u6570u3002"))})},targetQuantity:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(P(a.offerCategoryType,a.targetQuantity),h._("u5fc5u987bu8f93u5165u76eeu6807u6570u91cfu3002"))})}},C={applicableCountries:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").booleanValidation(ca(a.applicableCountries,b),h._("u8bf7u81f3u5c11u9009u62e9u4e00u4e2au56fdu5bb6/u5730u533au3002"))})}};function D(a){a=a.buyerVisibleTitle;return d("CMDiscountValidationCore").booleanValidation((a!=null?a.length:0)<=j,h._("u4f60u7684u59d3u540du4e0du80fdu8d85u8fc7{max length}u4e2au5b57u7b26u3002",[h._param("max length",j)]))}var E={buyerVisibleTitle:function(a,b){return d("CMDiscountValidationCore").ignoreValidationWhen(!d("CMOfferUtils").isExistingSalePricedItemsOffer(a),a,b,d("CMDiscountValidationCore").chainValidations(function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredStringValidation(a.buyerVisibleTitle,h._("u5fc5u987bu4e3au6b64u7c7bu4fc3u9500u547du540du3002"))})},function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return D(a)})}))}};y=babelHelpers["extends"]({},y,x,z,A,B);x={endDate:d("CMDiscountValidationCore").chainValidations(function(a){return d("CMDiscountValidationCore").booleanValidation(!G(a.startDate,a.endDate),d("CMDiscountStrings").EndDateBeforeStartError)},function(a){return d("CMDiscountValidationCore").booleanValidation(!H(a.endDate),d("CMDiscountStrings").EndDateTimeInThePastError)}),startDate:function(a,b){return d("CMDiscountValidationCore").suppressErrorMessageBeforeSubmit(a,b,function(a){return d("CMDiscountValidationCore").requiredNonNullValidation(a.startDate,h._("u5fc5u987bu8f93u5165u6298u6263u7684u5f00u59cbu65e5u671fu3002"))})}};var F=babelHelpers["extends"]({},t,v,u,w,E,y,x,C);function G(a,b){return a==null||b==null?!1:b.isSameOrBefore(a)}function H(a){return a==null?!1:a.isBefore(c("DateTime").localNow())}function I(a,b,d){if(d!=="PRIVATE")return!0;return a!==c("CMDiscountApplicationType").BUYER_APPLIED?!0:b.length>0}function J(a,b,d){if(d!=="PUBLIC")return!0;return a!==c("CMDiscountApplicationType").BUYER_APPLIED?!0:b!=null}function K(a,b){if(!a.match("^[a-zA-Z0-9_]*$"))return d("CMDiscountValidationCore").buildErrorResponse(d("CMDiscountStrings").InvalidCouponCodeError);else if(a.length>b)return d("CMDiscountValidationCore").buildErrorResponse(d("CMDiscountStrings").getCouponCodeCharacterLimitError(b));return d("CMDiscountValidationCore").buildValidResponse()}function L(a,b){return a!==c("CMOfferCategoryType").AmountOff&&a!==c("CMOfferCategoryType").BuyXGetY?!0:b!==null}function M(a,b){return a!==c("CMOfferCategoryType").FreeShipping?!0:b!==null&&!c("isEmpty")(b)}function N(a,b){return a!==c("CMOfferCategoryType").BuyXGetY?!0:b!==null}function O(a,b,d){if(b!==c("CMOfferCategoryType").BuyXGetY)return!0;return!a?!0:d!=null&&d>0}function P(a,b){return a!==c("CMOfferCategoryType").BuyXGetY?!0:!c("isNullOrZero")(b)}function Q(a,b,d){return b!==a?!0:!c("isNullOrZero")(d)}function R(a,b){if(a.length<=1)return!1;var d=a.slice(1);return d.every(function(d,e){e=a[e];switch(b){case c("CMDiscountAmountType").FixedAmount:return c("nullthrows")(e.fixedAmountOff)=d("CMOfferConstants").REQUIRED_TIERS}function X(a,b,c){if(a==null||b==null||c==null)return[];var d=[];for(var e=0;e<(a==null?void 0:a.length);e++){var f=Y(a[e],b,c);f!=null&&d.push(f)}return d}function Y(a,b,d){var e=a.percentOff,f=a.minSubtotal,g=a.fixedAmountOff;a=a.minQuantity;var h=null,i=null,j=null,k=null;switch(b){case c("CMDiscountAmountType").FixedAmount:if(c("isNullOrZero")(g))return null;h=g;break;case c("CMDiscountAmountType").Percentage:if(c("isNullOrZero")(e))return null;i=e;break}switch(d){case c("CMOfferPurchaseRequirementsType").MinimumQuantity:if(c("isNullOrZero")(a))return null;k=a;break;case c("CMOfferPurchaseRequirementsType").MinimumSubtotal:if(c("isNullOrZero")(f))return null;j=f;break;default:}return{fixedAmountOff:h,minQuantity:k,minSubtotal:j,percentOff:i}}function aa(a,b,d){return b!==a?!0:!c("isNullOrZero")(d)&&d>0}function Z(a,b,e,f,g,h){if(b===c("CMOfferPurchaseRequirementsType").Tiered)return!0;b=a===c("CMOfferCategoryType").Markdown&&e===d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.New;return a!==c("CMOfferCategoryType").AmountOff&&a!==c("CMOfferCategoryType").BuyXGetY&&!b?!0:aa(f,g,h)}function $(a,b,d){if(a==null)return!1;switch(a){case c("CMDiscountProductSelectionType").EntireCatalog:return!0;case c("CMDiscountProductSelectionType").ExistingProductSet:return b.length>0;case c("CMDiscountProductSelectionType").SpecificProducts:return d.length>0}}function ba(a,b,d,e){return a!==c("CMOfferCategoryType").BuyXGetY?!0:$(b,d,e)}function ca(a,b){b=(b=b==null?void 0:b.config.isMultinationalFlowEnabled)!=null?b:!1;return!b?!0:!c("isEmpty")(a)}g.convertToVerifiedDiscountData=l;g.useFieldValidator_WithOldState=a;g.useFieldValidatorHelper_WithOldState=m;g.useGetVerifiedDiscountData_WithOldState=b;g.useGetVerifiedDiscountDataHelper_WithOldState=n;g.useFieldValidator_WithNewState=e;g.useFieldValidatorHelper_WithNewState=p;g.useGetVerifiedDiscountData_WithNewState=f;g.useGetVerifiedDiscountDataHelper_WithNewState=q;g.detailsSectionValidators=y;g.VALIDATORS=F;g.isEndDateBeforeStartDate=G}),98);
-----
CMOfferBuilderConstants",["CMDiscountAmountType","CMDiscountTargetGranularityType","CMOfferBuilderUtils","CMOfferConstants","CMOfferGetYValueType","CMOfferMarkdownSelection","CMOfferPurchaseRequirementsType","CMOfferTargetShippingOptionType","CMOfferTierInfoActions","TypedImmutableObject","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";a=null;b=c("TypedImmutableObject").create({form:{error:null,hasDuplicateInternalName:!1,hasSubmittedPreviously:!1,isSubmitting:!1,previewCountry:""},offer:{additionalTerms:null,amountType:d("CMOfferConstants").DEFAULT_AMOUNT_TYPE,applicableCountries:[],approvalStatus:null,buyerVisibleTitle:null,campaignCategory:null,claimableEndDate:null,claimableStartDate:null,commerceAudienceID:null,contentID:"",couponCodes:[],couponCodeType:"NONE",currency:"",discountApplicationType:d("CMOfferConstants").DEFAULT_APPLICATION_TYPE,discountID:null,discountType:d("CMOfferConstants").DEFAULT_DISCOUNT_TYPE,eligibilityQEInfo:null,eligibilityRules:[],eligibleCustomersType:"EVERYONE",endDate:null,excludeSalePricedProducts:!1,fixedAmountOff:0,getYValueType:d("CMOfferConstants").DEFAULT_GETY_VALUE_TYPE,hasLoyaltyOffer:!1,hasRedeemLimitPerOrder:!c("isNullOrZero")(a),incentiveCampaign:null,incentiveSurfaces:[],incentiveVariant:null,loyaltyInfo:null,markdownType:d("CMOfferMarkdownSelection").CMOfferMarkdownSelection.New,minimumQuantity:0,minimumSubtotal:0,offerCategoryType:d("CMOfferConstants").DEFAULT_CATEGORY_TYPE,percentOff:0,prerequisiteProductSelectionType:null,productSelectionType:null,productTypeRestriction:null,publicCouponCode:null,purchaseRequirements:d("CMOfferConstants").DEFAULT_PURCHASE_REQUIREMENTS_TYPE,reclaimCooldownDuration:null,redeemLimitPerOrder:a,redeemLimitPerUser:0,redemptionDuration:null,salesChannels:null,selectedPrerequisiteProducts:[],selectedPrerequisiteProductSets:[],selectedProducts:[],selectedProductSets:[],startDate:d("CMOfferBuilderUtils").getDefaultOfferStartDate(),targetGranularity:d("CMOfferConstants").DEFAULT_TARGET_GRANULARITY,targetingCriteria:null,targetQuantity:0,targetShippingOptionTypes:null,targetType:d("CMOfferConstants").DEFAULT_TARGET_TYPE,tieredDiscountAmountType:d("CMOfferConstants").DEFAULT_TIERED_AMOUNT_TYPE,tieredDiscountInfos:Array.from({length:d("CMOfferConstants").MAX_TIERS},function(){return d("CMOfferTierInfoActions").getEmptyTierInfo()}),tieredDiscountRequirementType:d("CMOfferConstants").DEFAULT_TIERED_REQUIREMENTS_TYPE,totalBudget:null}});e=c("TypedImmutableObject").create({flowType:"create",isOfferBuilderStateManagementV2:!1,isOneClickPromo:!1,prePopulatedProductDynamicItems:[]});f=[c("CMOfferPurchaseRequirementsType").None,c("CMOfferPurchaseRequirementsType").MinimumSubtotal,c("CMOfferPurchaseRequirementsType").MinimumQuantity,c("CMOfferPurchaseRequirementsType").Tiered];a=[c("CMOfferPurchaseRequirementsType").MinimumSubtotal,c("CMOfferPurchaseRequirementsType").MinimumQuantity];var h=[c("CMOfferPurchaseRequirementsType").MinimumQuantity],i=[c("CMOfferPurchaseRequirementsType").MinimumSubtotal,c("CMOfferPurchaseRequirementsType").MinimumQuantity],j=[c("CMDiscountAmountType").FixedAmount,c("CMDiscountAmountType").Percentage],k=[c("CMDiscountAmountType").Percentage],l=[c("CMDiscountAmountType").FixedAmount,c("CMDiscountAmountType").Percentage],m=[c("CMDiscountTargetGranularityType").ITEM_LEVEL,c("CMDiscountTargetGranularityType").ORDER_LEVEL],n=[c("CMOfferTargetShippingOptionType").STANDARD,c("CMOfferTargetShippingOptionType").EXPEDITED,c("CMOfferTargetShippingOptionType").RUSH];c=[c("CMOfferGetYValueType").Free,c("CMOfferGetYValueType").AmountOff];g.DEFAULT_BUILDER_STATE=b;g.DEFAULT_OFFER_BUILDER_CONFIG=e;g.VALID_PURCHASE_REQUIREMENTS=f;g.VALID_TIERED_REQUIREMENTS=a;g.VALID_PURCHASE_REQUIREMENTS_BUYX_GETY=h;g.VALID_PURCHASE_REQUIREMENTS_BUYX_GETY_WITH_MIN_SUBTOTAL=i;g.VALID_AMOUNT_TYPES=j;g.VALID_AMOUNT_TYPES_TIERED=k;g.VALID_AMOUNT_TYPES_TIERED_V2=l;g.VALID_TARGET_GRANULARITY_TYPES=m;g.VALID_SHIPPING_OPTION_TYPES=n;g.VALID_GETY_VALUE_TYPES=c}),98);
-----
useCatalogConciergeQualityEnhancementsItemsTableColumns",["fbt","CatalogBusinessEventsLoggerHelper","CatalogConciergeQualityEnhancementsItemsTableVariantCell.react","CatalogConciergeQualityEnhancementsItemsTableVariantGroupCell.react","CatalogEnhancedDataFieldLabels","GeoTableRowAction.react","GeoTableWidth","GeoText.react","GeoTooltip.react","formatDate","isNullOrZero","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useMemo;function k(a){return[{cell:function(a){a=a.item;switch(a.type){case"single_variant":case"variant_within_group":return i.jsx(c("GeoTableRowAction.react"),{children:i.jsx(c("CatalogConciergeQualityEnhancementsItemsTableVariantCell.react"),{variant:a})});case"variant_group":return i.jsx(c("CatalogConciergeQualityEnhancementsItemsTableVariantGroupCell.react"),{variantGroup:a});default:return null}},header:h._("u5546u54c1"),key:"NAME",width:d("GeoTableWidth").proportional(1),features:{sortable:a.singleKey("NAME",{defaultDirection:"ascending"})}},{cell:function(a){var b=a.item;return b.updatesCount==null?null:i.jsx(c("GeoTooltip.react"),{content:b.updatedFields.map(function(a){return d("CatalogEnhancedDataFieldLabels").getEnhancedDataFieldLabel(a)}).join(", "),"data-testid":void 0,onToggle:function(a){a&&c("CatalogBusinessEventsLoggerHelper").getProductsViewLogger(b.catalogID).setEvent("catalog_product_picker_tooltip_shown").setActionData({itemID:b.id,updatesCount:b.updatesCount.toString()}).log()},children:i.jsx(c("GeoText.react"),{display:"truncate",children:b.updatesCount})})},header:h._("u66f4u65b0u6b21u6570"),key:"NUMBER_UPDATES",width:d("GeoTableWidth").pixel(200),features:{sortable:a.singleKey("NUMBER_UPDATES",{defaultDirection:"descending"})}},{cell:function(a){a=a.item;if(c("isNullOrZero")(a.lastUpdate))return i.jsx(c("GeoText.react"),{children:"--"});a=new Date(a.lastUpdate*1e3);return i.jsx(c("GeoText.react"),{display:"truncate",children:c("formatDate")(new Date(a),"M j, Y")})},header:h._("u4e0au6b21u66f4u65b0"),key:"LAST_UPDATE",width:d("GeoTableWidth").pixel(200),features:{sortable:a.singleKey("LAST_UPDATE",{defaultDirection:"descending"})}},{cell:function(a){a=a.item;return i.jsx(c("GeoTableRowAction.react"),{children:i.jsx(c("GeoText.react"),{display:"truncate",children:a.retailerID!=null?a.retailerID:"-"})})},header:{label:h._("u5185u5bb9u7f16u53f7"),showTooltipInfoIcon:!0,tooltip:h._("u4f60u4e3au5546u54c1u8bbeu7f6eu7684 SKU u6216u5176u4ed6u4e13u5c5eu5185u5bb9u7f16u53f7u3002")},key:"RETAILER_ID",width:d("GeoTableWidth").pixel(200)}]}function a(a){return j(function(){return k(a)},[a])}g["default"]=a}),98);
-----
AutoScheduleUtils",["DateConsts","DateTime","Instant","Timezone","TimezoneNamesData","formatDate","isNullOrZero"],(function(a,b,c,d,e,f,g){"use strict";var h="D, M j, Y",i="g:i A",j=null;function a(a){return a.split(/ /g).map(function(a){return""+a.substring(0,1).toUpperCase()+a.substring(1)}).join(" ")}function b(a){return typeof a==="function"}function k(a,b){b===void 0&&(b=i);return c("formatDate")(a,b)}function l(a,b){b===void 0&&(b=h);return c("formatDate")(a,b)}function m(a){return l(a.start_time)}function n(a){var b=k(a.start_time);a=k(a.end_time);return b+" - "+a}function o(a,b){a={start_time:a,end_time:b};b=m(a);a=n(a);return b+" "+a}function e(a,b){b=c("isNullOrZero")(b)?d("DateConsts").SEC_PER_HOUR/2:b;return o(a,a+b)}function p(a){return a.getDay()===d("DateConsts").DAYS.SATURDAY||a.getDay()===d("DateConsts").DAYS.SUNDAY}function f(a,b){if(b<=0)return 0;var c=0;for(var d=1;d0;return{firstSlotStart:b?a[0].start_time:-1,lastSlotStart:b?a[a.length-1].start_time:-1,numSlots:a.length}}function A(){j||(j=d("Timezone").registerNamesModule(c("TimezoneNamesData")))}function B(){A();return d("Timezone").getExactName(d("Timezone").getEnvironmentTimezoneID())}function C(a,b){var e=d("Timezone").getEnvironmentTimezoneID();b=y(b);if(b!==null){e=c("DateTime").create(a,e).getParallel(b).getUnixTimestamp();return Math.floor(e/d("DateConsts").MS_PER_SEC)}else return a}g.capitalize=a;g.isFunction=b;g.getTimeStrWithFormat=k;g.getDateStrWithFormat=l;g.getTimeSlotDateStr=m;g.getTimeSlotTimeStr=n;g.getTimeSlotStr=o;g.getTimestampStr=e;g.isWeekend=p;g.deltaWeekDaysFromDeltaBusinessDays=f;g.dateWithDelta=q;g.dateWithDeltaDays=r;g.startOfMonday=s;g.startOfDay=t;g.endOfDay=u;g.endOfFriday=v;g.getDateFromLocalDate=w;g.getTimezoneOffset=x;g.getTimezoneID=y;g.getFirstAndLastSlotStartTimes=z;g.setupTimezoneNamesModule=A;g.getTimezoneString=B;g.convertDateToTimezone=C}),98);
-----
isNullOrZero",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a==null||a===0}f["default"]=a}),66);
-----
SUIInlineTypeahead.react",["cx","AbstractTypeahead.react","SUISpinner.react","SUITheme","SUITokenizerItemList.react","SUITypeaheadNavigation","SearchSourceQueryStatus","SearchableEntry","createObjectFrom","isNullOrZero","joinClasses","prop-types","react","withSUITheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=1e3;b={allowShowingSpinner:!1,areCategoriesCollapsible:!1,hasCategories:!1,hideSingleCategory:!1,shouldVirtualize:!0,shouldWrapSubtitle:!1,maxEntries:a};var j={queryString:"",isSearching:!1};e=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=i.createRef();e.$2=!1;e.$4=i.createRef();e.$6=function(a){e.props.hasCategories&&e.props.areCategoriesCollapsible&&e.$4.current!=null&&a!=null&&e.$4.current.expandCategoryForEntry(a)};e.$7=function(){e.$2&&e.setState({isSearching:!0})};e.$8=function(a){a=a.target.value;e.setState({queryString:a});e.props.onQueryChange&&e.props.onQueryChange(a)};e.$9=function(a,b){b.stopPropagation(),e.props.onRemoveSearchResult&&e.props.onRemoveSearchResult(a)};e.$10=function(a){if(e.$5(a))return;e.props.onChange(a);e.$2&&e.setState({queryString:""})};e.$11=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&e.setState({isSearching:!1}),e.props.onEntriesFound&&e.props.onEntriesFound(a)};e.$12=function(a){e.setState({isSearching:!1}),e.props.onNoEntriesFound&&e.props.onNoEntriesFound()};e.$5=function(a){var b=e.props,c=b.disabledEntryIDs;b=b.getDisableStateForEntry;c=c?c.has(a.getUniqueID()):!1;b&&(c=c||b(a));return c};e.state=j;e.$3=new(c("SUITypeaheadNavigation"))(e.$5,e.$6);return e}var e=b.prototype;e.componentDidMount=function(){this.$2=!0};e.componentWillUnmount=function(){this.$2=!1};e.focusInput=function(){this.$1.current&&this.$1.current.focusInput()};e.render=function(){var a=c("SUITheme").get(this).SUIInlineTypeahead,b=a.searchIcon,d=this.state.isSearching&&this.props.allowShowingSpinner;return i.jsxs("div",{className:c("joinClasses")(this.props.className,"_1vdu"),"data-testid":void 0,style:this.props.style,children:[i.jsx(c("AbstractTypeahead.react"),{additionalElements:this.props.additionalElements,ariaLabel:this.props.ariaLabel,autoHighlight:!0,"data-testid":void 0,excludedEntries:this.props.excludedEntryIDs?c("createObjectFrom")(Array.from(this.props.excludedEntryIDs)):void 0,hideViewWithEntries:!1,inputClassName:"_1vdv"+(d?" _35mr":""),inputRightChild:d?i.jsx(c("SUISpinner.react"),{className:"_35ms"}):null,inputStyle:a.inputTextColor!=null?{color:a.inputTextColor}:void 0,navigation:this.$3,onBlur:this.props.onBlur,onChange:this.$8,onEntriesFound:this.$11,onFocus:this.props.onFocus,onNoEntriesFound:this.$12,onSearch:this.$7,onSelectAttempt:this.$10,placeholder:this.props.placeholder,presenter:{ViewRenderer:c("SUITokenizerItemList.react"),alwaysVisibleOnFocus:this.props.emptySearchResultsContent!=null||this.props.beforeSearchResults!=null,extraRendererProps:{areCategoriesCollapsible:this.props.areCategoriesCollapsible,initiallyExpandedCategories:this.props.initiallyExpandedCategories,categoriesCompare:this.props.categoriesCompare,categoryItemCompare:this.props.categoryItemCompare,categoryHeader:this.props.categoryHeader,getCategoryHeaderProps:this.props.getCategoryHeaderProps,getCategorizedItems:this.props.getCategorizedItems,getLabelStyleForEntry:this.props.getLabelStyleForEntry,getLeftContentForEntry:this.props.getLeftContentForEntry,getRightContentForEntry:this.props.getRightContentForEntry,getSubtitleContentForEntry:this.props.getSubtitleContentForEntry,getTooltipInfo:this.props.getTooltipForEntry,hasCategories:this.props.hasCategories,hideSingleCategory:this.props.hideSingleCategory,isDisabledEntry:this.$5,emptySearchResultsContent:this.props.emptySearchResultsContent,customHeader:this.props.beforeSearchResults,onEndOfListReached:this.props.onEndOfListReached,onRemoveSearchResult:this.props.onRemoveSearchResult?this.$9:null,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,selectedEntries:this.props.selectedEntries,shouldContainWheelEvent:!0,shouldVirtualize:this.props.shouldVirtualize,shouldWrapSubtitle:this.props.shouldWrapSubtitle,style:{borderTop:"1px solid "+a.dividerBorderColor},theme:c("SUITheme").get(this),listMaxHeight:c("isNullOrZero")(this.props.maxListHeight)?null:this.props.maxListHeight,ref:this.$4},maxEntries:this.props.maxEntries,useLayer:!1},queryString:this.state.queryString,ref:this.$1,scrollIntoViewOnHighlight:!this.props.shouldVirtualize,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,selectOnBlur:!1,selectedEntries:this.props.selectedEntries||void 0,selectedEntry:this.props.selectedEntry||void 0,showEntriesOnFocus:!0}),i.cloneElement(b,{className:c("joinClasses")("_1vdw",k(b))})]})};return b}(i.PureComponent);e.propTypes={additionalElements:c("prop-types").node,categoriesCompare:c("prop-types").func,hasCategories:c("prop-types").bool.isRequired,hideSingleCategory:c("prop-types").bool.isRequired,allowShowingSpinner:c("prop-types").bool,areCategoriesCollapsible:c("prop-types").bool,initiallyExpandedCategories:c("prop-types").arrayOf(c("prop-types").string),onChange:c("prop-types").func.isRequired,searchSource:c("prop-types").object.isRequired,disabledEntryIDs:c("prop-types").instanceOf(Set),emptySearchResultsContent:c("prop-types").node,beforeSearchResults:c("prop-types").node,excludedEntryIDs:c("prop-types").object,getDisableStateForEntry:c("prop-types").func,getCategoryHeaderProps:c("prop-types").func,getCategorizedItems:c("prop-types").func,getLabelStyleForEntry:c("prop-types").func,getLeftContentForEntry:c("prop-types").func,getRightContentForEntry:c("prop-types").func,getTooltipForEntry:c("prop-types").func,header:c("prop-types").node,inputRightChild:c("prop-types").node,onBlur:c("prop-types").func,onEndOfListReached:c("prop-types").func,onFocus:c("prop-types").func,onRemoveSearchResult:c("prop-types").func,placeholder:c("prop-types").string,scrollToSelectionOnFirstRender:c("prop-types").bool,searchSourceOptions:c("prop-types").object,selectedEntry:c("prop-types").instanceOf(c("SearchableEntry")),shouldVirtualize:c("prop-types").bool.isRequired,shouldWrapSubtitle:c("prop-types").bool,style:c("prop-types").object,theme:c("prop-types").instanceOf(c("SUITheme")),maxEntries:c("prop-types").number};e.defaultProps=b;function k(a){a=a.props;return a!=null&&typeof a==="object"&&typeof a.className==="string"?a.className:null}f=c("withSUITheme")(e);g["default"]=f}),98);
-----