@flamingo-stack/openframe-frontend-core 0.0.633 → 0.0.634-snapshot.20260915022633
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/assets/index.cjs +4 -0
- package/dist/assets/index.cjs.map +1 -1
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +4 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/sad-flamingo.d.ts +9 -0
- package/dist/assets/sad-flamingo.d.ts.map +1 -0
- package/dist/{chunk-F74RHLLI.cjs → chunk-2QOWJXPI.cjs} +10 -10
- package/dist/{chunk-F74RHLLI.cjs.map → chunk-2QOWJXPI.cjs.map} +1 -1
- package/dist/{chunk-ZW4EVXFK.js → chunk-5ZA6BJOX.js} +2 -2
- package/dist/{chunk-RN2EPTJF.js → chunk-623O7CM7.js} +5 -5
- package/dist/{chunk-RVHLFDWH.js → chunk-BARCKJOS.js} +2 -2
- package/dist/{chunk-KLLYTCID.js → chunk-DABWWSKR.js} +2 -2
- package/dist/{chunk-P5MIIQHG.js → chunk-DOQORN2B.js} +5 -1
- package/dist/chunk-DOQORN2B.js.map +1 -0
- package/dist/{chunk-UYTB2V2G.js → chunk-DUYVHMWB.js} +2 -2
- package/dist/{chunk-PXKS5Y6K.cjs → chunk-EHP3JX36.cjs} +17 -17
- package/dist/{chunk-PXKS5Y6K.cjs.map → chunk-EHP3JX36.cjs.map} +1 -1
- package/dist/{chunk-4RUOZMHB.js → chunk-F7LPAEZS.js} +4 -4
- package/dist/{chunk-NH575UGV.cjs → chunk-FCZQNFMZ.cjs} +4 -4
- package/dist/{chunk-NH575UGV.cjs.map → chunk-FCZQNFMZ.cjs.map} +1 -1
- package/dist/{chunk-JJ6BSPT2.cjs → chunk-FX2GBLGC.cjs} +36 -36
- package/dist/{chunk-JJ6BSPT2.cjs.map → chunk-FX2GBLGC.cjs.map} +1 -1
- package/dist/{chunk-AJ24EK2S.cjs → chunk-ITFOILRB.cjs} +3 -3
- package/dist/{chunk-AJ24EK2S.cjs.map → chunk-ITFOILRB.cjs.map} +1 -1
- package/dist/{chunk-YZL6CLQG.js → chunk-J62TN6A6.js} +2 -2
- package/dist/{chunk-YVROSVNU.cjs → chunk-KBDZ6EUM.cjs} +18 -18
- package/dist/{chunk-YVROSVNU.cjs.map → chunk-KBDZ6EUM.cjs.map} +1 -1
- package/dist/{chunk-CQGMYZXY.cjs → chunk-LBQNEED6.cjs} +6 -2
- package/dist/chunk-LBQNEED6.cjs.map +1 -0
- package/dist/{chunk-T2CMORAR.cjs → chunk-MDV32W2F.cjs} +4 -4
- package/dist/{chunk-T2CMORAR.cjs.map → chunk-MDV32W2F.cjs.map} +1 -1
- package/dist/{chunk-BVG5CL57.cjs → chunk-MOUO2EA3.cjs} +33 -33
- package/dist/{chunk-BVG5CL57.cjs.map → chunk-MOUO2EA3.cjs.map} +1 -1
- package/dist/{chunk-QT6ZS73L.js → chunk-NBERIBPU.js} +3 -3
- package/dist/{chunk-RLHFS4GU.cjs → chunk-PYM5HXV6.cjs} +17 -17
- package/dist/{chunk-RLHFS4GU.cjs.map → chunk-PYM5HXV6.cjs.map} +1 -1
- package/dist/{chunk-JYU5BI5K.cjs → chunk-QZ2FIWSL.cjs} +51 -51
- package/dist/{chunk-JYU5BI5K.cjs.map → chunk-QZ2FIWSL.cjs.map} +1 -1
- package/dist/{chunk-KKQ4O3WM.cjs → chunk-SEQK3NB3.cjs} +13 -13
- package/dist/{chunk-KKQ4O3WM.cjs.map → chunk-SEQK3NB3.cjs.map} +1 -1
- package/dist/{chunk-KJT3PIKG.cjs → chunk-SP5CMRZC.cjs} +3 -3
- package/dist/{chunk-KJT3PIKG.cjs.map → chunk-SP5CMRZC.cjs.map} +1 -1
- package/dist/{chunk-N5OKHZGT.js → chunk-T2VDE2NT.js} +2 -2
- package/dist/{chunk-BK3OXJRU.js → chunk-U4EOQTPM.js} +2 -2
- package/dist/{chunk-237XKNIC.js → chunk-WW5MBTEC.js} +4 -4
- package/dist/{chunk-V7TVOJBR.js → chunk-YE3KMNVL.js} +2 -2
- package/dist/{chunk-4P3BQN6Y.cjs → chunk-YINRHJOJ.cjs} +3 -3
- package/dist/{chunk-4P3BQN6Y.cjs.map → chunk-YINRHJOJ.cjs.map} +1 -1
- package/dist/{chunk-DJGW5A5M.cjs → chunk-YVLJLRCY.cjs} +3 -3
- package/dist/{chunk-DJGW5A5M.cjs.map → chunk-YVLJLRCY.cjs.map} +1 -1
- package/dist/{chunk-GERXFICX.js → chunk-ZATLZLR2.js} +2 -2
- package/dist/{chunk-ZQ7U4YID.js → chunk-ZPWZZL26.js} +5 -5
- package/dist/components/case-studies/entity-quotes-panel.d.ts +13 -0
- package/dist/components/case-studies/entity-quotes-panel.d.ts.map +1 -0
- package/dist/components/case-studies/index.cjs +80 -11
- package/dist/components/case-studies/index.cjs.map +1 -1
- package/dist/components/case-studies/index.d.ts +2 -0
- package/dist/components/case-studies/index.d.ts.map +1 -1
- package/dist/components/case-studies/index.js +74 -5
- package/dist/components/case-studies/index.js.map +1 -1
- package/dist/components/case-studies/quote-cards-strip.d.ts +23 -0
- package/dist/components/case-studies/quote-cards-strip.d.ts.map +1 -0
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/booking-form.d.ts +8 -1
- package/dist/components/meeting-scheduler/booking-form.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +39 -28
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts +17 -25
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +19 -8
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/types/index.cjs +4 -0
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/video-processing.d.ts +2 -0
- package/dist/types/video-processing.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/index.ts +1 -0
- package/src/assets/sad-flamingo.ts +9 -0
- package/src/components/case-studies/__tests__/entity-quotes-panel.test.tsx +25 -0
- package/src/components/case-studies/__tests__/quote-cards-strip.test.tsx +24 -0
- package/src/components/case-studies/entity-quotes-panel.tsx +40 -0
- package/src/components/case-studies/index.ts +2 -0
- package/src/components/case-studies/quote-cards-strip.tsx +54 -0
- package/src/components/meeting-scheduler/booking-form.tsx +17 -4
- package/src/components/meeting-scheduler/index.tsx +34 -29
- package/src/types/video-processing.ts +3 -0
- package/dist/chunk-CQGMYZXY.cjs.map +0 -1
- package/dist/chunk-P5MIIQHG.js.map +0 -1
- /package/dist/{chunk-ZW4EVXFK.js.map → chunk-5ZA6BJOX.js.map} +0 -0
- /package/dist/{chunk-RN2EPTJF.js.map → chunk-623O7CM7.js.map} +0 -0
- /package/dist/{chunk-RVHLFDWH.js.map → chunk-BARCKJOS.js.map} +0 -0
- /package/dist/{chunk-KLLYTCID.js.map → chunk-DABWWSKR.js.map} +0 -0
- /package/dist/{chunk-UYTB2V2G.js.map → chunk-DUYVHMWB.js.map} +0 -0
- /package/dist/{chunk-4RUOZMHB.js.map → chunk-F7LPAEZS.js.map} +0 -0
- /package/dist/{chunk-YZL6CLQG.js.map → chunk-J62TN6A6.js.map} +0 -0
- /package/dist/{chunk-QT6ZS73L.js.map → chunk-NBERIBPU.js.map} +0 -0
- /package/dist/{chunk-N5OKHZGT.js.map → chunk-T2VDE2NT.js.map} +0 -0
- /package/dist/{chunk-BK3OXJRU.js.map → chunk-U4EOQTPM.js.map} +0 -0
- /package/dist/{chunk-237XKNIC.js.map → chunk-WW5MBTEC.js.map} +0 -0
- /package/dist/{chunk-V7TVOJBR.js.map → chunk-YE3KMNVL.js.map} +0 -0
- /package/dist/{chunk-GERXFICX.js.map → chunk-ZATLZLR2.js.map} +0 -0
- /package/dist/{chunk-ZQ7U4YID.js.map → chunk-ZPWZZL26.js.map} +0 -0
|
@@ -65,6 +65,12 @@ export interface HubSpotMeetingSchedulerProps {
|
|
|
65
65
|
* can pass it across the RSC boundary where a component cannot.
|
|
66
66
|
*/
|
|
67
67
|
detailsFormProps?: Pick<BookingFormProps, 'fieldRows' | 'consent'>;
|
|
68
|
+
/**
|
|
69
|
+
* `flow="details-first"`: how many full-width field rows the cold-start form
|
|
70
|
+
* skeleton draws (see `BookingFormSkeleton`'s `rowCount`). Omit for the
|
|
71
|
+
* `fieldRows` / built-in footprint.
|
|
72
|
+
*/
|
|
73
|
+
skeletonRowCount?: number;
|
|
68
74
|
}
|
|
69
75
|
type Step = 'slot' | 'details' | 'confirmed';
|
|
70
76
|
/**
|
|
@@ -113,31 +119,17 @@ type Step = 'slot' | 'details' | 'confirmed';
|
|
|
113
119
|
*/
|
|
114
120
|
export declare const MEETING_SCHEDULER_H = "md:h-[34.375rem] lg:h-[23.75rem]";
|
|
115
121
|
/**
|
|
116
|
-
* The
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* height from it, and a floor was already tried here — it pinned the short
|
|
122
|
-
* stages and let the tall one push the wrapper, which is the screen-shake the
|
|
123
|
-
* fixed height exists to remove.
|
|
124
|
-
*
|
|
125
|
-
* ONE number from `md` up, not two: 638px, the card both mocks draw
|
|
126
|
-
* (`4904:117130` form-only, `4904:118213` three columns). The form stage has no
|
|
127
|
-
* sidebar to stack into a header strip, so nothing about it changes between
|
|
128
|
-
* tablet and desktop, and the calendar stage fits the same box at both — the
|
|
129
|
-
* times column scrolls inside it as it always has.
|
|
122
|
+
* The box for `flow="details-first"`'s CALENDAR and confirmation stages (and its
|
|
123
|
+
* degraded stand-in), 638px from `md` (`4904:118213`), 812px on phones (the
|
|
124
|
+
* calendar stage's natural height at 375px: header strip + six fixed weeks +
|
|
125
|
+
* the 9.75rem chip cap). Fixed, not a floor, for the slot-first reason: the
|
|
126
|
+
* times column scrolls inside a stated height.
|
|
130
127
|
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* the
|
|
136
|
-
* landing page that grows and shrinks by tens of pixels on every step reads as
|
|
137
|
-
* broken. 812px is the calendar stage's natural height at 375px (header strip
|
|
138
|
-
* + six fixed weeks + the 9.75rem chip cap), so that stage fits exactly and the
|
|
139
|
-
* form stage — shorter on the shipped links — sits in it; a link declaring more
|
|
140
|
-
* questions scrolls the form inside the card, as it already does from `md`.
|
|
128
|
+
* The FORM stage is NOT boxed. It renders at its natural height, so every
|
|
129
|
+
* question the HubSpot link declares is on the page instead of scrolling inside
|
|
130
|
+
* a card cut off mid-consent. What keeps that from jumping is the form's own
|
|
131
|
+
* footprint discipline: the SSR seed renders the real form on first paint, and
|
|
132
|
+
* the cold-start `BookingFormSkeleton` draws the same rows through the same grid.
|
|
141
133
|
*
|
|
142
134
|
* Hosts read it through `SCHEDULER_FLOW_PRESETS[flow].height`, never directly.
|
|
143
135
|
*/
|
|
@@ -174,7 +166,7 @@ export declare function SchedulerDegradedCard({ flow, className, message, action
|
|
|
174
166
|
action?: ReactNode;
|
|
175
167
|
children?: ReactNode;
|
|
176
168
|
}): import("react").JSX.Element;
|
|
177
|
-
export declare function HubSpotMeetingScheduler({ meetingId, apiBaseUrl, initialAvailability, title, description, hosts, displayTimezone, fallbackUrl, onBack, onBooked, className, flow, detailsForm: DetailsForm, detailsFormProps, }: HubSpotMeetingSchedulerProps): import("react").JSX.Element;
|
|
169
|
+
export declare function HubSpotMeetingScheduler({ meetingId, apiBaseUrl, initialAvailability, title, description, hosts, displayTimezone, fallbackUrl, onBack, onBooked, className, flow, detailsForm: DetailsForm, detailsFormProps, skeletonRowCount, }: HubSpotMeetingSchedulerProps): import("react").JSX.Element;
|
|
178
170
|
export { BookingForm, BookingFormSkeleton, type BookingFormProps, type BookingFieldRow, type BookingFieldSlot, type BookingFormConsent, } from './booking-form';
|
|
179
171
|
export { MeetingSchedulerDirectory, MeetingSchedulerDirectoryRowSkeleton, type MeetingSchedulerDirectoryProps, } from './directory';
|
|
180
172
|
export type { MeetingAvailability, BookingConfirmation, MeetingBookingErrorCode, MeetingHost };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/meeting-scheduler/index.tsx"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtD,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EACjB,MAAM,sCAAsC,CAAC;AAI9C,OAAO,EAA0D,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAwB/G,MAAM,WAAW,4BAA4B;IAC3C,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,mB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AM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAStG,CAAC;AAqDF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,IAA6B,EAC7B,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE;IACD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gHAAgH;IAChH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,+BAQA;AAkBD,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,UAAe,EACf,mBAAmB,EACnB,KAAK,EACL,WAAW,EACX,KAAK,EACL,eAAe,EACf,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,EACT,IAA6B,EAC7B,WAAW,EAAE,WAAyB,EACtC,gBAAgB,EAChB,gBAAgB,GACjB,EAAE,4BAA4B,+BAwiB9B;AAKD,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,yBAAyB,EACzB,oCAAoC,EACpC,KAAK,8BAA8B,GACpC,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,WAAW,EAAE,CAAC;AAC/F,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
SelectTrigger,
|
|
25
25
|
SelectValue,
|
|
26
26
|
Textarea
|
|
27
|
-
} from "../../chunk-
|
|
27
|
+
} from "../../chunk-DOQORN2B.js";
|
|
28
28
|
import "../../chunk-L2SLFCXP.js";
|
|
29
29
|
import "../../chunk-BJXDHKUX.js";
|
|
30
30
|
import {
|
|
@@ -667,12 +667,14 @@ function BookingForm({
|
|
|
667
667
|
}
|
|
668
668
|
function BookingFormSkeleton({
|
|
669
669
|
fieldRows,
|
|
670
|
+
rowCount,
|
|
670
671
|
consent,
|
|
671
672
|
footerNote
|
|
672
673
|
}) {
|
|
674
|
+
const rows = rowCount !== void 0 ? Array.from({ length: rowCount }, (_, index) => [{ name: `skeleton-row-${index}` }]) : skeletonRows(fieldRows ?? DEFAULT_FIELD_ROWS);
|
|
673
675
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex-1", FORM_STACK), children: [
|
|
674
|
-
|
|
675
|
-
!fieldRows && /* @__PURE__ */ jsx(Skeleton, { className: "h-[7.75rem] w-full" }),
|
|
676
|
+
rows.map((row) => /* @__PURE__ */ jsx("div", { className: ROW_GRID, children: row.map((slot, slotIndex) => /* @__PURE__ */ jsx(Skeleton, { className: cn(FIELD_SKELETON_CLASS, slotColumnClass(row, slot, slotIndex)) }, slot.name)) }, row.map((s) => s.name).join("|"))),
|
|
677
|
+
rowCount === void 0 && !fieldRows && /* @__PURE__ */ jsx(Skeleton, { className: "h-[7.75rem] w-full" }),
|
|
676
678
|
consent && /* @__PURE__ */ jsx(Skeleton, { className: "h-[4.25rem] w-full" }),
|
|
677
679
|
footerNote ? /* @__PURE__ */ jsxs("div", { className: FOOTER_ROW_CLASS, children: [
|
|
678
680
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 min-w-40 flex-1" }),
|
|
@@ -1332,7 +1334,8 @@ function HubSpotMeetingScheduler({
|
|
|
1332
1334
|
className,
|
|
1333
1335
|
flow = DEFAULT_SCHEDULER_FLOW,
|
|
1334
1336
|
detailsForm: DetailsForm = BookingForm,
|
|
1335
|
-
detailsFormProps
|
|
1337
|
+
detailsFormProps,
|
|
1338
|
+
skeletonRowCount
|
|
1336
1339
|
}) {
|
|
1337
1340
|
const {
|
|
1338
1341
|
availability,
|
|
@@ -1474,10 +1477,17 @@ function HubSpotMeetingScheduler({
|
|
|
1474
1477
|
);
|
|
1475
1478
|
const escapeHatch = fallbackUrl ? /* @__PURE__ */ jsx6(Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
1476
1479
|
const backEdge = detailsFirst ? step === "slot" ? backToDetails : onBack : step === "details" ? backToSlot : onBack;
|
|
1477
|
-
const
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1480
|
-
|
|
1480
|
+
const boxed = !formOnly;
|
|
1481
|
+
const cardClass = cn(
|
|
1482
|
+
CARD_CLASS,
|
|
1483
|
+
boxed ? preset.height : "md:h-auto",
|
|
1484
|
+
detailsFirst && "flex flex-col",
|
|
1485
|
+
formOnly && "bg-ods-bg",
|
|
1486
|
+
className
|
|
1487
|
+
);
|
|
1488
|
+
const innerClass = cn(CARD_INNER_CLASS, detailsFirst && boxed && "min-h-0 flex-1");
|
|
1489
|
+
const actionPanelClass = cn(ACTION_PANEL_CLASS, detailsFirst && boxed && "min-h-0 overflow-y-auto");
|
|
1490
|
+
const stepPanelClass = cn(STEP_PANEL_CLASS, detailsFirst && boxed && "min-h-0 overflow-y-auto");
|
|
1481
1491
|
const degraded = (message) => /* @__PURE__ */ jsx6(SchedulerDegradedCard, { flow, className, message, action: escapeHatch });
|
|
1482
1492
|
const degradedCard = degraded("We couldn't load available call times. Please try again shortly.");
|
|
1483
1493
|
if (isLoadingAvailability && !availability) {
|
|
@@ -1490,6 +1500,7 @@ function HubSpotMeetingScheduler({
|
|
|
1490
1500
|
BookingFormSkeleton,
|
|
1491
1501
|
{
|
|
1492
1502
|
fieldRows: detailsFormProps?.fieldRows,
|
|
1503
|
+
rowCount: skeletonRowCount,
|
|
1493
1504
|
consent: Boolean(detailsFormProps?.consent),
|
|
1494
1505
|
footerNote: preset.footerNote
|
|
1495
1506
|
}
|