import{u as p}from"./vendor.BXe-L2nx.js";import{o as E,p as c,q as e,r as t,b as _,t as v,v as h,w as g,L as f,T as P,x as R}from"./app.aa9qjHTz.js";import{u as y}from"./RememberMeDescriptionText.D6KFhzSy.js";function G(){const{geolocation:r}=E(),n=c({key:"remember_me_non_gdpr_variant",variants:[e.Control,e.Treatment1,e.Treatment2]}),a=c({key:"remember_me_gdpr_variant",variants:[t.Control,t.Treatment1,t.Treatment2]}),{client:s}=_(),l=s.unstable_getSerialization("experiments"),u=l?.find(m=>m.clientHandle===v)?.variant,d=l?.find(m=>m.clientHandle===h)?.variant,i=a??d,o=n??u,T=!g(r.country.code);return!a&&!n&&T&&u?{segment:null,variant:null,isTreatment:!1}:i?i===t.Treatment1?{segment:"GDPR",variant:t.Treatment1,isTreatment:!0}:i===t.Treatment2?{segment:"GDPR",variant:t.Treatment2,isTreatment:!0}:{segment:"GDPR",variant:t.Control,isTreatment:!1}:o?o===e.Treatment1?{segment:"Non-GDPR",variant:e.Treatment1,isTreatment:!0}:o===e.Treatment2?{segment:"Non-GDPR",variant:e.Treatment2,isTreatment:!0}:{segment:"Non-GDPR",variant:e.Control,isTreatment:!1}:{segment:null,variant:null,isTreatment:!1}}function x(){return!!R().shopPayArtifact.value?.optIn}function M(){const{i18n:r}=_(),n=y(),a=x(),s=G();return!n||!a||s.isTreatment?null:p(P,{color:"subdued",children:r.translate("sign_up_footer.button_footer",{privacy_href:p(f,{target:"_blank",href:"https://www.shopify.com/legal/privacy/app-users",children:r.translate("sign_up_footer.privacy_policy")}),terms_href:p(f,{target:"_blank",href:"https://shop.app/terms-of-service",children:r.translate("sign_up_footer.terms_of_service")})})})}export{M as S,G as u};
