RxBuyFlowSubtotalBNPLContent.react",["CometRelay","ConstUriUtils","DollyStoreSiteTypeContext","RxBuyFlowOrchestrationContext","RxBuyFlowSubtotalBNPLContentQuery.graphql","RxFrameContext","RxLensContext","StoreAffirmPayLaterMessage.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=s,d=c.useContext,m=c.useMemo;function p(t){var a,i,l=t.placement,s=t.xstyle,c=d(r("RxFrameContext")),p=c.selectedFrame,_=d(r("RxLensContext")),f=_.getUserSelectedOptionForStep,g=_.selectedRxLens,h=d(r("RxBuyFlowOrchestrationContext")),y=h.currentStep,C=h.steps,b=m(function(){var e=[p==null?void 0:p.product_id].filter(Boolean);if(g==null)return e;var t=C.slice(0,C.indexOf(y)+1).map(function(e){return f!=null?f(e):null}).filter(Boolean);return e.concat(t)},[p,g,f,y,C]),v=b.join(","),S=o("DollyStoreSiteTypeContext").useSiteTypeContext(),R=S.siteType,L=o("CometRelay").useLazyLoadQuery(e!==void 0?e:e=n("RxBuyFlowSubtotalBNPLContentQuery.graphql"),{product_ids:b,site_type:R,pay_later_provider:"AFFIRM"},{fetchKey:v}),E=L==null||(a=L.xfb_dolly_marketing_rx_pay_later_messaging_from_product)==null?void 0:a.formatted_installment_amount,k=L==null||(i=L.xfb_dolly_marketing_rx_pay_later_messaging_from_product)==null?void 0:i.click_url;if(E==null||k==null)return null;var I=o("ConstUriUtils").getUri(k);return I==null?null:u.jsx(r("StoreAffirmPayLaterMessage.react"),{clickUrl:I,periodicPaymentFormatedAmount:E,placement:l,xstyle:s})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98);
-----
RxBuyFlowSubtotalBNPLContentQuery.graphql",["RxBuyFlowSubtotalBNPLContentQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"pay_later_provider"},t={defaultValue:null,kind:"LocalArgument",name:"product_ids"},r={defaultValue:null,kind:"LocalArgument",name:"site_type"},o=[{alias:null,args:[{kind:"Variable",name:"preferred_pay_later_provider",variableName:"pay_later_provider"},{kind:"Variable",name:"product_ids",variableName:"product_ids"},{kind:"Variable",name:"site_type",variableName:"site_type"}],concreteType:"XFBDollyMarketingRxPayLaterMessaging",kind:"LinkedField",name:"xfb_dolly_marketing_rx_pay_later_messaging_from_product",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"formatted_installment_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"click_url",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,r],kind:"Fragment",metadata:null,name:"RxBuyFlowSubtotalBNPLContentQuery",selections:o,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,r,e],kind:"Operation",name:"RxBuyFlowSubtotalBNPLContentQuery",selections:o},params:{id:n("RxBuyFlowSubtotalBNPLContentQuery_facebookRelayOperation"),metadata:{},name:"RxBuyFlowSubtotalBNPLContentQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
RxBuyFlowSubtotalBNPLContentQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25731388056465663"}),null);
-----
-----
RxBuyFlowSubtotalBNPLContentQuery.graphql",["RxBuyFlowSubtotalBNPLContentQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"pay_later_provider"},t={defaultValue:null,kind:"LocalArgument",name:"product_ids"},r={defaultValue:null,kind:"LocalArgument",name:"site_type"},o=[{alias:null,args:[{kind:"Variable",name:"preferred_pay_later_provider",variableName:"pay_later_provider"},{kind:"Variable",name:"product_ids",variableName:"product_ids"},{kind:"Variable",name:"site_type",variableName:"site_type"}],concreteType:"XFBDollyMarketingRxPayLaterMessaging",kind:"LinkedField",name:"xfb_dolly_marketing_rx_pay_later_messaging_from_product",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"formatted_installment_amount",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"click_url",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,r],kind:"Fragment",metadata:null,name:"RxBuyFlowSubtotalBNPLContentQuery",selections:o,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,r,e],kind:"Operation",name:"RxBuyFlowSubtotalBNPLContentQuery",selections:o},params:{id:n("RxBuyFlowSubtotalBNPLContentQuery_facebookRelayOperation"),metadata:{},name:"RxBuyFlowSubtotalBNPLContentQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
RxBuyFlowSubtotalBNPLContentQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25731388056465663"}),null);
-----