@levi-gemcommerce/analytics 1.0.0-dev.21 → 1.0.0-dev.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/esm/api/graphql/fragments/pathAnalytic.generated.d.ts +25 -0
  2. package/dist/esm/components/CardPathAnalysis/CardJourneyAnalysis.d.ts +7 -0
  3. package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.d.ts +8 -0
  4. package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.d.ts +15 -0
  5. package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.d.ts +6 -0
  6. package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.d.ts +5 -0
  7. package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.d.ts +1 -0
  8. package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.d.ts +13 -0
  9. package/dist/esm/components/CardPathAnalysis/components/CardPathAnalysis/index.d.ts +1 -0
  10. package/dist/esm/components/CardPathAnalysis/components/PathAnalysisChart.d.ts +7 -0
  11. package/dist/esm/components/CardPathAnalysis/components/index.d.ts +1 -0
  12. package/dist/esm/components/CardPathAnalysis/configs/index.d.ts +2 -0
  13. package/dist/esm/components/CardPathAnalysis/constants/index.d.ts +1 -0
  14. package/dist/esm/components/CardPathAnalysis/constants/path-analysis.d.ts +73 -0
  15. package/dist/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.d.ts +56 -0
  16. package/dist/esm/components/CardPathAnalysis/contexts/index.d.ts +1 -0
  17. package/dist/esm/components/CardPathAnalysis/helpers/index.d.ts +2 -0
  18. package/dist/esm/components/CardPathAnalysis/helpers/metricHelpers.d.ts +16 -0
  19. package/dist/esm/components/CardPathAnalysis/helpers/pathAnalysis.d.ts +12 -0
  20. package/dist/esm/components/CardPathAnalysis/helpers/pathAnalysisChart.d.ts +17 -0
  21. package/dist/esm/components/CardPathAnalysis/helpers/treeUtils.d.ts +7 -0
  22. package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalysisChart.d.ts +15 -0
  23. package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.d.ts +21 -0
  24. package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalysisHeatmap.d.ts +4 -0
  25. package/dist/esm/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.d.ts +10 -0
  26. package/dist/esm/components/CardPathAnalysis/index.d.ts +4 -0
  27. package/dist/esm/components/CardPathAnalysis/stores/funnel-chart.d.ts +12 -0
  28. package/dist/esm/components/CardPathAnalysis/stores/index.d.ts +3 -0
  29. package/dist/esm/components/CardPathAnalysis/stores/path-analysis-campaign.d.ts +10 -0
  30. package/dist/esm/components/CardPathAnalysis/stores/path-analysis.d.ts +6 -0
  31. package/dist/esm/components/CardPathAnalysis/types/index.d.ts +1 -0
  32. package/dist/esm/components/CardPathAnalysis/types/path-analysis.d.ts +6 -0
  33. package/dist/esm/gemxql.js +63 -0
  34. package/dist/esm/gemxql.mjs +63 -0
  35. package/dist/esm/index.js +145 -1
  36. package/dist/esm/index.mjs +145 -1
  37. package/dist/esm/modules/analytics/index.d.ts +14 -0
  38. package/dist/esm/modules/analytics/types.d.ts +23 -0
  39. package/dist/esm/modules/apps/index.d.ts +4 -0
  40. package/dist/esm/modules/heatmap/hooks/useHeatmapModalMonitor.d.ts +3 -0
  41. package/dist/esm/modules/heatmap/index.d.ts +7 -0
  42. package/dist/esm/modules/heatmap/types/index.d.ts +33 -0
  43. package/dist/esm/modules/page-analytic/index.d.ts +13 -0
  44. package/dist/esm/modules/page-analytic/modules/analytic/index.d.ts +5 -0
  45. package/dist/esm/modules/shopify/index.d.ts +6 -0
  46. package/dist/esm/providers/PricingProvider.d.ts +51 -0
  47. package/dist/esm/providers/index.d.ts +2 -0
  48. package/dist/esm/shared/components/GBox/GBox.d.ts +9 -0
  49. package/dist/esm/shared/components/GBox/index.d.ts +1 -0
  50. package/dist/esm/shared/components/GFeatureLocked/GFeatureLocked.d.ts +14 -0
  51. package/dist/esm/shared/components/GFeatureLocked/constants.d.ts +3 -0
  52. package/dist/esm/shared/components/GFeatureLocked/index.d.ts +2 -0
  53. package/dist/esm/shared/components/GFeatureLocked/types.d.ts +15 -0
  54. package/dist/esm/shared/components/index.d.ts +2 -0
  55. package/dist/esm/types/index.d.ts +1 -0
  56. package/dist/esm/types/metric.d.ts +17 -1
  57. package/dist/esm/types/pricing.d.ts +33 -0
  58. package/dist/esm/types/template.d.ts +19 -0
  59. package/dist/esm/types.js +39 -1
  60. package/dist/esm/types.mjs +39 -1
  61. package/dist/esm/utils/deep-copy.d.ts +1 -0
  62. package/dist/esm/utils/index.d.ts +2 -0
  63. package/dist/esm/utils/template-type.d.ts +2 -0
  64. package/dist/style.css +1 -1
  65. package/dist/umd/esm/api/graphql/fragments/pathAnalytic.generated.d.ts +25 -0
  66. package/dist/umd/esm/components/CardPathAnalysis/CardJourneyAnalysis.d.ts +7 -0
  67. package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardAnalyticEmpty.d.ts +8 -0
  68. package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysis.d.ts +15 -0
  69. package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisContent.d.ts +6 -0
  70. package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisEmpty.d.ts +5 -0
  71. package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisSkeleton.d.ts +1 -0
  72. package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/CardPathAnalysisWrapper.d.ts +13 -0
  73. package/dist/umd/esm/components/CardPathAnalysis/components/CardPathAnalysis/index.d.ts +1 -0
  74. package/dist/umd/esm/components/CardPathAnalysis/components/PathAnalysisChart.d.ts +7 -0
  75. package/dist/umd/esm/components/CardPathAnalysis/components/index.d.ts +1 -0
  76. package/dist/umd/esm/components/CardPathAnalysis/configs/index.d.ts +2 -0
  77. package/dist/umd/esm/components/CardPathAnalysis/constants/index.d.ts +1 -0
  78. package/dist/umd/esm/components/CardPathAnalysis/constants/path-analysis.d.ts +73 -0
  79. package/dist/umd/esm/components/CardPathAnalysis/contexts/PathAnalysisProvider.d.ts +56 -0
  80. package/dist/umd/esm/components/CardPathAnalysis/contexts/index.d.ts +1 -0
  81. package/dist/umd/esm/components/CardPathAnalysis/helpers/index.d.ts +2 -0
  82. package/dist/umd/esm/components/CardPathAnalysis/helpers/metricHelpers.d.ts +16 -0
  83. package/dist/umd/esm/components/CardPathAnalysis/helpers/pathAnalysis.d.ts +12 -0
  84. package/dist/umd/esm/components/CardPathAnalysis/helpers/pathAnalysisChart.d.ts +17 -0
  85. package/dist/umd/esm/components/CardPathAnalysis/helpers/treeUtils.d.ts +7 -0
  86. package/dist/umd/esm/components/CardPathAnalysis/hooks/usePathAnalysisChart.d.ts +15 -0
  87. package/dist/umd/esm/components/CardPathAnalysis/hooks/usePathAnalysisFunnel.d.ts +21 -0
  88. package/dist/umd/esm/components/CardPathAnalysis/hooks/usePathAnalysisHeatmap.d.ts +4 -0
  89. package/dist/umd/esm/components/CardPathAnalysis/hooks/usePathAnalyticsMerger.d.ts +10 -0
  90. package/dist/umd/esm/components/CardPathAnalysis/index.d.ts +4 -0
  91. package/dist/umd/esm/components/CardPathAnalysis/stores/funnel-chart.d.ts +12 -0
  92. package/dist/umd/esm/components/CardPathAnalysis/stores/index.d.ts +3 -0
  93. package/dist/umd/esm/components/CardPathAnalysis/stores/path-analysis-campaign.d.ts +10 -0
  94. package/dist/umd/esm/components/CardPathAnalysis/stores/path-analysis.d.ts +6 -0
  95. package/dist/umd/esm/components/CardPathAnalysis/types/index.d.ts +1 -0
  96. package/dist/umd/esm/components/CardPathAnalysis/types/path-analysis.d.ts +6 -0
  97. package/dist/umd/esm/modules/analytics/index.d.ts +14 -0
  98. package/dist/umd/esm/modules/analytics/types.d.ts +23 -0
  99. package/dist/umd/esm/modules/apps/index.d.ts +4 -0
  100. package/dist/umd/esm/modules/heatmap/hooks/useHeatmapModalMonitor.d.ts +3 -0
  101. package/dist/umd/esm/modules/heatmap/index.d.ts +7 -0
  102. package/dist/umd/esm/modules/heatmap/types/index.d.ts +33 -0
  103. package/dist/umd/esm/modules/page-analytic/index.d.ts +13 -0
  104. package/dist/umd/esm/modules/page-analytic/modules/analytic/index.d.ts +5 -0
  105. package/dist/umd/esm/modules/shopify/index.d.ts +6 -0
  106. package/dist/umd/esm/providers/PricingProvider.d.ts +51 -0
  107. package/dist/umd/esm/providers/index.d.ts +2 -0
  108. package/dist/umd/esm/shared/components/GBox/GBox.d.ts +9 -0
  109. package/dist/umd/esm/shared/components/GBox/index.d.ts +1 -0
  110. package/dist/umd/esm/shared/components/GFeatureLocked/GFeatureLocked.d.ts +14 -0
  111. package/dist/umd/esm/shared/components/GFeatureLocked/constants.d.ts +3 -0
  112. package/dist/umd/esm/shared/components/GFeatureLocked/index.d.ts +2 -0
  113. package/dist/umd/esm/shared/components/GFeatureLocked/types.d.ts +15 -0
  114. package/dist/umd/esm/shared/components/index.d.ts +2 -0
  115. package/dist/umd/esm/types/index.d.ts +1 -0
  116. package/dist/umd/esm/types/metric.d.ts +17 -1
  117. package/dist/umd/esm/types/pricing.d.ts +33 -0
  118. package/dist/umd/esm/types/template.d.ts +19 -0
  119. package/dist/umd/esm/utils/deep-copy.d.ts +1 -0
  120. package/dist/umd/esm/utils/index.d.ts +2 -0
  121. package/dist/umd/esm/utils/template-type.d.ts +2 -0
  122. package/dist/umd/gemxql.js +1 -1
  123. package/dist/umd/index.js +1 -1
  124. package/dist/umd/types.js +1 -1
  125. package/package.json +1 -1
