From c4ff8b6acda4408a9e0230bc301f8eb00a8d9f91 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Thu, 11 Jun 2020 17:17:35 +0200 Subject: [PATCH] Fixed issue #15063: Left sidebar is not shown with console error Local Storage QuotaExceededError: The quota has been exceeded. Dev Switched to session storage which is automatically cleared when session is destroyed --- assets/packages/adminsidepanel/build.min/js/adminsidepanel.js | 2 +- assets/packages/adminsidepanel/build/js/adminsidepanel.js | 2 +- assets/packages/adminsidepanel/src/store/vuex-store.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/packages/adminsidepanel/build.min/js/adminsidepanel.js b/assets/packages/adminsidepanel/build.min/js/adminsidepanel.js index 39a74bb8222..ed100e5a9d1 100644 --- a/assets/packages/adminsidepanel/build.min/js/adminsidepanel.js +++ b/assets/packages/adminsidepanel/build.min/js/adminsidepanel.js @@ -29,7 +29,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -var n="~",r="\\x"+("0"+n.charCodeAt(0).toString(16)).slice(-2),i="\\"+r,o=new RegExp(r,"g"),a=new RegExp(i,"g"),u=new RegExp("(?:^|([^\\\\]))"+i),s=[].indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},c=String;function l(t,e,a){var u,c,l=!1,f=!!e,p=[],d=[t],h=[t],v=[a?n:"[Circular]"],g=t,m=1;return f&&(c="object"===typeof e?function(t,n){return""!==t&&e.indexOf(t)<0?void 0:n}:e),function(t,e){return f&&(e=c.call(this,t,e)),l?(g!==this&&(u=m-s.call(d,this)-1,m-=u,d.splice(m,d.length),p.splice(m-1,p.length),g=this),"object"===typeof e&&e?(s.call(d,e)<0&&d.push(g=e),m=d.length,u=s.call(h,e),u<0?(u=h.push(e)-1,a?(p.push((""+t).replace(o,r)),v[u]=n+p.join(n)):v[u]=v[0]):e=v[u]):"string"===typeof e&&a&&(e=e.replace(r,i).replace(n,r))):l=!0,e}}function f(t,e){for(var r=0,i=e.length;r1?arguments[1]:void 0,g=void 0!==v,m=0,y=l(p);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&u(y))for(e=s(p.length),n=new d(e);e>m;m++)c(n,m,g?v(p[m],m):p[m]);else for(f=y.call(p),n=new d;!(i=f.next()).done;m++)c(n,m,g?a(f,v,[i.value,m],!0):i.value);return n.length=m,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},"551c":function(t,e,n){"use strict";var r,i,o,a,u=n("2d00"),s=n("7726"),c=n("9b43"),l=n("23c6"),f=n("5ca1"),p=n("d3f4"),d=n("d8e8"),h=n("f605"),v=n("4a59"),g=n("ebd6"),m=n("1991").set,y=n("8079")(),_=n("a5b8"),b=n("9c80"),w=n("a25f"),x=n("bcaa"),S="Promise",$=s.TypeError,O=s.process,A=O&&O.versions,k=A&&A.v8||"",C=s[S],j="process"==l(O),T=function(){},E=i=_.f,M=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(T,T)};return(j||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),I=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,u=i?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(i||(2==t._h&&D(t),t._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?c($("Promise-chain cycle")):(o=I(n))?o.call(n,s,c):s(n)):c(r)}catch(f){l&&!a&&l.exit(),c(f)}};while(n.length>o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)}))}},P=function(t){m.call(s,(function(){var e,n,r,i=t._v,o=N(t);if(o&&(e=b((function(){j?O.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=j||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){m.call(s,(function(){var e;j?O.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw $("Promise can't be resolved itself");(e=I(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(i){R.call(r,i)}})):(n._v=t,n._s=1,L(n,!1))}catch(r){R.call({_w:n,_d:!1},r)}}};M||(C=function(t){h(this,C,S,"_h"),d(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(e){R.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(C.prototype,{then:function(t,e){var n=E(g(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=j?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},_.f=E=function(t){return t===C||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!M,{Promise:C}),n("7f20")(C,S),n("7a56")(S),a=n("8378")[S],f(f.S+f.F*!M,S,{reject:function(t){var e=E(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(u||!M),S,{resolve:function(t){return x(u&&this===a?C:this,t)}}),f(f.S+f.F*!(M&&n("5cc5")((function(t){C.all(t)["catch"](T)}))),S,{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=b((function(){var n=[],o=0,a=1;v(t,!1,(function(t){var u=o++,s=!1;n.push(void 0),a++,e.resolve(t).then((function(t){s||(s=!0,n[u]=t,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=b((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),i=n("62a0");t.exports=function(t){return r[t]||(r[t]=i(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,a){var u,s=r(e),c=i(s.length),l=o(a,c);if(t&&n!=n){while(c>l)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),u=n("9b43"),s="prototype",c=function(t,e,n){var l,f,p,d,h=t&c.F,v=t&c.G,g=t&c.S,m=t&c.P,y=t&c.B,_=v?r:g?r[e]||(r[e]={}):(r[e]||{})[s],b=v?i:i[e]||(i[e]={}),w=b[s]||(b[s]={});for(l in v&&(n=e),n)f=!h&&_&&void 0!==_[l],p=(f?_:n)[l],d=y&&f?u(p,r):m&&"function"==typeof p?u(Function.call,p):p,_&&a(_,l,p,t&c.U),b[l]!=p&&o(b,l,d),m&&w[l]!=p&&(w[l]=p)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:n=!0}},o[r]=function(){return u},t(o)}catch(a){}return n}},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5df3":function(t,e,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"615f":function(t,e,n){},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),u=n("07e3"),s="prototype",c=function(t,e,n){var l,f,p,d=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,m=t&c.B,y=t&c.W,_=h?i:i[e]||(i[e]={}),b=_[s],w=h?r:v?r[e]:(r[e]||{})[s];for(l in h&&(n=e),n)f=!d&&w&&void 0!==w[l],f&&u(_,l)||(p=f?w[l]:n[l],_[l]=h&&"function"!=typeof w[l]?n[l]:m&&f?o(p,r):y&&w[l]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(p):g&&"function"==typeof p?o(Function.call,p):p,g&&((_.virtual||(_.virtual={}))[l]=p,t&c.R&&b&&!b[l]&&a(b,l,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a47":function(t,e,n){"use strict";var r=n("2e4c"),i=n.n(r);i.a},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6af4":function(t,e,n){},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b54":function(t,e,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),a="toString",u=/./[a],s=function(t){n("2aba")(RegExp.prototype,a,t,!0)};n("79e5")((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):u.name!=a&&s((function(){return u.call(this)}))},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s=c?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}}},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),u=n("4bf8"),s=n("626a"),c=Object.assign;t.exports=!c||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){var n=u(t),c=arguments.length,l=1,f=o.f,p=a.f;while(c>l){var d,h=s(arguments[l++]),v=f?i(h).concat(f(h)):i(h),g=v.length,m=0;while(g>m)d=v[m++],r&&!p.call(h,d)||(n[d]=h[d])}return n}:c},7514:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a1c":function(t,e,n){"use strict";n.r(e);n("7514"),n("cadf"),n("551c"),n("f751"),n("097d");var r=n("a026"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex ls-ba ls-space padding left-0 col-md-4 hidden-xs nofloat transition-animate-width",style:{"max-height":t.$store.state.inSurveyViewHeight},attrs:{id:"sidebar"},on:{mouseleave:t.mouseleave,mouseup:t.mouseup}},[t.showLoader?n("div",{staticClass:"sidebar_loader",style:{width:t.getSideBarWidth,height:t.getloaderHeight}},[t._m(0)]):t._e(),n("div",{staticClass:"col-12 fill-height ls-space padding all-0",staticStyle:{height:"100%"}},[n("div",{staticClass:"mainMenu container-fluid col-12 ls-space padding right-0 fill-height"},[n("sidebar-state-toggle",{on:{collapse:t.toggleCollapse}}),n("transition",{attrs:{name:"slide-fade"}},[n("sidemenu",{directives:[{name:"show",rawName:"v-show",value:t.showSideMenu,expression:"showSideMenu"}],style:{"min-height":t.calculateSideBarMenuHeight}})],1),n("transition",{attrs:{name:"slide-fade"}},[n("questionexplorer",{directives:[{name:"show",rawName:"v-show",value:t.showQuestionTree,expression:"showQuestionTree"}],style:{"min-height":t.calculateSideBarMenuHeight},on:{openentity:t.openEntity,questiongrouporder:t.changedQuestionGroupOrder}})],1),n("transition",{attrs:{name:"slide-fade"}},[n("quickmenu",{directives:[{name:"show",rawName:"v-show",value:t.$store.state.isCollapsed,expression:"$store.state.isCollapsed"}],style:{"min-height":t.calculateSideBarMenuHeight}})],1)],1)]),n("div",{staticClass:"resize-handle ls-flex-column",style:{height:t.calculateSideBarMenuHeight,"max-height":t.getWindowHeight}},[n("button",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.isCollapsed,expression:"!$store.state.isCollapsed"}],staticClass:"btn btn-default",on:{mousedown:t.mousedown,click:function(t){return t.preventDefault(),function(){return!1}()}}},[n("i",{staticClass:"fa fa-ellipsis-v"})])])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex ls-flex-column fill align-content-center align-items-center"},[n("i",{staticClass:"fa fa-circle-o-notch fa-2x fa-spin"})])}],a=(n("3b2b"),n("b54a"),n("aef6"),n("ac6a"),n("2ef0"),{methods:{_runAjax:function(t,e,n){return e=e||{},n=n||"get",new Promise((function(r,i){void 0==$&&i("JQUERY NOT AVAILABLE!"),$.ajax({url:t,method:n||"get",data:e,dataType:"json",success:function(t,e,n){r({success:!0,data:t,transferStatus:e,xhr:n})},error:function(t,e,n){i({success:!1,error:n,transferStatus:e,xhr:t})}})}))},post:function(t,e){return this._runAjax(t,e,"post")},get:function(t,e){return this._runAjax(t,e,"get")},delete:function(t,e){return this._runAjax(t,e,"delete")},put:function(t,e){return this._runAjax(t,e,"put")}}}),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex-column fill ls-ba menu-pane ls-space padding all-0 margin top-5",attrs:{id:"questionexplorer"}},[""!=t.createAllowance?n("div",{staticClass:"ls-flex-row wrap align-content-space-between align-items-space-between ls-space margin top-5 bottom-15 button-sub-bar"},[void 0!=t.createQuestionGroupLink&&t.createQuestionGroupLink.length>1?n("a",{staticClass:"btn btn-small btn-primary pjax",attrs:{id:"adminsidepanel__sidebar--selectorCreateQuestionGroup",href:t.createQuestionGroupLink}},[n("i",{staticClass:"fa fa-plus"}),t._v(" \n "+t._s(t._f("translate")("createQuestionGroup"))+"\n ")]):t._e(),t.createQuestionAllowed?n("a",{staticClass:"btn btn-small btn-default ls-space margin right-10 pjax",attrs:{id:"adminsidepanel__sidebar--selectorCreateQuestion",href:t.createQuestionLink}},[n("i",{staticClass:"fa fa-plus-circle"}),t._v(" \n "+t._s(t._f("translate")("createQuestion"))+"\n ")]):t._e()]):t._e(),n("div",{staticClass:"ls-flex-row ls-space padding all-0"},[n("ul",{staticClass:"list-group col-12",on:{drop:function(e){return t.dropQuestionGroup(e,t.questiongroup)}}},t._l(t.orderedQuestionGroups,(function(e){return n("li",{key:e.gid,staticClass:"list-group-item ls-flex-column",class:t.questionGroupItemClasses(e),on:{dragenter:function(n){return t.dragoverQuestiongroup(n,e)}}},[n("div",{staticClass:"col-12 ls-flex-row nowrap ls-space padding right-5 bottom-5"},[t.surveyIsActive?t._e():n("i",{staticClass:"fa fa-bars bigIcons dragPointer",attrs:{draggable:"true"},on:{dragend:function(n){return t.endDraggingGroup(n,e)},dragstart:function(n){return t.startDraggingGroup(n,e)},click:function(t){return t.stopPropagation(),t.preventDefault(),function(){return!1}()}}},[t._v("\n  \n ")]),n("a",{staticClass:"col-12 pjax",attrs:{href:e.link},on:{click:function(n){return n.stopPropagation(),t.openQuestionGroup(e)}}},[n("span",{class:t.$store.getters.isRTL?"question_text_ellipsize pull-right":"question_text_ellipsize pull-left",style:{"max-width":t.itemWidth}},[t._v("\n "+t._s(e.group_name)+" \n ")]),n("span",{class:t.$store.getters.isRTL?"badge ls-space margin right-5 pull-left":"badge ls-space margin right-5 pull-right"},[t._v("\n "+t._s(e.questions.length)+"\n ")])]),n("i",{staticClass:"fa bigIcons",class:t.isActive(e.gid)?"fa-caret-up":"fa-caret-down",on:{click:function(n){return n.preventDefault(),t.toggleActivation(e.gid)}}},[t._v(" ")])]),n("transition",{attrs:{name:"slide-fade-down"}},[t.isActive(e.gid)?n("ul",{staticClass:"list-group background-muted padding-left question-question-list",on:{drop:function(e){return t.dropQuestion(e,t.question)}}},t._l(t.orderQuestions(e.questions),(function(r){return n("li",{key:r.qid,staticClass:"list-group-item question-question-list-item ls-flex-row align-itmes-flex-start",class:t.questionItemClasses(r),attrs:{"data-toggle":"tootltip","data-is-hidden":r.hidden,"data-questiontype":r.type,"data-has-condition":t.questionHasCondition(r),title:r.question_flat},on:{dragenter:function(n){return t.dragoverQuestion(n,r,e)}}},[t.$store.state.surveyActiveState?t._e():n("i",{staticClass:"fa fa-bars margin-right bigIcons dragPointer question-question-list-item-drag",attrs:{draggable:"true"},on:{dragend:function(e){return t.endDraggingQuestion(e,r)},dragstart:function(n){return t.startDraggingQuestion(n,r,e)},click:function(t){return t.stopPropagation(),t.preventDefault(),function(){return!1}()}}},[t._v("\n  \n ")]),n("a",{staticClass:"col-9 pjax question-question-list-item-link display-as-container",attrs:{href:r.link},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openQuestion(r)}}},[n("span",{staticClass:"question_text_ellipsize",class:{"question-hidden":r.hidden},style:{width:t.itemWidth}},[t._v("\n ["+t._s(r.title)+"] › "+t._s(r.question_flat)+" \n ")])])])})),0):t._e()])],1)})),0)])])},s=[],c={mixins:[a],data:function(){return{active:[],questiongroupDragging:!1,draggedQuestionGroup:null,questionDragging:!1,draggedQuestion:null,draggedQuestionsGroup:null}},computed:{surveyIsActive:function(){return window.SideMenuData.isActive},createQuestionGroupLink:function(){return window.SideMenuData.createQuestionGroupLink},createQuestionLink:function(){return window.SideMenuData.createQuestionLink},calculatedHeight:function(){var t=this.$store.state.maxHeight;return t-100},orderedQuestionGroups:function(){return LS.ld.orderBy(this.$store.state.questiongroups,(function(t){return parseInt(t.group_order>=0&&null!==t.group_order?t.group_order:999999)}),["asc"])},createQuestionAllowed:function(){return this.$store.state.questiongroups.length>0&&void 0!=this.createQuestionLink&&this.createQuestionLink.length>1},createAllowance:function(){var t=void 0!=this.createQuestionGroupLink&&this.createQuestionGroupLink.length>1?"g":"",e=this.createQuestionAllowed?"q":"";return t+e},itemWidth:function(){return parseInt(this.$store.state.sidebarwidth)-95+"px"}},methods:{questionHasCondition:function(t){return"1"!==t.relevance},questionItemClasses:function(t){var e="";return e+=this.$store.state.lastQuestionOpen===t.qid?"selected":" ",null!==this.draggedQuestion&&(e+=this.draggedQuestion.qid===t.qid?" dragged":" "),e},questionGroupItemClasses:function(t){var e="";return e+=this.isActive(t.gid)?"selected":" ",null!==this.draggedQuestionGroup&&(e+=this.draggedQuestionGroup.gid===t.gid?" dragged":" "),e},orderQuestions:function(t){return LS.ld.orderBy(t,(function(t){return parseInt(t.question_order||999999)}),["asc"])},isActive:function(t){var e=-1!=LS.ld.indexOf(this.active,t);return!0!==this.questiongroupDragging&&e},toggleActivation:function(t){if(this.isActive(t))LS.ld.remove(this.active,(function(e){return e===t}));else this.active.push(t);this.$store.commit("questionGroupOpenArray",this.active),this.updatePjaxLinks()},addActive:function(t){this.isActive(t)||this.active.push(t),this.$store.commit("questionGroupOpenArray",this.active)},openQuestionGroup:function(t){this.addActive(t.gid),this.$store.commit("lastQuestionGroupOpen",t),this.updatePjaxLinks()},openQuestion:function(t){this.addActive(t.gid),this.$store.commit("lastQuestionOpen",t),this.updatePjaxLinks(),$(document).trigger("pjax:load",{url:t.link})},startDraggingGroup:function(t,e){this.draggedQuestionGroup=e,this.questiongroupDragging=!0,t.dataTransfer.setData("text/plain","node")},endDraggingGroup:function(t,e){null!==this.draggedQuestionGroup&&(this.draggedQuestionGroup=null,this.questiongroupDragging=!1,this.$emit("questiongrouporder"))},dragoverQuestiongroup:function(t,e){var n=this;if(void 0!=this.draggedQuestion&&null!=this.draggedQuestion||this.$log.log({this:this,questiongroupObject:e,draggedQuestion:this.draggedQuestion}),this.questiongroupDragging){var r=parseInt(e.group_order),i=parseInt(this.draggedQuestionGroup.group_order);1==Math.abs(parseInt(r)-parseInt(i))&&(e.group_order=i,this.draggedQuestionGroup.group_order=r)}else{if(window.SideMenuData.isActive)return;if(this.addActive(e.gid),this.draggedQuestion.gid!==e.gid){var o=LS.ld.remove(this.draggedQuestionsGroup.questions,(function(t,e){return t.qid===n.draggedQuestion.qid}));o.length>0&&(this.draggedQuestion.question_order=null,e.questions.push(this.draggedQuestion),this.draggedQuestion.gid=e.gid,e.group_order>this.draggedQuestionsGroup.group_order?(this.draggedQuestion.question_order=0,LS.ld.each(e.questions,(function(t,e){t.question_order=parseInt(t.question_order)+1}))):this.draggedQuestion.question_order=this.draggedQuestionsGroup.questions.length+1,this.draggedQuestionsGroup=e)}}},startDraggingQuestion:function(t,e,n){this.$log.log("Dragging started",e),t.dataTransfer.setData("application/node",this),this.questionDragging=!0,this.draggedQuestion=e,this.draggedQuestionsGroup=n},endDraggingQuestion:function(t,e){this.questionDragging&&(this.questionDragging=!1,this.draggedQuestion=null,this.draggedQuestionsGroup=null,this.$emit("questiongrouporder"))},dragoverQuestion:function(t,e,n){if(this.questionDragging){if(this.questionDragging.gid!==e.gid&&window.SideMenuData.isActive)return;var r=e.question_order;e.question_order=this.draggedQuestion.question_order,this.draggedQuestion.question_order=r}}},mounted:function(){this.active=this.$store.state.questionGroupOpenArray,this.updatePjaxLinks(),$(document).on("vue-reload-remote",(function(){}))}},l=c;n("8c57");function f(t,e,n,r,i,o,a,u){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):i&&(s=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(t,e){return s.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:c}}var p=f(l,u,s,!1,null,null,null),d=p.exports,h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.currentKey,staticClass:"ls-space margin bottom-15 top-5 col-12",staticStyle:{height:"40px"}},[n("div",{staticClass:"ls-flex-row align-content-space-between align-items-flex-end ls-space padding left-0 right-10 bottom-0 top-0"},[n("transition",{attrs:{name:"fade"}},[t.$store.state.isCollapsed?t._e():n("button",{staticClass:"btn btn-default ls-space padding left-15 right-15",on:{click:function(e){return t.$emit("collapse")}}},[n("i",{class:t.$store.getters.isRTL?"fa fa-chevron-right":"fa fa-chevron-left"})])]),n("transition",{attrs:{name:"fade"}},[t.$store.state.isCollapsed?t._e():n("div",{staticClass:"ls-flex-item grow-10 col-12"},[n("div",{staticClass:"btn-group btn-group col-12"},[n("button",{staticClass:"btn col-6 force color white onhover tabbutton",class:"settings"==t.currentTab?"btn-primary":"btn-default",attrs:{id:"adminsidepanel__sidebar--selectorSettingsButton"},on:{click:function(e){t.currentTab="settings"}}},[t._v("\n "+t._s(t._f("translate")("settings"))+"\n ")]),n("button",{staticClass:"btn col-6 force color white onhover tabbutton",class:"questiontree"==t.currentTab?"btn-primary":"btn-default",attrs:{id:"adminsidepanel__sidebar--selectorStructureButton"},on:{click:function(e){t.currentTab="questiontree"}}},[t._v("\n "+t._s(t._f("translate")("structure"))+"\n ")])])])]),n("transition",{attrs:{name:"fade"}},[t.$store.state.isCollapsed?n("button",{staticClass:"btn btn-default ls-space padding left-15 right-15",on:{click:function(e){return t.$emit("collapse")}}},[n("i",{class:t.$store.getters.isRTL?"fa fa-chevron-left":"fa fa-chevron-right"})]):t._e()])],1)])},v=[],g={name:"sidebar-state-toggle",computed:{currentKey:function(){return this.$store.state.toggleKey},currentTab:{get:function(){return this.$store.state.currentTab},set:function(t){this.$store.commit("changeCurrentTab",t)}}}},m=g,y=f(m,h,v,!1,null,null,null),_=y.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex-column fill menu-pane overflow-enabled ls-space padding all-0 margin top-5"},[t._l(t.sortedMenues,(function(e){return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],key:e.id,staticClass:"ls-flex-row wrap ls-space padding all-0",attrs:{title:e.title,id:e.id}},[n("label",{staticClass:"menu-label"},[t._v(t._s(e.title))]),n("submenu",{attrs:{menu:e}})],1)})),t.loading?n("loader-widget",{attrs:{id:"sidemenuLoaderWidget"}}):t._e()],2)},w=[],x=(n("c5f6"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return"fontawesome"==t.iconType?n("i",{staticClass:"fa",class:"fa-"+t.icon},[t._v(" ")]):"image"==t.iconType?n("img",{attrs:{width:"32px",src:t.icon}}):"iconclass"==t.iconType?n("i",{class:t.icon},[t._v(" ")]):n("span")}),S=[],O={props:{icon:{type:String},iconType:{type:String}}},A=O,k=f(A,x,S,!1,null,null,null),C=k.exports,j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"list-group subpanel col-12",class:"level-"+t.menu.level},[t._l(t.sortedMenuEntries,(function(e){return n("a",{key:e.id,staticClass:"list-group-item",class:t.getLinkClass(e),attrs:{href:e.link,target:1==e.link_external?"_blank":"",id:"sidemenu_"+e.name},on:{click:function(n){return n.stopPropagation(),t.setActiveMenuItemIndex(e)}}},[n("div",{staticClass:"col-12",class:e.menu_class,attrs:{title:t.reConvertHTML(e.menu_description),"data-toggle":"tooltip"}},[n("div",{staticClass:"ls-space padding all-0",class:t.$store.state.lastMenuItemOpen==e.id?"col-sm-10":"col-sm-12"},[n("menuicon",{attrs:{"icon-type":e.menu_icon_type,icon:e.menu_icon}}),n("span",{domProps:{innerHTML:t._s(e.menu_title)}}),1==e.link_external?n("i",{staticClass:"fa fa-external-link"},[t._v(" ")]):t._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.$store.state.lastMenuItemOpen==e.id,expression:"$store.state.lastMenuItemOpen == menuItem.id"}],staticClass:"col-sm-2 text-center ls-space padding all-0 background white"},[n("i",{staticClass:"fa fa-chevron-right"},[t._v(" ")])])])])})),t._l(t.menu.submenus,(function(e){return n("li",{key:e.id,staticClass:"list-group-item",class:t.checkIsOpen(e)?"menu-selected":"",on:{"!click":function(n){return n.stopPropagation(),t.setActiveMenuIndex(e)}}},[n("a",{staticClass:"ls-flex-row nowrap align-item-center align-content-center",class:t.checkIsOpen(e)?"ls-space margin bottom-5":"",attrs:{href:"#",title:t.reConvertHTML(e.description),"data-toggle":"tooltip"}},[n("div",{staticClass:"ls-space col-sm-10 padding all-0"},[n("menuicon",{attrs:{"icon-type":"fontawesome",icon:"arrow-right"}}),n("span",{domProps:{innerHTML:t._s(e.title)}})],1),n("div",{staticClass:"col-sm-2 text-center ls-space padding all-0",class:t.checkIsOpen(e)?"menu-open":""},[n("i",{staticClass:"fa fa-level-down"})])]),n("transition",{attrs:{name:"slide-fade-down"}},[t.checkIsOpen(e)?n("submenu",{attrs:{menu:e}}):t._e()],1)],1)}))],2)},T=[],E=(n("a481"),{name:"submenu",components:{menuicon:C},mixins:[a],props:{menu:{type:[Object,Array],required:!0}},data:function(){return{menues:{}}},computed:{sortedMenuEntries:function(){return LS.ld.orderBy(this.menu.entries,(function(t){return parseInt(t.ordering||999999)}),["asc"])}},methods:{setActiveMenuItemIndex:function(t){t.id;return this.$store.commit("lastMenuItemOpen",t),this.$log.log("Opened Menuitem",t),!0},checkIsOpen:function(t){var e=this,n=this.$store.state.lastMenuOpen==t.id,r=!1;return LS.ld.each(t.submenus,(function(t,n){r=e.$store.state.lastMenuOpen==t.id||r})),n||r||!1},setActiveMenuIndex:function(t){t.id;this.$store.commit("lastMenuOpen",t)},setOpenSubpanel:function(t){this.openSubpanelId=t,this.$emit("menuselected",t)},debugOut:function(t){return JSON.stringify(t)},getLinkClass:function(t){var e="ls-flex-row nowrap ";return e+=t.pjax?"pjax ":" ",e+=this.$store.state.lastMenuItemOpen==t.id?"selected ":" ",e},reConvertHTML:function(t){var e=["'","©","Û","®","ž","Ü","Ÿ","Ý","$","Þ","%","¡","ß","¢","à","£","á","À","¤","â","Á","¥","ã","Â","¦","ä","Ã","§","å","Ä","¨","æ","Å","©","ç","Æ","ª","è","Ç","«","é","È","¬","ê","É","­","ë","Ê","®","ì","Ë","¯","í","Ì","°","î","Í","±","ï","Î","²","ð","Ï","³","ñ","Ð","´","ò","Ñ","µ","ó","Õ","¶","ô","Ö","·","õ","Ø","¸","ö","Ù","¹","÷","Ú","º","ø","Û","»","ù","Ü","@","¼","ú","Ý","½","û","Þ","€","¾","ü","ß","¿","ý","à","‚","À","þ","á","ƒ","Á","ÿ","å","„","Â","æ","…","Ã","ç","†","Ä","è","‡","Å","é","ˆ","Æ","ê","‰","Ç","ë","Š","È","ì","‹","É","í","Œ","Ê","î","Ë","ï","Ž","Ì","ð","Í","ñ","Î","ò","‘","Ï","ó","’","Ð","ô","“","Ñ","õ","”","Ò","ö","•","Ó","ø","–","Ô","ù","—","Õ","ú","˜","Ö","û","™","×","ý","š","Ø","þ","›","Ù","ÿ","œ","Ú"],n=["'","©","Û","®","ž","Ü","Ÿ","Ý","$","Þ","%","¡","ß","¢","à","£","á","À","¤","â","Á","¥","ã","Â","¦","ä","Ã","§","å","Ä","¨","æ","Å","©","ç","Æ","ª","è","Ç","«","é","È","¬","ê","É","­","ë","Ê","®","ì","Ë","¯","í","Ì","°","î","Í","±","ï","Î","²","ð","Ï","³","ñ","Ð","´","ò","Ñ","µ","ó","Õ","¶","ô","Ö","·","õ","Ø","¸","ö","Ù","¹","÷","Ú","º","ø","Û","»","ù","Ü","@","¼","ú","Ý","½","û","Þ","€","¾","ü","ß","¿","ý","à","‚","À","þ","á","ƒ","Á","ÿ","å","„","Â","æ","…","Ã","ç","†","Ä","è","‡","Å","é","ˆ","Æ","ê","‰","Ç","ë","Š","È","ì","‹","É","í","Œ","Ê","î","Ë","ï","Ž","Ì","ð","Í","ñ","Î","ò","‘","Ï","ó","’","Ð","ô","“","Ñ","õ","”","Ò","ö","•","Ó","ø","–","Ô","ù","—","Õ","ú","˜","Ö","û","™","×","ý","š","Ø","þ","›","Ù","ÿ","œ","Ú"];return LS.ld.each(n,(function(n,r){t=t.replace(n,e[r])})),t}},created:function(){},mounted:function(){this.updatePjaxLinks(),this.redoTooltips()}}),M=E,I=f(M,j,T,!1,null,null,null),L=I.exports,P={name:"sidemenu",components:{menuicon:C,submenu:L},mixins:[a],props:{openSubpanelId:{type:Number}},data:function(){return{menues:{},loading:!0}},computed:{sortedMenues:function(){return LS.ld.orderBy(this.$store.state.sidemenus,(function(t){return parseInt(t.ordering||999999)}),["asc"])}},methods:{sortedMenuEntries:function(t){var e=LS.ld.orderBy(t,(function(t){return parseInt(t.ordering||999999)}),["asc"]);return e},setActiveMenuIndex:function(t){t.id;this.$store.commit("lastMenuOpen",t)},setActiveMenuItemIndex:function(t){t.id;this.$store.commit("lastMenuItemOpen",t)},setOpenSubpanel:function(t){this.openSubpanelId=t,this.$emit("menuselected",t)},debugOut:function(t){return JSON.stringify(t)}},created:function(){var t=this;this.$store.dispatch("getSidemenus").then((function(t){}),this.$log.error).finally((function(e){t.loading=!1}))},mounted:function(){this.updatePjaxLinks(),$(document).on("vue-reload-remote",(function(){}))}},N=P,D=f(N,b,w,!1,null,null,null),R=D.exports,q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex-column fill"},[t._l(t.sortedMenues,(function(e){return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],key:e.title,staticClass:"ls-space margin top-10",attrs:{title:e.title}},[n("div",{staticClass:"btn-group-vertical ls-space padding right-10"},t._l(t.sortedMenuEntries(e.entries),(function(e){return n("a",{key:e.id,staticClass:"btn btn-icon",class:t.compileEntryClasses(e),attrs:{href:e.link,title:e.menu_description,target:e.link_external?"_blank":"_self","data-toggle":"tooltip"},on:{click:function(n){return t.setActiveMenuIndex(e)}}},["fontawesome"==e.menu_icon_type?[n("i",{staticClass:"quickmenuIcon fa",class:"fa-"+e.menu_icon})]:"image"==e.menu_icon_type?[n("img",{attrs:{width:"32px",src:e.menu_icon}})]:"iconclass"==e.menu_icon_type?[n("i",{staticClass:"quickmenuIcon",class:e.menu_icon})]:t._e()],2)})),0)])})),t.loading?n("loader-widget",{attrs:{id:"quickmenuLoadingIcon","extra-class":"loader-quickmenu"}}):t._e()],2)},F=[],B={mixins:[a],props:{menuEntries:{type:[Array,Object]},activeMenuIndex:{type:String}},data:function(){return{loading:!0}},computed:{sortedMenues:function(){return LS.ld.orderBy(this.$store.state.collapsedmenus,(function(t){return parseInt(t.ordering||999999)}),["asc"])}},methods:{sortedMenuEntries:function(t){var e=LS.ld.orderBy(t,(function(t){return parseInt(t.ordering||999999)}),["asc"]);return e},setActiveMenuIndex:function(t){t.id;this.$store.commit("lastMenuItemOpen",t)},compileEntryClasses:function(t){var e="";return this.$store.state.lastMenuItemOpen==t.id?e+=" btn-primary ":e+=" btn-default ",t.link_external||(e+=" pjax "),e}},created:function(){var t=this;this.$store.dispatch("getCollapsedmenus").then((function(t){}),this.$log.error).finally((function(e){t.loading=!1}))},mounted:function(){}},G=B,z=(n("ab94"),f(G,q,F,!1,null,null,null)),Q=z.exports,H={components:{questionexplorer:d,sidemenu:R,quickmenu:Q,SidebarStateToggle:_},mixins:[a],data:function(){return{activeMenuIndex:0,openSubpanelId:0,menues:[],collapsed:!1,sideBarWidth:"315",initialPos:{x:0,y:0},isMouseDown:!1,isMouseDownTimeOut:null,sideBarHeight:"400px",showLoader:!1}},computed:{isActive:function(){return window.SideMenuData.isActive},questiongroups:function(){return this.$store.state.questiongroups},sidemenus:{get:function(){return this.$store.state.sidemenus},set:function(t){this.$store.commit("updateSidemenus",t)}},collapsedmenus:{get:function(){return this.$store.state.collapsedmenus},set:function(t){this.$store.commit("updateCollapsedmenus",t)}},currentTab:function(){return this.$store.state.currentTab},getSideBarWidth:function(){return this.$store.state.isCollapsed?"98":this.sideBarWidth},sortedMenus:function(){return LS.ld.orderBy(this.menues,(function(t){return parseInt(t.order||999999)}),["asc"])},showSideMenu:function(){return!this.$store.state.isCollapsed&&"settings"==this.currentTab},showQuestionTree:function(){return!this.$store.state.isCollapsed&&"questiontree"==this.currentTab},calculateSideBarMenuHeight:function(){var t=this.$store.state.sideBarHeight;return LS.ld.min(t,Math.floor(2*screen.height))+"px"},getWindowHeight:function(){return 2*screen.height+"px"},getloaderHeight:function(){return $("#sidebar").height()}},methods:{calculateHeight:function(t){t.$store.commit("changeSideBarHeight",$("#in_survey_common").height())},changedQuestionGroupOrder:function(){var t=this,e=this,n=LS.ld.map(this.questiongroups,(function(t,e){var n=LS.ld.map(t.questions,(function(t,e){return{qid:t.qid,question:t.question,gid:t.gid,question_order:t.question_order}}));return{gid:t.gid,group_name:t.group_name,group_order:t.group_order,questions:n}}));this.$log.log("QuestionGroup order changed"),this.showLoader=!0,this.post(window.SideMenuData.updateOrderLink,{grouparray:n,surveyid:this.$store.surveyid}).then((function(t){e.$log.log("questiongroups updated"),e.$store.dispatch("getQuestions").then((function(){e.showLoader=!1}))}),(function(n){e.$log.error("questiongroups updating error!"),t.post(window.SideMenuData.updateOrderLink,{surveyid:t.$store.surveyid}).then((function(){e.getQuestions().then((function(){e.showLoader=!1}))}))}))},controlActiveLink:function(){var t=window.location.href,e=!1;LS.ld.each(this.sidemenus,(function(n,r){LS.ld.each(n.entries,(function(n,r){e=LS.ld.endsWith(t,n.link)?n:e}))}));var n=!1;LS.ld.each(this.collapsedmenus,(function(e,r){LS.ld.each(e.entries,(function(e,r){n=LS.ld.endsWith(t,e.link)?e:n}))}));var r=!1;LS.ld.each(this.questiongroups,(function(e,n){var i=new RegExp("questiongroups/sa/edit/surveyid/"+e.sid+"/gid/"+e.gid);r=i.test(t)||LS.ld.endsWith(t,e.link)?e:r}));var i=!1;LS.ld.each(this.questiongroups,(function(e,n){LS.ld.each(e.questions,(function(e,n){var r=new RegExp("editquestion/surveyid/"+e.sid+"/gid/"+e.gid+"/qid/"+e.qid);i=LS.ld.endsWith(t,e.link)||r.test(t)?e:i}))})),this.$store.commit("closeAllMenus"),0!=e&&1!=this.$store.state.isCollapsed&&this.$store.commit("lastMenuItemOpen",e),0!=n&&1==this.$store.state.isCollapsed&&this.$store.commit("lastMenuItemOpen",n),0!=i&&this.$store.commit("lastQuestionOpen",i),0!=r&&(this.$store.commit("lastQuestionGroupOpen",r),this.$store.commit("addToQuestionGroupOpenArray",r))},editEntity:function(){this.setActiveMenuIndex(null,"question")},openEntity:function(){this.setActiveMenuIndex(null,"question")},setActiveMenuIndex:function(t){this.$store.commit("lastMenuItemOpen",t),this.activeMenuIndex=t},setOpenSubpanel:function(t){this.openSubpanelId=t,this.$store.commit("lastMenuOpen",t),this.$emit("menuselected",t)},toggleCollapse:function(){this.$store.state.isCollapsed=!this.$store.state.isCollapsed,this.$store.commit("changeIsCollapsed",this.$store.state.isCollapsed),this.$store.state.isCollapsed?this.sideBarWidth="98":this.sideBarWidth=this.$store.state.sidebarwidth},mousedown:function(t){this.isMouseDown=!this.$store.state.isCollapsed,$("#sidebar").removeClass("transition-animate-width"),$("#pjax-content").removeClass("transition-animate-width")},mouseup:function(t){this.isMouseDown&&(this.isMouseDown=!1,this.$store.state.isCollapsed=!1,parseInt(this.sideBarWidth)<250&&!this.$store.state.isCollapsed?(this.toggleCollapse(),this.$store.commit("changeSidebarwidth","340")):this.$store.commit("changeSidebarwidth",this.sideBarWidth),$("#sidebar").addClass("transition-animate-width"),$("#pjax-content").removeClass("transition-animate-width"))},mouseleave:function(t){if(this.isMouseDown){var e=this;this.isMouseDownTimeOut=setTimeout((function(){e.mouseup(t)}),1e3)}},mousemove:function(t,e){if(this.isMouseDown){if(e.$store.getters.isRTL){if(0===t.screenX&&0===t.screenY)return;if(window.innerWidth-t.clientX>screen.width/2)return void this.$store.commit("maxSideBarWidth",!0);e.sideBarWidth=window.innerWidth-t.pageX-8+"px",this.$store.commit("changeSidebarwidth",e.sideBarWidth),this.$store.commit("maxSideBarWidth",!1)}else{if(0===t.screenX&&0===t.screenY)return;if(t.clientX>screen.width/2)return void this.$store.commit("maxSideBarWidth",!0);e.sideBarWidth=t.pageX+8+"px",this.$store.commit("changeSidebarwidth",e.sideBarWidth),this.$store.commit("maxSideBarWidth",!1)}window.clearTimeout(e.isMouseDownTimeOut),e.isMouseDownTimeOut=null}},setBaseMenuPosition:function(t,e){switch(e){case"side":this.sidemenus=LS.ld.orderBy(t,(function(t){return parseInt(t.order||999999)}),["desc"]);break;case"collapsed":this.collapsedmenus=LS.ld.orderBy(t,(function(t){return parseInt(t.order||999999)}),["desc"]);break}}},created:function(){var t=this;t.$store.commit("setSurveyActiveState",1===parseInt(this.isActive)),this.activeMenuIndex=this.$store.state.lastMenuOpen,this.$store.state.isCollapsed?this.sideBarWidth="98":this.sideBarWidth=t.$store.state.sidebarwidth,LS.ld.each(window.SideMenuData.basemenus,this.setBaseMenuPosition)},mounted:function(){var t=this,e=this;$(document).trigger("sidebar:mounted"),e.calculateHeight(e),window.addEventListener("resize",(function(){e.calculateHeight(e)})),$(document).on("vue-sidemenu-update-link",(function(){t.controlActiveLink()})),$(document).on("vue-reload-remote",(function(){t.$log.log("vue-reload-remote"),t.$store.dispatch("getQuestions"),t.$store.dispatch("collectMenus"),t.updatePjaxLinks()})),$(document).on("vue-redraw",(function(){t.$log.log("vue-redraw"),t.$store.dispatch("getQuestions"),t.$store.dispatch("collectMenus")})),this.controlActiveLink(),this.updatePjaxLinks(),$("body").on("mousemove",(function(t){e.mousemove(t,e)}))}},U=H,W=(n("c4aa"),f(U,i,o,!1,null,"3e36cf63",null)),V=W.exports,K=function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},J="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Z(t){J&&(t._devtoolHook=J,J.emit("vuex:init",t),J.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){J.emit("vuex:mutation",t,e)})))}function X(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function Y(t){return null!==t&&"object"===typeof t}function tt(t){return t&&"function"===typeof t.then}var et=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},nt={namespaced:{configurable:!0}};nt.namespaced.get=function(){return!!this._rawModule.namespaced},et.prototype.addChild=function(t,e){this._children[t]=e},et.prototype.removeChild=function(t){delete this._children[t]},et.prototype.getChild=function(t){return this._children[t]},et.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},et.prototype.forEachChild=function(t){X(this._children,t)},et.prototype.forEachGetter=function(t){this._rawModule.getters&&X(this._rawModule.getters,t)},et.prototype.forEachAction=function(t){this._rawModule.actions&&X(this._rawModule.actions,t)},et.prototype.forEachMutation=function(t){this._rawModule.mutations&&X(this._rawModule.mutations,t)},Object.defineProperties(et.prototype,nt);var rt=function(t){this.register([],t,!1)};function it(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;it(t.concat(r),e.getChild(r),n.modules[r])}}rt.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},rt.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},rt.prototype.update=function(t){it([],this.root,t)},rt.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new et(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&X(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},rt.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var ot;var at=function(t){var e=this;void 0===t&&(t={}),!ot&&"undefined"!==typeof window&&window.Vue&&bt(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"===typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new rt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new ot;var o=this,a=this,u=a.dispatch,s=a.commit;this.dispatch=function(t,e){return u.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r,ft(this,i,[],this._modules.root),lt(this,i),n.forEach((function(t){return t(e)})),ot.config.devtools&&Z(this)},ut={state:{configurable:!0}};function st(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function ct(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;ft(t,n,[],t._modules.root,!0),lt(t,n,e)}function lt(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};X(i,(function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=ot.config.silent;ot.config.silent=!0,t._vm=new ot({data:{$$state:e},computed:o}),ot.config.silent=a,t.strict&&mt(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),ot.nextTick((function(){return r.$destroy()})))}function ft(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var u=yt(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit((function(){ot.set(u,s,r.state)}))}var c=r.context=pt(t,a,n);r.forEachMutation((function(e,n){var r=a+n;ht(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;vt(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;gt(t,r,e,c)})),r.forEachChild((function(r,o){ft(t,e,n.concat(o),r,i)}))}function pt(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=_t(n,r,i),a=o.payload,u=o.options,s=o.type;return u&&u.root||(s=e+s),t.dispatch(s,a)},commit:r?t.commit:function(n,r,i){var o=_t(n,r,i),a=o.payload,u=o.options,s=o.type;u&&u.root||(s=e+s),t.commit(s,a,u)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return dt(t,e)}},state:{get:function(){return yt(t.state,n)}}}),i}function dt(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}function ht(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function vt(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return tt(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function gt(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function mt(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function yt(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function _t(t,e,n){return Y(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function bt(t){ot&&t===ot||(ot=t,K(ot))}ut.state.get=function(){return this._vm._data.$$state},ut.state.set=function(t){0},at.prototype.commit=function(t,e,n){var r=this,i=_t(t,e,n),o=i.type,a=i.payload,u=(i.options,{type:o,payload:a}),s=this._mutations[o];s&&(this._withCommit((function(){s.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(u,r.state)})))},at.prototype.dispatch=function(t,e){var n=this,r=_t(t,e),i=r.type,o=r.payload,a={type:i,payload:o},u=this._actions[i];if(u)return this._actionSubscribers.forEach((function(t){return t(a,n.state)})),u.length>1?Promise.all(u.map((function(t){return t(o)}))):u[0](o)},at.prototype.subscribe=function(t){return st(t,this._subscribers)},at.prototype.subscribeAction=function(t){return st(t,this._actionSubscribers)},at.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},at.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},at.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),ft(this,this.state,t,this._modules.get(t),n.preserveState),lt(this,this.state)},at.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=yt(e.state,t.slice(0,-1));ot.delete(n,t[t.length-1])})),ct(this)},at.prototype.hotUpdate=function(t){this._modules.update(t),ct(this,!0)},at.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(at.prototype,ut);var wt=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Ct(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),xt=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=Ct(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),St=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Ct(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),$t=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=Ct(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),Ot=function(t){return{mapState:wt.bind(null,t),mapGetters:St.bind(null,t),mapMutations:xt.bind(null,t),mapActions:$t.bind(null,t)}};function At(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function kt(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Ct(t,e,n){var r=t._modulesNamespaceMap[n];return r}var jt={Store:at,install:bt,version:"2.5.0",mapState:wt,mapMutations:xt,mapGetters:St,mapActions:$t,createNamespacedHelpers:Ot},Tt=jt,Et=n("da81"),Mt=n.n(Et);(function(){function t(){}Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this).length},enumerable:!0,configurable:!0}),t.prototype.key=function(t){return Object.keys(this)[t]},t.prototype.setItem=function(t,e){this[t]=e.toString()},t.prototype.getItem=function(t){return this[t]},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){for(var t=0,e=Object.keys(this);t0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Yt(this,t),this.param=e,this.silencer=n,this.collector=[],this.currentGroupDescription="",this.activeGroups=0,this.timeHolder=null,this.methods=["group","groupEnd","log","trace","time","timeEnd","error","warn"],this.silent={group:function(){},groupEnd:function(){},log:function(){},trace:function(){},time:function(){},timeEnd:function(){},error:function(){},err:function(){},debug:function(){},warn:function(){}}}return re(t,[{key:"_generateError",value:function(){try{throw new Error}catch(t){return t}}},{key:"_insertParamToArguments",value:function(t){if(""!==this.param){var e=Xt(t);return e.unshift(this.param),e}return Array.from(arguments)}},{key:"setSilent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.silencer=t||!this.silencer}},{key:"group",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);if("function"!==typeof console.group){var e=t[0]||"GROUP";this.currentGroupDescription=e,this.activeGroups++}else console.group.apply(console,t)}}},{key:"groupEnd",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);"function"!==typeof console.groupEnd?(this.currentGroupDescription="",this.activeGroups--,this.activeGroups=0===this.activeGroups?0:this.activeGroups--):console.groupEnd.apply(console,t)}}},{key:"log",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);"function"!==typeof console.group?(t.shift(),t.unshift(" ".repeat(2*this.activeGroups)),this.log.apply(this,t)):console.log.apply(console,t)}}},{key:"trace",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);if("function"!==typeof console.trace){var e=this._generateError();e.stack?this.log.apply(console,e.stack):(this.log.log(t),void 0!=arguments.callee&&this.trace.apply(console,arguments.callee))}else console.trace.apply(console,t)}}},{key:"time",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);"function"!==typeof console.time?this.timeHolder=new Date:console.time.apply(console,t)}}},{key:"timeEnd",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);if("function"!==typeof console.timeEnd){var e=new Date-this.timeHolder;this.log.log("Took ".concat(Math.floor(e/36e5)," hours, ").concat(Math.floor(e/6e4)," minutes and ").concat(Math.floor(e/1e3)," seconds ( ").concat(e," ms)")),this.time=new Date}else console.timeEnd.apply(console,t)}}},{key:"error",value:function(){var t=this._insertParamToArguments(arguments);"function"!==typeof console.error?(this.log.log("--- ERROR ---"),this.log.log(t)):console.error.apply(console,t)}},{key:"warn",value:function(){var t=this._insertParamToArguments(arguments);"function"!==typeof console.warn?(this.log.log("--- WARN ---"),this.log.log(t)):console.warn.apply(console,t)}}]),t}(),oe=ie,ae=new oe("adminsidepanel");window.debugState.backend||ae.setSilent(!0);var ue=function(t){t.prototype.$log=ae},se={updatePjax:function(t){var e=t.commit;$(document).trigger("pjax:refresh"),e("newToggleKey")},getSidemenus:function(t){return new Promise((function(e,n){a.methods.get(window.SideMenuData.getMenuUrl,{position:"side"}).then((function(n){ae.log("sidemenues",n);var r=LS.ld.orderBy(n.data.menues,(function(t){return parseInt(t.order||999999)}),["desc"]);t.commit("updateSidemenus",r),t.dispatch("updatePjax"),e()}),n)}))},getCollapsedmenus:function(t){return new Promise((function(e,n){a.methods.get(window.SideMenuData.getMenuUrl,{position:"collapsed"}).then((function(n){ae.log("quickmenu",n);var r=LS.ld.orderBy(n.data.menues,(function(t){return parseInt(t.order||999999)}),["desc"]);t.commit("updateCollapsedmenus",r),t.dispatch("updatePjax"),e()}),n)}))},getQuestions:function(t){return new Promise((function(e,n){a.methods.get(window.SideMenuData.getQuestionsUrl).then((function(n){ae.log("Questions",n);var r=n.data.groups;t.commit("updateQuestiongroups",r),t.dispatch("updatePjax"),e()}),n)}))},collectMenus:function(t){return Promise.all([t.dispatch("getSidemenus"),t.dispatch("getCollapsedmenus")])}};r["a"].use(qt.a),r["a"].use(Tt);var ce=function(t,e){var n="limesurveyadminsidepanel",r=new Dt({key:n+"_"+t+"_"+e,storage:window.localStorage});return new Tt.Store({state:Ft(t),plugins:[r.plugin],getters:Bt,mutations:Gt,actions:se})},le=ce,fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:" loader--loaderWidget ls-flex ls-flex-column align-content-center align-items-center",staticStyle:{"min-height":"100%"},attrs:{id:"loader-"+t.id}},[n("div",{staticClass:"ls-flex align-content-center align-items-center"},[n("div",{staticClass:"loader-adminpanel text-center",class:t.extraClass},[t._m(0)])])])},pe=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"contain-pulse animate-pulse"},[n("div",{staticClass:"square"}),n("div",{staticClass:"square"}),n("div",{staticClass:"square"}),n("div",{staticClass:"square"})])}],de={name:"loaderWidget",props:{id:{type:String,default:Math.floor(1e3*Math.random())},extraClass:{type:String,default:""}}},he=de,ve=(n("6a47"),f(he,fe,pe,!1,null,"d2d9edba",null)),ge=ve.exports;r["a"].config.devtools=!1,r["a"].config.ignoredElements=["x-test"],r["a"].use(ue),r["a"].component("loader-widget",ge),r["a"].mixin({methods:{updatePjaxLinks:function(){this.$forceUpdate(),this.$store.commit("newToggleKey")},redoTooltips:function(){window.LS.doToolTip()},translate:function(t){return window.SideMenuData.translate[t]||t}},filters:{translate:function(t){return window.SideMenuData.translate[t]||t}}});var me=function(t,e){var n=le(t,e),i={},o=function(t){0!=e&&t.commit("updateSurveyId",e)},a=function(){var t=$("body").find("nav").first().height(),e=$("body").find("footer").last().height(),n=$(".menubar").outerHeight(),r=t+e+n+25,o=window.innerHeight,a=o-r,u=100*(1-parseInt($("#sidebar").width())/$("#vue-apps-main-container").width()),s=100*(1-parseInt("98px")/$("#vue-apps-main-container").width()),c=Math.floor($("#sidebar").data("collapsed")?u:s)+"%";i["surveyViewHeight"]=a,i["surveyViewWidth"]=c,$("#fullbody-container").css({"max-width":c,"overflow-x":"auto"})},u=function(){return new r["a"]({el:"#vue-sidebar-container",store:n,components:{sidebar:V},created:function(){var t=this;$(document).on("vue-sidebar-collapse",(function(){t.$store.commit("changeIsCollapsed",!0)}))},mounted:function(){var t=this;o(this.$store);var e=$("#in_survey_common").height()-35||400;this.$store.commit("changeMaxHeight",e),this.updatePjaxLinks(),$(document).on("vue-redraw",(function(){t.updatePjaxLinks()})),$(document).trigger("vue-reload-remote")}})},s=function(){i.reloadcounter=5,$(document).off("pjax:send.panelloading").on("pjax:send.panelloading",(function(){$('
').appendTo("body"),$(".ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable.ui-resizable").remove(),$("#pjax-file-load-container").find("div").css({width:"20%",display:"block"}),LS.adminsidepanel.reloadcounter--})),$(document).off("pjax:error.panelloading").on("pjax:error.panelloading",(function(t){console.ls.log(t)})),$(document).off("pjax:complete.panelloading").on("pjax:complete.panelloading",(function(){0===LS.adminsidepanel.reloadcounter&&location.reload()})),$(document).off("pjax:scriptcomplete.panelloading").on("pjax:scriptcomplete.panelloading",(function(){$("#pjax-file-load-container").find("div").css("width","100%"),$("#pjaxClickInhibitor").fadeOut(400,(function(){$(this).remove()})),$(document).trigger("vue-resize-height"),$(document).trigger("vue-reload-remote"),setTimeout((function(){$("#pjax-file-load-container").find("div").css({width:"0%",display:"none"})}),2200)}))},c=function(){window.singletonPjax(),document.getElementById("vue-sidebar-container")&&(i["sidemenu"]=u()),$(document).on("click","ul.pagination>li>a",(function(){$(document).trigger("pjax:refresh")})),a(),window.addEventListener("resize",LS.ld.debounce(a,300)),$(document).on("vue-resize-height",LS.ld.debounce(a,300)),s()};return LS.adminCore.addToNamespace(i,"adminsidepanel"),c};$(document).ready((function(){var t="newSurvey";void 0!=window.LS&&(t=window.LS.parameters.$GET.surveyid||window.LS.parameters.keyValuePairs.surveyid),window.SideMenuData&&(t=window.SideMenuData.surveyid),window.adminsidepanel=window.adminsidepanel||me(window.LS.globalUserId,t),window.adminsidepanel()}))},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7cd6":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),u=a.length,s=0;while(u>s)r.f(t,n=a[s++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var r,i;s&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8c57":function(t,e,n){"use strict";var r=n("f7bc"),i=n.n(r);i.a},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},9003:function(t,e,n){var r=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},9138:function(t,e,n){t.exports=n("35e8")},"95d5":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},9744:function(t,e,n){"use strict";var r=n("4588"),i=n("be13");t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a026:function(t,e,n){"use strict";(function(t){ +var n="~",r="\\x"+("0"+n.charCodeAt(0).toString(16)).slice(-2),i="\\"+r,o=new RegExp(r,"g"),a=new RegExp(i,"g"),u=new RegExp("(?:^|([^\\\\]))"+i),s=[].indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},c=String;function l(t,e,a){var u,c,l=!1,f=!!e,p=[],d=[t],h=[t],v=[a?n:"[Circular]"],g=t,m=1;return f&&(c="object"===typeof e?function(t,n){return""!==t&&e.indexOf(t)<0?void 0:n}:e),function(t,e){return f&&(e=c.call(this,t,e)),l?(g!==this&&(u=m-s.call(d,this)-1,m-=u,d.splice(m,d.length),p.splice(m-1,p.length),g=this),"object"===typeof e&&e?(s.call(d,e)<0&&d.push(g=e),m=d.length,u=s.call(h,e),u<0?(u=h.push(e)-1,a?(p.push((""+t).replace(o,r)),v[u]=n+p.join(n)):v[u]=v[0]):e=v[u]):"string"===typeof e&&a&&(e=e.replace(r,i).replace(n,r))):l=!0,e}}function f(t,e){for(var r=0,i=e.length;r1?arguments[1]:void 0,g=void 0!==v,m=0,y=l(p);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&u(y))for(e=s(p.length),n=new d(e);e>m;m++)c(n,m,g?v(p[m],m):p[m]);else for(f=y.call(p),n=new d;!(i=f.next()).done;m++)c(n,m,g?a(f,v,[i.value,m],!0):i.value);return n.length=m,n}})},"54a1":function(t,e,n){n("6c1c"),n("1654"),t.exports=n("95d5")},"551c":function(t,e,n){"use strict";var r,i,o,a,u=n("2d00"),s=n("7726"),c=n("9b43"),l=n("23c6"),f=n("5ca1"),p=n("d3f4"),d=n("d8e8"),h=n("f605"),v=n("4a59"),g=n("ebd6"),m=n("1991").set,y=n("8079")(),_=n("a5b8"),b=n("9c80"),w=n("a25f"),x=n("bcaa"),S="Promise",$=s.TypeError,O=s.process,A=O&&O.versions,k=A&&A.v8||"",C=s[S],j="process"==l(O),T=function(){},E=i=_.f,M=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n("2b4c")("species")]=function(t){t(T,T)};return(j||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),I=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y((function(){var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,u=i?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(i||(2==t._h&&D(t),t._h=1),!0===u?n=r:(l&&l.enter(),n=u(r),l&&(l.exit(),a=!0)),n===e.promise?c($("Promise-chain cycle")):(o=I(n))?o.call(n,s,c):s(n)):c(r)}catch(f){l&&!a&&l.exit(),c(f)}};while(n.length>o)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)}))}},P=function(t){m.call(s,(function(){var e,n,r,i=t._v,o=N(t);if(o&&(e=b((function(){j?O.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=j||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){m.call(s,(function(){var e;j?O.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})}))},R=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw $("Promise can't be resolved itself");(e=I(t))?y((function(){var r={_w:n,_d:!1};try{e.call(t,c(q,r,1),c(R,r,1))}catch(i){R.call(r,i)}})):(n._v=t,n._s=1,L(n,!1))}catch(r){R.call({_w:n,_d:!1},r)}}};M||(C=function(t){h(this,C,S,"_h"),d(t),r.call(this);try{t(c(q,this,1),c(R,this,1))}catch(e){R.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("dcbc")(C.prototype,{then:function(t,e){var n=E(g(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=j?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(q,t,1),this.reject=c(R,t,1)},_.f=E=function(t){return t===C||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!M,{Promise:C}),n("7f20")(C,S),n("7a56")(S),a=n("8378")[S],f(f.S+f.F*!M,S,{reject:function(t){var e=E(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(u||!M),S,{resolve:function(t){return x(u&&this===a?C:this,t)}}),f(f.S+f.F*!(M&&n("5cc5")((function(t){C.all(t)["catch"](T)}))),S,{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=b((function(){var n=[],o=0,a=1;v(t,!1,(function(t){var u=o++,s=!1;n.push(void 0),a++,e.resolve(t).then((function(t){s||(s=!0,n[u]=t,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=b((function(){v(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),i=n("62a0");t.exports=function(t){return r[t]||(r[t]=i(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");t.exports=function(t){return function(e,n,a){var u,s=r(e),c=i(s.length),l=o(a,c);if(t&&n!=n){while(c>l)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),u=n("9b43"),s="prototype",c=function(t,e,n){var l,f,p,d,h=t&c.F,v=t&c.G,g=t&c.S,m=t&c.P,y=t&c.B,_=v?r:g?r[e]||(r[e]={}):(r[e]||{})[s],b=v?i:i[e]||(i[e]={}),w=b[s]||(b[s]={});for(l in v&&(n=e),n)f=!h&&_&&void 0!==_[l],p=(f?_:n)[l],d=y&&f?u(p,r):m&&"function"==typeof p?u(Function.call,p):p,_&&a(_,l,p,t&c.U),b[l]!=p&&o(b,l,d),m&&w[l]!=p&&(w[l]=p)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5cc5":function(t,e,n){var r=n("2b4c")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:n=!0}},o[r]=function(){return u},t(o)}catch(a){}return n}},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5df3":function(t,e,n){"use strict";var r=n("02f4")(!0);n("01f9")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"615f":function(t,e,n){},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),u=n("07e3"),s="prototype",c=function(t,e,n){var l,f,p,d=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,m=t&c.B,y=t&c.W,_=h?i:i[e]||(i[e]={}),b=_[s],w=h?r:v?r[e]:(r[e]||{})[s];for(l in h&&(n=e),n)f=!d&&w&&void 0!==w[l],f&&u(_,l)||(p=f?w[l]:n[l],_[l]=h&&"function"!=typeof w[l]?n[l]:m&&f?o(p,r):y&&w[l]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(p):g&&"function"==typeof p?o(Function.call,p):p,g&&((_.virtual||(_.virtual={}))[l]=p,t&c.R&&b&&!b[l]&&a(b,l,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a47":function(t,e,n){"use strict";var r=n("2e4c"),i=n.n(r);i.a},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6af4":function(t,e,n){},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6b54":function(t,e,n){"use strict";n("3846");var r=n("cb7c"),i=n("0bfb"),o=n("9e1e"),a="toString",u=/./[a],s=function(t){n("2aba")(RegExp.prototype,a,t,!0)};n("79e5")((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?s((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):u.name!=a&&s((function(){return u.call(this)}))},"6c1c":function(t,e,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s=c?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}}},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),u=n("4bf8"),s=n("626a"),c=Object.assign;t.exports=!c||n("79e5")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r}))?function(t,e){var n=u(t),c=arguments.length,l=1,f=o.f,p=a.f;while(c>l){var d,h=s(arguments[l++]),v=f?i(h).concat(f(h)):i(h),g=v.length,m=0;while(g>m)d=v[m++],r&&!p.call(h,d)||(n[d]=h[d])}return n}:c},7514:function(t,e,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a1c":function(t,e,n){"use strict";n.r(e);n("7514"),n("cadf"),n("551c"),n("f751"),n("097d");var r=n("a026"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex ls-ba ls-space padding left-0 col-md-4 hidden-xs nofloat transition-animate-width",style:{"max-height":t.$store.state.inSurveyViewHeight},attrs:{id:"sidebar"},on:{mouseleave:t.mouseleave,mouseup:t.mouseup}},[t.showLoader?n("div",{staticClass:"sidebar_loader",style:{width:t.getSideBarWidth,height:t.getloaderHeight}},[t._m(0)]):t._e(),n("div",{staticClass:"col-12 fill-height ls-space padding all-0",staticStyle:{height:"100%"}},[n("div",{staticClass:"mainMenu container-fluid col-12 ls-space padding right-0 fill-height"},[n("sidebar-state-toggle",{on:{collapse:t.toggleCollapse}}),n("transition",{attrs:{name:"slide-fade"}},[n("sidemenu",{directives:[{name:"show",rawName:"v-show",value:t.showSideMenu,expression:"showSideMenu"}],style:{"min-height":t.calculateSideBarMenuHeight}})],1),n("transition",{attrs:{name:"slide-fade"}},[n("questionexplorer",{directives:[{name:"show",rawName:"v-show",value:t.showQuestionTree,expression:"showQuestionTree"}],style:{"min-height":t.calculateSideBarMenuHeight},on:{openentity:t.openEntity,questiongrouporder:t.changedQuestionGroupOrder}})],1),n("transition",{attrs:{name:"slide-fade"}},[n("quickmenu",{directives:[{name:"show",rawName:"v-show",value:t.$store.state.isCollapsed,expression:"$store.state.isCollapsed"}],style:{"min-height":t.calculateSideBarMenuHeight}})],1)],1)]),n("div",{staticClass:"resize-handle ls-flex-column",style:{height:t.calculateSideBarMenuHeight,"max-height":t.getWindowHeight}},[n("button",{directives:[{name:"show",rawName:"v-show",value:!t.$store.state.isCollapsed,expression:"!$store.state.isCollapsed"}],staticClass:"btn btn-default",on:{mousedown:t.mousedown,click:function(t){return t.preventDefault(),function(){return!1}()}}},[n("i",{staticClass:"fa fa-ellipsis-v"})])])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex ls-flex-column fill align-content-center align-items-center"},[n("i",{staticClass:"fa fa-circle-o-notch fa-2x fa-spin"})])}],a=(n("3b2b"),n("b54a"),n("aef6"),n("ac6a"),n("2ef0"),{methods:{_runAjax:function(t,e,n){return e=e||{},n=n||"get",new Promise((function(r,i){void 0==$&&i("JQUERY NOT AVAILABLE!"),$.ajax({url:t,method:n||"get",data:e,dataType:"json",success:function(t,e,n){r({success:!0,data:t,transferStatus:e,xhr:n})},error:function(t,e,n){i({success:!1,error:n,transferStatus:e,xhr:t})}})}))},post:function(t,e){return this._runAjax(t,e,"post")},get:function(t,e){return this._runAjax(t,e,"get")},delete:function(t,e){return this._runAjax(t,e,"delete")},put:function(t,e){return this._runAjax(t,e,"put")}}}),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex-column fill ls-ba menu-pane ls-space padding all-0 margin top-5",attrs:{id:"questionexplorer"}},[""!=t.createAllowance?n("div",{staticClass:"ls-flex-row wrap align-content-space-between align-items-space-between ls-space margin top-5 bottom-15 button-sub-bar"},[void 0!=t.createQuestionGroupLink&&t.createQuestionGroupLink.length>1?n("a",{staticClass:"btn btn-small btn-primary pjax",attrs:{id:"adminsidepanel__sidebar--selectorCreateQuestionGroup",href:t.createQuestionGroupLink}},[n("i",{staticClass:"fa fa-plus"}),t._v(" \n "+t._s(t._f("translate")("createQuestionGroup"))+"\n ")]):t._e(),t.createQuestionAllowed?n("a",{staticClass:"btn btn-small btn-default ls-space margin right-10 pjax",attrs:{id:"adminsidepanel__sidebar--selectorCreateQuestion",href:t.createQuestionLink}},[n("i",{staticClass:"fa fa-plus-circle"}),t._v(" \n "+t._s(t._f("translate")("createQuestion"))+"\n ")]):t._e()]):t._e(),n("div",{staticClass:"ls-flex-row ls-space padding all-0"},[n("ul",{staticClass:"list-group col-12",on:{drop:function(e){return t.dropQuestionGroup(e,t.questiongroup)}}},t._l(t.orderedQuestionGroups,(function(e){return n("li",{key:e.gid,staticClass:"list-group-item ls-flex-column",class:t.questionGroupItemClasses(e),on:{dragenter:function(n){return t.dragoverQuestiongroup(n,e)}}},[n("div",{staticClass:"col-12 ls-flex-row nowrap ls-space padding right-5 bottom-5"},[t.surveyIsActive?t._e():n("i",{staticClass:"fa fa-bars bigIcons dragPointer",attrs:{draggable:"true"},on:{dragend:function(n){return t.endDraggingGroup(n,e)},dragstart:function(n){return t.startDraggingGroup(n,e)},click:function(t){return t.stopPropagation(),t.preventDefault(),function(){return!1}()}}},[t._v("\n  \n ")]),n("a",{staticClass:"col-12 pjax",attrs:{href:e.link},on:{click:function(n){return n.stopPropagation(),t.openQuestionGroup(e)}}},[n("span",{class:t.$store.getters.isRTL?"question_text_ellipsize pull-right":"question_text_ellipsize pull-left",style:{"max-width":t.itemWidth}},[t._v("\n "+t._s(e.group_name)+" \n ")]),n("span",{class:t.$store.getters.isRTL?"badge ls-space margin right-5 pull-left":"badge ls-space margin right-5 pull-right"},[t._v("\n "+t._s(e.questions.length)+"\n ")])]),n("i",{staticClass:"fa bigIcons",class:t.isActive(e.gid)?"fa-caret-up":"fa-caret-down",on:{click:function(n){return n.preventDefault(),t.toggleActivation(e.gid)}}},[t._v(" ")])]),n("transition",{attrs:{name:"slide-fade-down"}},[t.isActive(e.gid)?n("ul",{staticClass:"list-group background-muted padding-left question-question-list",on:{drop:function(e){return t.dropQuestion(e,t.question)}}},t._l(t.orderQuestions(e.questions),(function(r){return n("li",{key:r.qid,staticClass:"list-group-item question-question-list-item ls-flex-row align-itmes-flex-start",class:t.questionItemClasses(r),attrs:{"data-toggle":"tootltip","data-is-hidden":r.hidden,"data-questiontype":r.type,"data-has-condition":t.questionHasCondition(r),title:r.question_flat},on:{dragenter:function(n){return t.dragoverQuestion(n,r,e)}}},[t.$store.state.surveyActiveState?t._e():n("i",{staticClass:"fa fa-bars margin-right bigIcons dragPointer question-question-list-item-drag",attrs:{draggable:"true"},on:{dragend:function(e){return t.endDraggingQuestion(e,r)},dragstart:function(n){return t.startDraggingQuestion(n,r,e)},click:function(t){return t.stopPropagation(),t.preventDefault(),function(){return!1}()}}},[t._v("\n  \n ")]),n("a",{staticClass:"col-9 pjax question-question-list-item-link display-as-container",attrs:{href:r.link},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.openQuestion(r)}}},[n("span",{staticClass:"question_text_ellipsize",class:{"question-hidden":r.hidden},style:{width:t.itemWidth}},[t._v("\n ["+t._s(r.title)+"] › "+t._s(r.question_flat)+" \n ")])])])})),0):t._e()])],1)})),0)])])},s=[],c={mixins:[a],data:function(){return{active:[],questiongroupDragging:!1,draggedQuestionGroup:null,questionDragging:!1,draggedQuestion:null,draggedQuestionsGroup:null}},computed:{surveyIsActive:function(){return window.SideMenuData.isActive},createQuestionGroupLink:function(){return window.SideMenuData.createQuestionGroupLink},createQuestionLink:function(){return window.SideMenuData.createQuestionLink},calculatedHeight:function(){var t=this.$store.state.maxHeight;return t-100},orderedQuestionGroups:function(){return LS.ld.orderBy(this.$store.state.questiongroups,(function(t){return parseInt(t.group_order>=0&&null!==t.group_order?t.group_order:999999)}),["asc"])},createQuestionAllowed:function(){return this.$store.state.questiongroups.length>0&&void 0!=this.createQuestionLink&&this.createQuestionLink.length>1},createAllowance:function(){var t=void 0!=this.createQuestionGroupLink&&this.createQuestionGroupLink.length>1?"g":"",e=this.createQuestionAllowed?"q":"";return t+e},itemWidth:function(){return parseInt(this.$store.state.sidebarwidth)-95+"px"}},methods:{questionHasCondition:function(t){return"1"!==t.relevance},questionItemClasses:function(t){var e="";return e+=this.$store.state.lastQuestionOpen===t.qid?"selected":" ",null!==this.draggedQuestion&&(e+=this.draggedQuestion.qid===t.qid?" dragged":" "),e},questionGroupItemClasses:function(t){var e="";return e+=this.isActive(t.gid)?"selected":" ",null!==this.draggedQuestionGroup&&(e+=this.draggedQuestionGroup.gid===t.gid?" dragged":" "),e},orderQuestions:function(t){return LS.ld.orderBy(t,(function(t){return parseInt(t.question_order||999999)}),["asc"])},isActive:function(t){var e=-1!=LS.ld.indexOf(this.active,t);return!0!==this.questiongroupDragging&&e},toggleActivation:function(t){if(this.isActive(t))LS.ld.remove(this.active,(function(e){return e===t}));else this.active.push(t);this.$store.commit("questionGroupOpenArray",this.active),this.updatePjaxLinks()},addActive:function(t){this.isActive(t)||this.active.push(t),this.$store.commit("questionGroupOpenArray",this.active)},openQuestionGroup:function(t){this.addActive(t.gid),this.$store.commit("lastQuestionGroupOpen",t),this.updatePjaxLinks()},openQuestion:function(t){this.addActive(t.gid),this.$store.commit("lastQuestionOpen",t),this.updatePjaxLinks(),$(document).trigger("pjax:load",{url:t.link})},startDraggingGroup:function(t,e){this.draggedQuestionGroup=e,this.questiongroupDragging=!0,t.dataTransfer.setData("text/plain","node")},endDraggingGroup:function(t,e){null!==this.draggedQuestionGroup&&(this.draggedQuestionGroup=null,this.questiongroupDragging=!1,this.$emit("questiongrouporder"))},dragoverQuestiongroup:function(t,e){var n=this;if(void 0!=this.draggedQuestion&&null!=this.draggedQuestion||this.$log.log({this:this,questiongroupObject:e,draggedQuestion:this.draggedQuestion}),this.questiongroupDragging){var r=parseInt(e.group_order),i=parseInt(this.draggedQuestionGroup.group_order);1==Math.abs(parseInt(r)-parseInt(i))&&(e.group_order=i,this.draggedQuestionGroup.group_order=r)}else{if(window.SideMenuData.isActive)return;if(this.addActive(e.gid),this.draggedQuestion.gid!==e.gid){var o=LS.ld.remove(this.draggedQuestionsGroup.questions,(function(t,e){return t.qid===n.draggedQuestion.qid}));o.length>0&&(this.draggedQuestion.question_order=null,e.questions.push(this.draggedQuestion),this.draggedQuestion.gid=e.gid,e.group_order>this.draggedQuestionsGroup.group_order?(this.draggedQuestion.question_order=0,LS.ld.each(e.questions,(function(t,e){t.question_order=parseInt(t.question_order)+1}))):this.draggedQuestion.question_order=this.draggedQuestionsGroup.questions.length+1,this.draggedQuestionsGroup=e)}}},startDraggingQuestion:function(t,e,n){this.$log.log("Dragging started",e),t.dataTransfer.setData("application/node",this),this.questionDragging=!0,this.draggedQuestion=e,this.draggedQuestionsGroup=n},endDraggingQuestion:function(t,e){this.questionDragging&&(this.questionDragging=!1,this.draggedQuestion=null,this.draggedQuestionsGroup=null,this.$emit("questiongrouporder"))},dragoverQuestion:function(t,e,n){if(this.questionDragging){if(this.questionDragging.gid!==e.gid&&window.SideMenuData.isActive)return;var r=e.question_order;e.question_order=this.draggedQuestion.question_order,this.draggedQuestion.question_order=r}}},mounted:function(){this.active=this.$store.state.questionGroupOpenArray,this.updatePjaxLinks(),$(document).on("vue-reload-remote",(function(){}))}},l=c;n("8c57");function f(t,e,n,r,i,o,a,u){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):i&&(s=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(t,e){return s.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:c}}var p=f(l,u,s,!1,null,null,null),d=p.exports,h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.currentKey,staticClass:"ls-space margin bottom-15 top-5 col-12",staticStyle:{height:"40px"}},[n("div",{staticClass:"ls-flex-row align-content-space-between align-items-flex-end ls-space padding left-0 right-10 bottom-0 top-0"},[n("transition",{attrs:{name:"fade"}},[t.$store.state.isCollapsed?t._e():n("button",{staticClass:"btn btn-default ls-space padding left-15 right-15",on:{click:function(e){return t.$emit("collapse")}}},[n("i",{class:t.$store.getters.isRTL?"fa fa-chevron-right":"fa fa-chevron-left"})])]),n("transition",{attrs:{name:"fade"}},[t.$store.state.isCollapsed?t._e():n("div",{staticClass:"ls-flex-item grow-10 col-12"},[n("div",{staticClass:"btn-group btn-group col-12"},[n("button",{staticClass:"btn col-6 force color white onhover tabbutton",class:"settings"==t.currentTab?"btn-primary":"btn-default",attrs:{id:"adminsidepanel__sidebar--selectorSettingsButton"},on:{click:function(e){t.currentTab="settings"}}},[t._v("\n "+t._s(t._f("translate")("settings"))+"\n ")]),n("button",{staticClass:"btn col-6 force color white onhover tabbutton",class:"questiontree"==t.currentTab?"btn-primary":"btn-default",attrs:{id:"adminsidepanel__sidebar--selectorStructureButton"},on:{click:function(e){t.currentTab="questiontree"}}},[t._v("\n "+t._s(t._f("translate")("structure"))+"\n ")])])])]),n("transition",{attrs:{name:"fade"}},[t.$store.state.isCollapsed?n("button",{staticClass:"btn btn-default ls-space padding left-15 right-15",on:{click:function(e){return t.$emit("collapse")}}},[n("i",{class:t.$store.getters.isRTL?"fa fa-chevron-left":"fa fa-chevron-right"})]):t._e()])],1)])},v=[],g={name:"sidebar-state-toggle",computed:{currentKey:function(){return this.$store.state.toggleKey},currentTab:{get:function(){return this.$store.state.currentTab},set:function(t){this.$store.commit("changeCurrentTab",t)}}}},m=g,y=f(m,h,v,!1,null,null,null),_=y.exports,b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex-column fill menu-pane overflow-enabled ls-space padding all-0 margin top-5"},[t._l(t.sortedMenues,(function(e){return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],key:e.id,staticClass:"ls-flex-row wrap ls-space padding all-0",attrs:{title:e.title,id:e.id}},[n("label",{staticClass:"menu-label"},[t._v(t._s(e.title))]),n("submenu",{attrs:{menu:e}})],1)})),t.loading?n("loader-widget",{attrs:{id:"sidemenuLoaderWidget"}}):t._e()],2)},w=[],x=(n("c5f6"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return"fontawesome"==t.iconType?n("i",{staticClass:"fa",class:"fa-"+t.icon},[t._v(" ")]):"image"==t.iconType?n("img",{attrs:{width:"32px",src:t.icon}}):"iconclass"==t.iconType?n("i",{class:t.icon},[t._v(" ")]):n("span")}),S=[],O={props:{icon:{type:String},iconType:{type:String}}},A=O,k=f(A,x,S,!1,null,null,null),C=k.exports,j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"list-group subpanel col-12",class:"level-"+t.menu.level},[t._l(t.sortedMenuEntries,(function(e){return n("a",{key:e.id,staticClass:"list-group-item",class:t.getLinkClass(e),attrs:{href:e.link,target:1==e.link_external?"_blank":"",id:"sidemenu_"+e.name},on:{click:function(n){return n.stopPropagation(),t.setActiveMenuItemIndex(e)}}},[n("div",{staticClass:"col-12",class:e.menu_class,attrs:{title:t.reConvertHTML(e.menu_description),"data-toggle":"tooltip"}},[n("div",{staticClass:"ls-space padding all-0",class:t.$store.state.lastMenuItemOpen==e.id?"col-sm-10":"col-sm-12"},[n("menuicon",{attrs:{"icon-type":e.menu_icon_type,icon:e.menu_icon}}),n("span",{domProps:{innerHTML:t._s(e.menu_title)}}),1==e.link_external?n("i",{staticClass:"fa fa-external-link"},[t._v(" ")]):t._e()],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.$store.state.lastMenuItemOpen==e.id,expression:"$store.state.lastMenuItemOpen == menuItem.id"}],staticClass:"col-sm-2 text-center ls-space padding all-0 background white"},[n("i",{staticClass:"fa fa-chevron-right"},[t._v(" ")])])])])})),t._l(t.menu.submenus,(function(e){return n("li",{key:e.id,staticClass:"list-group-item",class:t.checkIsOpen(e)?"menu-selected":"",on:{"!click":function(n){return n.stopPropagation(),t.setActiveMenuIndex(e)}}},[n("a",{staticClass:"ls-flex-row nowrap align-item-center align-content-center",class:t.checkIsOpen(e)?"ls-space margin bottom-5":"",attrs:{href:"#",title:t.reConvertHTML(e.description),"data-toggle":"tooltip"}},[n("div",{staticClass:"ls-space col-sm-10 padding all-0"},[n("menuicon",{attrs:{"icon-type":"fontawesome",icon:"arrow-right"}}),n("span",{domProps:{innerHTML:t._s(e.title)}})],1),n("div",{staticClass:"col-sm-2 text-center ls-space padding all-0",class:t.checkIsOpen(e)?"menu-open":""},[n("i",{staticClass:"fa fa-level-down"})])]),n("transition",{attrs:{name:"slide-fade-down"}},[t.checkIsOpen(e)?n("submenu",{attrs:{menu:e}}):t._e()],1)],1)}))],2)},T=[],E=(n("a481"),{name:"submenu",components:{menuicon:C},mixins:[a],props:{menu:{type:[Object,Array],required:!0}},data:function(){return{menues:{}}},computed:{sortedMenuEntries:function(){return LS.ld.orderBy(this.menu.entries,(function(t){return parseInt(t.ordering||999999)}),["asc"])}},methods:{setActiveMenuItemIndex:function(t){t.id;return this.$store.commit("lastMenuItemOpen",t),this.$log.log("Opened Menuitem",t),!0},checkIsOpen:function(t){var e=this,n=this.$store.state.lastMenuOpen==t.id,r=!1;return LS.ld.each(t.submenus,(function(t,n){r=e.$store.state.lastMenuOpen==t.id||r})),n||r||!1},setActiveMenuIndex:function(t){t.id;this.$store.commit("lastMenuOpen",t)},setOpenSubpanel:function(t){this.openSubpanelId=t,this.$emit("menuselected",t)},debugOut:function(t){return JSON.stringify(t)},getLinkClass:function(t){var e="ls-flex-row nowrap ";return e+=t.pjax?"pjax ":" ",e+=this.$store.state.lastMenuItemOpen==t.id?"selected ":" ",e},reConvertHTML:function(t){var e=["'","©","Û","®","ž","Ü","Ÿ","Ý","$","Þ","%","¡","ß","¢","à","£","á","À","¤","â","Á","¥","ã","Â","¦","ä","Ã","§","å","Ä","¨","æ","Å","©","ç","Æ","ª","è","Ç","«","é","È","¬","ê","É","­","ë","Ê","®","ì","Ë","¯","í","Ì","°","î","Í","±","ï","Î","²","ð","Ï","³","ñ","Ð","´","ò","Ñ","µ","ó","Õ","¶","ô","Ö","·","õ","Ø","¸","ö","Ù","¹","÷","Ú","º","ø","Û","»","ù","Ü","@","¼","ú","Ý","½","û","Þ","€","¾","ü","ß","¿","ý","à","‚","À","þ","á","ƒ","Á","ÿ","å","„","Â","æ","…","Ã","ç","†","Ä","è","‡","Å","é","ˆ","Æ","ê","‰","Ç","ë","Š","È","ì","‹","É","í","Œ","Ê","î","Ë","ï","Ž","Ì","ð","Í","ñ","Î","ò","‘","Ï","ó","’","Ð","ô","“","Ñ","õ","”","Ò","ö","•","Ó","ø","–","Ô","ù","—","Õ","ú","˜","Ö","û","™","×","ý","š","Ø","þ","›","Ù","ÿ","œ","Ú"],n=["'","©","Û","®","ž","Ü","Ÿ","Ý","$","Þ","%","¡","ß","¢","à","£","á","À","¤","â","Á","¥","ã","Â","¦","ä","Ã","§","å","Ä","¨","æ","Å","©","ç","Æ","ª","è","Ç","«","é","È","¬","ê","É","­","ë","Ê","®","ì","Ë","¯","í","Ì","°","î","Í","±","ï","Î","²","ð","Ï","³","ñ","Ð","´","ò","Ñ","µ","ó","Õ","¶","ô","Ö","·","õ","Ø","¸","ö","Ù","¹","÷","Ú","º","ø","Û","»","ù","Ü","@","¼","ú","Ý","½","û","Þ","€","¾","ü","ß","¿","ý","à","‚","À","þ","á","ƒ","Á","ÿ","å","„","Â","æ","…","Ã","ç","†","Ä","è","‡","Å","é","ˆ","Æ","ê","‰","Ç","ë","Š","È","ì","‹","É","í","Œ","Ê","î","Ë","ï","Ž","Ì","ð","Í","ñ","Î","ò","‘","Ï","ó","’","Ð","ô","“","Ñ","õ","”","Ò","ö","•","Ó","ø","–","Ô","ù","—","Õ","ú","˜","Ö","û","™","×","ý","š","Ø","þ","›","Ù","ÿ","œ","Ú"];return LS.ld.each(n,(function(n,r){t=t.replace(n,e[r])})),t}},created:function(){},mounted:function(){this.updatePjaxLinks(),this.redoTooltips()}}),M=E,I=f(M,j,T,!1,null,null,null),L=I.exports,P={name:"sidemenu",components:{menuicon:C,submenu:L},mixins:[a],props:{openSubpanelId:{type:Number}},data:function(){return{menues:{},loading:!0}},computed:{sortedMenues:function(){return LS.ld.orderBy(this.$store.state.sidemenus,(function(t){return parseInt(t.ordering||999999)}),["asc"])}},methods:{sortedMenuEntries:function(t){var e=LS.ld.orderBy(t,(function(t){return parseInt(t.ordering||999999)}),["asc"]);return e},setActiveMenuIndex:function(t){t.id;this.$store.commit("lastMenuOpen",t)},setActiveMenuItemIndex:function(t){t.id;this.$store.commit("lastMenuItemOpen",t)},setOpenSubpanel:function(t){this.openSubpanelId=t,this.$emit("menuselected",t)},debugOut:function(t){return JSON.stringify(t)}},created:function(){var t=this;this.$store.dispatch("getSidemenus").then((function(t){}),this.$log.error).finally((function(e){t.loading=!1}))},mounted:function(){this.updatePjaxLinks(),$(document).on("vue-reload-remote",(function(){}))}},N=P,D=f(N,b,w,!1,null,null,null),R=D.exports,q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ls-flex-column fill"},[t._l(t.sortedMenues,(function(e){return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],key:e.title,staticClass:"ls-space margin top-10",attrs:{title:e.title}},[n("div",{staticClass:"btn-group-vertical ls-space padding right-10"},t._l(t.sortedMenuEntries(e.entries),(function(e){return n("a",{key:e.id,staticClass:"btn btn-icon",class:t.compileEntryClasses(e),attrs:{href:e.link,title:e.menu_description,target:e.link_external?"_blank":"_self","data-toggle":"tooltip"},on:{click:function(n){return t.setActiveMenuIndex(e)}}},["fontawesome"==e.menu_icon_type?[n("i",{staticClass:"quickmenuIcon fa",class:"fa-"+e.menu_icon})]:"image"==e.menu_icon_type?[n("img",{attrs:{width:"32px",src:e.menu_icon}})]:"iconclass"==e.menu_icon_type?[n("i",{staticClass:"quickmenuIcon",class:e.menu_icon})]:t._e()],2)})),0)])})),t.loading?n("loader-widget",{attrs:{id:"quickmenuLoadingIcon","extra-class":"loader-quickmenu"}}):t._e()],2)},F=[],B={mixins:[a],props:{menuEntries:{type:[Array,Object]},activeMenuIndex:{type:String}},data:function(){return{loading:!0}},computed:{sortedMenues:function(){return LS.ld.orderBy(this.$store.state.collapsedmenus,(function(t){return parseInt(t.ordering||999999)}),["asc"])}},methods:{sortedMenuEntries:function(t){var e=LS.ld.orderBy(t,(function(t){return parseInt(t.ordering||999999)}),["asc"]);return e},setActiveMenuIndex:function(t){t.id;this.$store.commit("lastMenuItemOpen",t)},compileEntryClasses:function(t){var e="";return this.$store.state.lastMenuItemOpen==t.id?e+=" btn-primary ":e+=" btn-default ",t.link_external||(e+=" pjax "),e}},created:function(){var t=this;this.$store.dispatch("getCollapsedmenus").then((function(t){}),this.$log.error).finally((function(e){t.loading=!1}))},mounted:function(){}},G=B,z=(n("ab94"),f(G,q,F,!1,null,null,null)),Q=z.exports,H={components:{questionexplorer:d,sidemenu:R,quickmenu:Q,SidebarStateToggle:_},mixins:[a],data:function(){return{activeMenuIndex:0,openSubpanelId:0,menues:[],collapsed:!1,sideBarWidth:"315",initialPos:{x:0,y:0},isMouseDown:!1,isMouseDownTimeOut:null,sideBarHeight:"400px",showLoader:!1}},computed:{isActive:function(){return window.SideMenuData.isActive},questiongroups:function(){return this.$store.state.questiongroups},sidemenus:{get:function(){return this.$store.state.sidemenus},set:function(t){this.$store.commit("updateSidemenus",t)}},collapsedmenus:{get:function(){return this.$store.state.collapsedmenus},set:function(t){this.$store.commit("updateCollapsedmenus",t)}},currentTab:function(){return this.$store.state.currentTab},getSideBarWidth:function(){return this.$store.state.isCollapsed?"98":this.sideBarWidth},sortedMenus:function(){return LS.ld.orderBy(this.menues,(function(t){return parseInt(t.order||999999)}),["asc"])},showSideMenu:function(){return!this.$store.state.isCollapsed&&"settings"==this.currentTab},showQuestionTree:function(){return!this.$store.state.isCollapsed&&"questiontree"==this.currentTab},calculateSideBarMenuHeight:function(){var t=this.$store.state.sideBarHeight;return LS.ld.min(t,Math.floor(2*screen.height))+"px"},getWindowHeight:function(){return 2*screen.height+"px"},getloaderHeight:function(){return $("#sidebar").height()}},methods:{calculateHeight:function(t){t.$store.commit("changeSideBarHeight",$("#in_survey_common").height())},changedQuestionGroupOrder:function(){var t=this,e=this,n=LS.ld.map(this.questiongroups,(function(t,e){var n=LS.ld.map(t.questions,(function(t,e){return{qid:t.qid,question:t.question,gid:t.gid,question_order:t.question_order}}));return{gid:t.gid,group_name:t.group_name,group_order:t.group_order,questions:n}}));this.$log.log("QuestionGroup order changed"),this.showLoader=!0,this.post(window.SideMenuData.updateOrderLink,{grouparray:n,surveyid:this.$store.surveyid}).then((function(t){e.$log.log("questiongroups updated"),e.$store.dispatch("getQuestions").then((function(){e.showLoader=!1}))}),(function(n){e.$log.error("questiongroups updating error!"),t.post(window.SideMenuData.updateOrderLink,{surveyid:t.$store.surveyid}).then((function(){e.getQuestions().then((function(){e.showLoader=!1}))}))}))},controlActiveLink:function(){var t=window.location.href,e=!1;LS.ld.each(this.sidemenus,(function(n,r){LS.ld.each(n.entries,(function(n,r){e=LS.ld.endsWith(t,n.link)?n:e}))}));var n=!1;LS.ld.each(this.collapsedmenus,(function(e,r){LS.ld.each(e.entries,(function(e,r){n=LS.ld.endsWith(t,e.link)?e:n}))}));var r=!1;LS.ld.each(this.questiongroups,(function(e,n){var i=new RegExp("questiongroups/sa/edit/surveyid/"+e.sid+"/gid/"+e.gid);r=i.test(t)||LS.ld.endsWith(t,e.link)?e:r}));var i=!1;LS.ld.each(this.questiongroups,(function(e,n){LS.ld.each(e.questions,(function(e,n){var r=new RegExp("editquestion/surveyid/"+e.sid+"/gid/"+e.gid+"/qid/"+e.qid);i=LS.ld.endsWith(t,e.link)||r.test(t)?e:i}))})),this.$store.commit("closeAllMenus"),0!=e&&1!=this.$store.state.isCollapsed&&this.$store.commit("lastMenuItemOpen",e),0!=n&&1==this.$store.state.isCollapsed&&this.$store.commit("lastMenuItemOpen",n),0!=i&&this.$store.commit("lastQuestionOpen",i),0!=r&&(this.$store.commit("lastQuestionGroupOpen",r),this.$store.commit("addToQuestionGroupOpenArray",r))},editEntity:function(){this.setActiveMenuIndex(null,"question")},openEntity:function(){this.setActiveMenuIndex(null,"question")},setActiveMenuIndex:function(t){this.$store.commit("lastMenuItemOpen",t),this.activeMenuIndex=t},setOpenSubpanel:function(t){this.openSubpanelId=t,this.$store.commit("lastMenuOpen",t),this.$emit("menuselected",t)},toggleCollapse:function(){this.$store.state.isCollapsed=!this.$store.state.isCollapsed,this.$store.commit("changeIsCollapsed",this.$store.state.isCollapsed),this.$store.state.isCollapsed?this.sideBarWidth="98":this.sideBarWidth=this.$store.state.sidebarwidth},mousedown:function(t){this.isMouseDown=!this.$store.state.isCollapsed,$("#sidebar").removeClass("transition-animate-width"),$("#pjax-content").removeClass("transition-animate-width")},mouseup:function(t){this.isMouseDown&&(this.isMouseDown=!1,this.$store.state.isCollapsed=!1,parseInt(this.sideBarWidth)<250&&!this.$store.state.isCollapsed?(this.toggleCollapse(),this.$store.commit("changeSidebarwidth","340")):this.$store.commit("changeSidebarwidth",this.sideBarWidth),$("#sidebar").addClass("transition-animate-width"),$("#pjax-content").removeClass("transition-animate-width"))},mouseleave:function(t){if(this.isMouseDown){var e=this;this.isMouseDownTimeOut=setTimeout((function(){e.mouseup(t)}),1e3)}},mousemove:function(t,e){if(this.isMouseDown){if(e.$store.getters.isRTL){if(0===t.screenX&&0===t.screenY)return;if(window.innerWidth-t.clientX>screen.width/2)return void this.$store.commit("maxSideBarWidth",!0);e.sideBarWidth=window.innerWidth-t.pageX-8+"px",this.$store.commit("changeSidebarwidth",e.sideBarWidth),this.$store.commit("maxSideBarWidth",!1)}else{if(0===t.screenX&&0===t.screenY)return;if(t.clientX>screen.width/2)return void this.$store.commit("maxSideBarWidth",!0);e.sideBarWidth=t.pageX+8+"px",this.$store.commit("changeSidebarwidth",e.sideBarWidth),this.$store.commit("maxSideBarWidth",!1)}window.clearTimeout(e.isMouseDownTimeOut),e.isMouseDownTimeOut=null}},setBaseMenuPosition:function(t,e){switch(e){case"side":this.sidemenus=LS.ld.orderBy(t,(function(t){return parseInt(t.order||999999)}),["desc"]);break;case"collapsed":this.collapsedmenus=LS.ld.orderBy(t,(function(t){return parseInt(t.order||999999)}),["desc"]);break}}},created:function(){var t=this;t.$store.commit("setSurveyActiveState",1===parseInt(this.isActive)),this.activeMenuIndex=this.$store.state.lastMenuOpen,this.$store.state.isCollapsed?this.sideBarWidth="98":this.sideBarWidth=t.$store.state.sidebarwidth,LS.ld.each(window.SideMenuData.basemenus,this.setBaseMenuPosition)},mounted:function(){var t=this,e=this;$(document).trigger("sidebar:mounted"),e.calculateHeight(e),window.addEventListener("resize",(function(){e.calculateHeight(e)})),$(document).on("vue-sidemenu-update-link",(function(){t.controlActiveLink()})),$(document).on("vue-reload-remote",(function(){t.$log.log("vue-reload-remote"),t.$store.dispatch("getQuestions"),t.$store.dispatch("collectMenus"),t.updatePjaxLinks()})),$(document).on("vue-redraw",(function(){t.$log.log("vue-redraw"),t.$store.dispatch("getQuestions"),t.$store.dispatch("collectMenus")})),this.controlActiveLink(),this.updatePjaxLinks(),$("body").on("mousemove",(function(t){e.mousemove(t,e)}))}},U=H,W=(n("c4aa"),f(U,i,o,!1,null,"3e36cf63",null)),V=W.exports,K=function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},J="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Z(t){J&&(t._devtoolHook=J,J.emit("vuex:init",t),J.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){J.emit("vuex:mutation",t,e)})))}function X(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function Y(t){return null!==t&&"object"===typeof t}function tt(t){return t&&"function"===typeof t.then}var et=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},nt={namespaced:{configurable:!0}};nt.namespaced.get=function(){return!!this._rawModule.namespaced},et.prototype.addChild=function(t,e){this._children[t]=e},et.prototype.removeChild=function(t){delete this._children[t]},et.prototype.getChild=function(t){return this._children[t]},et.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},et.prototype.forEachChild=function(t){X(this._children,t)},et.prototype.forEachGetter=function(t){this._rawModule.getters&&X(this._rawModule.getters,t)},et.prototype.forEachAction=function(t){this._rawModule.actions&&X(this._rawModule.actions,t)},et.prototype.forEachMutation=function(t){this._rawModule.mutations&&X(this._rawModule.mutations,t)},Object.defineProperties(et.prototype,nt);var rt=function(t){this.register([],t,!1)};function it(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;it(t.concat(r),e.getChild(r),n.modules[r])}}rt.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},rt.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},rt.prototype.update=function(t){it([],this.root,t)},rt.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new et(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&X(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},rt.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var ot;var at=function(t){var e=this;void 0===t&&(t={}),!ot&&"undefined"!==typeof window&&window.Vue&&bt(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var i=t.state;void 0===i&&(i={}),"function"===typeof i&&(i=i()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new rt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new ot;var o=this,a=this,u=a.dispatch,s=a.commit;this.dispatch=function(t,e){return u.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r,ft(this,i,[],this._modules.root),lt(this,i),n.forEach((function(t){return t(e)})),ot.config.devtools&&Z(this)},ut={state:{configurable:!0}};function st(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function ct(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;ft(t,n,[],t._modules.root,!0),lt(t,n,e)}function lt(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};X(i,(function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=ot.config.silent;ot.config.silent=!0,t._vm=new ot({data:{$$state:e},computed:o}),ot.config.silent=a,t.strict&&mt(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),ot.nextTick((function(){return r.$destroy()})))}function ft(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var u=yt(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit((function(){ot.set(u,s,r.state)}))}var c=r.context=pt(t,a,n);r.forEachMutation((function(e,n){var r=a+n;ht(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;vt(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;gt(t,r,e,c)})),r.forEachChild((function(r,o){ft(t,e,n.concat(o),r,i)}))}function pt(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=_t(n,r,i),a=o.payload,u=o.options,s=o.type;return u&&u.root||(s=e+s),t.dispatch(s,a)},commit:r?t.commit:function(n,r,i){var o=_t(n,r,i),a=o.payload,u=o.options,s=o.type;u&&u.root||(s=e+s),t.commit(s,a,u)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return dt(t,e)}},state:{get:function(){return yt(t.state,n)}}}),i}function dt(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),n}function ht(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function vt(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return tt(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function gt(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function mt(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function yt(t,e){return e.length?e.reduce((function(t,e){return t[e]}),t):t}function _t(t,e,n){return Y(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function bt(t){ot&&t===ot||(ot=t,K(ot))}ut.state.get=function(){return this._vm._data.$$state},ut.state.set=function(t){0},at.prototype.commit=function(t,e,n){var r=this,i=_t(t,e,n),o=i.type,a=i.payload,u=(i.options,{type:o,payload:a}),s=this._mutations[o];s&&(this._withCommit((function(){s.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(u,r.state)})))},at.prototype.dispatch=function(t,e){var n=this,r=_t(t,e),i=r.type,o=r.payload,a={type:i,payload:o},u=this._actions[i];if(u)return this._actionSubscribers.forEach((function(t){return t(a,n.state)})),u.length>1?Promise.all(u.map((function(t){return t(o)}))):u[0](o)},at.prototype.subscribe=function(t){return st(t,this._subscribers)},at.prototype.subscribeAction=function(t){return st(t,this._actionSubscribers)},at.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},at.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},at.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),ft(this,this.state,t,this._modules.get(t),n.preserveState),lt(this,this.state)},at.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=yt(e.state,t.slice(0,-1));ot.delete(n,t[t.length-1])})),ct(this)},at.prototype.hotUpdate=function(t){this._modules.update(t),ct(this,!0)},at.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(at.prototype,ut);var wt=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Ct(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),xt=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=Ct(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),St=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Ct(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),$t=kt((function(t,e){var n={};return At(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=Ct(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),Ot=function(t){return{mapState:wt.bind(null,t),mapGetters:St.bind(null,t),mapMutations:xt.bind(null,t),mapActions:$t.bind(null,t)}};function At(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function kt(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Ct(t,e,n){var r=t._modulesNamespaceMap[n];return r}var jt={Store:at,install:bt,version:"2.5.0",mapState:wt,mapMutations:xt,mapGetters:St,mapActions:$t,createNamespacedHelpers:Ot},Tt=jt,Et=n("da81"),Mt=n.n(Et);(function(){function t(){}Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this).length},enumerable:!0,configurable:!0}),t.prototype.key=function(t){return Object.keys(this)[t]},t.prototype.setItem=function(t,e){this[t]=e.toString()},t.prototype.getItem=function(t){return this[t]},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){for(var t=0,e=Object.keys(this);t0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Yt(this,t),this.param=e,this.silencer=n,this.collector=[],this.currentGroupDescription="",this.activeGroups=0,this.timeHolder=null,this.methods=["group","groupEnd","log","trace","time","timeEnd","error","warn"],this.silent={group:function(){},groupEnd:function(){},log:function(){},trace:function(){},time:function(){},timeEnd:function(){},error:function(){},err:function(){},debug:function(){},warn:function(){}}}return re(t,[{key:"_generateError",value:function(){try{throw new Error}catch(t){return t}}},{key:"_insertParamToArguments",value:function(t){if(""!==this.param){var e=Xt(t);return e.unshift(this.param),e}return Array.from(arguments)}},{key:"setSilent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.silencer=t||!this.silencer}},{key:"group",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);if("function"!==typeof console.group){var e=t[0]||"GROUP";this.currentGroupDescription=e,this.activeGroups++}else console.group.apply(console,t)}}},{key:"groupEnd",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);"function"!==typeof console.groupEnd?(this.currentGroupDescription="",this.activeGroups--,this.activeGroups=0===this.activeGroups?0:this.activeGroups--):console.groupEnd.apply(console,t)}}},{key:"log",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);"function"!==typeof console.group?(t.shift(),t.unshift(" ".repeat(2*this.activeGroups)),this.log.apply(this,t)):console.log.apply(console,t)}}},{key:"trace",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);if("function"!==typeof console.trace){var e=this._generateError();e.stack?this.log.apply(console,e.stack):(this.log.log(t),void 0!=arguments.callee&&this.trace.apply(console,arguments.callee))}else console.trace.apply(console,t)}}},{key:"time",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);"function"!==typeof console.time?this.timeHolder=new Date:console.time.apply(console,t)}}},{key:"timeEnd",value:function(){if(!this.silencer){var t=this._insertParamToArguments(arguments);if("function"!==typeof console.timeEnd){var e=new Date-this.timeHolder;this.log.log("Took ".concat(Math.floor(e/36e5)," hours, ").concat(Math.floor(e/6e4)," minutes and ").concat(Math.floor(e/1e3)," seconds ( ").concat(e," ms)")),this.time=new Date}else console.timeEnd.apply(console,t)}}},{key:"error",value:function(){var t=this._insertParamToArguments(arguments);"function"!==typeof console.error?(this.log.log("--- ERROR ---"),this.log.log(t)):console.error.apply(console,t)}},{key:"warn",value:function(){var t=this._insertParamToArguments(arguments);"function"!==typeof console.warn?(this.log.log("--- WARN ---"),this.log.log(t)):console.warn.apply(console,t)}}]),t}(),oe=ie,ae=new oe("adminsidepanel");window.debugState.backend||ae.setSilent(!0);var ue=function(t){t.prototype.$log=ae},se={updatePjax:function(t){var e=t.commit;$(document).trigger("pjax:refresh"),e("newToggleKey")},getSidemenus:function(t){return new Promise((function(e,n){a.methods.get(window.SideMenuData.getMenuUrl,{position:"side"}).then((function(n){ae.log("sidemenues",n);var r=LS.ld.orderBy(n.data.menues,(function(t){return parseInt(t.order||999999)}),["desc"]);t.commit("updateSidemenus",r),t.dispatch("updatePjax"),e()}),n)}))},getCollapsedmenus:function(t){return new Promise((function(e,n){a.methods.get(window.SideMenuData.getMenuUrl,{position:"collapsed"}).then((function(n){ae.log("quickmenu",n);var r=LS.ld.orderBy(n.data.menues,(function(t){return parseInt(t.order||999999)}),["desc"]);t.commit("updateCollapsedmenus",r),t.dispatch("updatePjax"),e()}),n)}))},getQuestions:function(t){return new Promise((function(e,n){a.methods.get(window.SideMenuData.getQuestionsUrl).then((function(n){ae.log("Questions",n);var r=n.data.groups;t.commit("updateQuestiongroups",r),t.dispatch("updatePjax"),e()}),n)}))},collectMenus:function(t){return Promise.all([t.dispatch("getSidemenus"),t.dispatch("getCollapsedmenus")])}};r["a"].use(qt.a),r["a"].use(Tt);var ce=function(t,e){var n="limesurveyadminsidepanel",r=new Dt({key:n+"_"+t+"_"+e,storage:window.sessionStorage});return new Tt.Store({state:Ft(t),plugins:[r.plugin],getters:Bt,mutations:Gt,actions:se})},le=ce,fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:" loader--loaderWidget ls-flex ls-flex-column align-content-center align-items-center",staticStyle:{"min-height":"100%"},attrs:{id:"loader-"+t.id}},[n("div",{staticClass:"ls-flex align-content-center align-items-center"},[n("div",{staticClass:"loader-adminpanel text-center",class:t.extraClass},[t._m(0)])])])},pe=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"contain-pulse animate-pulse"},[n("div",{staticClass:"square"}),n("div",{staticClass:"square"}),n("div",{staticClass:"square"}),n("div",{staticClass:"square"})])}],de={name:"loaderWidget",props:{id:{type:String,default:Math.floor(1e3*Math.random())},extraClass:{type:String,default:""}}},he=de,ve=(n("6a47"),f(he,fe,pe,!1,null,"d2d9edba",null)),ge=ve.exports;r["a"].config.devtools=!1,r["a"].config.ignoredElements=["x-test"],r["a"].use(ue),r["a"].component("loader-widget",ge),r["a"].mixin({methods:{updatePjaxLinks:function(){this.$forceUpdate(),this.$store.commit("newToggleKey")},redoTooltips:function(){window.LS.doToolTip()},translate:function(t){return window.SideMenuData.translate[t]||t}},filters:{translate:function(t){return window.SideMenuData.translate[t]||t}}});var me=function(t,e){var n=le(t,e),i={},o=function(t){0!=e&&t.commit("updateSurveyId",e)},a=function(){var t=$("body").find("nav").first().height(),e=$("body").find("footer").last().height(),n=$(".menubar").outerHeight(),r=t+e+n+25,o=window.innerHeight,a=o-r,u=100*(1-parseInt($("#sidebar").width())/$("#vue-apps-main-container").width()),s=100*(1-parseInt("98px")/$("#vue-apps-main-container").width()),c=Math.floor($("#sidebar").data("collapsed")?u:s)+"%";i["surveyViewHeight"]=a,i["surveyViewWidth"]=c,$("#fullbody-container").css({"max-width":c,"overflow-x":"auto"})},u=function(){return new r["a"]({el:"#vue-sidebar-container",store:n,components:{sidebar:V},created:function(){var t=this;$(document).on("vue-sidebar-collapse",(function(){t.$store.commit("changeIsCollapsed",!0)}))},mounted:function(){var t=this;o(this.$store);var e=$("#in_survey_common").height()-35||400;this.$store.commit("changeMaxHeight",e),this.updatePjaxLinks(),$(document).on("vue-redraw",(function(){t.updatePjaxLinks()})),$(document).trigger("vue-reload-remote")}})},s=function(){i.reloadcounter=5,$(document).off("pjax:send.panelloading").on("pjax:send.panelloading",(function(){$('
').appendTo("body"),$(".ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable.ui-resizable").remove(),$("#pjax-file-load-container").find("div").css({width:"20%",display:"block"}),LS.adminsidepanel.reloadcounter--})),$(document).off("pjax:error.panelloading").on("pjax:error.panelloading",(function(t){console.ls.log(t)})),$(document).off("pjax:complete.panelloading").on("pjax:complete.panelloading",(function(){0===LS.adminsidepanel.reloadcounter&&location.reload()})),$(document).off("pjax:scriptcomplete.panelloading").on("pjax:scriptcomplete.panelloading",(function(){$("#pjax-file-load-container").find("div").css("width","100%"),$("#pjaxClickInhibitor").fadeOut(400,(function(){$(this).remove()})),$(document).trigger("vue-resize-height"),$(document).trigger("vue-reload-remote"),setTimeout((function(){$("#pjax-file-load-container").find("div").css({width:"0%",display:"none"})}),2200)}))},c=function(){window.singletonPjax(),document.getElementById("vue-sidebar-container")&&(i["sidemenu"]=u()),$(document).on("click","ul.pagination>li>a",(function(){$(document).trigger("pjax:refresh")})),a(),window.addEventListener("resize",LS.ld.debounce(a,300)),$(document).on("vue-resize-height",LS.ld.debounce(a,300)),s()};return LS.adminCore.addToNamespace(i,"adminsidepanel"),c};$(document).ready((function(){var t="newSurvey";void 0!=window.LS&&(t=window.LS.parameters.$GET.surveyid||window.LS.parameters.keyValuePairs.surveyid),window.SideMenuData&&(t=window.SideMenuData.surveyid),window.adminsidepanel=window.adminsidepanel||me(window.LS.globalUserId,t),window.adminsidepanel()}))},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},"7cd6":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),u=a.length,s=0;while(u>s)r.f(t,n=a[s++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8079:function(t,e,n){var r=n("7726"),i=n("1991").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n("2d95")(a);t.exports=function(){var t,e,n,c=function(){var r,i;s&&(r=a.domain)&&r.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var l=u.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},8378:function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8c57":function(t,e,n){"use strict";var r=n("f7bc"),i=n.n(r);i.a},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(t,e,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},9003:function(t,e,n){var r=n("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},9138:function(t,e,n){t.exports=n("35e8")},"95d5":function(t,e,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");t.exports=n("584a").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},9744:function(t,e,n){"use strict";var r=n("4588"),i=n("be13");t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9c80":function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a026:function(t,e,n){"use strict";(function(t){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You diff --git a/assets/packages/adminsidepanel/build/js/adminsidepanel.js b/assets/packages/adminsidepanel/build/js/adminsidepanel.js index b7f0e2e8039..581aec4f4c3 100644 --- a/assets/packages/adminsidepanel/build/js/adminsidepanel.js +++ b/assets/packages/adminsidepanel/build/js/adminsidepanel.js @@ -3704,7 +3704,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var vuex_persist__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex-persist */ \"./node_modules/vuex-persist/dist/esm/index.js\");\n/* harmony import */ var vue_localstorage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-localstorage */ \"./node_modules/vue-localstorage/dist/vue-local-storage.js\");\n/* harmony import */ var vue_localstorage__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_localstorage__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./state */ \"./src/store/state.js\");\n/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getters */ \"./src/store/getters.js\");\n/* harmony import */ var _mutations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mutations */ \"./src/store/mutations.js\");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./actions */ \"./src/store/actions.js\");\n\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vue_localstorage__WEBPACK_IMPORTED_MODULE_3___default.a);\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vuex__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n\nvar getAppState = function getAppState(userid, surveyid) {\n var AppStateName = 'limesurveyadminsidepanel';\n var vuexLocal = new vuex_persist__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n key: AppStateName + '_' + userid + '_' + surveyid,\n storage: window.localStorage\n });\n return new vuex__WEBPACK_IMPORTED_MODULE_1__[\"default\"].Store({\n state: Object(_state__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(userid),\n plugins: [vuexLocal.plugin],\n getters: _getters__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n mutations: _mutations__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n actions: _actions__WEBPACK_IMPORTED_MODULE_7__[\"default\"]\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (getAppState);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvdnVleC1zdG9yZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9zdG9yZS92dWV4LXN0b3JlLmpzPzY3ZWEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFZ1ZSBmcm9tICd2dWUnO1xuaW1wb3J0IFZ1ZXggZnJvbSAndnVleCc7XG5pbXBvcnQgVnVleFBlcnNpc3RlbmNlIGZyb20gJ3Z1ZXgtcGVyc2lzdCc7XG5pbXBvcnQgVnVlTG9jYWxTdG9yYWdlIGZyb20gJ3Z1ZS1sb2NhbHN0b3JhZ2UnO1xuXG5pbXBvcnQgc3RhdGVQcmVzZXQgZnJvbSAnLi9zdGF0ZSc7XG5pbXBvcnQgZ2V0dGVycyBmcm9tICcuL2dldHRlcnMnO1xuaW1wb3J0IG11dGF0aW9ucyBmcm9tICcuL211dGF0aW9ucyc7XG5pbXBvcnQgYWN0aW9ucyBmcm9tICcuL2FjdGlvbnMnO1xuXG5WdWUudXNlKFZ1ZUxvY2FsU3RvcmFnZSk7XG5WdWUudXNlKFZ1ZXgpO1xuXG5cbmNvbnN0IGdldEFwcFN0YXRlID0gZnVuY3Rpb24gKHVzZXJpZCxzdXJ2ZXlpZCkge1xuICAgIGNvbnN0IEFwcFN0YXRlTmFtZSA9ICdsaW1lc3VydmV5YWRtaW5zaWRlcGFuZWwnO1xuICAgIGNvbnN0IHZ1ZXhMb2NhbCA9IG5ldyBWdWV4UGVyc2lzdGVuY2Uoe1xuICAgICAgICBrZXk6IEFwcFN0YXRlTmFtZSsnXycrdXNlcmlkKydfJytzdXJ2ZXlpZCxcbiAgICAgICAgc3RvcmFnZTogd2luZG93LmxvY2FsU3RvcmFnZVxuICAgIH0pO1xuXG5cbiAgICByZXR1cm4gbmV3IFZ1ZXguU3RvcmUoe1xuICAgICAgICBzdGF0ZTogc3RhdGVQcmVzZXQodXNlcmlkKSxcbiAgICAgICAgcGx1Z2luczogW1xuICAgICAgICAgICAgdnVleExvY2FsLnBsdWdpblxuICAgICAgICBdLFxuICAgICAgICBnZXR0ZXJzLFxuICAgICAgICBtdXRhdGlvbnMsXG4gICAgICAgIGFjdGlvbnNcbiAgICB9KTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IGdldEFwcFN0YXRlO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFNQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQ0E7QUFQQTtBQVNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/vuex-store.js\n"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var vuex_persist__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex-persist */ \"./node_modules/vuex-persist/dist/esm/index.js\");\n/* harmony import */ var vue_localstorage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-localstorage */ \"./node_modules/vue-localstorage/dist/vue-local-storage.js\");\n/* harmony import */ var vue_localstorage__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_localstorage__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./state */ \"./src/store/state.js\");\n/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getters */ \"./src/store/getters.js\");\n/* harmony import */ var _mutations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mutations */ \"./src/store/mutations.js\");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./actions */ \"./src/store/actions.js\");\n\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vue_localstorage__WEBPACK_IMPORTED_MODULE_3___default.a);\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vuex__WEBPACK_IMPORTED_MODULE_1__[\"default\"]);\n\nvar getAppState = function getAppState(userid, surveyid) {\n var AppStateName = 'limesurveyadminsidepanel';\n var vuexLocal = new vuex_persist__WEBPACK_IMPORTED_MODULE_2__[\"default\"]({\n key: AppStateName + '_' + userid + '_' + surveyid,\n storage: window.sessionStorage\n });\n return new vuex__WEBPACK_IMPORTED_MODULE_1__[\"default\"].Store({\n state: Object(_state__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(userid),\n plugins: [vuexLocal.plugin],\n getters: _getters__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n mutations: _mutations__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n actions: _actions__WEBPACK_IMPORTED_MODULE_7__[\"default\"]\n });\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (getAppState);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmUvdnVleC1zdG9yZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9zdG9yZS92dWV4LXN0b3JlLmpzPzY3ZWEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFZ1ZSBmcm9tICd2dWUnO1xuaW1wb3J0IFZ1ZXggZnJvbSAndnVleCc7XG5pbXBvcnQgVnVleFBlcnNpc3RlbmNlIGZyb20gJ3Z1ZXgtcGVyc2lzdCc7XG5pbXBvcnQgVnVlTG9jYWxTdG9yYWdlIGZyb20gJ3Z1ZS1sb2NhbHN0b3JhZ2UnO1xuXG5pbXBvcnQgc3RhdGVQcmVzZXQgZnJvbSAnLi9zdGF0ZSc7XG5pbXBvcnQgZ2V0dGVycyBmcm9tICcuL2dldHRlcnMnO1xuaW1wb3J0IG11dGF0aW9ucyBmcm9tICcuL211dGF0aW9ucyc7XG5pbXBvcnQgYWN0aW9ucyBmcm9tICcuL2FjdGlvbnMnO1xuXG5WdWUudXNlKFZ1ZUxvY2FsU3RvcmFnZSk7XG5WdWUudXNlKFZ1ZXgpO1xuXG5cbmNvbnN0IGdldEFwcFN0YXRlID0gZnVuY3Rpb24gKHVzZXJpZCxzdXJ2ZXlpZCkge1xuICAgIGNvbnN0IEFwcFN0YXRlTmFtZSA9ICdsaW1lc3VydmV5YWRtaW5zaWRlcGFuZWwnO1xuICAgIGNvbnN0IHZ1ZXhMb2NhbCA9IG5ldyBWdWV4UGVyc2lzdGVuY2Uoe1xuICAgICAgICBrZXk6IEFwcFN0YXRlTmFtZSsnXycrdXNlcmlkKydfJytzdXJ2ZXlpZCxcbiAgICAgICAgc3RvcmFnZTogd2luZG93LmxvY2FsU3RvcmFnZVxuICAgIH0pO1xuXG5cbiAgICByZXR1cm4gbmV3IFZ1ZXguU3RvcmUoe1xuICAgICAgICBzdGF0ZTogc3RhdGVQcmVzZXQodXNlcmlkKSxcbiAgICAgICAgcGx1Z2luczogW1xuICAgICAgICAgICAgdnVleExvY2FsLnBsdWdpblxuICAgICAgICBdLFxuICAgICAgICBnZXR0ZXJzLFxuICAgICAgICBtdXRhdGlvbnMsXG4gICAgICAgIGFjdGlvbnNcbiAgICB9KTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IGdldEFwcFN0YXRlO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRkE7QUFNQTtBQUNBO0FBQ0E7QUFHQTtBQUNBO0FBQ0E7QUFQQTtBQVNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/store/vuex-store.js\n"); /***/ }), diff --git a/assets/packages/adminsidepanel/src/store/vuex-store.js b/assets/packages/adminsidepanel/src/store/vuex-store.js index e37e5eff46a..a66b4810fd3 100644 --- a/assets/packages/adminsidepanel/src/store/vuex-store.js +++ b/assets/packages/adminsidepanel/src/store/vuex-store.js @@ -16,7 +16,7 @@ const getAppState = function (userid,surveyid) { const AppStateName = 'limesurveyadminsidepanel'; const vuexLocal = new VuexPersistence({ key: AppStateName+'_'+userid+'_'+surveyid, - storage: window.localStorage + storage: window.sessionStorage });