@posthog/browser-common 0.9.4 → 0.9.6
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/client.d.ts +6 -0
- package/dist/config.js +1 -1
- package/dist/config.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +58 -10
- package/dist/index.mjs +1 -0
- package/dist/survey-action-matcher.d.ts +27 -0
- package/dist/survey-action-matcher.js +169 -0
- package/dist/survey-action-matcher.mjs +131 -0
- package/dist/survey-constants.d.ts +86 -0
- package/dist/survey-constants.js +144 -0
- package/dist/survey-constants.mjs +76 -0
- package/dist/survey-event-host.d.ts +15 -0
- package/dist/survey-event-host.js +18 -0
- package/dist/survey-event-host.mjs +1 -0
- package/dist/survey-event-receiver-base.d.ts +180 -0
- package/dist/survey-event-receiver-base.js +354 -0
- package/dist/survey-event-receiver-base.mjs +316 -0
- package/dist/survey-event-receiver.d.ts +36 -0
- package/dist/survey-event-receiver.js +133 -0
- package/dist/survey-event-receiver.mjs +95 -0
- package/dist/survey-render-context.d.ts +13 -0
- package/dist/survey-render-context.js +45 -0
- package/dist/survey-render-context.mjs +7 -0
- package/dist/surveys/components/BottomSection.d.ts +12 -0
- package/dist/surveys/components/BottomSection.js +82 -0
- package/dist/surveys/components/BottomSection.mjs +44 -0
- package/dist/surveys/components/ConfirmationMessage.d.ts +10 -0
- package/dist/surveys/components/ConfirmationMessage.js +92 -0
- package/dist/surveys/components/ConfirmationMessage.mjs +54 -0
- package/dist/surveys/components/IntroScreen.d.ts +10 -0
- package/dist/surveys/components/IntroScreen.js +78 -0
- package/dist/surveys/components/IntroScreen.mjs +40 -0
- package/dist/surveys/components/PostHogLogo.d.ts +5 -0
- package/dist/surveys/components/PostHogLogo.js +54 -0
- package/dist/surveys/components/PostHogLogo.mjs +16 -0
- package/dist/surveys/components/QuestionHeader.d.ts +10 -0
- package/dist/surveys/components/QuestionHeader.js +82 -0
- package/dist/surveys/components/QuestionHeader.mjs +41 -0
- package/dist/surveys/components/QuestionTypes.d.ts +31 -0
- package/dist/surveys/components/QuestionTypes.js +519 -0
- package/dist/surveys/components/QuestionTypes.mjs +469 -0
- package/dist/surveys/icons.d.ts +12 -0
- package/dist/surveys/icons.js +212 -0
- package/dist/surveys/icons.mjs +147 -0
- package/dist/surveys/survey-branching.d.ts +12 -0
- package/dist/surveys/survey-branching.js +101 -0
- package/dist/surveys/survey-branching.mjs +60 -0
- package/dist/surveys/survey-styles.d.ts +1 -0
- package/dist/surveys/survey-styles.js +40 -0
- package/dist/surveys/survey-styles.mjs +2 -0
- package/dist/surveys/survey-translations.d.ts +22 -0
- package/dist/surveys/survey-translations.js +68 -0
- package/dist/surveys/survey-translations.mjs +27 -0
- package/dist/surveys/survey-url-prefill.d.ts +36 -0
- package/dist/surveys/survey-url-prefill.js +162 -0
- package/dist/surveys/survey-url-prefill.mjs +118 -0
- package/dist/surveys/surveys-extension-utils.d.ts +133 -0
- package/dist/surveys/surveys-extension-utils.js +739 -0
- package/dist/surveys/surveys-extension-utils.mjs +608 -0
- package/dist/surveys-config.d.ts +60 -0
- package/dist/surveys-config.js +68 -0
- package/dist/surveys-config.mjs +9 -0
- package/dist/surveys-renderer.d.ts +248 -0
- package/dist/surveys-renderer.js +1299 -0
- package/dist/surveys-renderer.mjs +1230 -0
- package/dist/surveys.d.ts +117 -0
- package/dist/surveys.js +566 -0
- package/dist/surveys.mjs +495 -0
- package/dist/types/surveys.d.ts +83 -86
- package/dist/types/surveys.js +1 -127
- package/dist/types/surveys.mjs +1 -76
- package/dist/utils/autocapture-utils.js +8 -9
- package/dist/utils/autocapture-utils.mjs +8 -9
- package/dist/utils/event-utils.js +1 -0
- package/dist/utils/event-utils.mjs +1 -0
- package/dist/utils/matcher-utils.d.ts +1 -1
- package/dist/utils/matcher-utils.js +13 -10
- package/dist/utils/matcher-utils.mjs +10 -7
- package/dist/utils/survey-utils.d.ts +16 -0
- package/dist/utils/survey-utils.js +121 -0
- package/dist/utils/survey-utils.mjs +38 -0
- package/dist/utils/url-targeting-utils.d.ts +3 -1
- package/dist/utils/url-targeting-utils.js +1 -2
- package/dist/utils/url-targeting-utils.mjs +1 -2
- package/dist/utils/uuidv7.js +4 -4
- package/dist/utils/uuidv7.mjs +4 -4
- package/package.json +97 -3
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17
|
+
})();
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.r = (exports1)=>{
|
|
20
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
21
|
+
value: 'Module'
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
24
|
+
value: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
var __webpack_exports__ = {};
|
|
29
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
+
IconPosthogLogo: ()=>IconPosthogLogo,
|
|
32
|
+
cancelSVG: ()=>cancelSVG,
|
|
33
|
+
checkSVG: ()=>checkSVG,
|
|
34
|
+
dissatisfiedEmoji: ()=>dissatisfiedEmoji,
|
|
35
|
+
neutralEmoji: ()=>neutralEmoji,
|
|
36
|
+
satisfiedEmoji: ()=>satisfiedEmoji,
|
|
37
|
+
thumbsDownEmoji: ()=>thumbsDownEmoji,
|
|
38
|
+
thumbsUpEmoji: ()=>thumbsUpEmoji,
|
|
39
|
+
veryDissatisfiedEmoji: ()=>veryDissatisfiedEmoji,
|
|
40
|
+
verySatisfiedEmoji: ()=>verySatisfiedEmoji
|
|
41
|
+
});
|
|
42
|
+
const jsx_runtime_namespaceObject = require("preact/jsx-runtime");
|
|
43
|
+
const satisfiedEmoji = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
44
|
+
className: "emoji-svg",
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
height: "48",
|
|
47
|
+
viewBox: "0 -960 960 960",
|
|
48
|
+
width: "48",
|
|
49
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
50
|
+
d: "M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
const neutralEmoji = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
54
|
+
className: "emoji-svg",
|
|
55
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
56
|
+
height: "48",
|
|
57
|
+
viewBox: "0 -960 960 960",
|
|
58
|
+
width: "48",
|
|
59
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
60
|
+
d: "M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
const dissatisfiedEmoji = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
64
|
+
className: "emoji-svg",
|
|
65
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
66
|
+
height: "48",
|
|
67
|
+
viewBox: "0 -960 960 960",
|
|
68
|
+
width: "48",
|
|
69
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
70
|
+
d: "M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
const veryDissatisfiedEmoji = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
74
|
+
className: "emoji-svg",
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
76
|
+
height: "48",
|
|
77
|
+
viewBox: "0 -960 960 960",
|
|
78
|
+
width: "48",
|
|
79
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
80
|
+
d: "M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
const verySatisfiedEmoji = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
84
|
+
className: "emoji-svg",
|
|
85
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
+
height: "48",
|
|
87
|
+
viewBox: "0 -960 960 960",
|
|
88
|
+
width: "48",
|
|
89
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
90
|
+
d: "M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
91
|
+
})
|
|
92
|
+
});
|
|
93
|
+
const thumbsUpEmoji = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
94
|
+
className: "emoji-svg",
|
|
95
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
96
|
+
height: "48",
|
|
97
|
+
viewBox: "0 0 24 24",
|
|
98
|
+
width: "48",
|
|
99
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
100
|
+
d: "M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
|
+
const thumbsDownEmoji = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
104
|
+
className: "emoji-svg",
|
|
105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
106
|
+
height: "48",
|
|
107
|
+
viewBox: "0 0 24 24",
|
|
108
|
+
width: "48",
|
|
109
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
110
|
+
d: "M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"
|
|
111
|
+
})
|
|
112
|
+
});
|
|
113
|
+
const cancelSVG = ({ fill = 'currentColor' } = {})=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
114
|
+
width: "12",
|
|
115
|
+
height: "12",
|
|
116
|
+
viewBox: "0 0 12 12",
|
|
117
|
+
fill: fill,
|
|
118
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
119
|
+
"aria-labelledby": "close-survey-title-adam",
|
|
120
|
+
children: [
|
|
121
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("title", {
|
|
122
|
+
id: "close-survey-title",
|
|
123
|
+
className: "adam-testing",
|
|
124
|
+
children: "Close survey"
|
|
125
|
+
}),
|
|
126
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
127
|
+
"fill-rule": "evenodd",
|
|
128
|
+
"clip-rule": "evenodd",
|
|
129
|
+
d: "M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",
|
|
130
|
+
fill: fill
|
|
131
|
+
})
|
|
132
|
+
]
|
|
133
|
+
});
|
|
134
|
+
const IconPosthogLogo = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
135
|
+
width: "80",
|
|
136
|
+
height: "14",
|
|
137
|
+
viewBox: "0 0 160 28",
|
|
138
|
+
fill: "none",
|
|
139
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
140
|
+
children: [
|
|
141
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("g", {
|
|
142
|
+
"clip-path": "url(#ph-survey-logo-clip)",
|
|
143
|
+
children: [
|
|
144
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
145
|
+
fill: "currentColor",
|
|
146
|
+
d: "m50 23.34-.35-.05A4.5 4.5 0 0 1 47 21.97L35.56 10.1c-.3-.33-.86-.1-.86.35V27.5c0 .27.22.5.5.5h13.78c1.48 0 2.67-1.2 2.67-2.67v-.1a1.9 1.9 0 0 0-1.67-1.89zm-10.81.2a1.8 1.8 0 1 1 0-3.58 1.8 1.8 0 0 1 0 3.58"
|
|
147
|
+
}),
|
|
148
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
149
|
+
fill: "#0054ff",
|
|
150
|
+
d: "M.87 19.13a.5.5 0 0 0-.87.34v5.94a2.6 2.6 0 0 0 2.59 2.58H7.8a.5.5 0 0 0 .37-.84zM.86 8.4c-.3-.32-.86-.1-.86.36v6.73q0 .2.13.34l8.81 9.68 1.8 2.06v-8.82zM4.59.82A2.67 2.67 0 0 0 0 2.68v1.93q0 .4.27.69l10.47 10.95v-9.1z"
|
|
151
|
+
}),
|
|
152
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
153
|
+
fill: "#ff5506",
|
|
154
|
+
d: "M11.36 28h7.08a.5.5 0 0 0 .36-.85l-8.05-8.4v8.8l.23.28q.16.17.38.17m-.61-11.76 8.84 9.25 2.1 2.33q.1.11.27.14V18.7L10.75 7.15zm0-13.7v1.41a2 2 0 0 0 .55 1.28L21.96 16.2V7.65L15.32.8a2.67 2.67 0 0 0-4.57 1.71z"
|
|
155
|
+
}),
|
|
156
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
157
|
+
fill: "#ffb70f",
|
|
158
|
+
d: "M22.06 28h7.76a.5.5 0 0 0 .36-.86l-8.22-8.45v9.27l.09.02zM31 25.49l1.13 1.14c.32.31.85.09.85-.35v-7.3l-.49-.51L21.96 7.64v8.55zM22.52 5.73l9.62 9.89c.3.32.86.1.86-.35V7.46L26.56.82a2.67 2.67 0 0 0-4.59 1.84v1.7c0 .51.2 1 .57 1.37z"
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
}),
|
|
162
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
163
|
+
fill: "currentColor",
|
|
164
|
+
d: "M64.9 22.88c-.67 0-1.23-.56-1.23-1.24V5.24c0-.69.56-1.24 1.24-1.24h6.55c3.89 0 6.39 2.32 6.39 5.9 0 3.6-2.5 5.91-6.4 5.91h-3.53v5.83c0 .68-.56 1.24-1.24 1.24zm3.02-11.94c0 .68.55 1.23 1.23 1.23h1.88c1.6 0 2.58-.86 2.58-2.26s-.97-2.27-2.58-2.27h-1.88c-.68 0-1.23.55-1.23 1.23zM84.71 23.1c-4.18 0-7.14-2.97-7.14-7.02s2.96-7.01 7.14-7.01c4.14 0 7.14 2.97 7.14 7.01 0 4.05-3 7.01-7.14 7.01m-3.22-7.02c0 2.16 1.3 3.64 3.22 3.64 1.9 0 3.2-1.48 3.2-3.64s-1.3-3.64-3.2-3.64c-1.93 0-3.22 1.48-3.22 3.64m16.34 7.03a6.2 6.2 0 0 1-5.54-3.01c-.34-.57-.01-1.26.6-1.5l.77-.3c.7-.27 1.45.15 1.92.73a2.8 2.8 0 0 0 2.25 1.08c1.05 0 1.75-.51 1.75-1.27 0-2.13-7.17-.7-7.17-5.85 0-2.13 1.85-3.91 4.83-3.91 2.27 0 4.2.9 5.17 2.31.36.53.05 1.2-.54 1.44l-.85.35c-.68.29-1.45-.14-2-.63a2.5 2.5 0 0 0-1.64-.64c-.89 0-1.5.38-1.5.97 0 2.16 7.27.38 7.27 5.88 0 2.35-2.15 4.34-5.32 4.34m14.64-1.31c.04.57-.3 1.1-.86 1.2q-.6.1-1.27.11c-2.92 0-5.15-1.56-5.15-4.85v-5.66h-.91c-.69 0-1.24-.56-1.24-1.24v-.82c0-.68.55-1.23 1.24-1.23h.91v-2.7c0-.69.55-1.24 1.23-1.24h1.48c.68 0 1.24.55 1.24 1.23v2.7h2.04c.68 0 1.23.56 1.23 1.24v.82c0 .68-.55 1.24-1.23 1.24h-2.04v5.15c0 1.2.64 1.91 1.6 1.91.75 0 1.6.5 1.66 1.25zM125.5 5.23c0-.68.55-1.23 1.23-1.23h1.8c.68 0 1.23.55 1.23 1.23v16.41c0 .68-.55 1.24-1.23 1.24h-1.8c-.68 0-1.23-.56-1.23-1.24v-5.43c0-.68-.56-1.23-1.24-1.23h-5c-.67 0-1.23.55-1.23 1.23v5.43c0 .68-.55 1.24-1.23 1.24h-1.77c-.69 0-1.24-.56-1.24-1.24V5.24c0-.69.55-1.24 1.24-1.24h1.77c.68 0 1.23.55 1.23 1.23v4.87c0 .68.56 1.23 1.24 1.23h5c.67 0 1.23-.55 1.23-1.23zm12.87 17.87c-4.19 0-7.14-2.97-7.14-7.02s2.95-7.01 7.14-7.01c4.13 0 7.14 2.97 7.14 7.01 0 4.05-3 7.01-7.14 7.01m-3.22-7.02c0 2.16 1.29 3.64 3.22 3.64 1.9 0 3.2-1.48 3.2-3.64s-1.3-3.64-3.2-3.64c-1.93 0-3.22 1.48-3.22 3.64m17.17 6.37c-3.84 0-6.2-2.58-6.2-6.68s2.36-6.69 6.12-6.69c1.58 0 2.82.54 3.54 1.37 0-.64.52-1.15 1.16-1.15h1.5c.68 0 1.24.55 1.24 1.23V21.9c0 3.64-2.77 6.09-6.93 6.09-2.64 0-4.9-1.2-5.85-3.09-.31-.62.16-1.29.85-1.4l1.14-.17c.67-.11 1.29.4 1.78.85.5.46 1.26.7 2.08.7 1.85 0 3.06-1.04 3.06-2.55v-1.3c-.7.9-2.01 1.4-3.49 1.4m-2.36-6.68c0 2.02 1.18 3.31 3 3.31 1.86 0 3.04-1.29 3.04-3.31s-1.18-3.32-3.03-3.32c-1.83 0-3.01 1.3-3.01 3.32"
|
|
165
|
+
}),
|
|
166
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("defs", {
|
|
167
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("clipPath", {
|
|
168
|
+
id: "ph-survey-logo-clip",
|
|
169
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
170
|
+
fill: "#fff",
|
|
171
|
+
d: "M0 0h51.67v28H0z"
|
|
172
|
+
})
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
]
|
|
176
|
+
});
|
|
177
|
+
const checkSVG = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("svg", {
|
|
178
|
+
width: "16",
|
|
179
|
+
height: "12",
|
|
180
|
+
viewBox: "0 0 16 12",
|
|
181
|
+
fill: "none",
|
|
182
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
183
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
184
|
+
d: "M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",
|
|
185
|
+
fill: "currentColor"
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
exports.IconPosthogLogo = __webpack_exports__.IconPosthogLogo;
|
|
189
|
+
exports.cancelSVG = __webpack_exports__.cancelSVG;
|
|
190
|
+
exports.checkSVG = __webpack_exports__.checkSVG;
|
|
191
|
+
exports.dissatisfiedEmoji = __webpack_exports__.dissatisfiedEmoji;
|
|
192
|
+
exports.neutralEmoji = __webpack_exports__.neutralEmoji;
|
|
193
|
+
exports.satisfiedEmoji = __webpack_exports__.satisfiedEmoji;
|
|
194
|
+
exports.thumbsDownEmoji = __webpack_exports__.thumbsDownEmoji;
|
|
195
|
+
exports.thumbsUpEmoji = __webpack_exports__.thumbsUpEmoji;
|
|
196
|
+
exports.veryDissatisfiedEmoji = __webpack_exports__.veryDissatisfiedEmoji;
|
|
197
|
+
exports.verySatisfiedEmoji = __webpack_exports__.verySatisfiedEmoji;
|
|
198
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
199
|
+
"IconPosthogLogo",
|
|
200
|
+
"cancelSVG",
|
|
201
|
+
"checkSVG",
|
|
202
|
+
"dissatisfiedEmoji",
|
|
203
|
+
"neutralEmoji",
|
|
204
|
+
"satisfiedEmoji",
|
|
205
|
+
"thumbsDownEmoji",
|
|
206
|
+
"thumbsUpEmoji",
|
|
207
|
+
"veryDissatisfiedEmoji",
|
|
208
|
+
"verySatisfiedEmoji"
|
|
209
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
210
|
+
Object.defineProperty(exports, '__esModule', {
|
|
211
|
+
value: true
|
|
212
|
+
});
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
2
|
+
const satisfiedEmoji = /*#__PURE__*/ jsx("svg", {
|
|
3
|
+
className: "emoji-svg",
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
height: "48",
|
|
6
|
+
viewBox: "0 -960 960 960",
|
|
7
|
+
width: "48",
|
|
8
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
9
|
+
d: "M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
const neutralEmoji = /*#__PURE__*/ jsx("svg", {
|
|
13
|
+
className: "emoji-svg",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
height: "48",
|
|
16
|
+
viewBox: "0 -960 960 960",
|
|
17
|
+
width: "48",
|
|
18
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
|
+
d: "M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
const dissatisfiedEmoji = /*#__PURE__*/ jsx("svg", {
|
|
23
|
+
className: "emoji-svg",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
height: "48",
|
|
26
|
+
viewBox: "0 -960 960 960",
|
|
27
|
+
width: "48",
|
|
28
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
29
|
+
d: "M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
const veryDissatisfiedEmoji = /*#__PURE__*/ jsx("svg", {
|
|
33
|
+
className: "emoji-svg",
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
height: "48",
|
|
36
|
+
viewBox: "0 -960 960 960",
|
|
37
|
+
width: "48",
|
|
38
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
39
|
+
d: "M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
const verySatisfiedEmoji = /*#__PURE__*/ jsx("svg", {
|
|
43
|
+
className: "emoji-svg",
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
+
height: "48",
|
|
46
|
+
viewBox: "0 -960 960 960",
|
|
47
|
+
width: "48",
|
|
48
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
49
|
+
d: "M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
const thumbsUpEmoji = /*#__PURE__*/ jsx("svg", {
|
|
53
|
+
className: "emoji-svg",
|
|
54
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
55
|
+
height: "48",
|
|
56
|
+
viewBox: "0 0 24 24",
|
|
57
|
+
width: "48",
|
|
58
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
59
|
+
d: "M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
const thumbsDownEmoji = /*#__PURE__*/ jsx("svg", {
|
|
63
|
+
className: "emoji-svg",
|
|
64
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
65
|
+
height: "48",
|
|
66
|
+
viewBox: "0 0 24 24",
|
|
67
|
+
width: "48",
|
|
68
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
69
|
+
d: "M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
const cancelSVG = ({ fill = 'currentColor' } = {})=>/*#__PURE__*/ jsxs("svg", {
|
|
73
|
+
width: "12",
|
|
74
|
+
height: "12",
|
|
75
|
+
viewBox: "0 0 12 12",
|
|
76
|
+
fill: fill,
|
|
77
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
78
|
+
"aria-labelledby": "close-survey-title-adam",
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ jsx("title", {
|
|
81
|
+
id: "close-survey-title",
|
|
82
|
+
className: "adam-testing",
|
|
83
|
+
children: "Close survey"
|
|
84
|
+
}),
|
|
85
|
+
/*#__PURE__*/ jsx("path", {
|
|
86
|
+
"fill-rule": "evenodd",
|
|
87
|
+
"clip-rule": "evenodd",
|
|
88
|
+
d: "M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",
|
|
89
|
+
fill: fill
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
});
|
|
93
|
+
const IconPosthogLogo = /*#__PURE__*/ jsxs("svg", {
|
|
94
|
+
width: "80",
|
|
95
|
+
height: "14",
|
|
96
|
+
viewBox: "0 0 160 28",
|
|
97
|
+
fill: "none",
|
|
98
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
+
children: [
|
|
100
|
+
/*#__PURE__*/ jsxs("g", {
|
|
101
|
+
"clip-path": "url(#ph-survey-logo-clip)",
|
|
102
|
+
children: [
|
|
103
|
+
/*#__PURE__*/ jsx("path", {
|
|
104
|
+
fill: "currentColor",
|
|
105
|
+
d: "m50 23.34-.35-.05A4.5 4.5 0 0 1 47 21.97L35.56 10.1c-.3-.33-.86-.1-.86.35V27.5c0 .27.22.5.5.5h13.78c1.48 0 2.67-1.2 2.67-2.67v-.1a1.9 1.9 0 0 0-1.67-1.89zm-10.81.2a1.8 1.8 0 1 1 0-3.58 1.8 1.8 0 0 1 0 3.58"
|
|
106
|
+
}),
|
|
107
|
+
/*#__PURE__*/ jsx("path", {
|
|
108
|
+
fill: "#0054ff",
|
|
109
|
+
d: "M.87 19.13a.5.5 0 0 0-.87.34v5.94a2.6 2.6 0 0 0 2.59 2.58H7.8a.5.5 0 0 0 .37-.84zM.86 8.4c-.3-.32-.86-.1-.86.36v6.73q0 .2.13.34l8.81 9.68 1.8 2.06v-8.82zM4.59.82A2.67 2.67 0 0 0 0 2.68v1.93q0 .4.27.69l10.47 10.95v-9.1z"
|
|
110
|
+
}),
|
|
111
|
+
/*#__PURE__*/ jsx("path", {
|
|
112
|
+
fill: "#ff5506",
|
|
113
|
+
d: "M11.36 28h7.08a.5.5 0 0 0 .36-.85l-8.05-8.4v8.8l.23.28q.16.17.38.17m-.61-11.76 8.84 9.25 2.1 2.33q.1.11.27.14V18.7L10.75 7.15zm0-13.7v1.41a2 2 0 0 0 .55 1.28L21.96 16.2V7.65L15.32.8a2.67 2.67 0 0 0-4.57 1.71z"
|
|
114
|
+
}),
|
|
115
|
+
/*#__PURE__*/ jsx("path", {
|
|
116
|
+
fill: "#ffb70f",
|
|
117
|
+
d: "M22.06 28h7.76a.5.5 0 0 0 .36-.86l-8.22-8.45v9.27l.09.02zM31 25.49l1.13 1.14c.32.31.85.09.85-.35v-7.3l-.49-.51L21.96 7.64v8.55zM22.52 5.73l9.62 9.89c.3.32.86.1.86-.35V7.46L26.56.82a2.67 2.67 0 0 0-4.59 1.84v1.7c0 .51.2 1 .57 1.37z"
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
}),
|
|
121
|
+
/*#__PURE__*/ jsx("path", {
|
|
122
|
+
fill: "currentColor",
|
|
123
|
+
d: "M64.9 22.88c-.67 0-1.23-.56-1.23-1.24V5.24c0-.69.56-1.24 1.24-1.24h6.55c3.89 0 6.39 2.32 6.39 5.9 0 3.6-2.5 5.91-6.4 5.91h-3.53v5.83c0 .68-.56 1.24-1.24 1.24zm3.02-11.94c0 .68.55 1.23 1.23 1.23h1.88c1.6 0 2.58-.86 2.58-2.26s-.97-2.27-2.58-2.27h-1.88c-.68 0-1.23.55-1.23 1.23zM84.71 23.1c-4.18 0-7.14-2.97-7.14-7.02s2.96-7.01 7.14-7.01c4.14 0 7.14 2.97 7.14 7.01 0 4.05-3 7.01-7.14 7.01m-3.22-7.02c0 2.16 1.3 3.64 3.22 3.64 1.9 0 3.2-1.48 3.2-3.64s-1.3-3.64-3.2-3.64c-1.93 0-3.22 1.48-3.22 3.64m16.34 7.03a6.2 6.2 0 0 1-5.54-3.01c-.34-.57-.01-1.26.6-1.5l.77-.3c.7-.27 1.45.15 1.92.73a2.8 2.8 0 0 0 2.25 1.08c1.05 0 1.75-.51 1.75-1.27 0-2.13-7.17-.7-7.17-5.85 0-2.13 1.85-3.91 4.83-3.91 2.27 0 4.2.9 5.17 2.31.36.53.05 1.2-.54 1.44l-.85.35c-.68.29-1.45-.14-2-.63a2.5 2.5 0 0 0-1.64-.64c-.89 0-1.5.38-1.5.97 0 2.16 7.27.38 7.27 5.88 0 2.35-2.15 4.34-5.32 4.34m14.64-1.31c.04.57-.3 1.1-.86 1.2q-.6.1-1.27.11c-2.92 0-5.15-1.56-5.15-4.85v-5.66h-.91c-.69 0-1.24-.56-1.24-1.24v-.82c0-.68.55-1.23 1.24-1.23h.91v-2.7c0-.69.55-1.24 1.23-1.24h1.48c.68 0 1.24.55 1.24 1.23v2.7h2.04c.68 0 1.23.56 1.23 1.24v.82c0 .68-.55 1.24-1.23 1.24h-2.04v5.15c0 1.2.64 1.91 1.6 1.91.75 0 1.6.5 1.66 1.25zM125.5 5.23c0-.68.55-1.23 1.23-1.23h1.8c.68 0 1.23.55 1.23 1.23v16.41c0 .68-.55 1.24-1.23 1.24h-1.8c-.68 0-1.23-.56-1.23-1.24v-5.43c0-.68-.56-1.23-1.24-1.23h-5c-.67 0-1.23.55-1.23 1.23v5.43c0 .68-.55 1.24-1.23 1.24h-1.77c-.69 0-1.24-.56-1.24-1.24V5.24c0-.69.55-1.24 1.24-1.24h1.77c.68 0 1.23.55 1.23 1.23v4.87c0 .68.56 1.23 1.24 1.23h5c.67 0 1.23-.55 1.23-1.23zm12.87 17.87c-4.19 0-7.14-2.97-7.14-7.02s2.95-7.01 7.14-7.01c4.13 0 7.14 2.97 7.14 7.01 0 4.05-3 7.01-7.14 7.01m-3.22-7.02c0 2.16 1.29 3.64 3.22 3.64 1.9 0 3.2-1.48 3.2-3.64s-1.3-3.64-3.2-3.64c-1.93 0-3.22 1.48-3.22 3.64m17.17 6.37c-3.84 0-6.2-2.58-6.2-6.68s2.36-6.69 6.12-6.69c1.58 0 2.82.54 3.54 1.37 0-.64.52-1.15 1.16-1.15h1.5c.68 0 1.24.55 1.24 1.23V21.9c0 3.64-2.77 6.09-6.93 6.09-2.64 0-4.9-1.2-5.85-3.09-.31-.62.16-1.29.85-1.4l1.14-.17c.67-.11 1.29.4 1.78.85.5.46 1.26.7 2.08.7 1.85 0 3.06-1.04 3.06-2.55v-1.3c-.7.9-2.01 1.4-3.49 1.4m-2.36-6.68c0 2.02 1.18 3.31 3 3.31 1.86 0 3.04-1.29 3.04-3.31s-1.18-3.32-3.03-3.32c-1.83 0-3.01 1.3-3.01 3.32"
|
|
124
|
+
}),
|
|
125
|
+
/*#__PURE__*/ jsx("defs", {
|
|
126
|
+
children: /*#__PURE__*/ jsx("clipPath", {
|
|
127
|
+
id: "ph-survey-logo-clip",
|
|
128
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
129
|
+
fill: "#fff",
|
|
130
|
+
d: "M0 0h51.67v28H0z"
|
|
131
|
+
})
|
|
132
|
+
})
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
const checkSVG = /*#__PURE__*/ jsx("svg", {
|
|
137
|
+
width: "16",
|
|
138
|
+
height: "12",
|
|
139
|
+
viewBox: "0 0 16 12",
|
|
140
|
+
fill: "none",
|
|
141
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
142
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
143
|
+
d: "M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",
|
|
144
|
+
fill: "currentColor"
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
export { IconPosthogLogo, cancelSVG, checkSVG, dissatisfiedEmoji, neutralEmoji, satisfiedEmoji, thumbsDownEmoji, thumbsUpEmoji, veryDissatisfiedEmoji, verySatisfiedEmoji };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Survey } from '../types/surveys';
|
|
2
|
+
import { SurveyQuestionBranchingType } from '../survey-constants';
|
|
3
|
+
/**
|
|
4
|
+
* Get the rating bucket (detractors/passives/promoters or negative/neutral/positive)
|
|
5
|
+
* based on the response value and scale.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getRatingBucketForResponseValue(responseValue: number, scale: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Determine the next survey step based on branching configuration.
|
|
10
|
+
* Returns the next question index, or SurveyQuestionBranchingType.End if the survey should end.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getNextSurveyStep(survey: Survey, currentQuestionIndex: number, response: string | string[] | number | null): number | typeof SurveyQuestionBranchingType.End;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17
|
+
})();
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.r = (exports1)=>{
|
|
20
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
21
|
+
value: 'Module'
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
24
|
+
value: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
var __webpack_exports__ = {};
|
|
29
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
+
getNextSurveyStep: ()=>getNextSurveyStep,
|
|
32
|
+
getRatingBucketForResponseValue: ()=>getRatingBucketForResponseValue
|
|
33
|
+
});
|
|
34
|
+
const external_survey_constants_js_namespaceObject = require("../survey-constants.js");
|
|
35
|
+
const logger_js_namespaceObject = require("../utils/logger.js");
|
|
36
|
+
const logger = (0, logger_js_namespaceObject.createLogger)('[Surveys]');
|
|
37
|
+
function getRatingBucketForResponseValue(responseValue, scale) {
|
|
38
|
+
if (2 === scale) {
|
|
39
|
+
if (responseValue < 1 || responseValue > 2) throw new Error('The response must be in range 1-2');
|
|
40
|
+
return 1 === responseValue ? 'positive' : 'negative';
|
|
41
|
+
}
|
|
42
|
+
if (3 === scale) {
|
|
43
|
+
if (responseValue < 1 || responseValue > 3) throw new Error('The response must be in range 1-3');
|
|
44
|
+
return 1 === responseValue ? 'negative' : 2 === responseValue ? 'neutral' : 'positive';
|
|
45
|
+
}
|
|
46
|
+
if (5 === scale) {
|
|
47
|
+
if (responseValue < 1 || responseValue > 5) throw new Error('The response must be in range 1-5');
|
|
48
|
+
return responseValue <= 2 ? 'negative' : 3 === responseValue ? 'neutral' : 'positive';
|
|
49
|
+
}
|
|
50
|
+
if (7 === scale) {
|
|
51
|
+
if (responseValue < 1 || responseValue > 7) throw new Error('The response must be in range 1-7');
|
|
52
|
+
return responseValue <= 3 ? 'negative' : 4 === responseValue ? 'neutral' : 'positive';
|
|
53
|
+
}
|
|
54
|
+
if (10 === scale) {
|
|
55
|
+
if (responseValue < 0 || responseValue > 10) throw new Error('The response must be in range 0-10');
|
|
56
|
+
return responseValue <= 6 ? 'detractors' : responseValue <= 8 ? 'passives' : 'promoters';
|
|
57
|
+
}
|
|
58
|
+
throw new Error('The scale must be one of: 2, 3, 5, 7, 10');
|
|
59
|
+
}
|
|
60
|
+
function getNextSurveyStep(survey, currentQuestionIndex, response) {
|
|
61
|
+
const question = survey.questions[currentQuestionIndex];
|
|
62
|
+
const nextQuestionIndex = currentQuestionIndex + 1;
|
|
63
|
+
if (!question.branching?.type) {
|
|
64
|
+
if (currentQuestionIndex === survey.questions.length - 1) return external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.End;
|
|
65
|
+
return nextQuestionIndex;
|
|
66
|
+
}
|
|
67
|
+
if (question.branching.type === external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.End) return external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.End;
|
|
68
|
+
if (question.branching.type === external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.SpecificQuestion) {
|
|
69
|
+
if (Number.isInteger(question.branching.index)) return question.branching.index;
|
|
70
|
+
} else if (question.branching.type === external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.ResponseBased) {
|
|
71
|
+
if (question.type === external_survey_constants_js_namespaceObject.SurveyQuestionType.SingleChoice) {
|
|
72
|
+
let selectedChoiceIndex = question.choices.indexOf(`${response}`);
|
|
73
|
+
if (-1 === selectedChoiceIndex && question.hasOpenChoice) selectedChoiceIndex = question.choices.length - 1;
|
|
74
|
+
if (question.branching?.responseValues?.hasOwnProperty(selectedChoiceIndex)) {
|
|
75
|
+
const nextStep = question.branching.responseValues[selectedChoiceIndex];
|
|
76
|
+
if (Number.isInteger(nextStep)) return nextStep;
|
|
77
|
+
if (nextStep === external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.End) return external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.End;
|
|
78
|
+
}
|
|
79
|
+
} else if (question.type === external_survey_constants_js_namespaceObject.SurveyQuestionType.Rating) {
|
|
80
|
+
if ('number' != typeof response || !Number.isInteger(response)) throw new Error('The response type must be an integer');
|
|
81
|
+
const ratingBucket = getRatingBucketForResponseValue(response, question.scale);
|
|
82
|
+
if (question.branching?.responseValues?.hasOwnProperty(ratingBucket)) {
|
|
83
|
+
const nextStep = question.branching.responseValues[ratingBucket];
|
|
84
|
+
if (Number.isInteger(nextStep)) return nextStep;
|
|
85
|
+
if (nextStep === external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.End) return external_survey_constants_js_namespaceObject.SurveyQuestionBranchingType.End;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return nextQuestionIndex;
|
|
89
|
+
}
|
|
90
|
+
logger.warn('Falling back to next question index due to unexpected branching type');
|
|
91
|
+
return nextQuestionIndex;
|
|
92
|
+
}
|
|
93
|
+
exports.getNextSurveyStep = __webpack_exports__.getNextSurveyStep;
|
|
94
|
+
exports.getRatingBucketForResponseValue = __webpack_exports__.getRatingBucketForResponseValue;
|
|
95
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
96
|
+
"getNextSurveyStep",
|
|
97
|
+
"getRatingBucketForResponseValue"
|
|
98
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
99
|
+
Object.defineProperty(exports, '__esModule', {
|
|
100
|
+
value: true
|
|
101
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { SurveyQuestionBranchingType, SurveyQuestionType } from "../survey-constants.mjs";
|
|
2
|
+
import { createLogger } from "../utils/logger.mjs";
|
|
3
|
+
const logger = createLogger('[Surveys]');
|
|
4
|
+
function getRatingBucketForResponseValue(responseValue, scale) {
|
|
5
|
+
if (2 === scale) {
|
|
6
|
+
if (responseValue < 1 || responseValue > 2) throw new Error('The response must be in range 1-2');
|
|
7
|
+
return 1 === responseValue ? 'positive' : 'negative';
|
|
8
|
+
}
|
|
9
|
+
if (3 === scale) {
|
|
10
|
+
if (responseValue < 1 || responseValue > 3) throw new Error('The response must be in range 1-3');
|
|
11
|
+
return 1 === responseValue ? 'negative' : 2 === responseValue ? 'neutral' : 'positive';
|
|
12
|
+
}
|
|
13
|
+
if (5 === scale) {
|
|
14
|
+
if (responseValue < 1 || responseValue > 5) throw new Error('The response must be in range 1-5');
|
|
15
|
+
return responseValue <= 2 ? 'negative' : 3 === responseValue ? 'neutral' : 'positive';
|
|
16
|
+
}
|
|
17
|
+
if (7 === scale) {
|
|
18
|
+
if (responseValue < 1 || responseValue > 7) throw new Error('The response must be in range 1-7');
|
|
19
|
+
return responseValue <= 3 ? 'negative' : 4 === responseValue ? 'neutral' : 'positive';
|
|
20
|
+
}
|
|
21
|
+
if (10 === scale) {
|
|
22
|
+
if (responseValue < 0 || responseValue > 10) throw new Error('The response must be in range 0-10');
|
|
23
|
+
return responseValue <= 6 ? 'detractors' : responseValue <= 8 ? 'passives' : 'promoters';
|
|
24
|
+
}
|
|
25
|
+
throw new Error('The scale must be one of: 2, 3, 5, 7, 10');
|
|
26
|
+
}
|
|
27
|
+
function getNextSurveyStep(survey, currentQuestionIndex, response) {
|
|
28
|
+
const question = survey.questions[currentQuestionIndex];
|
|
29
|
+
const nextQuestionIndex = currentQuestionIndex + 1;
|
|
30
|
+
if (!question.branching?.type) {
|
|
31
|
+
if (currentQuestionIndex === survey.questions.length - 1) return SurveyQuestionBranchingType.End;
|
|
32
|
+
return nextQuestionIndex;
|
|
33
|
+
}
|
|
34
|
+
if (question.branching.type === SurveyQuestionBranchingType.End) return SurveyQuestionBranchingType.End;
|
|
35
|
+
if (question.branching.type === SurveyQuestionBranchingType.SpecificQuestion) {
|
|
36
|
+
if (Number.isInteger(question.branching.index)) return question.branching.index;
|
|
37
|
+
} else if (question.branching.type === SurveyQuestionBranchingType.ResponseBased) {
|
|
38
|
+
if (question.type === SurveyQuestionType.SingleChoice) {
|
|
39
|
+
let selectedChoiceIndex = question.choices.indexOf(`${response}`);
|
|
40
|
+
if (-1 === selectedChoiceIndex && question.hasOpenChoice) selectedChoiceIndex = question.choices.length - 1;
|
|
41
|
+
if (question.branching?.responseValues?.hasOwnProperty(selectedChoiceIndex)) {
|
|
42
|
+
const nextStep = question.branching.responseValues[selectedChoiceIndex];
|
|
43
|
+
if (Number.isInteger(nextStep)) return nextStep;
|
|
44
|
+
if (nextStep === SurveyQuestionBranchingType.End) return SurveyQuestionBranchingType.End;
|
|
45
|
+
}
|
|
46
|
+
} else if (question.type === SurveyQuestionType.Rating) {
|
|
47
|
+
if ('number' != typeof response || !Number.isInteger(response)) throw new Error('The response type must be an integer');
|
|
48
|
+
const ratingBucket = getRatingBucketForResponseValue(response, question.scale);
|
|
49
|
+
if (question.branching?.responseValues?.hasOwnProperty(ratingBucket)) {
|
|
50
|
+
const nextStep = question.branching.responseValues[ratingBucket];
|
|
51
|
+
if (Number.isInteger(nextStep)) return nextStep;
|
|
52
|
+
if (nextStep === SurveyQuestionBranchingType.End) return SurveyQuestionBranchingType.End;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return nextQuestionIndex;
|
|
56
|
+
}
|
|
57
|
+
logger.warn('Falling back to next question index due to unexpected branching type');
|
|
58
|
+
return nextQuestionIndex;
|
|
59
|
+
}
|
|
60
|
+
export { getNextSurveyStep, getRatingBucketForResponseValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const surveyStyles: string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
+
var define = (defs, kind)=>{
|
|
6
|
+
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
[kind]: defs[key]
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
define(getters, "get");
|
|
12
|
+
define(values, "value");
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
(()=>{
|
|
16
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17
|
+
})();
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.r = (exports1)=>{
|
|
20
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
21
|
+
value: 'Module'
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
24
|
+
value: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
var __webpack_exports__ = {};
|
|
29
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30
|
+
const surveyStyles = ':host{--ph-survey-font-family:-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--ph-survey-box-padding:20px 24px;--ph-survey-max-width:300px;--ph-survey-z-index:calc(2147480000 + 3645);--ph-survey-border-color:#dcdcdc;--ph-survey-border-bottom:1.5px solid var(--ph-survey-border-color);--ph-survey-border-radius:10px;--ph-survey-background-color:#eeeded;--ph-survey-box-shadow:0 4px 12px #00000026;--ph-survey-submit-button-color:black;--ph-survey-submit-button-text-color:white;--ph-survey-rating-bg-color:white;--ph-survey-rating-text-color:#020617;--ph-survey-rating-active-bg-color:black;--ph-survey-rating-active-text-color:white;--ph-survey-text-primary-color:#020617;--ph-survey-text-subtle-color:#939393;--ph-widget-color:#e0a045;--ph-widget-text-color:white;--ph-survey-scrollbar-thumb-color:var(--ph-survey-border-color);--ph-survey-scrollbar-track-color:var(--ph-survey-background-color);--ph-survey-outline-color:#3b82f6cc;--ph-survey-input-background:white;--ph-survey-input-text-color:#020617;--ph-survey-disabled-button-opacity:.6}.ph-survey{min-width:300px;width:var(--ph-survey-max-width);max-width:85%;z-index:var(--ph-survey-z-index);height:fit-content;margin:0;position:fixed;bottom:0}.ph-survey h3,.ph-survey p{margin:0}.ph-survey *{box-sizing:border-box;font-family:var(--ph-survey-font-family);color:var(--ph-survey-text-primary-color)}.ph-survey textarea,.ph-survey input[type=text],.ph-survey .multiple-choice-options label{color:var(--ph-survey-input-text-color);background:var(--ph-survey-input-background);border:1.5px solid var(--ph-survey-border-color);border-radius:4px;padding:10px;transition:border-color .2s ease-out,box-shadow .2s ease-out,transform .15s ease-out}.ph-survey textarea,.ph-survey input[type=text]{transition:border-color .2s ease-out,box-shadow .2s ease-out,transform .15s ease-out}.ph-survey input{margin:0}.ph-survey textarea:focus,.ph-survey textarea:focus-visible,.ph-survey input[type=text]:focus,.ph-survey input[type=text]:focus-visible,.ph-survey .form-submit:focus,.ph-survey .form-submit:focus-visible,.ph-survey input[type=checkbox]:focus,.ph-survey input[type=radio]:focus,.ph-survey input[type=checkbox]:focus-visible,.ph-survey input[type=radio]:focus-visible{outline:1.5px solid var(--ph-survey-outline-color);border-color:var(--ph-survey-rating-active-bg-color);outline-offset:2px}.ph-survey textarea:focus:not(:focus-visible),.ph-survey input[type=text]:focus:not(:focus-visible),.ph-survey button:focus:not(:focus-visible),.ph-survey input[type=checkbox]:focus:not(:focus-visible),.ph-survey input[type=radio]:focus:not(:focus-visible){outline:none}.ph-survey textarea:hover:not(:focus),.ph-survey input[type=text]:hover:not(:focus){border-color:var(--ph-survey-rating-active-bg-color)}@media (max-width:768px){.ph-survey textarea,.ph-survey input[type=text]{font-size:1rem}}.ph-survey .multiple-choice-options label,.ph-survey .rating-options-number,.ph-survey .form-cancel,.ph-survey input[type=checkbox],.ph-survey input[type=radio]{border:1.5px solid var(--ph-survey-border-color)}.ph-survey label,.ph-survey input[type=checkbox],.ph-survey input[type=radio],.ph-survey .ratings-emoji,.ph-survey .ratings-number,.ph-survey .footer-branding,.ph-survey .form-cancel,.ph-survey .form-submit{transition:all .2s ease-out}@media (prefers-reduced-motion:no-preference){.ph-survey button:active,.ph-survey input[type=checkbox]:active,.ph-survey input[type=radio]:active,.ph-survey label:active{transition-duration:.1s}}.ph-survey-widget-tab{background:var(--ph-widget-color);color:var(--ph-widget-text-color);text-align:center;cursor:pointer;z-index:var(--ph-survey-z-index);border:none;border-radius:3px 3px 0 0;padding:10px 12px;transition:padding .2s ease-out;position:fixed}.ph-survey-widget-tab:hover:not(.widget-tab-top){padding-bottom:16px}.ph-survey-widget-tab.widget-tab-top{border-radius:0 0 3px 3px}.ph-survey-widget-tab.widget-tab-top:hover{padding-top:16px}@keyframes ph-survey-fade-in{0%{opacity:0}to{opacity:1}}.survey-box{flex-direction:column;gap:16px;display:flex}.bottom-section{flex-direction:column;gap:8px;display:flex}.thank-you-message-header~.bottom-section,.intro-screen-header~.bottom-section{padding-top:16px}.question-container,.thank-you-message,.intro-screen{flex-direction:column;gap:8px;display:flex}.survey-question{font-size:14px;font-weight:500}.survey-question-description{opacity:.8;padding-top:4px;font-size:13px}.survey-question-description,.thank-you-message-body,.intro-screen-body{word-wrap:break-word;overflow-wrap:break-word}:is(.survey-question-description,.thank-you-message-body,.intro-screen-body) img,:is(.survey-question-description,.thank-you-message-body,.intro-screen-body) video,:is(.survey-question-description,.thank-you-message-body,.intro-screen-body) iframe,:is(.survey-question-description,.thank-you-message-body,.intro-screen-body) embed,:is(.survey-question-description,.thank-you-message-body,.intro-screen-body) object,:is(.survey-question-description,.thank-you-message-body,.intro-screen-body) svg{max-width:100%;height:auto}.question-textarea-wrapper{flex-direction:column;display:flex}.survey-form{animation:.3s ease-out forwards ph-survey-fade-in}.survey-form,.thank-you-message,.intro-screen{text-align:left;width:100%;z-index:var(--ph-survey-z-index);border:1.5px solid var(--ph-survey-border-color);border-bottom:var(--ph-survey-border-bottom);background:var(--ph-survey-background-color);border-radius:var(--ph-survey-border-radius);box-shadow:var(--ph-survey-box-shadow);padding:var(--ph-survey-box-padding);margin:0;position:relative}.survey-form textarea,.survey-form input[type=text]{min-width:100%}.survey-form textarea:focus,.survey-form textarea:focus-visible{box-shadow:0 4px 12px #00000014}.survey-form textarea:focus:not(:focus-visible){box-shadow:none}.survey-box .question-header--empty~.multiple-choice-options,.survey-box .question-header--empty~textarea{margin-top:0}.multiple-choice-options{border:none;flex-direction:column;gap:8px;margin:0;padding:1px 0;font-size:14px;display:flex}.multiple-choice-options label,.multiple-choice-options .response-choice{color:inherit;align-items:center;gap:8px;display:flex}.multiple-choice-options label{cursor:pointer;font-size:13px}.multiple-choice-options label:hover:not(:has(input:checked)){border-color:var(--ph-survey-text-subtle-color);box-shadow:0 2px 8px #00000014}.multiple-choice-options label:has(input:checked){border-color:var(--ph-survey-rating-active-bg-color);box-shadow:0 1px 4px #0000000d}.multiple-choice-options label.choice-option-open{flex-wrap:wrap}.multiple-choice-options label span{color:inherit}.multiple-choice-options input[type=checkbox],.multiple-choice-options input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ph-survey-input-background);cursor:pointer;z-index:1;border-radius:3px;flex-shrink:0;width:1rem;height:1rem;transition:all .2s cubic-bezier(.4,0,.2,1),transform .15s ease-out;position:relative}:is(.multiple-choice-options input[type=checkbox],.multiple-choice-options input[type=radio]):focus{transform:scale(1.05)}:is(.multiple-choice-options input[type=checkbox],.multiple-choice-options input[type=radio]):hover{border-color:var(--ph-survey-rating-active-bg-color);transform:scale(1.05)}:is(.multiple-choice-options input[type=checkbox],.multiple-choice-options input[type=radio]):active{transform:scale(.95)}:is(.multiple-choice-options input[type=checkbox],.multiple-choice-options input[type=radio]):checked{background:var(--ph-survey-rating-active-bg-color);border-color:var(--ph-survey-rating-active-bg-color);transform:scale(1)}:is(.multiple-choice-options input[type=checkbox],.multiple-choice-options input[type=radio]):checked:hover{transform:scale(1.05)}.multiple-choice-options input[type=checkbox]:checked:after{border:solid var(--ph-survey-rating-active-text-color);border-width:0 2px 2px 0;width:4px;height:8px;animation:.2s ease-out .1s forwards ph-survey-checkmark-reveal;left:4px;transform:rotate(45deg)scale(0)}.multiple-choice-options input[type=radio]:checked:after{background:var(--ph-survey-rating-active-text-color);border-radius:50%;width:6px;height:6px;animation:.15s ease-out 50ms forwards ph-survey-radio-reveal;top:5px;left:5px;transform:scale(0)}.multiple-choice-options input[type=checkbox]:checked:after,.multiple-choice-options input[type=radio]:checked:after{content:"";box-sizing:content-box;position:absolute}.multiple-choice-options input[type=radio]{border-radius:50%}.multiple-choice-options input[type=radio]:checked{border:none}:is(.multiple-choice-options input[type=checkbox]:checked,.multiple-choice-options input[type=radio]:checked)~*{font-weight:700}.multiple-choice-options .choice-option-open input[type=text]::placeholder{color:var(--ph-survey-text-subtle-color);font-weight:400}.rating-options-emoji{justify-content:space-between;display:flex}.rating-options-emoji-2{justify-content:space-around}.ratings-emoji{opacity:.5;background-color:#0000;border:none;padding:0;font-size:16px}.ratings-emoji:hover{cursor:pointer;opacity:1;transform:scale(1.15)}.ratings-emoji.rating-active{opacity:1}.ratings-emoji svg{fill:var(--ph-survey-text-primary-color);transition:fill .2s ease-out}.rating-options-number{border-radius:6px;grid-auto-columns:1fr;grid-auto-flow:column;display:grid;overflow:hidden}.rating-options-number .ratings-number{border-right:1px solid var(--ph-survey-border-color);text-align:center;cursor:pointer;color:var(--ph-survey-rating-text-color);border-top:none;border-bottom:none;border-left:none;font-weight:700}.rating-options-number .ratings-number:last-of-type{border-right:0}.rating-options-number .ratings-number.rating-active{background:var(--ph-survey-rating-active-bg-color);color:var(--ph-survey-rating-active-text-color)}.ratings-number{background-color:var(--ph-survey-rating-bg-color);border:none;padding:8px 0}.ratings-number .rating-active{background-color:var(--ph-survey-rating-active-bg-color)}.ratings-number{cursor:pointer}@media (hover:hover) and (pointer:fine){.ratings-number:hover:not(.rating-active){background-color:color-mix(in srgb, var(--ph-survey-rating-active-bg-color) 14%, var(--ph-survey-rating-bg-color))}}.rating-text{opacity:.7;flex-direction:row;justify-content:space-between;font-size:11px;display:flex}.form-buttons{flex-direction:row;gap:8px;width:100%;display:flex}.form-buttons-with-back>.form-submit{flex:auto;min-width:0}.form-submit{text-align:center;cursor:pointer;user-select:none;background:var(--ph-survey-submit-button-color);color:var(--ph-survey-submit-button-text-color);border:none;border-radius:6px;min-width:100%;padding:12px;font-weight:700;box-shadow:0 2px #0000000b}.form-submit:not([disabled]):hover{transform:scale(1.02);box-shadow:0 4px 8px #0000001a}.form-submit:not([disabled]):active{transform:scale(.98);box-shadow:0 1px 2px #0000000d}.form-submit[disabled]{opacity:var(--ph-survey-disabled-button-opacity);cursor:not-allowed}.form-back{text-align:center;cursor:pointer;user-select:none;color:var(--ph-survey-text-primary-color);border:1.5px solid var(--ph-survey-border-color);background:0 0;border-radius:6px;flex:none;padding:12px 16px;font-weight:600}.form-back:hover{transform:scale(1.02)}.form-back:active{transform:scale(.98)}.validation-hint{opacity:.7;margin-top:4px;font-size:12px}.form-cancel{cursor:pointer;background:#fff;border-radius:100%;padding:12px;line-height:0;position:absolute;top:0;right:0;transform:translate(50%,-50%)}.form-cancel:hover{opacity:.7;transform:translate(50%,-50%)scale(1.1)}.footer-branding{opacity:.6;justify-content:center;align-items:center;gap:4px;font-size:11px;font-weight:500;text-decoration:none;display:flex}.footer-branding:hover{opacity:1}.footer-branding a{text-decoration:none}.thank-you-message{text-align:center}.thank-you-message-header{margin:10px 0 0}.thank-you-message-body{opacity:.8;font-size:14px}.intro-screen{text-align:center;animation:.3s ease-out forwards ph-survey-fade-in}.intro-screen-header{margin:10px 0 0}.intro-screen-body{opacity:.8;font-size:14px}.limit-height{scrollbar-width:thin;scrollbar-color:var(--ph-survey-scrollbar-thumb-color) var(--ph-survey-scrollbar-track-color);max-height:256px;overflow:hidden auto}.limit-height::-webkit-scrollbar{width:8px}.limit-height::-webkit-scrollbar-track{background:var(--ph-survey-scrollbar-track-color);border-radius:4px}.limit-height::-webkit-scrollbar-thumb{background-color:var(--ph-survey-scrollbar-thumb-color);border:2px solid var(--ph-survey-scrollbar-track-color);border-radius:4px}.limit-height::-webkit-scrollbar-thumb:hover{background-color:var(--ph-survey-text-subtle-color)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.ph-survey *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@keyframes ph-survey-checkmark-reveal{0%{opacity:0;transform:rotate(45deg)scale(0)}50%{opacity:1;transform:rotate(45deg)scale(1.2)}to{opacity:1;transform:rotate(45deg)scale(1)}}@keyframes ph-survey-radio-reveal{0%{opacity:0;transform:scale(0)}50%{opacity:1;transform:scale(1.3)}to{opacity:1;transform:scale(1)}}';
|
|
31
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
32
|
+
surveyStyles: surveyStyles
|
|
33
|
+
});
|
|
34
|
+
exports.surveyStyles = __webpack_exports__.surveyStyles;
|
|
35
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
36
|
+
"surveyStyles"
|
|
37
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
38
|
+
Object.defineProperty(exports, '__esModule', {
|
|
39
|
+
value: true
|
|
40
|
+
});
|