@scopetickets/checkout 0.4.0 → 0.4.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/index.d.cts CHANGED
@@ -561,11 +561,17 @@ export declare type BookingTicket = BookedTicket & {
561
561
  readonly userType: string | null;
562
562
  };
563
563
 
564
- declare type BrandMarkId = 'SCOPE_TICKETS_WORDMARK';
564
+ declare type BrandMarkId = 'REVOLUT_PAY' | 'SCOPE_TICKETS_WORDMARK';
565
565
 
566
- /** A mark beside a button's label. */
566
+ /**
567
+ * A mark beside a button's label — or, `alone`, IN PLACE of it.
568
+ *
569
+ * `alone` IS A PLACE AND NOT A FLAG, so a mark cannot be both beside the label and instead
570
+ * of it. The label is still stated and still the button's accessible name: a lockup that
571
+ * says "Revolut Pay" is the words to a sighted buyer and nothing at all to a screen reader.
572
+ */
567
573
  declare type ButtonMark = {
568
- readonly side: 'leading' | 'trailing';
574
+ readonly side: 'leading' | 'trailing' | 'alone';
569
575
  readonly spacing?: 'joined' | 'separate';
570
576
  } & ({
571
577
  readonly glyph: GlyphId;
@@ -1674,7 +1680,8 @@ export declare type IslandAction = {
1674
1680
  /** The button is drawn, and it does not act. */
1675
1681
  readonly disabled?: boolean;
1676
1682
  readonly mark?: {
1677
- readonly side: 'leading' | 'trailing';
1683
+ /** `alone` is IN PLACE of the label, which stays as the button's accessible name. */
1684
+ readonly side: 'leading' | 'trailing' | 'alone';
1678
1685
  readonly node: ReactNode;
1679
1686
  /** Default `separate`. See above. */
1680
1687
  readonly spacing?: 'joined' | 'separate';
package/dist/index.d.ts CHANGED
@@ -561,11 +561,17 @@ export declare type BookingTicket = BookedTicket & {
561
561
  readonly userType: string | null;
562
562
  };
563
563
 
564
- declare type BrandMarkId = 'SCOPE_TICKETS_WORDMARK';
564
+ declare type BrandMarkId = 'REVOLUT_PAY' | 'SCOPE_TICKETS_WORDMARK';
565
565
 
566
- /** A mark beside a button's label. */
566
+ /**
567
+ * A mark beside a button's label — or, `alone`, IN PLACE of it.
568
+ *
569
+ * `alone` IS A PLACE AND NOT A FLAG, so a mark cannot be both beside the label and instead
570
+ * of it. The label is still stated and still the button's accessible name: a lockup that
571
+ * says "Revolut Pay" is the words to a sighted buyer and nothing at all to a screen reader.
572
+ */
567
573
  declare type ButtonMark = {
568
- readonly side: 'leading' | 'trailing';
574
+ readonly side: 'leading' | 'trailing' | 'alone';
569
575
  readonly spacing?: 'joined' | 'separate';
570
576
  } & ({
571
577
  readonly glyph: GlyphId;
@@ -1674,7 +1680,8 @@ export declare type IslandAction = {
1674
1680
  /** The button is drawn, and it does not act. */
1675
1681
  readonly disabled?: boolean;
1676
1682
  readonly mark?: {
1677
- readonly side: 'leading' | 'trailing';
1683
+ /** `alone` is IN PLACE of the label, which stays as the button's accessible name. */
1684
+ readonly side: 'leading' | 'trailing' | 'alone';
1678
1685
  readonly node: ReactNode;
1679
1686
  /** Default `separate`. See above. */
1680
1687
  readonly spacing?: 'joined' | 'separate';
package/dist/index.js CHANGED
@@ -135,18 +135,20 @@ function CardAction({ action, tapped = false }) {
135
135
  const press = useIslandPress("element");
136
136
  const held = tapped || press["data-pressed"] !== void 0;
137
137
  const mark = action.mark === void 0 ? null : /* @__PURE__ */ jsx2("span", { className: "scopetickets-island-button__mark", "aria-hidden": "true", children: action.mark.node });
138
+ const alone = action.mark?.side === "alone";
138
139
  return /* @__PURE__ */ jsxs(
139
140
  "button",
140
141
  {
141
142
  type: "button",
142
143
  className: `scopetickets-island-button scopetickets-island-button--${action.role} scopetickets-island-button--block${action.mark === void 0 ? "" : ` scopetickets-island-button--marked-${action.mark.spacing ?? "separate"}`}${action.disabled ? " scopetickets-island-button--disabled" : ""}`,
143
144
  "aria-disabled": action.disabled === true ? true : void 0,
145
+ "aria-label": alone && typeof action.label === "string" ? action.label : void 0,
144
146
  onClick: action.disabled === true ? void 0 : action.onPress,
145
147
  ...press,
146
148
  "data-pressed": held ? "" : void 0,
147
149
  children: [
148
150
  action.mark?.side === "leading" ? mark : null,
149
- action.label,
151
+ alone ? /* @__PURE__ */ jsx2("span", { className: "scopetickets-island-button__mark--alone", "aria-hidden": "true", children: action.mark?.node }) : action.label,
150
152
  action.mark?.side === "trailing" ? mark : null
151
153
  ]
152
154
  }
@@ -8881,6 +8883,108 @@ function payButtonRole(kind) {
8881
8883
  return kind === "WALLET" ? "primary" : "action";
8882
8884
  }
8883
8885
 
8886
+ // ../checkout-core/src/geometry/brand-marks.ts
8887
+ var MASTERCARD = {
8888
+ artwork: { width: 32, height: 20 },
8889
+ paths: [
8890
+ {
8891
+ d: "M16 1.99902C18.429 3.82343 20 6.72831 20 10C20 13.2715 18.4287 16.1756 16 18C13.5713 16.1756 12 13.2715 12 10C12 6.72831 13.571 3.82343 16 1.99902Z",
8892
+ opacity: 0.52
8893
+ },
8894
+ {
8895
+ d: "M22 0C27.5228 0 32 4.47715 32 10C32 15.5228 27.5228 20 22 20C19.7291 20 17.6358 19.2421 15.957 17.9668C15.9714 17.9777 15.9855 17.9891 16 18C18.4287 16.1756 20 13.2715 20 10C20 6.72831 18.429 3.82343 16 1.99902C17.6713 0.743699 19.7488 0 22 0Z",
8896
+ opacity: 0.28
8897
+ },
8898
+ {
8899
+ d: "M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C12.2709 20 14.3642 19.2421 16.043 17.9668C16.0286 17.9777 16.0145 17.9891 16 18C13.5713 16.1756 12 13.2715 12 10C12 6.72831 13.571 3.82343 16 1.99902C14.3287 0.743699 12.2512 0 10 0Z",
8900
+ opacity: 0.75
8901
+ }
8902
+ ]
8903
+ };
8904
+ var REVOLUT_PAY = {
8905
+ artwork: { width: 98.0693, height: 18 },
8906
+ paths: [
8907
+ {
8908
+ d: "M90.3467 4.15527L93.4082 12.0918L96.373 4.15527H98.0693L93.4873 15.7773C92.8631 17.3763 92.4916 18 91.0879 18H89.1768V16.5381H90.6016C91.5178 16.538 91.6729 16.3032 92.0439 15.3672L92.5312 14.1582L88.6504 4.15527H90.3467Z"
8909
+ },
8910
+ {
8911
+ d: "M16.2686 3.63281C17.2835 3.63281 18.182 3.83592 18.9385 4.2373C19.6949 4.63886 20.2966 5.21722 20.7266 5.95508C21.1549 6.69191 21.3791 7.57364 21.3926 8.57617C21.3926 8.72451 21.3892 8.87143 21.3828 9.01855C21.3755 9.16937 21.3584 9.31926 21.332 9.46484L21.3232 9.51172H13.7324V9.59473C13.7584 10.1261 13.8797 10.5943 14.0938 10.9834C14.3069 11.3712 14.6151 11.6758 15.0088 11.8887C15.4046 12.1028 15.8624 12.2109 16.3691 12.2109C16.9668 12.2109 17.4833 12.0669 17.9033 11.7822C18.2944 11.5176 18.5628 11.1433 18.7012 10.6699L18.7129 10.6289H21.2266L21.2119 10.6963C21.0837 11.3314 20.822 11.9155 20.4336 12.4316C20.0246 12.9746 19.4777 13.4133 18.8076 13.7354C18.1376 14.0566 17.3571 14.2197 16.4883 14.2197C15.3931 14.2197 14.431 13.9991 13.6289 13.5645C12.8253 13.1298 12.1967 12.508 11.7607 11.7168C11.3259 10.9274 11.1055 9.99836 11.1055 8.95605C11.1055 7.88677 11.322 6.94482 11.75 6.15625C12.1786 5.36575 12.7902 4.73994 13.5674 4.29785C14.3433 3.85609 15.2523 3.63285 16.2686 3.63281ZM16.2891 5.62109C15.8742 5.62109 15.483 5.70982 15.127 5.88477C14.7712 6.05912 14.4722 6.30873 14.2393 6.62598C14.0175 6.92831 13.8765 7.29723 13.8193 7.72266H18.8174C18.7188 7.06657 18.4494 6.54986 18.0176 6.18652C17.5714 5.81148 16.9901 5.62115 16.2891 5.62109Z",
8912
+ evenodd: true
8913
+ },
8914
+ {
8915
+ d: "M37.2314 3.63281C38.2993 3.63284 39.2454 3.85629 40.042 4.29785C40.8395 4.74012 41.4675 5.36529 41.9092 6.15527C42.3508 6.94496 42.5751 7.88041 42.5752 8.93555C42.5752 9.97786 42.3509 10.9075 41.9092 11.6973C41.4676 12.487 40.8394 13.1115 40.042 13.5537C39.2454 13.9953 38.2993 14.2197 37.2314 14.2197C36.1757 14.2197 35.2334 13.9962 34.4307 13.5547C33.6259 13.1122 32.9944 12.487 32.5527 11.6973C32.1111 10.9079 31.8877 9.97832 31.8877 8.93555C31.8878 7.88005 32.1111 6.94454 32.5527 6.15527C32.9944 5.36532 33.627 4.74034 34.4307 4.29785C35.2334 3.85636 36.1756 3.63281 37.2314 3.63281ZM37.2314 5.76074C36.6728 5.76074 36.1791 5.89893 35.7656 6.1709C35.3504 6.44305 35.0256 6.81802 34.7988 7.28516C34.571 7.75293 34.4551 8.30875 34.4551 8.93652C34.4551 9.55122 34.5711 10.1032 34.7988 10.5771C35.0257 11.0508 35.3503 11.4259 35.7656 11.6914C36.1791 11.9566 36.6728 12.0918 37.2314 12.0918C37.803 12.0918 38.2987 11.9564 38.7061 11.6914C39.1145 11.4259 39.4362 11.051 39.6641 10.5771C39.8909 10.1017 40.0078 9.5492 40.0078 8.93555C40.0078 8.30919 39.8909 7.75397 39.6641 7.28516C39.4362 6.81781 39.1144 6.44227 38.7061 6.16992C38.2988 5.89849 37.8029 5.76078 37.2314 5.76074Z",
8916
+ evenodd: true
8917
+ },
8918
+ {
8919
+ d: "M50.5361 9.21484C50.5361 10.1557 50.7172 10.8736 51.0742 11.3467C51.4262 11.8144 51.9715 12.0517 52.6943 12.0518C53.1985 12.0518 53.6353 11.9309 53.9893 11.6924C54.3442 11.4539 54.6228 11.0963 54.8174 10.6299C55.013 10.161 55.1113 9.59062 55.1113 8.93555V3.75195H57.6387V14.1006H55.4209L55.1943 12.8936C54.8958 13.2326 54.5144 13.5354 54.0586 13.7939C53.5595 14.0765 52.9057 14.2197 52.1152 14.2197C51.5668 14.2197 51.0417 14.1411 50.5527 13.9873C50.0616 13.8326 49.6203 13.5709 49.2432 13.207C48.8661 12.8429 48.5626 12.352 48.3418 11.749C48.121 11.1478 48.0088 10.3891 48.0088 9.49512V3.75195H50.5361V9.21484Z"
8920
+ },
8921
+ {
8922
+ d: "M83.7949 4.03809C86.329 4.03809 87.7929 5.30555 87.793 7.62598V14.1006H86.4082L86.2705 12.54C85.6474 13.4367 84.6536 14.2167 82.9375 14.2168C80.7533 14.2168 79.2715 13.125 79.2715 11.3115C79.2716 9.3227 80.655 8.21102 83.2686 8.21094H86.1934V7.52832C86.1932 6.2415 85.2766 5.46199 83.7168 5.46191C82.3131 5.46191 81.3773 6.1247 81.1816 7.13867H79.583C79.8169 5.18887 81.3961 4.03819 83.7949 4.03809ZM83.1123 9.55664C81.6887 9.5567 80.8888 10.0831 80.8887 11.2139C80.8887 12.1887 81.7278 12.8524 83.0537 12.8525C85.0423 12.8525 86.1934 11.7014 86.1934 10.0439V9.55664H83.1123Z",
8923
+ evenodd: true
8924
+ },
8925
+ {
8926
+ d: "M61.7578 3.75195H64.3711V5.94043H61.7578V10.8613C61.7578 11.2717 61.8463 11.6285 61.9814 11.7695C62.1297 11.9235 62.3835 12.0019 62.7393 12.002H64.3711V14.1895H62.1406C61.1586 14.1895 60.4193 13.9458 59.9453 13.4648C59.4714 12.984 59.2314 12.2554 59.2314 11.2998V0.899414H61.7578V3.75195Z"
8927
+ },
8928
+ {
8929
+ d: "M2.62598 14.1006H0V3.47949H2.62598V14.1006Z"
8930
+ },
8931
+ {
8932
+ d: "M6.77148 0C9.02731 0 10.8633 1.83331 10.8633 4.08691C10.8633 6.25385 9.13127 8.06181 6.97949 8.16992L11.252 14.1006H8.13184L3.86816 8.18652C3.84835 8.15897 3.83795 8.12598 3.83789 8.0918V6.0752C3.83815 5.98617 3.91102 5.91406 4 5.91406H6.5127C7.00573 5.914 7.46764 5.71948 7.81348 5.36719C8.1591 5.01496 8.34434 4.54924 8.33496 4.05566C8.31623 3.0701 7.47092 2.26776 6.4502 2.26758H0V0H6.77148Z"
8933
+ },
8934
+ {
8935
+ d: "M26.7383 11.3555L29.3516 3.75195H32.0068L28.2344 14.1006H25.2422L21.4697 3.75195H24.125L26.7383 11.3555Z"
8936
+ },
8937
+ {
8938
+ d: "M46.4316 14.1006H43.9053V0H46.4316V14.1006Z"
8939
+ },
8940
+ {
8941
+ d: "M74.3174 0.450195C77.047 0.450326 78.8408 2.08825 78.8408 4.64258C78.8408 7.19692 77.047 8.85436 74.3174 8.85449H70.7686V14.1006H69.0713V0.450195H74.3174ZM70.7686 7.29492H74.1611C75.9559 7.29478 77.1055 6.26109 77.1055 4.64258C77.1055 3.02417 75.9747 2.00977 74.1807 2.00977H70.7686V7.29492Z",
8942
+ evenodd: true
8943
+ }
8944
+ ]
8945
+ };
8946
+ var SCOPE_TICKETS_WORDMARK = {
8947
+ artwork: { width: 588.88842, height: 100 },
8948
+ paths: [
8949
+ {
8950
+ d: "M147.91988,22.61854L175.16822,22.61854L175.16822,98.80931L193.42213,98.80931L193.42213,22.61854L220.67047,22.61854L220.67047,6.21599L147.91988,6.21599L147.91988,22.61854Z"
8951
+ },
8952
+ {
8953
+ d: "M241.69328,0c-7.27492,0-10.97898,4.09962-10.97898,10.58206,0,6.74615,3.70406,10.84561,10.97898,10.84561,7.01121,0,10.97898-4.09946,10.97898-10.84561,0-6.48244-3.96777-10.58206-10.97898-10.58206Z"
8954
+ },
8955
+ { d: "M232.69887,30.02669H250.42383V98.80926000000001H232.69887Z" },
8956
+ {
8957
+ d: "M294.7326,84.39129c-10.05178,0-15.07843-7.01121-15.07843-19.97339,0-12.83168,5.02665-19.97339,15.07843-19.97339,7.53997,0,12.30291,4.76159,12.96353,11.77145h17.85698c-.92568-15.34366-10.97898-27.38017-30.82051-27.38017-21.55953,0-33.20047,14.68169-33.20047,35.58211,0,21.16413,12.03651,35.58211,33.59738,35.58211,19.44463,0,29.49792-11.64094,30.5568-27.11645h-17.85833c-.79248,6.87801-5.42221,11.50774-13.09539,11.50774Z"
8958
+ },
8959
+ {
8960
+ d: "M399.35578,31.34911L399.35578,30.02652L378.72176,30.02652L354.77925,56.74607L354.77925,.92568L337.97981,.92568L337.97981,98.80927L354.77925,98.80927L354.77925,67.72504L379.38104,98.80927L400.67971,98.80927L400.67971,97.48668L371.57736,61.90457L399.35578,31.34911Z"
8961
+ },
8962
+ {
8963
+ d: "M434.13868,28.83579c-22.08981,0-32.93693,16.13748-32.93693,35.71396,0,19.84154,11.90465,35.45025,33.20064,35.45025,17.72513,0,28.96781-10.18515,30.82186-22.61992h-17.32956c-1.32124,4.23283-5.55407,7.93688-13.4923,7.93688-10.18515,0-14.9454-6.61429-15.07995-16.00562h46.82748v-6.87801c0-18.78266-11.50909-33.59755-32.01125-33.59755ZM419.45699,57.53854c.39557-7.80368,4.76025-13.88787,14.68169-13.88787,9.25947,0,13.62416,6.08418,13.88787,13.88787h-28.56955Z"
8964
+ },
8965
+ {
8966
+ d: "M511.6454,84.52314c-6.08418,0-8.86391-2.77703-8.86391-9.25947v-30.15855h16.53574v-15.0786h-16.53574V11.90465h-1.32124l-15.74191,3.70271v14.41916h-11.90465v15.0786h11.24269v33.99446c0,12.16971,6.35058,20.90042,21.56238,20.90042,5.82047,0,10.84712-1.05888,12.96219-1.7195v-14.81489h-1.32124c-1.9859.66062-4.10097,1.05753-6.61429,1.05753Z"
8967
+ },
8968
+ {
8969
+ d: "M568.78182,57.67174l-12.56662-2.24827c-4.36468-.92702-7.00986-2.77838-7.00986-6.21738,0-3.70406,3.83457-6.21738,9.78959-6.21738,7.27357,0,10.84443,3.96911,10.84443,8.73071h17.46141c0-13.09539-10.84712-22.88363-28.04213-22.88363-17.46141,0-27.38017,8.99442-27.38017,20.2371,0,12.69848,8.99307,18.784,20.1039,20.90042l11.11083,2.11641c5.42491,1.05753,7.93823,3.17395,7.93823,6.61295,0,3.5722-3.57086,6.35058-11.37723,6.35058-8.06739,0-12.16836-4.10097-12.16836-9.39267h-17.72513c.39557,14.41798,9.92144,24.33942,29.89349,24.33942,16.66759,0,29.23421-7.67183,29.23421-21.42918,0-13.62416-8.99576-18.6508-20.10659-20.89907Z"
8970
+ },
8971
+ {
8972
+ d: "M123.04929,16.46569l-3.10576-3.10576c-9.52524-9.52524-24.96881-9.52524-34.49413,0l-3.10569,3.10576c-9.52532,9.52532-24.96889,9.52532-34.49413,0l-3.10576-3.10576c-9.52524-9.52524-24.96881-9.52524-34.49413,0l-3.10569,3.10576c-9.52532,9.52532-9.52532,24.96889,0,34.49413l40.70558,40.7055c9.52524,9.52532,24.96881,9.52532,34.49413,0l40.7055-40.7055c9.52532-9.52524,9.5254-24.96881.00008-34.49413ZM111.39323,39.30415l-40.70605,40.7048c-2.01462,2.01587-4.36772,2.31675-5.59003,2.31675-1.22356,0-3.57667-.30088-5.59128-2.31675L18.80106,39.30415c-2.01587-2.01587-2.318-4.36835-2.318-5.59191,0-1.22294.30088-3.57541,2.31675-5.59066l3.10529-3.10467c2.01587-2.01587,4.36897-2.31675,5.59128-2.31675,1.22356,0,3.57667.30088,5.59128,2.31549l3.10404,3.10467c7.72249,7.72186,17.98613,11.97362,28.90543,11.97362,10.91805,0,21.18169-4.25176,28.90293-11.97237l3.10655-3.10717c2.01336-2.01336,4.36647-2.31424,5.59003-2.31424,1.22231,0,3.57541.30088,5.59003,2.31549l3.1078,3.10717c3.08273,3.0821,3.08273,8.09796-.00125,11.18131Z"
8973
+ }
8974
+ ]
8975
+ };
8976
+ var BRAND_MARKS = {
8977
+ Mastercard: MASTERCARD,
8978
+ RevolutPay: REVOLUT_PAY,
8979
+ ScopeTicketsWordmark: SCOPE_TICKETS_WORDMARK
8980
+ };
8981
+ var CREDIT_MARK_HEIGHT = 12;
8982
+ var PAY_MARK_HEIGHT = 18;
8983
+ function brandMarkBox(mark, height) {
8984
+ const drawn = height ?? mark.artwork.height;
8985
+ return { height: drawn, width: drawn * mark.artwork.width / mark.artwork.height };
8986
+ }
8987
+
8884
8988
  // ../checkout-core/src/view/cards.ts
8885
8989
  var SIGN_IN_WITH_WORDMARK = {
8886
8990
  role: "primary",
@@ -9094,10 +9198,10 @@ var STEP_CARD_ACTIONS = {
9094
9198
  * host's `canMakePayment()` word — see `wallet-report`.
9095
9199
  *
9096
9200
  * THEIR WORDS STAND IN FOR THEIR MARKS. Both are somebody else's trademark, and this
9097
- * package is published: see the manifest note in `brand-marks`, which takes two marks
9098
- * as its stated exception and says a third is the signal to revisit rather than extend.
9099
- * The marks arrive with the integration, from the provider's own SDK, which is what
9100
- * their brand rules ask for anyway.
9201
+ * package is published: see the manifest note in `brand-marks`. On the web the marks
9202
+ * arrive with the integration, from the provider's own SDK, which is what their brand
9203
+ * rules ask for anyway. The native Review has no provider button to borrow, and is the
9204
+ * one place Revolut Pay's mark is ours to draw — see `SHEET_PRESS`.
9101
9205
  */
9102
9206
  /*
9103
9207
  * ONE BUTTON, AND IT IS THE CARD FIELD'S.
@@ -9193,10 +9297,11 @@ var STEP_CARD_ACTIONS = {
9193
9297
  };
9194
9298
  var SHEET_PRESS = {
9195
9299
  revolut_pay: {
9196
- role: payButtonRole("CARD"),
9300
+ role: "primary",
9197
9301
  pays: true,
9198
9302
  picks: "revolut_pay",
9199
- label: "Revolut Pay"
9303
+ label: "Revolut Pay",
9304
+ mark: { side: "alone", brand: "REVOLUT_PAY", height: PAY_MARK_HEIGHT }
9200
9305
  },
9201
9306
  card: { role: payButtonRole("CARD"), pays: true, picks: "card", label: "Pay with Card" }
9202
9307
  };
@@ -9386,64 +9491,6 @@ import {
9386
9491
  TextCursorWithRedactedTextIcon
9387
9492
  } from "@scopetickets/icons";
9388
9493
 
9389
- // ../checkout-core/src/geometry/brand-marks.ts
9390
- var MASTERCARD = {
9391
- artwork: { width: 32, height: 20 },
9392
- paths: [
9393
- {
9394
- d: "M16 1.99902C18.429 3.82343 20 6.72831 20 10C20 13.2715 18.4287 16.1756 16 18C13.5713 16.1756 12 13.2715 12 10C12 6.72831 13.571 3.82343 16 1.99902Z",
9395
- opacity: 0.52
9396
- },
9397
- {
9398
- d: "M22 0C27.5228 0 32 4.47715 32 10C32 15.5228 27.5228 20 22 20C19.7291 20 17.6358 19.2421 15.957 17.9668C15.9714 17.9777 15.9855 17.9891 16 18C18.4287 16.1756 20 13.2715 20 10C20 6.72831 18.429 3.82343 16 1.99902C17.6713 0.743699 19.7488 0 22 0Z",
9399
- opacity: 0.28
9400
- },
9401
- {
9402
- d: "M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C12.2709 20 14.3642 19.2421 16.043 17.9668C16.0286 17.9777 16.0145 17.9891 16 18C13.5713 16.1756 12 13.2715 12 10C12 6.72831 13.571 3.82343 16 1.99902C14.3287 0.743699 12.2512 0 10 0Z",
9403
- opacity: 0.75
9404
- }
9405
- ]
9406
- };
9407
- var SCOPE_TICKETS_WORDMARK = {
9408
- artwork: { width: 588.88842, height: 100 },
9409
- paths: [
9410
- {
9411
- d: "M147.91988,22.61854L175.16822,22.61854L175.16822,98.80931L193.42213,98.80931L193.42213,22.61854L220.67047,22.61854L220.67047,6.21599L147.91988,6.21599L147.91988,22.61854Z"
9412
- },
9413
- {
9414
- d: "M241.69328,0c-7.27492,0-10.97898,4.09962-10.97898,10.58206,0,6.74615,3.70406,10.84561,10.97898,10.84561,7.01121,0,10.97898-4.09946,10.97898-10.84561,0-6.48244-3.96777-10.58206-10.97898-10.58206Z"
9415
- },
9416
- { d: "M232.69887,30.02669H250.42383V98.80926000000001H232.69887Z" },
9417
- {
9418
- d: "M294.7326,84.39129c-10.05178,0-15.07843-7.01121-15.07843-19.97339,0-12.83168,5.02665-19.97339,15.07843-19.97339,7.53997,0,12.30291,4.76159,12.96353,11.77145h17.85698c-.92568-15.34366-10.97898-27.38017-30.82051-27.38017-21.55953,0-33.20047,14.68169-33.20047,35.58211,0,21.16413,12.03651,35.58211,33.59738,35.58211,19.44463,0,29.49792-11.64094,30.5568-27.11645h-17.85833c-.79248,6.87801-5.42221,11.50774-13.09539,11.50774Z"
9419
- },
9420
- {
9421
- d: "M399.35578,31.34911L399.35578,30.02652L378.72176,30.02652L354.77925,56.74607L354.77925,.92568L337.97981,.92568L337.97981,98.80927L354.77925,98.80927L354.77925,67.72504L379.38104,98.80927L400.67971,98.80927L400.67971,97.48668L371.57736,61.90457L399.35578,31.34911Z"
9422
- },
9423
- {
9424
- d: "M434.13868,28.83579c-22.08981,0-32.93693,16.13748-32.93693,35.71396,0,19.84154,11.90465,35.45025,33.20064,35.45025,17.72513,0,28.96781-10.18515,30.82186-22.61992h-17.32956c-1.32124,4.23283-5.55407,7.93688-13.4923,7.93688-10.18515,0-14.9454-6.61429-15.07995-16.00562h46.82748v-6.87801c0-18.78266-11.50909-33.59755-32.01125-33.59755ZM419.45699,57.53854c.39557-7.80368,4.76025-13.88787,14.68169-13.88787,9.25947,0,13.62416,6.08418,13.88787,13.88787h-28.56955Z"
9425
- },
9426
- {
9427
- d: "M511.6454,84.52314c-6.08418,0-8.86391-2.77703-8.86391-9.25947v-30.15855h16.53574v-15.0786h-16.53574V11.90465h-1.32124l-15.74191,3.70271v14.41916h-11.90465v15.0786h11.24269v33.99446c0,12.16971,6.35058,20.90042,21.56238,20.90042,5.82047,0,10.84712-1.05888,12.96219-1.7195v-14.81489h-1.32124c-1.9859.66062-4.10097,1.05753-6.61429,1.05753Z"
9428
- },
9429
- {
9430
- d: "M568.78182,57.67174l-12.56662-2.24827c-4.36468-.92702-7.00986-2.77838-7.00986-6.21738,0-3.70406,3.83457-6.21738,9.78959-6.21738,7.27357,0,10.84443,3.96911,10.84443,8.73071h17.46141c0-13.09539-10.84712-22.88363-28.04213-22.88363-17.46141,0-27.38017,8.99442-27.38017,20.2371,0,12.69848,8.99307,18.784,20.1039,20.90042l11.11083,2.11641c5.42491,1.05753,7.93823,3.17395,7.93823,6.61295,0,3.5722-3.57086,6.35058-11.37723,6.35058-8.06739,0-12.16836-4.10097-12.16836-9.39267h-17.72513c.39557,14.41798,9.92144,24.33942,29.89349,24.33942,16.66759,0,29.23421-7.67183,29.23421-21.42918,0-13.62416-8.99576-18.6508-20.10659-20.89907Z"
9431
- },
9432
- {
9433
- d: "M123.04929,16.46569l-3.10576-3.10576c-9.52524-9.52524-24.96881-9.52524-34.49413,0l-3.10569,3.10576c-9.52532,9.52532-24.96889,9.52532-34.49413,0l-3.10576-3.10576c-9.52524-9.52524-24.96881-9.52524-34.49413,0l-3.10569,3.10576c-9.52532,9.52532-9.52532,24.96889,0,34.49413l40.70558,40.7055c9.52524,9.52532,24.96881,9.52532,34.49413,0l40.7055-40.7055c9.52532-9.52524,9.5254-24.96881.00008-34.49413ZM111.39323,39.30415l-40.70605,40.7048c-2.01462,2.01587-4.36772,2.31675-5.59003,2.31675-1.22356,0-3.57667-.30088-5.59128-2.31675L18.80106,39.30415c-2.01587-2.01587-2.318-4.36835-2.318-5.59191,0-1.22294.30088-3.57541,2.31675-5.59066l3.10529-3.10467c2.01587-2.01587,4.36897-2.31675,5.59128-2.31675,1.22356,0,3.57667.30088,5.59128,2.31549l3.10404,3.10467c7.72249,7.72186,17.98613,11.97362,28.90543,11.97362,10.91805,0,21.18169-4.25176,28.90293-11.97237l3.10655-3.10717c2.01336-2.01336,4.36647-2.31424,5.59003-2.31424,1.22231,0,3.57541.30088,5.59003,2.31549l3.1078,3.10717c3.08273,3.0821,3.08273,8.09796-.00125,11.18131Z"
9434
- }
9435
- ]
9436
- };
9437
- var BRAND_MARKS = {
9438
- Mastercard: MASTERCARD,
9439
- ScopeTicketsWordmark: SCOPE_TICKETS_WORDMARK
9440
- };
9441
- var CREDIT_MARK_HEIGHT = 12;
9442
- function brandMarkBox(mark, height) {
9443
- const drawn = height ?? mark.artwork.height;
9444
- return { height: drawn, width: drawn * mark.artwork.width / mark.artwork.height };
9445
- }
9446
-
9447
9494
  // src/island/brand-marks.tsx
9448
9495
  import { jsx as jsx24 } from "react/jsx-runtime";
9449
9496
  function BrandMarkSvg({
@@ -9486,6 +9533,9 @@ function BrandMarkSvg({
9486
9533
  }
9487
9534
  );
9488
9535
  }
9536
+ function RevolutPayMark(props) {
9537
+ return /* @__PURE__ */ jsx24(BrandMarkSvg, { ...props, mark: "RevolutPay", art: BRAND_MARKS.RevolutPay });
9538
+ }
9489
9539
  function ScopeTicketsWordmarkMark(props) {
9490
9540
  return /* @__PURE__ */ jsx24(BrandMarkSvg, { ...props, mark: "ScopeTicketsWordmark", art: BRAND_MARKS.ScopeTicketsWordmark });
9491
9541
  }
@@ -9518,6 +9568,8 @@ var GLYPHS = {
9518
9568
  };
9519
9569
  function brandMark(mark, height, title) {
9520
9570
  switch (mark) {
9571
+ case "REVOLUT_PAY":
9572
+ return title === void 0 ? /* @__PURE__ */ jsx25(RevolutPayMark, { height }) : /* @__PURE__ */ jsx25(RevolutPayMark, { height, title });
9521
9573
  case "SCOPE_TICKETS_WORDMARK":
9522
9574
  return title === void 0 ? /* @__PURE__ */ jsx25(ScopeTicketsWordmarkMark, { height }) : /* @__PURE__ */ jsx25(ScopeTicketsWordmarkMark, { height, title });
9523
9575
  default: {