@roomstay/frontend 1.5.0 → 1.5.2
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/661.bundle.js +1 -0
- package/dist/main.bundle.js +1 -1
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js +5 -3
- package/dist/src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.js.map +1 -1
- package/dist/src/events/index.d.ts +2 -0
- package/dist/src/events/index.js +2 -0
- package/dist/src/events/index.js.map +1 -1
- package/dist/test.bundle.js +1 -1
- package/dist/tests/offline/entry/RSCompany.js +1 -0
- package/dist/tests/offline/entry/RSCompany.js.map +1 -1
- package/dist/vendors.bundle.js +1 -1
- package/package.json +1 -1
- package/dist/171.bundle.js +0 -1
|
@@ -36,9 +36,11 @@ function MembersOnlyRow() {
|
|
|
36
36
|
React.createElement("div", { className: "u-marg-bottom-half" },
|
|
37
37
|
React.createElement(Text_1.default, { type: Text_1.TextType.Body, color: Color_1.Color.Success },
|
|
38
38
|
React.createElement("strong", null, t(Translation_1.Translation.Step.Room.RoomInfo.MemberOnlyRow.MemberOnlyPrices)))),
|
|
39
|
-
React.createElement("div", { className: "u-marg-bottom u-h-ml-2 text-small u-clear-font-weight"
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
React.createElement("div", { className: "u-marg-bottom u-h-ml-2 text-small u-clear-font-weight", dangerouslySetInnerHTML: {
|
|
40
|
+
__html: t(Translation_1.Translation.Step.Room.RoomInfo.MemberOnlyRow.DealsForOnly, {
|
|
41
|
+
companyShort: ccx === null || ccx === void 0 ? void 0 : ccx.companyShort,
|
|
42
|
+
}),
|
|
43
|
+
} }),
|
|
42
44
|
React.createElement("div", { className: "u-marg-bottom", onClick: openSignupModalOnClick },
|
|
43
45
|
React.createElement(Pill_1.default, { icon: Icon_1.IconType.Money, type: Pill_1.PillType.Success }, t(Translation_1.Translation.Step.Room.RoomInfo.SignUpToSee)))),
|
|
44
46
|
React.createElement("div", { className: "u-flex justify-content-start u-marg-top-bottom@m-" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MembersOnlyRow.js","sourceRoot":"/","sources":["src/components/steps/room/roomDetails/roomRates/MembersOnlyRow.tsx"],"names":[],"mappings":";;AAAA,+BAA+B;AAC/B,iCAAqD;AACrD,mDAA0D;AAC1D,qDAAkD;AAClD,2DAAoD;AACpD,yEAAsE;AACtE,iDAA+C;AAE/C,yCAAyC;AAEzC,mDAA0D;AAC1D,mDAA0D;AAC1D,6DAA4F;AAC5F,oEAA6D;AAC7D,iDAAoD;AAEpD,SAAwB,cAAc;IAClC,MAAM,GAAG,GAAG,kBAAU,CAAC,yBAAc,CAAC,CAAC;IAEvC,MAAM,EAAE,CAAC,EAAE,GAAG,8BAAc,EAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,cAAM,CAAC,IAAI,CAAC,CAAC;IAEhC,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,EAAE;QACpC,UAAU,EAAE,IAAI;KACnB,CAAC,CAAC;IAEH,IAAI,QAAQ,GAAG,KAAK,CAAC;IAErB,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE;QACnB,QAAQ,GAAG,IAAI,CAAC;KACnB;IACD,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,mBAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,qBAAqB,EAAE,2BAAe,CAAC,MAAM,EAAE,2BAAe,CAAC,KAAK,CAAC,CAAC;QACzG,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAChC,CAAC,CAAC;IACF,OAAO,CACH,6BAAK,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU;QACpC,6BAAK,SAAS,EAAC,KAAK,IACf,QAAQ,CAAC,CAAC,CAAC,CACR;YACI,6BAAK,SAAS,EAAC,UAAU;gBACrB,6BAAK,SAAS,EAAC,0BAA0B;oBACrC;wBACI,6BAAK,SAAS,EAAC,oBAAoB;4BAC/B,oBAAC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BACnG,oBAAC,+BAAqB,IAAC,QAAQ,EAAE,QAAQ,EAAE,kBAAkB,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,GAAI;gBAC7G,6BAAK,SAAS,EAAC,uBAAuB,IACjC,QAAQ,IAAI,CACT,oBAAC,kBAAQ,IAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,sBAAsB,wBAE9E,CACd,CACC,CACJ,CACP,CACN,CAAC,CAAC,CAAC,CACA,6BAAK,SAAS,EAAC,qCAAqC;YAChD,6BAAK,SAAS,EAAC,2BAA2B;gBACtC,8BAAM,SAAS,EAAC,+CAA+C,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE;oBACvH,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,aAAK,CAAC,OAAO,GAAI,CAChD;gBACP,oBAAC,cAAI,IAAC,IAAI,EAAE,eAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,aAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI;oBACzD,oCAAS,CAAC,CAAC,yBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAU,CAC1E,CACL,CACJ,CACT,CACC,CACJ,CACT,CAAC;AACN,CAAC;AAlFD,iCAkFC","sourcesContent":["import * as React from 'react';\nimport { useContext, useRef, useState } from 'react';\nimport Text, { TextType } from '../../../../generic/Text';\nimport { Color } from '../../../../../util/Color';\nimport BEButton from '../../../../generic/BEButton';\nimport { Translation } from '../../../../../translations/Translation';\nimport { useTranslation } from 'react-i18next';\n\nimport * as classNames from 'classnames';\n\nimport Icon, { IconType } from '../../../../generic/Icon';\nimport Pill, { PillType } from '../../../../generic/Pill';\nimport DataLayer, { InteractionStep, InteractionType } from '../../../../../util/DataLayer';\nimport RoomDetailsPriceBlock from '../RoomDetailsPriceBlock';\nimport { CompanyContext } from '@frontend/contexts';\n\nexport default function MembersOnlyRow() {\n const ccx = useContext(CompanyContext);\n\n const { t } = useTranslation();\n\n const currentRow = useRef(null);\n\n const classes = classNames('room-info', {\n '--locked': true,\n });\n\n let isLocked = false;\n\n if (!ccx.signedInUser) {\n isLocked = true;\n }\n const openSignupModalOnClick = () => {\n DataLayer.instance.sendInteraction('Member Signup Modal', InteractionType.BUTTON, InteractionStep.ROOMS);\n ccx.openMemberSignupModal();\n };\n return (\n <div className={classes} ref={currentRow}>\n <div className=\"row\">\n {isLocked ? (\n <>\n <div className=\"col-md-8\">\n <div className=\"u-flex flex-column h-100\">\n <div>\n <div className=\"u-marg-bottom-half\">\n <Text type={TextType.Body} color={Color.Success}>\n <strong>{t(Translation.Step.Room.RoomInfo.MemberOnlyRow.MemberOnlyPrices)}</strong>\n </Text>\n </div>\n <div\n className=\"u-marg-bottom u-h-ml-2 text-small u-clear-font-weight\"\n dangerouslySetInnerHTML={{\n __html: t(Translation.Step.Room.RoomInfo.MemberOnlyRow.DealsForOnly, {\n companyShort: ccx?.companyShort,\n }),\n }}\n ></div>\n <div className=\"u-marg-bottom\" onClick={openSignupModalOnClick}>\n <Pill icon={IconType.Money} type={PillType.Success}>\n {t(Translation.Step.Room.RoomInfo.SignUpToSee)}\n </Pill>\n </div>\n </div>\n <div className=\"u-flex justify-content-start u-marg-top-bottom@m-\">\n <div className=\"u-marg-right u-inline-flex\">\n <BEButton icon={IconType.ArrowRight2} isText={true} primary={true} size=\"small\" iconPosition=\"right\" onClick={openSignupModalOnClick}>\n {t(Translation.Step.Room.ReadMore)}\n </BEButton>\n </div>\n </div>\n </div>\n </div>\n <div className=\"col-md-4 u-flex flex-column align-items-start align-items-md-end justify-content-start\">\n <RoomDetailsPriceBlock isLocked={isLocked} averagePreDiscount={321} averagePrice={321} isMemberOnly={true} />\n <div className=\"u-marg-top u-w-100@m-\">\n {isLocked && (\n <BEButton filled={true} success={true} mobileWidth={true} onClick={openSignupModalOnClick}>\n Reveal Prices Now\n </BEButton>\n )}\n </div>\n </div>\n </>\n ) : (\n <div className=\"d-flex justify-content-center w-100\">\n <div className=\"d-flex align-items-center\">\n <span className=\"room-details--content-price-lock u-marg-right\" style={{ opacity: 1, position: 'unset', transform: 'none' }}>\n <Icon icon={IconType.Lock} color={Color.Success} />\n </span>\n <Text type={TextType.Body} color={Color.Success} inline={true}>\n <strong>{t(Translation.Step.Room.RoomInfo.MemberOnlyDealsActivated)}</strong>\n </Text>\n </div>\n </div>\n )}\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -9,3 +9,5 @@ export * from './views/FindReservationResultsViewEvent';
|
|
|
9
9
|
export * from './actions/AddToCartEvent';
|
|
10
10
|
export * from './actions/RemoveFromCartEvent';
|
|
11
11
|
export * from './actions/InitialHotelDetailsEvent';
|
|
12
|
+
export * from './actions/GuestSearchEvent';
|
|
13
|
+
export * from './actions/RoomListSearchEvent';
|
package/dist/src/events/index.js
CHANGED
|
@@ -21,4 +21,6 @@ __exportStar(require("./views/FindReservationResultsViewEvent"), exports);
|
|
|
21
21
|
__exportStar(require("./actions/AddToCartEvent"), exports);
|
|
22
22
|
__exportStar(require("./actions/RemoveFromCartEvent"), exports);
|
|
23
23
|
__exportStar(require("./actions/InitialHotelDetailsEvent"), exports);
|
|
24
|
+
__exportStar(require("./actions/GuestSearchEvent"), exports);
|
|
25
|
+
__exportStar(require("./actions/RoomListSearchEvent"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,iEAA+C;AAC/C,6DAA2C;AAC3C,6DAA2C;AAC3C,8DAA4C;AAC5C,mEAAiD;AACjD,0EAAwD;AAExD,2DAAyC;AACzC,gEAA8C;AAC9C,qEAAmD","sourcesContent":["export * from './views/StepCheckoutViewEvent';\nexport * from './views/StepDateViewEvent';\nexport * from './views/StepHotelInfoViewEvent';\nexport * from './views/StepHotelViewEvent';\nexport * from './views/StepAddonViewEvent';\nexport * from './views/StepThanksViewEvent';\nexport * from './views/FindReservationViewEvent';\nexport * from './views/FindReservationResultsViewEvent';\n\nexport * from './actions/AddToCartEvent';\nexport * from './actions/RemoveFromCartEvent';\nexport * from './actions/InitialHotelDetailsEvent';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA8C;AAC9C,4DAA0C;AAC1C,iEAA+C;AAC/C,6DAA2C;AAC3C,6DAA2C;AAC3C,8DAA4C;AAC5C,mEAAiD;AACjD,0EAAwD;AAExD,2DAAyC;AACzC,gEAA8C;AAC9C,qEAAmD;AACnD,6DAA2C;AAC3C,gEAA8C","sourcesContent":["export * from './views/StepCheckoutViewEvent';\nexport * from './views/StepDateViewEvent';\nexport * from './views/StepHotelInfoViewEvent';\nexport * from './views/StepHotelViewEvent';\nexport * from './views/StepAddonViewEvent';\nexport * from './views/StepThanksViewEvent';\nexport * from './views/FindReservationViewEvent';\nexport * from './views/FindReservationResultsViewEvent';\n\nexport * from './actions/AddToCartEvent';\nexport * from './actions/RemoveFromCartEvent';\nexport * from './actions/InitialHotelDetailsEvent';\nexport * from './actions/GuestSearchEvent';\nexport * from './actions/RoomListSearchEvent';\n"]}
|