{"version":3,"file":"chunks/294fe8fa8ea0ae.js","mappings":"8KASMA,EAAkB,uCAClBC,EACJ,CACEC,IAAKF,EACLG,OAAQH,EACRI,QAAS,uCACTC,WAAY,wCACZC,EAAAA,EAAAA,mBAAiCN,EAE/BO,EAAcC,EAAAA,uBAAAA,YACdC,EACJ,CACEP,IAAKM,EAAAA,uBAAAA,YACLJ,QAASI,EAAAA,uBAAAA,QACTH,WAAYG,EAAAA,uBAAAA,YACZF,EAAAA,EAAAA,mBAAiCC,EAE/BG,EAAqB,SAAHC,GAAwC,IAAAC,EAAlCC,EAAQF,EAARE,SACtBC,GAAwD,QAAnCF,EAACG,EAAAA,EAAAA,UAAkB,wBAAgB,IAAAH,EAAAA,EAAI,IAAII,QACpE,MACA,IAKF,OAFiBF,GAA6C,KAAvBA,EAInCG,EAAAA,cAACC,EAAAA,2BAA0B,CACzBC,QAAS,CACPlB,OAAAA,EACAQ,YAAAA,EACAW,UAAW,wBAEbC,YAAa,CAAEP,mBAAAA,IAEdD,GAIE,IAEX,EAEMS,EAAe,WAWnB,OAViBC,IAAAA,mBACf,mBACA,YACA,WAK0BA,IAAAA,UAAuB,qCAEtBN,EAAAA,cAAA,cAAQ,YAAoB,IAC3D,EAUA,QARgB,WACd,OACEA,EAAAA,cAACP,EAAkB,KACjBO,EAAAA,cAACK,EAAY,MAGnB,C","sources":["webpack:///./resources/js/react/cms-components/cart-btn/CartBtn.tsx"],"sourcesContent":["import FeatureGates, {\n FeatureGateEnvironment,\n} from \"@atlassian/feature-gate-js-client\";\nimport { FeatureGatesInitialization } from \"@atlassian/feature-gates-react\";\nimport { PropsWithChildren } from \"react\";\nimport Environment from \"../../../common/environment\";\nimport storage from \"../../../utils/storage\";\nimport React from \"react\";\n\nconst DEFAULT_API_KEY = \"ab9944a4-9eb2-482b-b997-36f41f3a1edf\";\nconst apiKey =\n {\n dev: DEFAULT_API_KEY,\n author: DEFAULT_API_KEY,\n staging: \"ff9c70b0-ab7e-4abc-be4f-53f9c3fd37d6\",\n production: \"4e18bcb9-52fb-4f76-b7b6-a0d9d8e56f8f\",\n }[Environment.getEnvironment()] || DEFAULT_API_KEY;\n\nconst DEFAULT_ENV = FeatureGateEnvironment.Development;\nconst environment =\n {\n dev: FeatureGateEnvironment.Development,\n staging: FeatureGateEnvironment.Staging,\n production: FeatureGateEnvironment.Production,\n }[Environment.getEnvironment()] || DEFAULT_ENV;\n\nconst FeatureGateWrapper = ({ children }: PropsWithChildren) => {\n const atlassianAccountId = (storage.getCookie(\"__aid_user_id\") ?? \"\").replace(\n /\\\"/g,\n \"\"\n );\n\n const doRender = atlassianAccountId && atlassianAccountId !== \"\";\n\n if (doRender) {\n return (\n \n {children}\n \n );\n } else {\n return null;\n }\n};\n\nconst CartBtnInner = () => {\n const enrolled = FeatureGates.getExperimentValue(\n \"aa_test_wac_cart\",\n \"treatment\",\n \"control\"\n );\n\n // feature gate for WAC Cart development\n // TODO: remove feature gate before starting experiment\n const featureGateEnrolled = FeatureGates.checkGate(\"wac_cart_development_feature_gate\");\n \n return featureGateEnrolled ? : null;\n};\n\nconst CartBtn = () => {\n return (\n \n \n \n );\n};\n\nexport default CartBtn;\n"],"names":["DEFAULT_API_KEY","apiKey","dev","author","staging","production","Environment","DEFAULT_ENV","FeatureGateEnvironment","environment","FeatureGateWrapper","_ref","_storage$getCookie","children","atlassianAccountId","storage","replace","React","FeatureGatesInitialization","options","targetApp","identifiers","CartBtnInner","FeatureGates"],"sourceRoot":""}