survey-analytics
Advanced tools
Comparing version 1.7.27 to 1.7.28
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "1.7.27", | ||
"version": "1.7.28", | ||
"name": "survey-analytics", | ||
@@ -17,0 +17,0 @@ "description": "SurveyJS analytics Library.", |
@@ -1,2 +0,2 @@ | ||
/*Type definitions for SurveyJS Analytics library v1.7.27 | ||
/*Type definitions for SurveyJS Analytics library v1.7.28 | ||
Copyright (c) 2015-2019 Devsoft Baltic OÜ - http://surveyjs.io/ | ||
@@ -437,3 +437,3 @@ Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/> | ||
render(targetNode: HTMLElement): void; | ||
getColumns(): Array<Object>; | ||
getColumns(): Array<any>; | ||
layout(): void; | ||
@@ -472,5 +472,6 @@ } | ||
destroy: () => void; | ||
getColumns(): Array<Object>; | ||
getColumns(): Array<any>; | ||
setColumnVisibility(columnName: string, visibility: ColumnVisibility): void; | ||
setColumnLocation(columnName: string, location: QuestionLocation): void; | ||
setColumnWidth(columnName: string, width: number | string): void; | ||
sortByColumn(columnName: string, direction: string): void; | ||
@@ -483,3 +484,3 @@ applyColumnFilter(columnName: string, value: string): void; | ||
download(type: string): void; | ||
layout(): void; | ||
layout(hard?: boolean): void; | ||
} | ||
@@ -550,4 +551,4 @@ export class TabulatorRow extends TableRow { | ||
export interface IState { | ||
locale: string; | ||
elements: IVisualizerPanelElement[]; | ||
locale?: string; | ||
elements?: IVisualizerPanelElement[]; | ||
} | ||
@@ -630,3 +631,5 @@ export interface IPermission { | ||
setColumnLocation(columnName: string, location: QuestionLocation): void; | ||
protected getColumnByName(columnName: string): ITableColumn; | ||
setColumnVisibility(columnName: string, visibility: ColumnVisibility): void; | ||
setColumnWidth(columnName: string, width: string | number): void; | ||
getColumnVisibility(columnName: string): ColumnVisibility; | ||
@@ -660,4 +663,4 @@ removeRow(row: TableRow): void; | ||
/** | ||
* Gets table permissions. | ||
*/ | ||
* Gets table permissions. | ||
*/ | ||
get permissions(): IPermission[]; | ||
@@ -724,6 +727,8 @@ /** | ||
location: QuestionLocation; | ||
width?: string | number; | ||
} | ||
export interface ITableState { | ||
locale: string; | ||
elements: ITableColumn[]; | ||
locale?: string; | ||
elements?: ITableColumn[]; | ||
pageSize?: number; | ||
} | ||
@@ -730,0 +735,0 @@ |
/*! | ||
* surveyjs - SurveyJS Analytics library v1.7.27 | ||
* surveyjs - SurveyJS Analytics library v1.7.28 | ||
* Copyright (c) 2015-2019 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(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=24)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var i=function(){function e(){}return e.createSelector=function(t,n,i){var o=document.createElement("div");o.className="sa-question__select-wrapper";var r=document.createElement("select");return r.className="sa-question__select",t.forEach((function(t){var i=e.createElement("option","",{value:t.value,text:t.text,selected:n(t)});r.appendChild(i)})),r.onchange=i,o.appendChild(r),o},e.createButton=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i="sa-toolbar__button"),e.createElement("span",i,{innerText:n,onclick:t})},e.createElement=function(e,t,n){void 0===t&&(t="");var i=document.createElement(e);return i.className=t,n&&Object.keys(n).forEach((function(e){i[e]=n[e]})),i},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,i,o,r,a,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=i,d.appendChild(c)):(s="second")&&(d.title=o,d.appendChild(u)),d.onclick=function(e){"first"===s?(s="second",d.title=o,d.removeChild(c),d.appendChild(u),a(e)):"second"===s&&(s="first",d.title=i,d.removeChild(u),d.appendChild(c),r(e))},d},e.createInput=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i=""),e.createElement("input",t,{placeholder:n,defaultValue:i})},e}(),o={runningInBrowser:"function"==typeof window.URL.createObjectURL};function r(){return o.runningInBrowser}var a=function(){function e(){}return e.zipArrays=function(e,t){for(var n=[],i=0;i<Math.min(e.length,t.length);i++)n[i]=[e[i],t[i]];return n},e.unzipArrays=function(e){var t={first:[],second:[]};return e.forEach((function(e,n){t.first[n]=e[0],t.second[n]=e[1]})),t},e.sortDictionary=function(e,t,n){var i=this.zipArrays(e,t),o=function(e,t,n){void 0===n&&(n=!0);var i=e[1]<t[1]?1:e[1]==t[1]?0:-1;return n?i:-1*i};i.sort((function(e,t){return n?o(e,t,!1):o(e,t)}));var r=this.unzipArrays(i);return{keys:r.first,values:r.second}},e.toPercentage=function(e,t){return e/t*100},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i={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",chartType_bar:"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",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages"},o={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=i;o.locales.en=i,o.localeNames.en="english"},function(e,t,n){"use strict";var i,o,r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e[e.Visible=0]="Visible",e[e.Invisible=1]="Invisible",e[e.PublicInvisible=2]="PublicInvisible"}(i||(i={})),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 i}));var i=function(){function e(e){this.table=e,this.renderedExtensions=[]}return e.prototype.render=function(t,n,i){var o=this,r=e.extensions[n];r&&(r=this.sortExtensions(r)).forEach((function(e){if(e.render){var n=e.render(o.table,i);n&&(t.appendChild(n),o.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.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";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),o=n(2),r=n(3),a=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=i.b.createElement("button","sa-table__btn sa-table__btn--gray",{innerHTML:a.a.getString("showAsColumn")});return t.onclick=function(t){t.stopPropagation(),r.table.setColumnLocation(e,o.c.Column)},t};var s=i.b.createElement("table","sa-table__detail-table");this.detailsTable=s,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===o.c.Row&&e})).forEach((function(n){var o=i.b.createElement("tr","sa-table__detail"),r=i.b.createElement("td","",{innerHTML:n.displayName}),a=i.b.createElement("td");a.textContent=e.row.getRowData()[n.name];var s=i.b.createElement("td");s.appendChild(e.createShowAsColumnButton(n.name)),o.appendChild(r),o.appendChild(a),o.appendChild(s),t.push(o)}));var n=i.b.createElement("tr","sa-table__detail"),a=i.b.createElement("td","",{colSpan:3});new r.a(this.table).render(a,"details",{row:this.row}),0!=a.children.length&&(n.appendChild(a),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";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var i=n(4),o=n(5),r=n(2),a=n(6),s=n(1),l=n(3),c=function(){function e(e,t,n,i,a){var c=this;void 0===i&&(i=[]),this.survey=e,this.data=t,this.options=n,this._columns=i,this.isTrustedAccess=a,this.currentPageSize=5,this._rows=[],this.onColumnsVisibilityChanged=new o.Event,this.onColumnsLocationChanged=new o.Event,this.onRowRemoved=new o.Event,this.buildColumns=function(e){return c.survey.getAllQuestions().map((function(e){return{name:e.name,displayName:(e.title||"").trim()||e.name,dataType:"file"!==e.getType()?r.a.Text:r.a.FileLink,visibility:"file"!==e.getType()?r.b.Visible:r.b.Invisible,location:r.c.Column}}))},this.isVisible=function(e){return c.isTrustedAccess&&e!==r.b.Invisible||!c.isTrustedAccess&&e===r.b.Visible},this.isAvailable=function(e){return c.isTrustedAccess||e!==r.b.PublicInvisible},this.getAvailableColumns=function(){return c.columns.filter((function(e){return c.isAvailable(e.visibility)}))},this.onStateChanged=new o.Event,0===i.length&&(this._columns=this.buildColumns(e)),this.initTableData(t),s.a.currentLocale=this.survey.locale,0===i.length&&(this._columns=this.buildColumns(e)),this.extensions=new l.a(this)}return e.prototype.getData=function(){return this.data},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},e.prototype.getCreatedRows=function(){return[].concat(this._rows)},e.prototype.clearCreatedRows=function(){this._rows.forEach((function(e){e.destroy()})),this._rows=[]},e.prototype.isColumnVisible=function(e){return e.location==r.c.Column&&this.isVisible(e.visibility)},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(i){var o=e[i.name],r=t.survey.getQuestionByName(i.name);r&&(o=r.displayValue),n[i.name]="string"==typeof o?o:JSON.stringify(o)||""})),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.columns.filter((function(t){return t.name===e}))[0].location=t,this.onColumnsLocationChanged.fire(this,{columnName:e,location:t}),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnVisibility=function(e,t){this.columns.filter((function(t){return t.name===e}))[0].visibility=t,this.onColumnsVisibilityChanged.fire(this,{columnName:e,columnVisibility:t}),this.onStateChanged.fire(this,this.state)},e.prototype.getColumnVisibility=function(e){return this.columns.filter((function(t){return t.name===e}))[0].visibility},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),this.isRendered){this.currentPageNumber=this.getPageNumber(),e&&this.initTableData(this.data);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)}},set:function(e){s.a.currentLocale=e.locale,this._columns=e.elements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"permissions",{get:function(){return this._columns.map((function(e){return{name:e.name,visibility:e.visibility}}))},set:function(e){var t=this._columns.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.visibility=e.visibility)})),Object(i.a)({},t)}));this._columns=[].concat(t),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),e}(),u=function(){function e(e,t,n){var i=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(){i.closeDetails()},this.details=new a.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";var i=n(1);i.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:"انتخاب سوال برای نمایش..."},i.a.localeNames.fa="Farsi(Persian)"},function(e,t,n){"use strict";var i=n(1);i.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",hideButton:"Masquer",resetFilter:"Rafraichir Filtres",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures"},i.a.localeNames.fr="French"},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="sa-svg-detail"><circle class="st0" cx="1.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="8.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="sa-svg-drag"><path class="st0" 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 class="st1" 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 class="st0" cx="8" cy="4" r="3"></circle><path class="st0" 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 class="st0" cx="6" cy="5" r="3"></circle><path class="st0" 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 class="st0" cx="1.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="14.5" r="1.5"></circle><path class="st0" 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-sorting"><path class="st0" 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 i=n(1),o=n(0),r=n(3);r.a.registerExtension({location:"row",name:"details",visibleIndex:0,render:function(e,t){var n=o.b.createSvgButton("detail");return n.title=i.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,i=o.b.createElement("input","sa-table__row-extension",{type:"checkbox"});return i.checked=n.getIsSelected(),i.onchange=function(){n.toggleSelect()},i}})},function(e,t,n){"use strict";var i=n(1),o=n(2),r=n(0),a=n(3);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",i.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.visibility===o.b.Invisible}));if(0!=n.length){t.style.display="inline-block",t.innerHTML="";var a=r.b.createElement("option","",{text:i.a.getString("showColumn"),disabled:!0,selected:!0});t.appendChild(a),n.forEach((function(e){var n=e.displayName;n.length>20&&(n=n.substring(0,20)+"...");var i=r.b.createElement("option","",{text:n,title:e.displayName,value:e.name});t.appendChild(i)}))}else t.style.display="none"}t.onchange=function(t){var n=t.target.value;t.stopPropagation(),n&&e.setColumnVisibility(n,o.b.Visible)},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",{innerHTML:i.a.getString("showLabel")}),o=r.b.createElement("span","sa-table__entries-label sa-table__entries-label--left",{innerHTML:i.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(o),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 ",{innerHTML:i.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[i.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 i=n(0),o=n(1),r=n(2),a=n(3);a.a.registerExtension({location:"column",name:"drag",visibleIndex:0,render:function(e,t){var n=i.b.createElement("button","sa-table__svg-button sa-table__drag-button");return n.appendChild(i.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=o.a.getString("descOrder"),r=o.a.getString("ascOrder"),a=i.b.createSvgButton("sorting");a.title="";var s="asc";return a.onclick=function(){"asc"==s?(a.title=n,s="desc"):(a.title=r,s="asc"),e.sortByColumn(t.columnName,s)},a.ondrag=function(e){e.stopPropagation()},a}}),a.a.registerExtension({location:"column",name:"hide",visibleIndex:2,render:function(e,t){var n=i.b.createSvgButton("hide");return n.title=o.a.getString("hideColumn"),n.onclick=function(){e.setColumnVisibility(t.columnName,r.b.Invisible)},n}}),a.a.registerExtension({location:"column",name:"movetodetails",visibleIndex:3,render:function(e,t){var n=i.b.createSvgButton("movetodetails");return n.title=o.a.getString("moveToDetail"),n.onclick=function(n){n.stopPropagation(),e.setColumnLocation(t.columnName,r.c.Row)},n}}),a.a.registerExtension({location:"column",name:"filter",visibleIndex:4,render:function(e,t){var n=i.b.createInput("sa-table__filter",o.a.getString("filterPlaceholder"));return n.onclick=function(e){return e.stopPropagation()},n.onchange=function(i){e.applyColumnFilter(t.columnName,n.value)},n}}),a.a.registerExtension({location:"column",name:"makepublic",visibleIndex:-1,render:function(e,t){var n=i.b.createElement("button"),a=i.b.createSvgElement("makeprivate"),s=i.b.createSvgElement("makepublic"),l=e.getColumnVisibility(t.columnName);function c(e){e===r.b.PublicInvisible?(n.className="sa-table__svg-button sa-table__svg-button--active",n.title=o.a.getString("makePublicColumn"),a.style.display="block",s.style.display="none"):(n.className="sa-table__svg-button",n.title=o.a.getString("makePrivateColumn"),a.style.display="none",s.style.display="block")}return c(l),n.appendChild(a),n.appendChild(s),n.onclick=function(n){n.stopPropagation(),l=l===r.b.PublicInvisible?r.b.Visible:r.b.PublicInvisible,e.setColumnVisibility(t.columnName,l),e.onPermissionsChangedCallback&&e.onPermissionsChangedCallback(e),c(l)},n}})},,,function(e,t,n){},,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"localization",(function(){return i.a})),n.d(t,"surveyStrings",(function(){return i.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 i=n(1),o=(n(8),n(9),n(11),n(12),n(13),n(6),n(4)),r=n(7),a=n(5),s=n(2),l=n(0);n(16);if(document){var c=n(10),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,i,o,r){void 0===o&&(o=[]),void 0===r&&(r=!1);var s=e.call(this,t,n,i,o,r)||this;return s.currentPageNumber=0,s.onColumnsReorder=new a.Event,s}return Object(o.b)(t,e),t.initJQuery=function(e){d=e},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(!i);var i=n==s.b.Invisible},t.prototype.setColumnLocation=function(t,n){e.prototype.setColumnLocation.call(this,t,n);var i=this.datatableApi.column(t+":name"),o=n==s.c.Column;i.visible(o)},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.datatableApi.page.len(t).draw(!1)},t.prototype.setPageNumber=function(t){e.prototype.setPageNumber.call(this,t),this.datatableApi.page(t).draw(!1)},t.prototype.getPageNumber=function(){return this.datatableApi.page()},t.prototype.render=function(e){var t=this;e.className+=" sa-table sa-datatables",e.innerHTML="";var n=l.b.createElement("table",""),i=this.getColumns(),o=i.map((function(e){return e.data})),r="sa-table__btn sa-table__btn--small sa-table__btn--gray",a=d.extend(!0,{buttons:[{extend:"copy",className:r},{extend:"csv",className:r},{extend:"print",className:r}],dom:'B<"sa-table__header-extensions">prtip',data:this.tableData,pageLength:5,responsive:!1,scrollX:!0,columns:i,colReorder:{fixedColumnsLeft:1,realtime:!1},language:{sSearch:" ",searchPlaceholder:"Search...",sLengthMenu:"Show _MENU_ entries",paginate:{previous:" ",next:" "}},select:"api",headerCallback:function(e,i,r,a,s){var c=d(n).dataTable().api(),u=t;c.columns().eq(0).each((function(e){var n=d(c.columns(e).header());if(n.unbind("click.DT"),o[e]&&0===n.has("button").length){var i=l.b.createElement("div","sa-table__action-container");u.extensions.render(i,"column",{columnName:o[e]}),i.onmousedown=function(e){u.isColumnReorderEnabled?t.disableColumnReorder():e.stopPropagation()}}n.prepend(i)}))}},this.options);e.appendChild(n),n.width="100%",n.className="sa-datatables__table display responsive dataTable";var s=this.datatableApi=d(n).DataTable(a),c=d("div.sa-table__header-extensions")[0];this.extensions.render(c,"header"),s.page(this.currentPageNumber),this.datatableApi.rowGroup().enable(!1).draw(!1),s.on("column-reorder",(function(e,n,i){t.moveColumn(i.from-1,i.to-1),t.disableColumnReorder(),t.onColumnsReorder.fire(t,{columns:t.columns})})),s.rows().eq(0).each((function(e){var n=s.row(e),i=l.b.createElement("tr"),o=l.b.createElement("td","sa-datatables__details-container");i.appendChild(o);var r=n.node(),a=n.cell(n.index(),0).node(),c=new p(t,a,o,n);c.onToggleDetails.add((function(e,t){t.isExpanded?(o.colSpan=r.childElementCount,r.parentNode.insertBefore(i,r.nextSibling)):i.parentNode&&i.parentNode.removeChild(i)})),t._rows.push(c),c.render()})),s.draw(!1),this.renderResult=e},t.prototype.getColumns=function(){var e=this,t=this.getAvailableColumns().map((function(t){var n=e.survey.getQuestionByName(t.name);return{name:t.name,data:t.name,sTitle:n&&n.title||t.displayName,visible:e.isColumnVisible(t),orderable:!1,mRender:function(e,n,i){var o=i[t.name];return"string"==typeof o?d("<div>").text(o).html():JSON.stringify(o)}}}));return[{orderable:!1,data:null,defaultContent:""}].concat(t)},t.prototype.layout=function(){this.datatableApi&&this.datatableApi.columns.adjust()},t}(r.a),p=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.table=t,r.extensionsContainer=n,r.detailsContainer=i,r._innerRow=o,r.rowElement=o.node(),r.rowData=o.data(),r._innerRow=r._innerRow.row(r.rowElement),t.onColumnsReorder.add((function(){r.render()})),r}return Object(o.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(3)}])})); | ||
!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(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=24)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var i=function(){function e(){}return e.createSelector=function(t,n,i){var o=document.createElement("div");o.className="sa-question__select-wrapper";var r=document.createElement("select");return r.className="sa-question__select",t.forEach((function(t){var i=e.createElement("option","",{value:t.value,text:t.text,selected:n(t)});r.appendChild(i)})),r.onchange=i,o.appendChild(r),o},e.createButton=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i="sa-toolbar__button"),e.createElement("span",i,{innerText:n,onclick:t})},e.createElement=function(e,t,n){void 0===t&&(t="");var i=document.createElement(e);return i.className=t,n&&Object.keys(n).forEach((function(e){i[e]=n[e]})),i},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,i,o,r,a,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=i,d.appendChild(c)):(s="second")&&(d.title=o,d.appendChild(u)),d.onclick=function(e){"first"===s?(s="second",d.title=o,d.removeChild(c),d.appendChild(u),a(e)):"second"===s&&(s="first",d.title=i,d.removeChild(u),d.appendChild(c),r(e))},d},e.createInput=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i=""),e.createElement("input",t,{placeholder:n,defaultValue:i})},e}(),o={runningInBrowser:"function"==typeof window.URL.createObjectURL};function r(){return o.runningInBrowser}var a=function(){function e(){}return e.zipArrays=function(e,t){for(var n=[],i=0;i<Math.min(e.length,t.length);i++)n[i]=[e[i],t[i]];return n},e.unzipArrays=function(e){var t={first:[],second:[]};return e.forEach((function(e,n){t.first[n]=e[0],t.second[n]=e[1]})),t},e.sortDictionary=function(e,t,n){var i=this.zipArrays(e,t),o=function(e,t,n){void 0===n&&(n=!0);var i=e[1]<t[1]?1:e[1]==t[1]?0:-1;return n?i:-1*i};i.sort((function(e,t){return n?o(e,t,!1):o(e,t)}));var r=this.unzipArrays(i);return{keys:r.first,values:r.second}},e.toPercentage=function(e,t){return e/t*100},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i={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",chartType_bar:"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",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages"},o={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=i;o.locales.en=i,o.localeNames.en="english"},function(e,t,n){"use strict";var i,o,r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e[e.Visible=0]="Visible",e[e.Invisible=1]="Invisible",e[e.PublicInvisible=2]="PublicInvisible"}(i||(i={})),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 i}));var i=function(){function e(e){this.table=e,this.renderedExtensions=[]}return e.prototype.render=function(t,n,i){var o=this,r=e.extensions[n];r&&(r=this.sortExtensions(r)).forEach((function(e){if(e.render){var n=e.render(o.table,i);n&&(t.appendChild(n),o.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.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";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),o=n(2),r=n(3),a=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=i.b.createElement("button","sa-table__btn sa-table__btn--gray",{innerHTML:a.a.getString("showAsColumn")});return t.onclick=function(t){t.stopPropagation(),r.table.setColumnLocation(e,o.c.Column)},t};var s=i.b.createElement("table","sa-table__detail-table");this.detailsTable=s,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===o.c.Row&&e})).forEach((function(n){var o=i.b.createElement("tr","sa-table__detail"),r=i.b.createElement("td","",{innerHTML:n.displayName}),a=i.b.createElement("td");a.textContent=e.row.getRowData()[n.name];var s=i.b.createElement("td");s.appendChild(e.createShowAsColumnButton(n.name)),o.appendChild(r),o.appendChild(a),o.appendChild(s),t.push(o)}));var n=i.b.createElement("tr","sa-table__detail"),a=i.b.createElement("td","",{colSpan:3});new r.a(this.table).render(a,"details",{row:this.row}),0!=a.children.length&&(n.appendChild(a),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";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var i=n(4),o=n(5),r=n(2),a=n(6),s=n(1),l=n(3),c=function(){function e(e,t,n,i,a){var c=this;void 0===i&&(i=[]),this.survey=e,this.data=t,this.options=n,this._columns=i,this.isTrustedAccess=a,this.currentPageSize=5,this._rows=[],this.onColumnsVisibilityChanged=new o.Event,this.onColumnsLocationChanged=new o.Event,this.onRowRemoved=new o.Event,this.buildColumns=function(e){return c.survey.getAllQuestions().map((function(e){return{name:e.name,displayName:(e.title||"").trim()||e.name,dataType:"file"!==e.getType()?r.a.Text:r.a.FileLink,visibility:"file"!==e.getType()?r.b.Visible:r.b.Invisible,location:r.c.Column}}))},this.isVisible=function(e){return c.isTrustedAccess&&e!==r.b.Invisible||!c.isTrustedAccess&&e===r.b.Visible},this.isAvailable=function(e){return c.isTrustedAccess||e!==r.b.PublicInvisible},this.getAvailableColumns=function(){return c.columns.filter((function(e){return c.isAvailable(e.visibility)}))},this.onStateChanged=new o.Event,0===i.length&&(this._columns=this.buildColumns(e)),this.initTableData(t),s.a.currentLocale=this.survey.locale,0===i.length&&(this._columns=this.buildColumns(e)),this.extensions=new l.a(this)}return e.prototype.getData=function(){return this.data},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=[]},e.prototype.isColumnVisible=function(e){return e.location==r.c.Column&&this.isVisible(e.visibility)},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(i){var o=e[i.name],r=t.survey.getQuestionByName(i.name);r&&(o=r.displayValue),n[i.name]="string"==typeof o?o:JSON.stringify(o)||""})),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).visibility=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.getColumnVisibility=function(e){return this.columns.filter((function(t){return t.name===e}))[0].visibility},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),this.isRendered){this.currentPageNumber=this.getPageNumber(),e&&this.initTableData(this.data);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){void 0!==e.locale&&(s.a.currentLocale=e.locale),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,visibility:e.visibility}}))},set:function(e){var t=this._columns.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.visibility=e.visibility)})),Object(i.a)({},t)}));this._columns=[].concat(t),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),e}(),u=function(){function e(e,t,n){var i=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(){i.closeDetails()},this.details=new a.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";var i=n(1);i.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:"انتخاب سوال برای نمایش..."},i.a.localeNames.fa="Farsi(Persian)"},function(e,t,n){"use strict";var i=n(1);i.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",hideButton:"Masquer",resetFilter:"Rafraichir Filtres",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures"},i.a.localeNames.fr="French"},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="sa-svg-detail"><circle class="st0" cx="1.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="8.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="sa-svg-drag"><path class="st0" 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 class="st1" 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 class="st0" cx="8" cy="4" r="3"></circle><path class="st0" 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 class="st0" cx="6" cy="5" r="3"></circle><path class="st0" 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 class="st0" cx="1.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="14.5" r="1.5"></circle><path class="st0" 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-sorting"><path class="st0" 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 i=n(1),o=n(0),r=n(3);r.a.registerExtension({location:"row",name:"details",visibleIndex:0,render:function(e,t){var n=o.b.createSvgButton("detail");return n.title=i.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,i=o.b.createElement("input","sa-table__row-extension",{type:"checkbox"});return i.checked=n.getIsSelected(),i.onchange=function(){n.toggleSelect()},i}})},function(e,t,n){"use strict";var i=n(1),o=n(2),r=n(0),a=n(3);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",i.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.visibility===o.b.Invisible}));if(0!=n.length){t.style.display="inline-block",t.innerHTML="";var a=r.b.createElement("option","",{text:i.a.getString("showColumn"),disabled:!0,selected:!0});t.appendChild(a),n.forEach((function(e){var n=e.displayName;n.length>20&&(n=n.substring(0,20)+"...");var i=r.b.createElement("option","",{text:n,title:e.displayName,value:e.name});t.appendChild(i)}))}else t.style.display="none"}t.onchange=function(t){var n=t.target.value;t.stopPropagation(),n&&e.setColumnVisibility(n,o.b.Visible)},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",{innerHTML:i.a.getString("showLabel")}),o=r.b.createElement("span","sa-table__entries-label sa-table__entries-label--left",{innerHTML:i.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(o),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 ",{innerHTML:i.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[i.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 i=n(0),o=n(1),r=n(2),a=n(3);a.a.registerExtension({location:"column",name:"drag",visibleIndex:0,render:function(e,t){var n=i.b.createElement("button","sa-table__svg-button sa-table__drag-button");return n.appendChild(i.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=o.a.getString("descOrder"),r=o.a.getString("ascOrder"),a=i.b.createSvgButton("sorting");a.title="";var s="asc";return a.onclick=function(){"asc"==s?(a.title=n,s="desc"):(a.title=r,s="asc"),e.sortByColumn(t.columnName,s)},a.ondrag=function(e){e.stopPropagation()},a}}),a.a.registerExtension({location:"column",name:"hide",visibleIndex:2,render:function(e,t){var n=i.b.createSvgButton("hide");return n.title=o.a.getString("hideColumn"),n.onclick=function(){e.setColumnVisibility(t.columnName,r.b.Invisible)},n}}),a.a.registerExtension({location:"column",name:"movetodetails",visibleIndex:3,render:function(e,t){var n=i.b.createSvgButton("movetodetails");return n.title=o.a.getString("moveToDetail"),n.onclick=function(n){n.stopPropagation(),e.setColumnLocation(t.columnName,r.c.Row)},n}}),a.a.registerExtension({location:"column",name:"filter",visibleIndex:4,render:function(e,t){var n=i.b.createInput("sa-table__filter",o.a.getString("filterPlaceholder"));return n.onclick=function(e){return e.stopPropagation()},n.onchange=function(i){e.applyColumnFilter(t.columnName,n.value)},n}}),a.a.registerExtension({location:"column",name:"makepublic",visibleIndex:-1,render:function(e,t){var n=i.b.createElement("button"),a=i.b.createSvgElement("makeprivate"),s=i.b.createSvgElement("makepublic"),l=e.getColumnVisibility(t.columnName);function c(e){e===r.b.PublicInvisible?(n.className="sa-table__svg-button sa-table__svg-button--active",n.title=o.a.getString("makePublicColumn"),a.style.display="block",s.style.display="none"):(n.className="sa-table__svg-button",n.title=o.a.getString("makePrivateColumn"),a.style.display="none",s.style.display="block")}return c(l),n.appendChild(a),n.appendChild(s),n.onclick=function(n){n.stopPropagation(),l=l===r.b.PublicInvisible?r.b.Visible:r.b.PublicInvisible,e.setColumnVisibility(t.columnName,l),e.onPermissionsChangedCallback&&e.onPermissionsChangedCallback(e),c(l)},n}})},,,function(e,t,n){},,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"localization",(function(){return i.a})),n.d(t,"surveyStrings",(function(){return i.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 i=n(1),o=(n(8),n(9),n(11),n(12),n(13),n(6),n(4)),r=n(7),a=n(5),s=n(2),l=n(0);n(16);if(document){var c=n(10),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,i,o,r){void 0===o&&(o=[]),void 0===r&&(r=!1);var s=e.call(this,t,n,i,o,r)||this;return s.currentPageNumber=0,s.onColumnsReorder=new a.Event,s}return Object(o.b)(t,e),t.initJQuery=function(e){d=e},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);var i=n==s.b.Invisible;this.datatableApi.column(t+":name").visible(!i)},t.prototype.setColumnLocation=function(t,n){e.prototype.setColumnLocation.call(this,t,n);var i=this.datatableApi.column(t+":name"),o=n==s.c.Column;i.visible(o)},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(e){var t=this;e.className+=" sa-table sa-datatables",e.innerHTML="";var n=l.b.createElement("table",""),i=this.getColumns(),o=i.map((function(e){return e.data})),r="sa-table__btn sa-table__btn--small sa-table__btn--gray",a=d.extend(!0,{buttons:[{extend:"copy",className:r},{extend:"csv",className:r},{extend:"print",className:r}],dom:'B<"sa-table__header-extensions">prtip',data:this.tableData,pageLength:this.currentPageSize,responsive:!1,scrollX:!0,columns:i,colReorder:{fixedColumnsLeft:1,realtime:!1},language:{sSearch:" ",searchPlaceholder:"Search...",sLengthMenu:"Show _MENU_ entries",paginate:{previous:" ",next:" "}},select:"api",headerCallback:function(e,i,r,a,s){var c=d(n).dataTable().api(),u=t;c.columns().eq(0).each((function(e){var n=d(c.columns(e).header());if(n.unbind("click.DT"),o[e]&&0===n.has("button").length){var i=l.b.createElement("div","sa-table__action-container");u.extensions.render(i,"column",{columnName:o[e]}),i.onmousedown=function(e){u.isColumnReorderEnabled?t.disableColumnReorder():e.stopPropagation()}}n.prepend(i)}))}},this.options);e.appendChild(n),n.className="sa-datatables__table display responsive dataTable";var s=this.datatableApi=d(n).DataTable(a),c=d("div.sa-table__header-extensions")[0];this.extensions.render(c,"header"),s.page(this.currentPageNumber),this.datatableApi.rowGroup().enable(!1).draw(!1),s.on("column-reorder",(function(e,n,i){t.moveColumn(i.from-1,i.to-1),t.disableColumnReorder(),t.onColumnsReorder.fire(t,{columns:t.columns})})),s.rows().eq(0).each((function(e){var n=s.row(e),i=l.b.createElement("tr"),o=l.b.createElement("td","sa-datatables__details-container");i.appendChild(o);var r=n.node(),a=n.cell(n.index(),0).node(),c=new p(t,a,o,n);c.onToggleDetails.add((function(e,t){t.isExpanded?(o.colSpan=r.childElementCount,r.parentNode.insertBefore(i,r.nextSibling)):i.parentNode&&i.parentNode.removeChild(i)})),t._rows.push(c),c.render()})),s.draw(!1),this.renderResult=e},t.prototype.getColumns=function(){var e=this,t=this.getAvailableColumns().map((function(t){var n=e.survey.getQuestionByName(t.name);return{name:t.name,data:t.name,sTitle:n&&n.title||t.displayName,visible:e.isColumnVisible(t),orderable:!1,width:"number"==typeof t.width?t.width+"px":t.width,mRender:function(e,n,i){var o=i[t.name];return"string"==typeof o?d("<div>").text(o).html():JSON.stringify(o)}}}));return[{orderable:!1,data:null,defaultContent:""}].concat(t)},t.prototype.layout=function(){this.datatableApi&&this.datatableApi.columns.adjust()},t}(r.a),p=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.table=t,r.extensionsContainer=n,r.detailsContainer=i,r._innerRow=o,r.rowElement=o.node(),r.rowData=o.data(),r._innerRow=r._innerRow.row(r.rowElement),t.onColumnsReorder.add((function(){r.render()})),r}return Object(o.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(3)}])})); |
/*! | ||
* surveyjs - SurveyJS Analytics library v1.7.27 | ||
* surveyjs - SurveyJS Analytics library v1.7.28 | ||
* Copyright (c) 2015-2019 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"),require("tabulator-tables")):"function"==typeof define&&define.amd?define("SurveyAnalyticsTabulator",["survey-core","tabulator-tables"],t):"object"==typeof exports?exports.SurveyAnalyticsTabulator=t(require("survey-core"),require("tabulator-tables")):e.SurveyAnalyticsTabulator=t(e.Survey,e.Tabulator)}(window,(function(e,t){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=25)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var i=function(){function e(){}return e.createSelector=function(t,n,i){var o=document.createElement("div");o.className="sa-question__select-wrapper";var r=document.createElement("select");return r.className="sa-question__select",t.forEach((function(t){var i=e.createElement("option","",{value:t.value,text:t.text,selected:n(t)});r.appendChild(i)})),r.onchange=i,o.appendChild(r),o},e.createButton=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i="sa-toolbar__button"),e.createElement("span",i,{innerText:n,onclick:t})},e.createElement=function(e,t,n){void 0===t&&(t="");var i=document.createElement(e);return i.className=t,n&&Object.keys(n).forEach((function(e){i[e]=n[e]})),i},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,i,o,r,a,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=i,d.appendChild(c)):(s="second")&&(d.title=o,d.appendChild(u)),d.onclick=function(e){"first"===s?(s="second",d.title=o,d.removeChild(c),d.appendChild(u),a(e)):"second"===s&&(s="first",d.title=i,d.removeChild(u),d.appendChild(c),r(e))},d},e.createInput=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i=""),e.createElement("input",t,{placeholder:n,defaultValue:i})},e}(),o={runningInBrowser:"function"==typeof window.URL.createObjectURL};function r(){return o.runningInBrowser}var a=function(){function e(){}return e.zipArrays=function(e,t){for(var n=[],i=0;i<Math.min(e.length,t.length);i++)n[i]=[e[i],t[i]];return n},e.unzipArrays=function(e){var t={first:[],second:[]};return e.forEach((function(e,n){t.first[n]=e[0],t.second[n]=e[1]})),t},e.sortDictionary=function(e,t,n){var i=this.zipArrays(e,t),o=function(e,t,n){void 0===n&&(n=!0);var i=e[1]<t[1]?1:e[1]==t[1]?0:-1;return n?i:-1*i};i.sort((function(e,t){return n?o(e,t,!1):o(e,t)}));var r=this.unzipArrays(i);return{keys:r.first,values:r.second}},e.toPercentage=function(e,t){return e/t*100},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i={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",chartType_bar:"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",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages"},o={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=i;o.locales.en=i,o.localeNames.en="english"},function(e,t,n){"use strict";var i,o,r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e[e.Visible=0]="Visible",e[e.Invisible=1]="Invisible",e[e.PublicInvisible=2]="PublicInvisible"}(i||(i={})),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 i}));var i=function(){function e(e){this.table=e,this.renderedExtensions=[]}return e.prototype.render=function(t,n,i){var o=this,r=e.extensions[n];r&&(r=this.sortExtensions(r)).forEach((function(e){if(e.render){var n=e.render(o.table,i);n&&(t.appendChild(n),o.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.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";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),o=n(2),r=n(3),a=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=i.b.createElement("button","sa-table__btn sa-table__btn--gray",{innerHTML:a.a.getString("showAsColumn")});return t.onclick=function(t){t.stopPropagation(),r.table.setColumnLocation(e,o.c.Column)},t};var s=i.b.createElement("table","sa-table__detail-table");this.detailsTable=s,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===o.c.Row&&e})).forEach((function(n){var o=i.b.createElement("tr","sa-table__detail"),r=i.b.createElement("td","",{innerHTML:n.displayName}),a=i.b.createElement("td");a.textContent=e.row.getRowData()[n.name];var s=i.b.createElement("td");s.appendChild(e.createShowAsColumnButton(n.name)),o.appendChild(r),o.appendChild(a),o.appendChild(s),t.push(o)}));var n=i.b.createElement("tr","sa-table__detail"),a=i.b.createElement("td","",{colSpan:3});new r.a(this.table).render(a,"details",{row:this.row}),0!=a.children.length&&(n.appendChild(a),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";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var i=n(4),o=n(5),r=n(2),a=n(6),s=n(1),l=n(3),c=function(){function e(e,t,n,i,a){var c=this;void 0===i&&(i=[]),this.survey=e,this.data=t,this.options=n,this._columns=i,this.isTrustedAccess=a,this.currentPageSize=5,this._rows=[],this.onColumnsVisibilityChanged=new o.Event,this.onColumnsLocationChanged=new o.Event,this.onRowRemoved=new o.Event,this.buildColumns=function(e){return c.survey.getAllQuestions().map((function(e){return{name:e.name,displayName:(e.title||"").trim()||e.name,dataType:"file"!==e.getType()?r.a.Text:r.a.FileLink,visibility:"file"!==e.getType()?r.b.Visible:r.b.Invisible,location:r.c.Column}}))},this.isVisible=function(e){return c.isTrustedAccess&&e!==r.b.Invisible||!c.isTrustedAccess&&e===r.b.Visible},this.isAvailable=function(e){return c.isTrustedAccess||e!==r.b.PublicInvisible},this.getAvailableColumns=function(){return c.columns.filter((function(e){return c.isAvailable(e.visibility)}))},this.onStateChanged=new o.Event,0===i.length&&(this._columns=this.buildColumns(e)),this.initTableData(t),s.a.currentLocale=this.survey.locale,0===i.length&&(this._columns=this.buildColumns(e)),this.extensions=new l.a(this)}return e.prototype.getData=function(){return this.data},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},e.prototype.getCreatedRows=function(){return[].concat(this._rows)},e.prototype.clearCreatedRows=function(){this._rows.forEach((function(e){e.destroy()})),this._rows=[]},e.prototype.isColumnVisible=function(e){return e.location==r.c.Column&&this.isVisible(e.visibility)},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(i){var o=e[i.name],r=t.survey.getQuestionByName(i.name);r&&(o=r.displayValue),n[i.name]="string"==typeof o?o:JSON.stringify(o)||""})),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.columns.filter((function(t){return t.name===e}))[0].location=t,this.onColumnsLocationChanged.fire(this,{columnName:e,location:t}),this.onStateChanged.fire(this,this.state)},e.prototype.setColumnVisibility=function(e,t){this.columns.filter((function(t){return t.name===e}))[0].visibility=t,this.onColumnsVisibilityChanged.fire(this,{columnName:e,columnVisibility:t}),this.onStateChanged.fire(this,this.state)},e.prototype.getColumnVisibility=function(e){return this.columns.filter((function(t){return t.name===e}))[0].visibility},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),this.isRendered){this.currentPageNumber=this.getPageNumber(),e&&this.initTableData(this.data);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)}},set:function(e){s.a.currentLocale=e.locale,this._columns=e.elements},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"permissions",{get:function(){return this._columns.map((function(e){return{name:e.name,visibility:e.visibility}}))},set:function(e){var t=this._columns.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.visibility=e.visibility)})),Object(i.a)({},t)}));this._columns=[].concat(t),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),e}(),u=function(){function e(e,t,n){var i=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(){i.closeDetails()},this.details=new a.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";var i=n(1);i.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:"انتخاب سوال برای نمایش..."},i.a.localeNames.fa="Farsi(Persian)"},function(e,t,n){"use strict";var i=n(1);i.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",hideButton:"Masquer",resetFilter:"Rafraichir Filtres",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures"},i.a.localeNames.fr="French"},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="sa-svg-detail"><circle class="st0" cx="1.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="8.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="sa-svg-drag"><path class="st0" 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 class="st1" 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 class="st0" cx="8" cy="4" r="3"></circle><path class="st0" 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 class="st0" cx="6" cy="5" r="3"></circle><path class="st0" 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 class="st0" cx="1.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="14.5" r="1.5"></circle><path class="st0" 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-sorting"><path class="st0" 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 i=n(1),o=n(0),r=n(3);r.a.registerExtension({location:"row",name:"details",visibleIndex:0,render:function(e,t){var n=o.b.createSvgButton("detail");return n.title=i.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,i=o.b.createElement("input","sa-table__row-extension",{type:"checkbox"});return i.checked=n.getIsSelected(),i.onchange=function(){n.toggleSelect()},i}})},function(e,t,n){"use strict";var i=n(1),o=n(2),r=n(0),a=n(3);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",i.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.visibility===o.b.Invisible}));if(0!=n.length){t.style.display="inline-block",t.innerHTML="";var a=r.b.createElement("option","",{text:i.a.getString("showColumn"),disabled:!0,selected:!0});t.appendChild(a),n.forEach((function(e){var n=e.displayName;n.length>20&&(n=n.substring(0,20)+"...");var i=r.b.createElement("option","",{text:n,title:e.displayName,value:e.name});t.appendChild(i)}))}else t.style.display="none"}t.onchange=function(t){var n=t.target.value;t.stopPropagation(),n&&e.setColumnVisibility(n,o.b.Visible)},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",{innerHTML:i.a.getString("showLabel")}),o=r.b.createElement("span","sa-table__entries-label sa-table__entries-label--left",{innerHTML:i.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(o),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 ",{innerHTML:i.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[i.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 i=n(0),o=n(1),r=n(2),a=n(3);a.a.registerExtension({location:"column",name:"drag",visibleIndex:0,render:function(e,t){var n=i.b.createElement("button","sa-table__svg-button sa-table__drag-button");return n.appendChild(i.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=o.a.getString("descOrder"),r=o.a.getString("ascOrder"),a=i.b.createSvgButton("sorting");a.title="";var s="asc";return a.onclick=function(){"asc"==s?(a.title=n,s="desc"):(a.title=r,s="asc"),e.sortByColumn(t.columnName,s)},a.ondrag=function(e){e.stopPropagation()},a}}),a.a.registerExtension({location:"column",name:"hide",visibleIndex:2,render:function(e,t){var n=i.b.createSvgButton("hide");return n.title=o.a.getString("hideColumn"),n.onclick=function(){e.setColumnVisibility(t.columnName,r.b.Invisible)},n}}),a.a.registerExtension({location:"column",name:"movetodetails",visibleIndex:3,render:function(e,t){var n=i.b.createSvgButton("movetodetails");return n.title=o.a.getString("moveToDetail"),n.onclick=function(n){n.stopPropagation(),e.setColumnLocation(t.columnName,r.c.Row)},n}}),a.a.registerExtension({location:"column",name:"filter",visibleIndex:4,render:function(e,t){var n=i.b.createInput("sa-table__filter",o.a.getString("filterPlaceholder"));return n.onclick=function(e){return e.stopPropagation()},n.onchange=function(i){e.applyColumnFilter(t.columnName,n.value)},n}}),a.a.registerExtension({location:"column",name:"makepublic",visibleIndex:-1,render:function(e,t){var n=i.b.createElement("button"),a=i.b.createSvgElement("makeprivate"),s=i.b.createSvgElement("makepublic"),l=e.getColumnVisibility(t.columnName);function c(e){e===r.b.PublicInvisible?(n.className="sa-table__svg-button sa-table__svg-button--active",n.title=o.a.getString("makePublicColumn"),a.style.display="block",s.style.display="none"):(n.className="sa-table__svg-button",n.title=o.a.getString("makePrivateColumn"),a.style.display="none",s.style.display="block")}return c(l),n.appendChild(a),n.appendChild(s),n.onclick=function(n){n.stopPropagation(),l=l===r.b.PublicInvisible?r.b.Visible:r.b.PublicInvisible,e.setColumnVisibility(t.columnName,l),e.onPermissionsChangedCallback&&e.onPermissionsChangedCallback(e),c(l)},n}})},,,,function(e,t,n){},function(e,n){e.exports=t},,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"localization",(function(){return i.a})),n.d(t,"surveyStrings",(function(){return i.b})),n.d(t,"defaultOptions",(function(){return d})),n.d(t,"Tabulator",(function(){return h})),n.d(t,"TabulatorRow",(function(){return p})),n.d(t,"TableExtensions",(function(){return b.a})),n.d(t,"DocumentHelper",(function(){return s.b}));var i=n(1),o=(n(8),n(9),n(11),n(12),n(13),n(6),n(4)),r=n(7),a=n(2),s=(n(17),n(0)),l=n(18);if(document){var c=n(10),u=document.createElement("div");u.style.display="none",u.innerHTML=c,document.head.appendChild(u)}var d={columnMinWidth:248,downloadOptions:{pdf:{isVisible:!0,orientation:"portrait",autoTable:{styles:{fillColor:[26,179,148]},columnStyles:{id:{fillColor:255}},margin:{top:60}}},csv:{isVisible:!0,delimiter:","},xlsx:{isVisible:!0,sheetName:"results"}},paginationButtonCount:3,actionsColumnWidth:60},h=function(e){function t(t,n,i,o,r){void 0===o&&(o=[]),void 0===r&&(r=!1);var a=e.call(this,t,n,i,o,r)||this;a.COLUMN_MIN_WIDTH=155,a.tabulatorTables=null,a.tableContainer=null,a.destroy=function(){a.tabulatorTables.destroy(),e.prototype.destroy.call(a)},a.columnMovedCallback=function(e,t){var n=a._columns.indexOf(a._columns.filter((function(t){return t.name==e.getField()}))[0]),i=t.indexOf(e)-1;a.moveColumn(n,i),a.disableColumnReorder()},a.rowFormatter=function(e){var t=new p(a,e.getCells()[0].getElement(),e.getElement(),e);t.onToggleDetails.add((function(){e.normalizeHeight(),a.layout()})),t.render(),a._rows.push(t)};var s={};return Object.assign(s,d,i),a.options=s,a}return Object(o.b)(t,e),t.prototype.render=function(e){e.className+=" sa-table sa-tabulator",e.innerHTML="";var t=this.getColumns(),n=this.tableData,i=s.b.createElement("div","sa-tabulator__header"),o=s.b.createElement("div","sa-tabulator__pagination-container");this.tableContainer=s.b.createElement("div"),e.appendChild(i),e.appendChild(this.tableContainer),this.tabulatorTables=new l(this.tableContainer,{data:n,layout:"fitColumns",pagination:"local",paginationSize:5,movableColumns:!0,maxHeight:"100%",columns:t,rowFormatter:this.rowFormatter,paginationButtonCount:this.options.paginationButtonCount,paginationElement:o,columnMoved:this.columnMovedCallback,tooltipsHeader:!0,tooltips:function(e){return e.getValue()}});var r=s.b.createElement("div","sa-table__header-extensions");i.appendChild(this.createDownloadsBar()),i.appendChild(r),i.appendChild(o),this.extensions.render(r,"header"),this.renderResult=e},t.prototype.createDownloadsBar=function(){var e=this,t=function(t,n){return s.b.createElement("button","sa-table__btn sa-table__btn--small sa-table__btn--gray",{innerHTML:n,onclick:function(){e.download(t)}})},n=s.b.createElement("div","sa-tabulator__downloads-bar");return this.options.downloadOptions.xlsx.isVisible&&n.appendChild(t("xlsx","Excel")),this.options.downloadOptions.pdf.isVisible&&n.appendChild(t("pdf","PDF")),n.appendChild(t("csv","CSV")),n},t.prototype.getTitleFormatter=function(e,t,n,i){var o=this,r=s.b.createElement("div"),a=s.b.createElement("span","",{innerHTML:e.getValue()}),l=this.getHeaderActions(i);return r.appendChild(l),r.appendChild(a),r.onmousedown=function(e){o.isColumnReorderEnabled?o.disableColumnReorder():e.stopPropagation()},r},t.prototype.getHeaderActions=function(e){var t=s.b.createElement("div","sa-table__action-container");return this.extensions.render(t,"column",{columnName:e}),t},t.prototype.getColumns=function(){var e=this,t=this.COLUMN_MIN_WIDTH>this.options.columnMinWidth?this.COLUMN_MIN_WIDTH:this.options.columnMinWidth,n=this.getAvailableColumns().map((function(n,i){var o=e.survey.getQuestionByName(n.name);return{field:n.name,title:o&&o.title||n.displayName,minWidth:t,widthShrink:1,visible:e.isColumnVisible(n),headerSort:!1,titleFormatter:function(t,i,o){return e.getTitleFormatter(t,i,o,n.name)}}}));return n.unshift({field:"",title:"",download:!1,resizable:!1,width:this.options.actionsColumnWidth}),n},t.prototype.setColumnVisibility=function(t,n){e.prototype.setColumnVisibility.call(this,t,n),n==a.b.Invisible?this.tabulatorTables.hideColumn(t):this.tabulatorTables.showColumn(t),this.layout()},t.prototype.setColumnLocation=function(t,n){e.prototype.setColumnLocation.call(this,t,n),n==a.c.Row?this.tabulatorTables.hideColumn(t):this.tabulatorTables.showColumn(t),this.layout()},t.prototype.sortByColumn=function(e,t){this.tabulatorTables.setSort(e,t)},t.prototype.applyColumnFilter=function(e,t){this.tabulatorTables.setFilter(e,"like",t)},t.prototype.applyFilter=function(e){this.tabulatorTables.setFilter((function(e,t){for(var n in e)if(e[n].toLowerCase().includes(t.value.toLowerCase()))return!0;return!1}),{value:e})},t.prototype.getPageNumber=function(){return this.tabulatorTables?this.tabulatorTables.getPage():1},t.prototype.setPageNumber=function(t){this.tabulatorTables.setPage(t),e.prototype.setPageNumber.call(this,t)},t.prototype.setPageSize=function(t){e.prototype.setPageSize.call(this,t),this.tabulatorTables.setPageSize(t)},t.prototype.download=function(e){this.tabulatorTables.download(e,"results."+e,this.options.downloadOptions[e])},t.prototype.layout=function(){this.tabulatorTables.redraw()},t}(r.a),p=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.table=t,r.extensionsContainer=n,r.detailsContainer=i,r.innerRow=o,r}return Object(o.b)(t,e),t.prototype.getElement=function(){return this.innerRow.getElement()},t.prototype.getRowData=function(){return this.innerRow.getData()},t.prototype.getDataPosition=function(){return this.innerRow.getPosition()},t.prototype.remove=function(){this.innerRow.delete(),e.prototype.remove.call(this)},t}(r.b),b=n(3)}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("survey-core"),require("tabulator-tables")):"function"==typeof define&&define.amd?define("SurveyAnalyticsTabulator",["survey-core","tabulator-tables"],t):"object"==typeof exports?exports.SurveyAnalyticsTabulator=t(require("survey-core"),require("tabulator-tables")):e.SurveyAnalyticsTabulator=t(e.Survey,e.Tabulator)}(window,(function(e,t){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=25)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var i=function(){function e(){}return e.createSelector=function(t,n,i){var o=document.createElement("div");o.className="sa-question__select-wrapper";var r=document.createElement("select");return r.className="sa-question__select",t.forEach((function(t){var i=e.createElement("option","",{value:t.value,text:t.text,selected:n(t)});r.appendChild(i)})),r.onchange=i,o.appendChild(r),o},e.createButton=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i="sa-toolbar__button"),e.createElement("span",i,{innerText:n,onclick:t})},e.createElement=function(e,t,n){void 0===t&&(t="");var i=document.createElement(e);return i.className=t,n&&Object.keys(n).forEach((function(e){i[e]=n[e]})),i},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,i,o,r,a,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=i,d.appendChild(c)):(s="second")&&(d.title=o,d.appendChild(u)),d.onclick=function(e){"first"===s?(s="second",d.title=o,d.removeChild(c),d.appendChild(u),a(e)):"second"===s&&(s="first",d.title=i,d.removeChild(u),d.appendChild(c),r(e))},d},e.createInput=function(t,n,i){return void 0===n&&(n=""),void 0===i&&(i=""),e.createElement("input",t,{placeholder:n,defaultValue:i})},e}(),o={runningInBrowser:"function"==typeof window.URL.createObjectURL};function r(){return o.runningInBrowser}var a=function(){function e(){}return e.zipArrays=function(e,t){for(var n=[],i=0;i<Math.min(e.length,t.length);i++)n[i]=[e[i],t[i]];return n},e.unzipArrays=function(e){var t={first:[],second:[]};return e.forEach((function(e,n){t.first[n]=e[0],t.second[n]=e[1]})),t},e.sortDictionary=function(e,t,n){var i=this.zipArrays(e,t),o=function(e,t,n){void 0===n&&(n=!0);var i=e[1]<t[1]?1:e[1]==t[1]?0:-1;return n?i:-1*i};i.sort((function(e,t){return n?o(e,t,!1):o(e,t)}));var r=this.unzipArrays(i);return{keys:r.first,values:r.second}},e.toPercentage=function(e,t){return e/t*100},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var i={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",chartType_bar:"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",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages"},o={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=i;o.locales.en=i,o.localeNames.en="english"},function(e,t,n){"use strict";var i,o,r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e[e.Visible=0]="Visible",e[e.Invisible=1]="Invisible",e[e.PublicInvisible=2]="PublicInvisible"}(i||(i={})),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 i}));var i=function(){function e(e){this.table=e,this.renderedExtensions=[]}return e.prototype.render=function(t,n,i){var o=this,r=e.extensions[n];r&&(r=this.sortExtensions(r)).forEach((function(e){if(e.render){var n=e.render(o.table,i);n&&(t.appendChild(n),o.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.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";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function o(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function i(){this.constructor=e}e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}},function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),o=n(2),r=n(3),a=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=i.b.createElement("button","sa-table__btn sa-table__btn--gray",{innerHTML:a.a.getString("showAsColumn")});return t.onclick=function(t){t.stopPropagation(),r.table.setColumnLocation(e,o.c.Column)},t};var s=i.b.createElement("table","sa-table__detail-table");this.detailsTable=s,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===o.c.Row&&e})).forEach((function(n){var o=i.b.createElement("tr","sa-table__detail"),r=i.b.createElement("td","",{innerHTML:n.displayName}),a=i.b.createElement("td");a.textContent=e.row.getRowData()[n.name];var s=i.b.createElement("td");s.appendChild(e.createShowAsColumnButton(n.name)),o.appendChild(r),o.appendChild(a),o.appendChild(s),t.push(o)}));var n=i.b.createElement("tr","sa-table__detail"),a=i.b.createElement("td","",{colSpan:3});new r.a(this.table).render(a,"details",{row:this.row}),0!=a.children.length&&(n.appendChild(a),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";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var i=n(4),o=n(5),r=n(2),a=n(6),s=n(1),l=n(3),c=function(){function e(e,t,n,i,a){var c=this;void 0===i&&(i=[]),this.survey=e,this.data=t,this.options=n,this._columns=i,this.isTrustedAccess=a,this.currentPageSize=5,this._rows=[],this.onColumnsVisibilityChanged=new o.Event,this.onColumnsLocationChanged=new o.Event,this.onRowRemoved=new o.Event,this.buildColumns=function(e){return c.survey.getAllQuestions().map((function(e){return{name:e.name,displayName:(e.title||"").trim()||e.name,dataType:"file"!==e.getType()?r.a.Text:r.a.FileLink,visibility:"file"!==e.getType()?r.b.Visible:r.b.Invisible,location:r.c.Column}}))},this.isVisible=function(e){return c.isTrustedAccess&&e!==r.b.Invisible||!c.isTrustedAccess&&e===r.b.Visible},this.isAvailable=function(e){return c.isTrustedAccess||e!==r.b.PublicInvisible},this.getAvailableColumns=function(){return c.columns.filter((function(e){return c.isAvailable(e.visibility)}))},this.onStateChanged=new o.Event,0===i.length&&(this._columns=this.buildColumns(e)),this.initTableData(t),s.a.currentLocale=this.survey.locale,0===i.length&&(this._columns=this.buildColumns(e)),this.extensions=new l.a(this)}return e.prototype.getData=function(){return this.data},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=[]},e.prototype.isColumnVisible=function(e){return e.location==r.c.Column&&this.isVisible(e.visibility)},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(i){var o=e[i.name],r=t.survey.getQuestionByName(i.name);r&&(o=r.displayValue),n[i.name]="string"==typeof o?o:JSON.stringify(o)||""})),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).visibility=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.getColumnVisibility=function(e){return this.columns.filter((function(t){return t.name===e}))[0].visibility},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),this.isRendered){this.currentPageNumber=this.getPageNumber(),e&&this.initTableData(this.data);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){void 0!==e.locale&&(s.a.currentLocale=e.locale),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,visibility:e.visibility}}))},set:function(e){var t=this._columns.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.visibility=e.visibility)})),Object(i.a)({},t)}));this._columns=[].concat(t),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),e}(),u=function(){function e(e,t,n){var i=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(){i.closeDetails()},this.details=new a.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";var i=n(1);i.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:"انتخاب سوال برای نمایش..."},i.a.localeNames.fa="Farsi(Persian)"},function(e,t,n){"use strict";var i=n(1);i.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",hideButton:"Masquer",resetFilter:"Rafraichir Filtres",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures"},i.a.localeNames.fr="French"},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="sa-svg-detail"><circle class="st0" cx="1.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="8.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="8.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="sa-svg-drag"><path class="st0" 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 class="st1" 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 class="st0" cx="8" cy="4" r="3"></circle><path class="st0" 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 class="st0" cx="6" cy="5" r="3"></circle><path class="st0" 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 class="st0" cx="1.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="7.5" cy="14.5" r="1.5"></circle><circle class="st0" cx="13.5" cy="14.5" r="1.5"></circle><path class="st0" 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-sorting"><path class="st0" 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 i=n(1),o=n(0),r=n(3);r.a.registerExtension({location:"row",name:"details",visibleIndex:0,render:function(e,t){var n=o.b.createSvgButton("detail");return n.title=i.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,i=o.b.createElement("input","sa-table__row-extension",{type:"checkbox"});return i.checked=n.getIsSelected(),i.onchange=function(){n.toggleSelect()},i}})},function(e,t,n){"use strict";var i=n(1),o=n(2),r=n(0),a=n(3);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",i.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.visibility===o.b.Invisible}));if(0!=n.length){t.style.display="inline-block",t.innerHTML="";var a=r.b.createElement("option","",{text:i.a.getString("showColumn"),disabled:!0,selected:!0});t.appendChild(a),n.forEach((function(e){var n=e.displayName;n.length>20&&(n=n.substring(0,20)+"...");var i=r.b.createElement("option","",{text:n,title:e.displayName,value:e.name});t.appendChild(i)}))}else t.style.display="none"}t.onchange=function(t){var n=t.target.value;t.stopPropagation(),n&&e.setColumnVisibility(n,o.b.Visible)},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",{innerHTML:i.a.getString("showLabel")}),o=r.b.createElement("span","sa-table__entries-label sa-table__entries-label--left",{innerHTML:i.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(o),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 ",{innerHTML:i.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[i.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 i=n(0),o=n(1),r=n(2),a=n(3);a.a.registerExtension({location:"column",name:"drag",visibleIndex:0,render:function(e,t){var n=i.b.createElement("button","sa-table__svg-button sa-table__drag-button");return n.appendChild(i.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=o.a.getString("descOrder"),r=o.a.getString("ascOrder"),a=i.b.createSvgButton("sorting");a.title="";var s="asc";return a.onclick=function(){"asc"==s?(a.title=n,s="desc"):(a.title=r,s="asc"),e.sortByColumn(t.columnName,s)},a.ondrag=function(e){e.stopPropagation()},a}}),a.a.registerExtension({location:"column",name:"hide",visibleIndex:2,render:function(e,t){var n=i.b.createSvgButton("hide");return n.title=o.a.getString("hideColumn"),n.onclick=function(){e.setColumnVisibility(t.columnName,r.b.Invisible)},n}}),a.a.registerExtension({location:"column",name:"movetodetails",visibleIndex:3,render:function(e,t){var n=i.b.createSvgButton("movetodetails");return n.title=o.a.getString("moveToDetail"),n.onclick=function(n){n.stopPropagation(),e.setColumnLocation(t.columnName,r.c.Row)},n}}),a.a.registerExtension({location:"column",name:"filter",visibleIndex:4,render:function(e,t){var n=i.b.createInput("sa-table__filter",o.a.getString("filterPlaceholder"));return n.onclick=function(e){return e.stopPropagation()},n.onchange=function(i){e.applyColumnFilter(t.columnName,n.value)},n}}),a.a.registerExtension({location:"column",name:"makepublic",visibleIndex:-1,render:function(e,t){var n=i.b.createElement("button"),a=i.b.createSvgElement("makeprivate"),s=i.b.createSvgElement("makepublic"),l=e.getColumnVisibility(t.columnName);function c(e){e===r.b.PublicInvisible?(n.className="sa-table__svg-button sa-table__svg-button--active",n.title=o.a.getString("makePublicColumn"),a.style.display="block",s.style.display="none"):(n.className="sa-table__svg-button",n.title=o.a.getString("makePrivateColumn"),a.style.display="none",s.style.display="block")}return c(l),n.appendChild(a),n.appendChild(s),n.onclick=function(n){n.stopPropagation(),l=l===r.b.PublicInvisible?r.b.Visible:r.b.PublicInvisible,e.setColumnVisibility(t.columnName,l),e.onPermissionsChangedCallback&&e.onPermissionsChangedCallback(e),c(l)},n}})},,,,function(e,t,n){},function(e,n){e.exports=t},,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"localization",(function(){return i.a})),n.d(t,"surveyStrings",(function(){return i.b})),n.d(t,"defaultOptions",(function(){return d})),n.d(t,"Tabulator",(function(){return h})),n.d(t,"TabulatorRow",(function(){return p})),n.d(t,"TableExtensions",(function(){return b.a})),n.d(t,"DocumentHelper",(function(){return s.b}));var i=n(1),o=(n(8),n(9),n(11),n(12),n(13),n(6),n(4)),r=n(7),a=n(2),s=(n(17),n(0)),l=n(18);if(document){var c=n(10),u=document.createElement("div");u.style.display="none",u.innerHTML=c,document.head.appendChild(u)}var d={columnMinWidth:248,downloadOptions:{pdf:{isVisible:!0,orientation:"portrait",autoTable:{styles:{fillColor:[26,179,148]},columnStyles:{id:{fillColor:255}},margin:{top:60}}},csv:{isVisible:!0,delimiter:","},xlsx:{isVisible:!0,sheetName:"results"}},paginationButtonCount:3,actionsColumnWidth:60},h=function(e){function t(t,n,i,o,r){void 0===o&&(o=[]),void 0===r&&(r=!1);var a=e.call(this,t,n,i,o,r)||this;a.COLUMN_MIN_WIDTH=155,a.tabulatorTables=null,a.tableContainer=null,a.destroy=function(){a.tabulatorTables.destroy(),e.prototype.destroy.call(a)},a.columnMovedCallback=function(e,t){var n=a._columns.indexOf(a.getColumnByName(e.getField())),i=t.indexOf(e)-1;a.moveColumn(n,i),a.disableColumnReorder()},a.columnResizedCallback=function(e){a.setColumnWidth(e.getField(),e.getWidth()),a.layout()},a.rowFormatter=function(e){var t=new p(a,e.getCells()[0].getElement(),e.getElement(),e);t.onToggleDetails.add((function(){e.normalizeHeight(),a.layout()})),t.render(),a._rows.push(t)};var s={};return Object.assign(s,d,i),a.options=s,a}return Object(o.b)(t,e),t.prototype.render=function(e){e.className+=" sa-table sa-tabulator",e.innerHTML="";var t=this.getColumns(),n=this.tableData,i=s.b.createElement("div","sa-tabulator__header"),o=s.b.createElement("div","sa-tabulator__pagination-container");this.tableContainer=s.b.createElement("div"),e.appendChild(i),e.appendChild(this.tableContainer),this.tabulatorTables=new l(this.tableContainer,{data:n,layout:"fitColumns",pagination:"local",paginationSize:this.currentPageSize,movableColumns:!0,maxHeight:"100%",columns:t,rowFormatter:this.rowFormatter,paginationButtonCount:this.options.paginationButtonCount,paginationElement:o,columnMoved:this.columnMovedCallback,columnResized:this.columnResizedCallback,tooltipsHeader:!0,tooltips:function(e){return e.getValue()}});var r=s.b.createElement("div","sa-table__header-extensions");i.appendChild(this.createDownloadsBar()),i.appendChild(r),i.appendChild(o),this.extensions.render(r,"header"),this.renderResult=e},t.prototype.createDownloadsBar=function(){var e=this,t=function(t,n){return s.b.createElement("button","sa-table__btn sa-table__btn--small sa-table__btn--gray",{innerHTML:n,onclick:function(){e.download(t)}})},n=s.b.createElement("div","sa-tabulator__downloads-bar");return this.options.downloadOptions.xlsx.isVisible&&n.appendChild(t("xlsx","Excel")),this.options.downloadOptions.pdf.isVisible&&n.appendChild(t("pdf","PDF")),n.appendChild(t("csv","CSV")),n},t.prototype.getTitleFormatter=function(e,t,n,i){var o=this,r=s.b.createElement("div"),a=s.b.createElement("span","",{innerHTML:e.getValue()}),l=this.getHeaderActions(i);return r.appendChild(l),r.appendChild(a),r.onmousedown=function(e){o.isColumnReorderEnabled?o.disableColumnReorder():e.stopPropagation()},r},t.prototype.getHeaderActions=function(e){var t=s.b.createElement("div","sa-table__action-container");return this.extensions.render(t,"column",{columnName:e}),t},t.prototype.getColumns=function(){var e=this,t=this.COLUMN_MIN_WIDTH>this.options.columnMinWidth?this.COLUMN_MIN_WIDTH:this.options.columnMinWidth,n=this.getAvailableColumns().map((function(n,i){var o=e.survey.getQuestionByName(n.name);return{field:n.name,title:o&&o.title||n.displayName,minWidth:t,width:n.width,widthShrink:n.width?0:1,visible:e.isColumnVisible(n),headerSort:!1,titleFormatter:function(t,i,o){return e.getTitleFormatter(t,i,o,n.name)}}}));return n.unshift({field:"",title:"",download:!1,resizable:!1,width:this.options.actionsColumnWidth}),n},t.prototype.setColumnVisibility=function(t,n){e.prototype.setColumnVisibility.call(this,t,n),this.isRendered&&(n==a.b.Invisible?this.tabulatorTables.hideColumn(t):this.tabulatorTables.showColumn(t),this.layout())},t.prototype.setColumnLocation=function(t,n){e.prototype.setColumnLocation.call(this,t,n),this.isRendered&&(n==a.c.Row?this.tabulatorTables.hideColumn(t):this.tabulatorTables.showColumn(t),this.layout())},t.prototype.setColumnWidth=function(t,n){if(e.prototype.setColumnWidth.call(this,t,n),this.isRendered){var i=this.tabulatorTables.getColumn(t).getDefinition();i.width=n,i.widthShrink=0,this.layout()}},t.prototype.sortByColumn=function(e,t){this.tabulatorTables.setSort(e,t)},t.prototype.applyColumnFilter=function(e,t){this.tabulatorTables.setFilter(e,"like",t)},t.prototype.applyFilter=function(e){this.tabulatorTables.setFilter((function(e,t){for(var n in e)if(e[n].toLowerCase().includes(t.value.toLowerCase()))return!0;return!1}),{value:e})},t.prototype.getPageNumber=function(){return this.isRendered?this.tabulatorTables.getPage():1},t.prototype.setPageNumber=function(t){e.prototype.setPageNumber.call(this,t),this.isRendered&&this.tabulatorTables.setPage(t)},t.prototype.setPageSize=function(t){e.prototype.setPageSize.call(this,t),this.isRendered&&this.tabulatorTables.setPageSize(t)},t.prototype.download=function(e){this.tabulatorTables.download(e,"results."+e,this.options.downloadOptions[e])},t.prototype.layout=function(e){void 0===e&&(e=!1),this.tabulatorTables.redraw(e)},t}(r.a),p=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.table=t,r.extensionsContainer=n,r.detailsContainer=i,r.innerRow=o,r}return Object(o.b)(t,e),t.prototype.getElement=function(){return this.innerRow.getElement()},t.prototype.getRowData=function(){return this.innerRow.getData()},t.prototype.getDataPosition=function(){return this.innerRow.getPosition()},t.prototype.remove=function(){this.innerRow.delete(),e.prototype.remove.call(this)},t}(r.b),b=n(3)}])})); |
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
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
1758545
14601