")),p&&p.appendTo(d),h(c,n),c.appendTo(d),u&&u.appendTo(d)),(null===(i=RSConfig)||void 0===i||null===(o=i.product)||void 0===o||!o.available)&&"false"==(null===(a=RS.Config)||void 0===a?void 0:a.widgetEnabledOnSoldVariant))return;"BEFORE"===s?d.insertBefore(f):"AFTER"===s?d.insertAfter(f):"FIRST_CHILD"===s?d.prependTo(f):"LAST_CHILD"===s&&d.appendTo(f),jQuery("#appstle_subscription_widget"+P).find(".appstle_subscription_wrapper input[type=radio]").on("change",function(){var n=jQuery("#appstle_subscription_widget"+P+" .appstle_subscribe_option");0".concat(t.customCSS,"")).appendTo(jQuery("head"))}}),Shopify&&Shopify.Checkout&&Shopify.Checkout.hasSellingPlan&&null!==(e=RS)&&void 0!==e&&null!==(t=e.Config)&&void 0!==t&&t.showCheckoutSubscriptionBtn){var a="/"+RS.Config.manageSubscriptionUrl,s=RS.Config.orderStatusManageSubscriptionDescription||"Continue to your account to view and manage your subscriptions.";if(Shopify.checkout&&Shopify.checkout.customer_id){console.log("cusomterId="+Shopify.checkout.customer_id);var r={async:!0,crossDomain:!0,url:location.origin+"/apps/subscriptions?action=customer_payment_token&customer_id="+Shopify.checkout.customer_id,method:"GET",headers:{accept:"*/*","cache-control":"no-cache"}};jQuery.ajax(r).done(function(n){a=a+"?token="+n.token,Shopify.Checkout.OrderStatus.addContentBox('