@sendoutcards/quantum-design-ui 1.7.60 → 1.7.63

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.
package/dist/index.es.js CHANGED
@@ -12676,15 +12676,15 @@ var IconLink = function (_a) {
12676
12676
  })));
12677
12677
  };
12678
12678
 
12679
- var _emotionSourceMap2$o = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUYiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tIFwidHNsaWJcIjtcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIGdyaWQ6IGZ1bmN0aW9uIChnYXAsIGNvbHVtblNpemUsIHJvd1NpemUsIG1heFdpZHRoLCBoZWlnaHQsIG92ZXJmbG93LCBpc0RlbnNlKSB7IHJldHVybiBjc3ModGVtcGxhdGVPYmplY3RfMSB8fCAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFtcIlxcbiAgICBkaXNwbGF5OiBncmlkO1xcbiAgICBtYXgtd2lkdGg6IFwiLCBcInB4O1xcbiAgICB3aWR0aDogMTAwJTtcXG4gICAgZ3JpZC1nYXA6IFwiLCBcInB4O1xcbiAgICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdChhdXRvLWZpdCwgbWlubWF4KFwiLCBcInB4LCAxZnIpKTtcXG4gICAgZ3JpZC1hdXRvLXJvd3M6IG1pbm1heChcIiwgXCJweCwgYXV0byk7XFxuICAgIGdyaWQtYXV0by1mbG93OiBcIiwgXCI7XFxu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aWRDb2xTcGFuIDogMSwgZ3JpZFJvd1NwYW4gPyBncmlkUm93U3BhbiA6IDEsIGdyaWRDb2xTdGFydCA/IGdyaWRDb2xTdGFydCA6ICdhdXRvJywgZ3JpZFJvd1N0YXJ0ID8gZ3JpZFJvd1N0YXJ0IDogJ2F1dG8nLCBhc3BlY3RSYXRpbyA/IGFzcGVjdFJhdGlvIDogJ2F1dG8nKTsgfSxcclxufTtcclxudmFyIHRlbXBsYXRlT2JqZWN0XzEsIHRlbXBsYXRlT2JqZWN0XzI7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXN0eWxlcy5qcy5tYXAiXX0= */";
12680
12680
 
