survey-analytics
Advanced tools
Comparing version 1.9.32 to 1.9.33
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "1.9.32", | ||
"version": "1.9.33", | ||
"name": "survey-analytics", | ||
@@ -22,0 +22,0 @@ "description": "SurveyJS analytics Library.", |
@@ -1,6 +0,3 @@ | ||
![SurveyJS Analytics](https://raw.githubusercontent.com/surveyjs/survey-analytics/master/docs/images/survey-analytics-note.png) | ||
# SurveyJS Analytics | ||
[![Build Status](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_apis/build/status/SurveyJS%20Library?branchName=master)](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=7&branchName=master) | ||
@@ -17,35 +14,39 @@ <a href="https://github.com/DevExpress/testcafe"> | ||
SurveyJS Analytics library allows to render survey results as charts or tables | ||
SurveyJS Analytics visualizes survey results and allows users to analyze them. | ||
## Main Features | ||
![SurveyJS Analytics](docs/images/survey-analytics-note.png) | ||
- Count answers and render results as charts for the select type questions | ||
- Count answers and render results as gauge for range type question | ||
- Three different types of charts: bar, pie and line | ||
- Wordcloud for text questions representation | ||
- Interactive filtering for the select type questions | ||
- Flexible layout and customizable colors | ||
## Features | ||
## Examples | ||
- Supported chart types: | ||
- Bar | ||
- Pie | ||
- Line | ||
- Gauge | ||
- Bullet | ||
- Scatter | ||
- Word cloud | ||
- Interactive filtering | ||
- Customizable colors | ||
- Dynamic layout | ||
- Chart reordering via drag and drop | ||
You may review the [analytics example](https://surveyjstest.azurewebsites.net/Examples/Library/?id=analytics-nps) or check this standalone plnkr [example](https://plnkr.co/edit/bCk64wdvOLShXkPyvGfk?p=preview). | ||
## Get Started | ||
Other live examples: | ||
- [Angular](https://surveyjs.io/Documentation/Analytics?id=get-started-angular) | ||
- [Vue](https://surveyjs.io/Documentation/Analytics?id=get-started-vue) | ||
- [React](https://surveyjs.io/Documentation/Analytics?id=get-started-react) | ||
- [Knockout / jQuery](https://surveyjs.io/Documentation/Analytics?id=get-started-knockout-jquery) | ||
- [how to show chanrt for the one question](https://next.plnkr.co/edit/3yIIFnbcn8RMJQHY?preview). | ||
## Resources | ||
## Licensing | ||
- [Website](https://surveyjs.io/) | ||
- [Documentation](https://surveyjs.io/Documentation/Analytics) | ||
- [Live Examples](https://surveyjs.io/Examples/Analytics) | ||
- [What's New](https://surveyjs.io/WhatsNew) | ||
Unlike SurveyJS Library itself, this library is distributed under commercial license. Please read more about licensing on our [license page](https://surveyjstest.azurewebsites.net/Licenses#Analytics). | ||
## Build SurveyJS Analytics from Sources | ||
## Support | ||
1. **Clone the repo** | ||
If you feel that we have missed some important functionality or found a bug, please write us [here](https://github.com/surveyjs/survey-analytics/issues) on our [support desk](https://surveyjs.answerdesk.io/). | ||
## Building survey-analytics from sources | ||
To build library yourself: | ||
1. **Clone the repo from GitHub** | ||
``` | ||
@@ -56,3 +57,4 @@ git clone https://github.com/surveyjs/survey-analytics.git | ||
2. **Acquire build dependencies.** Make sure you have [Node.js](http://nodejs.org/) installed on your workstation. You need a version of Node.js greater than 6.0.0 and npm greater than 2.7.0. This is only needed to _build_ surveyjs from sources. | ||
1. **Install dependencies** | ||
Make sure that you have Node.js v6.0.0 or later and npm v2.7.0 or later installed. | ||
@@ -63,3 +65,3 @@ ``` | ||
3. **Build the library** | ||
1. **Build the library** | ||
@@ -70,5 +72,5 @@ ``` | ||
After that you should have the library at 'packages' directory. | ||
You can find the built scripts and style sheets in the `packages` folder. | ||
4. **Run samples** | ||
1. **Run test examples** | ||
@@ -79,23 +81,12 @@ ``` | ||
This command will run local http server at the http://localhost:7777 | ||
This command runs a local HTTP server at http://localhost:8080/. | ||
You can open http://localhost:7777/examples/examples | ||
1. **Run unit tests** | ||
5. **Run unit tests** | ||
``` | ||
npm test | ||
``` | ||
This command will run unit tests | ||
## Nearest plans | ||
## Licensing | ||
Our task list of Survey Analytics pack: | ||
- Implement data providing server side prototype | ||
- Introduce (or use 3rd party) data processing engine for survey analytics | ||
- Support high load scenario - process at least billion records | ||
## Limitations | ||
- SurveyJS Analytics doesn't support objects as values (e.g. of dropdown, radiogroup and other select question items) | ||
- WordCloud visualizer is too slow for large texts and significant answers count | ||
SurveyJS Analytics is **not available for free commercial usage**. If you want to integrate it into your application, you must purchase a [commercial license](/Licenses#SurveyCreator). |
@@ -1,2 +0,2 @@ | ||
/*Type definitions for SurveyJS Analytics library v1.9.32 | ||
/*Type definitions for SurveyJS Analytics library v1.9.33 | ||
Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/ | ||
@@ -76,2 +76,6 @@ Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/> | ||
changeLocale: string; | ||
en: string; | ||
fr: string; | ||
ru: string; | ||
de: string; | ||
clearButton: string; | ||
@@ -362,115 +366,194 @@ addElement: string; | ||
/** | ||
* This interface contains all available options to setup a visualization panel | ||
* Visualization Panel configuration. Pass it as the third argument to the `VisualizationPanel` constructor: | ||
* | ||
* ```js | ||
* const vizPanel = new SurveyAnalytics.VisualizationPanel(surveyQuestions, surveyResults, vizPanelOptions); | ||
* ``` | ||
*/ | ||
export interface IVisualizationPanelOptions { | ||
/** | ||
* Set the length of a label where the truncation starts. Set to -1 to disable truncate. Default is 27 | ||
* The number of label characters after which truncation starts. | ||
* Set this property to -1 to disable truncation. | ||
* | ||
* Default value: 27 | ||
*/ | ||
labelTruncateLength?: number; | ||
/** | ||
* Set it to true to allow make elements private/public also @see persmissions property | ||
*/ | ||
allowMakeQuestionsPrivate?: boolean; | ||
/** | ||
* An array of series values in data to group data by series | ||
*/ | ||
seriesValues?: string[]; | ||
/** | ||
* Labels for series to display, if not passed the seriesValues are used as labels | ||
*/ | ||
seriesLabels?: string[]; | ||
/** | ||
* Set it to true to force use values as labels | ||
*/ | ||
useValuesAsLabels?: boolean; | ||
/** | ||
* Pass survey instance to use localses from the survey JSON | ||
* Pass a survey instance to use survey locales in the Visualization Panel. | ||
*/ | ||
survey?: SurveyModel; | ||
/** | ||
* dataProvider instance for this visualizer | ||
* A common data provider for all visualizers. | ||
*/ | ||
dataProvider?: DataProvider; | ||
/** | ||
* Set it to false to deny user to hide/show individual questions, this will hide the corresponding question toolbar button | ||
* Allows users to change the visibility of individual charts. | ||
* This property adds a Hide button to each chart. | ||
* | ||
* Default value: `true` | ||
*/ | ||
allowHideQuestions?: boolean; | ||
/** | ||
* Set it to false to disable items drag/drop reordering and dynamic layouting | ||
* Specifies whether to arrange charts based on the available screen space and allow users to reorder them via drag and drop. | ||
* If this property is disabled, charts are displayed one under the other, and users cannot reorder them. | ||
* | ||
* Default value: `true` | ||
* | ||
* [View the "Disable the Layout Engine" example](https://surveyjs.io/Examples/Analytics?id=custom-layout) | ||
* | ||
* @see layoutEngine | ||
*/ | ||
allowDynamicLayout?: boolean; | ||
/** | ||
* Layout engine to be used for layouting inner visualizers @see LayoutEngine | ||
* A layout engine used to arrange charts on the Visualization Panel. | ||
* You can use this property to integrate a third-party layout engine with SurveyJS Analytics. | ||
* | ||
* @see allowDynamicLayout | ||
*/ | ||
layoutEngine?: LayoutEngine; | ||
/** | ||
* Set to true to allow to show percentages in bar charts, this will show the corresponding question toolbar button | ||
* Allows users to switch between absolute and percentage values in bar charts. | ||
* This property adds a Show Percentages button to each bar chart. | ||
* | ||
* Default value: `false` | ||
* | ||
* @see showPercentages | ||
* @see showOnlyPercentages | ||
* @see percentagePrecision | ||
*/ | ||
allowShowPercentages?: boolean; | ||
/** | ||
* Set it to true to show percentages in bar charts | ||
* Specifies whether bar charts display percentages in addition to absolute values. | ||
* Users can change this property value if you enable the `allowShowPercentages` property. | ||
* | ||
* Default value: `false` | ||
* | ||
* @see allowShowPercentages | ||
* @see showOnlyPercentages | ||
* @see percentagePrecision | ||
*/ | ||
showPercentages?: boolean; | ||
/** | ||
* Set it to true to show percentages only in bar charts (don't show values) | ||
* Specifies whether bar charts display only percentages, without absolute values. | ||
* Applies only if the `allowShowPercentages` or `showPercentages` property is enables. | ||
* | ||
* Default value: `false` | ||
* | ||
* @see allowShowPercentages | ||
* @see showPercentages | ||
* @see percentagePrecision | ||
*/ | ||
showOnlyPercentages?: boolean; | ||
/** | ||
* Set percentage decimal presision | ||
* Specifies percentage precision. | ||
* | ||
* Default value: 0 | ||
* | ||
* @see allowShowPercentages | ||
* @see showPercentages | ||
* @see showOnlyPercentages | ||
*/ | ||
percentagePrecision?: number; | ||
/** | ||
* | ||
* Removes the Free Trial bar. | ||
* **IMPORTANT**: You can enable this property only if you have a SurveyJS Analytics commercial license. It is illegal to enable this property without a license. | ||
*/ | ||
haveCommercialLicense?: boolean; | ||
/** | ||
* Set to true to allow change answers order, choices are ordered by answers count, this will show the corresponding question toolbar dropdown | ||
* Allows users to sort answers by answer count. Applies only to bar and scatter charts. | ||
* This property adds a Sorting dropdown to each bar and scatter chart. | ||
* | ||
* Default value: `true` | ||
* | ||
* @see answersOrder | ||
*/ | ||
allowChangeAnswersOrder?: boolean; | ||
/** | ||
* Defauls answers order | ||
* Specifies how to sort answers in bar and scatter charts. | ||
* Accepted values: | ||
* | ||
* - `"default"` (default) - Do not sort answers. | ||
* - `"asc"` - Sort answers by ascending answer count. | ||
* - `"desc"` - Sort answers by descending answer count. | ||
* | ||
* Users can change this property value if you enable the `allowChangeAnswersOrder` property. | ||
* | ||
* @see allowChangeAnswersOrder | ||
*/ | ||
answersOrder?: "default" | "desc" | "desc"; | ||
answersOrder?: "default" | "asc" | "desc"; | ||
/** | ||
* Set to true to allow hide empty answers, this will show the corresponding question toolbar button | ||
* Allows users to hide answers with zero count in bar and scatter charts. | ||
* This property adds a Hide Empty Answers button to each bar and scatter chart. | ||
* | ||
* Default value: `false` | ||
*/ | ||
allowHideEmptyAnswers?: boolean; | ||
/** | ||
* Set to true to hide empty answers | ||
* Hides answers with zero count in bar and scatter charts. | ||
* Users can change this property value if you enable the `allowHideEmptyAnswers` property. | ||
* | ||
* Default value: `false` | ||
* | ||
* @see allowHideEmptyAnswers | ||
*/ | ||
hideEmptyAnswers?: boolean; | ||
/** | ||
* Set to true to allow show top N answers, this will show the corresponding question toolbar dropdown | ||
* Allows users to select whether to show top 5, 10, or 20 answers by answer count. | ||
* This property adds a Top N Answers dropdown to each chart. | ||
* | ||
* Default value: `false` | ||
*/ | ||
allowTopNAnswers?: boolean; | ||
/** | ||
* Set to true to allow show missing answers, this will show the corresponding question toolbar button | ||
* Allows users to show the number of respondents who did not answer a particular question. | ||
* This property adds a Show Missing Answers button to each chart. | ||
* | ||
* Default value: `false` | ||
*/ | ||
allowShowMissingAnswers?: boolean; | ||
/** | ||
* Set to true to allow to use experimental features: e.g. vertical bar chart configuration | ||
*/ | ||
allowExperimentalFeatures?: boolean; | ||
/** | ||
* Set default chart type | ||
* Default chart type. | ||
* | ||
* Accepted values depend on the question type as follows: | ||
* | ||
* - Boolean: `"bar"` | `"pie"` | `"doughnut"` | ||
* - Date, Number: `"bar"` | `"scatter"` | ||
* - Matrix: `"bar"` | `"pie"` | `"doughnut"` | `"stackedbar"` | ||
* - Rating: `"bar"` | `"scatter"` | `"gauge"` | `"bullet"` | ||
* - Radiogroup, Checkbox, Dropdown, Image Picker: `"bar"` | `"pie"` | `"doughnut"` | `"scatter"` | ||
* | ||
* To set a type for an individual chart, access this chart in the `visualizers` array and set its `chartType` property to one of the values described above: | ||
* | ||
* ```js | ||
* const vizPanel = new SurveyAnalytics.VisualizationPanel( ... ); | ||
* vizPanel.visualizers[0].chartType = "stackedbar"; | ||
* ``` | ||
* | ||
*/ | ||
defaultChartType?: string; | ||
/** | ||
* Set to true to allow transpose data: answers in matrix can be grouped by columns or by rows, this will show the corresponding question toolbar button | ||
* Allows users to transpose a visualized matrix question. | ||
* This property adds a Transpose button to charts that visualize matrixes. When users select Per Values, matrix rows go to chart arguments, and matrix columns form chart series. When users select Per Columns, matrix rows form chart series, and matrix columns go to chart arguments. | ||
* | ||
* Default value: `false` | ||
*/ | ||
allowTransposeData?: boolean; | ||
/** | ||
* Set to false to disable selection and cross filtering in charts | ||
* Allows users to cross-filter charts. The filter applies when users selects a series point. | ||
* | ||
* Default value: `true` | ||
*/ | ||
allowSelection?: boolean; | ||
/** | ||
* Pass a function to render content of a visualizer | ||
*/ | ||
renderContent?: Function; | ||
/** | ||
* Pass a function to destroy content of a visualizer | ||
*/ | ||
destroyContent?: Function; | ||
/** | ||
* Set to true to strip HTML tags from titles | ||
* Removes HTML tags from survey element titles. | ||
* Survey element titles can contain HTML markup and are specified by users. An attacker can inject malicious code into the titles. To guard against it, keep this property set to `true`. | ||
* | ||
* Default value: `true` | ||
*/ | ||
@@ -706,3 +789,3 @@ stripHtmlFromTitles?: boolean; | ||
static set haveCommercialLicense(val: boolean); | ||
constructor(survey: SurveyModel, data: Array<Object>, options: DataTablesOptions, _columns?: Array<ITableColumn>); | ||
constructor(survey: SurveyModel, data: Array<Object>, options: DataTablesOptions, _columnsData?: Array<IColumnData>); | ||
destroy(): void; | ||
@@ -749,3 +832,3 @@ setColumnVisibility(columnName: string, isVisible: boolean): void; | ||
static set haveCommercialLicense(val: boolean); | ||
constructor(survey: SurveyModel, data: Array<Object>, options: ITabulatorOptions, _columns?: Array<any>); | ||
constructor(survey: SurveyModel, data: Array<Object>, options: ITabulatorOptions, _columnsData?: Array<IColumnData>); | ||
tabulatorTables: any; | ||
@@ -912,2 +995,3 @@ render(targetNode: HTMLElement | string): void; | ||
onDataItemSelected: (selectedValue: any, selectedText: string) => void; | ||
get showValuesInOriginalOrder(): boolean; | ||
valuesSource(): Array<ItemValue>; | ||
@@ -952,6 +1036,6 @@ getValues(): Array<any>; | ||
export abstract class Table { | ||
protected survey: SurveyModel; | ||
protected _survey: SurveyModel; | ||
protected data: Array<Object>; | ||
protected options: ITableOptions; | ||
protected _columns: Array<ITableColumn>; | ||
protected _options: ITableOptions; | ||
protected _columnsData: Array<IColumnData>; | ||
static showFilesAsImages: boolean; | ||
@@ -961,3 +1045,4 @@ static haveCommercialLicense: boolean; | ||
protected extensions: TableExtensions; | ||
constructor(survey: SurveyModel, data: Array<Object>, options?: ITableOptions, _columns?: Array<ITableColumn>); | ||
protected _columns: Array<IColumn>; | ||
constructor(_survey: SurveyModel, data: Array<Object>, _options?: ITableOptions, _columnsData?: Array<IColumnData>); | ||
protected renderResult: HTMLElement; | ||
@@ -973,2 +1058,4 @@ protected currentPageSize: number; | ||
getData(): Object[]; | ||
get survey(): SurveyModel; | ||
get options(): ITableOptions; | ||
abstract applyFilter(value: string): void; | ||
@@ -986,11 +1073,11 @@ abstract applyColumnFilter(columnName: string, value: string): void; | ||
clearCreatedRows(): void; | ||
protected get useNamesAsTitles(): boolean; | ||
protected buildColumns: (survey: SurveyModel) => ITableColumn[]; | ||
isColumnVisible(column: ITableColumn): boolean; | ||
get columns(): Array<ITableColumn>; | ||
set columns(columns: Array<ITableColumn>); | ||
get useNamesAsTitles(): boolean; | ||
protected buildColumns: (survey: SurveyModel) => IColumn[]; | ||
isColumnVisible(column: IColumn): boolean; | ||
get columns(): Array<IColumn>; | ||
set columns(columns: Array<IColumn>); | ||
protected initTableData(data: Array<any>): void; | ||
moveColumn(from: number, to: number): void; | ||
setColumnLocation(columnName: string, location: QuestionLocation): void; | ||
getColumnByName(columnName: string): ITableColumn; | ||
getColumnByName(columnName: string): IColumn; | ||
setColumnVisibility(columnName: string, isVisible: boolean): void; | ||
@@ -1077,3 +1164,7 @@ setColumnWidth(columnName: string, width: string | number): void; | ||
} | ||
export interface ITableColumn { | ||
export interface ICellData { | ||
question: Question; | ||
displayValue: any; | ||
} | ||
export interface IColumnData { | ||
name: string; | ||
@@ -1088,5 +1179,10 @@ displayName: string; | ||
} | ||
export interface IColumn extends IColumnData { | ||
visibleIndex?: number; | ||
fromJSON(json: any): void; | ||
getCellData(table: Table, data: any): ICellData; | ||
} | ||
export interface ITableState { | ||
locale?: string; | ||
elements?: ITableColumn[]; | ||
elements?: IColumnData[]; | ||
pageSize?: number; | ||
@@ -1093,0 +1189,0 @@ } |
/*! | ||
* surveyjs - SurveyJS Analytics library v1.9.32 | ||
* surveyjs - SurveyJS Analytics library v1.9.33 | ||
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/ | ||
* License: MIT (http://www.opensource.org/licenses/mit-license.php) | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("survey-core")):"function"==typeof define&&define.amd?define("SurveyAnalyticsDatatables",["survey-core"],t):"object"==typeof exports?exports.SurveyAnalyticsDatatables=t(require("survey-core")):e.SurveyAnalyticsDatatables=t(e.Survey)}(window,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return s}));var o=function(){function e(){}return e.createSelector=function(t,n,o){var a=document.createElement("div");a.className="sa-question__select-wrapper";var r=document.createElement("select");return r.className="sa-question__select",t.forEach((function(t){var o=e.createElement("option","",{value:t.value,text:t.text,selected:n(t)});r.appendChild(o)})),r.onchange=o,a.appendChild(r),a},e.createButton=function(t,n,o){return void 0===n&&(n=""),void 0===o&&(o="sa-toolbar__button"),e.createElement("span",o,{innerText:n,onclick:t})},e.createElement=function(e,t,n){void 0===t&&(t="");var o=document.createElement(e);return o.className=t,n&&Object.keys(n).forEach((function(e){o[e]=n[e]})),o},e.createSvgElement=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),n=document.createElementNS("http://www.w3.org/2000/svg","use");return n.setAttributeNS("http://www.w3.org/1999/xlink","href","#sa-svg-"+e),t.appendChild(n),t},e.createSvgButton=function(t){var n=e.createElement("button","sa-table__svg-button");return n.appendChild(e.createSvgElement(t)),n},e.createSvgToggleButton=function(t,n,o,a,r,i,s,l){void 0===s&&(s="first"),void 0===l&&(l="sa-toolbar__button sa-toolbar__svg-button");var c=e.createSvgElement(t),u=e.createSvgElement(n),d=e.createElement("button",l);return"first"===s?(d.title=o,d.appendChild(c)):(s="second")&&(d.title=a,d.appendChild(u)),d.onclick=function(e){"first"===s?(s="second",d.title=a,d.removeChild(c),d.appendChild(u),i(e)):"second"===s&&(s="first",d.title=o,d.removeChild(u),d.appendChild(c),r(e))},d},e.createInput=function(t,n,o){return void 0===n&&(n=""),void 0===o&&(o=""),e.createElement("input",t,{placeholder:n,defaultValue:o})},e}();window.URL.createObjectURL;function a(){var e=o.createElement("div","sa-commercial"),t=o.createElement("a","sa-commercial__text",{href:"https://www.surveyjs.io/Buy",target:"_blank"}),n=o.createElement("span",""),a=o.createSvgElement("noncommercial"),r=o.createElement("span","sa-commercial__product",{innerText:"Please purchase a SurveyJS Analytics developer license to use it in your app."});return e.appendChild(t).appendChild(n),n.appendChild(a),n.appendChild(r),e}var r=function(){function e(){}return e.zipArrays=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],o=function(t){n[t]=[],e.forEach((function(e){n[t].push(e[t])}))},a=0;a<e[0].length;a++)o(a);return n},e.unzipArrays=function(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e,o){t[o]||(t[o]=[]),t[o][n]=e}))})),t},e.sortDictionary=function(e,t,n){var o=this.zipArrays(e,t),a=function(e,t,n){void 0===n&&(n=!0);var o=e[1]<t[1]?1:e[1]==t[1]?0:-1;return n?o:-1*o};o.sort((function(e,t){return n?a(e,t,!1):a(e,t)}));var r=this.unzipArrays(o);return{keys:r[0],values:r[1]}},e.toPercentage=function(e,t){return e/t*100},e}();function i(e){var t=o.createElement("div");return e.forEach((function(e){t.appendChild(o.createElement("a","",{innerText:e.name,download:e.name,href:e.content}))})),t}function s(e){var t=o.createElement("div");return e.forEach((function(e){t.appendChild(o.createElement("img","",{alt:e.name,src:e.content}))})),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));var o={groupButton:"Group By Me",ungroupButton:"Ungroup By Me",selectButton:"Select Me",hideColumn:"Hide column",showColumn:"Show column",makePrivateColumn:"Make column private",makePublicColumn:"Make column public",moveToDetail:"Move to Detail",showAsColumn:"Show as Column",filterPlaceholder:"Search...",removeRows:"Remove rows",showLabel:"Show",entriesLabel:"entries",visualizer_text:"Texts in table",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogram",visualizer_number:"Average",visualizer_choices:"Table",visualizer_selectBase:"Chart",chartType_bar:"Bar",chartType_vbar:"Vertical Bar",chartType_stackedbar:"Stacked Bar",chartType_doughnut:"Doughnut",chartType_pie:"Pie",chartType_scatter:"Scatter",chartType_gauge:"Gauge",chartType_bullet:"Bullet",hideButton:"Hide",makePrivateButton:"Make private",makePublicButton:"Make public",showButton:"Show",filter:"Filter",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default Order",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot as a png",hideEmptyAnswers:"Hide empty answers",showEmptyAnswers:"Show empty answers","topNValueText-1":"All answers",topNValueText5:"Top 5 answers",topNValueText10:"Top 10 answers",topNValueText20:"Top 20 answers",hideMissingAnswers:"Hide missing answers",showMissingAnswers:"Show missing answers",missingAnswersLabel:"Missing answers",noVisualizerForQuestion:"This question type is not visualized yet",noResults:"There are no results yet",showPerValues:"Per Values",showPerColumns:"Per Columns",answer:"Answer",percent:"Percent",responses:"Responses"},a={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=e},getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];t&&t[e]||(t=this.locales[this.defaultLocale]);var n=t[e];return void 0===n&&(n=this.locales.en[e]||e),n},getLocales:function(){var e=[];if(e.push(""),this.supportedLocales&&this.supportedLocales.length>0)for(var t=0;t<this.supportedLocales.length;t++)e.push(this.supportedLocales[t]);else for(var n in this.locales)e.push(n);return e.sort(),e}},r=o;a.locales.en=o,a.localeNames.en="english"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e};function a(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(e){this.table=e,this.renderedExtensions=[]}return e.prototype.render=function(t,n,o){var a=this,r=e.extensions[n];r&&(r=this.sortExtensions(r)).forEach((function(e){if(e.render){var n=e.render(a.table,o);n&&(t.appendChild(n),a.renderedExtensions.push(e))}}))},e.prototype.destroy=function(){this.renderedExtensions.forEach((function(e){e.destroy&&e.destroy()})),this.renderedExtensions=[]},e.registerExtension=function(e){this.extensions[e.location]||(this.extensions[e.location]=[]),this.extensions[e.location].push(e)},e.removeExtension=function(t){if(t){var n=e.extensions[t.location],o=n.indexOf(t);o>=0&&n.splice(o,1)}},e.unregisterExtension=function(t,n){if(n)if(t){var o=e.findExtension(t,n);e.removeExtension(o)}else Object.keys(this.extensions).forEach((function(t){return e.unregisterExtension(t,n)}))},e.findExtension=function(e,t){return this.extensions[e]&&this.extensions[e].filter((function(e){return e.name==t}))[0]||null},e.prototype.sortExtensions=function(e){if(Array.isArray(e))return[].concat(e.filter((function(e){return e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},e.extensions={},e}()},function(e,t,n){"use strict";var o,a;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),function(e){e[e.Column=0]="Column",e[e.Row=1]="Row"}(o||(o={})),function(e){e[e.Text=0]="Text",e[e.FileLink=1]="FileLink",e[e.Image=2]="Image"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var o=n(2),a=n(3),r=n(5),i=n(8),s=n(1),l=n(4),c=n(0),u=function(){function e(t,n,o,i){void 0===o&&(o={}),void 0===i&&(i=[]);var c=this;this.survey=t,this.data=n,this.options=o,this._columns=i,this.haveCommercialLicense=!1,this.currentPageSize=5,this._rows=[],this.onColumnsVisibilityChanged=new a.Event,this.onColumnsLocationChanged=new a.Event,this.onRowRemoved=new a.Event,this.buildColumns=function(e){var t=[];return c.survey.getAllQuestions().forEach((function(e){var n=r.a.Text;"matrix"!==e.getType()?("file"===e.getType()&&(n=r.a.FileLink),"signaturepad"===e.getType()&&(n=r.a.Image),t.push({name:e.name,displayName:c.useNamesAsTitles?e.name:(e.title||"").trim()||e.name,dataType:n,isVisible:!0,isPublic:!0,location:r.b.Column}),(e.hasComment||e.hasOther&&e.getStoreOthersAsComment())&&t.push({name:"".concat(e.name).concat(a.settings.commentPrefix),displayName:e.hasOther?e.otherText:e.commentText,isComment:!0,dataType:n,isVisible:!0,isPublic:!0,location:r.b.Column})):e.rows.forEach((function(o){t.push({name:e.name+"."+o.value,displayName:(c.useNamesAsTitles?e.name:(e.title||"").trim()||e.name)+" - "+(c.useNamesAsTitles?o.value:o.locText.textOrHtml),dataType:n,isVisible:!0,isPublic:!0,location:r.b.Column})}))})),t},this.onStateChanged=new a.Event,this.options||(this.options={}),0===i.length&&(this._columns=this.buildColumns(t)),this.initTableData(n),s.a.currentLocale=this.survey.locale,0===i.length&&(this._columns=this.buildColumns(t)),this.extensions=new l.a(this),this.haveCommercialLicense=e.haveCommercialLicense||!!o&&void 0!==o.haveCommercialLicense&&o.haveCommercialLicense}return e.prototype.getData=function(){return this.data},e.prototype.render=function(e){"string"==typeof e&&(e=document.getElementById(e)),e.innerHTML="",this.haveCommercialLicense||e.appendChild(Object(c.c)())},e.prototype.enableColumnReorder=function(){this.isColumnReorderEnabled=!0},e.prototype.disableColumnReorder=function(){this.isColumnReorderEnabled=!1},e.prototype.getPageNumber=function(){return this.currentPageNumber},e.prototype.setPageNumber=function(e){this.currentPageNumber=e},e.prototype.getPageSize=function(){return this.currentPageSize},e.prototype.setPageSize=function(e){this.currentPageSize=e,this.onStateChanged.fire(this,this.state)},e.prototype.getCreatedRows=function(){return[].concat(this._rows)},e.prototype.clearCreatedRows=function(){this._rows.forEach((function(e){e.destroy()})),this._rows=[]},Object.defineProperty(e.prototype,"useNamesAsTitles",{get:function(){return this.options&&!0===this.options.useNamesAsTitles},enumerable:!1,configurable:!0}),e.prototype.isColumnVisible=function(e){return e.location===r.b.Column&&e.isVisible},Object.defineProperty(e.prototype,"columns",{get:function(){return[].concat(this._columns)},set:function(e){this._columns=e,this.refresh(!0),this.onStateChanged.fire(this,this.state)},enumerable:!1,configurable:!0}),e.prototype.initTableData=function(t){var n=this,o=function(e,t){t.isReady&&(n.refresh(!0),e.onReadyChanged.remove(o))};this.tableData=(t||[]).map((function(t){var i={};return n.survey.data=t,n._columns.forEach((function(s){var l=s.name.split("."),u=l[0],d=l[1],h=t[u],p=n.survey.getQuestionByName(u);if(d&&"object"==typeof h){if(h=h[d],"matrix"===p.getType()){var m=a.ItemValue.getItemByValue(p.columns,h);h=n.options.useValuesAsLabels?m.value:m.locText.textOrHtml}}else p&&(s.isComment?h=p.comment:n.options.useValuesAsLabels?h=p.value:p.isReady?h=p.displayValue:p.onReadyChanged.add(o));s.dataType===r.a.FileLink?Array.isArray(h)&&(i[s.name]=e.showFilesAsImages?Object(c.d)(h).outerHTML:Object(c.e)(h).outerHTML):i[s.name]="string"==typeof h?h:JSON.stringify(h)||"";var f={question:p,displayValue:i[s.name]};"function"==typeof n.options.onGetQuestionValue&&n.options.onGetQuestionValue(f),i[s.name]=f.displayValue})),i}))},e.prototype.moveColumn=function(e,t){var n=this._columns.splice(e,1);this._columns.splice(t,0,n[0]),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnLocation=function(e,t){this.getColumnByName(e).location=t,this.onColumnsLocationChanged.fire(this,{columnName:e,location:t}),this.onStateChanged.fire(this,this.state)},e.prototype.getColumnByName=function(e){return this._columns.filter((function(t){return t.name===e}))[0]},e.prototype.setColumnVisibility=function(e,t){this.getColumnByName(e).isVisible=t,this.onColumnsVisibilityChanged.fire(this,{columnName:e,columnVisibility:t}),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnWidth=function(e,t){this.getColumnByName(e).width=t,this.onStateChanged.fire(this,this.state)},e.prototype.removeRow=function(e){var t=this._rows.indexOf(e);this._rows.splice(t,1),this.onRowRemoved.fire(this,{row:e})},Object.defineProperty(e.prototype,"locale",{get:function(){return s.a.currentLocale},set:function(e){this.survey.locale=e,s.a.currentLocale=e,this.refresh(!0),this.onStateChanged.fire(this,this.state)},enumerable:!1,configurable:!0}),e.prototype.getLocales=function(){return[].concat(this.survey.getUsedLocales())},e.prototype.refresh=function(e){if(void 0===e&&(e=!1),e&&this.initTableData(this.data),this.isRendered){this.currentPageNumber=this.getPageNumber();var t=this.renderResult;this.destroy(),this.render(t),this.setPageSize(this.currentPageSize),this.setPageNumber(this.currentPageNumber)}},e.prototype.destroy=function(){this.clearCreatedRows(),this.extensions.destroy(),this.renderResult.innerHTML="",this.renderResult=void 0},Object.defineProperty(e.prototype,"isRendered",{get:function(){return!!this.renderResult},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return{locale:s.a.currentLocale,elements:[].concat(this._columns),pageSize:this.currentPageSize}},set:function(e){e&&(void 0!==e.locale&&(s.a.currentLocale=e.locale,this.survey.locale=e.locale,this.initTableData(this.data)),void 0!==e.elements&&(this._columns=e.elements),void 0!==e.pageSize&&(this.currentPageSize=e.pageSize))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"permissions",{get:function(){return this._columns.map((function(e){return{name:e.name,isPublic:e.isPublic}}))},set:function(e){var t=this._columns.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.isPublic=e.isPublic)})),Object(o.a)({},t)}));this._columns=[].concat(t),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),e.showFilesAsImages=!1,e.haveCommercialLicense=!1,e}(),d=function(){function e(e,t,n){var o=this;this.table=e,this.extensionsContainer=t,this.detailsContainer=n,this.detailedRowClass="sa-table__detail-row",this.isDetailsExpanded=!1,this.onToggleDetails=new a.Event,this.onColumnLocationChangedCallback=function(){o.closeDetails()},this.details=new i.a(e,this,n),this.extensions=new l.a(e),e.onColumnsLocationChanged.add(this.onColumnLocationChangedCallback)}return e.prototype.render=function(){this.extensions.render(this.extensionsContainer,"row",{row:this})},e.prototype.openDetails=function(){this.details.open(),this.getElement().className+=" "+this.detailedRowClass,this.onToggleDetails.fire(this,{isExpanded:!0}),this.isDetailsExpanded=!0},e.prototype.closeDetails=function(){this.details.close(),this.getElement().classList.remove(this.detailedRowClass),this.onToggleDetails.fire(this,{isExpanded:!1}),this.isDetailsExpanded=!1},e.prototype.toggleDetails=function(){this.isDetailsExpanded?this.closeDetails():this.openDetails()},e.prototype.getIsSelected=function(){return this.isSelected},e.prototype.toggleSelect=function(){this.isSelected=!this.isSelected},e.prototype.remove=function(){this.table.removeRow(this)},e.prototype.destroy=function(){this.table.onColumnsLocationChanged.remove(this.onColumnLocationChangedCallback),this.extensions.destroy()},e}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),a=n(5),r=n(4),i=n(1),s=function(){function e(e,t,n){var r=this;this.table=e,this.row=t,this.targetNode=n,this.location="details",this.createShowAsColumnButton=function(e){var t=o.b.createElement("button","sa-table__btn sa-table__btn--gray");return t.appendChild(document.createTextNode(i.a.getString("showAsColumn"))),t.onclick=function(t){t.stopPropagation(),r.table.setColumnLocation(e,a.b.Column)},t},this.detailsTable=o.b.createElement("table","sa-table__detail-table"),this.table.onColumnsLocationChanged.add((function(){r.close()}))}return e.prototype.open=function(){var e=this;this.detailsTable.innerHTML="";var t=[];this.table.columns.filter((function(e){return e.location===a.b.Row&&e})).forEach((function(n){var r=o.b.createElement("tr","sa-table__detail"),i=o.b.createElement("td");i.appendChild(document.createTextNode(n.displayName));var s=o.b.createElement("td");s.textContent=e.row.getRowData()[n.name],n.dataType===a.a.Image&&(s.innerHTML="<image src='"+s.textContent+"'/>");var l=o.b.createElement("td");l.appendChild(e.createShowAsColumnButton(n.name)),r.appendChild(i),r.appendChild(s),r.appendChild(l),t.push(r)}));var n=o.b.createElement("tr","sa-table__detail"),i=o.b.createElement("td","",{colSpan:3});new r.a(this.table).render(i,"details",{row:this.row}),0!=i.children.length&&(n.appendChild(i),t.push(n)),t.forEach((function(t){e.detailsTable.appendChild(t)})),this.targetNode.appendChild(this.detailsTable)},e.prototype.close=function(){this.detailsTable.parentNode&&this.detailsTable.parentNode.removeChild(this.detailsTable)},e}()},function(e,t,n){"use strict";var o=n(1);o.a.locales.fa={groupButton:"گروه بندی با",ungroupButton:"حذف گروه",selectButton:"انتخاب",hideColumn:"مخفی کردن ستون",showColumn:"نمایش ستون",moveToDetail:"انتقال به جزئیات",showAsColumn:"نمایش به عنوان ستون",visualizer_text:"متون در جدول",visualizer_wordcloud:"ابر کلمات",chartType_bar:"میله ای",chartType_pie:"دابره ای(pie)",chartType_scatter:"پراکندگی(Scatter)",chartType_gauge:"عقربه ای",chartType_bullet:"Bullet",hideButton:"مخفی",resetFilter:"بازنشانی فیلترها",clearButton:"پاک کردن",addElement:"انتخاب سوال برای نمایش..."},o.a.localeNames.fa="Farsi(Persian)"},function(e,t,n){"use strict";var o=n(1);o.a.locales.fr={groupButton:"Grouper",ungroupButton:"Dissocier",selectButton:"Sélectionner",hideColumn:"Masquer colonne",showColumn:"Afficher colonne",makePrivateColumn:"Rendre la colonne privé",makePublicColumn:"Rendre la colonne public",moveToDetail:"Déplacer vers détails",showAsColumn:"Afficher en colonne",visualizer_text:"Textes en table",visualizer_wordcloud:"Nuages de mots",chartType_bar:"Barres",chartType_stackedbar:"Barres empilées",chartType_doughnut:"Anneau",chartType_pie:"Secteurs",chartType_scatter:"Nuages de points",chartType_gauge:"Gauge",chartType_bullet:"Bulles",filter:"Filtre",hideButton:"Masquer",resetFilter:"Rafraichir Filtres",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures",otherCommentTitle:"Autre élément et commentaires",noVisualizerForQuestion:"Ce type de question n'est pas encore visualisé",noResults:"Il n'y a pas encore de résultats"},o.a.localeNames.fr="French"},function(e,t,n){"use strict";var o=n(1);o.a.locales.no={groupButton:"Grupper",ungroupButton:"Opphev gruppering",selectButton:"Velg",hideColumn:"Skjul kolonne",showColumn:"Vis kolonne",makePrivateColumn:"Gjør kolonne privat",makePublicColumn:"Gjør kolonne offentlig",moveToDetail:"Flytt til detaljert visning",showAsColumn:"Vis som kolonne",filterPlaceholder:"Søk...",removeRows:"Fjern rader",showLabel:"Vis",entriesLabel:"oppføringer",visualizer_text:"Tabellvisning",visualizer_wordcloud:"Ordsky",chartType_bar:"Stolpediagram",chartType_stackedbar:"Stablet stolpediagram",chartType_doughnut:"Hjuldiagram",chartType_pie:"Sektordiagram",chartType_scatter:"Punktdiagram",chartType_gauge:"Målediagram",chartType_bullet:"Kulediagram",hideButton:"Skjul",makePrivateButton:"Gjør privat",makePublicButton:"Gjør offentlig",showButton:"Vis",resetFilter:"Nullstill filter",changeLocale:"Bytt språk",clearButton:"Tøm",addElement:"Velg spørsmål...",defaultOrder:"Standard",ascOrder:"Stigende",descOrder:"Synkende",showMinorColumns:"Vis mindre kolonner",otherCommentTitle:"Annet og kommentarer",showPercentages:"Vis prosenter",hidePercentages:"Skjul prosenter"},o.a.localeNames.no="Norwegian"},function(e,t,n){"use strict";var o=n(1);o.a.locales.pt={groupButton:"Agrupar Por Mim",ungroupButton:"Desagrupar Por Mim",selectButton:"Selecionar",hideColumn:"Esconder coluna",showColumn:"Mostrar coluna",makePrivateColumn:"Tornar coluna privada",makePublicColumn:"Tornar coluna pública",moveToDetail:"Mover para Detalhes",showAsColumn:"Mostrar como Coluna",filterPlaceholder:"Pesquisar...",removeRows:"Remover linhas",showLabel:"Mostrar",entriesLabel:"entradas",visualizer_text:"Textos em tabela",chartType_bar:"Barra",chartType_stackedbar:"Barra Empilhada",chartType_doughnut:"Rosquinha",chartType_pie:"Torta",chartType_scatter:"Lastro",chartType_gauge:"Escala",chartType_bullet:"Bala",hideButton:"Esconder",makePrivateButton:"Tornar privado",makePublicButton:"Tornar público",showButton:"Mostrar",filter:"Filtrar",resetFilter:"Restaurar Filtro",changeLocale:"Mudar Localização",clearButton:"Limpar",addElement:"Escolher questão para mostrar...",defaultOrder:"Ordenação Padrão",ascOrder:"Ascendente",descOrder:"Descendente",showMinorColumns:"Mostrar colunas menores",otherCommentTitle:"Outros itens e comentários",showPercentages:"Mostrar percentuais",hidePercentages:"Esconder percentuais",saveDiagramAsPNG:"Baixar plot como png",hideEmptyAnswers:"Esconder perguntas vazias",showEmptyAnswers:"Mostrar perguntas vazias","topNValueText-1":"Todas as respostas",topNValueText5:"Primeiras 5 respostas",topNValueText10:"Primeiras 10 respostas",topNValueText20:"Primeiras 20 respostas",noVisualizerForQuestion:"Este tipo de pergunta ainda não foi visualizada",noResults:"Ainda não possui resultados"},o.a.localeNames.pt="Portuguese"},function(e,t,n){"use strict";var o=n(1);o.a.locales.ru={groupButton:"Group By Me",ungroupButton:"Ungroup By Me",selectButton:"Select Me",hideColumn:"Hide column",showColumn:"Show column",makePrivateColumn:"Make column private",makePublicColumn:"Make column public",moveToDetail:"Move to Detail",filter:"Фильтр",showAsColumn:"Show as Column",visualizer_text:"Texts in table",visualizer_wordcloud:"Wordcloud",chartType_bar:"Bar",chartType_stackedbar:"Stacked Bar",chartType_doughnut:"Doughnut",chartType_pie:"Pie",chartType_scatter:"Scatter",chartType_gauge:"Gauge",chartType_bullet:"Bullet",hideButton:"Скрыть",showButton:"Показать",resetFilter:"Очистить фильтр",changeLocale:"Сменить язык",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Другое и комментарии",noVisualizerForQuestion:"Этот тип вопроса еще не поддерживается аналитикой",noResults:"Результаты отсутствуют"},o.a.localeNames.ru="Russian"},function(e,t,n){"use strict";var o=n(1);o.a.locales.nl={groupButton:"Groep door mij",ungroupButton:"Degroeperen bij mij",selectButton:"Selecteer mij",hideColumn:"Kolom verbergen",showColumn:"Toon kolom",makePrivateColumn:"Kolom privé maken",makePublicColumn:"Maak de kolom openbaar",moveToDetail:"Ga naar Detail",showAsColumn:"Weergeven als kolom",filterPlaceholder:"Zoeken...",removeRows:"Verwijder rijen",showLabel:"Tonen",entriesLabel:"inzendingen",visualizer_text:"Teksten in tabel",visualizer_wordcloud:"Wordcloud",chartType_bar:"Bar",chartType_stackedbar:"Gestapelde Bar",chartType_doughnut:"Donut",chartType_pie:"Taart",chartType_scatter:"Verstrooien",chartType_gauge:"Meter",chartType_bullet:"Kogel",hideButton:"Verbergen",makePrivateButton:"Maak prive",makePublicButton:"Openbaar maken",showButton:"Tonen",resetFilter:"Filter resetten",changeLocale:"Wijzig de landinstelling",clearButton:"Doorzichtig",addElement:"Kies een vraag om weer te geven ...",defaultOrder:"Standaardvolgorde",ascOrder:"Oplopend",descOrder:"Aflopend",showMinorColumns:"Toon kleine kolommen",otherCommentTitle:"Andere items en opmerkingen",showPercentages:"Percentages weergeven",hidePercentages:"Verberg percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot als een png",hideEmptyAnswers:"Verberg lege antwoorden",showEmptyAnswers:"Toon lege antwoorden","topNValueText-1":"Alle antwoorden",topNValueText5:"Top 5 antwoorden",topNValueText10:"Top 10 antwoorden",topNValueText20:"Top 20 antwoorden"},o.a.localeNames.nl="Dutch"},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="sa-svg-detail"><circle cx="1.5" cy="8.5" r="1.5"></circle><circle cx="7.5" cy="8.5" r="1.5"></circle><circle cx="13.5" cy="8.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="sa-svg-drag"><path d="M13 5l-1 1 1 1H9V3l1 1 1-1-3-3-3 3 1 1 1-1v4H3l1-1-1-1-3 3 3 3 1-1-1-1h4v4l-1-1-1 1 3 3 3-3-1-1-1 1V9h4l-1 1 1 1 3-3z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-hide"><path d="M12.79 4.2L16 1l-1-1-3.32 3.32C10.57 2.55 9.32 2 8 2 3.63 2 0 7.97 0 7.97s1.27 2.1 3.21 3.82l-3.23 3.23.98.98 3.35-3.34C5.41 13.44 6.67 14 8 14c4.37 0 8-6 8-6s-1.27-2.09-3.21-3.8zM2 7.97c1.07-1.47 3.61-4 6-4 .8 0 1.6.27 2.35.68l-.78.78c-.46-.29-.99-.46-1.57-.46-1.66 0-3 1.34-3 3 0 .58.17 1.11.46 1.57l-.97.97A13.38 13.38 0 0 1 2 7.97zm6 4c-.8 0-1.59-.27-2.33-.67l.78-.77c.45.27.98.44 1.55.44 1.66 0 3-1.34 3-3 0-.57-.17-1.09-.44-1.55l.98-.98c1.11.87 2.01 1.91 2.46 2.52-1.07 1.48-3.61 4.01-6 4.01z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-makeprivate"><circle cx="8" cy="4" r="3"></circle><path d="M8 8c-3.31 0-6 2.73-6 4.67S5.27 15 8 15s6-.4 6-2.33S11.31 8 8 8z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-makepublic"><circle cx="6" cy="5" r="3"></circle><path d="M10 5c0 .34-.06.67-.14.99.05 0 .09.01.14.01 1.66 0 3-1.34 3-3s-1.34-3-3-3C8.97 0 8.07.52 7.53 1.3 8.98 1.91 10 3.33 10 5zM6 9c-3.31 0-6 2.73-6 4.67S3.27 16 6 16s6-.4 6-2.33S9.31 9 6 9zM10 7c-.19 0-.38.01-.57.03a4.14 4.14 0 0 1-1.37 1.39c3 .83 5.23 3.31 5.42 5.28 1.44-.31 2.52-.92 2.52-2.03C16 9.74 13.31 7 10 7z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-movetodetails"><circle cx="1.5" cy="14.5" r="1.5"></circle><circle cx="7.5" cy="14.5" r="1.5"></circle><circle cx="13.5" cy="14.5" r="1.5"></circle><path d="M12 1h3v9h-3zM2.02 7.02L1 6 0 7l3 3 3-3-1-1-.94.94C4.33 4.73 6.21 3 8.5 3c.17 0 .33.03.5.05V1.03C8.83 1.01 8.67 1 8.5 1 5.08 1 2.27 3.66 2.02 7.02z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-noncommercial"><path d="M8 0L0 15h16L8 0zm1 13H7v-2h2v2zm-2-3V5h2v5H7z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-sorting"><path d="M8 3l2 2 1-1-3-3-3 3 1 1zM8 13l-2-2-1 1 3 3 3-3-1-1z"></path></symbol></svg>'},function(e,t,n){"use strict";var o=n(1),a=n(0),r=n(4);r.a.registerExtension({location:"row",name:"details",visibleIndex:0,render:function(e,t){var n=a.b.createSvgButton("detail");return n.title=o.a.getString("showMinorColumns"),n.className+=" sa-table__row-extension",n.onclick=function(){t.row.toggleDetails()},n}}),r.a.registerExtension({location:"row",name:"select",visibleIndex:-1,render:function(e,t){var n=t.row,o=a.b.createElement("input","sa-table__row-extension",{type:"checkbox"});return o.checked=n.getIsSelected(),o.onchange=function(){n.toggleSelect()},o}})},function(e,t,n){"use strict";var o=n(1),a=n(0),r=n(4);r.a.registerExtension({location:"header",name:"filter",visibleIndex:0,render:function(e){var t=a.b.createInput("sa-table__global-filter sa-table__header-extension",o.a.getString("filterPlaceholder"));return t.onchange=function(t){e.applyFilter(t.target.value)},t}}),r.a.registerExtension({location:"header",name:"showcolumn",visibleIndex:2,destroy:function(){this.onDestroy()},render:function(e){var t=a.b.createElement("select","sa-table__show-column sa-table__header-extension");function n(){var n=e.columns.filter((function(e){return!e.isVisible}));if(0!=n.length){t.style.display="inline-block",t.innerHTML="";var r=a.b.createElement("option","",{text:o.a.getString("showColumn"),disabled:!0,selected:!0});t.appendChild(r),n.forEach((function(e){var n=e.displayName||e.name;n&&n.length>20&&(n=n.substring(0,20)+"...");var o=a.b.createElement("option","",{text:n,title:e.displayName,value:e.name});t.appendChild(o)}))}else t.style.display="none"}t.onchange=function(t){var n=t.target.value;t.stopPropagation(),n&&e.setColumnVisibility(n,!0)},n();var r=function(){n()};return e.onColumnsVisibilityChanged.add(r),this.onDestroy=function(){e.onColumnsVisibilityChanged.remove(r)},t}}),r.a.registerExtension({location:"header",name:"showentries",visibleIndex:3,render:function(e){var t=a.b.createElement("div","sa-table__entries"),n=a.b.createElement("span","sa-table__entries-label sa-table__entries-label--right",{innerText:o.a.getString("showLabel")}),r=a.b.createElement("span","sa-table__entries-label sa-table__entries-label--left",{innerText:o.a.getString("entriesLabel")});return t.appendChild(n),t.appendChild(function(e){var t=a.b.createElement("select");return["1","5","10","25","50","75","100"].forEach((function(e){var n=a.b.createElement("option","",{value:e,text:e});t.appendChild(n)})),t.value=String(e.getPageSize()),t.onchange=function(){e.setPageSize(Number(t.value))},t}(e)),t.appendChild(r),t}}),r.a.registerExtension({location:"header",name:"removerows",visibleIndex:-1,render:function(e){var t=a.b.createElement("button","sa-table__btn sa-table__btn--green sa-table__header-extension ",{innerText:o.a.getString("removeRows")});return t.onclick=function(){e.getCreatedRows().forEach((function(e){e.getIsSelected()&&e.remove()}))},t}}),r.a.registerExtension({location:"header",name:"changelocale",visibleIndex:1,render:function(e){var t=e.getLocales();if(t.length<2)return null;var n=a.b.createElement("select","sa-table__header-extension",{});return[o.a.getString("changeLocale")].concat(t).forEach((function(e){var t=a.b.createElement("option","",{value:e,text:e});n.appendChild(t)})),n.onchange=function(){e.locale=n.value},n}})},function(e,t,n){"use strict";var o=n(0),a=n(1),r=n(4),i=n(5);r.a.registerExtension({location:"column",name:"drag",visibleIndex:0,render:function(e,t){var n=o.b.createElement("button","sa-table__svg-button sa-table__drag-button");return n.appendChild(o.b.createSvgElement("drag")),n.onmousedown=function(t){e.enableColumnReorder()},n}}),r.a.registerExtension({location:"column",name:"sort",visibleIndex:1,render:function(e,t){var n=a.a.getString("descOrder"),r=a.a.getString("ascOrder"),i=o.b.createSvgButton("sorting");i.title="";var s="asc";return i.onclick=function(){"asc"==s?(i.title=n,s="desc"):(i.title=r,s="asc"),e.sortByColumn(t.columnName,s)},i.ondrag=function(e){e.stopPropagation()},i}}),r.a.registerExtension({location:"column",name:"hide",visibleIndex:2,render:function(e,t){var n=o.b.createSvgButton("hide");return n.title=a.a.getString("hideColumn"),n.onclick=function(){e.setColumnVisibility(t.columnName,!1)},n}}),r.a.registerExtension({location:"column",name:"movetodetails",visibleIndex:3,render:function(e,t){var n=o.b.createSvgButton("movetodetails");return n.title=a.a.getString("moveToDetail"),n.onclick=function(n){n.stopPropagation(),e.setColumnLocation(t.columnName,i.b.Row)},n}}),r.a.registerExtension({location:"column",name:"filter",visibleIndex:4,render:function(e,t){var n=o.b.createInput("sa-table__filter",a.a.getString("filterPlaceholder"));return n.onclick=function(e){return e.stopPropagation()},n.onchange=function(o){e.applyColumnFilter(t.columnName,n.value)},n}}),r.a.registerExtension({location:"column",name:"makepublic",visibleIndex:-1,render:function(e,t){var n=o.b.createElement("button"),r=o.b.createSvgElement("makeprivate"),i=o.b.createSvgElement("makepublic"),s=e.getColumnByName(t.columnName);function l(e){e.isPublic?(n.className="sa-table__svg-button",n.title=a.a.getString("makePrivateColumn"),r.style.display="none",i.style.display="block"):(n.className="sa-table__svg-button sa-table__svg-button--active",n.title=a.a.getString("makePublicColumn"),r.style.display="block",i.style.display="none")}return l(s),n.appendChild(r),n.appendChild(i),n.onclick=function(t){t.stopPropagation(),s.isPublic=!s.isPublic,l(s),e.onPermissionsChangedCallback&&e.onPermissionsChangedCallback(e)},n}})},,,function(e,t,n){},,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"localization",(function(){return o.a})),n.d(t,"surveyStrings",(function(){return o.b})),n.d(t,"Table",(function(){return a.a})),n.d(t,"TableRow",(function(){return a.b})),n.d(t,"DataTables",(function(){return h})),n.d(t,"DatatablesRow",(function(){return p})),n.d(t,"TableExtensions",(function(){return m.a})),n.d(t,"DocumentHelper",(function(){return l.b}));var o=n(1),a=(n(9),n(10),n(11),n(12),n(13),n(14),n(16),n(17),n(18),n(8),n(6)),r=n(2),i=n(3),s=n(5),l=n(0);n(21);if(document){var c=n(15),u=document.createElement("div");u.style.display="none",u.innerHTML=c,document.head.appendChild(u)}var d=window.jQuery,h=function(e){function t(t,n,o,a){void 0===a&&(a=[]);var r=e.call(this,t,n,o,a)||this;return r.currentPageNumber=0,r.onColumnsReorder=new i.Event,r}return Object(r.b)(t,e),t.initJQuery=function(e){d=e},Object.defineProperty(t,"haveCommercialLicense",{set:function(e){a.a.haveCommercialLicense=e},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){if(this.renderResult){var t=this.renderResult.children[0];d.fn.DataTable.isDataTable(t)&&d(t).DataTable().destroy(),this.datatableApi=void 0,e.prototype.destroy.call(this)}},t.prototype.setColumnVisibility=function(t,n){e.prototype.setColumnVisibility.call(this,t,n),this.datatableApi.column(t+":name").visible(n)},t.prototype.setColumnLocation=function(t,n){e.prototype.setColumnLocation.call(this,t,n);var o=this.datatableApi.column(t+":name"),a=n==s.b.Column;o.visible(a)},t.prototype.applyFilter=function(e){this.datatableApi.search(e).draw(!1)},t.prototype.applyColumnFilter=function(e,t){var n=this.datatableApi.column(e+":name");n.search()!==t&&n.search(t).draw(!1)},t.prototype.sortByColumn=function(e,t){this.datatableApi.column(e+":name").order(t).draw(!1)},t.prototype.setPageSize=function(t){e.prototype.setPageSize.call(this,t),this.isRendered&&this.datatableApi.page.len(t).draw(!1)},t.prototype.setPageNumber=function(t){e.prototype.setPageNumber.call(this,t),this.isRendered&&this.datatableApi.page(t).draw(!1)},t.prototype.getPageNumber=function(){return this.isRendered?this.datatableApi.page():0},t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t);"string"==typeof t&&(t=document.getElementById(t)),t.className+=" sa-table sa-datatables";var o=l.b.createElement("table",""),a=this.getColumns(),r=a.map((function(e){return e.data})),i="sa-table__btn sa-table__btn--small sa-table__btn--gray",s=d.extend(!0,{buttons:[{extend:"copy",className:i},{extend:"csv",className:i},{extend:"print",className:i}],dom:'B<"sa-table__header-extensions">prtip',data:this.tableData,pageLength:this.currentPageSize,responsive:!1,scrollX:!0,columns:a,colReorder:{fixedColumnsLeft:1,realtime:!1},language:{sSearch:" ",searchPlaceholder:"Search...",sLengthMenu:"Show _MENU_ entries",paginate:{previous:" ",next:" "}},select:"api",headerCallback:function(e,t,a,i,s){var c=d(o).dataTable().api(),u=n;c.columns().eq(0).each((function(e){var t=d(c.columns(e).header());if(t.unbind("click.DT"),r[e]&&0===t.has("button").length){var o=l.b.createElement("div","sa-table__action-container");u.extensions.render(o,"column",{columnName:r[e]}),o.onmousedown=function(e){u.isColumnReorderEnabled?n.disableColumnReorder():e.stopPropagation()}}t.prepend(o)}))}},this.options);t.appendChild(o),o.className="sa-datatables__table display responsive dataTable";var c=this.datatableApi=d(o).DataTable(s),u=d("div.sa-table__header-extensions")[0];this.extensions.render(u,"header"),c.page(this.currentPageNumber),this.datatableApi.rowGroup().enable(!1).draw(!1),c.on("column-reorder",(function(e,t,o){n.moveColumn(o.from-1,o.to-1),n.disableColumnReorder(),n.onColumnsReorder.fire(n,{columns:n.columns})})),c.rows().eq(0).each((function(e){var t=c.row(e),o=l.b.createElement("tr"),a=l.b.createElement("td","sa-datatables__details-container");o.appendChild(a);var r=t.node(),i=t.cell(t.index(),0).node(),s=new p(n,i,a,t);s.onToggleDetails.add((function(e,t){t.isExpanded?(a.colSpan=r.childElementCount,r.parentNode.insertBefore(o,r.nextSibling)):o.parentNode&&o.parentNode.removeChild(o)})),n._rows.push(s),s.render()})),c.draw(!1),this.renderResult=t},t.prototype.getColumns=function(){var e=this,t=this.columns.map((function(t){var n=e.survey.getQuestionByName(t.name),o=n&&(e.options.useNamesAsTitles?n.name:n.title)||t.displayName;return{name:t.name,data:t.name,sTitle:(null==d?void 0:d.fn.dataTable.render.text().display(o))||o,visible:e.isColumnVisible(t),orderable:!1,defaultContent:"",width:"number"==typeof t.width?t.width+"px":t.width,render:function(e,n,o){var a=o[t.name];return t.dataType===s.a.FileLink?a:t.dataType===s.a.Image?"<image src='"+a+"'/>":"string"==typeof a?d("<div>").text(a).html():JSON.stringify(a)}}}));return[{orderable:!1,data:null,defaultContent:""}].concat(t)},t.prototype.layout=function(){this.datatableApi&&this.datatableApi.columns.adjust()},t}(a.a),p=function(e){function t(t,n,o,a){var r=e.call(this,t,n,o)||this;return r.table=t,r.extensionsContainer=n,r.detailsContainer=o,r._innerRow=a,r.rowElement=a.node(),r.rowData=a.data(),r._innerRow=r._innerRow.row(r.rowElement),t.onColumnsReorder.add((function(){r.render()})),r}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"innerRow",{get:function(){return this._innerRow.row(this.rowElement)},enumerable:!1,configurable:!0}),t.prototype.getElement=function(){return this.rowElement},t.prototype.getRowData=function(){return this.rowData},t.prototype.getDataPosition=function(){return this.innerRow.index()},t.prototype.remove=function(){this.innerRow.remove().draw(),e.prototype.remove.call(this)},t}(a.b),m=n(4)}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("survey-core")):"function"==typeof define&&define.amd?define("SurveyAnalyticsDatatables",["survey-core"],t):"object"==typeof exports?exports.SurveyAnalyticsDatatables=t(require("survey-core")):e.SurveyAnalyticsDatatables=t(e.Survey)}(window,(function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return s}));var o=function(){function e(){}return e.createSelector=function(t,n,o){var r=document.createElement("div");r.className="sa-question__select-wrapper";var a=document.createElement("select");return a.className="sa-question__select",t.forEach((function(t){var o=e.createElement("option","",{value:t.value,text:t.text,selected:n(t)});a.appendChild(o)})),a.onchange=o,r.appendChild(a),r},e.createButton=function(t,n,o){return void 0===n&&(n=""),void 0===o&&(o="sa-toolbar__button"),e.createElement("span",o,{innerText:n,onclick:t})},e.createElement=function(e,t,n){void 0===t&&(t="");var o=document.createElement(e);return o.className=t,n&&Object.keys(n).forEach((function(e){o[e]=n[e]})),o},e.createSvgElement=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),n=document.createElementNS("http://www.w3.org/2000/svg","use");return n.setAttributeNS("http://www.w3.org/1999/xlink","href","#sa-svg-"+e),t.appendChild(n),t},e.createSvgButton=function(t){var n=e.createElement("button","sa-table__svg-button");return n.appendChild(e.createSvgElement(t)),n},e.createSvgToggleButton=function(t,n,o,r,a,i,s,l){void 0===s&&(s="first"),void 0===l&&(l="sa-toolbar__button sa-toolbar__svg-button");var u=e.createSvgElement(t),c=e.createSvgElement(n),d=e.createElement("button",l);return"first"===s?(d.title=o,d.appendChild(u)):(s="second")&&(d.title=r,d.appendChild(c)),d.onclick=function(e){"first"===s?(s="second",d.title=r,d.removeChild(u),d.appendChild(c),i(e)):"second"===s&&(s="first",d.title=o,d.removeChild(c),d.appendChild(u),a(e))},d},e.createInput=function(t,n,o){return void 0===n&&(n=""),void 0===o&&(o=""),e.createElement("input",t,{placeholder:n,defaultValue:o})},e}();window.URL.createObjectURL;function r(){var e=o.createElement("div","sa-commercial"),t=o.createElement("a","sa-commercial__text",{href:"https://www.surveyjs.io/Buy",target:"_blank"}),n=o.createElement("span",""),r=o.createSvgElement("noncommercial"),a=o.createElement("span","sa-commercial__product",{innerText:"Please purchase a SurveyJS Analytics developer license to use it in your app."});return e.appendChild(t).appendChild(n),n.appendChild(r),n.appendChild(a),e}var a=function(){function e(){}return e.zipArrays=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],o=function(t){n[t]=[],e.forEach((function(e){n[t].push(e[t])}))},r=0;r<e[0].length;r++)o(r);return n},e.unzipArrays=function(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e,o){t[o]||(t[o]=[]),t[o][n]=e}))})),t},e.sortDictionary=function(e,t,n){var o=this.zipArrays(e,t),r=function(e,t,n){void 0===n&&(n=!0);var o=e[1]<t[1]?1:e[1]==t[1]?0:-1;return n?o:-1*o};o.sort((function(e,t){return n?r(e,t,!1):r(e,t)}));var a=this.unzipArrays(o);return{keys:a[0],values:a[1]}},e.toPercentage=function(e,t){return e/t*100},e}();function i(e){var t=o.createElement("div");return e.forEach((function(e){t.appendChild(o.createElement("a","",{innerText:e.name,download:e.name,href:e.content}))})),t}function s(e){var t=o.createElement("div");return e.forEach((function(e){t.appendChild(o.createElement("img","",{alt:e.name,src:e.content}))})),t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var o={groupButton:"Group By Me",ungroupButton:"Ungroup By Me",selectButton:"Select Me",hideColumn:"Hide column",showColumn:"Show column",makePrivateColumn:"Make column private",makePublicColumn:"Make column public",moveToDetail:"Move to Detail",showAsColumn:"Show as Column",filterPlaceholder:"Search...",removeRows:"Remove rows",showLabel:"Show",entriesLabel:"entries",visualizer_text:"Texts in table",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogram",visualizer_number:"Average",visualizer_choices:"Table",visualizer_selectBase:"Chart",chartType_bar:"Bar",chartType_vbar:"Vertical Bar",chartType_stackedbar:"Stacked Bar",chartType_doughnut:"Doughnut",chartType_pie:"Pie",chartType_scatter:"Scatter",chartType_gauge:"Gauge",chartType_bullet:"Bullet",hideButton:"Hide",makePrivateButton:"Make private",makePublicButton:"Make public",showButton:"Show",filter:"Filter",resetFilter:"Reset Filter",changeLocale:"Change Locale",en:"English",fr:"Français",ru:"Русский",de:"Deutsch",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default Order",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot as a png",hideEmptyAnswers:"Hide empty answers",showEmptyAnswers:"Show empty answers","topNValueText-1":"All answers",topNValueText5:"Top 5 answers",topNValueText10:"Top 10 answers",topNValueText20:"Top 20 answers",hideMissingAnswers:"Hide missing answers",showMissingAnswers:"Show missing answers",missingAnswersLabel:"Missing answers",noVisualizerForQuestion:"This question type is not visualized yet",noResults:"There are no results yet",showPerValues:"Per Values",showPerColumns:"Per Columns",answer:"Answer",percent:"Percent",responses:"Responses"},r={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=e},getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];t&&t[e]||(t=this.locales[this.defaultLocale]);var n=t[e];return void 0===n&&(n=this.locales.en[e]||e),n},getLocales:function(){var e=[];if(e.push(""),this.supportedLocales&&this.supportedLocales.length>0)for(var t=0;t<this.supportedLocales.length;t++)e.push(this.supportedLocales[t]);else for(var n in this.locales)e.push(n);return e.sort(),e}},a=o;r.locales.en=o,r.localeNames.en="english"},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};function r(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o=function(){function e(e){this.table=e,this.renderedExtensions=[]}return e.prototype.render=function(t,n,o){var r=this,a=e.extensions[n];a&&(a=this.sortExtensions(a)).forEach((function(e){if(e.render){var n=e.render(r.table,o);n&&(t.appendChild(n),r.renderedExtensions.push(e))}}))},e.prototype.destroy=function(){this.renderedExtensions.forEach((function(e){e.destroy&&e.destroy()})),this.renderedExtensions=[]},e.registerExtension=function(e){this.extensions[e.location]||(this.extensions[e.location]=[]),this.extensions[e.location].push(e)},e.removeExtension=function(t){if(t){var n=e.extensions[t.location],o=n.indexOf(t);o>=0&&n.splice(o,1)}},e.unregisterExtension=function(t,n){if(n)if(t){var o=e.findExtension(t,n);e.removeExtension(o)}else Object.keys(this.extensions).forEach((function(t){return e.unregisterExtension(t,n)}))},e.findExtension=function(e,t){return this.extensions[e]&&this.extensions[e].filter((function(e){return e.name==t}))[0]||null},e.prototype.sortExtensions=function(e){if(Array.isArray(e))return[].concat(e.filter((function(e){return e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},e.extensions={},e}()},function(e,t,n){"use strict";var o,r;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e[e.Column=0]="Column",e[e.Row=1]="Row"}(o||(o={})),function(e){e[e.Text=0]="Text",e[e.FileLink=1]="FileLink",e[e.Image=2]="Image"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return T}));var o=n(3),r=n(5),a=n(8),i=n(1),s=n(4),l=n(0),u=n(2),c=function(){function e(e,t){this.question=e,this.table=t,this.isVisible=!0,this.isPublic=!0,this.location=r.b.Column,this.dataType=this.getDataType()}return Object.defineProperty(e.prototype,"name",{get:function(){return this.nameValue||(this.name=this.getName()),this.nameValue},set:function(e){this.nameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"displayName",{get:function(){return this.displayNameValue||(this.displayName=this.getDisplayName()),this.displayNameValue},set:function(e){this.displayNameValue=e},enumerable:!1,configurable:!0}),e.prototype.getDisplayName=function(){return this.table.useNamesAsTitles?this.question.name:(this.question.title||"").trim()||this.question.name},e.prototype.getName=function(){return this.question.name},e.prototype.getDataType=function(){return r.a.Text},e.prototype.getDisplayValueCore=function(e){return e[this.name]},e.prototype.getDisplayValue=function(e,t,n){var o=this.getDisplayValueCore(e),r=this.question,a=function(e,n){n.isReady&&(t.refresh(!0),e.onReadyChanged.remove(a))};return r&&(n.useValuesAsLabels?o=r.value:r.isReady?o=r.displayValue:r.onReadyChanged.add(a)),o},e.prototype.formatDisplayValue=function(e){return"string"==typeof e?e:JSON.stringify(e)||""},e.prototype.getCellData=function(e,t){var n=this.getDisplayValue(t,e,e.options);return{question:this.question,displayValue:this.formatDisplayValue(n)}},e.prototype.toJSON=function(){return{name:this.name,displayName:this.displayName,dataType:this.dataType,isVisible:this.isVisible,isPublic:this.isPublic,location:this.location}},e.prototype.fromJSON=function(e){var t=this;Object.keys(e).forEach((function(n){t[n]=e[n]}))},e}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.getDisplayValue=function(e,t,n){return this.getDisplayValueCore(e)},t}(c),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.getName=function(){return"".concat(this.question.name).concat(o.settings.commentPrefix)},t.prototype.getDisplayName=function(){return this.question.hasOther?this.question.otherText:this.question.commentText},t.prototype.getDisplayValue=function(e,t,n){return this.question.comment},t}(c),h=function(e){function t(t,n,o){var r,a=e.call(this,t,o)||this;return a.row=n,r=a.name.split("."),a.valueName=r[0],a.valuePath=r[1],a}return Object(u.b)(t,e),t.prototype.getName=function(){var e;return this.question.name+"."+(null===(e=this.row)||void 0===e?void 0:e.value)},t.prototype.getDisplayName=function(){var e=this.table,t=this.question,n=this.row;return(e.useNamesAsTitles?t.name:(t.title||"").trim()||t.name)+" - "+(e.useNamesAsTitles?null==n?void 0:n.value:null==n?void 0:n.locText.textOrHtml)},t.prototype.getDisplayValue=function(e,t,n){var r=e[this.valueName];if(this.valuePath&&"object"==typeof r&&void 0!==(r=r[this.valuePath])){var a=o.ItemValue.getItemByValue(this.question.columns,r);r=n.useValuesAsLabels?a.value:a.locText.textOrHtml}return r},t}(c),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.getDataType=function(){return r.a.Image},t}(c),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.getDataType=function(){return r.a.FileLink},t.prototype.getDisplayValue=function(e,t,n){var o=this.getDisplayValueCore(e);return Array.isArray(o)&&(o=x.showFilesAsImages?Object(l.d)(o).outerHTML:Object(l.e)(o).outerHTML),o},t}(c),g=function(e){function t(t,n,o,r){var a,i=e.call(this,t,r)||this;return i.row=n,i.col=o,a=i.name.split(".").slice(1),i.rowValue=a[0],i.colName=a[1],i}return Object(u.b)(t,e),t.prototype.getName=function(){return this.question.name+"."+this.row.value+"."+this.col.name},t.prototype.getDisplayName=function(){var e=this.table,t=this.question;return(this.table.useNamesAsTitles?t.name:(t.title||"").trim()||t.name)+" - "+(e.useNamesAsTitles?this.row.value:this.row.locText.textOrHtml)+" - "+(e.useNamesAsTitles?this.col.name:this.col.locTitle.textOrHtml)},t.prototype.getDisplayValue=function(e,t,n){var o=this,r=e[this.question.name],a=this.question;if(this.rowValue&&this.colName&&"object"==typeof r){var i=[this.rowValue,this.colName],s=i[0],l=i[1];r=a.value,n.useValuesAsLabels||(r=a.displayValue,s=a.rows.filter((function(e){return e.value===o.rowValue}))[0].text,l=a.getColumnByName(this.colName).title),r=r[s]&&r[s][l]||""}return r},t}(c),b=function(){function e(){}return e.prototype.createColumn=function(e,t){return new c(e,t)},e.prototype.buildColumnsCore=function(e,t){var n=[];return n.push(this.createColumn(e,t)),n},e.prototype.buildColumns=function(e,t){var n=this.buildColumnsCore(e,t);return(e.hasComment||e.hasOther&&e.getStoreOthersAsComment())&&n.push(new p(e,t)),n},e}(),v=function(){function e(){this.columnsBuilders={},this.defaultColumnsBuilder=new b}return e.prototype.registerBuilderColumn=function(e,t){this.columnsBuilders[e]=t},e.prototype.getColumnsBuilder=function(e){return this.columnsBuilders[e]||this.defaultColumnsBuilder},e.Instance=new e,e}(),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.buildColumnsCore=function(e,t){var n=e,o=[];return n.rows.forEach((function(e){o.push(new h(n,e,t))})),o},t}(b);v.Instance.registerBuilderColumn("matrix",new y);var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.createColumn=function(e,t){return new m(e,t)},t}(b);v.Instance.registerBuilderColumn("signaturepad",new C);var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.createColumn=function(e,t){return new f(e,t)},t}(b);v.Instance.registerBuilderColumn("file",new w);var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.b)(t,e),t.prototype.buildColumns=function(e,t){var n=e,o=[];return n.rows.forEach((function(e){n.columns.forEach((function(r){o.push(new g(n,e,r,t))}))})),o},t}(b);v.Instance.registerBuilderColumn("matrixdropdown",new _);var x=function(){function e(t,n,r,a){void 0===r&&(r={}),void 0===a&&(a=[]);var l=this;this._survey=t,this.data=n,this._options=r,this._columnsData=a,this.haveCommercialLicense=!1,this.currentPageSize=5,this._rows=[],this.onColumnsVisibilityChanged=new o.Event,this.onColumnsLocationChanged=new o.Event,this.onRowRemoved=new o.Event,this.buildColumns=function(e){var t=[];return l._survey.getAllQuestions().forEach((function(e){var n=v.Instance.getColumnsBuilder(e.getType());t=t.concat(n.buildColumns(e,l))})),t},this.onStateChanged=new o.Event,this._options||(this._options={}),this._columns=this.buildColumns(t),this.initTableData(n),i.a.currentLocale=this._survey.locale,this._columns=this.buildColumns(t),0!==a.length&&this.updateColumnsFromData(this._columnsData),this.extensions=new s.a(this),this.haveCommercialLicense=e.haveCommercialLicense||!!r&&void 0!==r.haveCommercialLicense&&r.haveCommercialLicense}return e.prototype.getData=function(){return this.data},Object.defineProperty(e.prototype,"survey",{get:function(){return this._survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),e.prototype.render=function(e){"string"==typeof e&&(e=document.getElementById(e)),e.innerHTML="",this.haveCommercialLicense||e.appendChild(Object(l.c)())},e.prototype.enableColumnReorder=function(){this.isColumnReorderEnabled=!0},e.prototype.disableColumnReorder=function(){this.isColumnReorderEnabled=!1},e.prototype.getPageNumber=function(){return this.currentPageNumber},e.prototype.setPageNumber=function(e){this.currentPageNumber=e},e.prototype.getPageSize=function(){return this.currentPageSize},e.prototype.setPageSize=function(e){this.currentPageSize=e,this.onStateChanged.fire(this,this.state)},e.prototype.getCreatedRows=function(){return[].concat(this._rows)},e.prototype.clearCreatedRows=function(){this._rows.forEach((function(e){e.destroy()})),this._rows=[]},Object.defineProperty(e.prototype,"useNamesAsTitles",{get:function(){return this._options&&!0===this._options.useNamesAsTitles},enumerable:!1,configurable:!0}),e.prototype.isColumnVisible=function(e){return e.location===r.b.Column&&e.isVisible},Object.defineProperty(e.prototype,"columns",{get:function(){return[].concat(this._columns)},set:function(e){this._columns=e,this.refresh(!0),this.onStateChanged.fire(this,this.state)},enumerable:!1,configurable:!0}),e.prototype.initTableData=function(e){var t=this;this.tableData=(e||[]).map((function(e){var n={};return t._survey.data=e,t._columns.forEach((function(o){var r=o.getCellData(t,e);"function"==typeof t._options.onGetQuestionValue&&t._options.onGetQuestionValue(r),n[o.name]=r.displayValue})),n}))},e.prototype.moveColumn=function(e,t){var n=this._columns.splice(e,1);this._columns.splice(t,0,n[0]),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnLocation=function(e,t){this.getColumnByName(e).location=t,this.onColumnsLocationChanged.fire(this,{columnName:e,location:t}),this.onStateChanged.fire(this,this.state)},e.prototype.getColumnByName=function(e){return this._columns.filter((function(t){return t.name===e}))[0]},e.prototype.setColumnVisibility=function(e,t){this.getColumnByName(e).isVisible=t,this.onColumnsVisibilityChanged.fire(this,{columnName:e,columnVisibility:t}),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnWidth=function(e,t){this.getColumnByName(e).width=t,this.onStateChanged.fire(this,this.state)},e.prototype.removeRow=function(e){var t=this._rows.indexOf(e);this._rows.splice(t,1),this.onRowRemoved.fire(this,{row:e})},Object.defineProperty(e.prototype,"locale",{get:function(){return i.a.currentLocale},set:function(e){this._survey.locale=e,i.a.currentLocale=e,this.refresh(!0),this.onStateChanged.fire(this,this.state)},enumerable:!1,configurable:!0}),e.prototype.getLocales=function(){return[].concat(this._survey.getUsedLocales())},e.prototype.refresh=function(e){if(void 0===e&&(e=!1),e&&this.initTableData(this.data),this.isRendered){this.currentPageNumber=this.getPageNumber();var t=this.renderResult;this.destroy(),this.render(t),this.setPageSize(this.currentPageSize),this.setPageNumber(this.currentPageNumber)}},e.prototype.destroy=function(){this.clearCreatedRows(),this.extensions.destroy(),this.renderResult.innerHTML="",this.renderResult=void 0},Object.defineProperty(e.prototype,"isRendered",{get:function(){return!!this.renderResult},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return{locale:i.a.currentLocale,elements:JSON.parse(JSON.stringify(this._columns)),pageSize:this.currentPageSize}},set:function(e){e&&(void 0!==e.locale&&(i.a.currentLocale=e.locale,this._survey.locale=e.locale,this.initTableData(this.data)),void 0!==e.elements&&this.updateColumnsFromData(e.elements),void 0!==e.pageSize&&(this.currentPageSize=e.pageSize))},enumerable:!1,configurable:!0}),e.prototype.updateColumnsFromData=function(e){var t=this,n=this._columns;n.forEach((function(t){var n=e.filter((function(e){return t.name===e.name}))[0];n&&(t.fromJSON(n),t.visibleIndex=e.indexOf(n))})),e.forEach((function(o){var r=n.filter((function(e){return e.name===o.name}))[0];r||((r=new d(void 0,t)).fromJSON(o),r.visibleIndex=e.indexOf(o),n.push(r))})),this._columns=this._columns.sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},Object.defineProperty(e.prototype,"permissions",{get:function(){return this._columns.map((function(e){return{name:e.name,isPublic:e.isPublic}}))},set:function(e){var t=this._columns.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.isPublic=e.isPublic)})),t}));this._columns=[].concat(t),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),e.showFilesAsImages=!1,e.haveCommercialLicense=!1,e}(),T=function(){function e(e,t,n){var r=this;this.table=e,this.extensionsContainer=t,this.detailsContainer=n,this.detailedRowClass="sa-table__detail-row",this.isDetailsExpanded=!1,this.onToggleDetails=new o.Event,this.onColumnLocationChangedCallback=function(){r.closeDetails()},this.details=new a.a(e,this,n),this.extensions=new s.a(e),e.onColumnsLocationChanged.add(this.onColumnLocationChangedCallback)}return e.prototype.render=function(){this.extensions.render(this.extensionsContainer,"row",{row:this})},e.prototype.openDetails=function(){this.details.open(),this.getElement().className+=" "+this.detailedRowClass,this.onToggleDetails.fire(this,{isExpanded:!0}),this.isDetailsExpanded=!0},e.prototype.closeDetails=function(){this.details.close(),this.getElement().classList.remove(this.detailedRowClass),this.onToggleDetails.fire(this,{isExpanded:!1}),this.isDetailsExpanded=!1},e.prototype.toggleDetails=function(){this.isDetailsExpanded?this.closeDetails():this.openDetails()},e.prototype.getIsSelected=function(){return this.isSelected},e.prototype.toggleSelect=function(){this.isSelected=!this.isSelected},e.prototype.remove=function(){this.table.removeRow(this)},e.prototype.destroy=function(){this.table.onColumnsLocationChanged.remove(this.onColumnLocationChangedCallback),this.extensions.destroy()},e}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(0),r=n(5),a=n(4),i=n(1),s=function(){function e(e,t,n){var a=this;this.table=e,this.row=t,this.targetNode=n,this.location="details",this.createShowAsColumnButton=function(e){var t=o.b.createElement("button","sa-table__btn sa-table__btn--gray");return t.appendChild(document.createTextNode(i.a.getString("showAsColumn"))),t.onclick=function(t){t.stopPropagation(),a.table.setColumnLocation(e,r.b.Column)},t},this.detailsTable=o.b.createElement("table","sa-table__detail-table"),this.table.onColumnsLocationChanged.add((function(){a.close()}))}return e.prototype.open=function(){var e=this;this.detailsTable.innerHTML="";var t=[];this.table.columns.filter((function(e){return e.location===r.b.Row&&e})).forEach((function(n){var a=o.b.createElement("tr","sa-table__detail"),i=o.b.createElement("td");i.appendChild(document.createTextNode(n.displayName));var s=o.b.createElement("td");s.textContent=e.row.getRowData()[n.name],n.dataType===r.a.Image&&(s.innerHTML="<image src='"+s.textContent+"'/>");var l=o.b.createElement("td");l.appendChild(e.createShowAsColumnButton(n.name)),a.appendChild(i),a.appendChild(s),a.appendChild(l),t.push(a)}));var n=o.b.createElement("tr","sa-table__detail"),i=o.b.createElement("td","",{colSpan:3});new a.a(this.table).render(i,"details",{row:this.row}),0!=i.children.length&&(n.appendChild(i),t.push(n)),t.forEach((function(t){e.detailsTable.appendChild(t)})),this.targetNode.appendChild(this.detailsTable)},e.prototype.close=function(){this.detailsTable.parentNode&&this.detailsTable.parentNode.removeChild(this.detailsTable)},e}()},function(e,t,n){"use strict";var o=n(1);o.a.locales.fa={groupButton:"گروه بندی با",ungroupButton:"حذف گروه",selectButton:"انتخاب",hideColumn:"مخفی کردن ستون",showColumn:"نمایش ستون",moveToDetail:"انتقال به جزئیات",showAsColumn:"نمایش به عنوان ستون",visualizer_text:"متون در جدول",visualizer_wordcloud:"ابر کلمات",chartType_bar:"میله ای",chartType_pie:"دابره ای(pie)",chartType_scatter:"پراکندگی(Scatter)",chartType_gauge:"عقربه ای",chartType_bullet:"Bullet",hideButton:"مخفی",resetFilter:"بازنشانی فیلترها",clearButton:"پاک کردن",addElement:"انتخاب سوال برای نمایش..."},o.a.localeNames.fa="Farsi(Persian)"},function(e,t,n){"use strict";var o=n(1);o.a.locales.fr={groupButton:"Grouper",ungroupButton:"Dissocier",selectButton:"Sélectionner",hideColumn:"Masquer colonne",showColumn:"Afficher colonne",makePrivateColumn:"Rendre la colonne privé",makePublicColumn:"Rendre la colonne public",moveToDetail:"Déplacer vers détails",showAsColumn:"Afficher en colonne",visualizer_text:"Textes en table",visualizer_wordcloud:"Nuages de mots",chartType_bar:"Barres",chartType_stackedbar:"Barres empilées",chartType_doughnut:"Anneau",chartType_pie:"Secteurs",chartType_scatter:"Nuages de points",chartType_gauge:"Gauge",chartType_bullet:"Bulles",filter:"Filtre",hideButton:"Masquer",resetFilter:"Rafraichir Filtres",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures",otherCommentTitle:"Autre élément et commentaires",noVisualizerForQuestion:"Ce type de question n'est pas encore visualisé",noResults:"Il n'y a pas encore de résultats"},o.a.localeNames.fr="French"},function(e,t,n){"use strict";var o=n(1);o.a.locales.no={groupButton:"Grupper",ungroupButton:"Opphev gruppering",selectButton:"Velg",hideColumn:"Skjul kolonne",showColumn:"Vis kolonne",makePrivateColumn:"Gjør kolonne privat",makePublicColumn:"Gjør kolonne offentlig",moveToDetail:"Flytt til detaljert visning",showAsColumn:"Vis som kolonne",filterPlaceholder:"Søk...",removeRows:"Fjern rader",showLabel:"Vis",entriesLabel:"oppføringer",visualizer_text:"Tabellvisning",visualizer_wordcloud:"Ordsky",chartType_bar:"Stolpediagram",chartType_stackedbar:"Stablet stolpediagram",chartType_doughnut:"Hjuldiagram",chartType_pie:"Sektordiagram",chartType_scatter:"Punktdiagram",chartType_gauge:"Målediagram",chartType_bullet:"Kulediagram",hideButton:"Skjul",makePrivateButton:"Gjør privat",makePublicButton:"Gjør offentlig",showButton:"Vis",resetFilter:"Nullstill filter",changeLocale:"Bytt språk",clearButton:"Tøm",addElement:"Velg spørsmål...",defaultOrder:"Standard",ascOrder:"Stigende",descOrder:"Synkende",showMinorColumns:"Vis mindre kolonner",otherCommentTitle:"Annet og kommentarer",showPercentages:"Vis prosenter",hidePercentages:"Skjul prosenter"},o.a.localeNames.no="Norwegian"},function(e,t,n){"use strict";var o=n(1);o.a.locales.pt={groupButton:"Agrupar Por Mim",ungroupButton:"Desagrupar Por Mim",selectButton:"Selecionar",hideColumn:"Esconder coluna",showColumn:"Mostrar coluna",makePrivateColumn:"Tornar coluna privada",makePublicColumn:"Tornar coluna pública",moveToDetail:"Mover para Detalhes",showAsColumn:"Mostrar como Coluna",filterPlaceholder:"Pesquisar...",removeRows:"Remover linhas",showLabel:"Mostrar",entriesLabel:"entradas",visualizer_text:"Textos em tabela",chartType_bar:"Barra",chartType_stackedbar:"Barra Empilhada",chartType_doughnut:"Rosquinha",chartType_pie:"Torta",chartType_scatter:"Lastro",chartType_gauge:"Escala",chartType_bullet:"Bala",hideButton:"Esconder",makePrivateButton:"Tornar privado",makePublicButton:"Tornar público",showButton:"Mostrar",filter:"Filtrar",resetFilter:"Restaurar Filtro",changeLocale:"Mudar Localização",clearButton:"Limpar",addElement:"Escolher questão para mostrar...",defaultOrder:"Ordenação Padrão",ascOrder:"Ascendente",descOrder:"Descendente",showMinorColumns:"Mostrar colunas menores",otherCommentTitle:"Outros itens e comentários",showPercentages:"Mostrar percentuais",hidePercentages:"Esconder percentuais",saveDiagramAsPNG:"Baixar plot como png",hideEmptyAnswers:"Esconder perguntas vazias",showEmptyAnswers:"Mostrar perguntas vazias","topNValueText-1":"Todas as respostas",topNValueText5:"Primeiras 5 respostas",topNValueText10:"Primeiras 10 respostas",topNValueText20:"Primeiras 20 respostas",noVisualizerForQuestion:"Este tipo de pergunta ainda não foi visualizada",noResults:"Ainda não possui resultados"},o.a.localeNames.pt="Portuguese"},function(e,t,n){"use strict";var o=n(1);o.a.locales.ru={groupButton:"Group By Me",ungroupButton:"Ungroup By Me",selectButton:"Select Me",hideColumn:"Hide column",showColumn:"Show column",makePrivateColumn:"Make column private",makePublicColumn:"Make column public",moveToDetail:"Move to Detail",filter:"Фильтр",showAsColumn:"Show as Column",visualizer_text:"Texts in table",visualizer_wordcloud:"Wordcloud",chartType_bar:"Bar",chartType_stackedbar:"Stacked Bar",chartType_doughnut:"Doughnut",chartType_pie:"Pie",chartType_scatter:"Scatter",chartType_gauge:"Gauge",chartType_bullet:"Bullet",hideButton:"Скрыть",showButton:"Показать",resetFilter:"Очистить фильтр",changeLocale:"Сменить язык",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Другое и комментарии",noVisualizerForQuestion:"Этот тип вопроса еще не поддерживается аналитикой",noResults:"Результаты отсутствуют"},o.a.localeNames.ru="Russian"},function(e,t,n){"use strict";var o=n(1);o.a.locales.nl={groupButton:"Groep door mij",ungroupButton:"Degroeperen bij mij",selectButton:"Selecteer mij",hideColumn:"Kolom verbergen",showColumn:"Toon kolom",makePrivateColumn:"Kolom privé maken",makePublicColumn:"Maak de kolom openbaar",moveToDetail:"Ga naar Detail",showAsColumn:"Weergeven als kolom",filterPlaceholder:"Zoeken...",removeRows:"Verwijder rijen",showLabel:"Tonen",entriesLabel:"inzendingen",visualizer_text:"Teksten in tabel",visualizer_wordcloud:"Wordcloud",chartType_bar:"Bar",chartType_stackedbar:"Gestapelde Bar",chartType_doughnut:"Donut",chartType_pie:"Taart",chartType_scatter:"Verstrooien",chartType_gauge:"Meter",chartType_bullet:"Kogel",hideButton:"Verbergen",makePrivateButton:"Maak prive",makePublicButton:"Openbaar maken",showButton:"Tonen",resetFilter:"Filter resetten",changeLocale:"Wijzig de landinstelling",clearButton:"Doorzichtig",addElement:"Kies een vraag om weer te geven ...",defaultOrder:"Standaardvolgorde",ascOrder:"Oplopend",descOrder:"Aflopend",showMinorColumns:"Toon kleine kolommen",otherCommentTitle:"Andere items en opmerkingen",showPercentages:"Percentages weergeven",hidePercentages:"Verberg percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot als een png",hideEmptyAnswers:"Verberg lege antwoorden",showEmptyAnswers:"Toon lege antwoorden","topNValueText-1":"Alle antwoorden",topNValueText5:"Top 5 antwoorden",topNValueText10:"Top 10 antwoorden",topNValueText20:"Top 20 antwoorden"},o.a.localeNames.nl="Dutch"},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="sa-svg-detail"><circle cx="1.5" cy="8.5" r="1.5"></circle><circle cx="7.5" cy="8.5" r="1.5"></circle><circle cx="13.5" cy="8.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="sa-svg-drag"><path d="M13 5l-1 1 1 1H9V3l1 1 1-1-3-3-3 3 1 1 1-1v4H3l1-1-1-1-3 3 3 3 1-1-1-1h4v4l-1-1-1 1 3 3 3-3-1-1-1 1V9h4l-1 1 1 1 3-3z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-hide"><path d="M12.79 4.2L16 1l-1-1-3.32 3.32C10.57 2.55 9.32 2 8 2 3.63 2 0 7.97 0 7.97s1.27 2.1 3.21 3.82l-3.23 3.23.98.98 3.35-3.34C5.41 13.44 6.67 14 8 14c4.37 0 8-6 8-6s-1.27-2.09-3.21-3.8zM2 7.97c1.07-1.47 3.61-4 6-4 .8 0 1.6.27 2.35.68l-.78.78c-.46-.29-.99-.46-1.57-.46-1.66 0-3 1.34-3 3 0 .58.17 1.11.46 1.57l-.97.97A13.38 13.38 0 0 1 2 7.97zm6 4c-.8 0-1.59-.27-2.33-.67l.78-.77c.45.27.98.44 1.55.44 1.66 0 3-1.34 3-3 0-.57-.17-1.09-.44-1.55l.98-.98c1.11.87 2.01 1.91 2.46 2.52-1.07 1.48-3.61 4.01-6 4.01z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-makeprivate"><circle cx="8" cy="4" r="3"></circle><path d="M8 8c-3.31 0-6 2.73-6 4.67S5.27 15 8 15s6-.4 6-2.33S11.31 8 8 8z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-makepublic"><circle cx="6" cy="5" r="3"></circle><path d="M10 5c0 .34-.06.67-.14.99.05 0 .09.01.14.01 1.66 0 3-1.34 3-3s-1.34-3-3-3C8.97 0 8.07.52 7.53 1.3 8.98 1.91 10 3.33 10 5zM6 9c-3.31 0-6 2.73-6 4.67S3.27 16 6 16s6-.4 6-2.33S9.31 9 6 9zM10 7c-.19 0-.38.01-.57.03a4.14 4.14 0 0 1-1.37 1.39c3 .83 5.23 3.31 5.42 5.28 1.44-.31 2.52-.92 2.52-2.03C16 9.74 13.31 7 10 7z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-movetodetails"><circle cx="1.5" cy="14.5" r="1.5"></circle><circle cx="7.5" cy="14.5" r="1.5"></circle><circle cx="13.5" cy="14.5" r="1.5"></circle><path d="M12 1h3v9h-3zM2.02 7.02L1 6 0 7l3 3 3-3-1-1-.94.94C4.33 4.73 6.21 3 8.5 3c.17 0 .33.03.5.05V1.03C8.83 1.01 8.67 1 8.5 1 5.08 1 2.27 3.66 2.02 7.02z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-noncommercial"><path d="M8 0L0 15h16L8 0zm1 13H7v-2h2v2zm-2-3V5h2v5H7z"></path></symbol><symbol viewBox="0 0 16 16" id="sa-svg-sorting"><path d="M8 3l2 2 1-1-3-3-3 3 1 1zM8 13l-2-2-1 1 3 3 3-3-1-1z"></path></symbol></svg>'},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n(4);a.a.registerExtension({location:"row",name:"details",visibleIndex:0,render:function(e,t){var n=r.b.createSvgButton("detail");return n.title=o.a.getString("showMinorColumns"),n.className+=" sa-table__row-extension",n.onclick=function(){t.row.toggleDetails()},n}}),a.a.registerExtension({location:"row",name:"select",visibleIndex:-1,render:function(e,t){var n=t.row,o=r.b.createElement("input","sa-table__row-extension",{type:"checkbox"});return o.checked=n.getIsSelected(),o.onchange=function(){n.toggleSelect()},o}})},function(e,t,n){"use strict";var o=n(1),r=n(0),a=n(4);a.a.registerExtension({location:"header",name:"filter",visibleIndex:0,render:function(e){var t=r.b.createInput("sa-table__global-filter sa-table__header-extension",o.a.getString("filterPlaceholder"));return t.onchange=function(t){e.applyFilter(t.target.value)},t}}),a.a.registerExtension({location:"header",name:"showcolumn",visibleIndex:2,destroy:function(){this.onDestroy()},render:function(e){var t=r.b.createElement("select","sa-table__show-column sa-table__header-extension");function n(){var n=e.columns.filter((function(e){return!e.isVisible}));if(0!=n.length){t.style.display="inline-block",t.innerHTML="";var a=r.b.createElement("option","",{text:o.a.getString("showColumn"),disabled:!0,selected:!0});t.appendChild(a),n.forEach((function(e){var n=e.displayName||e.name;n&&n.length>20&&(n=n.substring(0,20)+"...");var o=r.b.createElement("option","",{text:n,title:e.displayName,value:e.name});t.appendChild(o)}))}else t.style.display="none"}t.onchange=function(t){var n=t.target.value;t.stopPropagation(),n&&e.setColumnVisibility(n,!0)},n();var a=function(){n()};return e.onColumnsVisibilityChanged.add(a),this.onDestroy=function(){e.onColumnsVisibilityChanged.remove(a)},t}}),a.a.registerExtension({location:"header",name:"showentries",visibleIndex:3,render:function(e){var t=r.b.createElement("div","sa-table__entries"),n=r.b.createElement("span","sa-table__entries-label sa-table__entries-label--right",{innerText:o.a.getString("showLabel")}),a=r.b.createElement("span","sa-table__entries-label sa-table__entries-label--left",{innerText:o.a.getString("entriesLabel")});return t.appendChild(n),t.appendChild(function(e){var t=r.b.createElement("select");return["1","5","10","25","50","75","100"].forEach((function(e){var n=r.b.createElement("option","",{value:e,text:e});t.appendChild(n)})),t.value=String(e.getPageSize()),t.onchange=function(){e.setPageSize(Number(t.value))},t}(e)),t.appendChild(a),t}}),a.a.registerExtension({location:"header",name:"removerows",visibleIndex:-1,render:function(e){var t=r.b.createElement("button","sa-table__btn sa-table__btn--green sa-table__header-extension ",{innerText:o.a.getString("removeRows")});return t.onclick=function(){e.getCreatedRows().forEach((function(e){e.getIsSelected()&&e.remove()}))},t}}),a.a.registerExtension({location:"header",name:"changelocale",visibleIndex:1,render:function(e){var t=e.getLocales();if(t.length<2)return null;var n=r.b.createElement("select","sa-table__header-extension",{});return[o.a.getString("changeLocale")].concat(t).forEach((function(e){var t=r.b.createElement("option","",{value:e,text:e});n.appendChild(t)})),n.onchange=function(){e.locale=n.value},n}})},function(e,t,n){"use strict";var o=n(0),r=n(1),a=n(4),i=n(5);a.a.registerExtension({location:"column",name:"drag",visibleIndex:0,render:function(e,t){var n=o.b.createElement("button","sa-table__svg-button sa-table__drag-button");return n.appendChild(o.b.createSvgElement("drag")),n.onmousedown=function(t){e.enableColumnReorder()},n}}),a.a.registerExtension({location:"column",name:"sort",visibleIndex:1,render:function(e,t){var n=r.a.getString("descOrder"),a=r.a.getString("ascOrder"),i=o.b.createSvgButton("sorting");i.title="";var s="asc";return i.onclick=function(){"asc"==s?(i.title=n,s="desc"):(i.title=a,s="asc"),e.sortByColumn(t.columnName,s)},i.ondrag=function(e){e.stopPropagation()},i}}),a.a.registerExtension({location:"column",name:"hide",visibleIndex:2,render:function(e,t){var n=o.b.createSvgButton("hide");return n.title=r.a.getString("hideColumn"),n.onclick=function(){e.setColumnVisibility(t.columnName,!1)},n}}),a.a.registerExtension({location:"column",name:"movetodetails",visibleIndex:3,render:function(e,t){var n=o.b.createSvgButton("movetodetails");return n.title=r.a.getString("moveToDetail"),n.onclick=function(n){n.stopPropagation(),e.setColumnLocation(t.columnName,i.b.Row)},n}}),a.a.registerExtension({location:"column",name:"filter",visibleIndex:4,render:function(e,t){var n=o.b.createInput("sa-table__filter",r.a.getString("filterPlaceholder"));return n.onclick=function(e){return e.stopPropagation()},n.onchange=function(o){e.applyColumnFilter(t.columnName,n.value)},n}}),a.a.registerExtension({location:"column",name:"makepublic",visibleIndex:-1,render:function(e,t){var n=o.b.createElement("button"),a=o.b.createSvgElement("makeprivate"),i=o.b.createSvgElement("makepublic"),s=e.getColumnByName(t.columnName);function l(e){e.isPublic?(n.className="sa-table__svg-button",n.title=r.a.getString("makePrivateColumn"),a.style.display="none",i.style.display="block"):(n.className="sa-table__svg-button sa-table__svg-button--active",n.title=r.a.getString("makePublicColumn"),a.style.display="block",i.style.display="none")}return l(s),n.appendChild(a),n.appendChild(i),n.onclick=function(t){t.stopPropagation(),s.isPublic=!s.isPublic,l(s),e.onPermissionsChangedCallback&&e.onPermissionsChangedCallback(e)},n}})},,,function(e,t,n){},,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"localization",(function(){return o.a})),n.d(t,"surveyStrings",(function(){return o.b})),n.d(t,"Table",(function(){return r.a})),n.d(t,"TableRow",(function(){return r.b})),n.d(t,"DataTables",(function(){return p})),n.d(t,"DatatablesRow",(function(){return h})),n.d(t,"TableExtensions",(function(){return m.a})),n.d(t,"DocumentHelper",(function(){return l.b}));var o=n(1),r=(n(9),n(10),n(11),n(12),n(13),n(14),n(16),n(17),n(18),n(8),n(6)),a=n(2),i=n(3),s=n(5),l=n(0);n(21);if(document){var u=n(15),c=document.createElement("div");c.style.display="none",c.innerHTML=u,document.head.appendChild(c)}var d=window.jQuery,p=function(e){function t(t,n,o,r){void 0===r&&(r=[]);var a=e.call(this,t,n,o,r)||this;return a.currentPageNumber=0,a.onColumnsReorder=new i.Event,a}return Object(a.b)(t,e),t.initJQuery=function(e){d=e},Object.defineProperty(t,"haveCommercialLicense",{set:function(e){r.a.haveCommercialLicense=e},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){if(this.renderResult){var t=this.renderResult.children[0];d.fn.DataTable.isDataTable(t)&&d(t).DataTable().destroy(),this.datatableApi=void 0,e.prototype.destroy.call(this)}},t.prototype.setColumnVisibility=function(t,n){e.prototype.setColumnVisibility.call(this,t,n),this.datatableApi.column(t+":name").visible(n)},t.prototype.setColumnLocation=function(t,n){e.prototype.setColumnLocation.call(this,t,n);var o=this.datatableApi.column(t+":name"),r=n==s.b.Column;o.visible(r)},t.prototype.applyFilter=function(e){this.datatableApi.search(e).draw(!1)},t.prototype.applyColumnFilter=function(e,t){var n=this.datatableApi.column(e+":name");n.search()!==t&&n.search(t).draw(!1)},t.prototype.sortByColumn=function(e,t){this.datatableApi.column(e+":name").order(t).draw(!1)},t.prototype.setPageSize=function(t){e.prototype.setPageSize.call(this,t),this.isRendered&&this.datatableApi.page.len(t).draw(!1)},t.prototype.setPageNumber=function(t){e.prototype.setPageNumber.call(this,t),this.isRendered&&this.datatableApi.page(t).draw(!1)},t.prototype.getPageNumber=function(){return this.isRendered?this.datatableApi.page():0},t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t);"string"==typeof t&&(t=document.getElementById(t)),t.className+=" sa-table sa-datatables";var o=l.b.createElement("table",""),r=this.getColumns(),a=r.map((function(e){return e.data})),i="sa-table__btn sa-table__btn--small sa-table__btn--gray",s=d.extend(!0,{buttons:[{extend:"copy",className:i},{extend:"csv",className:i},{extend:"print",className:i}],dom:'B<"sa-table__header-extensions">prtip',data:this.tableData,pageLength:this.currentPageSize,responsive:!1,scrollX:!0,columns:r,colReorder:{fixedColumnsLeft:1,realtime:!1},language:{sSearch:" ",searchPlaceholder:"Search...",sLengthMenu:"Show _MENU_ entries",paginate:{previous:" ",next:" "}},select:"api",headerCallback:function(e,t,r,i,s){var u=d(o).dataTable().api(),c=n;u.columns().eq(0).each((function(e){var t=d(u.columns(e).header());if(t.unbind("click.DT"),a[e]&&0===t.has("button").length){var o=l.b.createElement("div","sa-table__action-container");c.extensions.render(o,"column",{columnName:a[e]}),o.onmousedown=function(e){c.isColumnReorderEnabled?n.disableColumnReorder():e.stopPropagation()}}t.prepend(o)}))}},this._options);t.appendChild(o),o.className="sa-datatables__table display responsive dataTable";var u=this.datatableApi=d(o).DataTable(s),c=d("div.sa-table__header-extensions")[0];this.extensions.render(c,"header"),u.page(this.currentPageNumber),this.datatableApi.rowGroup().enable(!1).draw(!1),u.on("column-reorder",(function(e,t,o){n.moveColumn(o.from-1,o.to-1),n.disableColumnReorder(),n.onColumnsReorder.fire(n,{columns:n.columns})})),u.rows().eq(0).each((function(e){var t=u.row(e),o=l.b.createElement("tr"),r=l.b.createElement("td","sa-datatables__details-container");o.appendChild(r);var a=t.node(),i=t.cell(t.index(),0).node(),s=new h(n,i,r,t);s.onToggleDetails.add((function(e,t){t.isExpanded?(r.colSpan=a.childElementCount,a.parentNode.insertBefore(o,a.nextSibling)):o.parentNode&&o.parentNode.removeChild(o)})),n._rows.push(s),s.render()})),u.draw(!1),this.renderResult=t},t.prototype.getColumns=function(){var e=this,t=this.columns.map((function(t){var n=e.survey.getQuestionByName(t.name),o=n&&(e.options.useNamesAsTitles?n.name:n.title)||t.displayName;return{name:t.name,data:t.name,sTitle:(null==d?void 0:d.fn.dataTable.render.text().display(o))||o,visible:e.isColumnVisible(t),orderable:!1,defaultContent:"",width:"number"==typeof t.width?t.width+"px":t.width,render:function(e,n,o){var r=o[t.name];return t.dataType===s.a.FileLink?r:t.dataType===s.a.Image?"<image src='"+r+"'/>":"string"==typeof r?d("<div>").text(r).html():JSON.stringify(r)}}}));return[{orderable:!1,data:null,defaultContent:""}].concat(t)},t.prototype.layout=function(){this.datatableApi&&this.datatableApi.columns.adjust()},t}(r.a),h=function(e){function t(t,n,o,r){var a=e.call(this,t,n,o)||this;return a.table=t,a.extensionsContainer=n,a.detailsContainer=o,a._innerRow=r,a.rowElement=r.node(),a.rowData=r.data(),a._innerRow=a._innerRow.row(a.rowElement),t.onColumnsReorder.add((function(){a.render()})),a}return Object(a.b)(t,e),Object.defineProperty(t.prototype,"innerRow",{get:function(){return this._innerRow.row(this.rowElement)},enumerable:!1,configurable:!0}),t.prototype.getElement=function(){return this.rowElement},t.prototype.getRowData=function(){return this.rowData},t.prototype.getDataPosition=function(){return this.innerRow.index()},t.prototype.remove=function(){this.innerRow.remove().draw(),e.prototype.remove.call(this)},t}(r.b),m=n(4)}])})); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3960996
21262
88