@magicfeedback/popup-sdk 1.2.0 → 1.4.0

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.
@@ -6,8 +6,9 @@ import {
6
6
  buildSurveyIdentity,
7
7
  sdkError,
8
8
  sdkLog,
9
- sdkWarn
10
- } from "./chunk-XOTM5CHX.mjs";
9
+ sdkWarn,
10
+ style_default
11
+ } from "./chunk-XFA2Y6CK.mjs";
11
12
 
12
13
  // node_modules/@magicfeedback/native/dist/magicfeedback-sdk.browser.js
13
14
  var require_magicfeedback_sdk_browser = __commonJS({
@@ -1936,873 +1937,6 @@ var require_magicfeedback_sdk_browser = __commonJS({
1936
1937
 
1937
1938
  // src/ui/renderPopup.ts
1938
1939
  var import_native = __toESM(require_magicfeedback_sdk_browser());
1939
-
1940
- // src/assets/style.css
1941
- var style_default = `.magicfeedback-container {
1942
- width: 100%;
1943
- }
1944
-
1945
-
1946
- .magicfeedback-success-message,
1947
- .magicfeedback-info-message,
1948
- .magicfeedback-start-message,
1949
- .magicfeedback-container{
1950
- animation-duration: 0.5s;
1951
- animation-name: animate-fade;
1952
- animation-delay: 0.25s;
1953
- animation-fill-mode: backwards;
1954
-
1955
- font-style: normal;
1956
- text-align: justify;
1957
- font-weight: 400;
1958
- font-size: 1.2rem;
1959
- color: #475569;
1960
- line-height: 1.5;
1961
- }
1962
-
1963
- @keyframes animate-fade {
1964
- 0% { opacity: 0; }
1965
- 100% { opacity: 1; }
1966
- }
1967
-
1968
- .magicfeedback-form {
1969
- display: flex;
1970
- flex-direction: column;
1971
- justify-content: flex-start;
1972
- align-items: center;
1973
- width: 100%;
1974
- }
1975
- .magicfeedback-questions {
1976
- display: flex;
1977
- flex-direction: column;
1978
- justify-content: flex-start;
1979
- align-items: flex-start;
1980
- width: 100%;
1981
- }
1982
-
1983
- .magicfeedback-div {
1984
- display: flex;
1985
- flex-direction: column;
1986
- justify-content: flex-start;
1987
- align-items: flex-start;
1988
- margin-bottom: 10px;
1989
- width: 100%;
1990
- }
1991
-
1992
- .magicfeedback-label {
1993
- margin-bottom: 25px;
1994
- margin-top: 20px;
1995
- font-weight: 400;
1996
- font-family: inherit;
1997
- font-size: 1.2rem;
1998
- color: #212529;
1999
- text-align: start;
2000
- word-wrap: break-word;
2001
- white-space: normal;
2002
-
2003
- }
2004
-
2005
- .magicfeedback-checkbox {
2006
- display: flex;
2007
- flex-direction: column;
2008
- flex-wrap: wrap;
2009
- width: 100%;
2010
- }
2011
-
2012
- .magicfeedback-checkbox-container {
2013
- display: flex;
2014
- flex-direction: row;
2015
- justify-content: flex-start;
2016
- align-items: center;
2017
- margin-bottom: 5px;
2018
- margin-top: 5px;
2019
- }
2020
-
2021
- .magicfeedback-radio {
2022
- display: flex;
2023
- flex-direction: column;
2024
- justify-content: flex-start;
2025
- flex-wrap: wrap;
2026
- width: 100%;
2027
- margin-right: 5px;
2028
- padding: 5px;
2029
- }
2030
-
2031
- .magicfeedback-checkbox-container,
2032
- .magicfeedback-radio-container {
2033
- display: flex;
2034
- flex-direction: row;
2035
- justify-content: flex-start;
2036
- align-items: center;
2037
- margin: 5px;
2038
- padding: 5px 0;
2039
- background-color: #fff;
2040
- border-radius: 5px;
2041
- box-shadow: 0 0 3px #ccc;
2042
- }
2043
-
2044
- .deepdots-popup input::-webkit-outer-spin-button,
2045
- .deepdots-popup input::-webkit-inner-spin-button {
2046
- -webkit-appearance: none;
2047
- -moz-appearance: textfield;
2048
- }
2049
-
2050
- .magicfeedback-checkbox input[type="checkbox"] {
2051
- margin-right: 5px;
2052
- margin-left: 5px;
2053
- width: 20px;
2054
- height: 20px;
2055
- cursor: pointer;
2056
- }
2057
-
2058
-
2059
- .magicfeedback-checkbox label,
2060
- .magicfeedback-radio-container label {
2061
- margin-left: 5px;
2062
- font-weight: 400;
2063
- font-family: inherit;
2064
- font-size: 16px;
2065
- color: #212529;
2066
- text-align: start;
2067
- width: 100%;
2068
- }
2069
-
2070
- .deepdots-popup p {
2071
- margin-bottom: 0px;
2072
- font-size: 12px;
2073
- }
2074
-
2075
- .deepdots-popup h2 {
2076
- line-height: 1.66;
2077
- margin: 0;
2078
- padding: 0;
2079
- font-weight: 900;
2080
- color: #222;
2081
- font-family: var(--deepdots-font, 'Montserrat');
2082
- font-size: 18px;
2083
- text-transform: uppercase;
2084
- text-align: center;
2085
- margin-bottom: 40px;
2086
- }
2087
-
2088
- /* Los controles de formulario no heredan font-family por defecto: cuando hay
2089
- fuente custom (clase deepdots-has-font), los forzamos a usar la del contenedor. */
2090
- .deepdots-popup.deepdots-has-font button,
2091
- .deepdots-popup.deepdots-has-font input,
2092
- .deepdots-popup.deepdots-has-font textarea,
2093
- .deepdots-popup.deepdots-has-font select {
2094
- font-family: var(--deepdots-font, inherit);
2095
- }
2096
-
2097
- .deepdots-popup h6 {
2098
- margin-bottom: 1rem;
2099
- }
2100
-
2101
- .deepdots-popup input[type="date"],
2102
- .deepdots-popup input[type="text"],
2103
- .deepdots-popup input[type="number"],
2104
- .deepdots-popup input[type="email"],
2105
- .deepdots-popup input[type="password"],
2106
- .deepdots-popup textarea,
2107
- .deepdots-popup select {
2108
- box-sizing: border-box;
2109
- padding: 10px;
2110
- margin: 10px 0;
2111
- width: 100%;
2112
- border: 2px solid #ccc; /* Default border color - you can customize this */
2113
- border-radius: 5px;
2114
- font-size: 18px;
2115
- outline: none;
2116
- transition: border-color 0.3s ease;
2117
- min-height: 50px;
2118
- font-family: inherit;
2119
- -webkit-appearance: none;
2120
- }
2121
-
2122
- .deepdots-popup select {
2123
- background-image: linear-gradient(45deg, transparent 50%, gray 50%),
2124
- linear-gradient(135deg, gray 50%, transparent 50%),
2125
- linear-gradient(to right, #ccc, #ccc);
2126
- background-position: calc(100% - 20px) calc(1em + 2px),
2127
- calc(100% - 15px) calc(1em + 2px),
2128
- calc(100% - 2.5em) 0.5em;
2129
- background-size: 5px 5px,
2130
- 5px 5px,
2131
- 1px 1.5em;
2132
- background-repeat: no-repeat;
2133
- }
2134
-
2135
- .magicfeedback-boolean-container {
2136
- display: flex;
2137
- flex-direction: row;
2138
- justify-content: flex-start;
2139
- align-items: center;
2140
- margin: 10px 0;
2141
- width: 100%;
2142
- }
2143
-
2144
- .magicfeedback-boolean-container label {
2145
- margin-left: 10px;
2146
- font-weight: 400;
2147
- font-size: 16px;
2148
- width: 100%;
2149
- padding-top: 5px;
2150
- }
2151
-
2152
- .magicfeedback-boolean-option {
2153
- margin-right: 10px;
2154
- margin-left: 10px;
2155
- width: 100%;
2156
- height: 38px;
2157
- border-radius: 8px;
2158
- font-size: 16px;
2159
- cursor: pointer;
2160
- border: 1px solid #ced4da !important;
2161
- }
2162
-
2163
- .magicfeedback-boolean-option label {
2164
- font-weight: 400;
2165
- font-size: 16px;
2166
- color: #475569;
2167
- cursor: pointer;
2168
- width: 100%;
2169
- height: 100%;
2170
- display: flex;
2171
- justify-content: center;
2172
- align-items: center;
2173
- border-radius: inherit;
2174
- }
2175
-
2176
- .magicfeedback-boolean-option input[type=radio] + label:hover {
2177
- color: #007bff;
2178
- }
2179
-
2180
- .magicfeedback-boolean-option input[type=radio]:checked + label {
2181
- color: #007bff;
2182
- background-color: #cadff8;
2183
- }
2184
-
2185
- .deepdots-popup input[type="radio"] {
2186
- padding: 20px;
2187
- margin: 10px 0 10px 15px;
2188
- width: 40px;
2189
- background-color: #fff;
2190
- box-shadow: none;
2191
- }
2192
-
2193
- /* Style for focused input/select */
2194
- .deepdots-popup input:focus, .deepdots-popup select:focus {
2195
- border-color: #4CAF50; /* Highlight color when focused - you can customize this */
2196
- }
2197
-
2198
- /* Style for invalid input (example: validation error) */
2199
- .deepdots-popup input.error, .deepdots-popup select.error {
2200
- border-color: #ff3333; /* Red color for error state - you can customize this */
2201
- }
2202
-
2203
- .magicfeedback-action-container {
2204
- display: flex;
2205
- flex-direction: row;
2206
- justify-content: space-between;
2207
- align-items: center;
2208
- margin-top: 10px;
2209
- width: 100%;
2210
- }
2211
-
2212
- .magicfeedback-action-container .magicfeedback-submit {
2213
- cursor: pointer;
2214
- padding: 10px;
2215
- margin: 10px 0;
2216
- width: 100px;
2217
- border-radius: 8px;
2218
- font-size: 16px;
2219
- outline: none;
2220
- transition: border-color 0.3s ease;
2221
- background-color: #1E293B;
2222
- color: white;
2223
- }
2224
-
2225
- .magicfeedback-action-container .magicfeedback-back {
2226
- cursor: pointer;
2227
- padding: 10px;
2228
- margin: 10px 0;
2229
- width: 100px;
2230
- border: 0;
2231
- border-radius: 8px;
2232
- font-size: 16px;
2233
- outline: none;
2234
- transition: border-color 0.3s ease;
2235
- background-color: transparent;
2236
- color: #212529;
2237
- }
2238
-
2239
-
2240
-
2241
- /* Rating styles */
2242
- .magicfeedback-rating {
2243
- width: 100%;
2244
- }
2245
-
2246
- .magicfeedback-rating-container {
2247
- display: flex;
2248
- flex-direction: row;
2249
- justify-content: space-around;
2250
- flex-wrap: wrap;
2251
- align-items: center;
2252
-
2253
- margin: 15px 5px;
2254
- padding: 0;
2255
-
2256
- list-style: none;
2257
- font-size: 1.5rem;
2258
- cursor: pointer;
2259
- user-select: none;
2260
- -webkit-user-select: none;
2261
- -moz-user-select: none;
2262
- -ms-user-select: none;
2263
- }
2264
-
2265
- .magicfeedback-rating-placeholder-value,
2266
- .magicfeedback-rating-placeholder{
2267
- text-align: center;
2268
- align-content: center;
2269
- justify-content: center;
2270
- text-wrap: wrap;
2271
- }
2272
-
2273
- .magicfeedback-rating-option {
2274
- margin: 0 0.5rem;
2275
- padding: 0;
2276
- }
2277
-
2278
- @media (max-width: 1024px) {
2279
- .magicfeedback-rating-option {
2280
- margin: 10px 0;
2281
- padding: 0;
2282
- width: 20%;
2283
- display: flex;
2284
- justify-content: center;
2285
- }
2286
-
2287
- .magicfeedback-rating-placeholder-value {
2288
- font-size: 0.75rem;
2289
- margin-bottom: 1px;
2290
- }
2291
- .magicfeedback-rating-placeholder{
2292
- justify-content: center;
2293
- }
2294
-
2295
- .magicfeedback-rating-container {
2296
- flex-wrap: wrap;
2297
- justify-content: flex-start;
2298
- }
2299
- }
2300
-
2301
-
2302
- .magicfeedback-rating-option-label-container {
2303
- display: flex;
2304
- flex-direction: column;
2305
- }
2306
-
2307
-
2308
- .magicfeedback-rating-option-label-container label {
2309
- display: inline-block;
2310
- text-align: center;
2311
- margin-bottom: 0;
2312
- font-weight: 600;
2313
- font-size: 18px;
2314
- color: #475569;
2315
- }
2316
-
2317
- .magicfeedback-rating-option-label-container input[type=radio] {
2318
- position: absolute;
2319
- opacity: 0;
2320
- width: 0;
2321
- height: 0;
2322
- }
2323
-
2324
- /* IMAGE STYLES */
2325
- .magicfeedback-rating-option-label-container input[type=radio] + img {
2326
- cursor: pointer;
2327
- height: 48px;
2328
- width: 48px;
2329
- }
2330
-
2331
- /* LABEL STYLES */
2332
- .magicfeedback-rating-option-label-container input[type=radio] + label {
2333
- cursor: pointer;
2334
- }
2335
-
2336
- /* CHECKED STYLES */
2337
- .magicfeedback-rating-option-label-container input[type=radio]:checked + img {
2338
- box-shadow: #007bff 0px 1px 4px, #007BFFA0 0px 0px 0px 2px;
2339
- border-radius: 50%;
2340
- }
2341
-
2342
- .magicfeedback-rating-number {
2343
- width: 100%;
2344
- }
2345
- .magicfeedback-rating-container,
2346
- .magicfeedback-rating-number-container {
2347
- display: flex;
2348
- flex-direction: row;
2349
- justify-content: space-between;
2350
- align-items: center;
2351
-
2352
- margin: 15px 0;
2353
- padding: 0;
2354
-
2355
- list-style: none;
2356
- font-size: 1.5rem;
2357
- cursor: pointer;
2358
- user-select: none;
2359
- -webkit-user-select: none;
2360
- -moz-user-select: none;
2361
- -ms-user-select: none;
2362
- }
2363
-
2364
- /* Cuando hay placeholders (Very bad / Very good), el placeholder ocupa
2365
- el 100% de la primera l\xEDnea y los boxes bajan a la siguiente */
2366
- .magicfeedback-rating-number-container--with-placeholder {
2367
- flex-wrap: wrap;
2368
- align-items: flex-start;
2369
- }
2370
-
2371
- .magicfeedback-rating-number-container--with-placeholder .magicfeedback-rating-placeholder {
2372
- width: 100%;
2373
- margin-bottom: 8px;
2374
- }
2375
-
2376
- .magicfeedback-rating-number-container--with-placeholder .magicfeedback-rating-number-option {
2377
- width: auto;
2378
- flex: 1;
2379
- }
2380
-
2381
- .magicfeedback-rating-number-option {
2382
- display: flex;
2383
- flex-direction: row;
2384
- justify-content: flex-start;
2385
- align-items: center;
2386
- margin: 5px;
2387
- padding: 0;
2388
- list-style: none;
2389
- font-size: 1.5rem;
2390
- cursor: pointer;
2391
- user-select: none;
2392
- -webkit-user-select: none;
2393
- -moz-user-select: none;
2394
- -ms-user-select: none;
2395
- width: 100%;
2396
- }
2397
-
2398
- .magicfeedback-rating-number-option-row{
2399
- max-width: 100% !important;
2400
- }
2401
-
2402
- .magicfeedback-rating-number-top-placeholder,
2403
- .magicfeedback-rating-number-bottom-placeholder{
2404
- text-align: center !important;
2405
- align-content: center;
2406
- justify-content: center;
2407
- text-wrap: wrap;
2408
-
2409
- font-size: 15px;
2410
- color: #475569;
2411
-
2412
- width: 100%;
2413
- margin: auto;
2414
- }
2415
-
2416
- @media (min-width: 650px) {
2417
- .magicfeedback-rating-number-option-row +.magicfeedback-rating-number-container-ltr:first-child,
2418
- .magicfeedback-rating-number-option-row + +.magicfeedback-rating-number-container-rtl:last-child {
2419
- margin-left: 0;
2420
- width: calc(100% - 10px);
2421
- }
2422
-
2423
- .magicfeedback-rating-number-option-row +.magicfeedback-rating-number-container-rtl:first-child,
2424
- .magicfeedback-rating-number-option-row + +.magicfeedback-rating-number-container-ltr:last-child {
2425
- margin-right: 0;
2426
- width: calc(100% - 10px);
2427
- }
2428
- }
2429
-
2430
-
2431
- .magicfeedback-rating-number-option-label-container {
2432
- display: flex;
2433
- flex-direction: column;
2434
- align-items: center;
2435
- justify-content: center;
2436
- width: 100%;
2437
- height: 100%;
2438
- }
2439
-
2440
- .magicfeedback-rating-number-option-label-container label {
2441
- display: flex;
2442
- align-items: center;
2443
- justify-content: center;
2444
- white-space: nowrap;
2445
- overflow: hidden;
2446
- text-overflow: ellipsis;
2447
- margin: 0 10px;
2448
- font-weight: 600;
2449
- font-size: 14px;
2450
- color: #475569;
2451
- cursor: pointer;
2452
- width: 100%;
2453
- height: 100%;
2454
- min-height: 50px;
2455
- text-align: center;
2456
- padding: 0;
2457
- border-radius: 4px;
2458
- border: 1px solid #ced4da;
2459
- background-color: rgba(246, 246, 246, 0.3);
2460
- transition: background-color 0.15s ease-in-out;
2461
- }
2462
-
2463
- .magicfeedback-rating-number-option-label-container input[type=radio] {
2464
- position: absolute;
2465
- opacity: 0;
2466
- width: 0;
2467
- height: 0;
2468
- }
2469
-
2470
- .magicfeedback-rating-number-option-label-container input[type=radio] + label {
2471
- cursor: pointer;
2472
- }
2473
-
2474
- .magicfeedback-rating-number-option-label-container input[type=radio] + label:hover,
2475
- .magicfeedback-rating-number-option-label-container input[type=radio]:checked + label {
2476
- color: #007bff;
2477
- border: 1px solid #007bff;
2478
- background-color: rgba(86, 168, 253, 0.29);
2479
- }
2480
-
2481
- .magicfeedback-rating-number-container-column{
2482
- align-items: flex-start !important;
2483
- }
2484
-
2485
- @media (max-width: 650px) {
2486
- .magicfeedback-rating-number-container-ltr {
2487
- justify-content: center;
2488
- flex-wrap: wrap;
2489
- }
2490
-
2491
- .magicfeedback-rating-number-container-rtl {
2492
- justify-content: center;
2493
- flex-wrap: wrap-reverse;
2494
- }
2495
-
2496
- .magicfeedback-rating-number-option {
2497
- max-width: 100%;
2498
- height: 55px;
2499
- margin: 5px 0;
2500
- }
2501
- }
2502
-
2503
- .magicfeedback-rating-star {
2504
- width: 100%;
2505
- }
2506
-
2507
- .magicfeedback-rating-star-container {
2508
- display: flex !important;
2509
- flex-direction: row !important;
2510
- justify-content: center !important;
2511
- align-items: center !important;
2512
- flex-wrap: wrap;
2513
- margin: 15px 5px;
2514
- padding: 0;
2515
- list-style: none;
2516
- font-size: 1.5rem;
2517
- cursor: pointer;
2518
- user-select: none;
2519
- -webkit-user-select: none;
2520
- -moz-user-select: none;
2521
- -ms-user-select: none;
2522
- }
2523
-
2524
- .magicfeedback-rating-star-option:not(:checked) > .rating__star {
2525
- float: right;
2526
- width: 1em;
2527
- overflow: hidden;
2528
- white-space: nowrap;
2529
- cursor: pointer;
2530
- font-size: 30px;
2531
- color: #ccc;
2532
- margin: 0 10px;
2533
- }
2534
-
2535
- .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover,
2536
- .magicfeedback-rating-star-option:not(:checked) > .rating__star:hover ~ span {
2537
- color: #deb217 !important;
2538
- }
2539
-
2540
- .magicfeedback-rating-star-selected {
2541
- color: #ffc700 !important;
2542
- }
2543
-
2544
-
2545
- /* Style for multiple choice image */
2546
- .magicfeedback-image-option-label-container:hover {
2547
- cursor: pointer;
2548
- border: 0 !important;
2549
- }
2550
-
2551
- .magicfeedback-image-option-label-container input[type=radio]:checked + img,
2552
- .magicfeedback-image-option-label-container input[type=checkbox]:checked + img {
2553
- border: 1px solid #007bff !important;
2554
- box-shadow: 0 0 3px #007bff !important;
2555
- }
2556
-
2557
- .magicfeedback-image-option-label-container input[type=radio] + img,
2558
- .magicfeedback-image-option-label-container input[type=checkbox] + img {
2559
- border: 1px solid transparent !important;
2560
- }
2561
-
2562
- .magicfeedback-image-option-label-container{
2563
- margin: 10px !important;
2564
- height: calc(100% - 20px) !important;
2565
- width: calc(100% - 20px) !important;
2566
- }
2567
-
2568
- .magicfeedback-multiple-choice-image-option {
2569
- display: flex;
2570
- height: auto !important;
2571
- box-shadow: 0 0 3px #ccc;
2572
- }
2573
-
2574
- .magicfeedback-multiple-choice-image-label {
2575
- font-size: 1rem;
2576
- }
2577
-
2578
- .magicfeedback-consent-container {
2579
- display: flex;
2580
- flex-direction: row;
2581
- justify-content: flex-start;
2582
- align-items: center;
2583
- margin: 10px 0;
2584
- width: 100%;
2585
- }
2586
-
2587
- .magicfeedback-consent-container label {
2588
- margin-left: 10px;
2589
- }
2590
-
2591
- .magicfeedback-start-message-container {
2592
- /* ... add your start message container styles here ... */
2593
- }
2594
-
2595
- .magicfeedback-success-message,
2596
- .magicfeedback-info-message,
2597
- .magicfeedback-start-message {
2598
- margin: 35px 5px;
2599
- }
2600
-
2601
- .magicfeedback-success-message p,
2602
- .magicfeedback-info-message p,
2603
- .magicfeedback-start-message p {
2604
- font-style: normal;
2605
- text-align: start;
2606
- font-weight: 400;
2607
- font-size: 16px;
2608
- color: #475569;
2609
- line-height: 1.5;
2610
- }
2611
-
2612
- .magicfeedback-success-message img,
2613
- .magicfeedback-info-message img,
2614
- .magicfeedback-start-message img {
2615
- width: 400px;
2616
- max-width: 80%;
2617
- height: auto;
2618
- margin: 10px auto;
2619
- }
2620
-
2621
- .magicfeedback-counter,
2622
- .magicfeedback-point-system-total {
2623
- margin: 10px 0 0 0 !important;
2624
- display: flex !important;
2625
- justify-content: right !important;
2626
- align-items: center !important;
2627
- width: 100%;
2628
- }
2629
-
2630
- .magicfeedback-skip-container {
2631
- background-color: transparent !important;
2632
- border: 0 !important;
2633
- color: #999999FF !important;
2634
- padding: 0 !important;
2635
- margin: 0 !important;
2636
- cursor: pointer !important;
2637
- font-size: 0.5em !important;
2638
- font-weight: 400 !important;
2639
- box-shadow: 0 0 0 !important;
2640
-
2641
- &:hover {
2642
- color: #0066ff;
2643
- }
2644
- }
2645
-
2646
- .magicfeedback-skip-container input[type=checkbox] {
2647
- border-color: #999999FF !important;
2648
- border: 0 !important;
2649
- cursor: pointer !important;
2650
-
2651
- }
2652
-
2653
- .magicfeedback-multi-question-matrix,
2654
- .magicfeedback-point-system,
2655
- .magicfeedback-priority-list {
2656
- width: 100% !important;
2657
- }
2658
-
2659
- .magicfeedback-multi-question-matrix-container,
2660
- .magicfeedback-point-system-container,
2661
- .magicfeedback-priority-list-container {
2662
- width: 100% !important;
2663
- overflow-x: auto;
2664
- }
2665
-
2666
- .magicfeedback-point-system-list,
2667
- .magicfeedback-priority-list-list,
2668
- .magicfeedback-multi-question-matrix-table {
2669
- width: 100% !important;
2670
- padding: 0 !important;
2671
- overflow-x: auto;
2672
- }
2673
-
2674
- .magicfeedback-multi-question-matrix {
2675
- position: relative !important;
2676
- }
2677
-
2678
- .magicfeedback-multi-question-matrix-container {
2679
- overflow: auto !important;
2680
- padding-bottom: 10px;
2681
- }
2682
-
2683
- .magicfeedback-multi-question-matrix-label{
2684
- text-align: left !important;
2685
- }
2686
- .magicfeedback-priority-list-item {
2687
- display: flex;
2688
- flex-direction: row;
2689
- justify-content: space-between;
2690
- align-items: center;
2691
- padding: 10px 0 10px 10px;
2692
-
2693
- border: 1px solid #ced4da;
2694
- border-radius: 5px;
2695
- margin: 10px 0 !important;
2696
- }
2697
-
2698
- .magicfeedback-point-system-item {
2699
- height: 45px;
2700
- margin: 5px 0 !important;
2701
- }
2702
-
2703
- .magicfeedback-point-system-item label,
2704
- .magicfeedback-priority-list-item-label {
2705
- font-family: inherit;
2706
- font-size: 18px !important;
2707
- color: #212529;
2708
- text-align: start;
2709
- word-wrap: break-word;
2710
- white-space: normal;
2711
- padding: 0 10px 0 0;
2712
- }
2713
-
2714
- .magicfeedback-point-system-input-container {
2715
- padding: 0 10px 0 0;
2716
- border-radius: 5px;
2717
- font-size: 14px;
2718
- border: 1px solid #ced4da;
2719
- height: 42px;
2720
- margin: auto 0;
2721
- }
2722
-
2723
- .magicfeedback-multi-question-matrix-table thead {
2724
- margin-bottom: 20px;
2725
- }
2726
-
2727
- .magicfeedback-multi-question-matrix-table th{
2728
- text-align: center;
2729
- font-weight: 400 !important;
2730
- font-size: 1rem !important;
2731
- padding: 0 10px !important;
2732
- }
2733
-
2734
- .magicfeedback-multi-question-matrix-table th,
2735
- .magicfeedback-multi-question-matrix-table td label,
2736
- .magicfeedback-priority-list-arrow-up,
2737
- .magicfeedback-priority-list-arrow-down {
2738
- font-style: normal !important;
2739
- font-weight: 400 !important;
2740
- font-size: 1rem !important;
2741
- color: #475569 !important;
2742
- cursor: pointer !important;
2743
- margin: 0 !important;
2744
- line-height: inherit;
2745
- }
2746
-
2747
- .magicfeedback-multi-question-matrix-table tr {
2748
- align-items: center;
2749
- margin: 5px 0;
2750
- }
2751
-
2752
- .magicfeedback-multi-question-matrix-row-tr{
2753
- border-radius: 5px;
2754
- margin: 10px 0 !important;
2755
- }
2756
-
2757
- .magicfeedback-multi-question-matrix-row-tr:nth-child(odd) {
2758
- background-color: #f1f6f6; /* Light gray background for odd rows */
2759
- }
2760
-
2761
- .magicfeedback-multi-question-matrix-row-tr:nth-child(even) {
2762
- background-color: #ffffff; /* White background for even rows */
2763
- }
2764
-
2765
- .magicfeedback-multi-question-matrix-row-label {
2766
- text-align: left !important;
2767
- }
2768
-
2769
- .magicfeedback-point-system-item span {
2770
- color: #475569 !important;
2771
- }
2772
-
2773
- .magicfeedback-point-system-item input {
2774
- padding: 0;
2775
- margin: 0 !important;
2776
- width: auto !important;
2777
- min-width: 100px !important;
2778
- height: auto !important;
2779
- min-height: 42px;
2780
- cursor: pointer;
2781
- font-size: 14px;
2782
- text-align: center !important;
2783
- }
2784
-
2785
- .magicfeedback-multi-question-matrix-table input {
2786
- margin: auto !important;
2787
- padding: 20px !important;
2788
- width: 100% !important;
2789
- height: 15px;
2790
- border: 1px solid #ced4da;
2791
- cursor: pointer;
2792
- }
2793
-
2794
- .magicfeedback-image{
2795
- max-height: 400px !important;
2796
- height: auto !important;
2797
- max-width: 100% !important;
2798
- margin: 10px auto !important;
2799
- }
2800
-
2801
- .magicfeedback-error{
2802
- margin-top: 5px;
2803
- }`;
2804
-
2805
- // src/ui/renderPopup.ts
2806
1940
  function ensureMagicFeedbackStyles(_popup) {
2807
1941
  const STYLE_ID = "magicfeedback-sdk-styles";
2808
1942
  if (document.getElementById(STYLE_ID)) return;
@@ -3205,7 +2339,7 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
3205
2339
  };
3206
2340
  generateOptions.onLoadedEvent = ({ formData }) => {
3207
2341
  try {
3208
- } catch (e) {
2342
+ } catch {
3209
2343
  }
3210
2344
  const s = formData?.style;
3211
2345
  if (s && !stylesInjected) {
@@ -3340,4 +2474,4 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
3340
2474
  export {
3341
2475
  renderPopup
3342
2476
  };
3343
- //# sourceMappingURL=renderPopup-R53C7DB3.mjs.map
2477
+ //# sourceMappingURL=renderPopup-TCKR5Z3P.mjs.map