package/dist/umd/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("@shopify/polaris"),require("react"),require("dayjs"),require("dayjs/plugin/quarterOfYear.js"),require("dayjs/plugin/timezone.js"),require("dayjs/plugin/utc.js"),require("react-i18next"),require("zustand"),require("@tanstack/react-query"),require("@shopify/polaris-viz"),require("@shopify/polaris-viz/build/esm/styles.css?url")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","@shopify/polaris","react","dayjs","dayjs/plugin/quarterOfYear.js","dayjs/plugin/timezone.js","dayjs/plugin/utc.js","react-i18next","zustand","@tanstack/react-query","@shopify/polaris-viz","@shopify/polaris-viz/build/esm/styles.css?url"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).GemAnalytics={},e.jsxRuntime,e.Polaris,e.React,e.dayjs,e.quarterOfYear,e.timezone,e.utc,e.reactI18next,e.zustand,e.reactQuery,e.polarisViz,e.chartStyle)}(this,function(e,t,i,n,a,r,s,o,l,c,d,u,m){"use strict";var h;!function(e){e.SESSION="sessions",e.ORDERS="orders",e.PAGE_VIEWS="pageviews",e.VISITORS="visitors",e.BOUNCE_RATE="bounce_rate",e.CTR="ctr",e.CONVERSION_RATE="conversion_rate",e.AVG_TIME_ON_PAGE="average_time_on_page",e.ADDED_TO_CART="added_to_cart",e.ADD_TO_CART_RATE="added_to_cart_rate",e.REACHED_CHECKOUT="sessions_that_reached_checkout",e.COMPLETE_CHECKOUT="sessions_that_completed_checkout",e.CART_ADDITION="sessions_with_cart_additions",e.AOV="aov",e.REVENUE="revenue",e.RPV="revenue_per_visitor",e.VISITOR_ITEMS="visitor_items",e.DEVICE_ITEMS="device_items",e.TRAFFIC_SOURCE_ITEMS="traffic_source_items"}(h||(h={}));const A={[h.SESSION]:{title:"Sessions",content:"A period during which a visitor interacts with your online store"},[h.VISITORS]:{title:"Visitors",content:"Number of unique individuals who visit your online store"},[h.BOUNCE_RATE]:{title:"Bounce rate",content:"Percentage of visitors who leave your store after viewing only one page, without interacting further",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Bounce rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"sessions with a pageview"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total sessions"})]})},[h.CTR]:{title:"Click-through rate",content:"Percentage of clicks to open new page, compared to the number of times the page was viewed",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Click-through rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total clicks"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total pageviews"})]})},[h.AVG_TIME_ON_PAGE]:{title:"Average time on page",content:"Average duration that visitors spend on a page before clicking to open new page",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Average time on page"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total time on page"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"(total pageviews - total exits)"})]})},[h.PAGE_VIEWS]:{title:"Pageviews",content:"Number of times a page on your online store has been viewed by visitors"},[h.RPV]:{title:"Revenue per visitor",content:"Average revenue generated from each visitor",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Revenue per visitor"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total revenue"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total visitors"})]})},[h.ADDED_TO_CART]:{title:"Added to cart",content:"Total number of the event when a customer adds a product to their cart on your online store"},[h.REACHED_CHECKOUT]:{title:"Sessions that reached checkout",content:"Sessions in your online store in which the checkout page was reached"},[h.COMPLETE_CHECKOUT]:{title:"Sessions that completed checkout",content:"Sessions in your online store in which a purchase was completed"},[h.ORDERS]:{title:"Orders",content:"Number of orders that went through this pages"},[h.CONVERSION_RATE]:{title:"Conversion rate",content:"Percentage of online store sessions that completed an order",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Conversion rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"sessions that completed checkout"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total sessions"})]})},[h.AOV]:{title:"Average order value",content:"Average value of orders placed in your online store",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Average order value"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total revenue"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total orders"})]})},[h.REVENUE]:{title:"Revenue",content:"Total income generated from sales after discounts",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Revenue"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"gross sales"}),t.jsx("span",{className:"formula-operator",children:" - "}),t.jsx("span",{className:"formula-input",children:"discounts"})]})},[h.ADD_TO_CART_RATE]:{title:"Add to cart rate",content:"Percentage of sessions in which the customer added item to the cart",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Added to cart rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"sessions with cart additions"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total sessions"})]})},[h.CART_ADDITION]:{title:"Sessions with cart additions",content:"Sessions in your online store in which a visitor added item to the cart"},[h.VISITOR_ITEMS]:{title:"Sessions by visitor type",content:"<p>Numbers of new and returning visitors</p>",contentList:["New visitor: who accesses your store for the first time after GemX installation","Returning visitor: who comes back to your store after GemX installation"]},[h.DEVICE_ITEMS]:{title:"Sessions by device type",content:"Sessions in your online store by the visitor's device type"},[h.TRAFFIC_SOURCE_ITEMS]:{title:"Sessions by traffic source",content:"Sessions on your page by where visitors come from"}};var g,p,M,T;!function(e){e.ALL_SESSION="ALL_SESSION",e.FIRST_SESSION="FIRST_SESSION",e.PAGE_ONLY="PAGE_ONLY"}(g||(g={})),function(e){e.NEW="new",e.RETURNING="returning"}(p||(p={})),function(e){e.DESKTOP="desktop",e.MOBILE="mobile",e.TABLET="tablet"}(M||(M={})),function(e){e.DIRECT="direct",e.EMAIL="email",e.REFERRAL="referral",e.ORGANIC_SOCIAL="organic-social",e.ORGANIC_SEARCH="organic-search",e.PAID_SOCIAL="paid-social",e.PAID_SEARCH="paid-search",e.SMS="sms"}(T||(T={}));const f=[{value:p.NEW,label:"New"},{value:p.RETURNING,label:"Returning"}],x=[{value:M.DESKTOP,label:"Desktop"},{value:M.TABLET,label:"Tablet"},{value:M.MOBILE,label:"Mobile"}],I=[{value:T.DIRECT,label:"Direct"},{value:T.EMAIL,label:"Email"},{value:T.REFERRAL,label:"Referral"},{value:T.ORGANIC_SOCIAL,label:"Organic social"},{value:T.ORGANIC_SEARCH,label:"Organic search"},{value:T.PAID_SOCIAL,label:"Paid social"},{value:T.PAID_SEARCH,label:"Paid search"},{value:T.SMS,label:"SMS"}],N="Current",j="Previous",D={current:"rgba(64, 176, 230, 1)",comparison:"rgba(161, 202, 231, 1)",all:["#2C7DFF","#F34A70"]},E={POSITIVE:"#007F5F",NEUTRAL:"#4A4A4A"},S="USD";var v="data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSI5MCIKICBoZWlnaHQ9IjcyIgogIHZpZXdCb3g9IjAgMCA5MCA3MiIKICBmaWxsPSJub25lIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKPgogIDxwYXRoCiAgICBkPSJNNDguNzUgMzQuNUM0OS45OTI2IDM0LjUgNTEgMzMuNDkyNiA1MSAzMi4yNUM1MSAzMS4wMDc0IDQ5Ljk5MjYgMzAgNDguNzUgMzBDNDcuNTA3NCAzMCA0Ni41IDMxLjAwNzQgNDYuNSAzMi4yNUM0Ni41IDMzLjQ5MjYgNDcuNTA3NCAzNC41IDQ4Ljc1IDM0LjVaIgogICAgZmlsbD0iIzYxNjE2MSIKICAvPgogIDxwYXRo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MzcuNTU3NiA0MC4yODlaIgogICAgZmlsbD0iIzYxNjE2MSIKICAvPgo8L3N2Zz4K",y=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M3.5 10a.75.75 0 0 1 .75-.75h9.69l-2.72-2.72a.75.75 0 1 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06l2.72-2.72h-9.69a.75.75 0 0 1-.75-.75Z"}))};y.displayName="ArrowRightIcon";var O=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M7.75 3.5a.75.75 0 0 0-1.5 0v.407a3.075 3.075 0 0 0-.702.252 3.75 3.75 0 0 0-1.64 1.639c-.226.444-.32.924-.365 1.47-.043.531-.043 1.187-.043 2v1.464c0 .813 0 1.469.043 2 .045.546.14 1.026.366 1.47a3.75 3.75 0 0 0 1.639 1.64c.444.226.924.32 1.47.365.531.043 1.187.043 2 .043h3.383c.323 0 .542 0 .735-.02a3.75 3.75 0 0 0 3.344-3.344c.02-.193.02-.412.02-.735v-2.883c0-.813 0-1.469-.043-2-.045-.546-.14-1.026-.366-1.47a3.75 3.75 0 0 0-1.639-1.64 3.076 3.076 0 0 0-.702-.251v-.407a.75.75 0 0 0-1.5 0v.259c-.373-.009-.794-.009-1.268-.009h-1.964c-.474 0-.895 0-1.268.009v-.259Zm-1.521 1.995c.197-.1.458-.17.912-.207.462-.037 1.057-.038 1.909-.038h1.9c.853 0 1.447 0 1.91.038.453.037.714.107.912.207.423.216.767.56.983.984.1.197.17.458.207.912.014.18.024.38.029.609h-9.982c.006-.228.015-.429.03-.61.036-.453.106-.714.206-.911a2.25 2.25 0 0 1 .984-.984Zm-1.229 4.005v1.2c0 .853 0 1.447.038 1.91.037.453.107.714.207.912.216.423.56.767.984.983.197.1.458.17.912.207.462.037 1.057.038 1.909.038h3.306c.385 0 .52-.001.626-.012a2.25 2.25 0 0 0 2.006-2.006c.011-.106.012-.241.012-.626v-2.606h-10Z"}))};O.displayName="CalendarIcon";var C=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M15.78 5.97a.75.75 0 0 1 0 1.06l-6.5 6.5a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 1 1 1.06-1.06l2.72 2.72 5.97-5.97a.75.75 0 0 1 1.06 0Z"}))};C.displayName="CheckIcon";var R=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M5.72 8.47a.75.75 0 0 1 1.06 0l3.47 3.47 3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06Z"}))};R.displayName="ChevronDownIcon";var k=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M7.72 14.53a.75.75 0 0 1 0-1.06l3.47-3.47-3.47-3.47a.75.75 0 0 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0Z"}))};k.displayName="ChevronRightIcon";var b=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M14.53 12.28a.75.75 0 0 1-1.06 0l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06Z"}))};b.displayName="ChevronUpIcon";const P=/\.0+$/,w=e=>`${e}`.replace(P,""),L=(e,t=2)=>w(e.toFixed(t)),z=e=>{const[t,i,n]=e.split(".").map(e=>Number(e));return 1e6*(t??0)+1e3*(i??0)+(n??0)},Y=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),U=e=>e>0&&e<.005,B=(e,t,i=2)=>{const n=((e,t,i=2)=>{if("number"!=typeof e||!t)return;return 0===e?0:parseFloat(L(e/t*100,i))})(e,t,i);if("number"==typeof n)return U(n)?"~0%":`${n}%`},H=(e,t=2)=>U(e)?"~0%":`${L(e,t)}%`;function G(e){return"string"==typeof e?e:"object"==typeof e&&null!==e&&Object.keys(e).filter(t=>e[t]).join(" ")}function Q(...e){return e.map(G).filter(Boolean).join(" ")}function _(e,t,i="asc"){if(e===t)return 0;if(void 0===e||void 0===t)return void 0===e&&void 0!==t?"asc"===i?-1:1:void 0===t&&void 0!==e?"asc"===i?1:-1:0;const n=e=>"boolean"!=typeof e&&!isNaN(Date.parse(e)),a=e=>"string"==typeof e;let r=0;if(n(e)&&n(t)){r=(e instanceof Date?e:new Date(e))>(t instanceof Date?t:new Date(t))?1:-1}else r=(a(e)&&a(t),e>t?1:-1);return"asc"===i?-r:r}function F(e,t){return"string"==typeof t?t.replace(/\[(\d+)\]/g,".$1").split(".").reduce((e,t)=>e?.[t],e):e[t]}function V(e,t){return t.reduce((e,t)=>function(e,t){const{attr:i,order:n="asc",preferredValue:a,backupAttr:r,orderArrayAttr:s,orderArray:o}=t;return e.slice().sort((e,t)=>{const l=F(e,i),c=F(t,i);if(void 0!==a){if(l===a&&c!==a)return-1;if(c===a&&l!==a)return 1}if(s===i&&o){const e=o[n];return e.indexOf(l)-e.indexOf(c)}const d=_(l,c,n);return 0!==d?d:r?_(e[r],t[r],n):0})}(e,t),e.slice())}a.extend(o),a.extend(s),a.extend(r);let W="UTC";const J="YYYY-MM-DD HH:mm:ss";const q=e=>e?a(e).tz(W):a().tz(W),X=e=>e?a.tz(a(e).format(J),W):a.tz(a().format(J),W),K=e=>a(e?q(e).format(J):q().format(J)),Z=e=>K(e).toDate();var $;!function(e){e.DAY="DAY",e.HOUR="HOUR",e.MONTH="MONTH",e.QUARTER="QUARTER",e.WEEK="WEEK",e.YEAR="YEAR"}($||($={}));const ee=60,te=3600,ie=(e,t,i)=>{if(!e)return"";const n=i?.isExpandDetail?{formatHouse:"MMM D, h:mm A",formatDay:"MMM D, YYYY",formatMonth:"MMM YYYY",formatYear:"MMM YYYY"}:{formatHouse:"h A",formatDay:"MMM D",formatMonth:"MMM YYYY",formatYear:"YYYY"};switch(t){case $.HOUR:return q(e).format(n.formatHouse);case $.DAY:case $.WEEK:return q(e).format(n.formatDay);case $.MONTH:return q(e).format(n.formatMonth);case $.QUARTER:{const t=q(e);return`Q${t.quarter()} ${t.format("YYYY")}`}case $.YEAR:return q(e).format(n.formatYear)}return q(e).format(n.formatMonth)},ne=({children:e,fullWidth:i=!1,cursor:n="pointer",onClick:a,onMouseEnter:r,onMouseLeave:s})=>t.jsx("div",{role:"button",tabIndex:0,className:Q({"w-full":i,"cursor-pointer":"pointer"===n,"cursor-default":"default"===n,"cursor-not-allowed":"not-allowed"===n}),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},onClick:a,onMouseEnter:r,onMouseLeave:s,children:e}),ae=({onClick:e,active:a,content:r,textProps:s,boxProps:o,disabled:l,icon:c})=>{const d=n.useMemo(()=>l?{borderColor:"border-disabled",background:"bg-surface-disabled",...o}:{shadow:a?"button-inset":"button",background:a?"bg-fill-active":"bg-fill",...o},[a,l,o]),u=n.useMemo(()=>l?"text-[var(--p-color-text-disabled)]":a?"text-[var(--p-color-text-subdued)]":"text-[var(--p-color-text)]",[a,l]),m=n.useMemo(()=>t.jsx(i.Text,{as:"span",variant:"bodyMd",fontWeight:"medium",tone:l?"inherit":s?.tone,truncate:!0,...s?.variant&&{variant:s.variant},children:r}),[r,s,l]),h=n.useCallback(()=>{l||e()},[l,e]);return t.jsx(ne,{cursor:l?"default":"pointer",onClick:h,children:t.jsx("div",{className:Q(u),children:t.jsxs(i.Box,{padding:"150",paddingInline:"300",paddingInlineEnd:"150",borderRadius:"200",...d,children:[c&&t.jsxs(i.InlineStack,{gap:"200",align:"center",wrap:!1,children:[t.jsx(i.Box,{children:t.jsx(i.Icon,{source:c})}),m]}),!c&&t.jsxs(i.InlineGrid,{columns:"1fr 20px",gap:"200",alignItems:"center",children:[m,t.jsx(i.Icon,{source:a?b:R})]})]})})})},re=({height:e,align:a,inlineAlign:r,display:s,...o})=>{const l=n.useMemo(()=>{if("sticky"!==o.position)return{};const e={position:"sticky"};return o.insetInlineStart&&(e.insetInlineStart=4*Number(o.insetInlineStart)),o.insetInlineEnd&&(e.insetInlineEnd=4*Number(o.insetInlineEnd)),o.insetBlockStart&&(e.insetBlockStart=4*Number(o.insetBlockStart)),o.insetBlockEnd&&(e.insetBlockEnd=4*Number(o.insetBlockEnd)),e},[o.position,o.insetInlineStart,o.insetInlineEnd,o.insetBlockStart,o.insetBlockEnd]);return t.jsx("div",{className:"Polaris-GBlockCenter",style:{...l,"--gp-block-center-height":e,"--gp-block-center-display":s,"--gp-block-center-align":a,"--gp-block-center-inline-align":r,"--gp-block-center-overflow-x":o.overflowX,"--gp-block-center-overflow-y":o.overflowY},children:t.jsx(i.Box,{...o})})},se=({isEnabled:e=!0,content:n,maxWidth:a,...r})=>e&&!!n?t.jsx(i.Tooltip,{width:"wide",hoverDelay:500,content:n,...r,accessibilityLabel:a?.toString()}):r.children,oe=({activatorWrapper:e,children:n,iconRight:a,inset:r,stopPropagation:s=!0,onClick:o,themeTone:l="light",variant:c,...d})=>{const u=e||"div",m="neutral"===c,h=m?void 0:c,A=t.jsx(se,{activatorWrapper:"tooltip-content",...d.tooltip,children:t.jsx(u,{className:Q("Polaris-GButton",{"Polaris-GButton--icon-right":a,"Polaris-GButton--dark":"dark"===l,"Polaris-GButton--neutral":m,"cursor-default":d.disabled,"Polaris-GButton--fullWidth":d.fullWidth,flex:r}),onClick:e=>{s&&e.stopPropagation(),d.disabled||o?.()},children:t.jsx(i.Button,{variant:h,...d,children:n})})});return r?t.jsx(i.Box,{padding:"100",children:A}):A},le=({...e})=>e.multiple?t.jsx(ce,{...e}):t.jsx(de,{...e}),ce=({options:e,onChange:a,onChangeSingleValue:r,emptySelected:s,selected:o,onHover:l,itemHovered:c,dependentDisabledValues:d})=>{const[u,m]=n.useState([]),h=e=>{l&&l(e)};return n.useEffect(()=>{m(()=>o?e.filter(e=>o.includes(e.value)).map(e=>e.value):[])},[o]),t.jsx(i.BlockStack,{children:e.map(n=>{const o=d?.has(n.value),l=s&&1===e.filter(e=>e.selected).length&&s,A=()=>{l||(e=>{r&&r(e);const t=u.includes(e)?u.filter(t=>t!==e):[...u,e];m(t),a(t)})(n.value)};return t.jsx("div",{className:Q("flex w-full items-center justify-between",{"cursor-not-allowed":l,"cursor-pointer":!l,"bg-surface-hover rounded-lg":c===n.value}),onClick:()=>{l||n.disabled||A()},onMouseEnter:()=>h(n.value),onMouseLeave:()=>h(void 0),children:l?t.jsx(se,{isEnabled:n.tooltip?.isEnabled,...n.tooltip,children:t.jsx(i.Box,{paddingBlock:"150",paddingInline:"200",width:"100%",children:t.jsxs(i.InlineStack,{blockAlign:"center",gap:"150",children:[t.jsx(i.Checkbox,{label:n.label,labelHidden:!0,checked:n.selected,disabled:!0}),t.jsx(i.Text,{as:"p",variant:"bodyMd",tone:"subdued",children:n.label})]})})}):t.jsx(i.Box,{paddingBlock:"150",paddingInline:"200",minWidth:"0",children:t.jsxs(i.InlineStack,{blockAlign:"center",gap:"150",wrap:!1,children:[t.jsx(i.Checkbox,{label:n.label,labelHidden:!0,checked:!o&&u.includes(n.value),onChange:A,disabled:n.disabled}),t.jsxs(i.Box,{minWidth:"0",children:[t.jsx(i.Text,{as:"p",variant:"bodyMd",truncate:!0,tone:o?"disabled":"inherit",children:n.label}),n.description&&t.jsx(i.Text,{as:"p",variant:"bodySm",tone:"disabled",truncate:!0,children:n.description})]})]})})},n.value)})})},de=({options:e,onChange:n})=>t.jsx(i.BlockStack,{gap:"300",children:e.map(e=>t.jsx(i.RadioButton,{label:e.label,checked:e.selected,onChange:()=>n(e.value),helpText:e.helpText?t.jsx(Ee,{item:e}):void 0},e.value))}),ue=n.forwardRef(({children:e,onClick:i,...a},r)=>{const s=n.useCallback(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i?.())},[i]);return t.jsx("div",{ref:r,...a,role:"button",tabIndex:0,onKeyDown:s,onClick:i,children:e})});ue.displayName="GDiv";const me=/\[(\d+)\](.*?)\[\]/g,he=e=>{const{children:a,transformers:r}=e;if(!r||0===Object.values(r).length)return t.jsx(i.Text,{...e,children:a});return t.jsx(i.Text,{...e,children:"string"==typeof a?(e=>{const i=[];let a=0;return e.replace(me,(t,n,s,o)=>{i.push(e.slice(a,o));const l=r[n];return"function"==typeof l?i.push(l(s)):i.push(t),a=o+t.length,t}),i.push(e.slice(a)),i.map((e,i)=>t.jsx(n.Fragment,{children:e},i))})(a):a})};function Ae({options:e,selected:n,onChange:a}){const r=e=>{a([e])};return t.jsx(i.Box,{padding:"150",children:t.jsx(i.BlockStack,{gap:"100",children:e.map(e=>{const a=n.includes(e.value);return t.jsx("div",{role:"option","aria-selected":a,tabIndex:0,onClick:()=>r(e.value),onKeyDown:t=>{return i=t,n=e.value,void("Enter"!==i.key&&" "!==i.key||(i.preventDefault(),r(n)));var i,n},className:Q("p-1.5 pl-4 rounded-lg cursor-pointer",{"bg-[#F1F1F1]":a,"hover:bg-[#F1F1F1]":!a}),children:t.jsxs(i.InlineStack,{align:"space-between",blockAlign:"center",wrap:!1,gap:"200",children:[t.jsx(i.Box,{minWidth:"0",children:e.label}),a&&t.jsx(i.Box,{children:t.jsx(i.Icon,{source:C})})]})},e.value)})})})}const ge=e=>{const[a,r]=n.useState(!1),{activatorText:s,selected:o,options:l,emptyLabel:c,preferredAlignment:d="right",formatActivatorContent:u=e=>e.join(", ")}=e,m=n.useCallback(()=>r(e=>!e),[]),h=n.useMemo(()=>l.filter(e=>e.active||e.id===o).map(e=>e.content||"").filter(e=>!!e),[l,o]),A=n.useMemo(()=>{if(h.length){const e=u(h);return s?`${s}: ${e}`:e}return c?s?`${s}: ${c}`:c:s},[h,c,s,u]),g=n.useMemo(()=>{switch(e.variant){case"choice":return t.jsx(pe,{...e,setPopoverActive:m});case"action-list":return t.jsx(Me,{...e,setPopoverActive:m})}},[e,m]);return t.jsx(i.Popover,{active:a,activator:t.jsx("div",{className:"flex items-center gap-1",children:t.jsx(i.Button,{onClick:m,disclosure:a?"up":"down",children:A})}),autofocusTarget:"first-node",fluidContent:!0,onClose:m,preferredAlignment:d,children:g})},pe=({options:e,selected:a,onSelect:r,maxWidth:s,minWidth:o,clearable:c,setPopoverActive:d})=>{const{t:u}=l.useTranslation(),m=n.useMemo(()=>e?.length?e.map(e=>({value:e.id,label:e.content||"",selected:!1})):[],[e]),h=n.useCallback(e=>{r(e)},[r]);return t.jsx(i.Box,{maxWidth:s,minWidth:o,paddingBlock:"150",children:t.jsxs(i.BlockStack,{children:[t.jsx(i.BlockStack,{gap:"0",children:t.jsx(le,{multiple:!0,options:m,selected:a,onChange:h})}),c&&t.jsx(i.Box,{paddingBlock:"150",paddingInline:"200",children:t.jsx(i.InlineStack,{blockAlign:"center",align:"start",children:t.jsx(i.Button,{disabled:!a?.length,onClick:()=>{h([]),d(!1)},variant:"plain",children:u("Clear")})})})]})})},Me=({options:e,selected:a,onSelect:r,helpText:s,maxWidth:o,minWidth:l,setPopoverActive:c})=>{const d=n.useCallback(e=>{r(e),c(!1)},[r,c]),u=n.useMemo(()=>e?.length?e.map(e=>({id:e.id,content:e.content,helpText:e.helpText,onAction:()=>d(e.id),active:e.active||e.id===a,suffix:(e.active||e.id===a)&&t.jsx(i.Icon,{source:C,tone:"success"})})):[],[e,a,d]);return t.jsx(i.Box,{maxWidth:o,minWidth:l,children:t.jsxs(i.BlockStack,{gap:"0",children:[t.jsx(i.ActionList,{actionRole:"menuitem",items:u}),s]})})},Te=({linkAction:e,isDisabled:n,disabledFocus:a,children:r})=>!e||n?t.jsx(t.Fragment,{children:r}):t.jsx("span",{className:Q("GTextLink",{"GTextLink--disabled-focus":a}),children:t.jsx(i.Link,{...e,children:t.jsx(t.Fragment,{children:r})})}),fe=e=>{const n=e.height??"50px";return t.jsxs("div",{className:"Polaris-GSkeletonDisplayText",children:[t.jsx("style",{children:`.Polaris-GSkeletonDisplayText .Polaris-SkeletonDisplayText__DisplayText { height: ${n} !important; }`}),t.jsx(i.SkeletonDisplayText,{maxWidth:"100%",size:"extraLarge"})]})};const xe=({source:e,alt:i,size:n,grayscale:a,defaultSource:r=v,width:s="80",height:o="80",classRemoved:l=!1})=>{var c;const d=a&&"Polaris-GThumbnail--filter",u=Q("Polaris-Thumbnail",n&&`${"Polaris-Thumbnail--size"}${(c=n).charAt(0).toUpperCase()}${c.slice(1)}`),m=t.jsx("img",{onError:e=>{e.currentTarget.src=r},alt:i??"Thumbnail",src:`${e??r}`,width:s,height:o,style:{"--gp-grayscale-percentage":a||"100%"},className:Q("Polaris-GThumbnail",d)});return l?m:t.jsx("span",{className:u,children:m})},Ie={default:"w-[210px]",wide:"w-[320px]",large:"w-[328px]"},Ne={start:"flex justify-start",center:"flex justify-center",end:"flex justify-end"},je=n.forwardRef((e,a)=>{const{tooltip:r,wrapper:s="div",activatorProps:o,isHideBorder:l,alignment:c,delay:d=500,textDecoration:u="none",popoverRef:m,preferredAlignment:h="left",showArrow:A=!1}=e,{width:g="default"}=r??{},[p,M]=n.useState(!1),T=s,f=Ie[g],x=n.useRef(null),I=()=>{x.current&&(clearTimeout(x.current),x.current=null),M(!1)};return n.useImperativeHandle(a,()=>({onClose:I})),t.jsx(T,{className:Q("GTooltipCard cursor-pointer",c&&Ne[c],{"GTooltipCard--text-underline":"underline"===u}),onMouseEnter:()=>{x.current=setTimeout(()=>{M(!0)},d)},onMouseLeave:I,children:t.jsx(i.Popover,{ref:m,activator:l?t.jsx(i.InlineStack,{children:e.children}):t.jsx(i.Box,{borderBlockEndWidth:"025",borderStyle:"dashed",borderColor:"border-tertiary",as:s,...o,children:e.children}),activatorWrapper:s,onClose:()=>{},active:p,preferredPosition:"below",preferredAlignment:h,children:r&&t.jsx("div",{className:Q(f,{"GTooltipCard-arrow":A}),children:t.jsx(i.Box,{padding:"400",children:t.jsxs(i.BlockStack,{gap:"200",children:[t.jsxs(i.BlockStack,{gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"headingSm",fontWeight:"semibold",children:r.title}),t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",tone:"subdued",fontWeight:"medium",children:t.jsx("span",{dangerouslySetInnerHTML:{__html:r.content}})}),r.contentList&&t.jsx(i.List,{type:"bullet",children:r.contentList.map(e=>t.jsx(i.List.Item,{children:t.jsx(i.Text,{as:"span",variant:"bodyMd",tone:"subdued",fontWeight:"medium",children:e})},e))})]})]}),r.formula&&t.jsx("div",{className:"rounded-md font-mono",style:{fontSize:"12px"},children:r.formula})]})})})})})});je.displayName="GTooltipCard";const De=({activatorText:e,selected:a,options:r,minWidth:s,maxWidth:o,preferredAlignment:l="right",onSelect:c})=>{const[d,u]=n.useState(!1),[m,h]=n.useState(null),A=()=>u(e=>!e),g=n.useMemo(()=>r.find(e=>e.id===a),[r,a]),p=n.useMemo(()=>{if(g){const t=g.title??g.content;return e?`${e}: ${t}`:t}return e},[g,e]);return t.jsx(i.Popover,{active:d,activator:t.jsx(ae,{active:d,content:p,textProps:{variant:"bodySm"},onClick:A}),autofocusTarget:"first-node",fluidContent:!0,onClose:A,preferredAlignment:l,children:t.jsx(i.Box,{maxWidth:o,minWidth:s,padding:"200",children:t.jsx(i.BlockStack,{gap:"200",children:r.map(e=>{const n=e.id===a,r=m===e.id,s=n?"input-border":r?"border-hover":"transparent";return t.jsx(i.Box,{padding:"150",borderWidth:"025",borderColor:s,borderRadius:"100",children:t.jsx("div",{onClick:()=>{return t=e.id,c(t),void u(!1);var t},className:"cursor-pointer",onMouseEnter:()=>h(e.id),onMouseLeave:()=>h(null),children:t.jsxs(i.InlineStack,{gap:"300",align:"space-between",blockAlign:"center",wrap:!1,children:[t.jsxs(i.InlineStack,{gap:"300",blockAlign:"center",wrap:!1,children:[t.jsx("div",{className:"bg-surface-secondary flex items-center justify-center rounded-md min-w-[184px] h-[92px]",children:t.jsx("img",{src:e.icon,alt:e.content,className:"w-full h-full object-contain"})}),t.jsxs(i.BlockStack,{gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",fontWeight:"semibold",children:e.content}),t.jsx(i.Text,{as:"p",variant:"bodyMd",tone:"subdued",children:e.helpText})]})]}),n&&t.jsx(i.Box,{children:t.jsx(i.Icon,{source:C})})]})})},e.id)})})})})},Ee=({item:e})=>t.jsxs(i.Text,{as:"p",variant:"bodyMd",children:[e.description,e.inlineAction&&t.jsx(i.Link,{monochrome:!0,onClick:()=>{e.inlineAction?.onAction?e.inlineAction?.onAction():window.open(e.inlineAction?.url,e.inlineAction?.target??"_blank")},children:e.inlineAction?.content})]}),Se=()=>t.jsx(fe,{height:"188px"}),ve=c.create(e=>({currencyRates:null,setCurrencyRates:t=>e({currencyRates:t})})),ye=async()=>{const e=await fetch("https://cdn.shopify.com/s/javascripts/currencies.js");if(!e.ok)throw new Error("Failed to fetch currency rates");return(e=>{const t={},i=/var Currency=\{rates:\{(.*?)\}\};/s.exec(e),n=i?.[1];if(!n)return t;const a=/([A-Z]+):\s*([\d.e+-]+),/g;let r;for(;null!==(r=a.exec(n));){const[,e,i]=r;e&&i&&(t[e]=parseFloat(i))}return t})(await e.text())},Oe=n.createContext({getTextPrice:e=>"string"==typeof e?e:`${e??0}`}),Ce=()=>n.useContext(Oe),Re={comparison:D.comparison,single:D.current,all:[...D.all]},ke=({children:e,minHeight:i=228,seriesColors:n=Re})=>t.jsxs(t.Fragment,{children:[t.jsx("link",{rel:"stylesheet",href:m}),t.jsx(u.PolarisVizProvider,{themes:{Light:{chartContainer:{minHeight:i},grid:{horizontalOverflow:!0,verticalOverflow:!0,horizontalMargin:0},seriesColors:n}},children:e})]});var be,Pe,we,Le,ze,Ye,Ue,Be,He,Ge,Qe,_e,Fe,Ve;!function(e){e.DATE="DATE",e.ARRAY="ARRAY",e.OBJECT="OBJECT",e.STRING="STRING",e.INTEGER="INTEGER",e.CURRENCY="CURRENCY",e.PERCENT="PERCENT",e.DURATION="DURATION",e.MONTH="MONTH_TIMESTAMP",e.QUARTER="QUARTER_TIMESTAMP",e.DAY="DAY_TIMESTAMP",e.WEEK="WEEK_TIMESTAMP",e.YEAR="YEAR_TIMESTAMP",e.HOUR="HOUR_TIMESTAMP"}(be||(be={})),function(e){e.CAMPAIGNS="experiments",e.VISITOR_ITEMS="visitor_items",e.DEVICE_ITEMS="device_items",e.TRAFFIC_SOURCE_ITEMS="traffic_source_items"}(Pe||(Pe={})),function(e){e.SESSIONS="sessions",e.SALES="sales"}(we||(we={})),function(e){e.EQ="=",e.IN="IN",e.LIKE="LIKE"}(Le||(Le={})),function(e){e.OR="OR",e.AND="AND"}(ze||(ze={})),function(e){e.DEVICE="device",e.DEVICES="devices",e.VISITOR="visitor_type",e.VISITORS="visitor_types",e.TRAFFIC_SOURCE="traffic_source",e.TRAFFIC_SOURCES="traffic_sources",e.VERSION="version",e.VERSIONS="versions",e.SINGLE_PAGE="page_path",e.LIST_PAGE="page_paths",e.GROUP_CAMPAIGN_ITEM="group_campaign_item",e.GROUP_CAMPAIGN_ITEMS="group_campaign_items",e.SINGLE_CAMPAIGN="experiment_id",e.GROUP_CAMPAIGN="experiment_group_id",e.CAMPAIGN_VERSION_ID="version_id",e.GROUP_CAMPAIGN_VERSION_ID="group_version_id"}(Ye||(Ye={})),function(e){e.DEVICE_OPERATOR="deviceOperator",e.VISITOR_OPERATOR="visitorOperator",e.TRAFFIC_SOURCE_OPERATOR="trafficSourceOperator",e.VERSION_OPERATOR="versionOperator",e.PAGE_OPERATOR="pageOperator",e.CAMPAIGN_ITEM_OPERATOR="campaignItemOperator"}(Ue||(Ue={})),function(e){e.NONE="",e.TOTALS="TOTALS",e.ALL="WITH GROUP_TOTALS, TOTALS"}(Be||(Be={})),function(e){e.ASC="ASC",e.DESC="DESC"}(He||(He={})),function(e){e.PAGE_ITEMS="page_items",e.PAGE_PATHS="page_paths"}(Ge||(Ge={})),function(e){e.PAGE_PATH="page_path"}(Qe||(Qe={})),function(e){e.SHOPIFY_PAGE_ID="shopify_page_id",e.LOCATION_PATH="location_path",e.PAGE_TYPE="page_type",e.PAGE_TITLE="page_title",e.PAGE_PATH="page_path",e.TEMPLATE_SUFFIX="template_suffix"}(_e||(_e={})),function(e){e.DEFAULT="DEFAULT",e.COMPARISON="COMPARISON",e.TOTALS="TOTALS",e.COMPARISON_TOTALS="COMPARISON_TOTALS"}(Fe||(Fe={})),function(e){e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.QUARTER="quarter",e.YEAR="year"}(Ve||(Ve={})),Fe.DEFAULT,Fe.COMPARISON,Fe.TOTALS,Fe.COMPARISON_TOTALS;const We=({value:e,formatter:t,getTextPrice:i,name:n})=>{if(null!==e&&("object"==typeof e||Array.isArray(e)))return e;switch(t){case be.INTEGER:return Y((e??0).toString());case be.CURRENCY:return i?i(e,!1):`${e??0}`;case be.DATE:return(e=>{if(!e)return"None";const t=q(e),i=q(),n=q().subtract(1,"day"),a=t.format("YYYY-MM-DD")===i.format("YYYY-MM-DD"),r=t.format("YYYY-MM-DD")===n.format("YYYY-MM-DD");if(a)return`Today at ${t.format("HH:mm")}`;if(r)return`Yesterday at ${t.format("HH:mm")}`;const s=i.diff(t,"day");return s>=0&&s<7?`${t.format("dddd")} at ${t.format("HH:mm")}`:`${t.format("MMM D")} at ${t.format("hh:mm a")}`})(e);case be.PERCENT:return"number"!=typeof e?B(0,1,2)??"":B(e/100,1,2)??"";case be.DURATION:return(e=>{let t=e;Number.isFinite(e)&&null!=e||(t=0);const i=L(t);if(t>=te)return`${Math.floor(t/te)}h ${Math.floor(t%te/ee)}m ${Math.floor(t%ee)}s`;if(t>=ee)return`${Math.floor(t/ee)}m ${Math.floor(t%ee)}s`;return`${i}s`})(Number(e));case be.STRING:{const t=n===Pe.CAMPAIGNS?"":"None";return e??t}case be.DAY:return ie(e,$.DAY,{isExpandDetail:!0});case be.HOUR:return ie(e,$.HOUR,{isExpandDetail:!0});case be.MONTH:return ie(e,$.MONTH,{isExpandDetail:!0});case be.YEAR:return ie(e,$.YEAR);case be.WEEK:return ie(e,$.WEEK,{isExpandDetail:!0});case be.QUARTER:return ie(e,$.QUARTER,{isExpandDetail:!0});case be.OBJECT:case be.ARRAY:return e;default:return`${e}`}},Je=e=>{try{const t=(e=>{if(e)return"string"==typeof e?JSON.parse(e):e})(e);if(!Array.isArray(t))return;return t}catch{return}},qe=e=>Je(e)?.map(e=>({...e,total:Number(e.total)})),Xe=(e,t)=>{const i=e?.[t];return"number"==typeof i?i:0};var Ke;!function(e){e.NEXT="NEXT",e.PREV="PREV"}(Ke||(Ke={}));const Ze=({metricKey:e,columnTypes:t})=>{const{formatData:i}=(({getTextPrice:e}={})=>{const{getTextPrice:t}=Ce(),i=e??t,n=({value:e,formatter:t,name:n})=>We({value:e,formatter:t,getTextPrice:i,name:n});return{formatData:n,computeMetric:({metric:e,previousMetric:t,metricKey:i,formatter:a})=>{if(!(e=>{const t=e?.sessions;return"number"==typeof t&&t>0})(e))return{value:0,change:"-"};const r=Xe(e,i),s=Xe(t,i),o=n({value:r,formatter:a,name:i});return 0===r&&0!==s?{value:o,change:-100}:0===s?{value:o,change:"-"}:{value:o,change:(r-s)/s*100}}}})(),n=e?t?.[e]:void 0,a=e=>String(i({value:e,formatter:n})),r={labelFormatter:e=>a(Number(e)||0)};return{formatValue:a,yAxisOptions:r}};const $e=()=>{const[e,t]=n.useState(()=>({width:"undefined"!=typeof window?window.innerWidth:0,height:"undefined"!=typeof window?window.innerHeight:0})),i=n.useMemo(()=>({xs:e.width<=768,md:768<e.width&&e.width<=1024,lg:e.width>1024,xsDown:e.width<768,"1200Down":e.width<1200,"1040Down":e.width<1040}),[e.width]),a=!i.lg,r=i.xs;return n.useEffect(()=>{const e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),{windowSize:e,windowWidth:i,isMobileTabletView:a,isMobileView:r}},et=({lineChartData:e,isLoading:i,isEmptyMetricData:n,columnTypes:a,metricKey:r})=>{const{formatValue:s,yAxisOptions:o}=Ze({metricKey:r,columnTypes:a||{}});return r?i?t.jsx(Se,{}):n?t.jsx(tt,{title:"No data yet",description:"Data needs time to gather"}):t.jsx(ke,{children:t.jsx(u.LineChart,{data:e,yAxisOptions:o,theme:"Light",tooltipOptions:{titleFormatter:()=>`${A[r]?.title??""}`,keyFormatter:e=>e,renderTooltipContent:e=>t.jsx(rt,{data:e,formatValue:s})},showLegend:!0})}):t.jsx(t.Fragment,{})};const tt=({boxProps:e,minHeight:n,description:a,title:r})=>t.jsx(i.Box,{minWidth:"100%",...e,children:t.jsx(re,{minHeight:n,children:t.jsx(i.Box,{padding:"400",children:t.jsxs(i.BlockStack,{gap:"400",align:"center",inlineAlign:"center",children:[t.jsx("div",{className:"h-[80px] w-[80px]",children:t.jsx(xe,{source:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAACgCAYAAABkDQwTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABvtSURBVHgB7V3NjyRFdo+oqq7u6fmg5wOzMINA8oDkA2hXSICstTS+GWRp17CyLIF89on1P2DBybKslS0h37hYFsg37PUBfIQbYCFZIPkCQoM0MAzM0D3Tw/RMT1el3y8iXubLqMjPqu7Mro6fOjuzMiMys7J++b7iRYRW+4DNzc0NWv02SZJLtP45LRsq4rBji5YPptPp78+dO/evaoHQasEgAoJ8b6hIvGXGZa31n54+ffqyWgAWSkIi4OuOgBHLjy1HxP9Vc2JhJLx+/fqvB4PBf6iIowRIxF8QEbfUHBioBYEI+M8q4qjhcbIR/1bNiYWQkNTwJVo9riKOHEgS/lbNiYWQkN6GSyriqGKDhNDP1RxYlDp+XEUcWUwmk16QMCKiNSIJIzpHJGFE54gkjOgcI9URyLVXa2tranV11WxHdAtyLtTdu3fV7u6uOmh0RsKTJ0+q4XCoIvoB/BbHjx83AuHevXvqINGJOh6Px5GAPcW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1GW2lU0J7pTdXYhdUef2HFDFkIAI33ALBWyz/SAjyMezybM5Ri9CQkuRcNLeOqeO+UAiDvr2X9HQp3Id0QOwJAL5IBURvmEywkOdR01zdjdL2rSfCBEcTtLQzqZdF6asJKEkUohgIaJFAvYYkH5YJBlBHiwc4E5HwtKzQ+Zx7BFrJhwP3s4A+WD70bpNNrIpI0fv9w+GTujbhqG6ET0Dk5HVM9ZMyDYA8SBN3WyePtlCvChNmR8VHCgiVhnhokTsOUAe2VeF256LpByrbJaYIB5neAv4DmvImS1Nmf9/PWJzbd+1lKUAAAAASUVORK5CYII=",width:"80px",height:"80px",alt:r,classRemoved:!0})}),t.jsxs(i.BlockStack,{gap:"200",align:"center",inlineAlign:"center",children:[t.jsx(i.Text,{as:"h4",variant:"headingSm",fontWeight:"semibold",children:r}),t.jsx(i.Text,{as:"h4",variant:"bodyMd",tone:"subdued",children:a})]})]})})})}),it=()=>t.jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_18114_1160)",children:t.jsx("path",{d:"M1 1L6.5 6.5M6.5 6.5V1.5M6.5 6.5H1.5",stroke:"#8A8A8A",strokeWidth:"1.5"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_18114_1160",children:t.jsx("rect",{width:"8",height:"8",fill:"white"})})})]}),nt=()=>t.jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_18114_1146)",children:t.jsx("path",{d:"M1 7L6.5 1.5M6.5 1.5H1.5M6.5 1.5V6.5",stroke:"#29845A",strokeWidth:"1.5"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_18114_1146",children:t.jsx("rect",{width:"8",height:"8",fill:"white",transform:"matrix(0 -1 1 0 0 8)"})})})]}),at=({change:e})=>"number"!=typeof e?t.jsx("div",{style:{height:"2px",width:"11px",backgroundColor:"#8A8A8A"}}):t.jsxs("div",{style:{display:"flex",maxHeight:"20px",width:"fit-content",alignItems:"center",gap:"4px",borderRadius:"8px",fontSize:"12px",color:e>0?E.POSITIVE:E.NEUTRAL},children:[e<0&&t.jsx(i.InlineStack,{align:"center",children:t.jsx(it,{})}),e>0&&t.jsx(i.InlineStack,{align:"center",children:t.jsx(nt,{})}),t.jsx(i.Text,{as:"span",variant:"bodyXs",fontWeight:"semibold",children:H(Math.abs(e||0))})]}),rt=({data:e,formatValue:n})=>{const{activeIndex:a}=e,r=e?.dataSeries[0]?.data[a],s=e?.dataSeries[1]?.data[a],o=()=>{const e=r.trend?.value;if(!e)return"-";const t=Number(e.replace(/[%~]/g,""));return"negative"===r.trend?.trend?-1*t:t};return t.jsx("div",{className:"w-fit min-w-[175px]",children:t.jsx(i.Card,{padding:"200",children:t.jsxs(i.BlockStack,{gap:"100",children:[t.jsx(i.Text,{as:"p",variant:"bodySm",fontWeight:"semibold",children:e.formatters?.titleFormatter?.(e.title||"")||e.title}),t.jsxs(i.BlockStack,{gap:"100",children:[t.jsxs(i.InlineStack,{gap:"400",align:"space-between",blockAlign:"center",children:[t.jsxs(i.InlineStack,{gap:"100",blockAlign:"center",children:[t.jsx("div",{className:"h-[2px] w-[12px] rounded-[10px] bg-[#4FA9EA]"}),t.jsx(i.Text,{as:"p",variant:"bodySm",fontWeight:"medium",tone:"subdued",children:r.tooltipKey})]}),t.jsxs(i.InlineStack,{blockAlign:"center",gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"bodySm",fontWeight:"semibold",children:n(r.value)}),t.jsx(at,{change:o()})]})]}),t.jsxs(i.InlineStack,{gap:"400",align:"space-between",blockAlign:"center",children:[t.jsxs(i.InlineStack,{gap:"100",blockAlign:"center",children:[t.jsx("div",{className:"w-[12px] border border-dashed border-[#A1CAE7]"}),t.jsx(i.Text,{as:"p",variant:"bodySm",tone:"subdued",fontWeight:"medium",children:s.tooltipKey})]}),t.jsxs(i.InlineStack,{blockAlign:"center",gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"bodySm",fontWeight:"semibold",children:n(s.value)}),t.jsx("div",{className:"opacity-0",children:t.jsx(at,{change:o()})})]})]})]})]})})})},st=({isShowOneLine:e})=>e?t.jsx(i.Box,{width:"40%",children:t.jsx(i.SkeletonBodyText,{lines:1})}):t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(i.Box,{width:"60%",children:t.jsx(i.SkeletonBodyText,{lines:1})}),t.jsx(i.Box,{width:"40%",children:t.jsx(i.SkeletonBodyText,{lines:1})})]}),ot=()=>t.jsx(i.Card,{children:t.jsxs(i.BlockStack,{gap:"400",children:[t.jsx(st,{isShowOneLine:!0}),t.jsx(Se,{})]})}),lt=({totalValue:e,hideComparison:n})=>t.jsx(i.BlockStack,{gap:"200",children:t.jsxs(i.InlineStack,{blockAlign:"center",gap:"200",wrap:!1,children:[t.jsx(i.InlineStack,{blockAlign:"center",gap:"200",children:t.jsx(i.Text,{as:"span",variant:"headingSm",children:e.value})}),!n&&t.jsx(at,{change:e.change})]})}),ct=({item:e,isHovered:n,isLoading:a,hideComparison:r,titleVariant:s="headingMd",titleFontWeight:o,onClickTitle:l})=>{const{key:c,title:d,totalValue:u}=e,m=A[c];return a?t.jsx(st,{}):t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx("div",{className:"hover:cursor-pointer hover:text-[--p-color-text-link-hover]",onClick:e=>{e?.stopPropagation(),l?.(c)},children:t.jsxs(i.InlineStack,{wrap:!1,children:[t.jsx(i.Box,{maxWidth:"100%",overflowX:"hidden",children:t.jsx(je,{tooltip:m,children:t.jsx(i.Text,{as:"span",variant:s,fontWeight:o,truncate:!0,children:d})})}),n&&t.jsx("div",{className:"flex h-[20px] w-[20px] items-center",children:t.jsx(i.Icon,{source:k,tone:"inherit"})})]})}),t.jsx(lt,{totalValue:u,hideComparison:r})]})},dt=({item:e,isActive:a,isLoading:r,hideComparison:s,onSelect:o,onClickTitle:l})=>{const[c,d]=n.useState(!1),u=a||c;return t.jsx("div",{className:"w-full cursor-pointer overflow-hidden",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:()=>o(e.key),children:t.jsx(i.Box,{paddingBlock:"150",paddingInline:"300",borderRadius:"200",background:u?"bg-surface-active":void 0,children:t.jsx(ct,{item:e,isHovered:c,isLoading:r,hideComparison:s,titleVariant:"headingSm",titleFontWeight:"semibold",onClickTitle:l})})})};ze.OR,Ue.DEVICE_OPERATOR,Ye.DEVICE,Ye.DEVICES,Ye.DEVICE,Ue.VISITOR_OPERATOR,Ye.VISITOR,Ye.VISITORS,Ye.VISITOR,Ue.TRAFFIC_SOURCE_OPERATOR,Ye.TRAFFIC_SOURCE,Ye.TRAFFIC_SOURCES,Ye.TRAFFIC_SOURCE,Ue.VERSION_OPERATOR,Ye.VERSION,Ye.VERSIONS,Ye.VERSION,Ue.PAGE_OPERATOR,Ye.SINGLE_PAGE,Ye.LIST_PAGE,Ye.SINGLE_PAGE,Ue.CAMPAIGN_ITEM_OPERATOR,Ye.GROUP_CAMPAIGN_ITEM,Ye.GROUP_CAMPAIGN_ITEMS,Ye.GROUP_CAMPAIGN,Ye.SINGLE_CAMPAIGN,Ye.SINGLE_CAMPAIGN,Ye.GROUP_CAMPAIGN;const ut=(e,t)=>{if(0===e&&0===t)return;if(0===t)return e>0?"100%":"0%";const i=(e-t)/t*100;return`${Math.abs(i).toFixed(0)}%`},mt=(e,t)=>{const i=e?.find(e=>e?.type?.toLowerCase()===t.toLowerCase());return i?.total??0},ht=({targets:e,metricKey:t,totalsRow:i,comparisonTotalsRow:n,sort:a})=>{const r=qe(i?.[t]),s=qe(n?.[t]),o=!!n?.[t],l=e.map(({value:e,label:t})=>(({name:e,currentValue:t,prevValue:i,hasPreviousData:n})=>({name:e,data:[{key:"value",value:t}],metadata:{trend:{value:n?ut(t,i):void 0,direction:t>=i?"upward":"downward",trend:t>=i?"positive":"negative"}}}))({name:t,currentValue:mt(r,e),prevValue:mt(s,e),hasPreviousData:o})),c=e=>e.data[0]?.value??0;return a?[...l].sort((e,t)=>c(t)-c(e)):l};const At=[{id:g.ALL_SESSION,content:"All sessions",helpText:"Count metrics for all sessions where this page shows up anywhere in the journey: before, during, or after other pages.",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAAC4CAMAAADNC0dgAAAAw1BMVEUAAAD39/f39/f39/f39/f39/f39/f39/f8/Pz39/fb5P////+WrPjj4+MaHB319vfe5v/s7/rp7Ovy8vLx8/nn5+fu7u7n7PzKzdDi6f1wcXL7+/vEzOTGxscphFrd5Pni4+o2OTtTnHpjZnCcsfjQ2fby9/VEk2/f5PFSVFaktvd4spewwPd6gI9mboa6yPWGmt2pqqsuMTbW3OCSwavDz/iwvcJKVHOpqqrl6feLkaGMjo6bm5x+gIA8QUqOo+t3iMFQsBsaAAAACXRSTlMA779wIIDfnxC1qPNnAAAJI0lEQVR42uzWuw3AQAgEUe5nm/4btoMLHG12SCvNK2GEgNie1a/EIa2PGX+zJw67f8lHSxzXRmwrUWLt+U4UGfGZ7JMybUbEnSjTI2ai0MMGr7WCD7xUD05mqSsSpQiuEdwdwTWCuyO4RnB3BNcI7o7gGsHdEVwjuDuCawR3R3CN4O4IrhHcHcE1grsjuEZwdwTXCO6O4BrB3RFcI7g7gmsEd/eya4a9acNAGM5XQ5iJTcIQiLAKVkbpmEZbqfuy//+v5tR1XzqnF5JzDJP2fqlaqXfvPXc+pzT/gdP6D/xfVxjgUmotRZ+SulB5nqtCi6t0LPWZ8fjApVYjq1z1Bd2kgJS8Mse6yJ01LWjxgcvi1bnKX75qEV6yCq0KKV1txTU51jZMbsM1eGMD1y9tnQ8rzUVFI/yUV4BMCqeX7+W1OJZ2AGw8C5/oIIB3Z6HEEJprAgYjB3BXmpuy9HU4lnYYIJFTQ+6AM1joIUTD4OeAqh9eg2PTrdzihjRBHMD57gGDmBh+DlQlL+9YGrZ+OEkQZwHX1r0nNcpFKEnk8JJc3rFZT3XhJHFkOMDh3jujhQ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bfVAkjuO1bxDu0gARjbVu1FGodFwaeUfgJhpr3fjDfqPywhFzJTrsN6pqgjdIfGO9G3Wc9UNsnhcL560RqAw/m7rqUdd1F0pAW9BY6fbxA6b/2KFjGgBgGAhi/FmXwS1d8pINwf+E3ya8CV8nvAlfJ7wJXye8CV8nvAlfJ7wJXye8CV8nvAlfJ7wJXye8CV8nvAlfJ7wJXye8CV8nvAlfJ7wJXye8CV8nvAlfJ7wJXye8CV8nvAl/7dVBCsMwDETRsSQn0f0v3JaWkpV3GTD8d4SPGO2O4GsE3x3B1wi+O4KvEXx3BDfT0TAaioZRaDaMUlfDqMSmOJ2SajRMRuktGyapD/6my9RPsioGI/VXZ+NhUbqrDM78MUfMS18vwGQ/2+yp6lQAAAAASUVORK5CYII="},{id:g.FIRST_SESSION,content:"Entry session only",helpText:"Count metrics for sessions only where this page was the very first page visited, then track how they moved through the funnel.",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAAC4CAMAAADNC0dgAAAAulBMVEUAAAD39/f39/f39/f39/f39/f8/Pz39/fb5P+WrPj///8aHB3j4+P09vfKzdDo6Ojy8vLl5ebd5f7h6P7n7Pzr6+vu7u5wcXLx8/nt8PsxNDn7+/vGxscphFrEzOS8yfakt/je5Pecsfjh4+zQ2fZjZnDr7vdSVFaHm95UnXt4sZd6f41Ek2/H0visvfTk7+vZ3OSOkJZXY4ipqqvX6OBIUm+u0cGRwKqpqqo3i2Vvc4CwtcGFkba82cvy+RBRAAAAB3RSTlMAduu/IJ8QQSls1wAACLJJREFUeNrs1kEKwEAIBEHdNfH/P84lhJzmtsJA1xMaUeN1516NQ9bOir/ajcOuX/JkuAes/Ho3RiS9tTPFi30yZlVEXI0xO6Iag242+KwMPvBROziZo1Y0RhFcI7g7gmsEd0dwjeDuCK4R3B3BNYK7I7hGcHcE1wjujuAawd0RXCO4O4JrBHdHcI3g7giuEdwdwTWCuyO4RnB3BNcI7u5h1+x2nIaBMHo5ThkrcVpbLVGbJlsVF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tfrDim8b1JxQGBul8rz6sOLCqdRYi48X37jNZbnCqywmHDde0ihSE+VKd+qXES6cguINk/FG0TfjIvjGj+9QrG/GW0XfjFP3jQunlYJvYB43ngCcgm+1I5hkFhVBpE5FhHwp4c8nmHBgT/JTTSi5URAxamCtJ4hPhFIFzfJmF4oimNzKKcalhIELp7pcCLpXLALDW23d/coR3Swcp66Cnm7GO1XdrFyjutUO+2VCOSeQs4f9MsbmsAfhsF+27QnnlY+znq/KEA6qQ1lWNengc2cP2o2xLvcpqZD+STnGvFbKxx+Y/mKHjmkAAGAgCPl3XQefrpeABL6EVwnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34Rfe/VyAjEQA0G09LF12vzTXTA2vs3NDQP9QihEa3cOvubgu3PwNQffnYOvOfjuHFyMHBNKakyoiDGh4BwTarwpSgfQfpsy2YBXXCfAxYWCW3hVBDLg0cfYx6qBV0f5zL/yy4oTLn9JSvy4U7oaTQAAAABJRU5ErkJggg=="}];var gt;function pt(){return{[e.MainDateTimePickerAlias.TODAY]:{title:"Today",alias:e.MainDateTimePickerAlias.TODAY,getDateRange:Gt},[e.MainDateTimePickerAlias.YESTERDAY]:{title:"Yesterday",alias:e.MainDateTimePickerAlias.YESTERDAY,getDateRange:Qt},[e.MainDateTimePickerAlias.LAST_7_DAYS]:{title:"Last 7 days",alias:e.MainDateTimePickerAlias.LAST_7_DAYS,getDateRange:_t},[e.MainDateTimePickerAlias.LAST_30_DAYS]:{title:"Last 30 days",alias:e.MainDateTimePickerAlias.LAST_30_DAYS,getDateRange:Ft},[e.MainDateTimePickerAlias.LAST_90_DAYS]:{title:"Last 90 days",alias:e.MainDateTimePickerAlias.LAST_90_DAYS,getDateRange:Vt},[e.MainDateTimePickerAlias.LAST_365_DAYS]:{title:"Last 365 days",alias:e.MainDateTimePickerAlias.LAST_365_DAYS,getDateRange:Wt},[e.MainDateTimePickerAlias.LAST_MONTH]:{title:"Last month",alias:e.MainDateTimePickerAlias.LAST_MONTH,getDateRange:Jt},[e.MainDateTimePickerAlias.LAST_12_MONTHS]:{title:"Last 12 months",alias:e.MainDateTimePickerAlias.LAST_12_MONTHS,getDateRange:qt},[e.MainDateTimePickerAlias.LAST_YEAR]:{title:"Last year",alias:e.MainDateTimePickerAlias.LAST_YEAR,getDateRange:Xt}}}function Mt(e){return pt()[e]}e.MainDateTimePickerAlias=void 0,(gt=e.MainDateTimePickerAlias||(e.MainDateTimePickerAlias={})).TODAY="today",gt.YESTERDAY="yesterday",gt.LAST_7_DAYS="last7days",gt.LAST_30_DAYS="last30days",gt.LAST_90_DAYS="last90days",gt.LAST_365_DAYS="last365days",gt.LAST_MONTH="lastMonth",gt.LAST_12_MONTHS="last12Months",gt.LAST_YEAR="lastYear";const Tt={YMD:"YYYY-MM-DD",MONTH_YEAR:"MMM YYYY",FULL:"MMMM D, YYYY",FULL_WITH_TIME:"MMMM D, YYYY [at] h:mm A",SHORT:"MMM DD, YYYY",SHORT_NO_PAD:"MMM D, YYYY",SHORT_WITH_TIME:"MMM D, YYYY [at] h:mm A",MONTH_DAY:"MMM D",DAY_YEAR:"D, YYYY",TIME:"h:mm A",MONTH_DAY_WITH_TIME:"MMM D [at] h:mm A",YEAR:"YYYY"};const ft=/^\d{4}-\d{1,2}-\d{1,2}/;function xt(e){return!isNaN(new Date(e).getDate())}function It(e){return ft.test(e)&&xt(e)}function Nt(e){return 10===e.length&&It(e)}function jt(e,t){const i=X(e);return"YMD"===t?i.format(Tt.YMD):"MY"===t?i.format(Tt.MONTH_YEAR):"FULL"===t?i.format(Tt.FULL):"FULL_WITH_TIME"===t?i.format(Tt.FULL_WITH_TIME):i.format(Tt.SHORT)}function Dt(e,t){const i=X(e),n=X(t);return i.isSame(n,"day")}function Et(e){const{since:t,until:i,format:n=Tt.TIME,showNow:a=!1}=e,r=X(t),s=X(i);return`${r.format(n)} - ${a?"Now":s.format(n)}`}function St(e){const{since:t,until:i,isShowNow:n}=e,a=X(t),r=X(i),s=a.isSame(q(),"day"),o=a.format(Tt.TIME),l=r.format(Tt.TIME);if(s){return`Today at ${o} - ${n?"Now":l}`}if(n)return`${a.format(Tt.SHORT_WITH_TIME)} - Now`;if(a.isSame(r,"day"))return`${a.format(Tt.SHORT_WITH_TIME)} - ${l}`;if(a.isSame(r,"day")){const e=Et({since:t,until:i});return`${a.format(Tt.SHORT)} (${e})`}return a.isSame(r,"year")?`${a.format(Tt.MONTH_DAY_WITH_TIME)} - ${r.format(Tt.MONTH_DAY_WITH_TIME)}, ${r.format(Tt.YEAR)}`:`${a.format(Tt.SHORT_WITH_TIME)} - ${r.format(Tt.SHORT_WITH_TIME)}`}const vt=(e,t=!1,i)=>t&&Ot(e)?e.endOf("day").format(i):e.format(i),yt=(e,t)=>vt(e?q(e).endOf("day"):q().endOf("day"),!1,t),Ot=e=>0===e.hour()&&0===e.minute();function Ct(e,t){const i=X(e),n=X(t);return i.isSame(n,"day")?i.format(Tt.SHORT):i.isSame(n,"month")&&i.isSame(n,"year")?`${i.format(Tt.MONTH_DAY)} - ${n.format(Tt.DAY_YEAR)}`:i.isSame(n,"year")?`${i.format(Tt.MONTH_DAY)} - ${n.format(Tt.SHORT_NO_PAD)}`:`${i.format(Tt.SHORT_NO_PAD)} - ${n.format(Tt.SHORT_NO_PAD)}`}function Rt(t){const{since:i,until:n,isShowNow:a}=t,r=X(i);return r.isSame(q(),"day")?Mt(e.MainDateTimePickerAlias.TODAY).title:a?`${r.format(Tt.SHORT_NO_PAD)} - Now`:Ct(i,n)}const kt=({since:e,until:t,isShowNow:i})=>{if(Dt(e,t))return Et({since:e,until:t,showNow:i})},bt=e=>[...e].sort((e,t)=>z(t.version)-z(e.version)).map(e=>{if(!e.startedAt)return!1;const t=!e.completedAt,i=K(e.startedAt).valueOf(),n=t?K(yt()).valueOf():K(e.completedAt).valueOf(),a=Rt({since:i,until:n,isShowNow:t}),r=kt({since:i,until:n,isShowNow:t});return{title:a,alias:`${e.version}`,since:i,until:n,isVersion:!0,isCurrentVersion:t,description:r,versionId:e.id}}).filter(Boolean),Pt=()=>({since:0,until:0}),wt=t=>{const{since:i,until:n,alias:r}=t,s=a(i),o=a(n);if(r===e.MainDateTimePickerAlias.LAST_MONTH)return Jt(s);if(r===e.MainDateTimePickerAlias.LAST_12_MONTHS)return qt(s);if(r===e.MainDateTimePickerAlias.LAST_YEAR)return Xt(s);const l=o.diff(s,"day")+1,c=s.subtract(l,"day"),d=o.subtract(l,"day");return{since:c.valueOf(),until:d.valueOf()}},Lt=(e,t)=>i=>{const{since:n,until:r}=i,s=a(n),o=a(r).diff(s,"day"),l=s.subtract(e,t),c=l.add(o,"day");return{since:l.valueOf(),until:c.valueOf()}},zt=Lt(7,"day"),Yt=Lt(3,"month"),Ut=Lt(1,"month"),Bt=Lt(1,"year"),Ht=e=>t=>({since:t.subtract(e,"day").valueOf(),until:t.valueOf()}),Gt=e=>({since:e.valueOf(),until:e.valueOf()}),Qt=e=>({since:e.subtract(1,"day").valueOf(),until:e.subtract(1,"day").valueOf()}),_t=Ht(6),Ft=Ht(29),Vt=Ht(89),Wt=Ht(364);function Jt(e){return{since:e.subtract(1,"month").startOf("month").valueOf(),until:e.subtract(1,"month").endOf("month").valueOf()}}function qt(e){return{since:e.subtract(12,"month").startOf("month").valueOf(),until:e.subtract(1,"month").endOf("month").valueOf()}}function Xt(e){return{since:e.subtract(1,"year").startOf("year").valueOf(),until:e.subtract(1,"year").endOf("year").valueOf()}}const Kt=(e,t,i)=>{const n=a(i),r=n.month();if(n.year()!==t||r!==e){const e=n.subtract(1,"month");return{month:e.month(),year:e.year()}}return{month:e,year:t}};var Zt;e.CompareDateTimePickerAlias=void 0,(Zt=e.CompareDateTimePickerAlias||(e.CompareDateTimePickerAlias={})).NO_COMPARISON="noComparison",Zt.PREVIOUS_PERIOD="previousPeriod",Zt.PREVIOUS_WEEK="previousWeek",Zt.PREVIOUS_MONTH="previousMonth",Zt.PREVIOUS_QUARTER="previousQuarter",Zt.PREVIOUS_YEAR="previousYear";const $t={title:"Previous period",alias:e.CompareDateTimePickerAlias.PREVIOUS_PERIOD,since:0,until:0},ei=[{title:"No comparison",alias:e.CompareDateTimePickerAlias.NO_COMPARISON,since:0,until:0},$t,{title:"Previous week",alias:e.CompareDateTimePickerAlias.PREVIOUS_WEEK,since:0,until:0},{title:"Previous quarter",alias:e.CompareDateTimePickerAlias.PREVIOUS_QUARTER,since:0,until:0},{title:"Previous month",alias:e.CompareDateTimePickerAlias.PREVIOUS_MONTH,since:0,until:0},{title:"Previous year",alias:e.CompareDateTimePickerAlias.PREVIOUS_YEAR,since:0,until:0}],ti={[e.CompareDateTimePickerAlias.NO_COMPARISON]:Pt,[e.CompareDateTimePickerAlias.PREVIOUS_PERIOD]:wt,[e.CompareDateTimePickerAlias.PREVIOUS_WEEK]:zt,[e.CompareDateTimePickerAlias.PREVIOUS_QUARTER]:Yt,[e.CompareDateTimePickerAlias.PREVIOUS_MONTH]:Ut,[e.CompareDateTimePickerAlias.PREVIOUS_YEAR]:Bt},ii=()=>{const t=K().startOf("day"),i=pt(),n=i[e.MainDateTimePickerAlias.TODAY],a={...n,...n.getDateRange(t)},r=i[e.MainDateTimePickerAlias.YESTERDAY],s={...r,...r.getDateRange(t)},o=i[e.MainDateTimePickerAlias.LAST_7_DAYS],l={...o,...o.getDateRange(t)},c=i[e.MainDateTimePickerAlias.LAST_30_DAYS],d={...c,...c.getDateRange(t)},u=i[e.MainDateTimePickerAlias.LAST_90_DAYS],m={...u,...u.getDateRange(t)},h=i[e.MainDateTimePickerAlias.LAST_365_DAYS],A={...h,...h.getDateRange(t)},g=i[e.MainDateTimePickerAlias.LAST_MONTH],p={...g,...g.getDateRange(t)},M=i[e.MainDateTimePickerAlias.LAST_12_MONTHS],T={...M,...M.getDateRange(t)},f=i[e.MainDateTimePickerAlias.LAST_YEAR];return{DATE_TIME_FILTERS:[a,s,l,d,m,A,p,T,{...f,...f.getDateRange(t)}],LAST_7_DAYS_DATE_RANGE:l,LAST_30_DAYS_DATE_RANGE:d}},ni=n.createContext({dateTimePicked:{since:q().valueOf(),until:q().valueOf(),title:"Today",alias:"today"},compareDateTimePicked:$t,setDateTimePicked:()=>{},setCompareDateTimePicked:()=>{},resetDateVersion:()=>{}}),ai=()=>{const e=n.useContext(ni);if(!e)throw new Error("useDateTimePickerContext must be used within a DateTimePickerProvider");return e},ri=({ranges:e,initialPicked:t,onApply:i})=>{const{DATE_TIME_FILTERS:r}=ii(),s=e||r,{dateTimePicked:o,setDateTimePicked:l}=ai(),[c,d]=n.useState(o),[{month:u,year:m},h]=n.useState({month:a(o.since).month(),year:a(o.since).year()});n.useEffect(()=>{if(o){const e=new Date(o.until);((e,t)=>t.month-e.month+12*(e.year-t.year))({year:m,month:u},{year:e.getFullYear(),month:e.getMonth()})}},[o,u,m]);return n.useEffect(()=>{o&&(d(o),h({month:a(o.since).month(),year:a(o.since).year()}))},[o]),{month:u,year:m,setDate:h,dateRange:c,apply:()=>{l(c),i?.(c)},cancel:()=>{d(o)},dateTimePicked:o,onChange:({end:e})=>{h(Kt(u,m,e))},onMonthChange:(e,t)=>{h({month:e,year:t})},onCalendarChange:e=>{const{start:i,end:n,alias:a}=e,r={alias:"custom",title:"Custom",since:i.getTime(),until:n.getTime()},o=s.find(e=>{const t=e.alias===a,r=e.until===n.getTime(),s=e.since===i.getTime();return t||s&&r});d(o||t||r)}}};function si({onBlur:e,dateRange:a,setDateTimePicked:r}){const[s,o]=n.useState(!1),[l,c]=n.useState({}),d=n.useCallback((e,t=!1)=>!a.isVersion||t&&a.isCurrentVersion?jt(e,"FULL"):jt(e,"FULL_WITH_TIME"),[a.isVersion,a.isCurrentVersion]);function u(){o(!1),c({since:d(a.since),until:d(a.until,!0)}),e&&e()}return n.useEffect(()=>{s||c({since:d(a.since),until:d(a.until,!0)})},[a,d]),t.jsxs(i.InlineGrid,{gap:"200",columns:"1fr auto 1fr",children:[t.jsx(i.TextField,{role:"combobox",label:"Since",labelHidden:!0,value:a.since?l.since:"MMMM D, YYYY",onChange:function(e){if(c(t=>({...t,since:e})),Nt(e)){const t=X(e).startOf("day"),i=X(a.until).endOf("day"),n=t.isAfter(i)?t.endOf("day"):i;r({start:K(t).toDate(),end:K(n).toDate()})}},onBlur:()=>u(),onFocus:()=>(o(!0),void c({...l,since:jt(a.since,"YMD")})),autoComplete:"off"}),t.jsx(i.InlineStack,{children:t.jsx(i.Icon,{source:y,tone:"subdued"})}),t.jsx(i.TextField,{role:"combobox",label:"Until",labelHidden:!0,value:a.until?l.until:"MMMM D, YYYY",onChange:function(e){if(c(t=>({...t,until:e})),Nt(e)){const t=q().endOf("day"),i=X(e).endOf("day"),n=i.isAfter(t)?t:i,s=X(a.since).startOf("day"),o=n.isBefore(s)?n.startOf("day"):s;r({start:K(o).toDate(),end:K(n).toDate()})}},onBlur:()=>u(),onFocus:()=>(o(!0),void c({...l,until:jt(a.until,"YMD")})),autoComplete:"off"})]})}function oi(e){const{setDateTimePicked:a,dateTimePicked:r,rangeAddition:s,allRanges:o}=e,{value:l,toggle:c}=function(e){const[t,i]=n.useState(e);return{value:t,toggle:n.useCallback(()=>i(e=>!e),[]),setTrue:n.useCallback(()=>i(!0),[]),setFalse:n.useCallback(()=>i(!1),[])}}(!0),d=s?.rangers||[],u=d.map(e=>{const n=r.alias===e.alias;return{value:e.alias,label:t.jsxs(i.Text,{as:"span",truncate:!0,children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",fontWeight:n?"semibold":"regular",children:e.title}),e.description&&t.jsxs(t.Fragment,{children:[" ",t.jsx(i.Text,{as:"span",variant:"bodyXs",fontWeight:"regular",tone:"subdued",children:`(${e.description})`})]})]})}});if(s&&0!==d.length)return t.jsxs(i.Box,{borderBlockEndWidth:"025",borderColor:"border",paddingBlock:"200",children:[t.jsx("div",{className:"px-1.5",children:t.jsx(ue,{onClick:c,"aria-expanded":l,className:Q("hover:bg-surface-hover cursor-pointer rounded-lg p-1.5"),children:t.jsxs(i.InlineStack,{align:"space-between",blockAlign:"center",children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",children:s.title}),t.jsx(i.Box,{children:t.jsx(i.Icon,{source:l?b:R})})]})})}),t.jsx(i.Collapsible,{open:l,id:"date-time-filter-periods-collapsible",transition:{duration:"200ms",timingFunction:"ease-in-out"},children:t.jsx(Ae,{options:u,selected:r?[r.alias]:[],onChange:e=>{const t=e[0],i=o.find(e=>e.alias===t)||o[0];a({start:q(i?.since).toDate(),end:q(i?.until).toDate(),alias:i?.alias})}})})]})}function li(e){const{setDateTimePicked:n,dateTimePicked:a,allRanges:r,isCompare:s}=e,{DATE_TIME_FILTERS:o}=ii(),{mdDown:l}=i.useBreakpoints(),c=s?[...ei]:[...o];return t.jsx(i.Box,{maxWidth:l?"516px":"250px",width:l?"100%":"250px",padding:{xs:"500",md:"0"},paddingBlockEnd:{xs:"100",md:"0"},children:l?t.jsx(i.Select,{label:"dateRangeLabel",labelHidden:!0,onChange:e=>(e=>{const t=r.find(({title:t,alias:i})=>t===e||i===e)||r[0];n({start:q(t?.since).toDate(),end:q(t?.until).toDate(),alias:t?.alias})})(e),value:a?.title||a?.alias||"",options:r.map(({alias:e,title:t})=>t||e)}):t.jsx(i.Scrollable,{style:{maxHeight:"356px"},children:t.jsx(i.Box,{children:t.jsxs(i.BlockStack,{children:[t.jsx(oi,{...e}),t.jsx(i.OptionList,{options:c.map(e=>({value:e.alias,label:e.title})),selected:a?[a.alias]:[],onChange:e=>(e=>{const t=r.find(t=>t.alias===e[0])||r[0];n({start:q(t?.since).toDate(),end:q(t?.until).toDate(),alias:t?.alias})})(e)})]})})})})}const ci=({ranges:e,onApply:t})=>{const i=e||ei,{compareDateTimePicked:a,setCompareDateTimePicked:r}=ai(),{dateTimePicked:s}=ai(),[o,l]=n.useState(a),[{month:c,year:d},u]=n.useState({month:q(a.since).month(),year:q(a.since).year()});return{month:c,year:d,setDate:u,dateRange:o,apply:()=>{r(o),t?.(o)},cancel:()=>{l(a)},compareDateTimePicked:a,onChange:({end:e})=>{u(Kt(c,d,e))},onMonthChange:(e,t)=>{u({month:e,year:t})},onCalendarChange:({start:e,end:t,alias:n})=>{const a=i.find(e=>e.alias===n);l(a?{...a,...ti[n]({since:s.since,until:s.until})}:{alias:"custom",title:"Custom",since:e.getTime(),until:t.getTime()})}}},di=e=>{const{dateTimeFilters:r,rangeAddition:s,popoverProps:o,activatorProps:c,actionProps:d,isCompare:u,buttonValue:m,activator:h}=e,A=s?.initialPicked,g=[...r||[],...s?.rangers||[]],p=u?ci:ri,{month:M,year:T,dateRange:f,apply:x,cancel:I,onMonthChange:N,onCalendarChange:j,onChange:D}=p({ranges:g,initialPicked:A,onApply:e.onApply}),{t:E}=l.useTranslation(),{mdDown:S,lgUp:v}=i.useBreakpoints(),y=v,C=n.useMemo(()=>{if(f.isVersion&&f.since&&f.until)return St({since:f.since,until:f.until,isShowNow:f.isCurrentVersion})},[f.since,f.until,f.isVersion,f.isCurrentVersion]),[R,k]=n.useState(!1),b=n.useRef(null),P=n.useRef(C);R||(P.current=C);const w=P.current;function L({relatedTarget:e}){var t;null!=e&&(t=e,!!b?.current&&function(e,t){if(e===t)return!0;let i=t.parentNode;for(;null!=i;){if(i===e)return!0;i=i.parentNode}return!1}(b.current,t))||k(!1)}function z(){I(),k(!1)}const Y=()=>{u||k(!R)};return t.jsx(i.Popover,{active:R,autofocusTarget:"none",preferredAlignment:"right",preferredPosition:"below",fluidContent:!0,sectioned:!1,fullHeight:!0,activator:t.jsx(re,{height:"100%",minHeight:"28px",align:"center",children:t.jsx(se,{content:w,maxWidth:h?"large":"extra-large",children:t.jsx(i.Box,{children:h?h({onClick:Y,value:m}):t.jsx(i.Button,{size:"slim",icon:u?void 0:O,onClick:Y,...c,children:m})})})}),onClose:z,...o,children:t.jsxs(i.Scrollable,{vertical:!0,scrollbarWidth:"thin",className:"max-w-[100%]",children:[t.jsx(i.Popover.Pane,{fixed:!0,children:t.jsx("div",{ref:b,children:t.jsxs(i.InlineGrid,{columns:{xs:"1fr",md:"max-content max-content"},gap:"0",children:[t.jsx(li,{setDateTimePicked:e=>{j(e),D(e)},dateTimePicked:f,rangeAddition:s,allRanges:g,isCompare:u}),t.jsx(i.Box,{padding:"400",maxWidth:S?"320px":"516px",borderInlineStartWidth:"025",borderColor:"border-secondary",children:t.jsxs(i.BlockStack,{gap:"400",children:[t.jsx(si,{setDateTimePicked:j,dateRange:f,onBlur:()=>L}),t.jsx("div",{children:t.jsx(i.DatePicker,{month:M,year:T,selected:f.since||f.until?{start:a(f.since).toDate(),end:a(f.until).toDate()}:void 0,onMonthChange:N,onChange:j,multiMonth:y,allowRange:!0,disableDatesAfter:Z()})}),d&&t.jsx(oe,{...d,onClick:()=>{k(!1),d.onClick?.()}})]})})]})})}),t.jsx(i.Popover.Pane,{fixed:!0,children:t.jsx(i.Box,{padding:"400",borderBlockStartWidth:"025",borderColor:"border-secondary",children:t.jsx(i.InlineStack,{align:"end",gap:"200",children:t.jsxs(i.ButtonGroup,{children:[t.jsx(i.Button,{onClick:z,children:E("Cancel")}),t.jsx(i.Button,{variant:"primary",onClick:function(){x(),k(!1)},children:E("Apply")})]})})})})]})})},ui=i=>{const{rangeAddition:a,popoverProps:r}=i,s=a?.initialPicked,o=ei,c=[...o,...a?.rangers||[]],{t:d}=l.useTranslation(),{compareDateTimePicked:u}=ci({ranges:c,initialPicked:s}),m=n.useMemo(()=>u.alias===e.CompareDateTimePickerAlias.NO_COMPARISON?d("No comparison"):d("Compare to: {{value}}",{value:Ct(u.since,u.until)}),[u,d]);return t.jsx(di,{dateTimeFilters:o,rangeAddition:a,popoverProps:r,isCompare:!0,buttonValue:m})},mi=e=>{const{rangeAddition:i,popoverProps:n,activator:a,onApply:r,activatorProps:s,actionProps:o}=e,{DATE_TIME_FILTERS:l}=ii(),c=l,d=i?.rangers||[],u=i?.initialPicked,m=[...c,...d],{dateTimePicked:h}=ri({ranges:m,initialPicked:u});return t.jsx(di,{activatorProps:s,dateTimeFilters:c,rangeAddition:i,popoverProps:n,actionProps:o,buttonValue:(()=>{if(h.isVersion&&d.length>0){const e=h.description?`at ${h.description}`:"";return`Period: ${h.title} ${e}`}return"custom"===h.alias?Ct(h.since,h.until):h.title})(),activator:a,onApply:r})};const hi=({id:e,stickyTop:t,threshold:i=0,enabled:a=!0})=>{const[r,s]=n.useState(!1);return n.useEffect(()=>{if(!a||"undefined"==typeof window)return;const n=document.getElementById(e);if(!n)return;const r=()=>{const e=n.getBoundingClientRect();s(e.top<=t+i)};return r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[e,t,i,a]),r};e.dayjs=a,e.ANALYTICS_METRIC_TOOLTIP=A,e.AnalyticModeSelector=({activatorText:e="View by",value:i,onChange:a})=>{const r=n.useMemo(()=>At.map(e=>({...e})),[]);return t.jsx(De,{activatorText:e,options:r,selected:i,onSelect:e=>{a(e)},maxWidth:"650px"})},e.CAMPAIGN_BACKGROUND_MAIN={ORIGIN:"#2C7DFF",VARIANT:"#F34A70"},e.CHART_MIN_HEIGHT=228,e.COMPARE_DATE_TIME_FILTERS_MAP=ti,e.ConvertMoneyProvider=({children:e,currency:i,locale:a="en-US"})=>{(()=>{const e=ve(e=>e.setCurrencyRates),{data:t}=d.useQuery({queryKey:["sdk-currency-rates"],queryFn:ye,staleTime:36e5});n.useEffect(()=>{t&&e(t)},[t,e])})();const r=ve(e=>e.currencyRates),s=n.useCallback((e,t,n)=>{if("string"==typeof e)return e;if("number"!=typeof e)return"0";if(!i)return e.toString();const s=r?((e,t,i,n)=>{if(t===i||!n[t]||!n[i])return e;const a=e*n[t]/n[i];return a?Number(a.toFixed(2)):e})(e,S,i,r):e;return w(((e,t=S,i)=>{if("string"==typeof e)return e;if("number"!=typeof e)return;const n="string"==typeof i?{locale:i}:i,a=n?.locale??"en-US";return e>=1e9?`${new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e/1e9)}B`:e>=1e6?`${new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e/1e6)}M`:n?.compact&&Math.abs(e)>=1e3?`${new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:1,maximumFractionDigits:1}).format(e/1e3)}K`:new Intl.NumberFormat(a,{style:"currency",currency:t}).format(e)})(s,i,{locale:a,compact:n?.compact})??"0")},[i,a,r]),o=n.useMemo(()=>({getTextPrice:s}),[s]);return t.jsx(Oe.Provider,{value:o,children:e})},e.CurrencySelector=({currencies:e,selected:a,preferredAlignment:r="left",activatorText:s,onSelect:o})=>{const{t:c}=l.useTranslation(),d=n.useRef(o),u=n.useCallback(e=>{d.current?.(e)},[]),m=n.useMemo(()=>{if(!e)return[];const t=e.map(e=>({content:e,id:e}));return t.some(e=>e.id===S)||t.push({content:S,id:S}),V(t,[{attr:"content",order:"asc",preferredValue:S}])},[e]),h=n.useMemo(()=>m.map(e=>({id:e.id,content:e.content,onAction:()=>u(e.id),active:e.id===a,suffix:e.id===a&&t.jsx(i.Icon,{source:C,tone:"success"}),helpText:e.id===S&&t.jsx(i.Text,{as:"p",fontWeight:"semibold",children:c("Default")})})),[m,a,u,c]),A=n.useMemo(()=>!m?.length||1===m.length&&m[0]?.id===S,[m]);return n.useEffect(()=>{d.current=o}),A?null:t.jsx(ge,{options:h,selected:a,variant:"action-list",onSelect:e=>u(e),activatorText:s??c("Currency"),maxWidth:"225px",preferredAlignment:r,helpText:t.jsx(i.Box,{padding:"200",paddingBlockStart:"300",paddingBlockEnd:"300",borderColor:"border-tertiary",background:"bg",children:t.jsx(he,{as:"p",variant:"bodyMd",transformers:{1:e=>t.jsx(Te,{linkAction:{url:"https://help.shopify.com/en/manual/international/pricing/exchange-rates#auto-convert",target:"_blank"},children:e},e+"text-link")},children:c("This will follow Shopify's current exchange rate. [1]Read more[]")})})})},e.DATE_TIME_COMPARISON_FILTERS=ei,e.DEFAULT_CURRENCY_ANALYTIC=S,e.DEFAULT_CURRENT_PERIOD_LABEL=N,e.DEFAULT_PREVIOUS_PERIOD_LABEL=j,e.DateTimeFilterInputs=si,e.DateTimeFilters=li,e.DateTimePickerContext=ni,e.DateTimePickerProvider=({children:i,initDate:r,initDateCompare:s})=>{const[o,l]=n.useState(r||{since:q().set("hour",0).valueOf(),until:q().set("hour",0).valueOf(),title:"Today",alias:"today"}),{DATE_TIME_FILTERS:c}=ii(),d=n.useCallback((e,t=o)=>({...$t,...ti[e]({since:t.since,until:t.until,alias:t.alias})}),[o]),[u,m]=n.useState(s||d(e.CompareDateTimePickerAlias.PREVIOUS_PERIOD)),h=n.useCallback(t=>{"custom"!==u.alias&&u.alias!==e.CompareDateTimePickerAlias.NO_COMPARISON&&m(d(u.alias,t))},[u,d]),A=n.useCallback(e=>{l(e),h(e)},[h]);return t.jsx(ni.Provider,{value:{dateTimePicked:o,setDateTimePicked:A,compareDateTimePicked:u,setCompareDateTimePicked:m,resetDateVersion:()=>{const e=a(o.since).startOf("day").valueOf(),t=a(o.until).startOf("day").valueOf(),i=c.find(i=>i.since===e&&i.until===t);l({...o,isVersion:!1,versionId:void 0,isCurrentVersion:!1,description:"",title:i?.title||o.title,alias:i?.alias||"custom"})}},children:i})},e.GSelectableMetricChartCard=({metricInfo:e,dataChart:a,defaultActiveTab:r,isLoading:s,isEmptyMetricData:o,hideComparison:l,currentPeriodLabel:c=N,previousPeriodLabel:d=j,columnTypes:u})=>{const[m,h]=n.useState(r),A=n.useMemo(()=>{const e=m?a[m]:void 0;if(!e)return[];const t={name:c,data:e.current};return l?[t]:[t,{name:d,data:e.previous,isComparison:!0}]},[m,a,l,c,d]);return t.jsxs(i.Card,{children:[t.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${e.length}, 1fr)`,gap:"16px",marginBottom:"16px"},children:e.map(e=>t.jsx(dt,{item:e,isActive:m===e.key,isLoading:s,hideComparison:l,onSelect:h},e.key))}),t.jsx(et,{lineChartData:A,isLoading:s,isEmptyMetricData:o,metricKey:m,columnTypes:u})]})},e.GTimePicker=e=>{const{isCompare:n,...a}=e;return t.jsxs(i.InlineStack,{gap:"200",children:[t.jsx(mi,{...a}),n&&t.jsx(ui,{rangeAddition:a.rangeAddition,popoverProps:a.popoverProps})]})},e.MetricChartProvider=ke,e.MetricDonutChartCard=({label:e,metricKey:a,targets:r,totalsRow:s,comparisonTotalsRow:o,sort:l,isLoading:c,isEmptyMetricData:d,minHeight:m=294,onClick:h})=>{const g=A[a],{windowWidth:p,windowSize:M}=$e(),[T,f]=n.useState(!1),x=n.useMemo(()=>ht({targets:r,metricKey:a,totalsRow:s,comparisonTotalsRow:o,sort:l}),[r,a,s,o,l]);if(c)return t.jsx(ot,{});const I=e=>Y(`${e}`),N=p.lg&&M.width<1500;return t.jsx("div",{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:t.jsx(i.Card,{children:t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(i.InlineStack,{children:t.jsx("div",{className:"hover:cursor-pointer hover:text-[--p-color-text-link-hover]",onClick:e=>{e.stopPropagation(),h()},children:t.jsxs(i.InlineStack,{children:[t.jsx(je,{tooltip:g,children:t.jsx(i.Text,{as:"h3",variant:"headingMd",children:e})}),T&&t.jsx(i.Icon,{source:k,tone:"inherit"})]})})}),t.jsx("div",{className:Q("flex items-center justify-center",{"max-h-[250px] overflow-hidden":N}),children:d?t.jsx(tt,{title:"No data yet",description:"Data needs time to gather"}):t.jsx(ke,{minHeight:m,seriesColors:{},children:t.jsx(u.DonutChart,{data:x,legendPosition:"left",showLegendValues:!0,showLegend:!0,theme:"Light",tooltipOptions:{valueFormatter:I},labelFormatter:I})})})]})})})},e.PLACEHOLDER_VALUE="-",e.PREVIOUS_PERIOD_FILTER=$t,e.SERIES_COLORS=D,e.SingleMetricChartCard=({metricInfo:e,lineChartData:a,isLoading:r,hideComparison:s,columnTypes:o,isEmptyMetricData:l,onClickTitle:c})=>{const[d,u]=n.useState(!1);return t.jsx("div",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:t.jsx(i.Card,{children:t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(ct,{item:e,isHovered:d,isLoading:r,hideComparison:s,onClickTitle:c}),t.jsx(et,{lineChartData:a,isLoading:r,isEmptyMetricData:l,columnTypes:o,metricKey:e.key})]})})})},e.TARGET_CHANNEL=I,e.TARGET_DEVICES=x,e.TARGET_VISITOR=f,e.THUMB_PRODUCT_DEFAULT=v,e.TREND_TONE=E,e.convertDateToTz=X,e.convertToDateTimeFilters=bt,e.createLastDaysRange=Ht,e.dayjsTz=q,e.dayjsTzToDate=Z,e.dayjsTzToLocalTZ=K,e.formatDate=jt,e.formatDateTimeRange=St,e.formatDayjs=vt,e.formatMs=e=>{const t=Math.floor(e/1e3);return[Math.floor(t/3600),Math.floor(t%3600/60),t%60].map(e=>String(e).padStart(2,"0")).join(":")},e.formatTime=function(e){return X(e).format(Tt.TIME)},e.formatTimeRange=Et,e.getDateRangeTitle=Ct,e.getDateTimeFilterBase=function(e,t){const i=q(),n=X(e),a=X(t),r=pt();for(const e of Object.values(r)){const t=e.getDateRange(i),r=X(t.since),s=X(t.until),o=n.isSame(r,"day"),l=a.isSame(s,"day");if(o&&l)return{title:e.title,alias:e.alias}}return{title:Ct(e,t),alias:"custom"}},e.getDateTimeFilterByAlias=Mt,e.getDateTimeFilterMapping=pt,e.getEndOfDayBy=yt,e.getInitialTimezone=function(){return W},e.getLast12Months=qt,e.getLast30Days=Ft,e.getLast365Days=Wt,e.getLast7Days=_t,e.getLast90Days=Vt,e.getLastMonth=Jt,e.getLastYear=Xt,e.getMonthAndYearByDateFilter=Kt,e.getNoComparison=Pt,e.getPreviousMonth=Ut,e.getPreviousPeriod=wt,e.getPreviousQuarter=Yt,e.getPreviousWeek=zt,e.getPreviousYear=Bt,e.getToday=Gt,e.getVersionDateDescription=kt,e.getVersionDateRangeTitle=Rt,e.getYesterday=Qt,e.isDate=xt,e.isMidnight=Ot,e.isSameDayTimestamp=Dt,e.isValidDate=Nt,e.isValidYearMonthDayDateString=It,e.parseYearMonthDayDateString=function(e){return a(e).valueOf()},e.setTz=function(e){W=e,a.tz.setDefault(e)},e.useConvertMoneyContext=Ce,e.useCurrencyRatesStore=ve,e.useDateTimeFilter=ii,e.useDateTimePicker=ri,e.useDateTimePickerContext=ai,e.useIsStickyById=hi,e.useStickyFilterBoxProps=({id:e})=>{const{isMobileView:t}=$e(),i=t&&Boolean(e),n=hi({id:e,stickyTop:0,enabled:i});return i?{position:"sticky",insetBlockStart:"0",zIndex:"10",background:"bg",paddingBlock:"200",...n&&{borderBlockEndWidth:"025",borderColor:"border"}}:{}},e.useVersionDateTimeFilters=e=>{const{t:t}=l.useTranslation(),i=n.useMemo(()=>e?.length?bt(e):[],[e]);return{rangeAddition:{title:t("Experiment periods"),rangers:i}}}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("@shopify/polaris"),require("react"),require("dayjs"),require("dayjs/plugin/quarterOfYear.js"),require("dayjs/plugin/timezone.js"),require("dayjs/plugin/utc.js"),require("react-i18next"),require("zustand"),require("@tanstack/react-query"),require("@shopify/polaris-viz"),require("@shopify/polaris-viz/build/esm/styles.css?url")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","@shopify/polaris","react","dayjs","dayjs/plugin/quarterOfYear.js","dayjs/plugin/timezone.js","dayjs/plugin/utc.js","react-i18next","zustand","@tanstack/react-query","@shopify/polaris-viz","@shopify/polaris-viz/build/esm/styles.css?url"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).GemAnalytics={},e.jsxRuntime,e.Polaris,e.React,e.dayjs,e.quarterOfYear,e.timezone,e.utc,e.reactI18next,e.zustand,e.reactQuery,e.polarisViz,e.chartStyle)}(this,function(e,t,i,n,a,r,s,o,l,c,d,u,A){"use strict";var m;!function(e){e.SESSION="sessions",e.ORDERS="orders",e.PAGE_VIEWS="pageviews",e.VISITORS="visitors",e.BOUNCE_RATE="bounce_rate",e.CTR="ctr",e.CONVERSION_RATE="conversion_rate",e.AVG_TIME_ON_PAGE="average_time_on_page",e.ADDED_TO_CART="added_to_cart",e.ADD_TO_CART_RATE="added_to_cart_rate",e.REACHED_CHECKOUT="sessions_that_reached_checkout",e.COMPLETE_CHECKOUT="sessions_that_completed_checkout",e.CART_ADDITION="sessions_with_cart_additions",e.AOV="aov",e.REVENUE="revenue",e.RPV="revenue_per_visitor",e.VISITOR_ITEMS="visitor_items",e.DEVICE_ITEMS="device_items",e.TRAFFIC_SOURCE_ITEMS="traffic_source_items",e.PAGE_PATH_ANALYSIS="PAGE_PATH_ANALYSIS"}(m||(m={}));const h={[m.SESSION]:{title:"Sessions",content:"A period during which a visitor interacts with your online store"},[m.VISITORS]:{title:"Visitors",content:"Number of unique individuals who visit your online store"},[m.BOUNCE_RATE]:{title:"Bounce rate",content:"Percentage of visitors who leave your store after viewing only one page, without interacting further",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Bounce rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"sessions with a pageview"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total sessions"})]})},[m.CTR]:{title:"Click-through rate",content:"Percentage of clicks to open new page, compared to the number of times the page was viewed",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Click-through rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total clicks"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total pageviews"})]})},[m.AVG_TIME_ON_PAGE]:{title:"Average time on page",content:"Average duration that visitors spend on a page before clicking to open new page",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Average time on page"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total time on page"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"(total pageviews - total exits)"})]})},[m.PAGE_VIEWS]:{title:"Pageviews",content:"Number of times a page on your online store has been viewed by visitors"},[m.RPV]:{title:"Revenue per visitor",content:"Average revenue generated from each visitor",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Revenue per visitor"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total revenue"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total visitors"})]})},[m.ADDED_TO_CART]:{title:"Added to cart",content:"Total number of the event when a customer adds a product to their cart on your online store"},[m.REACHED_CHECKOUT]:{title:"Sessions that reached checkout",content:"Sessions in your online store in which the checkout page was reached"},[m.COMPLETE_CHECKOUT]:{title:"Sessions that completed checkout",content:"Sessions in your online store in which a purchase was completed"},[m.ORDERS]:{title:"Orders",content:"Number of orders that went through this pages"},[m.CONVERSION_RATE]:{title:"Conversion rate",content:"Percentage of online store sessions that completed an order",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Conversion rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"sessions that completed checkout"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total sessions"})]})},[m.AOV]:{title:"Average order value",content:"Average value of orders placed in your online store",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Average order value"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"total revenue"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total orders"})]})},[m.REVENUE]:{title:"Revenue",content:"Total income generated from sales after discounts",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Revenue"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"gross sales"}),t.jsx("span",{className:"formula-operator",children:" - "}),t.jsx("span",{className:"formula-input",children:"discounts"})]})},[m.ADD_TO_CART_RATE]:{title:"Add to cart rate",content:"Percentage of sessions in which the customer added item to the cart",formula:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"formula-variable",children:"Added to cart rate"}),t.jsx("span",{children:" = "}),t.jsx("span",{className:"formula-input",children:"sessions with cart additions"}),t.jsx("span",{className:"formula-operator",children:" / "}),t.jsx("span",{className:"formula-input",children:"total sessions"})]})},[m.CART_ADDITION]:{title:"Sessions with cart additions",content:"Sessions in your online store in which a visitor added item to the cart"},[m.VISITOR_ITEMS]:{title:"Sessions by visitor type",content:"<p>Numbers of new and returning visitors</p>",contentList:["New visitor: who accesses your store for the first time after GemX installation","Returning visitor: who comes back to your store after GemX installation"]},[m.DEVICE_ITEMS]:{title:"Sessions by device type",content:"Sessions in your online store by the visitor's device type"},[m.TRAFFIC_SOURCE_ITEMS]:{title:"Sessions by traffic source",content:"Sessions on your page by where visitors come from"},[m.PAGE_PATH_ANALYSIS]:{title:"Journey analysis",content:"Journey analysis tracks the journey from entry to purchase and shows where visitors leave the store"}};var g,T,p,M,f,I;!function(e){e.ALL_SESSION="ALL_SESSION",e.FIRST_SESSION="FIRST_SESSION",e.PAGE_ONLY="PAGE_ONLY"}(g||(g={})),function(e){e.NEW="new",e.RETURNING="returning"}(T||(T={})),function(e){e.DESKTOP="desktop",e.MOBILE="mobile",e.TABLET="tablet"}(p||(p={})),function(e){e.DIRECT="direct",e.EMAIL="email",e.REFERRAL="referral",e.ORGANIC_SOCIAL="organic-social",e.ORGANIC_SEARCH="organic-search",e.PAID_SOCIAL="paid-social",e.PAID_SEARCH="paid-search",e.SMS="sms"}(M||(M={})),function(e){e.CONTENT_TESTING="content-testing",e.PAGE_OPT="page-optimize",e.FUNNEL_OPT="funnel-optimize",e.PROFIT_OPT="profit-optimize",e.TRIAL_PAGE_OPT="trial-page-optimize",e.TRIAL_FUNNEL_OPT="trial-funnel-optimize",e.TRIAL_PROFIT_OPT="trial-profit-optimize"}(f||(f={})),function(e){e.TRIAL_PAGE_OPT="TRIAL_PAGE_OPT",e.TRIAL_FUNNEL_OPT="TRIAL_FUNNEL_OPT",e.TRIAL_PROFIT_OPT="TRIAL_PROFIT_OPT",e.ACTIVE_PAGE_OPT="ACTIVE_PAGE_OPT",e.ACTIVE_FUNNEL_OPT="ACTIVE_FUNNEL_OPT",e.ACTIVE_PROFIT_OPT="ACTIVE_PROFIT_OPT",e.LOADING_PLAN="LOADING_PLAN",e.TRIAL_EXPIRED="TRIAL_EXPIRED",e.ACTIVE_PAGE_OPT_AND_TRIAL_PAGE_OPT="ACTIVE_PAGE_OPT_AND_TRIAL_PAGE_OPT",e.ACTIVE_PAGE_OPT_AND_TRIAL_FUNNEL_OPT="ACTIVE_PAGE_OPT_AND_TRIAL_FUNNEL_OPT",e.ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT="ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT"}(I||(I={}));const N=[{value:T.NEW,label:"New"},{value:T.RETURNING,label:"Returning"}],x=[{value:p.DESKTOP,label:"Desktop"},{value:p.TABLET,label:"Tablet"},{value:p.MOBILE,label:"Mobile"}],E=[{value:M.DIRECT,label:"Direct"},{value:M.EMAIL,label:"Email"},{value:M.REFERRAL,label:"Referral"},{value:M.ORGANIC_SOCIAL,label:"Organic social"},{value:M.ORGANIC_SEARCH,label:"Organic search"},{value:M.PAID_SOCIAL,label:"Paid social"},{value:M.PAID_SEARCH,label:"Paid search"},{value:M.SMS,label:"SMS"}],j="Current",D="Previous",S={current:"rgba(64, 176, 230, 1)",comparison:"rgba(161, 202, 231, 1)",all:["#2C7DFF","#F34A70"]},O={POSITIVE:"#007F5F",NEUTRAL:"#4A4A4A"},v="USD";var y="data:image/svg+xml;base64,PHN2ZwogIHdpZHRoPSI5MCIKICBoZWlnaHQ9IjcyIgogIHZpZXdCb3g9IjAgMCA5MCA3MiIKICBmaWxsPSJub25lIgogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKPg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DQ3LjcwMzcgNDMuNSA0Ni40MjUgNDMuNUg0My41NzVDNDIuMjk2MyA0My41IDQxLjQwNSA0My40OTkxIDQwLjcxMSA0My40NDI0QzQwLjAzMDIgNDMuMzg2OCAzOS42MzkxIDQzLjI4MzEgMzkuMzQyOCA0My4xMzIxQzM4LjcwNzcgNDIuODA4NiAzOC4xOTE0IDQyLjI5MjMgMzcuODY3OSA0MS42NTcyQzM3LjcxNjkgNDEuMzYwOSAzNy42MTMyIDQwLjk2OTggMzcuNTU3NiA0MC4yODlaIgogICAgZmlsbD0iIzYxNjE2MSIKICAvPgo8L3N2Zz4K",C=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M3.5 10a.75.75 0 0 1 .75-.75h9.69l-2.72-2.72a.75.75 0 1 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06-1.06l2.72-2.72h-9.69a.75.75 0 0 1-.75-.75Z"}))};C.displayName="ArrowRightIcon";var R=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M7.75 3.5a.75.75 0 0 0-1.5 0v.407a3.075 3.075 0 0 0-.702.252 3.75 3.75 0 0 0-1.64 1.639c-.226.444-.32.924-.365 1.47-.043.531-.043 1.187-.043 2v1.464c0 .813 0 1.469.043 2 .045.546.14 1.026.366 1.47a3.75 3.75 0 0 0 1.639 1.64c.444.226.924.32 1.47.365.531.043 1.187.043 2 .043h3.383c.323 0 .542 0 .735-.02a3.75 3.75 0 0 0 3.344-3.344c.02-.193.02-.412.02-.735v-2.883c0-.813 0-1.469-.043-2-.045-.546-.14-1.026-.366-1.47a3.75 3.75 0 0 0-1.639-1.64 3.076 3.076 0 0 0-.702-.251v-.407a.75.75 0 0 0-1.5 0v.259c-.373-.009-.794-.009-1.268-.009h-1.964c-.474 0-.895 0-1.268.009v-.259Zm-1.521 1.995c.197-.1.458-.17.912-.207.462-.037 1.057-.038 1.909-.038h1.9c.853 0 1.447 0 1.91.038.453.037.714.107.912.207.423.216.767.56.983.984.1.197.17.458.207.912.014.18.024.38.029.609h-9.982c.006-.228.015-.429.03-.61.036-.453.106-.714.206-.911a2.25 2.25 0 0 1 .984-.984Zm-1.229 4.005v1.2c0 .853 0 1.447.038 1.91.037.453.107.714.207.912.216.423.56.767.984.983.197.1.458.17.912.207.462.037 1.057.038 1.909.038h3.306c.385 0 .52-.001.626-.012a2.25 2.25 0 0 0 2.006-2.006c.011-.106.012-.241.012-.626v-2.606h-10Z"}))};R.displayName="CalendarIcon";var P=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M15.78 5.97a.75.75 0 0 1 0 1.06l-6.5 6.5a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 1 1 1.06-1.06l2.72 2.72 5.97-5.97a.75.75 0 0 1 1.06 0Z"}))};P.displayName="CheckIcon";var k=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M5.72 8.47a.75.75 0 0 1 1.06 0l3.47 3.47 3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06Z"}))};k.displayName="ChevronDownIcon";var b=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M7.72 14.53a.75.75 0 0 1 0-1.06l3.47-3.47-3.47-3.47a.75.75 0 0 1 1.06-1.06l4 4a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0Z"}))};b.displayName="ChevronRightIcon";var L=function(e){return n.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),n.createElement("path",{fillRule:"evenodd",d:"M14.53 12.28a.75.75 0 0 1-1.06 0l-3.47-3.47-3.47 3.47a.75.75 0 0 1-1.06-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1 0 1.06Z"}))};L.displayName="ChevronUpIcon";const w=/\.0+$/,z=e=>`${e}`.replace(w,""),Y=(e,t=2)=>z(e.toFixed(t)),U=e=>{const[t,i,n]=e.split(".").map(e=>Number(e));return 1e6*(t??0)+1e3*(i??0)+(n??0)},_=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),B=e=>e>0&&e<.005,G=(e,t,i=2)=>{const n=((e,t,i=2)=>{if("number"!=typeof e||!t)return;return 0===e?0:parseFloat(Y(e/t*100,i))})(e,t,i);if("number"==typeof n)return B(n)?"~0%":`${n}%`},H=(e,t=2)=>B(e)?"~0%":`${Y(e,t)}%`;function F(e){return"string"==typeof e?e:"object"==typeof e&&null!==e&&Object.keys(e).filter(t=>e[t]).join(" ")}function V(...e){return e.map(F).filter(Boolean).join(" ")}function Q(e,t,i="asc"){if(e===t)return 0;if(void 0===e||void 0===t)return void 0===e&&void 0!==t?"asc"===i?-1:1:void 0===t&&void 0!==e?"asc"===i?1:-1:0;const n=e=>"boolean"!=typeof e&&!isNaN(Date.parse(e)),a=e=>"string"==typeof e;let r=0;if(n(e)&&n(t)){r=(e instanceof Date?e:new Date(e))>(t instanceof Date?t:new Date(t))?1:-1}else r=(a(e)&&a(t),e>t?1:-1);return"asc"===i?-r:r}function W(e,t){return"string"==typeof t?t.replace(/\[(\d+)\]/g,".$1").split(".").reduce((e,t)=>e?.[t],e):e[t]}function J(e,t){return t.reduce((e,t)=>function(e,t){const{attr:i,order:n="asc",preferredValue:a,backupAttr:r,orderArrayAttr:s,orderArray:o}=t;return e.slice().sort((e,t)=>{const l=W(e,i),c=W(t,i);if(void 0!==a){if(l===a&&c!==a)return-1;if(c===a&&l!==a)return 1}if(s===i&&o){const e=o[n];return e.indexOf(l)-e.indexOf(c)}const d=Q(l,c,n);return 0!==d?d:r?Q(e[r],t[r],n):0})}(e,t),e.slice())}a.extend(o),a.extend(s),a.extend(r);let q="UTC";const X="YYYY-MM-DD HH:mm:ss";const K=e=>e?a(e).tz(q):a().tz(q),Z=e=>e?a.tz(a(e).format(X),q):a.tz(a().format(X),q),$=e=>a(e?K(e).format(X):K().format(X)),ee=e=>$(e).toDate();var te;!function(e){e.DAY="DAY",e.HOUR="HOUR",e.MONTH="MONTH",e.QUARTER="QUARTER",e.WEEK="WEEK",e.YEAR="YEAR"}(te||(te={}));const ie=60,ne=3600,ae=(e,t,i)=>{if(!e)return"";const n=i?.isExpandDetail?{formatHouse:"MMM D, h:mm A",formatDay:"MMM D, YYYY",formatMonth:"MMM YYYY",formatYear:"MMM YYYY"}:{formatHouse:"h A",formatDay:"MMM D",formatMonth:"MMM YYYY",formatYear:"YYYY"};switch(t){case te.HOUR:return K(e).format(n.formatHouse);case te.DAY:case te.WEEK:return K(e).format(n.formatDay);case te.MONTH:return K(e).format(n.formatMonth);case te.QUARTER:{const t=K(e);return`Q${t.quarter()} ${t.format("YYYY")}`}case te.YEAR:return K(e).format(n.formatYear)}return K(e).format(n.formatMonth)};var re;!function(e){e.ALL="all",e.HOME="index",e.COLLECTION="collection",e.COLLECTION_LIST="collection-list",e.PRODUCT="product",e.ARTICLE="article",e.PAGE="page",e.CART="cart",e.SEARCH="search",e.NOT_FOUND="404",e.BLOG="blog",e.PASSWORD="password",e.CONTACT="contact",e.GIF_CART="gif-cart",e.ACCOUNT="account",e.CHECKOUT="checkout",e.GIFT_CARD="gift-card"}(re||(re={}));const se=({children:e,fullWidth:i=!1,cursor:n="pointer",onClick:a,onMouseEnter:r,onMouseLeave:s})=>t.jsx("div",{role:"button",tabIndex:0,className:V({"w-full":i,"cursor-pointer":"pointer"===n,"cursor-default":"default"===n,"cursor-not-allowed":"not-allowed"===n}),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},onClick:a,onMouseEnter:r,onMouseLeave:s,children:e}),oe=({onClick:e,active:a,content:r,textProps:s,boxProps:o,disabled:l,icon:c})=>{const d=n.useMemo(()=>l?{borderColor:"border-disabled",background:"bg-surface-disabled",...o}:{shadow:a?"button-inset":"button",background:a?"bg-fill-active":"bg-fill",...o},[a,l,o]),u=n.useMemo(()=>l?"text-[var(--p-color-text-disabled)]":a?"text-[var(--p-color-text-subdued)]":"text-[var(--p-color-text)]",[a,l]),A=n.useMemo(()=>t.jsx(i.Text,{as:"span",variant:"bodyMd",fontWeight:"medium",tone:l?"inherit":s?.tone,truncate:!0,...s?.variant&&{variant:s.variant},children:r}),[r,s,l]),m=n.useCallback(()=>{l||e()},[l,e]);return t.jsx(se,{cursor:l?"default":"pointer",onClick:m,children:t.jsx("div",{className:V(u),children:t.jsxs(i.Box,{padding:"150",paddingInline:"300",paddingInlineEnd:"150",borderRadius:"200",...d,children:[c&&t.jsxs(i.InlineStack,{gap:"200",align:"center",wrap:!1,children:[t.jsx(i.Box,{children:t.jsx(i.Icon,{source:c})}),A]}),!c&&t.jsxs(i.InlineGrid,{columns:"1fr 20px",gap:"200",alignItems:"center",children:[A,t.jsx(i.Icon,{source:a?L:k})]})]})})})},le=({height:e,align:a,inlineAlign:r,display:s,...o})=>{const l=n.useMemo(()=>{if("sticky"!==o.position)return{};const e={position:"sticky"};return o.insetInlineStart&&(e.insetInlineStart=4*Number(o.insetInlineStart)),o.insetInlineEnd&&(e.insetInlineEnd=4*Number(o.insetInlineEnd)),o.insetBlockStart&&(e.insetBlockStart=4*Number(o.insetBlockStart)),o.insetBlockEnd&&(e.insetBlockEnd=4*Number(o.insetBlockEnd)),e},[o.position,o.insetInlineStart,o.insetInlineEnd,o.insetBlockStart,o.insetBlockEnd]);return t.jsx("div",{className:"Polaris-GBlockCenter",style:{...l,"--gp-block-center-height":e,"--gp-block-center-display":s,"--gp-block-center-align":a,"--gp-block-center-inline-align":r,"--gp-block-center-overflow-x":o.overflowX,"--gp-block-center-overflow-y":o.overflowY},children:t.jsx(i.Box,{...o})})},ce=({isEnabled:e=!0,content:n,maxWidth:a,...r})=>e&&!!n?t.jsx(i.Tooltip,{width:"wide",hoverDelay:500,content:n,...r,accessibilityLabel:a?.toString()}):r.children,de=({activatorWrapper:e,children:n,iconRight:a,inset:r,stopPropagation:s=!0,onClick:o,themeTone:l="light",variant:c,...d})=>{const u=e||"div",A="neutral"===c,m=A?void 0:c,h=t.jsx(ce,{activatorWrapper:"tooltip-content",...d.tooltip,children:t.jsx(u,{className:V("Polaris-GButton",{"Polaris-GButton--icon-right":a,"Polaris-GButton--dark":"dark"===l,"Polaris-GButton--neutral":A,"cursor-default":d.disabled,"Polaris-GButton--fullWidth":d.fullWidth,flex:r}),onClick:e=>{s&&e.stopPropagation(),d.disabled||o?.()},children:t.jsx(i.Button,{variant:m,...d,children:n})})});return r?t.jsx(i.Box,{padding:"100",children:h}):h},ue=({...e})=>e.multiple?t.jsx(Ae,{...e}):t.jsx(me,{...e}),Ae=({options:e,onChange:a,onChangeSingleValue:r,emptySelected:s,selected:o,onHover:l,itemHovered:c,dependentDisabledValues:d})=>{const[u,A]=n.useState([]),m=e=>{l&&l(e)};return n.useEffect(()=>{A(()=>o?e.filter(e=>o.includes(e.value)).map(e=>e.value):[])},[o]),t.jsx(i.BlockStack,{children:e.map(n=>{const o=d?.has(n.value),l=s&&1===e.filter(e=>e.selected).length&&s,h=()=>{l||(e=>{r&&r(e);const t=u.includes(e)?u.filter(t=>t!==e):[...u,e];A(t),a(t)})(n.value)};return t.jsx("div",{className:V("flex w-full items-center justify-between",{"cursor-not-allowed":l,"cursor-pointer":!l,"bg-surface-hover rounded-lg":c===n.value}),onClick:()=>{l||n.disabled||h()},onMouseEnter:()=>m(n.value),onMouseLeave:()=>m(void 0),children:l?t.jsx(ce,{isEnabled:n.tooltip?.isEnabled,...n.tooltip,children:t.jsx(i.Box,{paddingBlock:"150",paddingInline:"200",width:"100%",children:t.jsxs(i.InlineStack,{blockAlign:"center",gap:"150",children:[t.jsx(i.Checkbox,{label:n.label,labelHidden:!0,checked:n.selected,disabled:!0}),t.jsx(i.Text,{as:"p",variant:"bodyMd",tone:"subdued",children:n.label})]})})}):t.jsx(i.Box,{paddingBlock:"150",paddingInline:"200",minWidth:"0",children:t.jsxs(i.InlineStack,{blockAlign:"center",gap:"150",wrap:!1,children:[t.jsx(i.Checkbox,{label:n.label,labelHidden:!0,checked:!o&&u.includes(n.value),onChange:h,disabled:n.disabled}),t.jsxs(i.Box,{minWidth:"0",children:[t.jsx(i.Text,{as:"p",variant:"bodyMd",truncate:!0,tone:o?"disabled":"inherit",children:n.label}),n.description&&t.jsx(i.Text,{as:"p",variant:"bodySm",tone:"disabled",truncate:!0,children:n.description})]})]})})},n.value)})})},me=({options:e,onChange:n})=>t.jsx(i.BlockStack,{gap:"300",children:e.map(e=>t.jsx(i.RadioButton,{label:e.label,checked:e.selected,onChange:()=>n(e.value),helpText:e.helpText?t.jsx(ve,{item:e}):void 0},e.value))}),he=n.forwardRef(({children:e,onClick:i,...a},r)=>{const s=n.useCallback(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i?.())},[i]);return t.jsx("div",{ref:r,...a,role:"button",tabIndex:0,onKeyDown:s,onClick:i,children:e})});he.displayName="GDiv";const ge=/\[(\d+)\](.*?)\[\]/g,Te=e=>{const{children:a,transformers:r}=e;if(!r||0===Object.values(r).length)return t.jsx(i.Text,{...e,children:a});return t.jsx(i.Text,{...e,children:"string"==typeof a?(e=>{const i=[];let a=0;return e.replace(ge,(t,n,s,o)=>{i.push(e.slice(a,o));const l=r[n];return"function"==typeof l?i.push(l(s)):i.push(t),a=o+t.length,t}),i.push(e.slice(a)),i.map((e,i)=>t.jsx(n.Fragment,{children:e},i))})(a):a})};function pe({options:e,selected:n,onChange:a}){const r=e=>{a([e])};return t.jsx(i.Box,{padding:"150",children:t.jsx(i.BlockStack,{gap:"100",children:e.map(e=>{const a=n.includes(e.value);return t.jsx("div",{role:"option","aria-selected":a,tabIndex:0,onClick:()=>r(e.value),onKeyDown:t=>{return i=t,n=e.value,void("Enter"!==i.key&&" "!==i.key||(i.preventDefault(),r(n)));var i,n},className:V("p-1.5 pl-4 rounded-lg cursor-pointer",{"bg-[#F1F1F1]":a,"hover:bg-[#F1F1F1]":!a}),children:t.jsxs(i.InlineStack,{align:"space-between",blockAlign:"center",wrap:!1,gap:"200",children:[t.jsx(i.Box,{minWidth:"0",children:e.label}),a&&t.jsx(i.Box,{children:t.jsx(i.Icon,{source:P})})]})},e.value)})})})}const Me=e=>{const[a,r]=n.useState(!1),{activatorText:s,selected:o,options:l,emptyLabel:c,preferredAlignment:d="right",formatActivatorContent:u=e=>e.join(", ")}=e,A=n.useCallback(()=>r(e=>!e),[]),m=n.useMemo(()=>l.filter(e=>e.active||e.id===o).map(e=>e.content||"").filter(e=>!!e),[l,o]),h=n.useMemo(()=>{if(m.length){const e=u(m);return s?`${s}: ${e}`:e}return c?s?`${s}: ${c}`:c:s},[m,c,s,u]),g=n.useMemo(()=>{switch(e.variant){case"choice":return t.jsx(fe,{...e,setPopoverActive:A});case"action-list":return t.jsx(Ie,{...e,setPopoverActive:A})}},[e,A]);return t.jsx(i.Popover,{active:a,activator:t.jsx("div",{className:"flex items-center gap-1",children:t.jsx(i.Button,{onClick:A,disclosure:a?"up":"down",children:h})}),autofocusTarget:"first-node",fluidContent:!0,onClose:A,preferredAlignment:d,children:g})},fe=({options:e,selected:a,onSelect:r,maxWidth:s,minWidth:o,clearable:c,setPopoverActive:d})=>{const{t:u}=l.useTranslation(),A=n.useMemo(()=>e?.length?e.map(e=>({value:e.id,label:e.content||"",selected:!1})):[],[e]),m=n.useCallback(e=>{r(e)},[r]);return t.jsx(i.Box,{maxWidth:s,minWidth:o,paddingBlock:"150",children:t.jsxs(i.BlockStack,{children:[t.jsx(i.BlockStack,{gap:"0",children:t.jsx(ue,{multiple:!0,options:A,selected:a,onChange:m})}),c&&t.jsx(i.Box,{paddingBlock:"150",paddingInline:"200",children:t.jsx(i.InlineStack,{blockAlign:"center",align:"start",children:t.jsx(i.Button,{disabled:!a?.length,onClick:()=>{m([]),d(!1)},variant:"plain",children:u("Clear")})})})]})})},Ie=({options:e,selected:a,onSelect:r,helpText:s,maxWidth:o,minWidth:l,setPopoverActive:c})=>{const d=n.useCallback(e=>{r(e),c(!1)},[r,c]),u=n.useMemo(()=>e?.length?e.map(e=>({id:e.id,content:e.content,helpText:e.helpText,onAction:()=>d(e.id),active:e.active||e.id===a,suffix:(e.active||e.id===a)&&t.jsx(i.Icon,{source:P,tone:"success"})})):[],[e,a,d]);return t.jsx(i.Box,{maxWidth:o,minWidth:l,children:t.jsxs(i.BlockStack,{gap:"0",children:[t.jsx(i.ActionList,{actionRole:"menuitem",items:u}),s]})})},Ne=({linkAction:e,isDisabled:n,disabledFocus:a,children:r})=>!e||n?t.jsx(t.Fragment,{children:r}):t.jsx("span",{className:V("GTextLink",{"GTextLink--disabled-focus":a}),children:t.jsx(i.Link,{...e,children:t.jsx(t.Fragment,{children:r})})}),xe=e=>{const n=e.height??"50px";return t.jsxs("div",{className:"Polaris-GSkeletonDisplayText",children:[t.jsx("style",{children:`.Polaris-GSkeletonDisplayText .Polaris-SkeletonDisplayText__DisplayText { height: ${n} !important; }`}),t.jsx(i.SkeletonDisplayText,{maxWidth:"100%",size:"extraLarge"})]})};const Ee=({source:e,alt:i,size:n,grayscale:a,defaultSource:r=y,width:s="80",height:o="80",classRemoved:l=!1})=>{var c;const d=a&&"Polaris-GThumbnail--filter",u=V("Polaris-Thumbnail",n&&`${"Polaris-Thumbnail--size"}${(c=n).charAt(0).toUpperCase()}${c.slice(1)}`),A=t.jsx("img",{onError:e=>{e.currentTarget.src=r},alt:i??"Thumbnail",src:`${e??r}`,width:s,height:o,style:{"--gp-grayscale-percentage":a||"100%"},className:V("Polaris-GThumbnail",d)});return l?A:t.jsx("span",{className:u,children:A})},je={default:"w-[210px]",wide:"w-[320px]",large:"w-[328px]"},De={start:"flex justify-start",center:"flex justify-center",end:"flex justify-end"},Se=n.forwardRef((e,a)=>{const{tooltip:r,wrapper:s="div",activatorProps:o,isHideBorder:l,alignment:c,delay:d=500,textDecoration:u="none",popoverRef:A,preferredAlignment:m="left",showArrow:h=!1}=e,{width:g="default"}=r??{},[T,p]=n.useState(!1),M=s,f=je[g],I=n.useRef(null),N=()=>{I.current&&(clearTimeout(I.current),I.current=null),p(!1)};return n.useImperativeHandle(a,()=>({onClose:N})),t.jsx(M,{className:V("GTooltipCard cursor-pointer",c&&De[c],{"GTooltipCard--text-underline":"underline"===u}),onMouseEnter:()=>{I.current=setTimeout(()=>{p(!0)},d)},onMouseLeave:N,children:t.jsx(i.Popover,{ref:A,activator:l?t.jsx(i.InlineStack,{children:e.children}):t.jsx(i.Box,{borderBlockEndWidth:"025",borderStyle:"dashed",borderColor:"border-tertiary",as:s,...o,children:e.children}),activatorWrapper:s,onClose:()=>{},active:T,preferredPosition:"below",preferredAlignment:m,children:r&&t.jsx("div",{className:V(f,{"GTooltipCard-arrow":h}),children:t.jsx(i.Box,{padding:"400",children:t.jsxs(i.BlockStack,{gap:"200",children:[t.jsxs(i.BlockStack,{gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"headingSm",fontWeight:"semibold",children:r.title}),t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",tone:"subdued",fontWeight:"medium",children:t.jsx("span",{dangerouslySetInnerHTML:{__html:r.content}})}),r.contentList&&t.jsx(i.List,{type:"bullet",children:r.contentList.map(e=>t.jsx(i.List.Item,{children:t.jsx(i.Text,{as:"span",variant:"bodyMd",tone:"subdued",fontWeight:"medium",children:e})},e))})]})]}),r.formula&&t.jsx("div",{className:"rounded-md font-mono",style:{fontSize:"12px"},children:r.formula})]})})})})})});Se.displayName="GTooltipCard";const Oe=({activatorText:e,selected:a,options:r,minWidth:s,maxWidth:o,preferredAlignment:l="right",onSelect:c})=>{const[d,u]=n.useState(!1),[A,m]=n.useState(null),h=()=>u(e=>!e),g=n.useMemo(()=>r.find(e=>e.id===a),[r,a]),T=n.useMemo(()=>{if(g){const t=g.title??g.content;return e?`${e}: ${t}`:t}return e},[g,e]);return t.jsx(i.Popover,{active:d,activator:t.jsx(oe,{active:d,content:T,textProps:{variant:"bodySm"},onClick:h}),autofocusTarget:"first-node",fluidContent:!0,onClose:h,preferredAlignment:l,children:t.jsx(i.Box,{maxWidth:o,minWidth:s,padding:"200",children:t.jsx(i.BlockStack,{gap:"200",children:r.map(e=>{const n=e.id===a,r=A===e.id,s=n?"input-border":r?"border-hover":"transparent";return t.jsx(i.Box,{padding:"150",borderWidth:"025",borderColor:s,borderRadius:"100",children:t.jsx("div",{onClick:()=>{return t=e.id,c(t),void u(!1);var t},className:"cursor-pointer",onMouseEnter:()=>m(e.id),onMouseLeave:()=>m(null),children:t.jsxs(i.InlineStack,{gap:"300",align:"space-between",blockAlign:"center",wrap:!1,children:[t.jsxs(i.InlineStack,{gap:"300",blockAlign:"center",wrap:!1,children:[t.jsx("div",{className:"bg-surface-secondary flex items-center justify-center rounded-md min-w-[184px] h-[92px]",children:t.jsx("img",{src:e.icon,alt:e.content,className:"w-full h-full object-contain"})}),t.jsxs(i.BlockStack,{gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",fontWeight:"semibold",children:e.content}),t.jsx(i.Text,{as:"p",variant:"bodyMd",tone:"subdued",children:e.helpText})]})]}),n&&t.jsx(i.Box,{children:t.jsx(i.Icon,{source:P})})]})})},e.id)})})})})},ve=({item:e})=>t.jsxs(i.Text,{as:"p",variant:"bodyMd",children:[e.description,e.inlineAction&&t.jsx(i.Link,{monochrome:!0,onClick:()=>{e.inlineAction?.onAction?e.inlineAction?.onAction():window.open(e.inlineAction?.url,e.inlineAction?.target??"_blank")},children:e.inlineAction?.content})]});var ye;!function(e){e.CampaignGroupTemplate="CampaignGroupTemplate",e.PageListing="PageListing",e.Analytics="Analytics",e.PathAnalysis="PathAnalysis"}(ye||(ye={})),ye.CampaignGroupTemplate,ye.PageListing,ye.Analytics,ye.PathAnalysis;const Ce=()=>t.jsx(xe,{height:"188px"}),Re=c.create(e=>({currencyRates:null,setCurrencyRates:t=>e({currencyRates:t})})),Pe=async()=>{const e=await fetch("https://cdn.shopify.com/s/javascripts/currencies.js");if(!e.ok)throw new Error("Failed to fetch currency rates");return(e=>{const t={},i=/var Currency=\{rates:\{(.*?)\}\};/s.exec(e),n=i?.[1];if(!n)return t;const a=/([A-Z]+):\s*([\d.e+-]+),/g;let r;for(;null!==(r=a.exec(n));){const[,e,i]=r;e&&i&&(t[e]=parseFloat(i))}return t})(await e.text())},ke=n.createContext({getTextPrice:e=>"string"==typeof e?e:`${e??0}`}),be=()=>n.useContext(ke),Le={comparison:S.comparison,single:S.current,all:[...S.all]},we=({children:e,minHeight:i=228,seriesColors:n=Le})=>t.jsxs(t.Fragment,{children:[t.jsx("link",{rel:"stylesheet",href:A}),t.jsx(u.PolarisVizProvider,{themes:{Light:{chartContainer:{minHeight:i},grid:{horizontalOverflow:!0,verticalOverflow:!0,horizontalMargin:0},seriesColors:n}},children:e})]}),ze={isLoading:!1,activePlanKey:f.PAGE_OPT,shopPlanState:I.LOADING_PLAN,isPathAnalysisEnabled:!1,onOpenModalPricing:()=>{}},Ye=n.createContext(ze),Ue=()=>n.useContext(Ye);var _e,Be,Ge,He,Fe,Ve,Qe,We,Je,qe,Xe,Ke,Ze,$e;!function(e){e.DATE="DATE",e.ARRAY="ARRAY",e.OBJECT="OBJECT",e.STRING="STRING",e.INTEGER="INTEGER",e.CURRENCY="CURRENCY",e.PERCENT="PERCENT",e.DURATION="DURATION",e.MONTH="MONTH_TIMESTAMP",e.QUARTER="QUARTER_TIMESTAMP",e.DAY="DAY_TIMESTAMP",e.WEEK="WEEK_TIMESTAMP",e.YEAR="YEAR_TIMESTAMP",e.HOUR="HOUR_TIMESTAMP"}(_e||(_e={})),function(e){e.CAMPAIGNS="experiments",e.VISITOR_ITEMS="visitor_items",e.DEVICE_ITEMS="device_items",e.TRAFFIC_SOURCE_ITEMS="traffic_source_items"}(Be||(Be={})),function(e){e.SESSIONS="sessions",e.SALES="sales"}(Ge||(Ge={})),function(e){e.EQ="=",e.IN="IN",e.LIKE="LIKE"}(He||(He={})),function(e){e.OR="OR",e.AND="AND"}(Fe||(Fe={})),function(e){e.DEVICE="device",e.DEVICES="devices",e.VISITOR="visitor_type",e.VISITORS="visitor_types",e.TRAFFIC_SOURCE="traffic_source",e.TRAFFIC_SOURCES="traffic_sources",e.VERSION="version",e.VERSIONS="versions",e.SINGLE_PAGE="page_path",e.LIST_PAGE="page_paths",e.GROUP_CAMPAIGN_ITEM="group_campaign_item",e.GROUP_CAMPAIGN_ITEMS="group_campaign_items",e.SINGLE_CAMPAIGN="experiment_id",e.GROUP_CAMPAIGN="experiment_group_id",e.CAMPAIGN_VERSION_ID="version_id",e.GROUP_CAMPAIGN_VERSION_ID="group_version_id"}(Ve||(Ve={})),function(e){e.DEVICE_OPERATOR="deviceOperator",e.VISITOR_OPERATOR="visitorOperator",e.TRAFFIC_SOURCE_OPERATOR="trafficSourceOperator",e.VERSION_OPERATOR="versionOperator",e.PAGE_OPERATOR="pageOperator",e.CAMPAIGN_ITEM_OPERATOR="campaignItemOperator"}(Qe||(Qe={})),function(e){e.NONE="",e.TOTALS="TOTALS",e.ALL="WITH GROUP_TOTALS, TOTALS"}(We||(We={})),function(e){e.ASC="ASC",e.DESC="DESC"}(Je||(Je={})),function(e){e.PAGE_ITEMS="page_items",e.PAGE_PATHS="page_paths"}(qe||(qe={})),function(e){e.PAGE_PATH="page_path"}(Xe||(Xe={})),function(e){e.SHOPIFY_PAGE_ID="shopify_page_id",e.LOCATION_PATH="location_path",e.PAGE_TYPE="page_type",e.PAGE_TITLE="page_title",e.PAGE_PATH="page_path",e.TEMPLATE_SUFFIX="template_suffix"}(Ke||(Ke={})),function(e){e.DEFAULT="DEFAULT",e.COMPARISON="COMPARISON",e.TOTALS="TOTALS",e.COMPARISON_TOTALS="COMPARISON_TOTALS"}(Ze||(Ze={})),function(e){e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.QUARTER="quarter",e.YEAR="year"}($e||($e={})),Ze.DEFAULT,Ze.COMPARISON,Ze.TOTALS,Ze.COMPARISON_TOTALS;const et=({value:e,formatter:t,getTextPrice:i,name:n})=>{if(null!==e&&("object"==typeof e||Array.isArray(e)))return e;switch(t){case _e.INTEGER:return _((e??0).toString());case _e.CURRENCY:return i?i(e,!1):`${e??0}`;case _e.DATE:return(e=>{if(!e)return"None";const t=K(e),i=K(),n=K().subtract(1,"day"),a=t.format("YYYY-MM-DD")===i.format("YYYY-MM-DD"),r=t.format("YYYY-MM-DD")===n.format("YYYY-MM-DD");if(a)return`Today at ${t.format("HH:mm")}`;if(r)return`Yesterday at ${t.format("HH:mm")}`;const s=i.diff(t,"day");return s>=0&&s<7?`${t.format("dddd")} at ${t.format("HH:mm")}`:`${t.format("MMM D")} at ${t.format("hh:mm a")}`})(e);case _e.PERCENT:return"number"!=typeof e?G(0,1,2)??"":G(e/100,1,2)??"";case _e.DURATION:return(e=>{let t=e;Number.isFinite(e)&&null!=e||(t=0);const i=Y(t);if(t>=ne)return`${Math.floor(t/ne)}h ${Math.floor(t%ne/ie)}m ${Math.floor(t%ie)}s`;if(t>=ie)return`${Math.floor(t/ie)}m ${Math.floor(t%ie)}s`;return`${i}s`})(Number(e));case _e.STRING:{const t=n===Be.CAMPAIGNS?"":"None";return e??t}case _e.DAY:return ae(e,te.DAY,{isExpandDetail:!0});case _e.HOUR:return ae(e,te.HOUR,{isExpandDetail:!0});case _e.MONTH:return ae(e,te.MONTH,{isExpandDetail:!0});case _e.YEAR:return ae(e,te.YEAR);case _e.WEEK:return ae(e,te.WEEK,{isExpandDetail:!0});case _e.QUARTER:return ae(e,te.QUARTER,{isExpandDetail:!0});case _e.OBJECT:case _e.ARRAY:return e;default:return`${e}`}},tt=e=>{try{const t=(e=>{if(e)return"string"==typeof e?JSON.parse(e):e})(e);if(!Array.isArray(t))return;return t}catch{return}},it=e=>tt(e)?.map(e=>({...e,total:Number(e.total)})),nt=(e,t)=>{const i=e?.[t];return"number"==typeof i?i:0};var at;!function(e){e.NEXT="NEXT",e.PREV="PREV"}(at||(at={}));const rt=({metricKey:e,columnTypes:t})=>{const{formatData:i}=(({getTextPrice:e}={})=>{const{getTextPrice:t}=be(),i=e??t,n=({value:e,formatter:t,name:n})=>et({value:e,formatter:t,getTextPrice:i,name:n});return{formatData:n,computeMetric:({metric:e,previousMetric:t,metricKey:i,formatter:a})=>{if(!(e=>{const t=e?.sessions;return"number"==typeof t&&t>0})(e))return{value:0,change:"-"};const r=nt(e,i),s=nt(t,i),o=n({value:r,formatter:a,name:i});return 0===r&&0!==s?{value:o,change:-100}:0===s?{value:o,change:"-"}:{value:o,change:(r-s)/s*100}}}})(),n=e?t?.[e]:void 0,a=e=>String(i({value:e,formatter:n})),r={labelFormatter:e=>a(Number(e)||0)};return{formatValue:a,yAxisOptions:r}};const st=()=>{const[e,t]=n.useState(()=>({width:"undefined"!=typeof window?window.innerWidth:0,height:"undefined"!=typeof window?window.innerHeight:0})),i=n.useMemo(()=>({xs:e.width<=768,md:768<e.width&&e.width<=1024,lg:e.width>1024,xsDown:e.width<768,"1200Down":e.width<1200,"1040Down":e.width<1040}),[e.width]),a=!i.lg,r=i.xs;return n.useEffect(()=>{const e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),{windowSize:e,windowWidth:i,isMobileTabletView:a,isMobileView:r}},ot=({lineChartData:e,isLoading:i,isEmptyMetricData:n,columnTypes:a,metricKey:r})=>{const{formatValue:s,yAxisOptions:o}=rt({metricKey:r,columnTypes:a||{}});return r?i?t.jsx(Ce,{}):n?t.jsx(lt,{title:"No data yet",description:"Data needs time to gather"}):t.jsx(we,{children:t.jsx(u.LineChart,{data:e,yAxisOptions:o,theme:"Light",tooltipOptions:{titleFormatter:()=>`${h[r]?.title??""}`,keyFormatter:e=>e,renderTooltipContent:e=>t.jsx(At,{data:e,formatValue:s})},showLegend:!0})}):t.jsx(t.Fragment,{})};const lt=({boxProps:e,minHeight:n,description:a,title:r})=>t.jsx(i.Box,{minWidth:"100%",...e,children:t.jsx(le,{minHeight:n,children:t.jsx(i.Box,{padding:"400",children:t.jsxs(i.BlockStack,{gap:"400",align:"center",inlineAlign:"center",children:[t.jsx("div",{className:"h-[80px] w-[80px]",children:t.jsx(Ee,{source:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKEAAACgCAYAAABkDQwTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABvtSURBVHgB7V3NjyRFdo+oqq7u6fmg5wOzMINA8oDkA2hXSICstTS+GWRp17CyLIF89on1P2DBybKslS0h37hYFsg37PUBfIQbYCFZIPkCQoM0MAzM0D3Tw/RMT1el3y8iXubLqMjPqu7Mro6fOjuzMiMys7J++b7iRYRW+4DNzc0NWv02SZJLtP45LRsq4rBji5YPptPp78+dO/evaoHQasEgAoJ8b6hIvGXGZa31n54+ffqyWgAWSkIi4OuOgBHLjy1HxP9Vc2JhJLx+/fqvB4PBf6iIowRIxF8QEbfUHBioBYEI+M8q4qjhcbIR/1bNiYWQkNTwJVo9riKOHEgS/lbNiYWQkN6GSyriqGKDhNDP1RxYlDp+XEUcWUwmk16QMCKiNSIJIzpHJGFE54gkjOgcI9URyLVXa2tranV11WxHdAtyLtTdu3fV7u6uOmh0RsKTJ0+q4XCoIvoB/BbHjx83AuHevXvqINGJOh6Px5GAPcWxY8cOXDN1QsLRqDMBHFEBEPCgf5/omETM4EhIwogIiUjCiM4RSRjROSIJIzpHJGFE54gkjOgckYQRnWNposbT6dS0fwIrKysq4vDg0JIQpLt165a6c+eO2t7eNp+Bc+fOqQcffNBsb21tqdu3b6sTJ06oU6dOoTOWiugfDh0JQbYbN26oH3/8MSVeEZigWK5du6YeeOABdfbs2Sgpe4ZDRUKQ6ttvv1X379+vVR6pSQwQdnNz00hGSMuNjThARF9waEgIyQdpVhewD0MpSSDw1atXzZrVdkS3OBQkvH79uvrhhx8a1anKicM5gUjE7tF7Sx3ORVMCAlIVFw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"80px",height:"80px",alt:r,classRemoved:!0})}),t.jsxs(i.BlockStack,{gap:"200",align:"center",inlineAlign:"center",children:[t.jsx(i.Text,{as:"h4",variant:"headingSm",fontWeight:"semibold",children:r}),t.jsx(i.Text,{as:"h4",variant:"bodyMd",tone:"subdued",children:a})]})]})})})}),ct=()=>t.jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_18114_1160)",children:t.jsx("path",{d:"M1 1L6.5 6.5M6.5 6.5V1.5M6.5 6.5H1.5",stroke:"#8A8A8A",strokeWidth:"1.5"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_18114_1160",children:t.jsx("rect",{width:"8",height:"8",fill:"white"})})})]}),dt=()=>t.jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("g",{clipPath:"url(#clip0_18114_1146)",children:t.jsx("path",{d:"M1 7L6.5 1.5M6.5 1.5H1.5M6.5 1.5V6.5",stroke:"#29845A",strokeWidth:"1.5"})}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_18114_1146",children:t.jsx("rect",{width:"8",height:"8",fill:"white",transform:"matrix(0 -1 1 0 0 8)"})})})]}),ut=({change:e})=>"number"!=typeof e?t.jsx("div",{style:{height:"2px",width:"11px",backgroundColor:"#8A8A8A"}}):t.jsxs("div",{style:{display:"flex",maxHeight:"20px",width:"fit-content",alignItems:"center",gap:"4px",borderRadius:"8px",fontSize:"12px",color:e>0?O.POSITIVE:O.NEUTRAL},children:[e<0&&t.jsx(i.InlineStack,{align:"center",children:t.jsx(ct,{})}),e>0&&t.jsx(i.InlineStack,{align:"center",children:t.jsx(dt,{})}),t.jsx(i.Text,{as:"span",variant:"bodyXs",fontWeight:"semibold",children:H(Math.abs(e||0))})]}),At=({data:e,formatValue:n})=>{const{activeIndex:a}=e,r=e?.dataSeries[0]?.data[a],s=e?.dataSeries[1]?.data[a],o=()=>{const e=r.trend?.value;if(!e)return"-";const t=Number(e.replace(/[%~]/g,""));return"negative"===r.trend?.trend?-1*t:t};return t.jsx("div",{className:"w-fit min-w-[175px]",children:t.jsx(i.Card,{padding:"200",children:t.jsxs(i.BlockStack,{gap:"100",children:[t.jsx(i.Text,{as:"p",variant:"bodySm",fontWeight:"semibold",children:e.formatters?.titleFormatter?.(e.title||"")||e.title}),t.jsxs(i.BlockStack,{gap:"100",children:[t.jsxs(i.InlineStack,{gap:"400",align:"space-between",blockAlign:"center",children:[t.jsxs(i.InlineStack,{gap:"100",blockAlign:"center",children:[t.jsx("div",{className:"h-[2px] w-[12px] rounded-[10px] bg-[#4FA9EA]"}),t.jsx(i.Text,{as:"p",variant:"bodySm",fontWeight:"medium",tone:"subdued",children:r.tooltipKey})]}),t.jsxs(i.InlineStack,{blockAlign:"center",gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"bodySm",fontWeight:"semibold",children:n(r.value)}),t.jsx(ut,{change:o()})]})]}),t.jsxs(i.InlineStack,{gap:"400",align:"space-between",blockAlign:"center",children:[t.jsxs(i.InlineStack,{gap:"100",blockAlign:"center",children:[t.jsx("div",{className:"w-[12px] border border-dashed border-[#A1CAE7]"}),t.jsx(i.Text,{as:"p",variant:"bodySm",tone:"subdued",fontWeight:"medium",children:s.tooltipKey})]}),t.jsxs(i.InlineStack,{blockAlign:"center",gap:"100",children:[t.jsx(i.Text,{as:"span",variant:"bodySm",fontWeight:"semibold",children:n(s.value)}),t.jsx("div",{className:"opacity-0",children:t.jsx(ut,{change:o()})})]})]})]})]})})})},mt=({isShowOneLine:e})=>e?t.jsx(i.Box,{width:"40%",children:t.jsx(i.SkeletonBodyText,{lines:1})}):t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(i.Box,{width:"60%",children:t.jsx(i.SkeletonBodyText,{lines:1})}),t.jsx(i.Box,{width:"40%",children:t.jsx(i.SkeletonBodyText,{lines:1})})]}),ht=()=>t.jsx(i.Card,{children:t.jsxs(i.BlockStack,{gap:"400",children:[t.jsx(mt,{isShowOneLine:!0}),t.jsx(Ce,{})]})}),gt=({totalValue:e,hideComparison:n})=>t.jsx(i.BlockStack,{gap:"200",children:t.jsxs(i.InlineStack,{blockAlign:"center",gap:"200",wrap:!1,children:[t.jsx(i.InlineStack,{blockAlign:"center",gap:"200",children:t.jsx(i.Text,{as:"span",variant:"headingSm",children:e.value})}),!n&&t.jsx(ut,{change:e.change})]})}),Tt=({item:e,isHovered:n,isLoading:a,hideComparison:r,titleVariant:s="headingMd",titleFontWeight:o,onClickTitle:l})=>{const{key:c,title:d,totalValue:u}=e,A=h[c];return a?t.jsx(mt,{}):t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx("div",{className:"hover:cursor-pointer hover:text-[--p-color-text-link-hover]",onClick:e=>{e?.stopPropagation(),l?.(c)},children:t.jsxs(i.InlineStack,{wrap:!1,children:[t.jsx(i.Box,{maxWidth:"100%",overflowX:"hidden",children:t.jsx(Se,{tooltip:A,children:t.jsx(i.Text,{as:"span",variant:s,fontWeight:o,truncate:!0,children:d})})}),n&&t.jsx("div",{className:"flex h-[20px] w-[20px] items-center",children:t.jsx(i.Icon,{source:b,tone:"inherit"})})]})}),t.jsx(gt,{totalValue:u,hideComparison:r})]})},pt=({item:e,isActive:a,isLoading:r,hideComparison:s,onSelect:o,onClickTitle:l})=>{const[c,d]=n.useState(!1),u=a||c;return t.jsx("div",{className:"w-full cursor-pointer overflow-hidden",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onClick:()=>o(e.key),children:t.jsx(i.Box,{paddingBlock:"150",paddingInline:"300",borderRadius:"200",background:u?"bg-surface-active":void 0,children:t.jsx(Tt,{item:e,isHovered:c,isLoading:r,hideComparison:s,titleVariant:"headingSm",titleFontWeight:"semibold",onClickTitle:l})})})};Fe.OR,Qe.DEVICE_OPERATOR,Ve.DEVICE,Ve.DEVICES,Ve.DEVICE,Qe.VISITOR_OPERATOR,Ve.VISITOR,Ve.VISITORS,Ve.VISITOR,Qe.TRAFFIC_SOURCE_OPERATOR,Ve.TRAFFIC_SOURCE,Ve.TRAFFIC_SOURCES,Ve.TRAFFIC_SOURCE,Qe.VERSION_OPERATOR,Ve.VERSION,Ve.VERSIONS,Ve.VERSION,Qe.PAGE_OPERATOR,Ve.SINGLE_PAGE,Ve.LIST_PAGE,Ve.SINGLE_PAGE,Qe.CAMPAIGN_ITEM_OPERATOR,Ve.GROUP_CAMPAIGN_ITEM,Ve.GROUP_CAMPAIGN_ITEMS,Ve.GROUP_CAMPAIGN,Ve.SINGLE_CAMPAIGN,Ve.SINGLE_CAMPAIGN,Ve.GROUP_CAMPAIGN;const Mt=(e,t)=>{if(0===e&&0===t)return;if(0===t)return e>0?"100%":"0%";const i=(e-t)/t*100;return`${Math.abs(i).toFixed(0)}%`},ft=(e,t)=>{const i=e?.find(e=>e?.type?.toLowerCase()===t.toLowerCase());return i?.total??0},It=({targets:e,metricKey:t,totalsRow:i,comparisonTotalsRow:n,sort:a})=>{const r=it(i?.[t]),s=it(n?.[t]),o=!!n?.[t],l=e.map(({value:e,label:t})=>(({name:e,currentValue:t,prevValue:i,hasPreviousData:n})=>({name:e,data:[{key:"value",value:t}],metadata:{trend:{value:n?Mt(t,i):void 0,direction:t>=i?"upward":"downward",trend:t>=i?"positive":"negative"}}}))({name:t,currentValue:ft(r,e),prevValue:ft(s,e),hasPreviousData:o})),c=e=>e.data[0]?.value??0;return a?[...l].sort((e,t)=>c(t)-c(e)):l};const Nt=[{id:g.ALL_SESSION,content:"All sessions",helpText:"Count metrics for all sessions where this page shows up anywhere in the journey: before, during, or after other pages.",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAAC4CAMAAADNC0dgAAAAw1BMVEUAAAD39/f39/f39/f39/f39/f39/f39/f8/Pz39/fb5P////+WrPjj4+MaHB319vfe5v/s7/rp7Ovy8vLx8/nn5+fu7u7n7PzKzdDi6f1wcXL7+/vEzOTGxscphFrd5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x3BDfT0TAaioZRaDaMUlfDqMSmOJ2SajRMRuktGyapD/6my9RPsioGI/VXZ+NhUbqrDM78MUfMS18vwGQ/2+yp6lQAAAAASUVORK5CYII="},{id:g.FIRST_SESSION,content:"Entry session only",helpText:"Count metrics for sessions only where this page was the very first page visited, then track how they moved through the funnel.",icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAAC4CAMAAADNC0dgAAAAulBMVEUAAAD39/f39/f39/f39/f39/f8/Pz39/fb5P+WrPj///8aHB3j4+P09vfKzdDo6Ojy8vLl5ebd5f7h6P7n7Pzr6+vu7u5wcXLx8/nt8PsxNDn7+/vGxscphFrEzOS8yfakt/je5Pecsfjh4+zQ2fZjZnDr7vdSVFaHm95UnXt4sZd6f41Ek2/H0visvfTk7+vZ3OSOkJZXY4ipqqvX6OBIUm+u0cGRwKqpqqo3i2Vvc4CwtcGFkba82cvy+RBRAAAAB3RSTlMAduu/IJ8QQSls1wAACLJJREFUeNrs1kEKwEAIBEHdNfH/P84lhJzmtsJA1xMaUeN1516NQ9bOir/ajcOuX/JkuAes/Ho3RiS9tTPFi30yZlVEXI0xO6Iag242+KwMPvBROziZo1Y0RhFcI7g7gmsEd0dwjeDuCK4R3B3BNYK7I7hGcHcE1wjujuAawd0RXCO4O4JrBHdHcI3g7giuEdwdwTWCuyO4RnB3BNcI7u5h1+x2nIaBMHo5ThkrcVpbLVGbJlsVFthQEFqEBO//WnizTUddb6bEPyJInKv26kvPTMZu4v/Cef4L/9dJK1wanVtMAYmRRSHBZYY5KYUbhRfydM4Lrc4ZWgIx05x0wg0iKlP0baERMU9jw6BF5VrnV3WdbU4q4TJH1LAYqJ6+G4hOoWxMUT1ngLEhfffNOCeRcKkw73WTcoOoITKmrypRFYhKAsw4J7Zw8l0tXgAqmnHyULwIqXJUBcB8c9IIt2oXLqBCpgrvgTB97802J4lw3fe3CyBG7L6i9+Bi0wFgrjkphEvE3reLielCDR7cu90AzDUnhfB8uEKHSsVrcYP5SAogSo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3XQefrpeABL6EVwnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34TXCd+E1wnfhNcJ34Rfe/VyAjEQA0G09LF12vzTXTA2vs3NDQP9QihEa3cOvubgu3PwNQffnYOvOfjuHFyMHBNKakyoiDGh4BwTarwpSgfQfpsy2YBXXCfAxYWCW3hVBDLg0cfYx6qBV0f5zL/yy4oTLn9JSvy4U7oaTQAAAABJRU5ErkJggg=="}];var xt;function Et(){return{[e.MainDateTimePickerAlias.TODAY]:{title:"Today",alias:e.MainDateTimePickerAlias.TODAY,getDateRange:qt},[e.MainDateTimePickerAlias.YESTERDAY]:{title:"Yesterday",alias:e.MainDateTimePickerAlias.YESTERDAY,getDateRange:Xt},[e.MainDateTimePickerAlias.LAST_7_DAYS]:{title:"Last 7 days",alias:e.MainDateTimePickerAlias.LAST_7_DAYS,getDateRange:Kt},[e.MainDateTimePickerAlias.LAST_30_DAYS]:{title:"Last 30 days",alias:e.MainDateTimePickerAlias.LAST_30_DAYS,getDateRange:Zt},[e.MainDateTimePickerAlias.LAST_90_DAYS]:{title:"Last 90 days",alias:e.MainDateTimePickerAlias.LAST_90_DAYS,getDateRange:$t},[e.MainDateTimePickerAlias.LAST_365_DAYS]:{title:"Last 365 days",alias:e.MainDateTimePickerAlias.LAST_365_DAYS,getDateRange:ei},[e.MainDateTimePickerAlias.LAST_MONTH]:{title:"Last month",alias:e.MainDateTimePickerAlias.LAST_MONTH,getDateRange:ti},[e.MainDateTimePickerAlias.LAST_12_MONTHS]:{title:"Last 12 months",alias:e.MainDateTimePickerAlias.LAST_12_MONTHS,getDateRange:ii},[e.MainDateTimePickerAlias.LAST_YEAR]:{title:"Last year",alias:e.MainDateTimePickerAlias.LAST_YEAR,getDateRange:ni}}}function jt(e){return Et()[e]}e.MainDateTimePickerAlias=void 0,(xt=e.MainDateTimePickerAlias||(e.MainDateTimePickerAlias={})).TODAY="today",xt.YESTERDAY="yesterday",xt.LAST_7_DAYS="last7days",xt.LAST_30_DAYS="last30days",xt.LAST_90_DAYS="last90days",xt.LAST_365_DAYS="last365days",xt.LAST_MONTH="lastMonth",xt.LAST_12_MONTHS="last12Months",xt.LAST_YEAR="lastYear";const Dt={YMD:"YYYY-MM-DD",MONTH_YEAR:"MMM YYYY",FULL:"MMMM D, YYYY",FULL_WITH_TIME:"MMMM D, YYYY [at] h:mm A",SHORT:"MMM DD, YYYY",SHORT_NO_PAD:"MMM D, YYYY",SHORT_WITH_TIME:"MMM D, YYYY [at] h:mm A",MONTH_DAY:"MMM D",DAY_YEAR:"D, YYYY",TIME:"h:mm A",MONTH_DAY_WITH_TIME:"MMM D [at] h:mm A",YEAR:"YYYY"};const St=/^\d{4}-\d{1,2}-\d{1,2}/;function Ot(e){return!isNaN(new Date(e).getDate())}function vt(e){return St.test(e)&&Ot(e)}function yt(e){return 10===e.length&&vt(e)}function Ct(e,t){const i=Z(e);return"YMD"===t?i.format(Dt.YMD):"MY"===t?i.format(Dt.MONTH_YEAR):"FULL"===t?i.format(Dt.FULL):"FULL_WITH_TIME"===t?i.format(Dt.FULL_WITH_TIME):i.format(Dt.SHORT)}function Rt(e,t){const i=Z(e),n=Z(t);return i.isSame(n,"day")}function Pt(e){const{since:t,until:i,format:n=Dt.TIME,showNow:a=!1}=e,r=Z(t),s=Z(i);return`${r.format(n)} - ${a?"Now":s.format(n)}`}function kt(e){const{since:t,until:i,isShowNow:n}=e,a=Z(t),r=Z(i),s=a.isSame(K(),"day"),o=a.format(Dt.TIME),l=r.format(Dt.TIME);if(s){return`Today at ${o} - ${n?"Now":l}`}if(n)return`${a.format(Dt.SHORT_WITH_TIME)} - Now`;if(a.isSame(r,"day"))return`${a.format(Dt.SHORT_WITH_TIME)} - ${l}`;if(a.isSame(r,"day")){const e=Pt({since:t,until:i});return`${a.format(Dt.SHORT)} (${e})`}return a.isSame(r,"year")?`${a.format(Dt.MONTH_DAY_WITH_TIME)} - ${r.format(Dt.MONTH_DAY_WITH_TIME)}, ${r.format(Dt.YEAR)}`:`${a.format(Dt.SHORT_WITH_TIME)} - ${r.format(Dt.SHORT_WITH_TIME)}`}const bt=(e,t=!1,i)=>t&&wt(e)?e.endOf("day").format(i):e.format(i),Lt=(e,t)=>bt(e?K(e).endOf("day"):K().endOf("day"),!1,t),wt=e=>0===e.hour()&&0===e.minute();function zt(e,t){const i=Z(e),n=Z(t);return i.isSame(n,"day")?i.format(Dt.SHORT):i.isSame(n,"month")&&i.isSame(n,"year")?`${i.format(Dt.MONTH_DAY)} - ${n.format(Dt.DAY_YEAR)}`:i.isSame(n,"year")?`${i.format(Dt.MONTH_DAY)} - ${n.format(Dt.SHORT_NO_PAD)}`:`${i.format(Dt.SHORT_NO_PAD)} - ${n.format(Dt.SHORT_NO_PAD)}`}function Yt(t){const{since:i,until:n,isShowNow:a}=t,r=Z(i);return r.isSame(K(),"day")?jt(e.MainDateTimePickerAlias.TODAY).title:a?`${r.format(Dt.SHORT_NO_PAD)} - Now`:zt(i,n)}const Ut=({since:e,until:t,isShowNow:i})=>{if(Rt(e,t))return Pt({since:e,until:t,showNow:i})},_t=e=>[...e].sort((e,t)=>U(t.version)-U(e.version)).map(e=>{if(!e.startedAt)return!1;const t=!e.completedAt,i=$(e.startedAt).valueOf(),n=t?$(Lt()).valueOf():$(e.completedAt).valueOf(),a=Yt({since:i,until:n,isShowNow:t}),r=Ut({since:i,until:n,isShowNow:t});return{title:a,alias:`${e.version}`,since:i,until:n,isVersion:!0,isCurrentVersion:t,description:r,versionId:e.id}}).filter(Boolean),Bt=()=>({since:0,until:0}),Gt=t=>{const{since:i,until:n,alias:r}=t,s=a(i),o=a(n);if(r===e.MainDateTimePickerAlias.LAST_MONTH)return ti(s);if(r===e.MainDateTimePickerAlias.LAST_12_MONTHS)return ii(s);if(r===e.MainDateTimePickerAlias.LAST_YEAR)return ni(s);const l=o.diff(s,"day")+1,c=s.subtract(l,"day"),d=o.subtract(l,"day");return{since:c.valueOf(),until:d.valueOf()}},Ht=(e,t)=>i=>{const{since:n,until:r}=i,s=a(n),o=a(r).diff(s,"day"),l=s.subtract(e,t),c=l.add(o,"day");return{since:l.valueOf(),until:c.valueOf()}},Ft=Ht(7,"day"),Vt=Ht(3,"month"),Qt=Ht(1,"month"),Wt=Ht(1,"year"),Jt=e=>t=>({since:t.subtract(e,"day").valueOf(),until:t.valueOf()}),qt=e=>({since:e.valueOf(),until:e.valueOf()}),Xt=e=>({since:e.subtract(1,"day").valueOf(),until:e.subtract(1,"day").valueOf()}),Kt=Jt(6),Zt=Jt(29),$t=Jt(89),ei=Jt(364);function ti(e){return{since:e.subtract(1,"month").startOf("month").valueOf(),until:e.subtract(1,"month").endOf("month").valueOf()}}function ii(e){return{since:e.subtract(12,"month").startOf("month").valueOf(),until:e.subtract(1,"month").endOf("month").valueOf()}}function ni(e){return{since:e.subtract(1,"year").startOf("year").valueOf(),until:e.subtract(1,"year").endOf("year").valueOf()}}const ai=(e,t,i)=>{const n=a(i),r=n.month();if(n.year()!==t||r!==e){const e=n.subtract(1,"month");return{month:e.month(),year:e.year()}}return{month:e,year:t}};var ri;e.CompareDateTimePickerAlias=void 0,(ri=e.CompareDateTimePickerAlias||(e.CompareDateTimePickerAlias={})).NO_COMPARISON="noComparison",ri.PREVIOUS_PERIOD="previousPeriod",ri.PREVIOUS_WEEK="previousWeek",ri.PREVIOUS_MONTH="previousMonth",ri.PREVIOUS_QUARTER="previousQuarter",ri.PREVIOUS_YEAR="previousYear";const si={title:"Previous period",alias:e.CompareDateTimePickerAlias.PREVIOUS_PERIOD,since:0,until:0},oi=[{title:"No comparison",alias:e.CompareDateTimePickerAlias.NO_COMPARISON,since:0,until:0},si,{title:"Previous week",alias:e.CompareDateTimePickerAlias.PREVIOUS_WEEK,since:0,until:0},{title:"Previous quarter",alias:e.CompareDateTimePickerAlias.PREVIOUS_QUARTER,since:0,until:0},{title:"Previous month",alias:e.CompareDateTimePickerAlias.PREVIOUS_MONTH,since:0,until:0},{title:"Previous year",alias:e.CompareDateTimePickerAlias.PREVIOUS_YEAR,since:0,until:0}],li={[e.CompareDateTimePickerAlias.NO_COMPARISON]:Bt,[e.CompareDateTimePickerAlias.PREVIOUS_PERIOD]:Gt,[e.CompareDateTimePickerAlias.PREVIOUS_WEEK]:Ft,[e.CompareDateTimePickerAlias.PREVIOUS_QUARTER]:Vt,[e.CompareDateTimePickerAlias.PREVIOUS_MONTH]:Qt,[e.CompareDateTimePickerAlias.PREVIOUS_YEAR]:Wt},ci=()=>{const t=$().startOf("day"),i=Et(),n=i[e.MainDateTimePickerAlias.TODAY],a={...n,...n.getDateRange(t)},r=i[e.MainDateTimePickerAlias.YESTERDAY],s={...r,...r.getDateRange(t)},o=i[e.MainDateTimePickerAlias.LAST_7_DAYS],l={...o,...o.getDateRange(t)},c=i[e.MainDateTimePickerAlias.LAST_30_DAYS],d={...c,...c.getDateRange(t)},u=i[e.MainDateTimePickerAlias.LAST_90_DAYS],A={...u,...u.getDateRange(t)},m=i[e.MainDateTimePickerAlias.LAST_365_DAYS],h={...m,...m.getDateRange(t)},g=i[e.MainDateTimePickerAlias.LAST_MONTH],T={...g,...g.getDateRange(t)},p=i[e.MainDateTimePickerAlias.LAST_12_MONTHS],M={...p,...p.getDateRange(t)},f=i[e.MainDateTimePickerAlias.LAST_YEAR];return{DATE_TIME_FILTERS:[a,s,l,d,A,h,T,M,{...f,...f.getDateRange(t)}],LAST_7_DAYS_DATE_RANGE:l,LAST_30_DAYS_DATE_RANGE:d}},di=n.createContext({dateTimePicked:{since:K().valueOf(),until:K().valueOf(),title:"Today",alias:"today"},compareDateTimePicked:si,setDateTimePicked:()=>{},setCompareDateTimePicked:()=>{},resetDateVersion:()=>{}}),ui=()=>{const e=n.useContext(di);if(!e)throw new Error("useDateTimePickerContext must be used within a DateTimePickerProvider");return e},Ai=({ranges:e,initialPicked:t,onApply:i})=>{const{DATE_TIME_FILTERS:r}=ci(),s=e||r,{dateTimePicked:o,setDateTimePicked:l}=ui(),[c,d]=n.useState(o),[{month:u,year:A},m]=n.useState({month:a(o.since).month(),year:a(o.since).year()});n.useEffect(()=>{if(o){const e=new Date(o.until);((e,t)=>t.month-e.month+12*(e.year-t.year))({year:A,month:u},{year:e.getFullYear(),month:e.getMonth()})}},[o,u,A]);return n.useEffect(()=>{o&&(d(o),m({month:a(o.since).month(),year:a(o.since).year()}))},[o]),{month:u,year:A,setDate:m,dateRange:c,apply:()=>{l(c),i?.(c)},cancel:()=>{d(o)},dateTimePicked:o,onChange:({end:e})=>{m(ai(u,A,e))},onMonthChange:(e,t)=>{m({month:e,year:t})},onCalendarChange:e=>{const{start:i,end:n,alias:a}=e,r={alias:"custom",title:"Custom",since:i.getTime(),until:n.getTime()},o=s.find(e=>{const t=e.alias===a,r=e.until===n.getTime(),s=e.since===i.getTime();return t||s&&r});d(o||t||r)}}};function mi({onBlur:e,dateRange:a,setDateTimePicked:r}){const[s,o]=n.useState(!1),[l,c]=n.useState({}),d=n.useCallback((e,t=!1)=>!a.isVersion||t&&a.isCurrentVersion?Ct(e,"FULL"):Ct(e,"FULL_WITH_TIME"),[a.isVersion,a.isCurrentVersion]);function u(){o(!1),c({since:d(a.since),until:d(a.until,!0)}),e&&e()}return n.useEffect(()=>{s||c({since:d(a.since),until:d(a.until,!0)})},[a,d]),t.jsxs(i.InlineGrid,{gap:"200",columns:"1fr auto 1fr",children:[t.jsx(i.TextField,{role:"combobox",label:"Since",labelHidden:!0,value:a.since?l.since:"MMMM D, YYYY",onChange:function(e){if(c(t=>({...t,since:e})),yt(e)){const t=Z(e).startOf("day"),i=Z(a.until).endOf("day"),n=t.isAfter(i)?t.endOf("day"):i;r({start:$(t).toDate(),end:$(n).toDate()})}},onBlur:()=>u(),onFocus:()=>(o(!0),void c({...l,since:Ct(a.since,"YMD")})),autoComplete:"off"}),t.jsx(i.InlineStack,{children:t.jsx(i.Icon,{source:C,tone:"subdued"})}),t.jsx(i.TextField,{role:"combobox",label:"Until",labelHidden:!0,value:a.until?l.until:"MMMM D, YYYY",onChange:function(e){if(c(t=>({...t,until:e})),yt(e)){const t=K().endOf("day"),i=Z(e).endOf("day"),n=i.isAfter(t)?t:i,s=Z(a.since).startOf("day"),o=n.isBefore(s)?n.startOf("day"):s;r({start:$(o).toDate(),end:$(n).toDate()})}},onBlur:()=>u(),onFocus:()=>(o(!0),void c({...l,until:Ct(a.until,"YMD")})),autoComplete:"off"})]})}function hi(e){const{setDateTimePicked:a,dateTimePicked:r,rangeAddition:s,allRanges:o}=e,{value:l,toggle:c}=function(e){const[t,i]=n.useState(e);return{value:t,toggle:n.useCallback(()=>i(e=>!e),[]),setTrue:n.useCallback(()=>i(!0),[]),setFalse:n.useCallback(()=>i(!1),[])}}(!0),d=s?.rangers||[],u=d.map(e=>{const n=r.alias===e.alias;return{value:e.alias,label:t.jsxs(i.Text,{as:"span",truncate:!0,children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",fontWeight:n?"semibold":"regular",children:e.title}),e.description&&t.jsxs(t.Fragment,{children:[" ",t.jsx(i.Text,{as:"span",variant:"bodyXs",fontWeight:"regular",tone:"subdued",children:`(${e.description})`})]})]})}});if(s&&0!==d.length)return t.jsxs(i.Box,{borderBlockEndWidth:"025",borderColor:"border",paddingBlock:"200",children:[t.jsx("div",{className:"px-1.5",children:t.jsx(he,{onClick:c,"aria-expanded":l,className:V("hover:bg-surface-hover cursor-pointer rounded-lg p-1.5"),children:t.jsxs(i.InlineStack,{align:"space-between",blockAlign:"center",children:[t.jsx(i.Text,{as:"span",variant:"bodyMd",children:s.title}),t.jsx(i.Box,{children:t.jsx(i.Icon,{source:l?L:k})})]})})}),t.jsx(i.Collapsible,{open:l,id:"date-time-filter-periods-collapsible",transition:{duration:"200ms",timingFunction:"ease-in-out"},children:t.jsx(pe,{options:u,selected:r?[r.alias]:[],onChange:e=>{const t=e[0],i=o.find(e=>e.alias===t)||o[0];a({start:K(i?.since).toDate(),end:K(i?.until).toDate(),alias:i?.alias})}})})]})}function gi(e){const{setDateTimePicked:n,dateTimePicked:a,allRanges:r,isCompare:s}=e,{DATE_TIME_FILTERS:o}=ci(),{mdDown:l}=i.useBreakpoints(),c=s?[...oi]:[...o];return t.jsx(i.Box,{maxWidth:l?"516px":"250px",width:l?"100%":"250px",padding:{xs:"500",md:"0"},paddingBlockEnd:{xs:"100",md:"0"},children:l?t.jsx(i.Select,{label:"dateRangeLabel",labelHidden:!0,onChange:e=>(e=>{const t=r.find(({title:t,alias:i})=>t===e||i===e)||r[0];n({start:K(t?.since).toDate(),end:K(t?.until).toDate(),alias:t?.alias})})(e),value:a?.title||a?.alias||"",options:r.map(({alias:e,title:t})=>t||e)}):t.jsx(i.Scrollable,{style:{maxHeight:"356px"},children:t.jsx(i.Box,{children:t.jsxs(i.BlockStack,{children:[t.jsx(hi,{...e}),t.jsx(i.OptionList,{options:c.map(e=>({value:e.alias,label:e.title})),selected:a?[a.alias]:[],onChange:e=>(e=>{const t=r.find(t=>t.alias===e[0])||r[0];n({start:K(t?.since).toDate(),end:K(t?.until).toDate(),alias:t?.alias})})(e)})]})})})})}const Ti=({ranges:e,onApply:t})=>{const i=e||oi,{compareDateTimePicked:a,setCompareDateTimePicked:r}=ui(),{dateTimePicked:s}=ui(),[o,l]=n.useState(a),[{month:c,year:d},u]=n.useState({month:K(a.since).month(),year:K(a.since).year()});return{month:c,year:d,setDate:u,dateRange:o,apply:()=>{r(o),t?.(o)},cancel:()=>{l(a)},compareDateTimePicked:a,onChange:({end:e})=>{u(ai(c,d,e))},onMonthChange:(e,t)=>{u({month:e,year:t})},onCalendarChange:({start:e,end:t,alias:n})=>{const a=i.find(e=>e.alias===n);l(a?{...a,...li[n]({since:s.since,until:s.until})}:{alias:"custom",title:"Custom",since:e.getTime(),until:t.getTime()})}}},pi=e=>{const{dateTimeFilters:r,rangeAddition:s,popoverProps:o,activatorProps:c,actionProps:d,isCompare:u,buttonValue:A,activator:m}=e,h=s?.initialPicked,g=[...r||[],...s?.rangers||[]],T=u?Ti:Ai,{month:p,year:M,dateRange:f,apply:I,cancel:N,onMonthChange:x,onCalendarChange:E,onChange:j}=T({ranges:g,initialPicked:h,onApply:e.onApply}),{t:D}=l.useTranslation(),{mdDown:S,lgUp:O}=i.useBreakpoints(),v=O,y=n.useMemo(()=>{if(f.isVersion&&f.since&&f.until)return kt({since:f.since,until:f.until,isShowNow:f.isCurrentVersion})},[f.since,f.until,f.isVersion,f.isCurrentVersion]),[C,P]=n.useState(!1),k=n.useRef(null),b=n.useRef(y);C||(b.current=y);const L=b.current;function w({relatedTarget:e}){var t;null!=e&&(t=e,!!k?.current&&function(e,t){if(e===t)return!0;let i=t.parentNode;for(;null!=i;){if(i===e)return!0;i=i.parentNode}return!1}(k.current,t))||P(!1)}function z(){N(),P(!1)}const Y=()=>{u||P(!C)};return t.jsx(i.Popover,{active:C,autofocusTarget:"none",preferredAlignment:"right",preferredPosition:"below",fluidContent:!0,sectioned:!1,fullHeight:!0,activator:t.jsx(le,{height:"100%",minHeight:"28px",align:"center",children:t.jsx(ce,{content:L,maxWidth:m?"large":"extra-large",children:t.jsx(i.Box,{children:m?m({onClick:Y,value:A}):t.jsx(i.Button,{size:"slim",icon:u?void 0:R,onClick:Y,...c,children:A})})})}),onClose:z,...o,children:t.jsxs(i.Scrollable,{vertical:!0,scrollbarWidth:"thin",className:"max-w-[100%]",children:[t.jsx(i.Popover.Pane,{fixed:!0,children:t.jsx("div",{ref:k,children:t.jsxs(i.InlineGrid,{columns:{xs:"1fr",md:"max-content max-content"},gap:"0",children:[t.jsx(gi,{setDateTimePicked:e=>{E(e),j(e)},dateTimePicked:f,rangeAddition:s,allRanges:g,isCompare:u}),t.jsx(i.Box,{padding:"400",maxWidth:S?"320px":"516px",borderInlineStartWidth:"025",borderColor:"border-secondary",children:t.jsxs(i.BlockStack,{gap:"400",children:[t.jsx(mi,{setDateTimePicked:E,dateRange:f,onBlur:()=>w}),t.jsx("div",{children:t.jsx(i.DatePicker,{month:p,year:M,selected:f.since||f.until?{start:a(f.since).toDate(),end:a(f.until).toDate()}:void 0,onMonthChange:x,onChange:E,multiMonth:v,allowRange:!0,disableDatesAfter:ee()})}),d&&t.jsx(de,{...d,onClick:()=>{P(!1),d.onClick?.()}})]})})]})})}),t.jsx(i.Popover.Pane,{fixed:!0,children:t.jsx(i.Box,{padding:"400",borderBlockStartWidth:"025",borderColor:"border-secondary",children:t.jsx(i.InlineStack,{align:"end",gap:"200",children:t.jsxs(i.ButtonGroup,{children:[t.jsx(i.Button,{onClick:z,children:D("Cancel")}),t.jsx(i.Button,{variant:"primary",onClick:function(){I(),P(!1)},children:D("Apply")})]})})})})]})})},Mi=i=>{const{rangeAddition:a,popoverProps:r}=i,s=a?.initialPicked,o=oi,c=[...o,...a?.rangers||[]],{t:d}=l.useTranslation(),{compareDateTimePicked:u}=Ti({ranges:c,initialPicked:s}),A=n.useMemo(()=>u.alias===e.CompareDateTimePickerAlias.NO_COMPARISON?d("No comparison"):d("Compare to: {{value}}",{value:zt(u.since,u.until)}),[u,d]);return t.jsx(pi,{dateTimeFilters:o,rangeAddition:a,popoverProps:r,isCompare:!0,buttonValue:A})},fi=e=>{const{rangeAddition:i,popoverProps:n,activator:a,onApply:r,activatorProps:s,actionProps:o}=e,{DATE_TIME_FILTERS:l}=ci(),c=l,d=i?.rangers||[],u=i?.initialPicked,A=[...c,...d],{dateTimePicked:m}=Ai({ranges:A,initialPicked:u});return t.jsx(pi,{activatorProps:s,dateTimeFilters:c,rangeAddition:i,popoverProps:n,actionProps:o,buttonValue:(()=>{if(m.isVersion&&d.length>0){const e=m.description?`at ${m.description}`:"";return`Period: ${m.title} ${e}`}return"custom"===m.alias?zt(m.since,m.until):m.title})(),activator:a,onApply:r})};const Ii=({id:e,stickyTop:t,threshold:i=0,enabled:a=!0})=>{const[r,s]=n.useState(!1);return n.useEffect(()=>{if(!a||"undefined"==typeof window)return;const n=document.getElementById(e);if(!n)return;const r=()=>{const e=n.getBoundingClientRect();s(e.top<=t+i)};return r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r)}},[e,t,i,a]),r};e.dayjs=a,e.ANALYTICS_METRIC_TOOLTIP=h,e.AnalyticModeSelector=({activatorText:e="View by",value:i,onChange:a})=>{const r=n.useMemo(()=>Nt.map(e=>({...e})),[]);return t.jsx(Oe,{activatorText:e,options:r,selected:i,onSelect:e=>{a(e)},maxWidth:"650px"})},e.CAMPAIGN_BACKGROUND_MAIN={ORIGIN:"#2C7DFF",VARIANT:"#F34A70"},e.CHART_MIN_HEIGHT=228,e.COMPARE_DATE_TIME_FILTERS_MAP=li,e.ConvertMoneyProvider=({children:e,currency:i,locale:a="en-US"})=>{(()=>{const e=Re(e=>e.setCurrencyRates),{data:t}=d.useQuery({queryKey:["sdk-currency-rates"],queryFn:Pe,staleTime:36e5});n.useEffect(()=>{t&&e(t)},[t,e])})();const r=Re(e=>e.currencyRates),s=n.useCallback((e,t,n)=>{if("string"==typeof e)return e;if("number"!=typeof e)return"0";if(!i)return e.toString();const s=r?((e,t,i,n)=>{if(t===i||!n[t]||!n[i])return e;const a=e*n[t]/n[i];return a?Number(a.toFixed(2)):e})(e,v,i,r):e;return z(((e,t=v,i)=>{if("string"==typeof e)return e;if("number"!=typeof e)return;const n="string"==typeof i?{locale:i}:i,a=n?.locale??"en-US";return e>=1e9?`${new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e/1e9)}B`:e>=1e6?`${new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e/1e6)}M`:n?.compact&&Math.abs(e)>=1e3?`${new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:1,maximumFractionDigits:1}).format(e/1e3)}K`:new Intl.NumberFormat(a,{style:"currency",currency:t}).format(e)})(s,i,{locale:a,compact:n?.compact})??"0")},[i,a,r]),o=n.useMemo(()=>({getTextPrice:s}),[s]);return t.jsx(ke.Provider,{value:o,children:e})},e.CurrencySelector=({currencies:e,selected:a,preferredAlignment:r="left",activatorText:s,onSelect:o})=>{const{t:c}=l.useTranslation(),d=n.useRef(o),u=n.useCallback(e=>{d.current?.(e)},[]),A=n.useMemo(()=>{if(!e)return[];const t=e.map(e=>({content:e,id:e}));return t.some(e=>e.id===v)||t.push({content:v,id:v}),J(t,[{attr:"content",order:"asc",preferredValue:v}])},[e]),m=n.useMemo(()=>A.map(e=>({id:e.id,content:e.content,onAction:()=>u(e.id),active:e.id===a,suffix:e.id===a&&t.jsx(i.Icon,{source:P,tone:"success"}),helpText:e.id===v&&t.jsx(i.Text,{as:"p",fontWeight:"semibold",children:c("Default")})})),[A,a,u,c]),h=n.useMemo(()=>!A?.length||1===A.length&&A[0]?.id===v,[A]);return n.useEffect(()=>{d.current=o}),h?null:t.jsx(Me,{options:m,selected:a,variant:"action-list",onSelect:e=>u(e),activatorText:s??c("Currency"),maxWidth:"225px",preferredAlignment:r,helpText:t.jsx(i.Box,{padding:"200",paddingBlockStart:"300",paddingBlockEnd:"300",borderColor:"border-tertiary",background:"bg",children:t.jsx(Te,{as:"p",variant:"bodyMd",transformers:{1:e=>t.jsx(Ne,{linkAction:{url:"https://help.shopify.com/en/manual/international/pricing/exchange-rates#auto-convert",target:"_blank"},children:e},e+"text-link")},children:c("This will follow Shopify's current exchange rate. [1]Read more[]")})})})},e.DATE_TIME_COMPARISON_FILTERS=oi,e.DEFAULT_CURRENCY_ANALYTIC=v,e.DEFAULT_CURRENT_PERIOD_LABEL=j,e.DEFAULT_PREVIOUS_PERIOD_LABEL=D,e.DateTimeFilterInputs=mi,e.DateTimeFilters=gi,e.DateTimePickerContext=di,e.DateTimePickerProvider=({children:i,initDate:r,initDateCompare:s})=>{const[o,l]=n.useState(r||{since:K().set("hour",0).valueOf(),until:K().set("hour",0).valueOf(),title:"Today",alias:"today"}),{DATE_TIME_FILTERS:c}=ci(),d=n.useCallback((e,t=o)=>({...si,...li[e]({since:t.since,until:t.until,alias:t.alias})}),[o]),[u,A]=n.useState(s||d(e.CompareDateTimePickerAlias.PREVIOUS_PERIOD)),m=n.useCallback(t=>{"custom"!==u.alias&&u.alias!==e.CompareDateTimePickerAlias.NO_COMPARISON&&A(d(u.alias,t))},[u,d]),h=n.useCallback(e=>{l(e),m(e)},[m]);return t.jsx(di.Provider,{value:{dateTimePicked:o,setDateTimePicked:h,compareDateTimePicked:u,setCompareDateTimePicked:A,resetDateVersion:()=>{const e=a(o.since).startOf("day").valueOf(),t=a(o.until).startOf("day").valueOf(),i=c.find(i=>i.since===e&&i.until===t);l({...o,isVersion:!1,versionId:void 0,isCurrentVersion:!1,description:"",title:i?.title||o.title,alias:i?.alias||"custom"})}},children:i})},e.GSelectableMetricChartCard=({metricInfo:e,dataChart:a,defaultActiveTab:r,isLoading:s,isEmptyMetricData:o,hideComparison:l,currentPeriodLabel:c=j,previousPeriodLabel:d=D,columnTypes:u})=>{const[A,m]=n.useState(r),h=n.useMemo(()=>{const e=A?a[A]:void 0;if(!e)return[];const t={name:c,data:e.current};return l?[t]:[t,{name:d,data:e.previous,isComparison:!0}]},[A,a,l,c,d]);return t.jsxs(i.Card,{children:[t.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${e.length}, 1fr)`,gap:"16px",marginBottom:"16px"},children:e.map(e=>t.jsx(pt,{item:e,isActive:A===e.key,isLoading:s,hideComparison:l,onSelect:m},e.key))}),t.jsx(ot,{lineChartData:h,isLoading:s,isEmptyMetricData:o,metricKey:A,columnTypes:u})]})},e.GTimePicker=e=>{const{isCompare:n,...a}=e;return t.jsxs(i.InlineStack,{gap:"200",children:[t.jsx(fi,{...a}),n&&t.jsx(Mi,{rangeAddition:a.rangeAddition,popoverProps:a.popoverProps})]})},e.MetricChartProvider=we,e.MetricDonutChartCard=({label:e,metricKey:a,targets:r,totalsRow:s,comparisonTotalsRow:o,sort:l,isLoading:c,isEmptyMetricData:d,minHeight:A=294,onClick:m})=>{const g=h[a],{windowWidth:T,windowSize:p}=st(),[M,f]=n.useState(!1),I=n.useMemo(()=>It({targets:r,metricKey:a,totalsRow:s,comparisonTotalsRow:o,sort:l}),[r,a,s,o,l]);if(c)return t.jsx(ht,{});const N=e=>_(`${e}`),x=T.lg&&p.width<1500;return t.jsx("div",{onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:t.jsx(i.Card,{children:t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(i.InlineStack,{children:t.jsx("div",{className:"hover:cursor-pointer hover:text-[--p-color-text-link-hover]",onClick:e=>{e.stopPropagation(),m()},children:t.jsxs(i.InlineStack,{children:[t.jsx(Se,{tooltip:g,children:t.jsx(i.Text,{as:"h3",variant:"headingMd",children:e})}),M&&t.jsx(i.Icon,{source:b,tone:"inherit"})]})})}),t.jsx("div",{className:V("flex items-center justify-center",{"max-h-[250px] overflow-hidden":x}),children:d?t.jsx(lt,{title:"No data yet",description:"Data needs time to gather"}):t.jsx(we,{minHeight:A,seriesColors:{},children:t.jsx(u.DonutChart,{data:I,legendPosition:"left",showLegendValues:!0,showLegend:!0,theme:"Light",tooltipOptions:{valueFormatter:N},labelFormatter:N})})})]})})})},e.PLACEHOLDER_VALUE="-",e.PREVIOUS_PERIOD_FILTER=si,e.PricingProvider=({children:e,isLoading:i,activePlanKey:a,shopPlanState:r,isPathAnalysisEnabled:s,onOpenModalPricing:o})=>{const l=n.useMemo(()=>({isLoading:i,activePlanKey:a,shopPlanState:r,isPathAnalysisEnabled:s,onOpenModalPricing:o}),[i,a,r,s,o]);return t.jsx(Ye.Provider,{value:l,children:e})},e.SERIES_COLORS=S,e.SingleMetricChartCard=({metricInfo:e,lineChartData:a,isLoading:r,hideComparison:s,columnTypes:o,isEmptyMetricData:l,onClickTitle:c})=>{const[d,u]=n.useState(!1);return t.jsx("div",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:t.jsx(i.Card,{children:t.jsxs(i.BlockStack,{gap:"200",children:[t.jsx(Tt,{item:e,isHovered:d,isLoading:r,hideComparison:s,onClickTitle:c}),t.jsx(ot,{lineChartData:a,isLoading:r,isEmptyMetricData:l,columnTypes:o,metricKey:e.key})]})})})},e.TARGET_CHANNEL=E,e.TARGET_DEVICES=x,e.TARGET_VISITOR=N,e.THUMB_PRODUCT_DEFAULT=y,e.TREND_TONE=O,e.convertDateToTz=Z,e.convertToDateTimeFilters=_t,e.createLastDaysRange=Jt,e.dayjsTz=K,e.dayjsTzToDate=ee,e.dayjsTzToLocalTZ=$,e.formatDate=Ct,e.formatDateTimeRange=kt,e.formatDayjs=bt,e.formatMs=e=>{const t=Math.floor(e/1e3);return[Math.floor(t/3600),Math.floor(t%3600/60),t%60].map(e=>String(e).padStart(2,"0")).join(":")},e.formatTime=function(e){return Z(e).format(Dt.TIME)},e.formatTimeRange=Pt,e.getDateRangeTitle=zt,e.getDateTimeFilterBase=function(e,t){const i=K(),n=Z(e),a=Z(t),r=Et();for(const e of Object.values(r)){const t=e.getDateRange(i),r=Z(t.since),s=Z(t.until),o=n.isSame(r,"day"),l=a.isSame(s,"day");if(o&&l)return{title:e.title,alias:e.alias}}return{title:zt(e,t),alias:"custom"}},e.getDateTimeFilterByAlias=jt,e.getDateTimeFilterMapping=Et,e.getEndOfDayBy=Lt,e.getInitialTimezone=function(){return q},e.getLast12Months=ii,e.getLast30Days=Zt,e.getLast365Days=ei,e.getLast7Days=Kt,e.getLast90Days=$t,e.getLastMonth=ti,e.getLastYear=ni,e.getMonthAndYearByDateFilter=ai,e.getNoComparison=Bt,e.getPreviousMonth=Qt,e.getPreviousPeriod=Gt,e.getPreviousQuarter=Vt,e.getPreviousWeek=Ft,e.getPreviousYear=Wt,e.getToday=qt,e.getVersionDateDescription=Ut,e.getVersionDateRangeTitle=Yt,e.getYesterday=Xt,e.isDate=Ot,e.isMidnight=wt,e.isSameDayTimestamp=Rt,e.isValidDate=yt,e.isValidYearMonthDayDateString=vt,e.parseYearMonthDayDateString=function(e){return a(e).valueOf()},e.setTz=function(e){q=e,a.tz.setDefault(e)},e.useConvertMoneyContext=be,e.useCurrencyRatesStore=Re,e.useDateTimeFilter=ci,e.useDateTimePicker=Ai,e.useDateTimePickerContext=ui,e.useIsStickyById=Ii,e.useLimitPathAnalysis=e=>{const{isPathAnalysisEnabled:t}=Ue();return{isEnabled:t}},e.usePricingContext=Ue,e.usePricingModalMonitor=()=>{const{onOpenModalPricing:e}=Ue();return{onOpenModalPricing:e}},e.usePricingPlanActive=()=>{const{isLoading:e,activePlanKey:t}=Ue();return{isLoading:e,activePlanKey:t}},e.usePricingPlanActiveState=()=>{const{shopPlanState:e}=Ue();return{shopPlanState:e}},e.useStickyFilterBoxProps=({id:e})=>{const{isMobileView:t}=st(),i=t&&Boolean(e),n=Ii({id:e,stickyTop:0,enabled:i});return i?{position:"sticky",insetBlockStart:"0",zIndex:"10",background:"bg",paddingBlock:"200",...n&&{borderBlockEndWidth:"025",borderColor:"border"}}:{}},e.useVersionDateTimeFilters=e=>{const{t:t}=l.useTranslation(),i=n.useMemo(()=>e?.length?_t(e):[],[e]);return{rangeAddition:{title:t("Experiment periods"),rangers:i}}}});
package/dist/umd/types.js CHANGED
@@ -1 +1 @@
1
- !function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((e="undefined"!=typeof globalThis?globalThis:e||self).GemAnalytics={})}(this,function(e){"use strict";var i,E,t,o,_;e.EMetricKey=void 0,(i=e.EMetricKey||(e.EMetricKey={})).SESSION="sessions",i.ORDERS="orders",i.PAGE_VIEWS="pageviews",i.VISITORS="visitors",i.BOUNCE_RATE="bounce_rate",i.CTR="ctr",i.CONVERSION_RATE="conversion_rate",i.AVG_TIME_ON_PAGE="average_time_on_page",i.ADDED_TO_CART="added_to_cart",i.ADD_TO_CART_RATE="added_to_cart_rate",i.REACHED_CHECKOUT="sessions_that_reached_checkout",i.COMPLETE_CHECKOUT="sessions_that_completed_checkout",i.CART_ADDITION="sessions_with_cart_additions",i.AOV="aov",i.REVENUE="revenue",i.RPV="revenue_per_visitor",i.VISITOR_ITEMS="visitor_items",i.DEVICE_ITEMS="device_items",i.TRAFFIC_SOURCE_ITEMS="traffic_source_items",e.EAnalyticMode=void 0,(E=e.EAnalyticMode||(e.EAnalyticMode={})).ALL_SESSION="ALL_SESSION",E.FIRST_SESSION="FIRST_SESSION",E.PAGE_ONLY="PAGE_ONLY",e.EVisitorType=void 0,(t=e.EVisitorType||(e.EVisitorType={})).NEW="new",t.RETURNING="returning",e.EDeviceType=void 0,(o=e.EDeviceType||(e.EDeviceType={})).DESKTOP="desktop",o.MOBILE="mobile",o.TABLET="tablet",e.ETrafficSourceType=void 0,(_=e.ETrafficSourceType||(e.ETrafficSourceType={})).DIRECT="direct",_.EMAIL="email",_.REFERRAL="referral",_.ORGANIC_SOCIAL="organic-social",_.ORGANIC_SEARCH="organic-search",_.PAID_SOCIAL="paid-social",_.PAID_SEARCH="paid-search",_.SMS="sms"});
1
+ !function(_,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((_="undefined"!=typeof globalThis?globalThis:_||self).GemAnalytics={})}(this,function(_){"use strict";var e,T,E,A,i,I,t;_.EMetricKey=void 0,(e=_.EMetricKey||(_.EMetricKey={})).SESSION="sessions",e.ORDERS="orders",e.PAGE_VIEWS="pageviews",e.VISITORS="visitors",e.BOUNCE_RATE="bounce_rate",e.CTR="ctr",e.CONVERSION_RATE="conversion_rate",e.AVG_TIME_ON_PAGE="average_time_on_page",e.ADDED_TO_CART="added_to_cart",e.ADD_TO_CART_RATE="added_to_cart_rate",e.REACHED_CHECKOUT="sessions_that_reached_checkout",e.COMPLETE_CHECKOUT="sessions_that_completed_checkout",e.CART_ADDITION="sessions_with_cart_additions",e.AOV="aov",e.REVENUE="revenue",e.RPV="revenue_per_visitor",e.VISITOR_ITEMS="visitor_items",e.DEVICE_ITEMS="device_items",e.TRAFFIC_SOURCE_ITEMS="traffic_source_items",e.PAGE_PATH_ANALYSIS="PAGE_PATH_ANALYSIS",_.EAnalyticMode=void 0,(T=_.EAnalyticMode||(_.EAnalyticMode={})).ALL_SESSION="ALL_SESSION",T.FIRST_SESSION="FIRST_SESSION",T.PAGE_ONLY="PAGE_ONLY",_.EVisitorType=void 0,(E=_.EVisitorType||(_.EVisitorType={})).NEW="new",E.RETURNING="returning",_.EDeviceType=void 0,(A=_.EDeviceType||(_.EDeviceType={})).DESKTOP="desktop",A.MOBILE="mobile",A.TABLET="tablet",_.ETrafficSourceType=void 0,(i=_.ETrafficSourceType||(_.ETrafficSourceType={})).DIRECT="direct",i.EMAIL="email",i.REFERRAL="referral",i.ORGANIC_SOCIAL="organic-social",i.ORGANIC_SEARCH="organic-search",i.PAID_SOCIAL="paid-social",i.PAID_SEARCH="paid-search",i.SMS="sms",_.IPlanKey=void 0,(I=_.IPlanKey||(_.IPlanKey={})).CONTENT_TESTING="content-testing",I.PAGE_OPT="page-optimize",I.FUNNEL_OPT="funnel-optimize",I.PROFIT_OPT="profit-optimize",I.TRIAL_PAGE_OPT="trial-page-optimize",I.TRIAL_FUNNEL_OPT="trial-funnel-optimize",I.TRIAL_PROFIT_OPT="trial-profit-optimize",_.IShopPlanState=void 0,(t=_.IShopPlanState||(_.IShopPlanState={})).TRIAL_PAGE_OPT="TRIAL_PAGE_OPT",t.TRIAL_FUNNEL_OPT="TRIAL_FUNNEL_OPT",t.TRIAL_PROFIT_OPT="TRIAL_PROFIT_OPT",t.ACTIVE_PAGE_OPT="ACTIVE_PAGE_OPT",t.ACTIVE_FUNNEL_OPT="ACTIVE_FUNNEL_OPT",t.ACTIVE_PROFIT_OPT="ACTIVE_PROFIT_OPT",t.LOADING_PLAN="LOADING_PLAN",t.TRIAL_EXPIRED="TRIAL_EXPIRED",t.ACTIVE_PAGE_OPT_AND_TRIAL_PAGE_OPT="ACTIVE_PAGE_OPT_AND_TRIAL_PAGE_OPT",t.ACTIVE_PAGE_OPT_AND_TRIAL_FUNNEL_OPT="ACTIVE_PAGE_OPT_AND_TRIAL_FUNNEL_OPT",t.ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT="ACTIVE_FUNNEL_OPT_AND_TRIAL_FUNNEL_OPT"});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levi-gemcommerce/analytics",
3
- "version": "1.0.0-dev.21",
3
+ "version": "1.0.0-dev.22",
4
4
  "license": "MIT",
5
5
  "author": "gemx-dev",
6
6
  "sideEffects": [