12681
- var _emotionSourceMap$F = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHNEYiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tIFwidHNsaWJcIjtcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIGdyaWQ6IGZ1bmN0aW9uIChnYXAsIGNvbHVtblNpemUsIHJvd1NpemUsIG1heFdpZHRoLCBoZWlnaHQsIG92ZXJmbG93LCBpc0RlbnNlKSB7IHJldHVybiBjc3ModGVtcGxhdGVPYmplY3RfMSB8fCAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFtcIlxcbiAgICBkaXNwbGF5OiBncmlkO1xcbiAgICBtYXgtd2lkdGg6IFwiLCBcInB4O1xcbiAgICB3aWR0aDogMTAwJTtcXG4gICAgZ3JpZC1nYXA6IFwiLCBcInB4O1xcbiAgICBncmlkLXRlbXB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6IHNwYW4gXCIsIFwiO1xcbiAgICBncmlkLWNvbHVtbi1zdGFydDogXCIsIFwiO1xcbiAgICBncmlkLXJvdy1zdGFydDogXCIsIFwiO1xcbiAgICBhc3BlY3QtcmF0aW86IFwiLCBcIjtcXG4gIFwiXSkpLCBncmlkQ29sU3BhbiA/IGdyaWRDb2xTcGFuIDogMSwgZ3JpZFJvd1NwYW4gPyBncmlkUm93U3BhbiA6IDEsIGdyaWRDb2xTdGFydCA/IGdyaWRDb2xTdGFydCA6ICdhdXRvJywgZ3JpZFJvd1N0YXJ0ID8gZ3JpZFJvd1N0YXJ0IDogJ2F1dG8nLCBhc3BlY3RSYXRpbyA/IGFzcGVjdFJhdGlvIDogJ2F1dG8nKTsgfSxcclxufTtcclxudmFyIHRlbXBsYXRlT2JqZWN0XzEsIHRlbXBsYXRlT2JqZWN0XzI7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXN0eWxlcy5qcy5tYXAiXX0= */";
12682
12682
  var styles$E = {
12683
12683
  grid: function (gap, columnSize, rowSize, maxWidth, height, overflow, isDense) {
12684
12684
  return /*#__PURE__*/css(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n display: grid;\n max-width: ", "px;\n width: 100%;\n grid-gap: ", "px;\n grid-template-columns: repeat(auto-fit, minmax(", "px, 1fr));\n grid-auto-rows: minmax(", "px, auto);\n grid-auto-flow: ", ";\n height: ", ";\n overflow: ", ";\n " + _emotionSourceMap$F], ["\n display: grid;\n max-width: ", "px;\n width: 100%;\n grid-gap: ", "px;\n grid-template-columns: repeat(auto-fit, minmax(", "px, 1fr));\n grid-auto-rows: minmax(", "px, auto);\n grid-auto-flow: ", ";\n height: ", ";\n overflow: ", ";\n " + _emotionSourceMap$F])), maxWidth && maxWidth, gap, columnSize, rowSize, isDense ? 'dense' : 'row', height && height, overflow && overflow);
12685
12685
  },
12686
- gridItem: function (gridRowSpan, gridColSpan, gridRowStart, gridColStart) {
12687
- return /*#__PURE__*/css(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n display: flex;\n align-items: flex-end;\n grid-column-end: span ", ";\n grid-row-end: span ", ";\n grid-column-start: ", ";\n grid-row-start: ", ";\n " + _emotionSourceMap2$o], ["\n width: 100%;\n height: 100%;\n display: flex;\n align-items: flex-end;\n grid-column-end: span ", ";\n grid-row-end: span ", ";\n grid-column-start: ", ";\n grid-row-start: ", ";\n " + _emotionSourceMap2$o])), gridColSpan ? gridColSpan : 1, gridRowSpan ? gridRowSpan : 1, gridColStart ? gridColStart : 'auto', gridRowStart ? gridRowStart : 'auto');
12686
+ gridItem: function (gridRowSpan, gridColSpan, gridRowStart, gridColStart, aspectRatio) {
12687
+ return /*#__PURE__*/css(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n display: flex;\n align-items: flex-end;\n grid-column-end: span ", ";\n grid-row-end: span ", ";\n grid-column-start: ", ";\n grid-row-start: ", ";\n aspect-ratio: ", ";\n " + _emotionSourceMap2$o], ["\n width: 100%;\n height: 100%;\n display: flex;\n align-items: flex-end;\n grid-column-end: span ", ";\n grid-row-end: span ", ";\n grid-column-start: ", ";\n grid-row-start: ", ";\n aspect-ratio: ", ";\n " + _emotionSourceMap2$o])), gridColSpan ? gridColSpan : 1, gridRowSpan ? gridRowSpan : 1, gridColStart ? gridColStart : 'auto', gridRowStart ? gridRowStart : 'auto', aspectRatio ? aspectRatio : 'auto');
12688
12688
  }
12689
12689
  };
12690
12690
  var templateObject_1$F, templateObject_2$o;
@@ -12716,10 +12716,11 @@ var GridItem = function (_a) {
12716
12716
  gridRowStart = _a.gridRowStart,
12717
12717
  gridColStart = _a.gridColStart,
12718
12718
  borderRadius = _a.borderRadius,
12719
+ aspectRatio = _a.aspectRatio,
12719
12720
  children = _a.children;
12720
12721
  return jsx(Div, {
12721
12722
  borderRadius: borderRadius ? borderRadius : 'none',
12722
- css: styles$E.gridItem(gridRowSpan, gridColSpan, gridRowStart, gridColStart)
12723
+ css: styles$E.gridItem(gridRowSpan, gridColSpan, gridRowStart, gridColStart, aspectRatio)
12723
12724
  }, children);
12724
12725
  };
12725
12726
 
@@ -18109,7 +18110,7 @@ var AccordionContent = function (_a) {
18109
18110
  css: styles$e.accordionBody,
18110
18111
  onAnimationComplete: onAnimationComplete
18111
18112
  }, jsx(Flex, {
18112
- inset: inset !== null && inset !== void 0 ? inset : inset,
18113
+ inset: inset,
18113
18114
  justifyContent: "flex-start",
18114
18115
  alignItems: "center",
18115
18116
  variants: {
@@ -18130,11 +18131,13 @@ var AccordionContent = function (_a) {
18130
18131
  var AccordionBody = function (_a) {
18131
18132
  var eventKey = _a.eventKey,
18132
18133
  children = _a.children,
18133
- onAnimationComplete = _a.onAnimationComplete;
18134
+ onAnimationComplete = _a.onAnimationComplete,
18135
+ insetBody = _a.insetBody;
18134
18136
  var context = useContext(AccordionContext);
18135
18137
  return jsx(AnimatePresence, null, context.activeIndexes.map(function (activeIndex) {
18136
18138
  return activeIndex === eventKey && jsx(AccordionContent, {
18137
- onAnimationComplete: onAnimationComplete
18139
+ onAnimationComplete: onAnimationComplete,
18140
+ inset: insetBody
18138
18141
  }, children);
18139
18142
  }));
18140
18143
  };
@@ -18235,6 +18238,7 @@ var Accordion = function (_a) {
18235
18238
  vertical: 'x2',
18236
18239
  horizontal: 'x1'
18237
18240
  } : _f,
18241
+ insetBody = _a.insetBody,
18238
18242
  arrowLocation = _a.arrowLocation;
18239
18243
  var defaultActiveIndexes = isExclusive ? defaultActiveKeys ? [defaultActiveKeys[0]] : [-1] : defaultActiveKeys ? __spreadArrays(defaultActiveKeys) : [-1];
18240
18244
 
@@ -18270,7 +18274,8 @@ var Accordion = function (_a) {
18270
18274
  onHeadingClick: section.onHeadingClick
18271
18275
  }, section.heading), jsx(AccordionBody, {
18272
18276
  eventKey: section.key,
18273
- onAnimationComplete: section.onAnimationComplete
18277
+ onAnimationComplete: section.onAnimationComplete,
18278
+ insetBody: insetBody
18274
18279
  }, jsx(Flex, {
18275
18280
  width: "100%"
18276
18281
  }, section.body)));
@@ -19349,6 +19354,7 @@ var ConfirmDialog = function (_a) {
19349
19354
  }, jsx(Flex, {
19350
19355
  flexDirection: "column"
19351
19356
  }, jsx(Text, {
19357
+ weight: "semiBold",
19352
19358
  color: 'primaryHeading',
19353
19359
  type: "largeBody",
19354
19360
  content: title,
@@ -19397,6 +19403,7 @@ var ConfirmDialog = function (_a) {
19397
19403
  horizontal: 'x2'
19398
19404
  }
19399
19405
  }, jsx(Button, {
19406
+ id: accept.id,
19400
19407
  type: isPrimaryAccept ? 'primary' : 'shadow',
19401
19408
  outlined: isPrimaryAccept ? true : false,
19402
19409
  onClick: accept.onClick,
@@ -19405,6 +19412,7 @@ var ConfirmDialog = function (_a) {
19405
19412
  hover: isPrimaryAccept ? false : true,
19406
19413
  disabled: requireScroll ? isPrimaryAccept ? hasScrolled ? false : true : false : false
19407
19414
  })), decline && jsx(Button, {
19415
+ id: decline.id,
19408
19416
  onClick: decline.onClick,
19409
19417
  size: "small",
19410
19418
  title: decline.title,
@@ -19436,6 +19444,7 @@ var IncrementSetting = function (_a) {
19436
19444
  ref = _e.ref,
19437
19445
  width = _e.width;
19438
19446
 
19447
+ var titleProps = typeof title !== 'string' ? title : {};
19439
19448
  return jsx(Div, {
19440
19449
  ref: ref,
19441
19450
  display: "flex",
@@ -19446,12 +19455,12 @@ var IncrementSetting = function (_a) {
19446
19455
  outset: outset
19447
19456
  }, jsx(Div, {
19448
19457
  width: layout === 'inlineBlock' ? '100%' : 'auto'
19449
- }, jsx(Text, {
19458
+ }, jsx(Text, _extends({
19450
19459
  type: "footnote",
19451
19460
  outset: {
19452
19461
  bottom: layout !== 'inline' ? 'x1' : 'x0'
19453
19462
  }
19454
- }, title)), jsx(Spacer, {
19463
+ }, titleProps), typeof title === 'string' && title)), jsx(Spacer, {
19455
19464
  orientation: "horizontal",
19456
19465
  space: layout === 'inline' ? 'x3' : 'x0'
19457
19466
  }), jsx(Input, {
@@ -22044,508 +22053,181 @@ var ConfigurationCard = function (_a) {
22044
22053
  }))));
22045
22054
  };
22046
22055
 
22047
- var UpsaleOptions = function (_a) {
22048
- var selectableOptions = _a.selectableOptions,
22049
- selectedOption = _a.selectedOption,
22050
- handleSelectedOption = _a.handleSelectedOption,
22051
- removeSelectedOption = _a.removeSelectedOption,
22052
- showCheckoutView = _a.showCheckoutView,
22053
- handleShouldShowCheckoutView = _a.handleShouldShowCheckoutView,
22054
- children = _a.children,
22055
- activeSelectedOption = _a.activeSelectedOption,
22056
- extraLink = _a.extraLink,
22057
- _b = _a.defaultNumOptionsShown,
22058
- defaultNumOptionsShown = _b === void 0 ? selectableOptions.length : _b,
22059
- submitAction = _a.submitAction;
22060
- var shouldShowCheckoutScreen = selectedOption && showCheckoutView;
22056
+ var ComparisonIncludesList = function (_a) {
22057
+ var items = _a.items,
22058
+ isMinified = _a.isMinified;
22061
22059
  return jsx(Div, {
22062
- height: "100%",
22063
22060
  position: "relative",
22061
+ display: "flex",
22062
+ flexDirection: "column",
22063
+ alignItems: "center",
22064
+ justifyContent: "center",
22065
+ backgroundColor: "background",
22066
+ inset: "1.5rem"
22067
+ }, jsx(Div, {
22064
22068
  width: "100%"
22065
- }, jsx(Div, null, shouldShowCheckoutScreen && // Back Button
22066
- jsx(Div, {
22069
+ }, jsx(VStack, {
22070
+ gap: "x2_5",
22071
+ alignItems: isMinified ? 'start' : 'center',
22072
+ justifyContent: isMinified ? 'start' : 'center'
22073
+ }, items.sort(function (a, b) {
22074
+ return Number(b.isIncluded) - Number(a.isIncluded);
22075
+ }).map(function (item, index) {
22076
+ return jsx(ComparisonItem, _extends({
22077
+ key: index
22078
+ }, item, {
22079
+ isMinified: isMinified
22080
+ }));
22081
+ }))));
22082
+ };
22083
+
22084
+ var QuantitySlider = function (_a) {
22085
+ var quantity = _a.quantity,
22086
+ min = _a.min,
22087
+ max = _a.max,
22088
+ setQuantity = _a.setQuantity,
22089
+ salePrice = _a.salePrice,
22090
+ unitPrice = _a.unitPrice,
22091
+ sliderFill = _a.sliderFill,
22092
+ width = _a.width,
22093
+ hasIncrement = _a.hasIncrement,
22094
+ head = _a.head;
22095
+ var subtotal = salePrice ? salePrice * quantity : unitPrice * quantity;
22096
+ return jsx(Flex, {
22097
+ justifyContent: "center",
22098
+ flexDirection: "column"
22099
+ }, head && jsx(Flex, {
22100
+ width: "100%",
22101
+ justifyContent: "center",
22102
+ flexDirection: "column",
22067
22103
  outset: {
22068
- top: 'x4'
22069
- },
22070
- position: "relative",
22071
- bottom: "25px",
22072
- right: "7px",
22073
- height: "20px",
22074
- cursor: "pointer",
22075
- onClick: function () {
22076
- removeSelectedOption();
22077
- handleShouldShowCheckoutView(false);
22104
+ bottom: 'x2'
22078
22105
  }
22079
- }, jsx(HStack, {
22080
- gap: "x_25",
22081
- justify: "start",
22082
- alignItems: "center"
22083
- }, jsx(Icon, {
22084
- name: "leftChevron",
22085
- size: "small",
22086
- primaryColor: "primaryBodyText"
22106
+ }, head), salePrice ? jsx(React.Fragment, null, jsx(Text, {
22107
+ type: "caption",
22108
+ color: "primaryHeading",
22109
+ content: "Sale",
22110
+ alignment: "center",
22111
+ style: {
22112
+ letterSpacing: '1px'
22113
+ }
22114
+ }), jsx(Flex, {
22115
+ justifyContent: "center"
22116
+ }, jsx(Spacer, {
22117
+ orientation: "horizontal",
22118
+ space: "x1"
22087
22119
  }), jsx(Text, {
22088
- type: 'caption',
22120
+ type: "caption",
22121
+ color: "primaryHeading",
22089
22122
  weight: "semiBold",
22090
- color: "primaryBody",
22091
- content: "Back",
22123
+ content: "$" + (unitPrice === null || unitPrice === void 0 ? void 0 : unitPrice.toFixed(2)),
22124
+ isStrikeThrough: true,
22092
22125
  alignment: "center",
22093
22126
  style: {
22094
- position: 'relative',
22095
- bottom: 4
22127
+ letterSpacing: '1px'
22096
22128
  }
22097
- })), jsx(Spacer, {
22129
+ }), jsx(Spacer, {
22130
+ orientation: "horizontal",
22131
+ space: "x1"
22132
+ }), jsx(Text, {
22133
+ type: "largeBody",
22134
+ color: "danger",
22135
+ weight: "bold",
22136
+ content: "$" + salePrice.toFixed(2) + " /each",
22137
+ style: {
22138
+ letterSpacing: '1px'
22139
+ }
22140
+ }))) : jsx(Text, {
22141
+ type: "body",
22142
+ color: "primaryHeading",
22143
+ weight: "semiBold",
22144
+ content: "$" + (unitPrice === null || unitPrice === void 0 ? void 0 : unitPrice.toFixed(2)) + " /each",
22145
+ alignment: "center",
22146
+ style: {
22147
+ letterSpacing: '1px'
22148
+ }
22149
+ }), jsx(Text, {
22150
+ type: "body",
22151
+ content: "Subtotal: $" + subtotal.toFixed(2),
22152
+ alignment: "center"
22153
+ }), jsx(Flex, {
22154
+ justifyContent: "center"
22155
+ }, hasIncrement ? jsx(Div, {
22156
+ width: "370px"
22157
+ }, jsx(Spacer, {
22158
+ orientation: "vertical",
22098
22159
  space: "x2"
22099
- })), jsx(VStack, {
22100
- gap: "x2"
22101
- }, shouldShowCheckoutScreen && activeSelectedOption ? jsx(Div, null, jsx(RadioOptionCard, _extends({}, activeSelectedOption, {
22102
- isSelected: true
22103
- })), children) : jsx(VStack, {
22104
- gap: "x2"
22105
- }, selectableOptions.filter(function (_, index) {
22106
- return index < defaultNumOptionsShown;
22107
- }).map(function (option, index) {
22108
- var _a;
22109
-
22110
- return jsx(RadioOptionCard, _extends({}, option, {
22111
- key: index,
22112
- optionId: option.optionId,
22113
- onSelect: function () {
22114
- return handleSelectedOption(option.optionId);
22115
- },
22116
- isSelected: (_a = (activeSelectedOption && selectedOption) === option.optionId) !== null && _a !== void 0 ? _a : false
22117
- }));
22118
- })), extraLink && jsx(Anchor, {
22119
- title: extraLink.title,
22120
- onClick: extraLink.onClick,
22121
- href: extraLink.href,
22122
- size: "small",
22123
- color: "primaryBody",
22124
- outset: "0 auto"
22125
- }), submitAction && jsx(Flex, {
22126
- width: "100%",
22127
- justifyContent: "center",
22128
- alignItems: "center"
22129
- }, jsx(Button, {
22130
- title: submitAction.title,
22131
- type: submitAction.type,
22132
- onClick: submitAction.onClick,
22133
- fullWidth: submitAction.isFullWidth,
22134
- disabled: submitAction.isDisabled,
22135
- size: "large"
22136
- })))));
22160
+ }), jsx(IncrementSetting, {
22161
+ title: "",
22162
+ min: min,
22163
+ max: max,
22164
+ value: quantity,
22165
+ layout: "inline",
22166
+ setValue: function (quantity) {
22167
+ return setQuantity(quantity);
22168
+ },
22169
+ activeColor: sliderFill,
22170
+ inputWidth: width
22171
+ })) : jsx(Slider, {
22172
+ min: min,
22173
+ max: max,
22174
+ value: quantity,
22175
+ setValue: function (quantity) {
22176
+ return setQuantity(quantity);
22177
+ },
22178
+ width: width,
22179
+ activeColor: sliderFill
22180
+ })));
22137
22181
  };
22138
22182
 
22139
- var SOC_FRONT_Z_INDEX = 103;
22140
- var UpsaleDialog = function (_a) {
22141
- var _b;
22183
+ var FeatureBadge = function (_a) {
22184
+ var title = _a.title,
22185
+ _b = _a.backgroundColor,
22186
+ backgroundColor = _b === void 0 ? 'success' : _b,
22187
+ _c = _a.color,
22188
+ color = _c === void 0 ? 'inverseBody' : _c,
22189
+ size = _a.size,
22190
+ icon = _a.icon,
22191
+ onClick = _a.onClick;
22192
+ var hocs = useEntities().hocs;
22193
+ return jsx(Flex, {
22194
+ backgroundColor: hocs.colors.swatches[backgroundColor].base,
22195
+ inset: icon ? {
22196
+ left: 'x1',
22197
+ vertical: 'x1',
22198
+ right: 'x2'
22199
+ } : 'x2',
22200
+ borderRadius: "medium",
22201
+ display: "inline-flex",
22202
+ justifyContent: "flex-start",
22203
+ alignItems: "center",
22204
+ onClick: onClick,
22205
+ cursor: onClick ? 'pointer' : 'initial',
22206
+ minWidth: "max-content"
22207
+ }, icon && jsx(Div, {
22208
+ alignItems: "center",
22209
+ style: {
22210
+ lineHeight: 0
22211
+ },
22212
+ inset: {
22213
+ right: 'x1'
22214
+ }
22215
+ }, jsx(Icon, {
22216
+ name: icon,
22217
+ primaryColor: convertTextColorToIconColor(color),
22218
+ size: size !== null && size !== void 0 ? size : 'small'
22219
+ })), jsx(Text, {
22220
+ style: {
22221
+ lineHeight: 0,
22222
+ letterSpacing: 0.5
22223
+ },
22224
+ type: "caption",
22225
+ color: color,
22226
+ weight: "bold"
22227
+ }, title));
22228
+ };
22142
22229
 
22143
- var title = _a.title,
22144
- description = _a.description,
22145
- checkoutTitle = _a.checkoutTitle,
22146
- checkoutDescription = _a.checkoutDescription,
22147
- selectableOptions = _a.selectableOptions,
22148
- isOpen = _a.isOpen,
22149
- setIsDialogOpen = _a.setIsDialogOpen,
22150
- upsaleContent = _a.upsaleContent,
22151
- children = _a.children,
22152
- selectedOption = _a.selectedOption,
22153
- handleSelectedOption = _a.handleSelectedOption,
22154
- removeSelectedOption = _a.removeSelectedOption,
22155
- insetOverride = _a.insetOverride,
22156
- maxWidth = _a.maxWidth,
22157
- maxHeight = _a.maxHeight,
22158
- _c = _a.zIndex,
22159
- zIndex = _c === void 0 ? SOC_FRONT_Z_INDEX : _c,
22160
- //Soc-frontend
22161
- successComponent = _a.successComponent,
22162
- upsaleContentTitle = _a.upsaleContentTitle,
22163
- _d = _a.sponsorId,
22164
- sponsorId = _d === void 0 ? '9070' : _d,
22165
- extraLink = _a.extraLink,
22166
- defaultNumOptionsShown = _a.defaultNumOptionsShown,
22167
- submitAction = _a.submitAction,
22168
- acceptSelectedAction = _a.acceptSelectedAction;
22169
-
22170
- var _e = React.useState(false),
22171
- shouldShowCheckoutView = _e[0],
22172
- setShouldShowCheckoutView = _e[1];
22173
-
22174
- var _f = useResizeObserver(),
22175
- ref = _f.ref,
22176
- width = _f.width,
22177
- height = _f.height;
22178
-
22179
- var dialogFooterHeight = '170px';
22180
- var device = useWindowSize().width;
22181
- var isMobile = device <= 910;
22182
-
22183
- var findOption = function (selectedOption) {
22184
- return selectableOptions.filter(function (option) {
22185
- return option.optionId === selectedOption;
22186
- });
22187
- };
22188
-
22189
- var activeSelectedOption = findOption(selectedOption);
22190
-
22191
- var handleOnClick = function () {
22192
- setShouldShowCheckoutView(true);
22193
- acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.onClick();
22194
- };
22195
-
22196
- return jsx(Dialog, {
22197
- ref: ref,
22198
- isOpen: isOpen,
22199
- onClose: function () {
22200
- return setIsDialogOpen(!isOpen);
22201
- },
22202
- zIndex: zIndex,
22203
- insetOverride: insetOverride,
22204
- maxWidth: maxWidth,
22205
- maxHeight: maxHeight,
22206
- height: isMobile ? 'unset' : '80%',
22207
- shouldScroll: true,
22208
- width: "100%"
22209
- }, successComponent ? jsx(Flex, {
22210
- width: width + "px",
22211
- height: height + "px",
22212
- justifyContent: "center",
22213
- alignItems: 'center'
22214
- }, successComponent) : jsx(React.Fragment, null, jsx(Div, {
22215
- width: "100%",
22216
- inset: {
22217
- bottom: 'x4',
22218
- top: 'x8'
22219
- }
22220
- }, jsx(Text, {
22221
- type: "subtitle",
22222
- weight: "bold",
22223
- content: shouldShowCheckoutView ? checkoutTitle : title,
22224
- alignment: "center"
22225
- }), jsx(Text, {
22226
- type: "body",
22227
- content: shouldShowCheckoutView ? checkoutDescription : description,
22228
- alignment: "center"
22229
- })), jsx(Scrollable, null, jsx(Flex, {
22230
- justifyContent: 'center',
22231
- alignItems: 'flex-start',
22232
- width: '100%',
22233
- inset: device <= 1367 && device > 580 ? {
22234
- top: 'x4',
22235
- horizontal: 'x8',
22236
- bottom: dialogFooterHeight
22237
- } : device <= 580 ? {
22238
- top: 'x4',
22239
- horizontal: 'x4',
22240
- bottom: dialogFooterHeight
22241
- } : {
22242
- top: 'x4',
22243
- horizontal: '10rem',
22244
- bottom: dialogFooterHeight
22245
- },
22246
- flexWrap: "wrap",
22247
- overflowY: "hidden",
22248
- flexDirection: isMobile ? 'column' : 'row'
22249
- }, jsx(Flex, {
22250
- flexWrap: "wrap",
22251
- inset: {
22252
- top: 'x3',
22253
- horizontal: 'x3'
22254
- },
22255
- overflowY: "auto",
22256
- width: isMobile ? '100%' : 'calc(50% - 12px)',
22257
- order: 3
22258
- }, jsx(UpsaleOptions, {
22259
- selectableOptions: selectableOptions,
22260
- selectedOption: selectedOption,
22261
- handleSelectedOption: function (optionId) {
22262
- return handleSelectedOption(optionId);
22263
- },
22264
- removeSelectedOption: removeSelectedOption,
22265
- showCheckoutView: shouldShowCheckoutView,
22266
- handleShouldShowCheckoutView: function (value) {
22267
- return setShouldShowCheckoutView(value);
22268
- },
22269
- activeSelectedOption: activeSelectedOption[0],
22270
- extraLink: {
22271
- title: extraLink === null || extraLink === void 0 ? void 0 : extraLink.title,
22272
- onClick: extraLink === null || extraLink === void 0 ? void 0 : extraLink.onClick,
22273
- href: extraLink === null || extraLink === void 0 ? void 0 : extraLink.href
22274
- },
22275
- defaultNumOptionsShown: defaultNumOptionsShown,
22276
- submitAction: submitAction
22277
- }, children), !shouldShowCheckoutView && jsx(Flex, {
22278
- justifyContent: "center",
22279
- position: isMobile ? 'fixed' : 'relative',
22280
- bottom: isMobile ? '0' : 'unset',
22281
- height: "100px",
22282
- alignItems: "center",
22283
- width: "100%",
22284
- backgroundColor: isMobile ? 'foreground' : undefined,
22285
- boxShadow: isMobile ? 'mediumDark' : undefined,
22286
- left: "0",
22287
- zIndex: isMobile ? 10 : undefined
22288
- }, jsx(Button, {
22289
- type: 'primary',
22290
- size: "large",
22291
- title: (_b = acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.title) !== null && _b !== void 0 ? _b : 'Continue to Checkout',
22292
- disabled: !selectedOption.length,
22293
- onClick: handleOnClick
22294
- }))), !isMobile && jsx(Div, {
22295
- width: "x3",
22296
- order: 2
22297
- }), jsx(Flex, {
22298
- overflowY: "auto",
22299
- width: isMobile ? '100%' : 'calc(50% - 12px)',
22300
- order: 1
22301
- }, jsx(Div, {
22302
- width: "100%",
22303
- inset: {
22304
- top: '1.4rem'
22305
- }
22306
- }, jsx(Accordion, {
22307
- defaultActiveKeys: [1],
22308
- arrowLocation: "right",
22309
- background: "background",
22310
- inset: "x0",
22311
- isExclusive: true,
22312
- sections: [{
22313
- body: jsx(React.Fragment, null, upsaleContent),
22314
- heading: jsx(Div, {
22315
- inset: isMobile ? {
22316
- left: '4.1rem'
22317
- } : {
22318
- left: 'x4'
22319
- },
22320
- width: "100%",
22321
- display: "flex",
22322
- justifyContent: "space-between",
22323
- alignItems: "center"
22324
- }, jsx(Text, {
22325
- weight: "bold",
22326
- type: "caption",
22327
- content: upsaleContentTitle
22328
- }), jsx(Div, {
22329
- width: "34px",
22330
- height: "34px",
22331
- borderRadius: "small",
22332
- backgroundSize: "cover",
22333
- backgroundPosition: "center",
22334
- outset: {
22335
- right: 'x2'
22336
- }
22337
- })),
22338
- key: 1
22339
- }]
22340
- }))))), jsx(Div, {
22341
- backgroundColor: "foreground",
22342
- width: device <= 1367 ? '100%' : 'calc(100% - 10rem)',
22343
- position: isMobile ? 'relative' : 'absolute',
22344
- bottom: isMobile ? dialogFooterHeight : 'x0',
22345
- inset: isMobile ? 'x1' : {
22346
- bottom: 'x4'
22347
- },
22348
- left: "50%",
22349
- transform: "translateX(-50%)",
22350
- zIndex: !isMobile ? SOC_FRONT_Z_INDEX : undefined
22351
- }, jsx(Separator, {
22352
- orientation: "horizontal",
22353
- caption: "Want to try it first?",
22354
- shouldCaptionWrap: false
22355
- }), jsx(Flex, {
22356
- width: "100%",
22357
- justifyContent: "center",
22358
- alignItems: "center",
22359
- inset: {
22360
- top: 'x2_5'
22361
- }
22362
- }, jsx(Button, {
22363
- type: "secondary",
22364
- outlined: true,
22365
- hover: true,
22366
- size: "medium",
22367
- title: "Send a Free Postcard",
22368
- onClick: function () {
22369
- return window.open("https://www.sendoutcards.com/" + sponsorId + "/send/");
22370
- }
22371
- })))));
22372
- };
22373
-
22374
- var ComparisonIncludesList = function (_a) {
22375
- var items = _a.items,
22376
- isMinified = _a.isMinified;
22377
- return jsx(Div, {
22378
- position: "relative",
22379
- display: "flex",
22380
- flexDirection: "column",
22381
- alignItems: "center",
22382
- justifyContent: "center",
22383
- backgroundColor: "background",
22384
- inset: "1.5rem"
22385
- }, jsx(Div, {
22386
- width: "100%"
22387
- }, jsx(VStack, {
22388
- gap: "x2_5",
22389
- alignItems: isMinified ? 'start' : 'center',
22390
- justifyContent: isMinified ? 'start' : 'center'
22391
- }, items.sort(function (a, b) {
22392
- return Number(b.isIncluded) - Number(a.isIncluded);
22393
- }).map(function (item, index) {
22394
- return jsx(ComparisonItem, _extends({
22395
- key: index
22396
- }, item, {
22397
- isMinified: isMinified
22398
- }));
22399
- }))));
22400
- };
22401
-
22402
- var QuantitySlider = function (_a) {
22403
- var quantity = _a.quantity,
22404
- min = _a.min,
22405
- max = _a.max,
22406
- setQuantity = _a.setQuantity,
22407
- salePrice = _a.salePrice,
22408
- unitPrice = _a.unitPrice,
22409
- sliderFill = _a.sliderFill,
22410
- width = _a.width,
22411
- hasIncrement = _a.hasIncrement,
22412
- head = _a.head;
22413
- var subtotal = salePrice ? salePrice * quantity : unitPrice * quantity;
22414
- return jsx(Flex, {
22415
- justifyContent: "center",
22416
- flexDirection: "column"
22417
- }, head && jsx(Flex, {
22418
- width: "100%",
22419
- justifyContent: "center",
22420
- flexDirection: "column",
22421
- outset: {
22422
- bottom: 'x2'
22423
- }
22424
- }, head), salePrice ? jsx(React.Fragment, null, jsx(Text, {
22425
- type: "caption",
22426
- color: "primaryHeading",
22427
- content: "Sale",
22428
- alignment: "center",
22429
- style: {
22430
- letterSpacing: '1px'
22431
- }
22432
- }), jsx(Flex, {
22433
- justifyContent: "center"
22434
- }, jsx(Spacer, {
22435
- orientation: "horizontal",
22436
- space: "x1"
22437
- }), jsx(Text, {
22438
- type: "caption",
22439
- color: "primaryHeading",
22440
- weight: "semiBold",
22441
- content: "$" + (unitPrice === null || unitPrice === void 0 ? void 0 : unitPrice.toFixed(2)),
22442
- isStrikeThrough: true,
22443
- alignment: "center",
22444
- style: {
22445
- letterSpacing: '1px'
22446
- }
22447
- }), jsx(Spacer, {
22448
- orientation: "horizontal",
22449
- space: "x1"
22450
- }), jsx(Text, {
22451
- type: "largeBody",
22452
- color: "danger",
22453
- weight: "bold",
22454
- content: "$" + salePrice.toFixed(2) + " /each",
22455
- style: {
22456
- letterSpacing: '1px'
22457
- }
22458
- }))) : jsx(Text, {
22459
- type: "body",
22460
- color: "primaryHeading",
22461
- weight: "semiBold",
22462
- content: "$" + (unitPrice === null || unitPrice === void 0 ? void 0 : unitPrice.toFixed(2)) + " /each",
22463
- alignment: "center",
22464
- style: {
22465
- letterSpacing: '1px'
22466
- }
22467
- }), jsx(Text, {
22468
- type: "body",
22469
- content: "Subtotal: $" + subtotal.toFixed(2),
22470
- alignment: "center"
22471
- }), jsx(Flex, {
22472
- justifyContent: "center"
22473
- }, hasIncrement ? jsx(Div, {
22474
- width: "370px"
22475
- }, jsx(Spacer, {
22476
- orientation: "vertical",
22477
- space: "x2"
22478
- }), jsx(IncrementSetting, {
22479
- title: "",
22480
- min: min,
22481
- max: max,
22482
- value: quantity,
22483
- layout: "inline",
22484
- setValue: function (quantity) {
22485
- return setQuantity(quantity);
22486
- },
22487
- activeColor: sliderFill,
22488
- inputWidth: width
22489
- })) : jsx(Slider, {
22490
- min: min,
22491
- max: max,
22492
- value: quantity,
22493
- setValue: function (quantity) {
22494
- return setQuantity(quantity);
22495
- },
22496
- width: width,
22497
- activeColor: sliderFill
22498
- })));
22499
- };
22500
-
22501
- var FeatureBadge = function (_a) {
22502
- var title = _a.title,
22503
- _b = _a.backgroundColor,
22504
- backgroundColor = _b === void 0 ? 'success' : _b,
22505
- _c = _a.color,
22506
- color = _c === void 0 ? 'inverseBody' : _c,
22507
- size = _a.size,
22508
- icon = _a.icon,
22509
- onClick = _a.onClick;
22510
- var hocs = useEntities().hocs;
22511
- return jsx(Flex, {
22512
- backgroundColor: hocs.colors.swatches[backgroundColor].base,
22513
- inset: icon ? {
22514
- left: 'x1',
22515
- vertical: 'x1',
22516
- right: 'x2'
22517
- } : 'x2',
22518
- borderRadius: "medium",
22519
- display: "inline-flex",
22520
- justifyContent: "flex-start",
22521
- alignItems: "center",
22522
- onClick: onClick,
22523
- cursor: onClick ? 'pointer' : 'initial',
22524
- minWidth: "max-content"
22525
- }, icon && jsx(Div, {
22526
- alignItems: "center",
22527
- style: {
22528
- lineHeight: 0
22529
- },
22530
- inset: {
22531
- right: 'x1'
22532
- }
22533
- }, jsx(Icon, {
22534
- name: icon,
22535
- primaryColor: convertTextColorToIconColor(color),
22536
- size: size !== null && size !== void 0 ? size : 'small'
22537
- })), jsx(Text, {
22538
- style: {
22539
- lineHeight: 0,
22540
- letterSpacing: 0.5
22541
- },
22542
- type: "caption",
22543
- color: color,
22544
- weight: "bold"
22545
- }, title));
22546
- };
22547
-
22548
- var TitledList = function (_a) {
22230
+ var TitledList = function (_a) {
22549
22231
  var title = _a.title,
22550
22232
  listItems = _a.listItems,
22551
22233
  _b = _a.listStyle,
@@ -23165,52 +22847,6 @@ var CardEntryDialog = function (_a) {
23165
22847
  })))));
23166
22848
  };
23167
22849
 
23168
- var AffiliateUpsalePromotionWidget = function (_a) {
23169
- var type = _a.type,
23170
- _b = _a.minWidth,
23171
- minWidth = _b === void 0 ? '320px' : _b,
23172
- _c = _a.width,
23173
- width = _c === void 0 ? '100%' : _c,
23174
- buttonOnclick = _a.buttonOnclick;
23175
-
23176
- var openInNewTab = function (url) {
23177
- var newWindow = window.open(url, '_blank', 'noopener,noreferrer');
23178
- if (newWindow) newWindow.opener = null;
23179
- };
23180
-
23181
- var getContent = function (type) {
23182
- var title = type === 'customer' || type === 'freeAffiliate' ? 'Love our products & services?' : 'Build your Greener Still Business';
23183
- var description = type === 'customer' || type === 'freeAffiliate' ? 'Isn’t it fun?! Sending out to give when you feel a prompting, it’s pretty great! Finding yourself sharing with others? Earn an income simply for sharing products you already love! Become an Affiliate Pro for $14/month and start sharing with our GS Pro app easily and effectively.' : 'Focus on duplicating your efforts to grow your business. Commit to repeating this every month, twice a month, or every week and grow your Greener Still business!';
23184
- var buttonTitle = type === 'customer' || type === 'freeAffiliate' ? 'Unlock Your Opportunity' : 'Comp Plan Training';
23185
- var url = type === 'proAffiliate' ? 'https://www.facebook.com/groups/sendoutcardscorporate/permalink/5098162643579731' : 'https://app.sendoutcards.com/?client=greenerstill&affiliatejoin';
23186
- return {
23187
- title: title,
23188
- description: description,
23189
- buttonTitle: buttonTitle,
23190
- buttonOnclick: buttonOnclick ? buttonOnclick : function () {
23191
- return openInNewTab(url);
23192
- }
23193
- };
23194
- };
23195
-
23196
- return jsx(PromotionWidget, {
23197
- title: getContent(type).title,
23198
- description: getContent(type).description,
23199
- primaryAction: {
23200
- title: getContent(type).buttonTitle,
23201
- onClick: getContent(type).buttonOnclick
23202
- },
23203
- secondaryAction: {
23204
- title: 'Learn More',
23205
- href: 'https://streamvirtualassistant.com/'
23206
- },
23207
- capsuleTitle: "New",
23208
- width: width,
23209
- minWidth: minWidth,
23210
- type: "success"
23211
- });
23212
- };
23213
-
23214
22850
  var AffiliateShareWidget = function (_a) {
23215
22851
  var shareLink = _a.shareLink;
23216
22852
  return jsx(PromotionWidget, {
@@ -23680,55 +23316,383 @@ var comparisonItems97 = [{
23680
23316
  isIncluded: true
23681
23317
  }];
23682
23318
 
23683
- var SubscriptionUpsaleDialog = function (_a) {
23319
+ var SubscriptionUpsaleDialog = function (_a) {
23320
+ var title = _a.title,
23321
+ description = _a.description,
23322
+ checkoutTitle = _a.checkoutTitle,
23323
+ checkoutDescription = _a.checkoutDescription,
23324
+ selectableOptions = _a.selectableOptions,
23325
+ upsaleContentTitle = _a.upsaleContentTitle,
23326
+ isOpen = _a.isOpen,
23327
+ setIsDialogOpen = _a.setIsDialogOpen,
23328
+ _b = _a.optionFormLocation,
23329
+ optionFormLocation = _b === void 0 ? 'right' : _b,
23330
+ children = _a.children,
23331
+ selectedOption = _a.selectedOption,
23332
+ removeSelectedOption = _a.removeSelectedOption,
23333
+ successComponent = _a.successComponent,
23334
+ insetOverride = _a.insetOverride,
23335
+ handleSelectedOption = _a.handleSelectedOption,
23336
+ sponsorId = _a.sponsorId;
23337
+ _a.upsaleContent;
23338
+ var rest = __rest(_a, ["title", "description", "checkoutTitle", "checkoutDescription", "selectableOptions", "upsaleContentTitle", "isOpen", "setIsDialogOpen", "optionFormLocation", "children", "selectedOption", "removeSelectedOption", "successComponent", "insetOverride", "handleSelectedOption", "sponsorId", "upsaleContent"]);
23339
+
23340
+ var device = useWindowSize().width;
23341
+ return jsx("div", null, jsx(UpsaleDialog, _extends({
23342
+ sponsorId: sponsorId,
23343
+ title: title,
23344
+ description: description,
23345
+ checkoutTitle: checkoutTitle,
23346
+ checkoutDescription: checkoutDescription,
23347
+ selectableOptions: selectableOptions,
23348
+ selectedOption: selectedOption,
23349
+ handleSelectedOption: function (optionId) {
23350
+ return handleSelectedOption(optionId);
23351
+ },
23352
+ removeSelectedOption: removeSelectedOption,
23353
+ upsaleContentTitle: upsaleContentTitle,
23354
+ upsaleContent: jsx(ComparisonIncludesList, {
23355
+ isMinified: device <= 1017,
23356
+ items: selectedOption === '324132' //this is the item code for the 37 subscription
23357
+ ? comparisonItems37 : comparisonItems97
23358
+ }),
23359
+ optionFormLocation: optionFormLocation,
23360
+ setIsDialogOpen: function () {
23361
+ return setIsDialogOpen(!isOpen);
23362
+ },
23363
+ isOpen: isOpen,
23364
+ successComponent: successComponent,
23365
+ insetOverride: insetOverride,
23366
+ maxWidth: '1500px'
23367
+ }, rest), children));
23368
+ };
23369
+
23370
+ var UpsaleOptions = function (_a) {
23371
+ var selectableOptions = _a.selectableOptions,
23372
+ selectedOption = _a.selectedOption,
23373
+ handleSelectedOption = _a.handleSelectedOption,
23374
+ removeSelectedOption = _a.removeSelectedOption,
23375
+ showCheckoutView = _a.showCheckoutView,
23376
+ handleShouldShowCheckoutView = _a.handleShouldShowCheckoutView,
23377
+ children = _a.children,
23378
+ activeSelectedOption = _a.activeSelectedOption,
23379
+ extraLink = _a.extraLink,
23380
+ _b = _a.defaultNumOptionsShown,
23381
+ defaultNumOptionsShown = _b === void 0 ? selectableOptions.length : _b,
23382
+ submitAction = _a.submitAction;
23383
+ var shouldShowCheckoutScreen = selectedOption && showCheckoutView;
23384
+ return jsx(Div, {
23385
+ height: "100%",
23386
+ position: "relative",
23387
+ width: "100%"
23388
+ }, jsx(Div, null, shouldShowCheckoutScreen && // Back Button
23389
+ jsx(Div, {
23390
+ outset: {
23391
+ top: 'x4'
23392
+ },
23393
+ position: "relative",
23394
+ bottom: "25px",
23395
+ right: "7px",
23396
+ height: "20px",
23397
+ cursor: "pointer",
23398
+ onClick: function () {
23399
+ removeSelectedOption();
23400
+ handleShouldShowCheckoutView(false);
23401
+ }
23402
+ }, jsx(HStack, {
23403
+ gap: "x_25",
23404
+ justify: "start",
23405
+ alignItems: "center"
23406
+ }, jsx(Icon, {
23407
+ name: "leftChevron",
23408
+ size: "small",
23409
+ primaryColor: "primaryBodyText"
23410
+ }), jsx(Text, {
23411
+ type: 'caption',
23412
+ weight: "semiBold",
23413
+ color: "primaryBody",
23414
+ content: "Back",
23415
+ alignment: "center",
23416
+ style: {
23417
+ position: 'relative',
23418
+ bottom: 4
23419
+ }
23420
+ })), jsx(Spacer, {
23421
+ space: "x2"
23422
+ })), jsx(VStack, {
23423
+ gap: "x2"
23424
+ }, shouldShowCheckoutScreen && activeSelectedOption ? jsx(Div, null, jsx(RadioOptionCard, _extends({}, activeSelectedOption, {
23425
+ isSelected: true
23426
+ })), children) : jsx(VStack, {
23427
+ gap: "x2"
23428
+ }, selectableOptions.filter(function (_, index) {
23429
+ return index < defaultNumOptionsShown;
23430
+ }).map(function (option, index) {
23431
+ var _a;
23432
+
23433
+ return jsx(RadioOptionCard, _extends({}, option, {
23434
+ key: index,
23435
+ optionId: option.optionId,
23436
+ onSelect: function () {
23437
+ return handleSelectedOption(option.optionId);
23438
+ },
23439
+ isSelected: (_a = (activeSelectedOption && selectedOption) === option.optionId) !== null && _a !== void 0 ? _a : false
23440
+ }));
23441
+ })), extraLink && jsx(Anchor, {
23442
+ title: extraLink.title,
23443
+ onClick: extraLink.onClick,
23444
+ href: extraLink.href,
23445
+ size: "small",
23446
+ color: "primaryBody",
23447
+ outset: "0 auto"
23448
+ }), submitAction && jsx(Flex, {
23449
+ width: "100%",
23450
+ justifyContent: "center",
23451
+ alignItems: "center"
23452
+ }, jsx(Button, {
23453
+ title: submitAction.title,
23454
+ type: submitAction.type,
23455
+ onClick: submitAction.onClick,
23456
+ fullWidth: submitAction.isFullWidth,
23457
+ disabled: submitAction.isDisabled,
23458
+ size: "large"
23459
+ })))));
23460
+ };
23461
+
23462
+ var SOC_FRONT_Z_INDEX = 103;
23463
+ var UpsaleDialog = function (_a) {
23464
+ var _b;
23465
+
23684
23466
  var title = _a.title,
23685
23467
  description = _a.description,
23686
23468
  checkoutTitle = _a.checkoutTitle,
23687
23469
  checkoutDescription = _a.checkoutDescription,
23688
23470
  selectableOptions = _a.selectableOptions,
23689
- upsaleContentTitle = _a.upsaleContentTitle,
23690
23471
  isOpen = _a.isOpen,
23691
23472
  setIsDialogOpen = _a.setIsDialogOpen,
23692
- _b = _a.optionFormLocation,
23693
- optionFormLocation = _b === void 0 ? 'right' : _b,
23473
+ upsaleContent = _a.upsaleContent,
23694
23474
  children = _a.children,
23695
23475
  selectedOption = _a.selectedOption,
23476
+ handleSelectedOption = _a.handleSelectedOption,
23696
23477
  removeSelectedOption = _a.removeSelectedOption,
23697
- successComponent = _a.successComponent,
23698
23478
  insetOverride = _a.insetOverride,
23699
- handleSelectedOption = _a.handleSelectedOption,
23700
- sponsorId = _a.sponsorId;
23701
- _a.upsaleContent;
23702
- var rest = __rest(_a, ["title", "description", "checkoutTitle", "checkoutDescription", "selectableOptions", "upsaleContentTitle", "isOpen", "setIsDialogOpen", "optionFormLocation", "children", "selectedOption", "removeSelectedOption", "successComponent", "insetOverride", "handleSelectedOption", "sponsorId", "upsaleContent"]);
23479
+ maxWidth = _a.maxWidth,
23480
+ maxHeight = _a.maxHeight,
23481
+ _c = _a.zIndex,
23482
+ zIndex = _c === void 0 ? SOC_FRONT_Z_INDEX : _c,
23483
+ //Soc-frontend
23484
+ successComponent = _a.successComponent,
23485
+ upsaleContentTitle = _a.upsaleContentTitle,
23486
+ _d = _a.sponsorId,
23487
+ sponsorId = _d === void 0 ? '9070' : _d,
23488
+ extraLink = _a.extraLink,
23489
+ defaultNumOptionsShown = _a.defaultNumOptionsShown,
23490
+ submitAction = _a.submitAction,
23491
+ acceptSelectedAction = _a.acceptSelectedAction,
23492
+ shouldHideSendFreeCard = _a.shouldHideSendFreeCard;
23493
+
23494
+ var _e = React.useState(false),
23495
+ shouldShowCheckoutView = _e[0],
23496
+ setShouldShowCheckoutView = _e[1];
23703
23497
 
23498
+ var _f = useResizeObserver(),
23499
+ ref = _f.ref,
23500
+ width = _f.width,
23501
+ height = _f.height;
23502
+
23503
+ var dialogFooterHeight = shouldHideSendFreeCard ? '120px' : '170px';
23704
23504
  var device = useWindowSize().width;
23705
- return jsx("div", null, jsx(UpsaleDialog, _extends({
23706
- sponsorId: sponsorId,
23707
- title: title,
23708
- description: description,
23709
- checkoutTitle: checkoutTitle,
23710
- checkoutDescription: checkoutDescription,
23505
+ var isMobile = device <= 910;
23506
+
23507
+ var findOption = function (selectedOption) {
23508
+ return selectableOptions.filter(function (option) {
23509
+ return option.optionId === selectedOption;
23510
+ });
23511
+ };
23512
+
23513
+ var activeSelectedOption = findOption(selectedOption);
23514
+
23515
+ var handleOnClick = function () {
23516
+ setShouldShowCheckoutView(true);
23517
+ acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.onClick();
23518
+ };
23519
+
23520
+ return jsx(Dialog, {
23521
+ ref: ref,
23522
+ isOpen: isOpen,
23523
+ onClose: function () {
23524
+ return setIsDialogOpen(!isOpen);
23525
+ },
23526
+ zIndex: zIndex,
23527
+ insetOverride: insetOverride,
23528
+ maxWidth: maxWidth,
23529
+ maxHeight: maxHeight,
23530
+ height: isMobile ? 'unset' : '80%',
23531
+ shouldScroll: true,
23532
+ width: "100%"
23533
+ }, successComponent ? jsx(Flex, {
23534
+ width: width + "px",
23535
+ height: height + "px",
23536
+ justifyContent: "center",
23537
+ alignItems: 'center'
23538
+ }, successComponent) : jsx(React.Fragment, null, jsx(Div, {
23539
+ width: "100%",
23540
+ inset: {
23541
+ bottom: 'x4',
23542
+ top: 'x8'
23543
+ }
23544
+ }, jsx(Text, {
23545
+ type: "subtitle",
23546
+ weight: "bold",
23547
+ content: shouldShowCheckoutView ? checkoutTitle : title,
23548
+ alignment: "center"
23549
+ }), jsx(Text, {
23550
+ type: "body",
23551
+ content: shouldShowCheckoutView ? checkoutDescription : description,
23552
+ alignment: "center"
23553
+ })), jsx(Scrollable, null, jsx(Flex, {
23554
+ justifyContent: 'center',
23555
+ alignItems: 'flex-start',
23556
+ width: '100%',
23557
+ inset: device <= 1367 && device > 580 ? {
23558
+ top: 'x4',
23559
+ horizontal: 'x8',
23560
+ bottom: dialogFooterHeight
23561
+ } : device <= 580 ? {
23562
+ top: 'x4',
23563
+ horizontal: 'x4',
23564
+ bottom: dialogFooterHeight
23565
+ } : {
23566
+ top: 'x4',
23567
+ horizontal: '10rem',
23568
+ bottom: dialogFooterHeight
23569
+ },
23570
+ flexWrap: "wrap",
23571
+ overflowY: "hidden",
23572
+ flexDirection: isMobile ? 'column' : 'row'
23573
+ }, jsx(Flex, {
23574
+ flexWrap: "wrap",
23575
+ inset: {
23576
+ top: 'x3',
23577
+ horizontal: 'x3'
23578
+ },
23579
+ overflowY: "auto",
23580
+ width: isMobile ? '100%' : 'calc(50% - 12px)',
23581
+ order: 3
23582
+ }, jsx(UpsaleOptions, {
23711
23583
  selectableOptions: selectableOptions,
23712
23584
  selectedOption: selectedOption,
23713
23585
  handleSelectedOption: function (optionId) {
23714
23586
  return handleSelectedOption(optionId);
23715
23587
  },
23716
23588
  removeSelectedOption: removeSelectedOption,
23717
- upsaleContentTitle: upsaleContentTitle,
23718
- upsaleContent: jsx(ComparisonIncludesList, {
23719
- isMinified: device <= 1017,
23720
- items: selectedOption === '324132' //this is the item code for the 37 subscription
23721
- ? comparisonItems37 : comparisonItems97
23722
- }),
23723
- optionFormLocation: optionFormLocation,
23724
- setIsDialogOpen: function () {
23725
- return setIsDialogOpen(!isOpen);
23589
+ showCheckoutView: shouldShowCheckoutView,
23590
+ handleShouldShowCheckoutView: function (value) {
23591
+ return setShouldShowCheckoutView(value);
23726
23592
  },
23727
- isOpen: isOpen,
23728
- successComponent: successComponent,
23729
- insetOverride: insetOverride,
23730
- maxWidth: '1500px'
23731
- }, rest), children));
23593
+ activeSelectedOption: activeSelectedOption[0],
23594
+ extraLink: {
23595
+ title: extraLink === null || extraLink === void 0 ? void 0 : extraLink.title,
23596
+ onClick: extraLink === null || extraLink === void 0 ? void 0 : extraLink.onClick,
23597
+ href: extraLink === null || extraLink === void 0 ? void 0 : extraLink.href
23598
+ },
23599
+ defaultNumOptionsShown: defaultNumOptionsShown,
23600
+ submitAction: submitAction
23601
+ }, children), !shouldShowCheckoutView && jsx(Flex, {
23602
+ justifyContent: "center",
23603
+ position: isMobile ? 'fixed' : 'relative',
23604
+ bottom: isMobile ? '0' : 'unset',
23605
+ height: "100px",
23606
+ alignItems: "center",
23607
+ width: "100%",
23608
+ backgroundColor: isMobile ? 'foreground' : undefined,
23609
+ boxShadow: isMobile ? 'mediumDark' : undefined,
23610
+ left: "0",
23611
+ zIndex: isMobile ? 10 : undefined
23612
+ }, jsx(Button, {
23613
+ type: 'primary',
23614
+ size: "large",
23615
+ title: (_b = acceptSelectedAction === null || acceptSelectedAction === void 0 ? void 0 : acceptSelectedAction.title) !== null && _b !== void 0 ? _b : 'Continue to Checkout',
23616
+ disabled: !selectedOption.length,
23617
+ onClick: handleOnClick
23618
+ }))), !isMobile && jsx(Div, {
23619
+ width: "x3",
23620
+ order: 2
23621
+ }), jsx(Flex, {
23622
+ overflowY: "auto",
23623
+ width: isMobile ? '100%' : 'calc(50% - 12px)',
23624
+ order: 1
23625
+ }, jsx(Div, {
23626
+ width: "100%",
23627
+ inset: {
23628
+ top: '1.4rem'
23629
+ }
23630
+ }, jsx(Accordion, {
23631
+ defaultActiveKeys: [1],
23632
+ arrowLocation: "right",
23633
+ background: "background",
23634
+ inset: "x0",
23635
+ isExclusive: true,
23636
+ sections: [{
23637
+ body: jsx(React.Fragment, null, upsaleContent),
23638
+ heading: jsx(Div, {
23639
+ inset: isMobile ? {
23640
+ left: '4.1rem'
23641
+ } : {
23642
+ left: 'x4'
23643
+ },
23644
+ width: "100%",
23645
+ display: "flex",
23646
+ justifyContent: "space-between",
23647
+ alignItems: "center"
23648
+ }, jsx(Text, {
23649
+ weight: "bold",
23650
+ type: "caption",
23651
+ content: upsaleContentTitle
23652
+ }), jsx(Div, {
23653
+ width: "34px",
23654
+ height: "34px",
23655
+ borderRadius: "small",
23656
+ backgroundSize: "cover",
23657
+ backgroundPosition: "center",
23658
+ outset: {
23659
+ right: 'x2'
23660
+ }
23661
+ })),
23662
+ key: 1
23663
+ }]
23664
+ }))))), !shouldHideSendFreeCard && jsx(Div, {
23665
+ backgroundColor: "foreground",
23666
+ width: device <= 1367 ? '100%' : 'calc(100% - 10rem)',
23667
+ position: isMobile ? 'relative' : 'absolute',
23668
+ bottom: isMobile ? dialogFooterHeight : 'x0',
23669
+ inset: isMobile ? 'x1' : {
23670
+ bottom: 'x4'
23671
+ },
23672
+ left: "50%",
23673
+ transform: "translateX(-50%)",
23674
+ zIndex: !isMobile ? SOC_FRONT_Z_INDEX : undefined
23675
+ }, jsx(Separator, {
23676
+ orientation: "horizontal",
23677
+ caption: "Want to try it first?",
23678
+ shouldCaptionWrap: false
23679
+ }), jsx(Flex, {
23680
+ width: "100%",
23681
+ justifyContent: "center",
23682
+ alignItems: "center",
23683
+ inset: {
23684
+ top: 'x2_5'
23685
+ }
23686
+ }, jsx(Button, {
23687
+ type: "secondary",
23688
+ outlined: true,
23689
+ hover: true,
23690
+ size: "medium",
23691
+ title: "Send a Free Postcard",
23692
+ onClick: function () {
23693
+ return window.open("https://www.sendoutcards.com/" + sponsorId + "/send/");
23694
+ }
23695
+ })))));
23732
23696
  };
23733
23697
 
23734
23698
  var useColorSwatch = function () {
@@ -23755,4 +23719,4 @@ var useColorSwatch = function () {
23755
23719
  };
23756
23720
  };
23757
23721
 
23758
- export { Accordion, AccordionBody, AccordionHeading, AccountMenu, AffiliateShareWidget, AffiliateUpsalePromotionWidget, Anchor, AnimatedCheckMark, AnimatedGrid, ArticleCard, Aside, Avatar, AwardCard, AwardGroupLabel, Badge, Banner, Bar, BlockQuote, BulkSend, Button, ButtonWithMenu, Capsule, Card, CardEntryDialog, CardQuantitySlider, Checkbox, Circle, CircleMenu, Clipboard, CloseButton, ColorOption, ComparisonIncludesList, ComparisonItem, ConfigurationCard, ConfirmDialog, Content, ContentPusher, ContextBar, CountdownTimer, Dialog, DisplayCard, Div, DownloadButton, DragBar, DragBox, Drawer, DropDownMenu, ExpandedAwardCard, FeatureAnnouncement, FeatureBadge, Flex, Grid, GridItem, HStack, Icon, IconLink, Image$1 as Image, ImageThumbnail, ImageUploadWidget, ImageUploader, IncrementSetting, InfiniteScroller, InfoBlock, Input, InviteCard, LinkColumn, List, ListItem, Loader, LoadingSpinner, Logo, MasonryGrid, Menu, MenuItem, MenuSection, Navigation, NavigationPill, Option, OrderCard, Overlay, Page, PaperTypeModal, PhoneInput, Pill, PinInput, PricingTile, Progress, PromotionWidget, QDSChrome, QuantitySlider, QuantumColorPicker, QuantumThemeWrapper, QuickLink, RadioOptionCard, RadioOptionList, ReleaseNote, ReleaseNoteDialog, RevealingContent, RowItem, Scrollable, ScrollingIndicator, Section, Select, SelectableCard, SelectableList, Separator, SettingInput, Sheet, Sidebar, Slider, SnapPoint, Spacer, Span, Sphere, StackedCards, StaticNavigation, Stepper, Stoplight, SubNavigation, SubscriptionUpsaleDialog, Tab, Table, TableRow, Tabs, Text, TitledList, Todo, Toggle, Tooltip, Transition, UploadButton, UpsaleDialog, UpsaleSheet, UserCard, UserCardLoader, VStack, VideoPlayer, Zoom, entities$5 as bellaCadaeuxTheme, entities$4 as blue42Theme, getSize, entities$6 as greenerStillTheme, entities$3 as promptingUTheme, entities as sendOutCardsTheme, entities$7 as sendogoTheme, entities$2 as streamMarketingTheme, entities$1 as streamVATheme, useColorSwatch };
23722
+ export { Accordion, AccordionBody, AccordionHeading, AccountMenu, AffiliateShareWidget, Anchor, AnimatedCheckMark, AnimatedGrid, ArticleCard, Aside, Avatar, AwardCard, AwardGroupLabel, Badge, Banner, Bar, BlockQuote, BulkSend, Button, ButtonWithMenu, Capsule, Card, CardEntryDialog, CardQuantitySlider, Checkbox, Circle, CircleMenu, Clipboard, CloseButton, ColorOption, ComparisonIncludesList, ComparisonItem, ConfigurationCard, ConfirmDialog, Content, ContentPusher, ContextBar, CountdownTimer, Dialog, DisplayCard, Div, DownloadButton, DragBar, DragBox, Drawer, DropDownMenu, ExpandedAwardCard, FeatureAnnouncement, FeatureBadge, Flex, Grid, GridItem, HStack, Icon, IconLink, Image$1 as Image, ImageThumbnail, ImageUploadWidget, ImageUploader, IncrementSetting, InfiniteScroller, InfoBlock, Input, InviteCard, LinkColumn, List, ListItem, Loader, LoadingSpinner, Logo, MasonryGrid, Menu, MenuItem, MenuSection, Navigation, NavigationPill, Option, OrderCard, Overlay, Page, PaperTypeModal, PhoneInput, Pill, PinInput, PricingTile, Progress, PromotionWidget, QDSChrome, QuantitySlider, QuantumColorPicker, QuantumThemeWrapper, QuickLink, RadioOptionCard, RadioOptionList, ReleaseNote, ReleaseNoteDialog, RevealingContent, RowItem, Scrollable, ScrollingIndicator, Section, Select, SelectableCard, SelectableList, Separator, SettingInput, Sheet, Sidebar, Slider, SnapPoint, Spacer, Span, Sphere, StackedCards, StaticNavigation, Stepper, Stoplight, SubNavigation, SubscriptionUpsaleDialog, Tab, Table, TableRow, Tabs, Text, TitledList, Todo, Toggle, Tooltip, Transition, UploadButton, UpsaleDialog, UpsaleSheet, UserCard, UserCardLoader, VStack, VideoPlayer, Zoom, entities$5 as bellaCadaeuxTheme, entities$4 as blue42Theme, getSize, entities$6 as greenerStillTheme, entities$3 as promptingUTheme, entities as sendOutCardsTheme, entities$7 as sendogoTheme, entities$2 as streamMarketingTheme, entities$1 as streamVATheme, useColorSwatch };