survey-creator-vue 1.12.49 → 1.12.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-vue",
3
- "version": "1.12.49",
3
+ "version": "1.12.51",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -21,9 +21,9 @@
21
21
  "url": "https://github.com/surveyjs/survey-creator.git"
22
22
  },
23
23
  "peerDependencies": {
24
- "survey-core": "1.12.49",
25
- "survey-creator-core": "1.12.49",
26
- "survey-vue3-ui": "1.12.49",
24
+ "survey-core": "1.12.51",
25
+ "survey-creator-core": "1.12.51",
26
+ "survey-vue3-ui": "1.12.51",
27
27
  "vue": "^3.2.41"
28
28
  }
29
29
  }
@@ -323,9 +323,9 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
323
323
  a("div", {
324
324
  class: "svc-scroll__scrollbar",
325
325
  onScroll: n[1] || (n[1] = () => s(t).onScrollScrollbar())
326
- }, n[2] || (n[2] = [
326
+ }, [...n[2] || (n[2] = [
327
327
  a("div", { class: "svc-scroll__scrollbar-sizer" }, null, -1)
328
- ]), 32)
328
+ ])], 32)
329
329
  ], 512));
330
330
  }
331
331
  }), vo = /* @__PURE__ */ g({
@@ -619,9 +619,9 @@ const Ae = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
619
619
  }, [
620
620
  a("div", {
621
621
  class: _(e.item.getSwitcherIconCss())
622
- }, o[2] || (o[2] = [
622
+ }, [...o[2] || (o[2] = [
623
623
  a("div", { class: "svc-switcher__icon-thumb" }, null, -1)
624
- ]), 2),
624
+ ])], 2),
625
625
  e.item.hasTitle ? (l(), d("span", Zo, f(e.item.title), 1)) : m("", !0)
626
626
  ], 42, Jo)), [
627
627
  [s(N), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
@@ -1569,14 +1569,14 @@ const $t = /* @__PURE__ */ g({
1569
1569
  h((l(), d("div", {
1570
1570
  class: _(["spg-boolean-switch__button", o.question.value ? "spg-boolean-switch__button--checked" : ""]),
1571
1571
  tabindex: "0"
1572
- }, n[1] || (n[1] = [
1572
+ }, [...n[1] || (n[1] = [
1573
1573
  a("div", { class: "spg-boolean-switch__thumb" }, [
1574
1574
  a("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })
1575
1575
  ], -1),
1576
1576
  a("div", { class: "spg-boolean-switch__thumb" }, [
1577
1577
  a("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" })
1578
1578
  ], -1)
1579
- ]), 2)), [
1579
+ ])], 2)), [
1580
1580
  [i, { disableTabStop: !0 }]
1581
1581
  ]),
1582
1582
  a("div", kt, [
@@ -3204,11 +3204,11 @@ const $t = /* @__PURE__ */ g({
3204
3204
  key: 0,
3205
3205
  class: "svc-logo-image-placeholder",
3206
3206
  onClick: y[0] || (y[0] = (D) => s(i).chooseFile(s(i)))
3207
- }, y[3] || (y[3] = [
3207
+ }, [...y[3] || (y[3] = [
3208
3208
  a("svg", null, [
3209
3209
  a("use", { "xlink:href": "#icon-image-48x48" })
3210
3210
  ], -1)
3211
- ]))), [
3211
+ ])])), [
3212
3212
  [s(N)]
3213
3213
  ]) : m("", !0)
3214
3214
  ], 64)),
@@ -3380,9 +3380,9 @@ const $t = /* @__PURE__ */ g({
3380
3380
  a("div", {
3381
3381
  class: "svc-page-navigator-item__dot",
3382
3382
  title: o.model.title
3383
- }, n[1] || (n[1] = [
3383
+ }, [...n[1] || (n[1] = [
3384
3384
  a("div", { class: "svc-page-navigator-item__dot-content" }, null, -1)
3385
- ]), 8, kl),
3385
+ ])], 8, kl),
3386
3386
  a("div", fl, [
3387
3387
  a("span", $l, f(o.model.title), 1),
3388
3388
  n[2] || (n[2] = a("span", { class: "svc-page-navigator-item__dot" }, [
@@ -3546,12 +3546,12 @@ const $t = /* @__PURE__ */ g({
3546
3546
  a("div", Vl, [
3547
3547
  p(s(c), V({ is: n.componentName }, n.componentData), null, 16, ["is"])
3548
3548
  ]),
3549
- s(o).isEmptyElement ? (l(), d("div", zl, i[4] || (i[4] = [
3549
+ s(o).isEmptyElement ? (l(), d("div", zl, [...i[4] || (i[4] = [
3550
3550
  a("div", {
3551
3551
  class: "svc-panel__placeholder",
3552
3552
  "data-bind": "text: placeholderText"
3553
3553
  }, null, -1)
3554
- ]))) : m("", !0),
3554
+ ])])) : m("", !0),
3555
3555
  a("div", Al, [
3556
3556
  p(s(c), {
3557
3557
  is: "sv-action-bar",
@@ -1 +1 @@
1
- (function(h,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("survey-vue3-ui"),require("vue"),require("survey-core"),require("survey-creator-core")):typeof define=="function"&&define.amd?define(["exports","survey-vue3-ui","vue","survey-core","survey-creator-core"],l):(h=typeof globalThis<"u"?globalThis:h||self,l(h.SurveyCreatorVue={},h.SurveyVue,h.Vue,h.Survey,h.SurveyCreatorCore))})(this,function(h,l,e,y,B){"use strict";const F={class:"svc-flex-column svc-flex-row__element svc-flex-row__element--growing"},L={class:"svc-top-bar"},A={class:"svc-tabbed-menu-wrapper"},K=["v-show"],Q={class:"svc-creator__content-holder svc-flex-column"},H=["aria-labelledby","id"],O={key:0,class:"svc-footer-bar"},G=["v-show"],W={key:0,class:"svc-creator__banner"},j=["innerHTML"],T=e.defineComponent({__name:"Creator",props:{model:{}},setup(i){const n=i,o=e.computed(()=>e.toRaw(n.model)),t=e.ref();return l.useBase(()=>o.value,(s,a)=>{a&&a.unsubscribeRootElement(),s&&t.value&&s.setRootElement(t.value)}),e.onMounted(()=>{t.value&&n.model.setRootElement(t.value)}),e.onUnmounted(()=>{n.model.unsubscribeRootElement()}),(s,a)=>o.value.isCreatorDisposed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(l.SvComponent),{is:"survey-popup-modal"}),e.createElementVNode("div",{class:e.normalizeClass(o.value.getRootCss()),style:e.normalizeStyle(o.value.themeVariables),ref_key:"root",ref:t},[e.createElementVNode("div",null,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-bundle"})]),e.createElementVNode("div",{class:e.normalizeClass(["svc-full-container svc-creator__area svc-flex-column",{"svc-creator__area--with-banner":!o.value.haveCommercialLicense}])},[e.createElementVNode("div",{class:e.normalizeClass(["svc-flex-row svc-full-container",{"svc-creator__side-bar--left":o.value.sidebarLocation=="left"}])},[e.createElementVNode("div",F,[e.createElementVNode("div",L,[e.withDirectives(e.createElementVNode("div",A,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabbed-menu",model:o.value.tabbedMenu},null,8,["model"])],512),[[e.vShow,o.value.showTabs]]),o.value.showToolbar?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-toolbar-wrapper","v-show":o.value.showToolbar},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.value.toolbar},null,8,["model"])],8,K)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["svc-creator__content-wrapper svc-flex-row",{"svc-creator__content-wrapper--footer-toolbar":o.value.isMobileView}])},[e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.tabs,r=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value.viewType==r.id&&r.visible?(e.openBlock(),e.createElementBlock("div",{role:"tabpanel",class:e.normalizeClass(["svc-creator-tab",{"svc-creator__toolbox--right":o.value.toolboxLocation=="right"}]),key:r.id,"aria-labelledby":"tab-"+r.id,id:"scrollableDiv-"+r.id},[e.createVNode(e.unref(l.SvComponent),{is:r.componentContent,model:r.data.model},null,8,["is","model"])],10,H)):e.createCommentVNode("",!0)],64))),256))])],2),o.value.isMobileView?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",{class:"svc-toolbar-wrapper","v-show":o.value.isMobileView},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.value.footerToolbar},null,8,["model"])],8,G)])):e.createCommentVNode("",!0)]),o.value.sidebar?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-side-bar",model:o.value.sidebar},null,8,["model"])):e.createCommentVNode("",!0)],2),o.value.haveCommercialLicense?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("span",{class:"svc-creator__non-commercial-text",innerHTML:o.value.licenseText},null,8,j)])),e.createVNode(e.unref(l.SvComponent),{is:"sv-notifier",model:o.value.notifier},null,8,["model"])],2)],6)],64))}}),J=e.defineComponent({__name:"TabbedMenu",props:{model:{}},setup(i){const n=i;let o;const t=e.ref();return l.useBase(()=>n.model),e.onMounted(()=>{o=new y.ResponsivityManager(t.value,n.model,".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content")}),e.onUnmounted(()=>{o.dispose(),o=void 0}),(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:"svc-tabbed-menu",ref_key:"container",ref:t,role:"tablist"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.model.renderedActions,r=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:r.id,is:"svc-tabbed-menu-item-wrapper",item:r},null,8,["item"]))),128))],512))}}),Z={class:"sv-action__content"},X=e.defineComponent({__name:"TabbedMenuItemWrapper",props:{item:{}},setup(i){const n=i;return l.useBase(()=>n.item),(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["svc-tabbed-menu-item-container",[o.item.isVisible?"":"sv-action--hidden",o.item.css]])},[e.createElementVNode("div",Z,[e.createVNode(e.unref(l.SvComponent),{is:o.item.component||"svc-tabbed-menu-item",item:o.item},null,8,["is","item"])])],2))}}),Y=["id","aria-selected","aria-controls"],U=e.defineComponent({__name:"TabbedMenuItem",props:{item:{}},setup(i){const n=i;return l.useBase(()=>n.item),(o,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"tab",id:"tab-"+o.item.id,"aria-selected":o.item.active,"aria-controls":"scrollableDiv-"+o.item.id,class:e.normalizeClass(["svc-tabbed-menu-item",o.item.getRootCss()]),onClick:t[0]||(t[0]=(...s)=>o.item.action&&o.item.action(...s))},[o.item.hasTitle?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.item.getTitleCss())},e.toDisplayString(o.item.title),3)):e.createCommentVNode("",!0),o.item.hasIcon?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:1,is:"sv-svg-icon",iconName:o.item.iconName,size:"auto",class:e.normalizeClass(o.item.getIconCss()),title:o.item.tooltip||o.item.title},null,8,["iconName","class","title"])):e.createCommentVNode("",!0)],10,Y)),[[e.unref(l.key2ClickDirective)]])}}),x={class:"svc-flex-row svc-side-bar__wrapper"},v={class:"svc-side-bar__container-wrapper"},ee={class:"svc-side-bar__container-content"},oe=e.defineComponent({__name:"SideBar",props:{model:{}},setup(i){const n=i,o=e.ref();return l.useBase(()=>n.model),e.onMounted(()=>{n.model.initResizeManager(o.value)}),e.onUnmounted(()=>{n.model.resetResizeManager()}),(t,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-side-bar",t.model.rootCss])},[e.withDirectives(e.createElementVNode("div",{class:"svc-side-bar__shadow",onClick:s[0]||(s[0]=()=>t.model.collapseSidebar())},null,512),[[e.vShow,t.model.renderContainer]]),e.createElementVNode("div",x,[e.withDirectives(e.createElementVNode("div",v,[e.createElementVNode("div",{class:"svc-side-bar__container",ref_key:"root",ref:o},[e.createVNode(e.unref(l.SvComponent),{is:t.model.header.component,model:t.model.header.componentModel},null,8,["is","model"]),e.createElementVNode("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.model.pages,(a,r)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:r,is:"svc-side-bar-page",model:a},null,8,["model"]))),128))])],512)],512),[[e.vShow,t.model.renderContainer]]),t.model.sideAreaComponentName?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:t.model.sideAreaComponentName,model:t.model.sideAreaComponentData},null,8,["is","model"])):e.createCommentVNode("",!0)])],2)),[[e.vShow,t.model.renderRoot]])}}),te={class:"svc-side-bar__container-header"},ne={class:"svc-side-bar__container-actions"},se={key:0,class:"svc-side-bar__container-title"},le=e.defineComponent({__name:"SideBarDefaultHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",ne,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.toolbar},null,8,["model"])]),o.model.title?(e.openBlock(),e.createElementBlock("div",se,e.toDisplayString(o.model.title),1)):e.createCommentVNode("",!0)]))}}),ae=e.defineComponent({__name:"SideBarPage",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>o.model.visible?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:o.model.componentName,model:o.model.componentData},null,8,["is","model"])):e.createCommentVNode("",!0)}}),re=e.defineComponent({__name:"ObjectSelector",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>o.model.isVisible?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-list",model:o.model.list},null,8,["model"])):e.createCommentVNode("",!0)}}),ie={class:"svc-scroll__container"},D=e.defineComponent({__name:"Scroll",setup(i){const n=new B.ScrollViewModel,o=e.ref();return e.onMounted(()=>{n.setRootElement(o.value)}),e.onUnmounted(()=>{n.setRootElement(void 0),n.unsubscribeRootElement()}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:o,class:"svc-scroll__wrapper"},[e.createElementVNode("div",{class:"svc-scroll__scroller sv-drag-target-skipped",onScroll:s[0]||(s[0]=()=>e.unref(n).onScrollContainer())},[e.createElementVNode("div",ie,[e.renderSlot(t.$slots,"default")])],32),e.createElementVNode("div",{class:"svc-scroll__scrollbar",onScroll:s[1]||(s[1]=()=>e.unref(n).onScrollScrollbar())},s[2]||(s[2]=[e.createElementVNode("div",{class:"svc-scroll__scrollbar-sizer"},null,-1)]),32)],512))}}),ce=e.defineComponent({__name:"PropertyGrid",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.rootCss)},[e.createVNode(e.unref(l.SvComponent),{is:"svc-search",model:o.model.searchManager},null,8,["model"]),e.createVNode(D,null,{default:e.withCtx(()=>[o.model.survey?(e.openBlock(),e.createBlock(e.unref(l.SurveyComponent),{key:0,survey:o.model.survey},null,8,["survey"])):e.createCommentVNode("",!0)]),_:1})],2))}}),de=e.defineComponent({__name:"Tabs",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.model.actions,(s,a)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:a,is:"svc-tab-button",model:s},null,8,["model"]))),128))}}),me={class:"svc-sidebar-tabs__top-container"},pe={class:"svc-sidebar-tabs__collapse-button"},ke={class:"svc-sidebar-tabs__items"},fe={class:"svc-sidebar-tabs__bottom-container"},Ce={class:"svc-sidebar-tabs__items"},ge=e.defineComponent({__name:"TabControl",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.sideBarClassName)},[e.createElementVNode("div",me,[e.createElementVNode("div",pe,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tab-button",model:o.model.expandCollapseAction},null,8,["model"])]),t[0]||(t[0]=e.createElementVNode("div",{class:"svc-sidebar-tabs__separator"},[e.createElementVNode("div")],-1)),e.createElementVNode("div",ke,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.topToolbar},null,8,["model"])])]),e.createElementVNode("div",fe,[e.createElementVNode("div",Ce,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.bottomToolbar},null,8,["model"])])])],2))}}),_e={class:"svc-menu-action"},Be=["title"],be={class:"svc-menu-action__icon"},Ne={class:"svc-menu-action__icon-container"},Ee=e.defineComponent({__name:"TabButton",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>{const s=e.resolveDirective("key2click");return e.openBlock(),e.createElementBlock("div",_e,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),title:o.model.tooltip,onClick:t[0]||(t[0]=a=>o.model.action())},[e.createElementVNode("div",be,[e.createElementVNode("div",Ne,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.model.iconName,size:"auto"},null,8,["iconName"])])])],10,Be)),[[s,{processEsc:!1,disableTabStop:o.model.disableTabStop}]])])}}}),he={class:"svc-property-grid-placeholder"},we={class:"svc-property-grid-placeholder__header"},Se={class:"svc-property-grid-placeholder__title"},ye={class:"svc-property-grid-placeholder__description"},qe=e.defineComponent({__name:"PropertyGridPlaceholder",setup(i){const n=B.editorLocalization;return(o,t)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",we,[e.createElementVNode("span",Se,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderTitle")),1),e.createElementVNode("span",ye,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderDescription")),1)]),t[0]||(t[0]=e.createElementVNode("div",{class:"svc-property-grid-placeholder__content"},[e.createElementVNode("div",{class:"svc-property-grid-placeholder__gap"}),e.createElementVNode("div",{class:"svc-property-grid-placeholder__image"})],-1))]))}}),De={class:"svc-side-bar__container-header svc-sidebar__header-container"},ue={key:0,class:"svc-side-bar__container-title"},$e={key:1,class:"svc-sidebar__header-caption"},Ve={class:"svc-sidebar__header-title"},Te={class:"svc-sidebar__header-subtitle"},Me=e.defineComponent({__name:"SideBarHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",De,[o.model.subTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ue,e.toDisplayString(o.model.title),1)),o.model.subTitle?(e.openBlock(),e.createElementBlock("div",$e,[e.createElementVNode("span",Ve,e.toDisplayString(o.model.title),1),e.createElementVNode("span",Te,e.toDisplayString(o.model.subTitle),1)])):e.createCommentVNode("",!0)]))}}),ze={class:"svc-sidebar__header svc-sidebar__header--tabbed"},Pe={class:"svc-sidebar__header-container svc-sidebar__header-container--with-subtitle"},Ie={class:"svc-sidebar__header-content"},Re={class:"svc-sidebar__header-caption"},Fe={class:"svc-sidebar__header-title"},Le={class:"svc-sidebar__header-subtitle"},Ae=e.defineComponent({__name:"SideBarPropertyGridHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>{const s=e.resolveDirective("key2click");return e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Pe,[e.createElementVNode("div",Ie,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),onClick:t[0]||(t[0]=a=>o.model.action())},[e.createElementVNode("div",Re,[e.createElementVNode("span",Fe,e.toDisplayString(o.model.title),1),e.createElementVNode("span",Le,e.toDisplayString(o.model.tooltip),1)])],2)),[[s,{processEsc:!1}]]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup"})])])])}}}),Ke=e.defineComponent({__name:"QuestionError",props:{errorKey:{},error:{},cssClasses:{},element:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{key:n.errorKey},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:e.normalizeClass(n.cssClasses.error.icon),iconName:"icon-alert_24x24",size:"auto"},null,8,["class"]),e.createElementVNode("span",{class:e.normalizeClass(n.cssClasses?n.cssClasses.error.item||void 0:"panel-error-item")},[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:n.error.locText},null,8,["locString"])],2)]))}}),Qe=["title"],He=["title"],Oe=["title"],Ge=["title"],We=e.defineComponent({__name:"ActionButton",props:{classes:{},selected:{type:Boolean},disabled:{type:Boolean},text:{},title:{},allowBubble:{type:Boolean},click:{type:Function},iconName:{}},setup(i){const n=i,o=s=>{n.click(),n.allowBubble||s.stopPropagation()},t=()=>new y.CssClassBuilder().append(n.classes||"").append("svc-action-button").append("svc-action-button--icon",!!n.iconName).append("svc-action-button--selected",!!n.selected).append("svc-action-button--disabled",!!n.disabled).toString();return(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.iconName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["svc-action-button svc-action-button--disabled",s.classes]),title:s.title},e.toDisplayString(s.text),11,Qe)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("span",{role:"button",class:e.normalizeClass(["svc-action-button",t()]),onClick:o,title:s.title},[e.createTextVNode(e.toDisplayString(s.text),1)],10,He)),[[e.unref(l.key2ClickDirective)]])],64)),s.iconName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(t()),title:s.title},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:s.iconName,size:"auto"},null,8,["iconName"])],10,Oe)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("span",{role:"button",onClick:o,class:e.normalizeClass(t()),title:s.title},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:s.iconName,size:"auto"},null,8,["iconName"])],10,Ge)),[[e.unref(l.key2ClickDirective)]])],64)):e.createCommentVNode("",!0)],64))}}),je=["disabled","title","aria-checked","aria-expanded","role"],Je={key:0,class:"svc-switcher__title"},Ze={inheritAttrs:!1},Xe=e.defineComponent({...Ze,__name:"Switcher",props:{item:{}},setup(i){const n=i;return l.useBase(()=>n.item),(o,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(o.item.getActionBarItemCss()),type:"button",onClick:t[0]||(t[0]=s=>{o.item.action(o.item,!!s.pointerType)}),onKeyup:t[1]||(t[1]=s=>{s.stopPropagation()}),disabled:o.item.disabled,title:o.item.tooltip||o.item.title,"aria-checked":o.item.ariaChecked,"aria-expanded":o.item.ariaExpanded,role:o.item.ariaRole},[e.createElementVNode("div",{class:e.normalizeClass(o.item.getSwitcherIconCss())},t[2]||(t[2]=[e.createElementVNode("div",{class:"svc-switcher__icon-thumb"},null,-1)]),2),o.item.hasTitle?(e.openBlock(),e.createElementBlock("span",Je,e.toDisplayString(o.item.title),1)):e.createCommentVNode("",!0)],42,je)),[[e.unref(l.key2ClickDirective),{processEsc:!1,disableTabStop:o.item.disableTabStop}]])}}),Ye={key:0,class:"svd-simulator-content"},Ue={class:"svd-simulator-content"},xe=e.defineComponent({__name:"Simulator",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=e.computed(()=>n.model.simulatorFrame),t=()=>{n.model.device!=="desktop"&&n.model.activateZoom()},s=()=>{n.model.device!=="desktop"&&n.model.deactivateZoom()};return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.model.getRootCss()),onKeydown:r[0]||(r[0]=c=>a.model.tryToZoom(void 0,c)),onMouseover:r[1]||(r[1]=c=>t()),onMouseout:r[2]||(r[2]=c=>s())},[a.model.hasFrame?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ye,[e.createVNode(e.unref(l.SvComponent),{is:"survey-widget",model:a.model.survey},null,8,["model"])])),a.model.hasFrame?(e.openBlock(),e.createElementBlock("div",{key:1,class:"svd-simulator-wrapper",id:"svd-simulator-wrapper",style:e.normalizeStyle({width:o.value.frameWidth+"px",height:o.value.frameHeight+"px"})},[e.createElementVNode("div",{class:"svd-simulator",style:e.normalizeStyle({width:o.value.deviceWidth+"px",height:o.value.deviceHeight+"px",transform:"scale("+o.value.scale+") translate(-50%, -50%)"})},[e.createElementVNode("div",Ue,[e.createVNode(e.unref(l.SvComponent),{is:"survey-widget",model:a.model.survey},null,8,["model"])])],4)],4)):e.createCommentVNode("",!0)],34))}}),ve={class:"svc-surface-placeholder"},eo={class:"svc-surface-placeholder__text"},oo={class:"svc-surface-placeholder__title"},to={class:"svc-surface-placeholder__description"},q=e.defineComponent({__name:"SurfacePlaceholder",props:{name:{},placeholderTitleText:{},placeholderDescriptionText:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",{class:e.normalizeClass(["svc-surface-placeholder__image","svc-surface-placeholder__image--"+n.name])},null,2),e.createElementVNode("div",eo,[e.createElementVNode("div",oo,e.toDisplayString(n.placeholderTitleText),1),e.createElementVNode("div",to,e.toDisplayString(n.placeholderDescriptionText),1)])]))}}),no={key:0,class:"svc-test-tab--empty"},so={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},lo=e.defineComponent({__name:"Test",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-creator-tab__content svc-test-tab__content",{"svc-creator-tab__content--with-toolbar":o.model.isPageToolbarVisible}])},[o.model.survey.isEmpty?(e.openBlock(),e.createElementBlock("div",no,[e.createVNode(q,{name:"preview",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])])):e.createCommentVNode("",!0),o.model.survey.isEmpty?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"svc-plugin-tab__content",onScroll:t[0]||(t[0]=s=>o.model.onScroll())},[e.createVNode(e.unref(l.SvComponent),{is:"survey-simulator",model:o.model.simulator},null,8,["model"]),o.model.showResults?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-results",survey:o.model.survey},null,8,["survey"])):e.createCommentVNode("",!0)],32)),o.model.isPageToolbarVisible?(e.openBlock(),e.createElementBlock("div",so,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),ao={class:"svc-btn__text"},ro=e.defineComponent({inheritAttrs:!1,__name:"TestAgain",props:{model:{}},setup(i){const n=i,o=e.computed(()=>n.model.testAgainAction);return l.useBase(()=>o.value),(t,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:"svc-preview__test-again svc-btn",onClick:s[0]||(s[0]=a=>o.value.action())},[e.createElementVNode("span",ao,e.toDisplayString(o.value.title),1)])),[[e.unref(l.key2ClickDirective)]])}});function b(i,n,o){const t=e.shallowRef(),s=e.watch(n.map(a=>()=>a()),()=>{t.value=i()},{immediate:!0});return l.useBase(()=>t.value,void 0,o),e.onBeforeUnmount(()=>{s()}),t}const io={key:0,class:"svd-test-results"},co={class:"svd-test-results__content"},mo={class:"svd-test-results__header"},po={class:"svd-test-results__header-text"},ko={class:"svd-test-results__header-types"},fo={class:"svd-test-results__text svd-light-bg-color"},Co={class:"svd-test-results__table svd-light-bg-color"},go={class:"svd-light-background-color"},_o={class:"svd-dark-border-color"},Bo={class:"svd-dark-border-color"},bo=e.defineComponent({__name:"SurveyResults",props:{survey:{}},setup(i){const n=i,o=b(()=>n.survey?new B.SurveyResultsModel(n.survey):void 0,[()=>n.survey]);return(t,s)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",io,[e.createElementVNode("div",co,[e.createElementVNode("div",mo,[e.createElementVNode("div",po,e.toDisplayString(e.unref(o).surveyResultsText),1),e.createElementVNode("div",ko,[e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:e.unref(o).surveyResultsTableText,click:e.unref(o).selectTableClick,disabled:!1,selected:e.unref(o).isTableSelected},null,8,["text","click","selected"]),e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:e.unref(o).surveyResultsJsonText,click:e.unref(o).selectJsonClick,disabled:!1,selected:e.unref(o).isJsonSelected},null,8,["text","click","selected"])])]),e.withDirectives(e.createElementVNode("div",fo,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o).resultText),1)],512),[[e.vShow,e.unref(o).resultViewType==="text"]]),e.withDirectives(e.createElementVNode("div",Co,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",go,[e.createElementVNode("th",_o,e.toDisplayString(e.unref(o).resultsTitle),1),e.createElementVNode("th",Bo,e.toDisplayString(e.unref(o).resultsDisplayValue),1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).resultData,(a,r)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"survey-results-table-row",model:a,key:r},null,8,["model"]))),128))])])],512),[[e.vShow,e.unref(o).resultViewType==="table"]])])])):e.createCommentVNode("",!0)}}),No={key:2},Eo=e.defineComponent({__name:"SurveyResultsRow",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("tr",{onClick:t[0]||(t[0]=(...s)=>o.model.toggle&&o.model.toggle(...s))},[e.createElementVNode("td",{class:"svd-dark-border-color",style:e.normalizeStyle({paddingLeft:o.model.textMargin})},[o.model.isNode?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["svd-test-results__marker",{"svd-test-results__marker--expanded":!o.model.collapsed}]),style:e.normalizeStyle({left:o.model.markerMargin})},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-expand_16x16",size:16})],6)):e.createCommentVNode("",!0),o.model.question?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:1,is:"survey-string",locString:o.model.question.locTitle},null,8,["locString"])):(e.openBlock(),e.createElementBlock("span",No,e.toDisplayString(o.model.title),1))],4),e.createElementVNode("td",{class:e.normalizeClass({"svd-test-results__node-value":o.model.isNode,"svd-dark-border-color":!o.model.isNode})},e.toDisplayString(o.model.getString(o.model.displayValue)),3)])),[[e.unref(l.key2ClickDirective)]]),o.model.isNode&&!o.model.collapsed?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.model.data,(s,a)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"survey-results-table-row",model:s,key:a+1},null,8,["model"]))),128)):e.createCommentVNode("",!0)],64))}}),ho={class:"svc-creator-tab__content"},wo={class:"svc-json-editor-tab__content"},So={class:"svc-json-editor-tab__errros_list"},yo=e.defineComponent({__name:"JsonEditorAce",props:{model:{}},setup(i){const n=i,o=e.ref();return l.useBase(()=>n.model),e.onMounted(()=>n.model.init(window.ace.edit(o.value))),(t,s)=>(e.openBlock(),e.createElementBlock("div",ho,[e.createElementVNode("div",wo,[e.createElementVNode("div",{class:"svc-json-editor-tab__ace-editor",ref_key:"inputEl",ref:o},null,512),e.withDirectives(e.createElementVNode("div",So,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:t.model.errorList},null,8,["model"])],512),[[e.vShow,t.model.hasErrors]])])]))}}),qo={class:"svc-creator-tab__content"},Do={class:"svc-json-editor-tab__content"},uo=["aria-label","disabled"],$o={class:"svc-json-editor-tab__errros_list"},Vo=e.defineComponent({__name:"JsonEditorTextArea",props:{model:{}},setup(i){const n=i,o=e.ref(),t=n.model;return t.canShowErrors=!1,l.useBase(()=>n.model),e.onMounted(()=>{const s=n.model;s.textElement=o.value}),(s,a)=>(e.openBlock(),e.createElementBlock("div",qo,[e.createElementVNode("div",Do,[e.withDirectives(e.createElementVNode("textarea",{class:"svc-json-editor-tab__content-area","aria-label":e.unref(t).ariaLabel,disabled:e.unref(t).readOnly,"onUpdate:modelValue":a[0]||(a[0]=r=>e.unref(t).text=r),onKeydown:a[1]||(a[1]=r=>e.unref(t).checkKey(e.unref(t),r)),ref_key:"inputEl",ref:o}," ",40,uo),[[e.vModelText,e.unref(t).text]]),e.withDirectives(e.createElementVNode("div",$o,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:e.unref(t).errorList},null,8,["model"])],512),[[e.vShow,e.unref(t).hasErrors]])])]))}}),To={class:"svc-json-error__container"},Mo={class:"svc-json-error__title"},zo=["title","aria-label"],Po=e.defineComponent({__name:"JsonEditorErrorItem",props:{item:{}},setup(i){const n=i;l.useBase(()=>n.item);const o=t=>{t.stopPropagation(),n.item.data.fixError()};return(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.item.iconName,size:t.item.iconSize,class:e.normalizeClass("svc-json-error__icon")},null,8,["iconName","size"]),e.createElementVNode("div",To,[e.createElementVNode("div",Mo,[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.item.locTitle},null,8,["locString"])]),t.item.data.showFixButton?e.withDirectives((e.openBlock(),e.createElementBlock("button",{key:0,type:"button",onClick:o,title:t.item.data.fixButtonTitle,"aria-label":t.item.data.fixButtonTitle,class:"svc-json-error__fix-button"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.item.data.fixButtonIcon,size:"auto"},null,8,["iconName"])],8,zo)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)])],64))}}),Io={class:"svc-btn__text"},Ro=e.defineComponent({__name:"LogicAddButton",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=t=>{t.stopPropagation(),n.model.action()};return(t,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:e.normalizeClass(["svc-logic-tab__content-action svc-btn",{"svc-logic-tab__content-action--disabled":t.model.enabled!==void 0&&!t.model.enabled}]),onClick:o},[e.createElementVNode("span",Io,e.toDisplayString(t.model.title),1)],2)),[[e.unref(l.key2ClickDirective)]])}}),Fo={class:"svc-creator-tab__content"},Lo={key:0,class:"svc-logic-tab__content-empty"},Ao=e.defineComponent({__name:"Logic",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("div",{class:e.normalizeClass(["svc-plugin-tab__content svc-logic-tab__content",{"svc-logic-tab--empty":!o.model.hasItems}])},[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.itemsSurvey},null,8,["model"]),o.model.hasItems?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Lo,[e.createVNode(q,{name:"logic",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])])),o.model.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ro,{key:1,model:o.model.addNewButton},null,8,["model"]))],2)]))}}),Ko=["id","required","tabindex","disabled","role","aria-required","aria-label","aria-invalid","aria-describedby"],Qo=["id"];y.RendererFactory.Instance.registerRenderer("dropdown","logicoperator","sv-logic-operator");const Ho=e.defineComponent({__name:"LogicOperator",props:{question:{}},setup(i){const n=i,o=e.ref(),t=e.computed(()=>{var c;return(c=n.question.dropdownListModel)!=null?c:new y.DropdownListModel(n.question)});l.useQuestion(n,o,c=>{B.initLogicOperator(c)});const s=c=>{var d;(d=t.value)==null||d.onClick(c)},a=c=>{var d;(d=t.value)==null||d.onClear(c)},r=c=>{var d;(d=t.value)==null||d.keyHandler(c)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(c.question.cssClasses.selectWrapper)},[c.question.isReadOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(c.question.getControlClass()),onClick:s,onKeyup:r,id:c.question.inputId,required:c.question.isRequired,tabindex:c.question.isInputReadOnly?void 0:0,disabled:c.question.isInputReadOnly,role:c.question.ariaRole,"aria-required":c.question.ariaRequired,"aria-label":c.question.ariaLabel,"aria-invalid":c.question.ariaInvalid,"aria-describedby":c.question.ariaDescribedBy},[e.createElementVNode("div",{class:e.normalizeClass(c.question.cssClasses.controlValue)},[c.question.locReadOnlyText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.locReadOnlyText},null,8,["locString"])):e.createCommentVNode("",!0)],2),c.question.allowClear&&c.question.cssClasses.cleanButtonIconId?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(c.question.cssClasses.cleanButton),onClick:a},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:e.normalizeClass(c.question.cssClasses.cleanButtonSvg),iconName:c.question.cssClasses.cleanButtonIconId,size:"auto",title:c.question.clearCaption},null,8,["class","iconName","title"])],2)),[[e.vShow,!c.question.isEmpty()]]):e.createCommentVNode("",!0)],42,Ko),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:c.question.popupModel},null,8,["model"])],64)),c.question.isReadOnly?(e.openBlock(),e.createElementBlock("div",{key:1,disabled:"",class:e.normalizeClass(c.question.getControlClass()),id:c.question.inputId},[c.question.locReadOnlyText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.locReadOnlyText},null,8,["locString"])):e.createCommentVNode("",!0)],10,Qo)):e.createCommentVNode("",!0)],2))}}),Oo=e.defineComponent({__name:"EmbeddedSurvey",props:{question:{}},setup(i){const n=i,o=e.ref();l.useQuestion(n,o);const t=e.computed(()=>n.question.embeddedSurvey);return(s,a)=>!!s.question&&!!t.value&&t.value.currentPage?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-page",page:t.value.currentPage,survey:t.value},null,8,["page","survey"])):e.createCommentVNode("",!0)}}),Go=e.defineComponent({inheritAttrs:!1,__name:"LinkValue",props:{question:{}},setup(i){const n=i,o=e.ref(),t=B.editorLocalization.getString("pe.clear");return l.useQuestion(n,o),(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:s.question.linkValueText,click:s.question.doLinkClick.bind(s.question),selected:s.question.isSelected,disabled:!s.question.isClickable,classes:s.question.linkSetButtonCssClasses,title:s.question.tooltip,iconName:s.question.iconName},null,8,["text","click","selected","disabled","classes","title","iconName"]),!s.question.isReadOnly&&s.question.showClear?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-action-button",text:e.unref(t),click:s.question.doClearClick.bind(s.question),selected:s.question.isSelected,disabled:!1,classes:s.question.linkClearButtonCssClasses},null,8,["text","click","selected","classes"])):e.createCommentVNode("",!0)],64))}}),Wo={key:1,class:"st-content"},jo={class:"svc-flex-column st-strings-wrapper"},Jo={class:"svc-flex-row st-strings-header"},Zo={class:"svc-flex-row svc-plugin-tab__content st-strings"},Xo=e.defineComponent({__name:"Translation",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-creator-tab__content svc-translation-tab",o.model.isEmpty?"svc-translation-tab--empty":""])},[o.model.isEmpty?(e.openBlock(),e.createBlock(q,{key:0,name:"translation",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])):e.createCommentVNode("",!0),o.model.isEmpty?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wo,[e.createElementVNode("div",jo,[e.createElementVNode("div",Jo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsHeaderSurvey},null,8,["model"])]),e.createElementVNode("div",Zo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsSurvey},null,8,["model"])])])]))],2))}}),Yo=(i,n)=>{const o=i.__vccOpts||i;for(const[t,s]of n)o[t]=s;return o},Uo={},xo={class:"sd-translation-line-skeleton"};function vo(i,n){return e.openBlock(),e.createElementBlock("div",xo)}const et=Yo(Uo,[["render",vo]]),ot=e.defineComponent({__name:"TranslateFromAction",props:{item:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.item.data.containerCss)},[e.createElementVNode("span",{class:e.normalizeClass(n.item.data.additionalTitleCss)},e.toDisplayString(n.item.data.additionalTitle),3),e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar-item-dropdown",item:n.item},null,8,["item"])],2))}}),tt={key:0,class:"svc-test-tab--empty"},nt={key:1,class:"svc-plugin-tab__content"},st={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},lt=e.defineComponent({__name:"Theme",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-creator-tab__content svc-test-tab__content",{"svc-creator-tab__content--with-toolbar":o.model.isPageToolbarVisible}])},[o.model.survey.isEmpty?(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(q,{name:"theme",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])])):e.createCommentVNode("",!0),o.model.survey.isEmpty?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(e.unref(l.SvComponent),{is:"survey-simulator",model:o.model.simulator},null,8,["model"]),o.model.showResults?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-results",survey:o.model.survey},null,8,["survey"])):e.createCommentVNode("",!0)])),o.model.isPageToolbarVisible?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),at=["disabled","value"],rt=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],it=e.defineComponent({__name:"Color",props:{question:{}},setup(i){const n=i;return l.useQuestion(n,e.ref()),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.question.cssClasses.root),onKeydown:t[5]||(t[5]=(...s)=>o.question.onKeyDown&&o.question.onKeyDown(...s))},[e.createElementVNode("label",{class:e.normalizeClass(o.question.getSwatchCss()),style:e.normalizeStyle(o.question.getSwatchStyle())},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.question.cssClasses.swatchIcon,size:"auto"},null,8,["iconName"]),e.createElementVNode("input",{type:"color",disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.colorInput),value:o.question.renderedColorValue,tabindex:"-1",onChange:t[0]||(t[0]=(...s)=>o.question.onColorInputChange&&o.question.onColorInputChange(...s))},null,42,at)],6),e.createElementVNode("input",{autocomplete:"off",disabled:o.question.isInputReadOnly,id:o.question.inputId,placeholder:o.question.renderedPlaceholder,"aria-required":o.question.ariaRequired,"aria-label":o.question.ariaLabel,"aria-invalid":o.question.ariaInvalid,"aria-describedby":o.question.ariaDescribedBy,onChange:t[1]||(t[1]=(...s)=>o.question.onChange&&o.question.onChange(...s)),onKeyup:t[2]||(t[2]=(...s)=>o.question.onKeyUp&&o.question.onKeyUp(...s)),onBlur:t[3]||(t[3]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onBeforeinput:t[4]||(t[4]=(...s)=>o.question.onBeforeInput&&o.question.onBeforeInput(...s)),value:o.question.renderedValue,class:e.normalizeClass(o.question.cssClasses.control)},null,42,rt),o.question.showDropdownAction?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar-item",item:o.question.dropdownAction},null,8,["item"]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:o.question.dropdownAction.popupModel},null,8,["model"])],64)):e.createCommentVNode("",!0)],34))}}),ct=e.defineComponent({__name:"ColorItem",props:{item:{}},setup(i){const n=i;l.useBase(()=>n.item);const o=()=>({backgroundColor:n.item.value});return(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",{class:"spg-color-editor__color-swatch",style:e.normalizeStyle(o())},null,4),e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.item.locTitle},null,8,["locString"])],64))}}),dt=["disabled","value","placeholder"],mt=["disabled","id","aria-required","aria-label","aria-invalid","aria-describedby","title","accept"],pt=["disabled"],kt=["for","aria-label"],ft=e.defineComponent({__name:"File",props:{question:{}},setup(i){const n=e.ref(),o=i;return l.useQuestion(o,n),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.question.cssClasses.root),onDragenter:s[5]||(s[5]=(...a)=>t.question.onDragEnter&&t.question.onDragEnter(...a)),onDragover:s[6]||(s[6]=(...a)=>t.question.onDragOver&&t.question.onDragOver(...a)),onDrop:s[7]||(s[7]=(...a)=>t.question.onDrop&&t.question.onDrop(...a)),onDragleave:s[8]||(s[8]=(...a)=>t.question.onDragLeave&&t.question.onDragLeave(...a)),onKeydown:s[9]||(s[9]=(...a)=>t.question.onKeyDown&&t.question.onKeyDown(...a)),ref_key:"root",ref:n},[e.createElementVNode("input",{type:"text",disabled:t.question.isInputReadOnly,class:e.normalizeClass(t.question.cssClasses.control),value:t.question.renderedValue||"",onChange:s[0]||(s[0]=(...a)=>t.question.onInputChange&&t.question.onInputChange(...a)),onBlur:s[1]||(s[1]=(...a)=>t.question.onInputBlur&&t.question.onInputBlur(...a)),placeholder:t.question.renderedPlaceholder},null,42,dt),e.createElementVNode("input",{type:"file",disabled:t.question.isInputReadOnly,class:e.normalizeClass(t.question.cssClasses.fileInput),id:t.question.inputId,"aria-required":t.question.ariaRequired,"aria-label":t.question.ariaLabel,"aria-invalid":t.question.ariaInvalid,"aria-describedby":t.question.ariaDescribedBy,multiple:!1,title:t.question.inputTitle,tabindex:-1,accept:t.question.acceptedTypes,onChange:s[2]||(s[2]=(...a)=>t.question.onFileInputChange&&t.question.onFileInputChange(...a))},null,42,mt),e.createElementVNode("div",{class:e.normalizeClass(t.question.cssClasses.buttonsContainer)},[e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(t.question.cssClasses.clearButton),disabled:t.question.getIsClearButtonDisabled(),onClick:s[3]||(s[3]=(...a)=>t.question.doClean&&t.question.doClean(...a))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.question.cssClasses.clearButtonIcon,size:"auto",title:t.question.clearButtonCaption},null,8,["iconName","title"])],10,pt)),[[e.unref(l.key2ClickDirective)]]),e.withDirectives((e.openBlock(),e.createElementBlock("label",{role:"button",class:e.normalizeClass(t.question.getChooseButtonCss()),for:t.question.inputId,"aria-label":t.question.chooseButtonCaption,onClick:s[4]||(s[4]=(...a)=>t.question.chooseFiles&&t.question.chooseFiles(...a))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.question.cssClasses.chooseButtonIcon,size:"auto",title:t.question.chooseButtonCaption},null,8,["iconName","title"])],10,kt)),[[e.unref(l.key2ClickDirective)]])],2)],34))}}),Ct=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],gt=["disabled"],_t=["disabled"],Bt=e.defineComponent({__name:"SpinEditor",props:{question:{}},setup(i){const n=i;return l.useQuestion(n,e.ref()),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.question.cssClasses.root),onKeydown:t[16]||(t[16]=(...s)=>o.question.onKeyDown&&o.question.onKeyDown(...s))},[e.createElementVNode("input",{autocomplete:"off",disabled:o.question.isInputReadOnly,id:o.question.inputId,placeholder:o.question.renderedPlaceholder,"aria-required":o.question.ariaRequired,"aria-label":o.question.ariaLabel,"aria-invalid":o.question.ariaInvalid,"aria-describedby":o.question.ariaDescribedBy,onChange:t[0]||(t[0]=(...s)=>o.question.onChange&&o.question.onChange(...s)),onKeydown:t[1]||(t[1]=(...s)=>o.question.onInputKeyDown&&o.question.onInputKeyDown(...s)),onKeyup:t[2]||(t[2]=(...s)=>o.question.onKeyUp&&o.question.onKeyUp(...s)),onBlur:t[3]||(t[3]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[4]||(t[4]=(...s)=>o.question.onFocus&&o.question.onFocus(...s)),onBeforeinput:t[5]||(t[5]=(...s)=>o.question.onBeforeInput&&o.question.onBeforeInput(...s)),value:o.question.renderedValue,class:e.normalizeClass(o.question.cssClasses.control)},null,42,Ct),e.createElementVNode("span",{class:e.normalizeClass(o.question.cssClasses.buttonsContainer)},[e.createElementVNode("button",{disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.arrowButton),onMousedown:t[6]||(t[6]=(...s)=>o.question.onDownButtonMouseDown&&o.question.onDownButtonMouseDown(...s)),onMouseup:t[7]||(t[7]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[8]||(t[8]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[9]||(t[9]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[10]||(t[10]=(...s)=>o.question.onFocus&&o.question.onFocus(...s)),tabindex:"-1"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.question.cssClasses.decreaseButtonIcon,size:"auto"},null,8,["iconName"])],42,gt),e.createElementVNode("button",{disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.arrowButton),onMousedown:t[11]||(t[11]=(...s)=>o.question.onUpButtonMouseDown&&o.question.onUpButtonMouseDown(...s)),onMouseup:t[12]||(t[12]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[13]||(t[13]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[14]||(t[14]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[15]||(t[15]=(...s)=>o.question.onFocus&&o.question.onFocus(...s)),tabindex:"-1"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.question.cssClasses.increaseButtonIcon,size:"auto"},null,8,["iconName"])],42,_t)],2)],34))}}),bt=["disabled","title"],M=e.defineComponent({__name:"TextWithReset",props:{question:{}},setup(i){const n=i,o=()=>"survey-"+n.question.wrappedQuestionTemplate;return l.useQuestion(n,e.ref()),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.question.getRootClass())},[e.createVNode(e.unref(l.SvComponent),{is:o(),question:t.question},null,8,["is","question"]),e.createElementVNode("button",{class:e.normalizeClass(t.question.cssClasses.resetButton),disabled:t.question.resetValueAdorner.isDisabled,onClick:s[0]||(s[0]=(...a)=>t.question.resetValueAdorner.resetValue&&t.question.resetValueAdorner.resetValue(...a)),title:t.question.resetValueAdorner.caption},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.question.cssClasses.resetButtonIcon,size:"auto"},null,8,["iconName"])],10,bt)],2))}}),Nt=["aria-required","aria-label","aria-invalid","aria-errormessage"],Et={class:"spg-boolean-switch__caption"},ht={class:"spg-boolean-switch__title"};y.RendererFactory.Instance.registerRenderer("boolean","switch","sv-boolean-switch");const wt=e.defineComponent({inheritAttrs:!1,__name:"BooleanSwitch",props:{question:{}},setup(i){const n=i,o=e.ref(null);return l.useQuestion(n,o),(t,s)=>{const a=e.resolveDirective("key2click");return e.openBlock(),e.createElementBlock("div",{class:"spg-boolean-switch",role:"checkbox","aria-required":t.question.ariaRequired,"aria-label":t.question.ariaLabel,"aria-invalid":t.question.ariaInvalid,"aria-errormessage":t.question.ariaErrormessage,onClick:s[0]||(s[0]=r=>t.question.value=!t.question.value)},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["spg-boolean-switch__button",t.question.value?"spg-boolean-switch__button--checked":""]),tabindex:"0"},s[1]||(s[1]=[e.createElementVNode("div",{class:"spg-boolean-switch__thumb"},[e.createElementVNode("div",{class:"spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left"})],-1),e.createElementVNode("div",{class:"spg-boolean-switch__thumb"},[e.createElementVNode("div",{class:"spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right"})],-1)]),2)),[[a,{disableTabStop:!0}]]),e.createElementVNode("div",Et,[e.createElementVNode("div",ht,[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.question.locTitle},null,8,["locString"])])])],8,Nt)}}}),St={class:"svc-string-editor__content"},yt={class:"svc-string-editor__input"},qt=["textContent","aria-placeholder","contenteditable"],Dt=["aria-placeholder","contenteditable","innerHTML"],ut={key:0,class:"svc-string-editor__error"},$t=e.defineComponent({__name:"StringEditor",props:{locString:{}},setup(i){const n=i,o=e.computed(()=>n.locString.locStr),t=e.computed(()=>n.locString.creator),s=e.ref(),a=e.ref(),r=b(()=>{const p=new B.StringEditorViewModelBase(o.value,t.value);return p.setLocString(o.value),p.blurEditor=()=>{s.value&&(s.value.blur(),s.value.spellcheck=!1)},p.getEditorElement=()=>s.value,setTimeout(()=>p.afterRender()),p},[()=>t.value,()=>o.value],p=>{p&&(p.blurEditor=void 0,p.getEditorElement=void 0,p.dispose())}),c=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.errorText}),d=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.className(o.value.renderedHtml)}),m=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.placeholder}),f=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.contentEditable}),S=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.characterCounter}),N=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.showCharacterCounter}),E=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.getCharacterCounterClass}),u=p=>{var k,_;return s.value&&(s.value.spellcheck=!1),o.value.__isEditing=!1,(k=r.value)==null||k.onBlur(p),(_=r.value)==null?void 0:_.errorText},w=p=>{var k;(k=r.value)==null||k.onFocus(p)},js=p=>{var k;(k=r.value)==null||k.onPaste(p)},R=p=>{var k,_;(k=s.value)==null||k.focus(),o.value.__isEditing=!0,(_=r.value)==null||_.onClick(p)},$=()=>{a.value=o.value.renderedHtml},Js=e.watch(()=>o.value,(p,k)=>{k&&p.onStringChanged.remove($),p&&(p.onStringChanged.add($),$())},{immediate:!0});return e.onMounted(()=>{var p;o.value.__isEditing&&((p=s.value)==null||p.focus())}),e.onUnmounted(()=>{Js(),o.value.onStringChanged.remove($)}),(p,k)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(d.value)},[e.createElementVNode("span",St,[k[11]||(k[11]=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--hover"},null,-1)),k[12]||(k[12]=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--focus"},null,-1)),e.createElementVNode("span",yt,[o.value.hasHtml?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,role:"textbox",class:"sv-string-editor",spellcheck:"false",onFocus:w,onPaste:js,onBlur:u,onInput:k[0]||(k[0]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onInput)&&((g=e.unref(r))==null?void 0:g.onInput(..._))}),onKeydown:k[1]||(k[1]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyDown)&&((g=e.unref(r))==null?void 0:g.onKeyDown(..._))}),onKeyup:k[2]||(k[2]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyUp)&&((g=e.unref(r))==null?void 0:g.onKeyUp(..._))}),onCompositionstart:k[3]||(k[3]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionStart)&&((g=e.unref(r))==null?void 0:g.onCompositionStart(..._))}),onCompositionend:k[4]||(k[4]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionEnd)&&((g=e.unref(r))==null?void 0:g.onCompositionEnd(..._))}),onMouseup:k[5]||(k[5]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onMouseUp)&&((g=e.unref(r))==null?void 0:g.onMouseUp(..._))}),onClick:R,textContent:a.value,"aria-placeholder":m.value,contenteditable:f.value,ref_key:"root",ref:s},null,40,qt)),o.value.hasHtml?(e.openBlock(),e.createElementBlock("span",{key:1,role:"textbox",class:"sv-string-editor sv-string-editor--html",spellcheck:"false",onFocus:w,onBlur:u,onKeydown:k[6]||(k[6]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyDown)&&((g=e.unref(r))==null?void 0:g.onKeyDown(..._))}),onKeyup:k[7]||(k[7]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyUp)&&((g=e.unref(r))==null?void 0:g.onKeyUp(..._))}),onCompositionstart:k[8]||(k[8]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionStart)&&((g=e.unref(r))==null?void 0:g.onCompositionStart(..._))}),onCompositionend:k[9]||(k[9]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionEnd)&&((g=e.unref(r))==null?void 0:g.onCompositionEnd(..._))}),onMouseup:k[10]||(k[10]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onMouseUp)&&((g=e.unref(r))==null?void 0:g.onMouseUp(..._))}),onClick:R,"aria-placeholder":m.value,contenteditable:f.value,innerHTML:a.value,ref_key:"root",ref:s},null,40,Dt)):e.createCommentVNode("",!0),N.value?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:2,is:"sv-character-counter",counter:S.value,remainingCharacterCounter:E.value},null,8,["counter","remainingCharacterCounter"])):e.createCommentVNode("",!0)])]),c.value?(e.openBlock(),e.createElementBlock("span",ut,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)],2))}}),Vt={key:0,class:"svc-toolbox__search-container"},Tt={key:1,class:"svc-toolbox__placeholder"},Mt={key:1,class:"svc-toolbox__category"},zt=e.defineComponent({__name:"AdaptiveToolbox",props:{model:{}},setup(i){const n=i,o=e.computed(()=>n.model.toolbox),t=e.ref();l.useBase(()=>o.value);let s;e.onMounted(()=>{o.value.setRootElement(t.value),s=new y.VerticalResponsivityManager(o.value.containerElement,o.value,o.value.itemSelector)}),e.onUnmounted(()=>{s==null||s.dispose(),o.value.setRootElement(void 0)});const a=e.computed(()=>o.value.renderedActions);return(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value.classNames),ref_key:"root",ref:t},[e.createElementVNode("div",{onFocusout:c[0]||(c[0]=d=>o.value.focusOut(d)),class:"svc-toolbox__panel"},[o.value.showSearch?(e.openBlock(),e.createElementBlock("div",Vt,[o.value.isCompactRendered?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-tool",creator:r.model,key:"searchitem",item:o.value.searchItem,parentModel:o.value,isCompact:o.value.isCompactRendered},null,8,["creator","item","parentModel","isCompact"])):e.createCommentVNode("",!0),e.createVNode(e.unref(l.SvComponent),{is:"svc-search",model:o.value.searchManager},null,8,["model"]),c[1]||(c[1]=e.createElementVNode("div",{class:"svc-toolbox__category-separator svc-toolbox__category-separator--search"},null,-1))])):e.createCommentVNode("",!0),o.value.showPlaceholder?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(o.value.toolboxNoResultsFound),1)):e.createCommentVNode("",!0),e.createVNode(D,null,{default:e.withCtx(()=>[o.value.showInSingleCategory?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.value.categories,(d,m)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-category",key:m,category:d,toolbox:o.value},null,8,["category","toolbox"]))),128)),o.value.showInSingleCategory?(e.openBlock(),e.createElementBlock("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(d,m)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:m,is:"svc-toolbox-tool",creator:r.model,item:d,parentModel:o.value,isCompact:o.value.isCompactRendered},null,8,["creator","item","parentModel","isCompact"]))),128))])):e.createCommentVNode("",!0)]),_:1})],32)],2))}}),Pt={key:0,class:"svc-toolbox__category-separator"},It=e.defineComponent({__name:"ToolboxTool",props:{creator:{},item:{},parentModel:{},isCompact:{type:Boolean}},setup(i){const n=i,o=b(()=>new B.ToolboxToolViewModel(n.item,n.creator,n.parentModel),[()=>n.creator,()=>n.item],t=>{t.dispose()});return l.useBase(()=>n.item),(t,s)=>{var a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.item.css)},[t.item.needSeparator&&!t.creator.toolbox.showCategoryTitles?(e.openBlock(),e.createElementBlock("div",Pt)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"svc-toolbox__tool-content sv-action__content",onPointerdown:s[0]||(s[0]=(...r)=>{var c,d;return((c=e.unref(o))==null?void 0:c.onPointerDown)&&((d=e.unref(o))==null?void 0:d.onPointerDown(...r))})},[e.createVNode(e.unref(l.SvComponent),{viewModel:e.unref(o),is:(a=e.unref(o))==null?void 0:a.itemComponent,item:t.item,creator:t.creator,isCompact:t.isCompact},null,8,["viewModel","is","item","creator","isCompact"])],32)],2)}}}),Rt=["aria-label","title"],Ft={class:"svc-toolbox__item-container"},Lt={key:0,class:"svc-toolbox__item-title"},At=e.defineComponent({__name:"ToolboxItem",props:{creator:{},item:{},isCompact:{type:Boolean},viewModel:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-toolbox__item",n.item.renderedCss]),role:"button","aria-label":n.item.tooltip,title:n.item.tooltip,onClick:o[0]||(o[0]=t=>n.viewModel.click(t))},[e.createElementVNode("span",Ft,[n.item.iconName?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,title:n.item.tooltip||n.item.title,is:"sv-svg-icon",iconName:n.item.iconName,size:"auto",class:"svc-toolbox__item-icon"},null,8,["title","iconName"])):e.createCommentVNode("",!0)]),n.isCompact?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Lt,e.toDisplayString(n.item.title),1))],10,Rt)),[[e.unref(l.key2ClickDirective)]]),n.isCompact?(e.openBlock(),e.createElementBlock("span",{key:0,class:"svc-toolbox__item-banner",onClick:o[1]||(o[1]=t=>n.viewModel.click(t))},[e.createVNode(e.unref(l.SvComponent),{title:n.item.tooltip||n.item.title,is:"sv-svg-icon",iconName:n.item.iconName,size:24,class:"svc-toolbox__item-icon"},null,8,["title","iconName"]),e.createElementVNode("span",null,e.toDisplayString(n.item.title),1)])):e.createCommentVNode("",!0)],64))}}),Kt=e.defineComponent({__name:"ToolboxItemGroup",props:{creator:{},item:{},isCompact:{type:Boolean},viewModel:{}},setup(i){const n=i,o=s=>{n.viewModel.onMouseOver(n.item,s)},t=s=>{n.viewModel.onMouseLeave(n.item,s)};return(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(l.SvComponent),{is:"svc-toolbox-item",viewModel:s.viewModel,item:s.item,creator:s.creator,isCompact:s.isCompact},null,8,["viewModel","item","creator","isCompact"]),e.createElementVNode("div",{class:"svc-toolbox__item-submenu-button",onMouseover:o,onMouseleave:t},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:s.item.subitemsButtonIcon,size:"auto"},null,8,["iconName"]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:s.item.popupModel},null,8,["model"])],32)],64))}}),Qt={class:"svc-toolbox__category-title"},Ht={key:0,class:"svc-toolbox__category-header__controls"},Ot={className:"svc-toolbox__category-header-wrapper"},Gt=e.defineComponent({__name:"ToolboxCategory",props:{category:{},toolbox:{}},setup(i){const n=i;return l.useBase(()=>n.category),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-toolbox__category",{"svc-toolbox__category--collapsed":o.category.collapsed,"svc-toolbox__category--empty":o.category.empty}])},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-toolbox__category-header",{"svc-toolbox__category-header--collapsed":o.toolbox.canCollapseCategories}]),onClick:t[0]||(t[0]=s=>o.category.toggleState())},[e.createElementVNode("span",Qt,e.toDisplayString(o.category.title),1),o.toolbox.canCollapseCategories?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("div",Ot,[e.withDirectives(e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-arrow-down",class:"svc-toolbox__category-header__button svc-string-editor__button--expand",size:"auto"},null,512),[[e.vShow,o.category.collapsed]])]),e.withDirectives(e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-arrow-up",class:"svc-toolbox__category-header__button svc-string-editor__button--collapse",size:"auto"},null,512),[[e.vShow,!o.category.collapsed]])])):e.createCommentVNode("",!0)],2)),[[e.unref(l.key2ClickDirective)]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.category.items,(s,a)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-tool",item:s,key:a,creator:o.toolbox.creator,parentModel:o.toolbox,isCompact:!1},null,8,["item","creator","parentModel"]))),128))],2))}}),Wt=e.defineComponent({__name:"ToolboxList",props:{model:{},creator:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.model.cssClasses.root)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.model.renderedActions,(t,s)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:s,is:"svc-toolbox-tool",creator:n.creator,item:t,parentModel:n.model,isCompact:!1},null,8,["creator","item","parentModel"]))),128))],2))}}),jt={class:"svc-flex-column"},Jt={class:"svc-tab-designer_content"},Zt={key:0,class:"svc-designer-header"},Xt={class:"svc-designer__placeholder-container","data-sv-drop-target-survey-element":"newGhostPage"},Yt={className:"svc-designer-placeholder-page","data-sv-drop-target-survey-element":"newGhostPage"},Ut={key:0,class:"svc-designer-header"},xt=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],vt=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],en={key:0,class:"svc-tab-designer__tools"},on={key:0,class:"svc-tab-designer__page-navigator"},tn={key:1,class:"svc-tab-designer__toolbar"},nn=e.defineComponent({__name:"Designer",props:{model:{}},setup(i){const n=i,o=e.computed(()=>n.model.survey);return l.useBase(()=>n.model),l.useBase(()=>o.value),(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",jt,[t.model.isToolboxVisible?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-toolbox",model:t.model.creator},null,8,["model"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["svc-tab-designer",t.model.getRootCss()]),onClick:s[0]||(s[0]=(...a)=>t.model.clickDesigner&&t.model.clickDesigner(...a))},[e.createVNode(D,null,{default:e.withCtx(()=>[e.createElementVNode("div",Jt,[t.model.showPlaceholder?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.model.creator.showHeaderInEmptySurvey&&t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",Zt,[e.createVNode(e.unref(l.SvComponent),{is:"survey-header",survey:t.model.creator.survey},null,8,["survey"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Xt,[e.createVNode(q,{name:"designer",placeholderTitleText:t.model.placeholderTitleText,placeholderDescriptionText:t.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"]),e.createElementVNode("div",Yt,[e.createVNode(e.unref(l.SvComponent),{is:"svc-page",survey:t.model.creator.survey,creator:t.model.creator,page:t.model.newPage,isGhost:!0},null,8,["survey","creator","page"])])])],64)):e.createCommentVNode("",!0),t.model.showPlaceholder?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass(t.model.designerCss),style:e.normalizeStyle([{maxWidth:t.model.survey.renderedWidth},t.model.surveyThemeVariables])},[t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",Ut,[e.createVNode(e.unref(l.SvComponent),{is:"survey-header",survey:t.model.creator.survey},null,8,["survey"])])):e.createCommentVNode("",!0),t.model.creator.pageEditMode!=="bypage"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.model.pages,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"svc-page","data-sv-drop-target-survey-element":a!=t.model.newPage?a.name:"newGhostPage","data-sv-drop-target-page":a.name},[e.createVNode(e.unref(l.SvComponent),{is:"svc-page",survey:t.model.creator.survey,creator:t.model.creator,page:a,isGhost:a==t.model.newPage},null,8,["survey","creator","page","isGhost"])],8,xt))),128)):e.createCommentVNode("",!0),t.model.pagesController.page2Display&&t.model.creator.pageEditMode==="bypage"?(e.openBlock(),e.createElementBlock("div",{key:2,class:"svc-page","data-sv-drop-target-survey-element":t.model.displayPageDropTarget,"data-sv-drop-target-page":t.model.pagesController.page2Display.name},[e.createVNode(e.unref(l.SvComponent),{is:"svc-page",page:t.model.pagesController.page2Display,creator:t.model.creator,isGhost:t.model.pagesController.page2Display==t.model.newPage},null,8,["page","creator","isGhost"])],8,vt)):e.createCommentVNode("",!0)],6),t.model.showSurfaceTools?(e.openBlock(),e.createElementBlock("div",en,[t.model.creator.showPageNavigator?(e.openBlock(),e.createElementBlock("div",on,[e.createVNode(e.unref(l.SvComponent),{is:"svc-page-navigator",pagesController:t.model.pagesController,pageEditMode:t.model.creator.pageEditMode},null,8,["pagesController","pageEditMode"])])):e.createCommentVNode("",!0),t.model.showSurfaceToolbar?(e.openBlock(),e.createElementBlock("div",tn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:t.model.surfaceToolbar},null,8,["model"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))])]),_:1})],2)],64))}}),sn=["id","data-sv-drop-target-survey-page"],ln={class:"svc-page__content-actions"},an={key:1,class:"svc-page__content-actions"},rn={key:2,class:"svc-page__placeholder_frame"},cn={class:"svc-panel__placeholder_frame"},dn={class:"svc-panel__placeholder"},mn=e.defineComponent({__name:"Page",props:{creator:{},survey:{},page:{},isGhost:{type:Boolean}},setup(i){const n=i,o=e.ref(),t=b(()=>{const a=new B.PageAdorner(n.creator,n.page);return a.isGhost=n.isGhost,a},[()=>n.page],a=>{a.dispose()});e.watch(()=>n.isGhost,()=>{t.value&&(t.value.isGhost=n.isGhost)}),e.onUpdated(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),e.onMounted(()=>{o.value&&t.value&&(t.value.rootElement=o.value)});const s=a=>{t.value.hover(a,a.currentTarget)};return(a,r)=>e.unref(t).page?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:e.unref(t).page.id,id:e.unref(t).page.id,class:e.normalizeClass(["svc-page__content",e.unref(t).css]),"data-sv-drop-target-survey-page":e.unref(t).dropTargetName,onClick:r[1]||(r[1]=c=>{e.unref(t).select(e.unref(t),c),c.stopPropagation()}),ref_key:"root",ref:o,onDblclick:r[2]||(r[2]=c=>e.unref(t).dblclick(c)),onMouseover:s,onMouseleave:s},[r[3]||(r[3]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),r[4]||(r[4]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(t).allowDragging&&!e.unref(t).isGhost?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:r[0]||(r[0]=c=>e.unref(t).onPointerDown(c))},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:"sv-svg-icon",class:"svc-question__drag-element"},{css:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"}),null,16),e.createElementVNode("div",ln,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"])])],32)):e.createCommentVNode("",!0),!e.unref(t).allowDragging||e.unref(t).isGhost?(e.openBlock(),e.createElementBlock("div",an,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"])])):e.createCommentVNode("",!0),e.createVNode(e.unref(l.SvComponent),{is:"survey-page",survey:e.unref(t).creator.survey,page:e.unref(t).page},null,8,["survey","page"]),e.unref(t).showPlaceholder?(e.openBlock(),e.createElementBlock("div",rn,[e.createElementVNode("div",cn,[e.createElementVNode("div",dn,e.toDisplayString(e.unref(t).placeholderText),1)])])):e.createCommentVNode("",!0),e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).footerActionsBar},null,8,["model"])],42,sn)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)}}),pn={class:"svc-add-new-item-button__text"},kn=e.defineComponent({__name:"AddQuestion",props:{item:{},buttonClass:{},renderPopup:{}},setup(i){const n=i;l.useBase(()=>n.item.data);const o=e.computed(()=>"svc-element__add-new-question "+(n.buttonClass||"svc-btn")),t=e.computed(()=>n.renderPopup===void 0||n.renderPopup!==!1);return(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value),onClick:a[0]||(a[0]=r=>{s.item.data.addNewQuestion(s.item,r),r.stopPropagation()}),onMouseover:a[1]||(a[1]=r=>s.item.data.hoverStopper&&s.item.data.hoverStopper(r,r.currentTarget)),role:"button"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-panel__add-new-question-icon",iconName:"icon-add_24x24",size:"auto"}),e.createElementVNode("span",pn,e.toDisplayString(s.item.data.addNewQuestionText),1),t.value?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-add-question-type-selector",questionTypeSelectorModel:s.item.data.questionTypeSelectorModel,renderPopup:t.value},null,8,["questionTypeSelectorModel","renderPopup"])):e.createCommentVNode("",!0)],34)),[[e.unref(l.key2ClickDirective)]]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-add-question-type-selector",questionTypeSelectorModel:s.item.data.questionTypeSelectorModel,renderPopup:t.value},null,8,["questionTypeSelectorModel","renderPopup"]))],64))}}),fn=["title","aria-label"],Cn=e.defineComponent({__name:"AddQuestionTypeSelector",props:{questionTypeSelectorModel:{},renderPopup:{}},setup(i){const n=i;return l.useBase(()=>n.questionTypeSelectorModel),(o,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",onClick:t[0]||(t[0]=s=>{o.questionTypeSelectorModel.action(),s.stopPropagation()}),title:o.questionTypeSelectorModel.title,"aria-label":o.questionTypeSelectorModel.title,class:"svc-element__question-type-selector"},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:"sv-svg-icon",class:"svc-element__question-type-selector-icon"},{iconName:o.questionTypeSelectorModel.iconName,size:"auto",title:o.questionTypeSelectorModel.title}),null,16),o.renderPopup?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-popup",model:o.questionTypeSelectorModel.popupModel},null,8,["model"])):e.createCommentVNode("",!0)],8,fn)),[[e.unref(l.key2ClickDirective)]])}}),gn=e.defineComponent({__name:"Row",props:{componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.creator),t=e.computed(()=>n.componentData.row),s=b(()=>new B.RowViewModel(o.value,t.value,void 0),[()=>o.value,()=>t.value],a=>{a.dispose()});return e.onMounted(()=>{s.value&&s.value.subscribeElementChanges()}),e.onUnmounted(()=>{s.value&&s.value.unsubscribeElementChanges()}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s).cssClasses)},[r[0]||(r[0]=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--top"},null,-1)),r[1]||(r[1]=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--bottom"},null,-1)),e.renderSlot(a.$slots,"default")],2))}}),_n=["data-sv-drop-target-survey-element"],Bn={class:"svc-fake-title"},bn={class:"svc-question__top-actions"},Nn={key:0,class:"svc-panel__placeholder_frame-wrapper"},En={class:"svc-panel__placeholder_frame"},hn={class:"svc-panel__placeholder","data-bind":"text: placeholderText"},V=e.defineComponent({__name:"QuestionBase",props:{createModel:{type:Function},element:{},adornerComponent:{},showPlaceholderComponent:{type:Boolean},placeholderComponent:{},getPlaceholderComponentData:{type:Function},componentName:{},componentData:{}},setup(i){const n=i,o=e.ref(),t=b(()=>n.createModel(),[()=>n.componentName,()=>n.componentData.data,()=>n.componentData.element],r=>{r.dispose()}),s=e.computed(()=>t.value.isBannerShowing?t.value.createBannerParams():null);e.onUpdated(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),e.onMounted(()=>{o.value&&t.value&&(t.value.rootElement=o.value)});const a=r=>{t.value.select(t.value,r),r.stopPropagation()};return(r,c)=>e.unref(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__adorner",e.unref(t).rootCss()]),ref_key:"root",ref:o,onDblclick:c[2]||(c[2]=d=>e.unref(t).dblclick(d)),onMouseover:c[3]||(c[3]=d=>e.unref(t).hover(d,d.currentTarget)),onMouseleave:c[4]||(c[4]=d=>e.unref(t).hover(d,d.currentTarget)),"data-sv-drop-target-survey-element":e.unref(t).element.name||null,"data-bind":"css: rootCss(), attr: { 'data-sv-drop-target-survey-element': element.name || null }, event: { mouseover: function(m, e) { hover(e, $element); }, mouseleave: function(m, e) { hover(e, $element); } }"},[e.unref(t).showHiddenTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t).cssCollapsedHiddenHeader)},[r.element.hasTitle?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-element-title",element:r.element},null,8,["element"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(t).cssCollapsedHiddenTitle)},[e.createElementVNode("span",Bn,e.toDisplayString(r.element.name),1)],2))],2)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:c[1]||(c[1]=d=>{e.unref(t).select(e.unref(t),d),d.stopPropagation()}),class:e.normalizeClass(e.unref(t).css())},[c[5]||(c[5]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1)),c[6]||(c[6]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1)),c[7]||(c[7]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),c[8]||(c[8]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(t).allowDragging?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:c[0]||(c[0]=d=>e.unref(t).onPointerDown(d))},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:"sv-svg-icon",class:"svc-question__drag-element"},{css:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"}),null,16),e.createElementVNode("div",bn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).topActionContainer,handleClick:!1},null,8,["model"])])],32)):e.createCommentVNode("",!0),e.unref(t).needToRenderContent?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(l.SvComponent),{is:"sv-template-renderer",componentName:r.componentName,componentData:r.componentData},null,8,["componentName","componentData"]),e.unref(t).isEmptyElement&&!r.showPlaceholderComponent?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",En,[e.createElementVNode("div",hn,e.toDisplayString(e.unref(t).placeholderText),1)])])):e.createCommentVNode("",!0),e.unref(t).isEmptyElement&&r.showPlaceholderComponent?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),e.mergeProps({key:1,is:r.placeholderComponent},r.getPlaceholderComponentData&&r.getPlaceholderComponentData(e.unref(t))),null,16,["is"])):e.createCommentVNode("",!0),r.adornerComponent?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:2,is:r.adornerComponent,model:e.unref(t),element:r.element},null,8,["is","model","element"])):e.createCommentVNode("",!0),e.unref(t).isBannerShowing?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:3,is:"svc-question-banner",model:s.value},null,8,["model"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"svc-question__content-actions",onFocusin:a},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer,handleClick:!1},null,8,["model"])],32)],64)):e.createCommentVNode("",!0)],2)),[[e.unref(l.key2ClickDirective),{disableTabStop:!0}]])],42,_n)):e.createCommentVNode("",!0)}}),z=e.defineComponent({__name:"Question",props:{componentName:{},componentData:{}},setup(i){const n=i,o=()=>new B.QuestionAdornerViewModel(n.componentData.data,n.componentData.element,null);return(t,s)=>(e.openBlock(),e.createBlock(V,{createModel:o,element:t.componentData.element,"component-name":t.componentName,"component-data":t.componentData},null,8,["element","component-name","component-data"]))}}),wn=e.defineComponent({__name:"QuestionImage",props:{componentName:{},componentData:{}},setup(i){const n=i,o=()=>new B.QuestionImageAdornerViewModel(n.componentData.data,n.componentData.element,null),t=s=>({question:s==null?void 0:s.filePresentationModel});return(s,a)=>(e.openBlock(),e.createBlock(V,{"create-model":o,element:n.componentData.element,"show-placeholder-component":!0,"component-data":s.componentData,"component-name":s.componentName,"placeholder-component":"survey-file","get-placeholder-component-data":t,"adorner-component":"svc-image-question-adorner"},null,8,["element","component-data","component-name"]))}}),Sn={key:0,class:"svc-image-question-controls"},yn=["accept"],qn={class:"svc-context-button",title:void 0,"aria-label":void 0},Dn={key:1,class:"svc-image-question__loading-placeholder"},un={class:"svc-image-question__loading"},$n=e.defineComponent({__name:"Image",props:{model:{},element:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!n.model.isUploading&&!n.model.isEmptyElement?(e.openBlock(),e.createElementBlock("div",Sn,[n.model.allowEdit?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:n.model.acceptedTypes,class:"svc-choose-file-input"},null,8,yn),e.withDirectives((e.openBlock(),e.createElementBlock("span",qn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-choosefile",size:"auto",onClick:o[0]||(o[0]=t=>n.model.chooseFile(n.model))})])),[[e.unref(l.key2ClickDirective)]])],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.model.isUploading&&!n.model.isEmptyElement?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",un,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])])):e.createCommentVNode("",!0)],64))}}),Vn={class:"svc-rating-question-content"},Tn=e.defineComponent({__name:"Rating",props:{componentData:{},componentName:{}},setup(i){const n=i,o=b(()=>new B.QuestionRatingAdornerViewModel(n.componentData.data,n.componentData.question,null),[()=>n.componentData.data,()=>n.componentData.question]);return(t,s)=>{var a,r,c,d,m,f,S,N,E;return e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",{class:e.normalizeClass((a=e.unref(o))==null?void 0:a.controlsClassNames)},[(r=e.unref(o))!=null&&r.allowRemove?e.withDirectives((e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-svg-icon",iconName:"icon-remove_16x16",size:"auto",onClick:s[0]||(s[0]=u=>{var w;return(w=e.unref(o))==null?void 0:w.removeItem(e.unref(o))}),class:e.normalizeClass((c=e.unref(o))==null?void 0:c.removeClassNames),title:(d=e.unref(o))==null?void 0:d.removeTooltip,"aria-label":(m=e.unref(o))==null?void 0:m.removeTooltip},null,8,["class","title","aria-label"])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0),(f=e.unref(o))!=null&&f.allowAdd?e.withDirectives((e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:1,is:"sv-svg-icon",iconName:"icon-add_16x16",size:"auto",onClick:s[1]||(s[1]=u=>{var w;return(w=e.unref(o))==null?void 0:w.addItem(e.unref(o))}),class:e.normalizeClass((S=e.unref(o))==null?void 0:S.addClassNames),title:(N=e.unref(o))==null?void 0:N.addTooltip,"aria-label":(E=e.unref(o))==null?void 0:E.addTooltip},null,8,["class","title","aria-label"])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default")])}}}),Mn={key:0,class:"svc-matrix-cell__question-controls"},zn=e.defineComponent({__name:"MatrixCell",props:{componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.creator),t=e.computed(()=>n.componentData.row),s=e.computed(()=>n.componentData.column),a=e.computed(()=>n.componentData.element),r=e.computed(()=>n.componentData.question),c=b(()=>{var d;return n.componentData?new B.MatrixCellWrapperViewModel(o.value,a.value,r.value,t.value,s.value||((d=a.value.cell)==null?void 0:d.column)):void 0},[()=>o.value,()=>t.value,()=>s.value,()=>r.value]);return(d,m)=>{var f,S;return e.openBlock(),e.createElementBlock("div",{tabindex:"-1",class:"svc-matrix-cell",onClick:m[1]||(m[1]=N=>{var E;return(E=e.unref(c))==null?void 0:E.selectContext(e.unref(c),N)}),onMouseover:m[2]||(m[2]=N=>{var E;return(E=e.unref(c))==null?void 0:E.hover(N,N.currentTarget)}),onMouseleave:m[3]||(m[3]=N=>{var E;return(E=e.unref(c))==null?void 0:E.hover(N,N.currentTarget)})},[e.createElementVNode("div",{class:e.normalizeClass(["svc-matrix-cell--selected",{"svc-visible":(f=e.unref(c))==null?void 0:f.isSelected}])},null,2),e.renderSlot(d.$slots,"default"),(S=e.unref(c))!=null&&S.isSupportCellEditor?(e.openBlock(),e.createElementBlock("div",Mn,[e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-matrix-cell__question-controls-button svc-context-button",onClick:m[0]||(m[0]=N=>e.unref(c).editQuestion(e.unref(c),N))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-edit",size:"auto"})])),[[e.unref(l.key2ClickDirective)]])])):e.createCommentVNode("",!0)],32)}}}),Pn={class:"svc-question__adorner"},In={class:"svc-question__content svc-question__content--in-popup"},Rn=e.defineComponent({__name:"CellQuestion",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.element);return l.useBase(()=>o.value),(t,s)=>(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",In,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:t.componentName},t.componentData),null,16,["is"])])]))}}),Fn=["data-sv-drop-target-survey-element"],Ln={class:"svc-fake-title"},An={class:"svc-question__top-actions"},Kn={key:0,class:"svc-panel__placeholder_frame-wrapper"},Qn={class:"svc-panel__placeholder_frame"},Hn={class:"svc-panel__placeholder"},On={class:"svc-add-new-item-button__text"},Gn={key:1,class:"svc-panel__add-new-question-container"},Wn={class:"svc-panel__question-type-selector-popup"},jn={class:"svc-panel__add-new-question-wrapper"},Jn=e.defineComponent({__name:"Panel",props:{componentName:{},componentData:{}},setup(i){const n=i,o=b(()=>new B.QuestionAdornerViewModel(n.componentData.data,n.componentData.element,null),[()=>n.componentData.data,()=>n.componentData.element],s=>{s.dispose()}),t=s=>{s.stopPropagation(),o.value.addNewQuestion()};return(s,a)=>e.unref(o)&&!e.unref(o).isDisposed?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__adorner",e.unref(o).rootCss()]),onDblclick:a[3]||(a[3]=r=>e.unref(o).dblclick(r)),onMouseover:a[4]||(a[4]=r=>e.unref(o).hover(r,r.currentTarget)),onMouseleave:a[5]||(a[5]=r=>e.unref(o).hover(r,r.currentTarget)),"data-sv-drop-target-survey-element":e.unref(o).element.name||null,ref:"root"},[e.unref(o).showHiddenTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).cssCollapsedHiddenHeader)},[e.unref(o).element.hasTitle?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-element-title",element:e.unref(o).element},null,8,["element"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).cssCollapsedHiddenTitle)},[e.createElementVNode("span",Ln,e.toDisplayString(e.unref(o).element.name),1)],2))],2)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).css()),onClick:a[2]||(a[2]=r=>e.unref(o).element.isInteractiveDesignElement?e.unref(o).select(e.unref(o),r):null)},[a[6]||(a[6]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1)),a[7]||(a[7]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1)),a[8]||(a[8]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),a[9]||(a[9]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(o).allowDragging&&e.unref(o).element.isInteractiveDesignElement?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:a[0]||(a[0]=r=>e.unref(o).onPointerDown(r))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"}),e.createElementVNode("div",An,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(o).topActionContainer,handleClick:!1},null,8,["model"])])],32)):e.createCommentVNode("",!0),e.unref(o).needToRenderContent?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:s.componentName},s.componentData),null,16,["is"]),e.unref(o).isEmptyElement?(e.openBlock(),e.createElementBlock("div",Kn,[e.createElementVNode("div",Qn,[e.createElementVNode("div",Hn,e.toDisplayString(e.unref(o).placeholderText),1),e.unref(o).showAddQuestionButton?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-panel__add-new-question svc-action-button",onClick:t},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-panel__add-new-question-icon",iconName:"icon-add_24x24",size:"auto"}),e.createElementVNode("span",On,e.toDisplayString(e.unref(o).addNewQuestionText),1)])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),!e.unref(o).isEmptyElement&&e.unref(o).showAddQuestionButton?(e.openBlock(),e.createElementBlock("div",Gn,[e.createElementVNode("div",Wn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:e.unref(o).questionTypeSelectorModel.popupModel},null,8,["model"])]),e.createElementVNode("div",jn,[e.createVNode(e.unref(l.SvComponent),{is:"svc-add-new-question-btn",item:{data:e.unref(o)},buttonClass:"svc-action-button",renderPopup:!1},null,8,["item"])])])):e.createCommentVNode("",!0),e.unref(o).element.isInteractiveDesignElement?(e.openBlock(),e.createElementBlock("div",{key:2,class:"svc-question__content-actions",onFocusin:a[1]||(a[1]=r=>e.unref(o).select(e.unref(o),r))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(o).actionContainer,handleClick:!1},null,8,["model"])],32)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)),[[e.unref(l.key2ClickDirective),{disableTabStop:!0}]])],42,Fn)):e.createCommentVNode("",!0)}}),Zn=["data-sv-drop-target-item-value"],Xn={class:"svc-item-value-controls"},Yn={key:0,class:"svc-item-value-controls__button svc-item-value-controls__drag"},Un=e.defineComponent({__name:"ItemValue",props:{componentName:{},componentData:{}},setup(i){const n=e.ref(),o=i,t=e.computed(()=>o.componentData.data.creator),s=e.computed(()=>o.componentData.question),a=e.computed(()=>o.componentData.item),r=e.watch(()=>a.value,(d,m)=>{d&&n.value&&d.setRootElement(n.value),m&&m.setRootElement(void 0)});e.onMounted(()=>{n.value&&a.value&&a.value.setRootElement(n.value)}),e.onUnmounted(()=>{a.value.setRootElement(void 0)});const c=b(()=>new B.ItemValueWrapperViewModel(t.value,s.value,a.value),[()=>t.value,()=>s.value,()=>a.value],d=>{d.dispose()});return e.onBeforeUnmount(()=>{r()}),(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-item-value-wrapper",{"svc-item-value--new":e.unref(c).isNew,"svc-item-value--dragging":e.unref(c).isDragging,"svc-item-value--ghost":e.unref(c).isDragDropGhost,"svc-item-value--movedown":e.unref(c).isDragDropMoveDown,"svc-item-value--moveup":e.unref(c).isDragDropMoveUp}]),onPointerdown:m[4]||(m[4]=f=>e.unref(c).onPointerDown(f)),"data-sv-drop-target-item-value":e.unref(c).isDraggable?a.value.value:null,ref_key:"root",ref:n},[m[5]||(m[5]=e.createElementVNode("div",{class:"svc-item-value__ghost"},null,-1)),e.createElementVNode("div",Xn,[e.unref(c).isDraggable?(e.openBlock(),e.createElementBlock("span",Yn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-item-value-controls__drag-icon",iconName:"icon-drag-24x24",size:"auto",title:e.unref(c).dragTooltip},null,8,["title"])])):e.createCommentVNode("",!0),e.unref(c).allowAdd?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,class:"svc-item-value-controls__button svc-item-value-controls__add",onClick:m[0]||(m[0]=f=>e.unref(c).add(e.unref(c))),"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-add_16x16",size:"auto",title:void 0})])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0),e.unref(c).allowRemove?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:2,class:"svc-item-value-controls__button svc-item-value-controls__remove",onClick:m[1]||(m[1]=f=>e.unref(c).remove(e.unref(c))),onBlur:m[2]||(m[2]=f=>e.unref(c).onFocusOut(f)),"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-remove_16x16",size:"auto",title:void 0})],32)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"svc-item-value__item",onClick:m[3]||(m[3]=f=>e.unref(c).select(e.unref(c),f))},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:d.componentName},d.componentData),null,16,["is"])])],42,Zn))}}),xn=["data-sv-drop-target-item-value"],vn={class:"svc-image-item-value-wrapper__content"},es=["accept"],os={key:0,class:"svc-image-item-value__item"},ts={key:2,class:"svc-context-container svc-image-item-value-controls"},ns={class:"sd-imagepicker__item sd-imagepicker__item--inline"},ss={class:"sd-imagepicker__label"},ls={key:0,class:"svc-image-item-value__loading"},as=e.defineComponent({__name:"ImageItemValue",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.data.creator),t=e.computed(()=>n.componentData.question),s=e.computed(()=>n.componentData.item),a=e.ref(),r=b(()=>{const d=new B.ImageItemValueWrapperViewModel(o.value,t.value,s.value,null,null);return a!=null&&a.value&&(d.itemsRoot=a.value),d},[()=>o.value,()=>t.value,()=>s.value],d=>{d.dispose()}),c=e.computed(()=>{const d=!r.value.getIsNewItemSingle();return{width:d?t.value.renderedImageWidth+"px":void 0,height:d?t.value.renderedImageHeight+"px":void 0}});return e.onMounted(()=>{a.value&&(r.value.itemsRoot=a.value)}),(d,m)=>(e.openBlock(),e.createElementBlock("div",{onPointerdown:m[8]||(m[8]=f=>e.unref(r).onPointerDown(f)),class:e.normalizeClass(e.unref(r).getRootCss()),"data-sv-drop-target-item-value":e.unref(r).isDraggable?s.value.value:null,ref_key:"root",ref:a},[e.createElementVNode("div",{class:"svc-image-item-value-wrapper__ghost",style:e.normalizeStyle(c.value)},null,4),e.createElementVNode("div",vn,[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:e.unref(r).acceptedTypes,class:"svc-choose-file-input"},null,8,es),!e.unref(r).isNew&&!e.unref(r).isUploading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(r).isNew?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",os,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:d.componentName},d.componentData),null,16,["is"])])),e.unref(r).isDraggable&&e.unref(r).canRenderControls?(e.openBlock(),e.createElementBlock("span",{key:1,class:"svc-context-button svc-image-item-value-controls__drag-area-indicator",onPointerdown:m[0]||(m[0]=f=>e.unref(r).onPointerDown(f)),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-drag-24x24",size:"auto"})],32)):e.createCommentVNode("",!0),e.unref(r).canRenderControls?(e.openBlock(),e.createElementBlock("div",ts,[e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button",onClick:m[1]||(m[1]=f=>e.unref(r).chooseFile(e.unref(r))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",role:"button",iconName:"icon-choosefile",size:"auto",title:e.unref(r).selectFileTitle},null,8,["title"])])),[[e.unref(l.key2ClickDirective)]]),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button svc-context-button--danger",onClick:m[2]||(m[2]=f=>e.unref(r).remove(e.unref(r))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",role:"button",iconName:"icon-delete",size:"auto",title:e.unref(r).removeFileTitle},null,8,["title"])])),[[e.unref(l.key2ClickDirective)]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.unref(r).isNew||e.unref(r).isUploading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"svc-image-item-value__item",onDragover:m[3]||(m[3]=f=>e.unref(r).onDragOver(f)),onDragleave:m[4]||(m[4]=f=>e.unref(r).onDragLeave(f)),onDrop:m[5]||(m[5]=f=>e.unref(r).onDrop(f))},[e.createElementVNode("div",ns,[e.createElementVNode("label",ss,[e.createElementVNode("div",{style:e.normalizeStyle(c.value),class:"sd-imagepicker__image"},[e.unref(r).isUploading?(e.openBlock(),e.createElementBlock("div",ls,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])):e.createCommentVNode("",!0)],4)])])],32),e.createElementVNode("div",{class:"svc-image-item-value-controls",onPointerdown:m[7]||(m[7]=f=>f.stopPropagation())},[e.unref(r).allowAdd&&!e.unref(r).isUploading?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:0,class:"svc-context-button svc-image-item-value-controls__add",onClick:m[6]||(m[6]=f=>e.unref(r).chooseNewFile(e.unref(r))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-add-lg",size:"auto",title:e.unref(r).addFileTitle},null,8,["title"])])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],32)],64)):e.createCommentVNode("",!0)])],42,xn))}}),rs=e.defineComponent({__name:"QuestionEditor",props:{survey:{}},setup(i){const n=i,o=e.computed(()=>{var a;return(a=n.survey)==null?void 0:a.getAllQuestions()[0]}),t=e.computed(()=>{const a=n.survey;if(a&&o.value){const r=a.getElementWrapperComponentName(o.value);if(r)return r}return"survey-question"}),s=e.computed(()=>{const a=n.survey;let r;return a&&o.value&&(r=a.getElementWrapperComponentData(o.value)),{componentName:"survey-question",componentData:{element:o.value,data:r}}});return(a,r)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),e.mergeProps({is:t.value},s.value),null,16,["is"]))}}),is=["accept"],cs={class:"svc-context-container svc-logo-image-controls"},ds={key:2,class:"svc-logo-image__loading"},ms=e.defineComponent({__name:"Logo",props:{data:{}},setup(i){const n=i,o=e.computed(()=>n.data),t=e.computed(()=>o.value.survey),s=e.ref(),a=b(()=>new B.LogoImageViewModel(o.value,null),[()=>o.value]),r=e.ref(),c=()=>{r.value=t.value.locLogo.renderedHtml};return e.watch(()=>t.value.locLogo,(d,m)=>{c(),d&&d.onStringChanged.add(c),m&&d.onStringChanged.remove(c)},{immediate:!0}),e.onMounted(()=>{s.value&&(a.value.root=s.value)}),e.onUnmounted(()=>{a.value&&(a.value.root=void 0)}),(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:"svc-logo-image",ref_key:"root",ref:s},[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:e.unref(a).acceptedTypes,class:"svc-choose-file-input"},null,8,is),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(a).allowEdit&&!e.unref(a).isUploading?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-logo-image-placeholder",onClick:m[0]||(m[0]=f=>e.unref(a).chooseFile(e.unref(a)))},m[3]||(m[3]=[e.createElementVNode("svg",null,[e.createElementVNode("use",{"xlink:href":"#icon-image-48x48"})],-1)]))),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],64)),r.value&&!e.unref(a).isUploading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).containerCss)},[e.createElementVNode("div",cs,[e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button",onClick:m[1]||(m[1]=f=>e.unref(a).chooseFile(e.unref(a))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-choosefile",size:"auto"})])),[[e.unref(l.key2ClickDirective)]]),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button svc-context-button--danger",onClick:m[2]||(m[2]=f=>e.unref(a).remove(e.unref(a))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-clear",size:"auto"})])),[[e.unref(l.key2ClickDirective)]])]),e.createVNode(e.unref(l.SvComponent),{is:"sv-logo-image",data:t.value},null,8,["data"])],2)):e.createCommentVNode("",!0),e.unref(a).isUploading?(e.openBlock(),e.createElementBlock("div",ds,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])):e.createCommentVNode("",!0)],512))}}),ps={key:0,class:"svc-search"},ks={class:"svc-search__search-icon"},fs=["aria-label","placeholder"],Cs={class:"svc-search__toolbar"},gs={class:"svc-search__toolbar-counter"},_s=e.defineComponent({__name:"Search",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=e.computed({get:()=>n.model.filterString,set:t=>{const s=n.model;s.filterString=t}});return(t,s)=>t.model.isVisible?(e.openBlock(),e.createElementBlock("div",ps,[e.createElementVNode("div",ks,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-search",size:"auto"})]),e.withDirectives(e.createElementVNode("input",{type:"text",class:"svc-search__input","onUpdate:modelValue":s[0]||(s[0]=a=>o.value=a),"aria-label":t.model.filterStringPlaceholder,placeholder:t.model.filterStringPlaceholder},null,8,fs),[[e.vModelText,o.value]]),e.createElementVNode("div",Cs,[e.createElementVNode("div",gs,e.toDisplayString(t.model.matchCounterText),1),e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:t.model.searchActionBar},null,8,["model"])])])):e.createCommentVNode("",!0)}}),Bs=["title"],bs=e.defineComponent({__name:"PageNavigator",props:{pagesController:{},pageEditMode:{}},setup(i){const n=i,o=b(()=>new B.PageNavigatorViewModel(n.pagesController,n.pageEditMode),[()=>n.pagesController,()=>n.pageEditMode]),t=e.ref();return e.onMounted(()=>{if(n.pageEditMode!=="bypage"){const s=t.value;o.value.attachToUI(s)}}),e.onBeforeUnmount(()=>{t.value;const s=o.value;s.stopItemsContainerHeightObserver(),s.setScrollableContainer(void 0)}),e.onUnmounted(()=>{o.value.dispose()}),(s,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"svc-page-navigator",ref_key:"root",ref:t},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:e.normalizeClass(["svc-page-navigator__selector svc-page-navigator__button",{"svc-page-navigator__button--pressed":e.unref(o).isPopupOpened}]),onClick:a[0]||(a[0]=r=>e.unref(o).togglePageSelector(r)),title:e.unref(o).pageSelectorCaption},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-page-navigator__button-icon",iconName:e.unref(o).icon,size:"auto"},null,8,["iconName"]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:e.unref(o).popupModel},null,8,["model"])],10,Bs)),[[e.unref(l.key2ClickDirective)]]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).visibleItems,r=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-page-navigator-item",key:r.id,model:r},null,8,["model"]))),128))])],512)),[[e.vShow,e.unref(o).visible]])}}),Ns={class:"svc-page-navigator-item"},Es=["title"],hs={class:"svc-page-navigator-item__banner"},ws={class:"svc-page-navigator-item__text"},Ss=e.defineComponent({__name:"PageNavigatorItem",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=t=>{n.model.action(),t.stopPropagation(),t.preventDefault()};return(t,s)=>(e.openBlock(),e.createElementBlock("div",Ns,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:e.normalizeClass(["svc-page-navigator-item-content",{"svc-page-navigator-item--selected":t.model.active,"svc-page-navigator-item--disabled":t.model.disabled}]),onClick:s[0]||(s[0]=a=>o(a))},[e.createElementVNode("div",{class:"svc-page-navigator-item__dot",title:t.model.title},s[1]||(s[1]=[e.createElementVNode("div",{class:"svc-page-navigator-item__dot-content"},null,-1)]),8,Es),e.createElementVNode("div",hs,[e.createElementVNode("span",ws,e.toDisplayString(t.model.title),1),s[2]||(s[2]=e.createElementVNode("span",{class:"svc-page-navigator-item__dot"},[e.createElementVNode("span",{class:"svc-page-navigator-item__dot-content"})],-1))])],2)),[[e.unref(l.key2ClickDirective)]])]))}}),ys={class:"svc-question__dropdown-choices--wrapper"},qs={class:"svc-question__dropdown-choices"},Ds=e.defineComponent({__name:"Dropdown",props:{model:{},element:{}},setup(i){const n=i,o=s=>n.element.getItemValueWrapperComponentName(s)||n.model.itemComponent,t=s=>({componentName:n.model.itemComponent,componentData:{question:n.element,item:s,data:n.element.getItemValueWrapperComponentData(s)}});return(s,a)=>(e.openBlock(),e.createElementBlock("div",ys,[e.createElementVNode("div",null,[e.createElementVNode("div",qs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.model.getRenderedItems(),r=>(e.openBlock(),e.createElementBlock("div",{key:r.value,class:e.normalizeClass(s.model.getChoiceCss())},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:o(r)},{ref_for:!0},t(r)),null,16,["is"])],2))),128))]),s.model.needToCollapse?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-action-button",text:s.model.getButtonText(),click:s.model.switchCollapse.bind(s.model),allowBubble:!0},null,8,["text","click"])):e.createCommentVNode("",!0)])]))}}),us=e.defineComponent({__name:"QuestionDropdown",props:{componentName:{},componentData:{}},setup(i){const n=i,o=()=>new B.QuestionDropdownAdornerViewModel(n.componentData.data,n.componentData.element,null);return(t,s)=>(e.openBlock(),e.createBlock(V,{"create-model":o,element:t.componentData.element,"component-name":t.componentName,"component-data":t.componentData,"adorner-component":"svc-dropdown-question-adorner"},null,8,["element","component-name","component-data"]))}}),$s={class:"svc-question__adorner"},Vs={class:"svc-question__content svc-question__content--in-popup"},Ts={class:"svc-question__dropdown-choices"},P="survey-radiogroup-item",Ms=e.defineComponent({__name:"CellQuestionDropdown",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.element),t=a=>o.value.getItemValueWrapperComponentName(a)||P,s=a=>({componentName:P,componentData:{question:o.value,item:a,data:o.value.getItemValueWrapperComponentData(a)}});return l.useBase(()=>o.value),(a,r)=>(e.openBlock(),e.createElementBlock("div",$s,[e.createElementVNode("div",Vs,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:a.componentName},a.componentData),null,16,["is"]),e.createElementVNode("div",Ts,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.visibleChoices,c=>(e.openBlock(),e.createElementBlock("div",{key:c.value,class:"svc-question__dropdown-choice"},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:t(c)},{ref_for:!0},s(c)),null,16,["is"])]))),128))])])]))}}),zs=["data-sv-drop-target-survey-element"],Ps={class:"svc-widget__content"},Is={key:1,class:"svc-panel__placeholder_frame"},Rs={class:"svc-question__content-actions"},Fs={key:0,class:"svc-panel__placeholder_frame"},Ls={class:"svc-panel__placeholder"},As=e.defineComponent({__name:"CustomWidget",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.ref(),t=b(()=>new B.QuestionAdornerViewModel(n.componentData.data,n.componentData.element,null),[()=>n.componentData.data,()=>n.componentData.element],s=>{s.dispose()});return e.onUpdated(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),e.onMounted(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__adorner",e.unref(t).rootCss()]),onMouseover:a[2]||(a[2]=r=>e.unref(t).hover(r,r.currentTarget)),onMouseleave:a[3]||(a[3]=r=>e.unref(t).hover(r,r.currentTarget)),"data-sv-drop-target-survey-element":e.unref(t).element.name||null,ref_key:"root",ref:o},[e.unref(t).element.isInteractiveDesignElement?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__content",e.unref(t).css()]),onClick:a[1]||(a[1]=r=>e.unref(t).select(e.unref(t),r)),"data-bind":"clickBubble: false"},[a[5]||(a[5]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1)),a[6]||(a[6]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1)),a[7]||(a[7]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),a[8]||(a[8]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(t).allowDragging?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:a[0]||(a[0]=r=>e.unref(t).onPointerDown(r))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"})],32)):e.createCommentVNode("",!0),e.createElementVNode("div",Ps,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:s.componentName},s.componentData),null,16,["is"])]),e.unref(t).isEmptyElement?(e.openBlock(),e.createElementBlock("div",Is,a[4]||(a[4]=[e.createElementVNode("div",{class:"svc-panel__placeholder","data-bind":"text: placeholderText"},null,-1)]))):e.createCommentVNode("",!0),e.createElementVNode("div",Rs,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer,handleClick:!1},null,8,["model"])])],2)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0),e.unref(t).element.isInteractiveDesignElement?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:s.componentName},s.componentData),null,16,["is"]),e.unref(t).isEmptyElement?(e.openBlock(),e.createElementBlock("div",Fs,[e.createElementVNode("div",Ls,e.toDisplayString(e.unref(t).placeholderText),1)])):e.createCommentVNode("",!0)],64))],42,zs)):e.createCommentVNode("",!0)}}),Ks={class:"svc-carry-forward-panel-wrapper"},Qs={class:"svc-carry-forward-panel"},Hs={class:"svc-carry-forward-panel__link"},Os=e.defineComponent({__name:"QuestionBanner",props:{model:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Ks,[e.createElementVNode("div",Qs,[e.createElementVNode("span",null,e.toDisplayString(n.model.text)+e.toDisplayString(" "),1),e.createElementVNode("span",Hs,[e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:n.model.actionText,click:n.model.onClick.bind(n.model)},null,8,["text","click"])])])]))}});function Gs(i,n,o){i(n,o)}function I(i){const n=Gs.bind(void 0,i);n("svc-tabbed-menu",J),n("svc-tabbed-menu-item-wrapper",X),n("svc-tabbed-menu-item",U),n("svc-side-bar",oe),n("svc-side-bar-default-header",le),n("svc-side-bar-page",ae),n("svc-tabs",de),n("svc-tab-control",ge),n("svc-tab-button",Ee),n("svc-property-grid-placeholder",qe),n("svc-side-bar-header",Me),n("svc-side-bar-property-grid-header",Ae),n("svc-property-grid",ce),n("svc-object-selector",re),n("svc-search",_s),n("svc-scroll",D),n("svc-switcher",Xe),n("svc-action-button",We),n("svc-question-error",Ke),n("survey-embeddedsurvey",Oo),n("sv-logic-operator",Ho),n("survey-linkvalue",Go),n("survey-color",it),n("color-item",ct),n("sv-boolean-switch",wt),n("survey-fileedit",ft),n("survey-spinedit",Bt),n("survey-textwithreset",M),n("survey-commentwithreset",M),n("survey-widget",l.SurveyComponent),n("survey-simulator",xe),n("svc-tab-test",lo),n("svc-complete-page",ro),n("survey-results",bo),n("survey-results-table-row",Eo),n("json-error-item",Po),n("svc-tab-json-editor-textarea",Vo),n("svc-tab-json-editor-ace",yo),n("svc-tab-translation",Xo),n("sd-translation-line-skeleton",et),n("svc-translate-from-action",ot),n("svc-tab-logic",Ao),n("svc-tab-theme",lt),n("svc-toolbox",zt),n("svc-toolbox-list",Wt),n("svc-toolbox-category",Gt),n("svc-toolbox-tool",It),n("svc-toolbox-item",At),n("svc-toolbox-item-group",Kt),n(B.editableStringRendererName,$t),n("svc-tab-designer",nn),n("svc-page-navigator",bs),n("svc-page-navigator-item",Ss),n("svc-page",mn),n("svc-row",gn),n("svc-add-new-question-btn",kn),n("svc-add-question-type-selector",Cn),n("svc-question",z),n("svc-rating-question",z),n("svc-rating-question-content",Tn),n("svc-image-question",wn),n("svc-image-question-adorner",$n),n("svc-matrix-cell",zn),n("svc-cell-question",Rn),n("svc-cell-dropdown-question",Ms),n("svc-question-editor-content",rs),n("svc-logo-image",ms),n("svc-panel",Jn),n("svc-item-value",Un),n("svc-image-item-value",as),n("svc-dropdown-question",us),n("svc-dropdown-question-adorner",Ds),n("svc-widget-question",As),n("svc-question-banner",Os)}I((i,n)=>l.ComponentFactory.Instance.registerComponent(i,n));const Ws={install(i){i.component("SurveyCreatorComponent",T),I((n,o)=>{i.component(n,o),l.ComponentFactory.Instance.registerComponent(n,n)})}};h.SurveyCreatorComponent=T,h.surveyCreatorPlugin=Ws,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(h,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("survey-vue3-ui"),require("vue"),require("survey-core"),require("survey-creator-core")):typeof define=="function"&&define.amd?define(["exports","survey-vue3-ui","vue","survey-core","survey-creator-core"],l):(h=typeof globalThis<"u"?globalThis:h||self,l(h.SurveyCreatorVue={},h.SurveyVue,h.Vue,h.Survey,h.SurveyCreatorCore))})(this,function(h,l,e,y,B){"use strict";const F={class:"svc-flex-column svc-flex-row__element svc-flex-row__element--growing"},L={class:"svc-top-bar"},A={class:"svc-tabbed-menu-wrapper"},K=["v-show"],Q={class:"svc-creator__content-holder svc-flex-column"},H=["aria-labelledby","id"],O={key:0,class:"svc-footer-bar"},G=["v-show"],W={key:0,class:"svc-creator__banner"},j=["innerHTML"],T=e.defineComponent({__name:"Creator",props:{model:{}},setup(i){const n=i,o=e.computed(()=>e.toRaw(n.model)),t=e.ref();return l.useBase(()=>o.value,(s,a)=>{a&&a.unsubscribeRootElement(),s&&t.value&&s.setRootElement(t.value)}),e.onMounted(()=>{t.value&&n.model.setRootElement(t.value)}),e.onUnmounted(()=>{n.model.unsubscribeRootElement()}),(s,a)=>o.value.isCreatorDisposed?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(l.SvComponent),{is:"survey-popup-modal"}),e.createElementVNode("div",{class:e.normalizeClass(o.value.getRootCss()),style:e.normalizeStyle(o.value.themeVariables),ref_key:"root",ref:t},[e.createElementVNode("div",null,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-bundle"})]),e.createElementVNode("div",{class:e.normalizeClass(["svc-full-container svc-creator__area svc-flex-column",{"svc-creator__area--with-banner":!o.value.haveCommercialLicense}])},[e.createElementVNode("div",{class:e.normalizeClass(["svc-flex-row svc-full-container",{"svc-creator__side-bar--left":o.value.sidebarLocation=="left"}])},[e.createElementVNode("div",F,[e.createElementVNode("div",L,[e.withDirectives(e.createElementVNode("div",A,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabbed-menu",model:o.value.tabbedMenu},null,8,["model"])],512),[[e.vShow,o.value.showTabs]]),o.value.showToolbar?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-toolbar-wrapper","v-show":o.value.showToolbar},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.value.toolbar},null,8,["model"])],8,K)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["svc-creator__content-wrapper svc-flex-row",{"svc-creator__content-wrapper--footer-toolbar":o.value.isMobileView}])},[e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.tabs,r=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value.viewType==r.id&&r.visible?(e.openBlock(),e.createElementBlock("div",{role:"tabpanel",class:e.normalizeClass(["svc-creator-tab",{"svc-creator__toolbox--right":o.value.toolboxLocation=="right"}]),key:r.id,"aria-labelledby":"tab-"+r.id,id:"scrollableDiv-"+r.id},[e.createVNode(e.unref(l.SvComponent),{is:r.componentContent,model:r.data.model},null,8,["is","model"])],10,H)):e.createCommentVNode("",!0)],64))),256))])],2),o.value.isMobileView?(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",{class:"svc-toolbar-wrapper","v-show":o.value.isMobileView},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.value.footerToolbar},null,8,["model"])],8,G)])):e.createCommentVNode("",!0)]),o.value.sidebar?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-side-bar",model:o.value.sidebar},null,8,["model"])):e.createCommentVNode("",!0)],2),o.value.haveCommercialLicense?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",W,[e.createElementVNode("span",{class:"svc-creator__non-commercial-text",innerHTML:o.value.licenseText},null,8,j)])),e.createVNode(e.unref(l.SvComponent),{is:"sv-notifier",model:o.value.notifier},null,8,["model"])],2)],6)],64))}}),J=e.defineComponent({__name:"TabbedMenu",props:{model:{}},setup(i){const n=i;let o;const t=e.ref();return l.useBase(()=>n.model),e.onMounted(()=>{o=new y.ResponsivityManager(t.value,n.model,".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content")}),e.onUnmounted(()=>{o.dispose(),o=void 0}),(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:"svc-tabbed-menu",ref_key:"container",ref:t,role:"tablist"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.model.renderedActions,r=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:r.id,is:"svc-tabbed-menu-item-wrapper",item:r},null,8,["item"]))),128))],512))}}),Z={class:"sv-action__content"},X=e.defineComponent({__name:"TabbedMenuItemWrapper",props:{item:{}},setup(i){const n=i;return l.useBase(()=>n.item),(o,t)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["svc-tabbed-menu-item-container",[o.item.isVisible?"":"sv-action--hidden",o.item.css]])},[e.createElementVNode("div",Z,[e.createVNode(e.unref(l.SvComponent),{is:o.item.component||"svc-tabbed-menu-item",item:o.item},null,8,["is","item"])])],2))}}),Y=["id","aria-selected","aria-controls"],U=e.defineComponent({__name:"TabbedMenuItem",props:{item:{}},setup(i){const n=i;return l.useBase(()=>n.item),(o,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"tab",id:"tab-"+o.item.id,"aria-selected":o.item.active,"aria-controls":"scrollableDiv-"+o.item.id,class:e.normalizeClass(["svc-tabbed-menu-item",o.item.getRootCss()]),onClick:t[0]||(t[0]=(...s)=>o.item.action&&o.item.action(...s))},[o.item.hasTitle?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(o.item.getTitleCss())},e.toDisplayString(o.item.title),3)):e.createCommentVNode("",!0),o.item.hasIcon?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:1,is:"sv-svg-icon",iconName:o.item.iconName,size:"auto",class:e.normalizeClass(o.item.getIconCss()),title:o.item.tooltip||o.item.title},null,8,["iconName","class","title"])):e.createCommentVNode("",!0)],10,Y)),[[e.unref(l.key2ClickDirective)]])}}),x={class:"svc-flex-row svc-side-bar__wrapper"},v={class:"svc-side-bar__container-wrapper"},ee={class:"svc-side-bar__container-content"},oe=e.defineComponent({__name:"SideBar",props:{model:{}},setup(i){const n=i,o=e.ref();return l.useBase(()=>n.model),e.onMounted(()=>{n.model.initResizeManager(o.value)}),e.onUnmounted(()=>{n.model.resetResizeManager()}),(t,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-side-bar",t.model.rootCss])},[e.withDirectives(e.createElementVNode("div",{class:"svc-side-bar__shadow",onClick:s[0]||(s[0]=()=>t.model.collapseSidebar())},null,512),[[e.vShow,t.model.renderContainer]]),e.createElementVNode("div",x,[e.withDirectives(e.createElementVNode("div",v,[e.createElementVNode("div",{class:"svc-side-bar__container",ref_key:"root",ref:o},[e.createVNode(e.unref(l.SvComponent),{is:t.model.header.component,model:t.model.header.componentModel},null,8,["is","model"]),e.createElementVNode("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.model.pages,(a,r)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:r,is:"svc-side-bar-page",model:a},null,8,["model"]))),128))])],512)],512),[[e.vShow,t.model.renderContainer]]),t.model.sideAreaComponentName?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:t.model.sideAreaComponentName,model:t.model.sideAreaComponentData},null,8,["is","model"])):e.createCommentVNode("",!0)])],2)),[[e.vShow,t.model.renderRoot]])}}),te={class:"svc-side-bar__container-header"},ne={class:"svc-side-bar__container-actions"},se={key:0,class:"svc-side-bar__container-title"},le=e.defineComponent({__name:"SideBarDefaultHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",ne,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.toolbar},null,8,["model"])]),o.model.title?(e.openBlock(),e.createElementBlock("div",se,e.toDisplayString(o.model.title),1)):e.createCommentVNode("",!0)]))}}),ae=e.defineComponent({__name:"SideBarPage",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>o.model.visible?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:o.model.componentName,model:o.model.componentData},null,8,["is","model"])):e.createCommentVNode("",!0)}}),re=e.defineComponent({__name:"ObjectSelector",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>o.model.isVisible?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-list",model:o.model.list},null,8,["model"])):e.createCommentVNode("",!0)}}),ie={class:"svc-scroll__container"},D=e.defineComponent({__name:"Scroll",setup(i){const n=new B.ScrollViewModel,o=e.ref();return e.onMounted(()=>{n.setRootElement(o.value)}),e.onUnmounted(()=>{n.setRootElement(void 0),n.unsubscribeRootElement()}),(t,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:o,class:"svc-scroll__wrapper"},[e.createElementVNode("div",{class:"svc-scroll__scroller sv-drag-target-skipped",onScroll:s[0]||(s[0]=()=>e.unref(n).onScrollContainer())},[e.createElementVNode("div",ie,[e.renderSlot(t.$slots,"default")])],32),e.createElementVNode("div",{class:"svc-scroll__scrollbar",onScroll:s[1]||(s[1]=()=>e.unref(n).onScrollScrollbar())},[...s[2]||(s[2]=[e.createElementVNode("div",{class:"svc-scroll__scrollbar-sizer"},null,-1)])],32)],512))}}),ce=e.defineComponent({__name:"PropertyGrid",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.rootCss)},[e.createVNode(e.unref(l.SvComponent),{is:"svc-search",model:o.model.searchManager},null,8,["model"]),e.createVNode(D,null,{default:e.withCtx(()=>[o.model.survey?(e.openBlock(),e.createBlock(e.unref(l.SurveyComponent),{key:0,survey:o.model.survey},null,8,["survey"])):e.createCommentVNode("",!0)]),_:1})],2))}}),de=e.defineComponent({__name:"Tabs",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.model.actions,(s,a)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:a,is:"svc-tab-button",model:s},null,8,["model"]))),128))}}),me={class:"svc-sidebar-tabs__top-container"},pe={class:"svc-sidebar-tabs__collapse-button"},ke={class:"svc-sidebar-tabs__items"},fe={class:"svc-sidebar-tabs__bottom-container"},Ce={class:"svc-sidebar-tabs__items"},ge=e.defineComponent({__name:"TabControl",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.sideBarClassName)},[e.createElementVNode("div",me,[e.createElementVNode("div",pe,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tab-button",model:o.model.expandCollapseAction},null,8,["model"])]),t[0]||(t[0]=e.createElementVNode("div",{class:"svc-sidebar-tabs__separator"},[e.createElementVNode("div")],-1)),e.createElementVNode("div",ke,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.topToolbar},null,8,["model"])])]),e.createElementVNode("div",fe,[e.createElementVNode("div",Ce,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.bottomToolbar},null,8,["model"])])])],2))}}),_e={class:"svc-menu-action"},Be=["title"],be={class:"svc-menu-action__icon"},Ne={class:"svc-menu-action__icon-container"},Ee=e.defineComponent({__name:"TabButton",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>{const s=e.resolveDirective("key2click");return e.openBlock(),e.createElementBlock("div",_e,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),title:o.model.tooltip,onClick:t[0]||(t[0]=a=>o.model.action())},[e.createElementVNode("div",be,[e.createElementVNode("div",Ne,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.model.iconName,size:"auto"},null,8,["iconName"])])])],10,Be)),[[s,{processEsc:!1,disableTabStop:o.model.disableTabStop}]])])}}}),he={class:"svc-property-grid-placeholder"},we={class:"svc-property-grid-placeholder__header"},Se={class:"svc-property-grid-placeholder__title"},ye={class:"svc-property-grid-placeholder__description"},qe=e.defineComponent({__name:"PropertyGridPlaceholder",setup(i){const n=B.editorLocalization;return(o,t)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",we,[e.createElementVNode("span",Se,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderTitle")),1),e.createElementVNode("span",ye,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderDescription")),1)]),t[0]||(t[0]=e.createElementVNode("div",{class:"svc-property-grid-placeholder__content"},[e.createElementVNode("div",{class:"svc-property-grid-placeholder__gap"}),e.createElementVNode("div",{class:"svc-property-grid-placeholder__image"})],-1))]))}}),De={class:"svc-side-bar__container-header svc-sidebar__header-container"},ue={key:0,class:"svc-side-bar__container-title"},$e={key:1,class:"svc-sidebar__header-caption"},Ve={class:"svc-sidebar__header-title"},Te={class:"svc-sidebar__header-subtitle"},Me=e.defineComponent({__name:"SideBarHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",De,[o.model.subTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ue,e.toDisplayString(o.model.title),1)),o.model.subTitle?(e.openBlock(),e.createElementBlock("div",$e,[e.createElementVNode("span",Ve,e.toDisplayString(o.model.title),1),e.createElementVNode("span",Te,e.toDisplayString(o.model.subTitle),1)])):e.createCommentVNode("",!0)]))}}),ze={class:"svc-sidebar__header svc-sidebar__header--tabbed"},Pe={class:"svc-sidebar__header-container svc-sidebar__header-container--with-subtitle"},Ie={class:"svc-sidebar__header-content"},Re={class:"svc-sidebar__header-caption"},Fe={class:"svc-sidebar__header-title"},Le={class:"svc-sidebar__header-subtitle"},Ae=e.defineComponent({__name:"SideBarPropertyGridHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>{const s=e.resolveDirective("key2click");return e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Pe,[e.createElementVNode("div",Ie,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),onClick:t[0]||(t[0]=a=>o.model.action())},[e.createElementVNode("div",Re,[e.createElementVNode("span",Fe,e.toDisplayString(o.model.title),1),e.createElementVNode("span",Le,e.toDisplayString(o.model.tooltip),1)])],2)),[[s,{processEsc:!1}]]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup"})])])])}}}),Ke=e.defineComponent({__name:"QuestionError",props:{errorKey:{},error:{},cssClasses:{},element:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{key:n.errorKey},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:e.normalizeClass(n.cssClasses.error.icon),iconName:"icon-alert_24x24",size:"auto"},null,8,["class"]),e.createElementVNode("span",{class:e.normalizeClass(n.cssClasses?n.cssClasses.error.item||void 0:"panel-error-item")},[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:n.error.locText},null,8,["locString"])],2)]))}}),Qe=["title"],He=["title"],Oe=["title"],Ge=["title"],We=e.defineComponent({__name:"ActionButton",props:{classes:{},selected:{type:Boolean},disabled:{type:Boolean},text:{},title:{},allowBubble:{type:Boolean},click:{type:Function},iconName:{}},setup(i){const n=i,o=s=>{n.click(),n.allowBubble||s.stopPropagation()},t=()=>new y.CssClassBuilder().append(n.classes||"").append("svc-action-button").append("svc-action-button--icon",!!n.iconName).append("svc-action-button--selected",!!n.selected).append("svc-action-button--disabled",!!n.disabled).toString();return(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.iconName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["svc-action-button svc-action-button--disabled",s.classes]),title:s.title},e.toDisplayString(s.text),11,Qe)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("span",{role:"button",class:e.normalizeClass(["svc-action-button",t()]),onClick:o,title:s.title},[e.createTextVNode(e.toDisplayString(s.text),1)],10,He)),[[e.unref(l.key2ClickDirective)]])],64)),s.iconName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(t()),title:s.title},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:s.iconName,size:"auto"},null,8,["iconName"])],10,Oe)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("span",{role:"button",onClick:o,class:e.normalizeClass(t()),title:s.title},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:s.iconName,size:"auto"},null,8,["iconName"])],10,Ge)),[[e.unref(l.key2ClickDirective)]])],64)):e.createCommentVNode("",!0)],64))}}),je=["disabled","title","aria-checked","aria-expanded","role"],Je={key:0,class:"svc-switcher__title"},Ze={inheritAttrs:!1},Xe=e.defineComponent({...Ze,__name:"Switcher",props:{item:{}},setup(i){const n=i;return l.useBase(()=>n.item),(o,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(o.item.getActionBarItemCss()),type:"button",onClick:t[0]||(t[0]=s=>{o.item.action(o.item,!!s.pointerType)}),onKeyup:t[1]||(t[1]=s=>{s.stopPropagation()}),disabled:o.item.disabled,title:o.item.tooltip||o.item.title,"aria-checked":o.item.ariaChecked,"aria-expanded":o.item.ariaExpanded,role:o.item.ariaRole},[e.createElementVNode("div",{class:e.normalizeClass(o.item.getSwitcherIconCss())},[...t[2]||(t[2]=[e.createElementVNode("div",{class:"svc-switcher__icon-thumb"},null,-1)])],2),o.item.hasTitle?(e.openBlock(),e.createElementBlock("span",Je,e.toDisplayString(o.item.title),1)):e.createCommentVNode("",!0)],42,je)),[[e.unref(l.key2ClickDirective),{processEsc:!1,disableTabStop:o.item.disableTabStop}]])}}),Ye={key:0,class:"svd-simulator-content"},Ue={class:"svd-simulator-content"},xe=e.defineComponent({__name:"Simulator",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=e.computed(()=>n.model.simulatorFrame),t=()=>{n.model.device!=="desktop"&&n.model.activateZoom()},s=()=>{n.model.device!=="desktop"&&n.model.deactivateZoom()};return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.model.getRootCss()),onKeydown:r[0]||(r[0]=c=>a.model.tryToZoom(void 0,c)),onMouseover:r[1]||(r[1]=c=>t()),onMouseout:r[2]||(r[2]=c=>s())},[a.model.hasFrame?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ye,[e.createVNode(e.unref(l.SvComponent),{is:"survey-widget",model:a.model.survey},null,8,["model"])])),a.model.hasFrame?(e.openBlock(),e.createElementBlock("div",{key:1,class:"svd-simulator-wrapper",id:"svd-simulator-wrapper",style:e.normalizeStyle({width:o.value.frameWidth+"px",height:o.value.frameHeight+"px"})},[e.createElementVNode("div",{class:"svd-simulator",style:e.normalizeStyle({width:o.value.deviceWidth+"px",height:o.value.deviceHeight+"px",transform:"scale("+o.value.scale+") translate(-50%, -50%)"})},[e.createElementVNode("div",Ue,[e.createVNode(e.unref(l.SvComponent),{is:"survey-widget",model:a.model.survey},null,8,["model"])])],4)],4)):e.createCommentVNode("",!0)],34))}}),ve={class:"svc-surface-placeholder"},eo={class:"svc-surface-placeholder__text"},oo={class:"svc-surface-placeholder__title"},to={class:"svc-surface-placeholder__description"},q=e.defineComponent({__name:"SurfacePlaceholder",props:{name:{},placeholderTitleText:{},placeholderDescriptionText:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",{class:e.normalizeClass(["svc-surface-placeholder__image","svc-surface-placeholder__image--"+n.name])},null,2),e.createElementVNode("div",eo,[e.createElementVNode("div",oo,e.toDisplayString(n.placeholderTitleText),1),e.createElementVNode("div",to,e.toDisplayString(n.placeholderDescriptionText),1)])]))}}),no={key:0,class:"svc-test-tab--empty"},so={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},lo=e.defineComponent({__name:"Test",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-creator-tab__content svc-test-tab__content",{"svc-creator-tab__content--with-toolbar":o.model.isPageToolbarVisible}])},[o.model.survey.isEmpty?(e.openBlock(),e.createElementBlock("div",no,[e.createVNode(q,{name:"preview",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])])):e.createCommentVNode("",!0),o.model.survey.isEmpty?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"svc-plugin-tab__content",onScroll:t[0]||(t[0]=s=>o.model.onScroll())},[e.createVNode(e.unref(l.SvComponent),{is:"survey-simulator",model:o.model.simulator},null,8,["model"]),o.model.showResults?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-results",survey:o.model.survey},null,8,["survey"])):e.createCommentVNode("",!0)],32)),o.model.isPageToolbarVisible?(e.openBlock(),e.createElementBlock("div",so,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),ao={class:"svc-btn__text"},ro=e.defineComponent({inheritAttrs:!1,__name:"TestAgain",props:{model:{}},setup(i){const n=i,o=e.computed(()=>n.model.testAgainAction);return l.useBase(()=>o.value),(t,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:"svc-preview__test-again svc-btn",onClick:s[0]||(s[0]=a=>o.value.action())},[e.createElementVNode("span",ao,e.toDisplayString(o.value.title),1)])),[[e.unref(l.key2ClickDirective)]])}});function b(i,n,o){const t=e.shallowRef(),s=e.watch(n.map(a=>()=>a()),()=>{t.value=i()},{immediate:!0});return l.useBase(()=>t.value,void 0,o),e.onBeforeUnmount(()=>{s()}),t}const io={key:0,class:"svd-test-results"},co={class:"svd-test-results__content"},mo={class:"svd-test-results__header"},po={class:"svd-test-results__header-text"},ko={class:"svd-test-results__header-types"},fo={class:"svd-test-results__text svd-light-bg-color"},Co={class:"svd-test-results__table svd-light-bg-color"},go={class:"svd-light-background-color"},_o={class:"svd-dark-border-color"},Bo={class:"svd-dark-border-color"},bo=e.defineComponent({__name:"SurveyResults",props:{survey:{}},setup(i){const n=i,o=b(()=>n.survey?new B.SurveyResultsModel(n.survey):void 0,[()=>n.survey]);return(t,s)=>e.unref(o)?(e.openBlock(),e.createElementBlock("div",io,[e.createElementVNode("div",co,[e.createElementVNode("div",mo,[e.createElementVNode("div",po,e.toDisplayString(e.unref(o).surveyResultsText),1),e.createElementVNode("div",ko,[e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:e.unref(o).surveyResultsTableText,click:e.unref(o).selectTableClick,disabled:!1,selected:e.unref(o).isTableSelected},null,8,["text","click","selected"]),e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:e.unref(o).surveyResultsJsonText,click:e.unref(o).selectJsonClick,disabled:!1,selected:e.unref(o).isJsonSelected},null,8,["text","click","selected"])])]),e.withDirectives(e.createElementVNode("div",fo,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o).resultText),1)],512),[[e.vShow,e.unref(o).resultViewType==="text"]]),e.withDirectives(e.createElementVNode("div",Co,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",go,[e.createElementVNode("th",_o,e.toDisplayString(e.unref(o).resultsTitle),1),e.createElementVNode("th",Bo,e.toDisplayString(e.unref(o).resultsDisplayValue),1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).resultData,(a,r)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"survey-results-table-row",model:a,key:r},null,8,["model"]))),128))])])],512),[[e.vShow,e.unref(o).resultViewType==="table"]])])])):e.createCommentVNode("",!0)}}),No={key:2},Eo=e.defineComponent({__name:"SurveyResultsRow",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("tr",{onClick:t[0]||(t[0]=(...s)=>o.model.toggle&&o.model.toggle(...s))},[e.createElementVNode("td",{class:"svd-dark-border-color",style:e.normalizeStyle({paddingLeft:o.model.textMargin})},[o.model.isNode?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["svd-test-results__marker",{"svd-test-results__marker--expanded":!o.model.collapsed}]),style:e.normalizeStyle({left:o.model.markerMargin})},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-expand_16x16",size:16})],6)):e.createCommentVNode("",!0),o.model.question?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:1,is:"survey-string",locString:o.model.question.locTitle},null,8,["locString"])):(e.openBlock(),e.createElementBlock("span",No,e.toDisplayString(o.model.title),1))],4),e.createElementVNode("td",{class:e.normalizeClass({"svd-test-results__node-value":o.model.isNode,"svd-dark-border-color":!o.model.isNode})},e.toDisplayString(o.model.getString(o.model.displayValue)),3)])),[[e.unref(l.key2ClickDirective)]]),o.model.isNode&&!o.model.collapsed?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.model.data,(s,a)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"survey-results-table-row",model:s,key:a+1},null,8,["model"]))),128)):e.createCommentVNode("",!0)],64))}}),ho={class:"svc-creator-tab__content"},wo={class:"svc-json-editor-tab__content"},So={class:"svc-json-editor-tab__errros_list"},yo=e.defineComponent({__name:"JsonEditorAce",props:{model:{}},setup(i){const n=i,o=e.ref();return l.useBase(()=>n.model),e.onMounted(()=>n.model.init(window.ace.edit(o.value))),(t,s)=>(e.openBlock(),e.createElementBlock("div",ho,[e.createElementVNode("div",wo,[e.createElementVNode("div",{class:"svc-json-editor-tab__ace-editor",ref_key:"inputEl",ref:o},null,512),e.withDirectives(e.createElementVNode("div",So,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:t.model.errorList},null,8,["model"])],512),[[e.vShow,t.model.hasErrors]])])]))}}),qo={class:"svc-creator-tab__content"},Do={class:"svc-json-editor-tab__content"},uo=["aria-label","disabled"],$o={class:"svc-json-editor-tab__errros_list"},Vo=e.defineComponent({__name:"JsonEditorTextArea",props:{model:{}},setup(i){const n=i,o=e.ref(),t=n.model;return t.canShowErrors=!1,l.useBase(()=>n.model),e.onMounted(()=>{const s=n.model;s.textElement=o.value}),(s,a)=>(e.openBlock(),e.createElementBlock("div",qo,[e.createElementVNode("div",Do,[e.withDirectives(e.createElementVNode("textarea",{class:"svc-json-editor-tab__content-area","aria-label":e.unref(t).ariaLabel,disabled:e.unref(t).readOnly,"onUpdate:modelValue":a[0]||(a[0]=r=>e.unref(t).text=r),onKeydown:a[1]||(a[1]=r=>e.unref(t).checkKey(e.unref(t),r)),ref_key:"inputEl",ref:o}," ",40,uo),[[e.vModelText,e.unref(t).text]]),e.withDirectives(e.createElementVNode("div",$o,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:e.unref(t).errorList},null,8,["model"])],512),[[e.vShow,e.unref(t).hasErrors]])])]))}}),To={class:"svc-json-error__container"},Mo={class:"svc-json-error__title"},zo=["title","aria-label"],Po=e.defineComponent({__name:"JsonEditorErrorItem",props:{item:{}},setup(i){const n=i;l.useBase(()=>n.item);const o=t=>{t.stopPropagation(),n.item.data.fixError()};return(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.item.iconName,size:t.item.iconSize,class:e.normalizeClass("svc-json-error__icon")},null,8,["iconName","size"]),e.createElementVNode("div",To,[e.createElementVNode("div",Mo,[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.item.locTitle},null,8,["locString"])]),t.item.data.showFixButton?e.withDirectives((e.openBlock(),e.createElementBlock("button",{key:0,type:"button",onClick:o,title:t.item.data.fixButtonTitle,"aria-label":t.item.data.fixButtonTitle,class:"svc-json-error__fix-button"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.item.data.fixButtonIcon,size:"auto"},null,8,["iconName"])],8,zo)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)])],64))}}),Io={class:"svc-btn__text"},Ro=e.defineComponent({__name:"LogicAddButton",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=t=>{t.stopPropagation(),n.model.action()};return(t,s)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:e.normalizeClass(["svc-logic-tab__content-action svc-btn",{"svc-logic-tab__content-action--disabled":t.model.enabled!==void 0&&!t.model.enabled}]),onClick:o},[e.createElementVNode("span",Io,e.toDisplayString(t.model.title),1)],2)),[[e.unref(l.key2ClickDirective)]])}}),Fo={class:"svc-creator-tab__content"},Lo={key:0,class:"svc-logic-tab__content-empty"},Ao=e.defineComponent({__name:"Logic",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("div",{class:e.normalizeClass(["svc-plugin-tab__content svc-logic-tab__content",{"svc-logic-tab--empty":!o.model.hasItems}])},[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.itemsSurvey},null,8,["model"]),o.model.hasItems?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Lo,[e.createVNode(q,{name:"logic",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])])),o.model.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ro,{key:1,model:o.model.addNewButton},null,8,["model"]))],2)]))}}),Ko=["id","required","tabindex","disabled","role","aria-required","aria-label","aria-invalid","aria-describedby"],Qo=["id"];y.RendererFactory.Instance.registerRenderer("dropdown","logicoperator","sv-logic-operator");const Ho=e.defineComponent({__name:"LogicOperator",props:{question:{}},setup(i){const n=i,o=e.ref(),t=e.computed(()=>{var c;return(c=n.question.dropdownListModel)!=null?c:new y.DropdownListModel(n.question)});l.useQuestion(n,o,c=>{B.initLogicOperator(c)});const s=c=>{var d;(d=t.value)==null||d.onClick(c)},a=c=>{var d;(d=t.value)==null||d.onClear(c)},r=c=>{var d;(d=t.value)==null||d.keyHandler(c)};return(c,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(c.question.cssClasses.selectWrapper)},[c.question.isReadOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(c.question.getControlClass()),onClick:s,onKeyup:r,id:c.question.inputId,required:c.question.isRequired,tabindex:c.question.isInputReadOnly?void 0:0,disabled:c.question.isInputReadOnly,role:c.question.ariaRole,"aria-required":c.question.ariaRequired,"aria-label":c.question.ariaLabel,"aria-invalid":c.question.ariaInvalid,"aria-describedby":c.question.ariaDescribedBy},[e.createElementVNode("div",{class:e.normalizeClass(c.question.cssClasses.controlValue)},[c.question.locReadOnlyText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.locReadOnlyText},null,8,["locString"])):e.createCommentVNode("",!0)],2),c.question.allowClear&&c.question.cssClasses.cleanButtonIconId?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(c.question.cssClasses.cleanButton),onClick:a},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:e.normalizeClass(c.question.cssClasses.cleanButtonSvg),iconName:c.question.cssClasses.cleanButtonIconId,size:"auto",title:c.question.clearCaption},null,8,["class","iconName","title"])],2)),[[e.vShow,!c.question.isEmpty()]]):e.createCommentVNode("",!0)],42,Ko),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:c.question.popupModel},null,8,["model"])],64)),c.question.isReadOnly?(e.openBlock(),e.createElementBlock("div",{key:1,disabled:"",class:e.normalizeClass(c.question.getControlClass()),id:c.question.inputId},[c.question.locReadOnlyText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.locReadOnlyText},null,8,["locString"])):e.createCommentVNode("",!0)],10,Qo)):e.createCommentVNode("",!0)],2))}}),Oo=e.defineComponent({__name:"EmbeddedSurvey",props:{question:{}},setup(i){const n=i,o=e.ref();l.useQuestion(n,o);const t=e.computed(()=>n.question.embeddedSurvey);return(s,a)=>!!s.question&&!!t.value&&t.value.currentPage?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-page",page:t.value.currentPage,survey:t.value},null,8,["page","survey"])):e.createCommentVNode("",!0)}}),Go=e.defineComponent({inheritAttrs:!1,__name:"LinkValue",props:{question:{}},setup(i){const n=i,o=e.ref(),t=B.editorLocalization.getString("pe.clear");return l.useQuestion(n,o),(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:s.question.linkValueText,click:s.question.doLinkClick.bind(s.question),selected:s.question.isSelected,disabled:!s.question.isClickable,classes:s.question.linkSetButtonCssClasses,title:s.question.tooltip,iconName:s.question.iconName},null,8,["text","click","selected","disabled","classes","title","iconName"]),!s.question.isReadOnly&&s.question.showClear?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-action-button",text:e.unref(t),click:s.question.doClearClick.bind(s.question),selected:s.question.isSelected,disabled:!1,classes:s.question.linkClearButtonCssClasses},null,8,["text","click","selected","classes"])):e.createCommentVNode("",!0)],64))}}),Wo={key:1,class:"st-content"},jo={class:"svc-flex-column st-strings-wrapper"},Jo={class:"svc-flex-row st-strings-header"},Zo={class:"svc-flex-row svc-plugin-tab__content st-strings"},Xo=e.defineComponent({__name:"Translation",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-creator-tab__content svc-translation-tab",o.model.isEmpty?"svc-translation-tab--empty":""])},[o.model.isEmpty?(e.openBlock(),e.createBlock(q,{key:0,name:"translation",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])):e.createCommentVNode("",!0),o.model.isEmpty?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Wo,[e.createElementVNode("div",jo,[e.createElementVNode("div",Jo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsHeaderSurvey},null,8,["model"])]),e.createElementVNode("div",Zo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsSurvey},null,8,["model"])])])]))],2))}}),Yo=(i,n)=>{const o=i.__vccOpts||i;for(const[t,s]of n)o[t]=s;return o},Uo={},xo={class:"sd-translation-line-skeleton"};function vo(i,n){return e.openBlock(),e.createElementBlock("div",xo)}const et=Yo(Uo,[["render",vo]]),ot=e.defineComponent({__name:"TranslateFromAction",props:{item:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.item.data.containerCss)},[e.createElementVNode("span",{class:e.normalizeClass(n.item.data.additionalTitleCss)},e.toDisplayString(n.item.data.additionalTitle),3),e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar-item-dropdown",item:n.item},null,8,["item"])],2))}}),tt={key:0,class:"svc-test-tab--empty"},nt={key:1,class:"svc-plugin-tab__content"},st={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},lt=e.defineComponent({__name:"Theme",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-creator-tab__content svc-test-tab__content",{"svc-creator-tab__content--with-toolbar":o.model.isPageToolbarVisible}])},[o.model.survey.isEmpty?(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(q,{name:"theme",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"])])):e.createCommentVNode("",!0),o.model.survey.isEmpty?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(e.unref(l.SvComponent),{is:"survey-simulator",model:o.model.simulator},null,8,["model"]),o.model.showResults?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-results",survey:o.model.survey},null,8,["survey"])):e.createCommentVNode("",!0)])),o.model.isPageToolbarVisible?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),at=["disabled","value"],rt=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],it=e.defineComponent({__name:"Color",props:{question:{}},setup(i){const n=i;return l.useQuestion(n,e.ref()),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.question.cssClasses.root),onKeydown:t[5]||(t[5]=(...s)=>o.question.onKeyDown&&o.question.onKeyDown(...s))},[e.createElementVNode("label",{class:e.normalizeClass(o.question.getSwatchCss()),style:e.normalizeStyle(o.question.getSwatchStyle())},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.question.cssClasses.swatchIcon,size:"auto"},null,8,["iconName"]),e.createElementVNode("input",{type:"color",disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.colorInput),value:o.question.renderedColorValue,tabindex:"-1",onChange:t[0]||(t[0]=(...s)=>o.question.onColorInputChange&&o.question.onColorInputChange(...s))},null,42,at)],6),e.createElementVNode("input",{autocomplete:"off",disabled:o.question.isInputReadOnly,id:o.question.inputId,placeholder:o.question.renderedPlaceholder,"aria-required":o.question.ariaRequired,"aria-label":o.question.ariaLabel,"aria-invalid":o.question.ariaInvalid,"aria-describedby":o.question.ariaDescribedBy,onChange:t[1]||(t[1]=(...s)=>o.question.onChange&&o.question.onChange(...s)),onKeyup:t[2]||(t[2]=(...s)=>o.question.onKeyUp&&o.question.onKeyUp(...s)),onBlur:t[3]||(t[3]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onBeforeinput:t[4]||(t[4]=(...s)=>o.question.onBeforeInput&&o.question.onBeforeInput(...s)),value:o.question.renderedValue,class:e.normalizeClass(o.question.cssClasses.control)},null,42,rt),o.question.showDropdownAction?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar-item",item:o.question.dropdownAction},null,8,["item"]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:o.question.dropdownAction.popupModel},null,8,["model"])],64)):e.createCommentVNode("",!0)],34))}}),ct=e.defineComponent({__name:"ColorItem",props:{item:{}},setup(i){const n=i;l.useBase(()=>n.item);const o=()=>({backgroundColor:n.item.value});return(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",{class:"spg-color-editor__color-swatch",style:e.normalizeStyle(o())},null,4),e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.item.locTitle},null,8,["locString"])],64))}}),dt=["disabled","value","placeholder"],mt=["disabled","id","aria-required","aria-label","aria-invalid","aria-describedby","title","accept"],pt=["disabled"],kt=["for","aria-label"],ft=e.defineComponent({__name:"File",props:{question:{}},setup(i){const n=e.ref(),o=i;return l.useQuestion(o,n),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.question.cssClasses.root),onDragenter:s[5]||(s[5]=(...a)=>t.question.onDragEnter&&t.question.onDragEnter(...a)),onDragover:s[6]||(s[6]=(...a)=>t.question.onDragOver&&t.question.onDragOver(...a)),onDrop:s[7]||(s[7]=(...a)=>t.question.onDrop&&t.question.onDrop(...a)),onDragleave:s[8]||(s[8]=(...a)=>t.question.onDragLeave&&t.question.onDragLeave(...a)),onKeydown:s[9]||(s[9]=(...a)=>t.question.onKeyDown&&t.question.onKeyDown(...a)),ref_key:"root",ref:n},[e.createElementVNode("input",{type:"text",disabled:t.question.isInputReadOnly,class:e.normalizeClass(t.question.cssClasses.control),value:t.question.renderedValue||"",onChange:s[0]||(s[0]=(...a)=>t.question.onInputChange&&t.question.onInputChange(...a)),onBlur:s[1]||(s[1]=(...a)=>t.question.onInputBlur&&t.question.onInputBlur(...a)),placeholder:t.question.renderedPlaceholder},null,42,dt),e.createElementVNode("input",{type:"file",disabled:t.question.isInputReadOnly,class:e.normalizeClass(t.question.cssClasses.fileInput),id:t.question.inputId,"aria-required":t.question.ariaRequired,"aria-label":t.question.ariaLabel,"aria-invalid":t.question.ariaInvalid,"aria-describedby":t.question.ariaDescribedBy,multiple:!1,title:t.question.inputTitle,tabindex:-1,accept:t.question.acceptedTypes,onChange:s[2]||(s[2]=(...a)=>t.question.onFileInputChange&&t.question.onFileInputChange(...a))},null,42,mt),e.createElementVNode("div",{class:e.normalizeClass(t.question.cssClasses.buttonsContainer)},[e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(t.question.cssClasses.clearButton),disabled:t.question.getIsClearButtonDisabled(),onClick:s[3]||(s[3]=(...a)=>t.question.doClean&&t.question.doClean(...a))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.question.cssClasses.clearButtonIcon,size:"auto",title:t.question.clearButtonCaption},null,8,["iconName","title"])],10,pt)),[[e.unref(l.key2ClickDirective)]]),e.withDirectives((e.openBlock(),e.createElementBlock("label",{role:"button",class:e.normalizeClass(t.question.getChooseButtonCss()),for:t.question.inputId,"aria-label":t.question.chooseButtonCaption,onClick:s[4]||(s[4]=(...a)=>t.question.chooseFiles&&t.question.chooseFiles(...a))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.question.cssClasses.chooseButtonIcon,size:"auto",title:t.question.chooseButtonCaption},null,8,["iconName","title"])],10,kt)),[[e.unref(l.key2ClickDirective)]])],2)],34))}}),Ct=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],gt=["disabled"],_t=["disabled"],Bt=e.defineComponent({__name:"SpinEditor",props:{question:{}},setup(i){const n=i;return l.useQuestion(n,e.ref()),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.question.cssClasses.root),onKeydown:t[16]||(t[16]=(...s)=>o.question.onKeyDown&&o.question.onKeyDown(...s))},[e.createElementVNode("input",{autocomplete:"off",disabled:o.question.isInputReadOnly,id:o.question.inputId,placeholder:o.question.renderedPlaceholder,"aria-required":o.question.ariaRequired,"aria-label":o.question.ariaLabel,"aria-invalid":o.question.ariaInvalid,"aria-describedby":o.question.ariaDescribedBy,onChange:t[0]||(t[0]=(...s)=>o.question.onChange&&o.question.onChange(...s)),onKeydown:t[1]||(t[1]=(...s)=>o.question.onInputKeyDown&&o.question.onInputKeyDown(...s)),onKeyup:t[2]||(t[2]=(...s)=>o.question.onKeyUp&&o.question.onKeyUp(...s)),onBlur:t[3]||(t[3]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[4]||(t[4]=(...s)=>o.question.onFocus&&o.question.onFocus(...s)),onBeforeinput:t[5]||(t[5]=(...s)=>o.question.onBeforeInput&&o.question.onBeforeInput(...s)),value:o.question.renderedValue,class:e.normalizeClass(o.question.cssClasses.control)},null,42,Ct),e.createElementVNode("span",{class:e.normalizeClass(o.question.cssClasses.buttonsContainer)},[e.createElementVNode("button",{disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.arrowButton),onMousedown:t[6]||(t[6]=(...s)=>o.question.onDownButtonMouseDown&&o.question.onDownButtonMouseDown(...s)),onMouseup:t[7]||(t[7]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[8]||(t[8]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[9]||(t[9]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[10]||(t[10]=(...s)=>o.question.onFocus&&o.question.onFocus(...s)),tabindex:"-1"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.question.cssClasses.decreaseButtonIcon,size:"auto"},null,8,["iconName"])],42,gt),e.createElementVNode("button",{disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.arrowButton),onMousedown:t[11]||(t[11]=(...s)=>o.question.onUpButtonMouseDown&&o.question.onUpButtonMouseDown(...s)),onMouseup:t[12]||(t[12]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[13]||(t[13]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[14]||(t[14]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[15]||(t[15]=(...s)=>o.question.onFocus&&o.question.onFocus(...s)),tabindex:"-1"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.question.cssClasses.increaseButtonIcon,size:"auto"},null,8,["iconName"])],42,_t)],2)],34))}}),bt=["disabled","title"],M=e.defineComponent({__name:"TextWithReset",props:{question:{}},setup(i){const n=i,o=()=>"survey-"+n.question.wrappedQuestionTemplate;return l.useQuestion(n,e.ref()),(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.question.getRootClass())},[e.createVNode(e.unref(l.SvComponent),{is:o(),question:t.question},null,8,["is","question"]),e.createElementVNode("button",{class:e.normalizeClass(t.question.cssClasses.resetButton),disabled:t.question.resetValueAdorner.isDisabled,onClick:s[0]||(s[0]=(...a)=>t.question.resetValueAdorner.resetValue&&t.question.resetValueAdorner.resetValue(...a)),title:t.question.resetValueAdorner.caption},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:t.question.cssClasses.resetButtonIcon,size:"auto"},null,8,["iconName"])],10,bt)],2))}}),Nt=["aria-required","aria-label","aria-invalid","aria-errormessage"],Et={class:"spg-boolean-switch__caption"},ht={class:"spg-boolean-switch__title"};y.RendererFactory.Instance.registerRenderer("boolean","switch","sv-boolean-switch");const wt=e.defineComponent({inheritAttrs:!1,__name:"BooleanSwitch",props:{question:{}},setup(i){const n=i,o=e.ref(null);return l.useQuestion(n,o),(t,s)=>{const a=e.resolveDirective("key2click");return e.openBlock(),e.createElementBlock("div",{class:"spg-boolean-switch",role:"checkbox","aria-required":t.question.ariaRequired,"aria-label":t.question.ariaLabel,"aria-invalid":t.question.ariaInvalid,"aria-errormessage":t.question.ariaErrormessage,onClick:s[0]||(s[0]=r=>t.question.value=!t.question.value)},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["spg-boolean-switch__button",t.question.value?"spg-boolean-switch__button--checked":""]),tabindex:"0"},[...s[1]||(s[1]=[e.createElementVNode("div",{class:"spg-boolean-switch__thumb"},[e.createElementVNode("div",{class:"spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left"})],-1),e.createElementVNode("div",{class:"spg-boolean-switch__thumb"},[e.createElementVNode("div",{class:"spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right"})],-1)])],2)),[[a,{disableTabStop:!0}]]),e.createElementVNode("div",Et,[e.createElementVNode("div",ht,[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.question.locTitle},null,8,["locString"])])])],8,Nt)}}}),St={class:"svc-string-editor__content"},yt={class:"svc-string-editor__input"},qt=["textContent","aria-placeholder","contenteditable"],Dt=["aria-placeholder","contenteditable","innerHTML"],ut={key:0,class:"svc-string-editor__error"},$t=e.defineComponent({__name:"StringEditor",props:{locString:{}},setup(i){const n=i,o=e.computed(()=>n.locString.locStr),t=e.computed(()=>n.locString.creator),s=e.ref(),a=e.ref(),r=b(()=>{const p=new B.StringEditorViewModelBase(o.value,t.value);return p.setLocString(o.value),p.blurEditor=()=>{s.value&&(s.value.blur(),s.value.spellcheck=!1)},p.getEditorElement=()=>s.value,setTimeout(()=>p.afterRender()),p},[()=>t.value,()=>o.value],p=>{p&&(p.blurEditor=void 0,p.getEditorElement=void 0,p.dispose())}),c=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.errorText}),d=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.className(o.value.renderedHtml)}),m=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.placeholder}),f=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.contentEditable}),S=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.characterCounter}),N=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.showCharacterCounter}),E=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.getCharacterCounterClass}),u=p=>{var k,_;return s.value&&(s.value.spellcheck=!1),o.value.__isEditing=!1,(k=r.value)==null||k.onBlur(p),(_=r.value)==null?void 0:_.errorText},w=p=>{var k;(k=r.value)==null||k.onFocus(p)},js=p=>{var k;(k=r.value)==null||k.onPaste(p)},R=p=>{var k,_;(k=s.value)==null||k.focus(),o.value.__isEditing=!0,(_=r.value)==null||_.onClick(p)},$=()=>{a.value=o.value.renderedHtml},Js=e.watch(()=>o.value,(p,k)=>{k&&p.onStringChanged.remove($),p&&(p.onStringChanged.add($),$())},{immediate:!0});return e.onMounted(()=>{var p;o.value.__isEditing&&((p=s.value)==null||p.focus())}),e.onUnmounted(()=>{Js(),o.value.onStringChanged.remove($)}),(p,k)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(d.value)},[e.createElementVNode("span",St,[k[11]||(k[11]=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--hover"},null,-1)),k[12]||(k[12]=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--focus"},null,-1)),e.createElementVNode("span",yt,[o.value.hasHtml?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,role:"textbox",class:"sv-string-editor",spellcheck:"false",onFocus:w,onPaste:js,onBlur:u,onInput:k[0]||(k[0]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onInput)&&((g=e.unref(r))==null?void 0:g.onInput(..._))}),onKeydown:k[1]||(k[1]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyDown)&&((g=e.unref(r))==null?void 0:g.onKeyDown(..._))}),onKeyup:k[2]||(k[2]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyUp)&&((g=e.unref(r))==null?void 0:g.onKeyUp(..._))}),onCompositionstart:k[3]||(k[3]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionStart)&&((g=e.unref(r))==null?void 0:g.onCompositionStart(..._))}),onCompositionend:k[4]||(k[4]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionEnd)&&((g=e.unref(r))==null?void 0:g.onCompositionEnd(..._))}),onMouseup:k[5]||(k[5]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onMouseUp)&&((g=e.unref(r))==null?void 0:g.onMouseUp(..._))}),onClick:R,textContent:a.value,"aria-placeholder":m.value,contenteditable:f.value,ref_key:"root",ref:s},null,40,qt)),o.value.hasHtml?(e.openBlock(),e.createElementBlock("span",{key:1,role:"textbox",class:"sv-string-editor sv-string-editor--html",spellcheck:"false",onFocus:w,onBlur:u,onKeydown:k[6]||(k[6]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyDown)&&((g=e.unref(r))==null?void 0:g.onKeyDown(..._))}),onKeyup:k[7]||(k[7]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onKeyUp)&&((g=e.unref(r))==null?void 0:g.onKeyUp(..._))}),onCompositionstart:k[8]||(k[8]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionStart)&&((g=e.unref(r))==null?void 0:g.onCompositionStart(..._))}),onCompositionend:k[9]||(k[9]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onCompositionEnd)&&((g=e.unref(r))==null?void 0:g.onCompositionEnd(..._))}),onMouseup:k[10]||(k[10]=(..._)=>{var C,g;return((C=e.unref(r))==null?void 0:C.onMouseUp)&&((g=e.unref(r))==null?void 0:g.onMouseUp(..._))}),onClick:R,"aria-placeholder":m.value,contenteditable:f.value,innerHTML:a.value,ref_key:"root",ref:s},null,40,Dt)):e.createCommentVNode("",!0),N.value?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:2,is:"sv-character-counter",counter:S.value,remainingCharacterCounter:E.value},null,8,["counter","remainingCharacterCounter"])):e.createCommentVNode("",!0)])]),c.value?(e.openBlock(),e.createElementBlock("span",ut,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)],2))}}),Vt={key:0,class:"svc-toolbox__search-container"},Tt={key:1,class:"svc-toolbox__placeholder"},Mt={key:1,class:"svc-toolbox__category"},zt=e.defineComponent({__name:"AdaptiveToolbox",props:{model:{}},setup(i){const n=i,o=e.computed(()=>n.model.toolbox),t=e.ref();l.useBase(()=>o.value);let s;e.onMounted(()=>{o.value.setRootElement(t.value),s=new y.VerticalResponsivityManager(o.value.containerElement,o.value,o.value.itemSelector)}),e.onUnmounted(()=>{s==null||s.dispose(),o.value.setRootElement(void 0)});const a=e.computed(()=>o.value.renderedActions);return(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value.classNames),ref_key:"root",ref:t},[e.createElementVNode("div",{onFocusout:c[0]||(c[0]=d=>o.value.focusOut(d)),class:"svc-toolbox__panel"},[o.value.showSearch?(e.openBlock(),e.createElementBlock("div",Vt,[o.value.isCompactRendered?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-tool",creator:r.model,key:"searchitem",item:o.value.searchItem,parentModel:o.value,isCompact:o.value.isCompactRendered},null,8,["creator","item","parentModel","isCompact"])):e.createCommentVNode("",!0),e.createVNode(e.unref(l.SvComponent),{is:"svc-search",model:o.value.searchManager},null,8,["model"]),c[1]||(c[1]=e.createElementVNode("div",{class:"svc-toolbox__category-separator svc-toolbox__category-separator--search"},null,-1))])):e.createCommentVNode("",!0),o.value.showPlaceholder?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(o.value.toolboxNoResultsFound),1)):e.createCommentVNode("",!0),e.createVNode(D,null,{default:e.withCtx(()=>[o.value.showInSingleCategory?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.value.categories,(d,m)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-category",key:m,category:d,toolbox:o.value},null,8,["category","toolbox"]))),128)),o.value.showInSingleCategory?(e.openBlock(),e.createElementBlock("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(d,m)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:m,is:"svc-toolbox-tool",creator:r.model,item:d,parentModel:o.value,isCompact:o.value.isCompactRendered},null,8,["creator","item","parentModel","isCompact"]))),128))])):e.createCommentVNode("",!0)]),_:1})],32)],2))}}),Pt={key:0,class:"svc-toolbox__category-separator"},It=e.defineComponent({__name:"ToolboxTool",props:{creator:{},item:{},parentModel:{},isCompact:{type:Boolean}},setup(i){const n=i,o=b(()=>new B.ToolboxToolViewModel(n.item,n.creator,n.parentModel),[()=>n.creator,()=>n.item],t=>{t.dispose()});return l.useBase(()=>n.item),(t,s)=>{var a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.item.css)},[t.item.needSeparator&&!t.creator.toolbox.showCategoryTitles?(e.openBlock(),e.createElementBlock("div",Pt)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"svc-toolbox__tool-content sv-action__content",onPointerdown:s[0]||(s[0]=(...r)=>{var c,d;return((c=e.unref(o))==null?void 0:c.onPointerDown)&&((d=e.unref(o))==null?void 0:d.onPointerDown(...r))})},[e.createVNode(e.unref(l.SvComponent),{viewModel:e.unref(o),is:(a=e.unref(o))==null?void 0:a.itemComponent,item:t.item,creator:t.creator,isCompact:t.isCompact},null,8,["viewModel","is","item","creator","isCompact"])],32)],2)}}}),Rt=["aria-label","title"],Ft={class:"svc-toolbox__item-container"},Lt={key:0,class:"svc-toolbox__item-title"},At=e.defineComponent({__name:"ToolboxItem",props:{creator:{},item:{},isCompact:{type:Boolean},viewModel:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-toolbox__item",n.item.renderedCss]),role:"button","aria-label":n.item.tooltip,title:n.item.tooltip,onClick:o[0]||(o[0]=t=>n.viewModel.click(t))},[e.createElementVNode("span",Ft,[n.item.iconName?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,title:n.item.tooltip||n.item.title,is:"sv-svg-icon",iconName:n.item.iconName,size:"auto",class:"svc-toolbox__item-icon"},null,8,["title","iconName"])):e.createCommentVNode("",!0)]),n.isCompact?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Lt,e.toDisplayString(n.item.title),1))],10,Rt)),[[e.unref(l.key2ClickDirective)]]),n.isCompact?(e.openBlock(),e.createElementBlock("span",{key:0,class:"svc-toolbox__item-banner",onClick:o[1]||(o[1]=t=>n.viewModel.click(t))},[e.createVNode(e.unref(l.SvComponent),{title:n.item.tooltip||n.item.title,is:"sv-svg-icon",iconName:n.item.iconName,size:24,class:"svc-toolbox__item-icon"},null,8,["title","iconName"]),e.createElementVNode("span",null,e.toDisplayString(n.item.title),1)])):e.createCommentVNode("",!0)],64))}}),Kt=e.defineComponent({__name:"ToolboxItemGroup",props:{creator:{},item:{},isCompact:{type:Boolean},viewModel:{}},setup(i){const n=i,o=s=>{n.viewModel.onMouseOver(n.item,s)},t=s=>{n.viewModel.onMouseLeave(n.item,s)};return(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(l.SvComponent),{is:"svc-toolbox-item",viewModel:s.viewModel,item:s.item,creator:s.creator,isCompact:s.isCompact},null,8,["viewModel","item","creator","isCompact"]),e.createElementVNode("div",{class:"svc-toolbox__item-submenu-button",onMouseover:o,onMouseleave:t},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:s.item.subitemsButtonIcon,size:"auto"},null,8,["iconName"]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:s.item.popupModel},null,8,["model"])],32)],64))}}),Qt={class:"svc-toolbox__category-title"},Ht={key:0,class:"svc-toolbox__category-header__controls"},Ot={className:"svc-toolbox__category-header-wrapper"},Gt=e.defineComponent({__name:"ToolboxCategory",props:{category:{},toolbox:{}},setup(i){const n=i;return l.useBase(()=>n.category),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-toolbox__category",{"svc-toolbox__category--collapsed":o.category.collapsed,"svc-toolbox__category--empty":o.category.empty}])},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-toolbox__category-header",{"svc-toolbox__category-header--collapsed":o.toolbox.canCollapseCategories}]),onClick:t[0]||(t[0]=s=>o.category.toggleState())},[e.createElementVNode("span",Qt,e.toDisplayString(o.category.title),1),o.toolbox.canCollapseCategories?(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("div",Ot,[e.withDirectives(e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-arrow-down",class:"svc-toolbox__category-header__button svc-string-editor__button--expand",size:"auto"},null,512),[[e.vShow,o.category.collapsed]])]),e.withDirectives(e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-arrow-up",class:"svc-toolbox__category-header__button svc-string-editor__button--collapse",size:"auto"},null,512),[[e.vShow,!o.category.collapsed]])])):e.createCommentVNode("",!0)],2)),[[e.unref(l.key2ClickDirective)]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.category.items,(s,a)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-tool",item:s,key:a,creator:o.toolbox.creator,parentModel:o.toolbox,isCompact:!1},null,8,["item","creator","parentModel"]))),128))],2))}}),Wt=e.defineComponent({__name:"ToolboxList",props:{model:{},creator:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.model.cssClasses.root)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.model.renderedActions,(t,s)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:s,is:"svc-toolbox-tool",creator:n.creator,item:t,parentModel:n.model,isCompact:!1},null,8,["creator","item","parentModel"]))),128))],2))}}),jt={class:"svc-flex-column"},Jt={class:"svc-tab-designer_content"},Zt={key:0,class:"svc-designer-header"},Xt={class:"svc-designer__placeholder-container","data-sv-drop-target-survey-element":"newGhostPage"},Yt={className:"svc-designer-placeholder-page","data-sv-drop-target-survey-element":"newGhostPage"},Ut={key:0,class:"svc-designer-header"},xt=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],vt=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],en={key:0,class:"svc-tab-designer__tools"},on={key:0,class:"svc-tab-designer__page-navigator"},tn={key:1,class:"svc-tab-designer__toolbar"},nn=e.defineComponent({__name:"Designer",props:{model:{}},setup(i){const n=i,o=e.computed(()=>n.model.survey);return l.useBase(()=>n.model),l.useBase(()=>o.value),(t,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",jt,[t.model.isToolboxVisible?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-toolbox",model:t.model.creator},null,8,["model"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["svc-tab-designer",t.model.getRootCss()]),onClick:s[0]||(s[0]=(...a)=>t.model.clickDesigner&&t.model.clickDesigner(...a))},[e.createVNode(D,null,{default:e.withCtx(()=>[e.createElementVNode("div",Jt,[t.model.showPlaceholder?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.model.creator.showHeaderInEmptySurvey&&t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",Zt,[e.createVNode(e.unref(l.SvComponent),{is:"survey-header",survey:t.model.creator.survey},null,8,["survey"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Xt,[e.createVNode(q,{name:"designer",placeholderTitleText:t.model.placeholderTitleText,placeholderDescriptionText:t.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"]),e.createElementVNode("div",Yt,[e.createVNode(e.unref(l.SvComponent),{is:"svc-page",survey:t.model.creator.survey,creator:t.model.creator,page:t.model.newPage,isGhost:!0},null,8,["survey","creator","page"])])])],64)):e.createCommentVNode("",!0),t.model.showPlaceholder?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass(t.model.designerCss),style:e.normalizeStyle([{maxWidth:t.model.survey.renderedWidth},t.model.surveyThemeVariables])},[t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",Ut,[e.createVNode(e.unref(l.SvComponent),{is:"survey-header",survey:t.model.creator.survey},null,8,["survey"])])):e.createCommentVNode("",!0),t.model.creator.pageEditMode!=="bypage"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.model.pages,a=>(e.openBlock(),e.createElementBlock("div",{key:a.id,class:"svc-page","data-sv-drop-target-survey-element":a!=t.model.newPage?a.name:"newGhostPage","data-sv-drop-target-page":a.name},[e.createVNode(e.unref(l.SvComponent),{is:"svc-page",survey:t.model.creator.survey,creator:t.model.creator,page:a,isGhost:a==t.model.newPage},null,8,["survey","creator","page","isGhost"])],8,xt))),128)):e.createCommentVNode("",!0),t.model.pagesController.page2Display&&t.model.creator.pageEditMode==="bypage"?(e.openBlock(),e.createElementBlock("div",{key:2,class:"svc-page","data-sv-drop-target-survey-element":t.model.displayPageDropTarget,"data-sv-drop-target-page":t.model.pagesController.page2Display.name},[e.createVNode(e.unref(l.SvComponent),{is:"svc-page",page:t.model.pagesController.page2Display,creator:t.model.creator,isGhost:t.model.pagesController.page2Display==t.model.newPage},null,8,["page","creator","isGhost"])],8,vt)):e.createCommentVNode("",!0)],6),t.model.showSurfaceTools?(e.openBlock(),e.createElementBlock("div",en,[t.model.creator.showPageNavigator?(e.openBlock(),e.createElementBlock("div",on,[e.createVNode(e.unref(l.SvComponent),{is:"svc-page-navigator",pagesController:t.model.pagesController,pageEditMode:t.model.creator.pageEditMode},null,8,["pagesController","pageEditMode"])])):e.createCommentVNode("",!0),t.model.showSurfaceToolbar?(e.openBlock(),e.createElementBlock("div",tn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:t.model.surfaceToolbar},null,8,["model"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))])]),_:1})],2)],64))}}),sn=["id","data-sv-drop-target-survey-page"],ln={class:"svc-page__content-actions"},an={key:1,class:"svc-page__content-actions"},rn={key:2,class:"svc-page__placeholder_frame"},cn={class:"svc-panel__placeholder_frame"},dn={class:"svc-panel__placeholder"},mn=e.defineComponent({__name:"Page",props:{creator:{},survey:{},page:{},isGhost:{type:Boolean}},setup(i){const n=i,o=e.ref(),t=b(()=>{const a=new B.PageAdorner(n.creator,n.page);return a.isGhost=n.isGhost,a},[()=>n.page],a=>{a.dispose()});e.watch(()=>n.isGhost,()=>{t.value&&(t.value.isGhost=n.isGhost)}),e.onUpdated(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),e.onMounted(()=>{o.value&&t.value&&(t.value.rootElement=o.value)});const s=a=>{t.value.hover(a,a.currentTarget)};return(a,r)=>e.unref(t).page?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:e.unref(t).page.id,id:e.unref(t).page.id,class:e.normalizeClass(["svc-page__content",e.unref(t).css]),"data-sv-drop-target-survey-page":e.unref(t).dropTargetName,onClick:r[1]||(r[1]=c=>{e.unref(t).select(e.unref(t),c),c.stopPropagation()}),ref_key:"root",ref:o,onDblclick:r[2]||(r[2]=c=>e.unref(t).dblclick(c)),onMouseover:s,onMouseleave:s},[r[3]||(r[3]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),r[4]||(r[4]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(t).allowDragging&&!e.unref(t).isGhost?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:r[0]||(r[0]=c=>e.unref(t).onPointerDown(c))},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:"sv-svg-icon",class:"svc-question__drag-element"},{css:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"}),null,16),e.createElementVNode("div",ln,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"])])],32)):e.createCommentVNode("",!0),!e.unref(t).allowDragging||e.unref(t).isGhost?(e.openBlock(),e.createElementBlock("div",an,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"])])):e.createCommentVNode("",!0),e.createVNode(e.unref(l.SvComponent),{is:"survey-page",survey:e.unref(t).creator.survey,page:e.unref(t).page},null,8,["survey","page"]),e.unref(t).showPlaceholder?(e.openBlock(),e.createElementBlock("div",rn,[e.createElementVNode("div",cn,[e.createElementVNode("div",dn,e.toDisplayString(e.unref(t).placeholderText),1)])])):e.createCommentVNode("",!0),e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).footerActionsBar},null,8,["model"])],42,sn)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)}}),pn={class:"svc-add-new-item-button__text"},kn=e.defineComponent({__name:"AddQuestion",props:{item:{},buttonClass:{},renderPopup:{}},setup(i){const n=i;l.useBase(()=>n.item.data);const o=e.computed(()=>"svc-element__add-new-question "+(n.buttonClass||"svc-btn")),t=e.computed(()=>n.renderPopup===void 0||n.renderPopup!==!1);return(s,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.value),onClick:a[0]||(a[0]=r=>{s.item.data.addNewQuestion(s.item,r),r.stopPropagation()}),onMouseover:a[1]||(a[1]=r=>s.item.data.hoverStopper&&s.item.data.hoverStopper(r,r.currentTarget)),role:"button"},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-panel__add-new-question-icon",iconName:"icon-add_24x24",size:"auto"}),e.createElementVNode("span",pn,e.toDisplayString(s.item.data.addNewQuestionText),1),t.value?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-add-question-type-selector",questionTypeSelectorModel:s.item.data.questionTypeSelectorModel,renderPopup:t.value},null,8,["questionTypeSelectorModel","renderPopup"])):e.createCommentVNode("",!0)],34)),[[e.unref(l.key2ClickDirective)]]),t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-add-question-type-selector",questionTypeSelectorModel:s.item.data.questionTypeSelectorModel,renderPopup:t.value},null,8,["questionTypeSelectorModel","renderPopup"]))],64))}}),fn=["title","aria-label"],Cn=e.defineComponent({__name:"AddQuestionTypeSelector",props:{questionTypeSelectorModel:{},renderPopup:{}},setup(i){const n=i;return l.useBase(()=>n.questionTypeSelectorModel),(o,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("button",{type:"button",onClick:t[0]||(t[0]=s=>{o.questionTypeSelectorModel.action(),s.stopPropagation()}),title:o.questionTypeSelectorModel.title,"aria-label":o.questionTypeSelectorModel.title,class:"svc-element__question-type-selector"},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:"sv-svg-icon",class:"svc-element__question-type-selector-icon"},{iconName:o.questionTypeSelectorModel.iconName,size:"auto",title:o.questionTypeSelectorModel.title}),null,16),o.renderPopup?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-popup",model:o.questionTypeSelectorModel.popupModel},null,8,["model"])):e.createCommentVNode("",!0)],8,fn)),[[e.unref(l.key2ClickDirective)]])}}),gn=e.defineComponent({__name:"Row",props:{componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.creator),t=e.computed(()=>n.componentData.row),s=b(()=>new B.RowViewModel(o.value,t.value,void 0),[()=>o.value,()=>t.value],a=>{a.dispose()});return e.onMounted(()=>{s.value&&s.value.subscribeElementChanges()}),e.onUnmounted(()=>{s.value&&s.value.unsubscribeElementChanges()}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s).cssClasses)},[r[0]||(r[0]=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--top"},null,-1)),r[1]||(r[1]=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--bottom"},null,-1)),e.renderSlot(a.$slots,"default")],2))}}),_n=["data-sv-drop-target-survey-element"],Bn={class:"svc-fake-title"},bn={class:"svc-question__top-actions"},Nn={key:0,class:"svc-panel__placeholder_frame-wrapper"},En={class:"svc-panel__placeholder_frame"},hn={class:"svc-panel__placeholder","data-bind":"text: placeholderText"},V=e.defineComponent({__name:"QuestionBase",props:{createModel:{type:Function},element:{},adornerComponent:{},showPlaceholderComponent:{type:Boolean},placeholderComponent:{},getPlaceholderComponentData:{type:Function},componentName:{},componentData:{}},setup(i){const n=i,o=e.ref(),t=b(()=>n.createModel(),[()=>n.componentName,()=>n.componentData.data,()=>n.componentData.element],r=>{r.dispose()}),s=e.computed(()=>t.value.isBannerShowing?t.value.createBannerParams():null);e.onUpdated(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),e.onMounted(()=>{o.value&&t.value&&(t.value.rootElement=o.value)});const a=r=>{t.value.select(t.value,r),r.stopPropagation()};return(r,c)=>e.unref(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__adorner",e.unref(t).rootCss()]),ref_key:"root",ref:o,onDblclick:c[2]||(c[2]=d=>e.unref(t).dblclick(d)),onMouseover:c[3]||(c[3]=d=>e.unref(t).hover(d,d.currentTarget)),onMouseleave:c[4]||(c[4]=d=>e.unref(t).hover(d,d.currentTarget)),"data-sv-drop-target-survey-element":e.unref(t).element.name||null,"data-bind":"css: rootCss(), attr: { 'data-sv-drop-target-survey-element': element.name || null }, event: { mouseover: function(m, e) { hover(e, $element); }, mouseleave: function(m, e) { hover(e, $element); } }"},[e.unref(t).showHiddenTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t).cssCollapsedHiddenHeader)},[r.element.hasTitle?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-element-title",element:r.element},null,8,["element"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(t).cssCollapsedHiddenTitle)},[e.createElementVNode("span",Bn,e.toDisplayString(r.element.name),1)],2))],2)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:c[1]||(c[1]=d=>{e.unref(t).select(e.unref(t),d),d.stopPropagation()}),class:e.normalizeClass(e.unref(t).css())},[c[5]||(c[5]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1)),c[6]||(c[6]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1)),c[7]||(c[7]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),c[8]||(c[8]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(t).allowDragging?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:c[0]||(c[0]=d=>e.unref(t).onPointerDown(d))},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:"sv-svg-icon",class:"svc-question__drag-element"},{css:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"}),null,16),e.createElementVNode("div",bn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).topActionContainer,handleClick:!1},null,8,["model"])])],32)):e.createCommentVNode("",!0),e.unref(t).needToRenderContent?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(l.SvComponent),{is:"sv-template-renderer",componentName:r.componentName,componentData:r.componentData},null,8,["componentName","componentData"]),e.unref(t).isEmptyElement&&!r.showPlaceholderComponent?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",En,[e.createElementVNode("div",hn,e.toDisplayString(e.unref(t).placeholderText),1)])])):e.createCommentVNode("",!0),e.unref(t).isEmptyElement&&r.showPlaceholderComponent?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),e.mergeProps({key:1,is:r.placeholderComponent},r.getPlaceholderComponentData&&r.getPlaceholderComponentData(e.unref(t))),null,16,["is"])):e.createCommentVNode("",!0),r.adornerComponent?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:2,is:r.adornerComponent,model:e.unref(t),element:r.element},null,8,["is","model","element"])):e.createCommentVNode("",!0),e.unref(t).isBannerShowing?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:3,is:"svc-question-banner",model:s.value},null,8,["model"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"svc-question__content-actions",onFocusin:a},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer,handleClick:!1},null,8,["model"])],32)],64)):e.createCommentVNode("",!0)],2)),[[e.unref(l.key2ClickDirective),{disableTabStop:!0}]])],42,_n)):e.createCommentVNode("",!0)}}),z=e.defineComponent({__name:"Question",props:{componentName:{},componentData:{}},setup(i){const n=i,o=()=>new B.QuestionAdornerViewModel(n.componentData.data,n.componentData.element,null);return(t,s)=>(e.openBlock(),e.createBlock(V,{createModel:o,element:t.componentData.element,"component-name":t.componentName,"component-data":t.componentData},null,8,["element","component-name","component-data"]))}}),wn=e.defineComponent({__name:"QuestionImage",props:{componentName:{},componentData:{}},setup(i){const n=i,o=()=>new B.QuestionImageAdornerViewModel(n.componentData.data,n.componentData.element,null),t=s=>({question:s==null?void 0:s.filePresentationModel});return(s,a)=>(e.openBlock(),e.createBlock(V,{"create-model":o,element:n.componentData.element,"show-placeholder-component":!0,"component-data":s.componentData,"component-name":s.componentName,"placeholder-component":"survey-file","get-placeholder-component-data":t,"adorner-component":"svc-image-question-adorner"},null,8,["element","component-data","component-name"]))}}),Sn={key:0,class:"svc-image-question-controls"},yn=["accept"],qn={class:"svc-context-button",title:void 0,"aria-label":void 0},Dn={key:1,class:"svc-image-question__loading-placeholder"},un={class:"svc-image-question__loading"},$n=e.defineComponent({__name:"Image",props:{model:{},element:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!n.model.isUploading&&!n.model.isEmptyElement?(e.openBlock(),e.createElementBlock("div",Sn,[n.model.allowEdit?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:n.model.acceptedTypes,class:"svc-choose-file-input"},null,8,yn),e.withDirectives((e.openBlock(),e.createElementBlock("span",qn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-choosefile",size:"auto",onClick:o[0]||(o[0]=t=>n.model.chooseFile(n.model))})])),[[e.unref(l.key2ClickDirective)]])],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.model.isUploading&&!n.model.isEmptyElement?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("div",un,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])])):e.createCommentVNode("",!0)],64))}}),Vn={class:"svc-rating-question-content"},Tn=e.defineComponent({__name:"Rating",props:{componentData:{},componentName:{}},setup(i){const n=i,o=b(()=>new B.QuestionRatingAdornerViewModel(n.componentData.data,n.componentData.question,null),[()=>n.componentData.data,()=>n.componentData.question]);return(t,s)=>{var a,r,c,d,m,f,S,N,E;return e.openBlock(),e.createElementBlock("div",Vn,[e.createElementVNode("div",{class:e.normalizeClass((a=e.unref(o))==null?void 0:a.controlsClassNames)},[(r=e.unref(o))!=null&&r.allowRemove?e.withDirectives((e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-svg-icon",iconName:"icon-remove_16x16",size:"auto",onClick:s[0]||(s[0]=u=>{var w;return(w=e.unref(o))==null?void 0:w.removeItem(e.unref(o))}),class:e.normalizeClass((c=e.unref(o))==null?void 0:c.removeClassNames),title:(d=e.unref(o))==null?void 0:d.removeTooltip,"aria-label":(m=e.unref(o))==null?void 0:m.removeTooltip},null,8,["class","title","aria-label"])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0),(f=e.unref(o))!=null&&f.allowAdd?e.withDirectives((e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:1,is:"sv-svg-icon",iconName:"icon-add_16x16",size:"auto",onClick:s[1]||(s[1]=u=>{var w;return(w=e.unref(o))==null?void 0:w.addItem(e.unref(o))}),class:e.normalizeClass((S=e.unref(o))==null?void 0:S.addClassNames),title:(N=e.unref(o))==null?void 0:N.addTooltip,"aria-label":(E=e.unref(o))==null?void 0:E.addTooltip},null,8,["class","title","aria-label"])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default")])}}}),Mn={key:0,class:"svc-matrix-cell__question-controls"},zn=e.defineComponent({__name:"MatrixCell",props:{componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.creator),t=e.computed(()=>n.componentData.row),s=e.computed(()=>n.componentData.column),a=e.computed(()=>n.componentData.element),r=e.computed(()=>n.componentData.question),c=b(()=>{var d;return n.componentData?new B.MatrixCellWrapperViewModel(o.value,a.value,r.value,t.value,s.value||((d=a.value.cell)==null?void 0:d.column)):void 0},[()=>o.value,()=>t.value,()=>s.value,()=>r.value]);return(d,m)=>{var f,S;return e.openBlock(),e.createElementBlock("div",{tabindex:"-1",class:"svc-matrix-cell",onClick:m[1]||(m[1]=N=>{var E;return(E=e.unref(c))==null?void 0:E.selectContext(e.unref(c),N)}),onMouseover:m[2]||(m[2]=N=>{var E;return(E=e.unref(c))==null?void 0:E.hover(N,N.currentTarget)}),onMouseleave:m[3]||(m[3]=N=>{var E;return(E=e.unref(c))==null?void 0:E.hover(N,N.currentTarget)})},[e.createElementVNode("div",{class:e.normalizeClass(["svc-matrix-cell--selected",{"svc-visible":(f=e.unref(c))==null?void 0:f.isSelected}])},null,2),e.renderSlot(d.$slots,"default"),(S=e.unref(c))!=null&&S.isSupportCellEditor?(e.openBlock(),e.createElementBlock("div",Mn,[e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-matrix-cell__question-controls-button svc-context-button",onClick:m[0]||(m[0]=N=>e.unref(c).editQuestion(e.unref(c),N))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-edit",size:"auto"})])),[[e.unref(l.key2ClickDirective)]])])):e.createCommentVNode("",!0)],32)}}}),Pn={class:"svc-question__adorner"},In={class:"svc-question__content svc-question__content--in-popup"},Rn=e.defineComponent({__name:"CellQuestion",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.element);return l.useBase(()=>o.value),(t,s)=>(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",In,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:t.componentName},t.componentData),null,16,["is"])])]))}}),Fn=["data-sv-drop-target-survey-element"],Ln={class:"svc-fake-title"},An={class:"svc-question__top-actions"},Kn={key:0,class:"svc-panel__placeholder_frame-wrapper"},Qn={class:"svc-panel__placeholder_frame"},Hn={class:"svc-panel__placeholder"},On={class:"svc-add-new-item-button__text"},Gn={key:1,class:"svc-panel__add-new-question-container"},Wn={class:"svc-panel__question-type-selector-popup"},jn={class:"svc-panel__add-new-question-wrapper"},Jn=e.defineComponent({__name:"Panel",props:{componentName:{},componentData:{}},setup(i){const n=i,o=b(()=>new B.QuestionAdornerViewModel(n.componentData.data,n.componentData.element,null),[()=>n.componentData.data,()=>n.componentData.element],s=>{s.dispose()}),t=s=>{s.stopPropagation(),o.value.addNewQuestion()};return(s,a)=>e.unref(o)&&!e.unref(o).isDisposed?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__adorner",e.unref(o).rootCss()]),onDblclick:a[3]||(a[3]=r=>e.unref(o).dblclick(r)),onMouseover:a[4]||(a[4]=r=>e.unref(o).hover(r,r.currentTarget)),onMouseleave:a[5]||(a[5]=r=>e.unref(o).hover(r,r.currentTarget)),"data-sv-drop-target-survey-element":e.unref(o).element.name||null,ref:"root"},[e.unref(o).showHiddenTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).cssCollapsedHiddenHeader)},[e.unref(o).element.hasTitle?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-element-title",element:e.unref(o).element},null,8,["element"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).cssCollapsedHiddenTitle)},[e.createElementVNode("span",Ln,e.toDisplayString(e.unref(o).element.name),1)],2))],2)):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).css()),onClick:a[2]||(a[2]=r=>e.unref(o).element.isInteractiveDesignElement?e.unref(o).select(e.unref(o),r):null)},[a[6]||(a[6]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1)),a[7]||(a[7]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1)),a[8]||(a[8]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),a[9]||(a[9]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(o).allowDragging&&e.unref(o).element.isInteractiveDesignElement?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:a[0]||(a[0]=r=>e.unref(o).onPointerDown(r))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"}),e.createElementVNode("div",An,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(o).topActionContainer,handleClick:!1},null,8,["model"])])],32)):e.createCommentVNode("",!0),e.unref(o).needToRenderContent?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:s.componentName},s.componentData),null,16,["is"]),e.unref(o).isEmptyElement?(e.openBlock(),e.createElementBlock("div",Kn,[e.createElementVNode("div",Qn,[e.createElementVNode("div",Hn,e.toDisplayString(e.unref(o).placeholderText),1),e.unref(o).showAddQuestionButton?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-panel__add-new-question svc-action-button",onClick:t},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-panel__add-new-question-icon",iconName:"icon-add_24x24",size:"auto"}),e.createElementVNode("span",On,e.toDisplayString(e.unref(o).addNewQuestionText),1)])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),!e.unref(o).isEmptyElement&&e.unref(o).showAddQuestionButton?(e.openBlock(),e.createElementBlock("div",Gn,[e.createElementVNode("div",Wn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:e.unref(o).questionTypeSelectorModel.popupModel},null,8,["model"])]),e.createElementVNode("div",jn,[e.createVNode(e.unref(l.SvComponent),{is:"svc-add-new-question-btn",item:{data:e.unref(o)},buttonClass:"svc-action-button",renderPopup:!1},null,8,["item"])])])):e.createCommentVNode("",!0),e.unref(o).element.isInteractiveDesignElement?(e.openBlock(),e.createElementBlock("div",{key:2,class:"svc-question__content-actions",onFocusin:a[1]||(a[1]=r=>e.unref(o).select(e.unref(o),r))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(o).actionContainer,handleClick:!1},null,8,["model"])],32)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)),[[e.unref(l.key2ClickDirective),{disableTabStop:!0}]])],42,Fn)):e.createCommentVNode("",!0)}}),Zn=["data-sv-drop-target-item-value"],Xn={class:"svc-item-value-controls"},Yn={key:0,class:"svc-item-value-controls__button svc-item-value-controls__drag"},Un=e.defineComponent({__name:"ItemValue",props:{componentName:{},componentData:{}},setup(i){const n=e.ref(),o=i,t=e.computed(()=>o.componentData.data.creator),s=e.computed(()=>o.componentData.question),a=e.computed(()=>o.componentData.item),r=e.watch(()=>a.value,(d,m)=>{d&&n.value&&d.setRootElement(n.value),m&&m.setRootElement(void 0)});e.onMounted(()=>{n.value&&a.value&&a.value.setRootElement(n.value)}),e.onUnmounted(()=>{a.value.setRootElement(void 0)});const c=b(()=>new B.ItemValueWrapperViewModel(t.value,s.value,a.value),[()=>t.value,()=>s.value,()=>a.value],d=>{d.dispose()});return e.onBeforeUnmount(()=>{r()}),(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["svc-item-value-wrapper",{"svc-item-value--new":e.unref(c).isNew,"svc-item-value--dragging":e.unref(c).isDragging,"svc-item-value--ghost":e.unref(c).isDragDropGhost,"svc-item-value--movedown":e.unref(c).isDragDropMoveDown,"svc-item-value--moveup":e.unref(c).isDragDropMoveUp}]),onPointerdown:m[4]||(m[4]=f=>e.unref(c).onPointerDown(f)),"data-sv-drop-target-item-value":e.unref(c).isDraggable?a.value.value:null,ref_key:"root",ref:n},[m[5]||(m[5]=e.createElementVNode("div",{class:"svc-item-value__ghost"},null,-1)),e.createElementVNode("div",Xn,[e.unref(c).isDraggable?(e.openBlock(),e.createElementBlock("span",Yn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-item-value-controls__drag-icon",iconName:"icon-drag-24x24",size:"auto",title:e.unref(c).dragTooltip},null,8,["title"])])):e.createCommentVNode("",!0),e.unref(c).allowAdd?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,class:"svc-item-value-controls__button svc-item-value-controls__add",onClick:m[0]||(m[0]=f=>e.unref(c).add(e.unref(c))),"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-add_16x16",size:"auto",title:void 0})])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0),e.unref(c).allowRemove?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:2,class:"svc-item-value-controls__button svc-item-value-controls__remove",onClick:m[1]||(m[1]=f=>e.unref(c).remove(e.unref(c))),onBlur:m[2]||(m[2]=f=>e.unref(c).onFocusOut(f)),"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-remove_16x16",size:"auto",title:void 0})],32)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"svc-item-value__item",onClick:m[3]||(m[3]=f=>e.unref(c).select(e.unref(c),f))},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:d.componentName},d.componentData),null,16,["is"])])],42,Zn))}}),xn=["data-sv-drop-target-item-value"],vn={class:"svc-image-item-value-wrapper__content"},es=["accept"],os={key:0,class:"svc-image-item-value__item"},ts={key:2,class:"svc-context-container svc-image-item-value-controls"},ns={class:"sd-imagepicker__item sd-imagepicker__item--inline"},ss={class:"sd-imagepicker__label"},ls={key:0,class:"svc-image-item-value__loading"},as=e.defineComponent({__name:"ImageItemValue",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.data.creator),t=e.computed(()=>n.componentData.question),s=e.computed(()=>n.componentData.item),a=e.ref(),r=b(()=>{const d=new B.ImageItemValueWrapperViewModel(o.value,t.value,s.value,null,null);return a!=null&&a.value&&(d.itemsRoot=a.value),d},[()=>o.value,()=>t.value,()=>s.value],d=>{d.dispose()}),c=e.computed(()=>{const d=!r.value.getIsNewItemSingle();return{width:d?t.value.renderedImageWidth+"px":void 0,height:d?t.value.renderedImageHeight+"px":void 0}});return e.onMounted(()=>{a.value&&(r.value.itemsRoot=a.value)}),(d,m)=>(e.openBlock(),e.createElementBlock("div",{onPointerdown:m[8]||(m[8]=f=>e.unref(r).onPointerDown(f)),class:e.normalizeClass(e.unref(r).getRootCss()),"data-sv-drop-target-item-value":e.unref(r).isDraggable?s.value.value:null,ref_key:"root",ref:a},[e.createElementVNode("div",{class:"svc-image-item-value-wrapper__ghost",style:e.normalizeStyle(c.value)},null,4),e.createElementVNode("div",vn,[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:e.unref(r).acceptedTypes,class:"svc-choose-file-input"},null,8,es),!e.unref(r).isNew&&!e.unref(r).isUploading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(r).isNew?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",os,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:d.componentName},d.componentData),null,16,["is"])])),e.unref(r).isDraggable&&e.unref(r).canRenderControls?(e.openBlock(),e.createElementBlock("span",{key:1,class:"svc-context-button svc-image-item-value-controls__drag-area-indicator",onPointerdown:m[0]||(m[0]=f=>e.unref(r).onPointerDown(f)),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-drag-24x24",size:"auto"})],32)):e.createCommentVNode("",!0),e.unref(r).canRenderControls?(e.openBlock(),e.createElementBlock("div",ts,[e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button",onClick:m[1]||(m[1]=f=>e.unref(r).chooseFile(e.unref(r))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",role:"button",iconName:"icon-choosefile",size:"auto",title:e.unref(r).selectFileTitle},null,8,["title"])])),[[e.unref(l.key2ClickDirective)]]),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button svc-context-button--danger",onClick:m[2]||(m[2]=f=>e.unref(r).remove(e.unref(r))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",role:"button",iconName:"icon-delete",size:"auto",title:e.unref(r).removeFileTitle},null,8,["title"])])),[[e.unref(l.key2ClickDirective)]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.unref(r).isNew||e.unref(r).isUploading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"svc-image-item-value__item",onDragover:m[3]||(m[3]=f=>e.unref(r).onDragOver(f)),onDragleave:m[4]||(m[4]=f=>e.unref(r).onDragLeave(f)),onDrop:m[5]||(m[5]=f=>e.unref(r).onDrop(f))},[e.createElementVNode("div",ns,[e.createElementVNode("label",ss,[e.createElementVNode("div",{style:e.normalizeStyle(c.value),class:"sd-imagepicker__image"},[e.unref(r).isUploading?(e.openBlock(),e.createElementBlock("div",ls,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])):e.createCommentVNode("",!0)],4)])])],32),e.createElementVNode("div",{class:"svc-image-item-value-controls",onPointerdown:m[7]||(m[7]=f=>f.stopPropagation())},[e.unref(r).allowAdd&&!e.unref(r).isUploading?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:0,class:"svc-context-button svc-image-item-value-controls__add",onClick:m[6]||(m[6]=f=>e.unref(r).chooseNewFile(e.unref(r))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-add-lg",size:"auto",title:e.unref(r).addFileTitle},null,8,["title"])])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],32)],64)):e.createCommentVNode("",!0)])],42,xn))}}),rs=e.defineComponent({__name:"QuestionEditor",props:{survey:{}},setup(i){const n=i,o=e.computed(()=>{var a;return(a=n.survey)==null?void 0:a.getAllQuestions()[0]}),t=e.computed(()=>{const a=n.survey;if(a&&o.value){const r=a.getElementWrapperComponentName(o.value);if(r)return r}return"survey-question"}),s=e.computed(()=>{const a=n.survey;let r;return a&&o.value&&(r=a.getElementWrapperComponentData(o.value)),{componentName:"survey-question",componentData:{element:o.value,data:r}}});return(a,r)=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),e.mergeProps({is:t.value},s.value),null,16,["is"]))}}),is=["accept"],cs={class:"svc-context-container svc-logo-image-controls"},ds={key:2,class:"svc-logo-image__loading"},ms=e.defineComponent({__name:"Logo",props:{data:{}},setup(i){const n=i,o=e.computed(()=>n.data),t=e.computed(()=>o.value.survey),s=e.ref(),a=b(()=>new B.LogoImageViewModel(o.value,null),[()=>o.value]),r=e.ref(),c=()=>{r.value=t.value.locLogo.renderedHtml};return e.watch(()=>t.value.locLogo,(d,m)=>{c(),d&&d.onStringChanged.add(c),m&&d.onStringChanged.remove(c)},{immediate:!0}),e.onMounted(()=>{s.value&&(a.value.root=s.value)}),e.onUnmounted(()=>{a.value&&(a.value.root=void 0)}),(d,m)=>(e.openBlock(),e.createElementBlock("div",{class:"svc-logo-image",ref_key:"root",ref:s},[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:e.unref(a).acceptedTypes,class:"svc-choose-file-input"},null,8,is),r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(a).allowEdit&&!e.unref(a).isUploading?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-logo-image-placeholder",onClick:m[0]||(m[0]=f=>e.unref(a).chooseFile(e.unref(a)))},[...m[3]||(m[3]=[e.createElementVNode("svg",null,[e.createElementVNode("use",{"xlink:href":"#icon-image-48x48"})],-1)])])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],64)),r.value&&!e.unref(a).isUploading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).containerCss)},[e.createElementVNode("div",cs,[e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button",onClick:m[1]||(m[1]=f=>e.unref(a).chooseFile(e.unref(a))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-choosefile",size:"auto"})])),[[e.unref(l.key2ClickDirective)]]),e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:"svc-context-button svc-context-button--danger",onClick:m[2]||(m[2]=f=>e.unref(a).remove(e.unref(a))),title:void 0,"aria-label":void 0},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-clear",size:"auto"})])),[[e.unref(l.key2ClickDirective)]])]),e.createVNode(e.unref(l.SvComponent),{is:"sv-logo-image",data:t.value},null,8,["data"])],2)):e.createCommentVNode("",!0),e.unref(a).isUploading?(e.openBlock(),e.createElementBlock("div",ds,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])):e.createCommentVNode("",!0)],512))}}),ps={key:0,class:"svc-search"},ks={class:"svc-search__search-icon"},fs=["aria-label","placeholder"],Cs={class:"svc-search__toolbar"},gs={class:"svc-search__toolbar-counter"},_s=e.defineComponent({__name:"Search",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=e.computed({get:()=>n.model.filterString,set:t=>{const s=n.model;s.filterString=t}});return(t,s)=>t.model.isVisible?(e.openBlock(),e.createElementBlock("div",ps,[e.createElementVNode("div",ks,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:"icon-search",size:"auto"})]),e.withDirectives(e.createElementVNode("input",{type:"text",class:"svc-search__input","onUpdate:modelValue":s[0]||(s[0]=a=>o.value=a),"aria-label":t.model.filterStringPlaceholder,placeholder:t.model.filterStringPlaceholder},null,8,fs),[[e.vModelText,o.value]]),e.createElementVNode("div",Cs,[e.createElementVNode("div",gs,e.toDisplayString(t.model.matchCounterText),1),e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:t.model.searchActionBar},null,8,["model"])])])):e.createCommentVNode("",!0)}}),Bs=["title"],bs=e.defineComponent({__name:"PageNavigator",props:{pagesController:{},pageEditMode:{}},setup(i){const n=i,o=b(()=>new B.PageNavigatorViewModel(n.pagesController,n.pageEditMode),[()=>n.pagesController,()=>n.pageEditMode]),t=e.ref();return e.onMounted(()=>{if(n.pageEditMode!=="bypage"){const s=t.value;o.value.attachToUI(s)}}),e.onBeforeUnmount(()=>{t.value;const s=o.value;s.stopItemsContainerHeightObserver(),s.setScrollableContainer(void 0)}),e.onUnmounted(()=>{o.value.dispose()}),(s,a)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"svc-page-navigator",ref_key:"root",ref:t},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:e.normalizeClass(["svc-page-navigator__selector svc-page-navigator__button",{"svc-page-navigator__button--pressed":e.unref(o).isPopupOpened}]),onClick:a[0]||(a[0]=r=>e.unref(o).togglePageSelector(r)),title:e.unref(o).pageSelectorCaption},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-page-navigator__button-icon",iconName:e.unref(o).icon,size:"auto"},null,8,["iconName"]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:e.unref(o).popupModel},null,8,["model"])],10,Bs)),[[e.unref(l.key2ClickDirective)]]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).visibleItems,r=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-page-navigator-item",key:r.id,model:r},null,8,["model"]))),128))])],512)),[[e.vShow,e.unref(o).visible]])}}),Ns={class:"svc-page-navigator-item"},Es=["title"],hs={class:"svc-page-navigator-item__banner"},ws={class:"svc-page-navigator-item__text"},Ss=e.defineComponent({__name:"PageNavigatorItem",props:{model:{}},setup(i){const n=i;l.useBase(()=>n.model);const o=t=>{n.model.action(),t.stopPropagation(),t.preventDefault()};return(t,s)=>(e.openBlock(),e.createElementBlock("div",Ns,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{role:"button",class:e.normalizeClass(["svc-page-navigator-item-content",{"svc-page-navigator-item--selected":t.model.active,"svc-page-navigator-item--disabled":t.model.disabled}]),onClick:s[0]||(s[0]=a=>o(a))},[e.createElementVNode("div",{class:"svc-page-navigator-item__dot",title:t.model.title},[...s[1]||(s[1]=[e.createElementVNode("div",{class:"svc-page-navigator-item__dot-content"},null,-1)])],8,Es),e.createElementVNode("div",hs,[e.createElementVNode("span",ws,e.toDisplayString(t.model.title),1),s[2]||(s[2]=e.createElementVNode("span",{class:"svc-page-navigator-item__dot"},[e.createElementVNode("span",{class:"svc-page-navigator-item__dot-content"})],-1))])],2)),[[e.unref(l.key2ClickDirective)]])]))}}),ys={class:"svc-question__dropdown-choices--wrapper"},qs={class:"svc-question__dropdown-choices"},Ds=e.defineComponent({__name:"Dropdown",props:{model:{},element:{}},setup(i){const n=i,o=s=>n.element.getItemValueWrapperComponentName(s)||n.model.itemComponent,t=s=>({componentName:n.model.itemComponent,componentData:{question:n.element,item:s,data:n.element.getItemValueWrapperComponentData(s)}});return(s,a)=>(e.openBlock(),e.createElementBlock("div",ys,[e.createElementVNode("div",null,[e.createElementVNode("div",qs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.model.getRenderedItems(),r=>(e.openBlock(),e.createElementBlock("div",{key:r.value,class:e.normalizeClass(s.model.getChoiceCss())},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:o(r)},{ref_for:!0},t(r)),null,16,["is"])],2))),128))]),s.model.needToCollapse?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"svc-action-button",text:s.model.getButtonText(),click:s.model.switchCollapse.bind(s.model),allowBubble:!0},null,8,["text","click"])):e.createCommentVNode("",!0)])]))}}),us=e.defineComponent({__name:"QuestionDropdown",props:{componentName:{},componentData:{}},setup(i){const n=i,o=()=>new B.QuestionDropdownAdornerViewModel(n.componentData.data,n.componentData.element,null);return(t,s)=>(e.openBlock(),e.createBlock(V,{"create-model":o,element:t.componentData.element,"component-name":t.componentName,"component-data":t.componentData,"adorner-component":"svc-dropdown-question-adorner"},null,8,["element","component-name","component-data"]))}}),$s={class:"svc-question__adorner"},Vs={class:"svc-question__content svc-question__content--in-popup"},Ts={class:"svc-question__dropdown-choices"},P="survey-radiogroup-item",Ms=e.defineComponent({__name:"CellQuestionDropdown",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.computed(()=>n.componentData.element),t=a=>o.value.getItemValueWrapperComponentName(a)||P,s=a=>({componentName:P,componentData:{question:o.value,item:a,data:o.value.getItemValueWrapperComponentData(a)}});return l.useBase(()=>o.value),(a,r)=>(e.openBlock(),e.createElementBlock("div",$s,[e.createElementVNode("div",Vs,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:a.componentName},a.componentData),null,16,["is"]),e.createElementVNode("div",Ts,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.visibleChoices,c=>(e.openBlock(),e.createElementBlock("div",{key:c.value,class:"svc-question__dropdown-choice"},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:t(c)},{ref_for:!0},s(c)),null,16,["is"])]))),128))])])]))}}),zs=["data-sv-drop-target-survey-element"],Ps={class:"svc-widget__content"},Is={key:1,class:"svc-panel__placeholder_frame"},Rs={class:"svc-question__content-actions"},Fs={key:0,class:"svc-panel__placeholder_frame"},Ls={class:"svc-panel__placeholder"},As=e.defineComponent({__name:"CustomWidget",props:{componentName:{},componentData:{}},setup(i){const n=i,o=e.ref(),t=b(()=>new B.QuestionAdornerViewModel(n.componentData.data,n.componentData.element,null),[()=>n.componentData.data,()=>n.componentData.element],s=>{s.dispose()});return e.onUpdated(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),e.onMounted(()=>{o.value&&t.value&&(t.value.rootElement=o.value)}),(s,a)=>e.unref(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__adorner",e.unref(t).rootCss()]),onMouseover:a[2]||(a[2]=r=>e.unref(t).hover(r,r.currentTarget)),onMouseleave:a[3]||(a[3]=r=>e.unref(t).hover(r,r.currentTarget)),"data-sv-drop-target-survey-element":e.unref(t).element.name||null,ref_key:"root",ref:o},[e.unref(t).element.isInteractiveDesignElement?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["svc-question__content",e.unref(t).css()]),onClick:a[1]||(a[1]=r=>e.unref(t).select(e.unref(t),r)),"data-bind":"clickBubble: false"},[a[5]||(a[5]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1)),a[6]||(a[6]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1)),a[7]||(a[7]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1)),a[8]||(a[8]=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1)),e.unref(t).allowDragging?(e.openBlock(),e.createElementBlock("div",{key:0,class:"svc-question__drag-area",onPointerdown:a[0]||(a[0]=r=>e.unref(t).onPointerDown(r))},[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",class:"svc-question__drag-element",iconName:"icon-drag-area-indicator_24x16",size:"auto"})],32)):e.createCommentVNode("",!0),e.createElementVNode("div",Ps,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:s.componentName},s.componentData),null,16,["is"])]),e.unref(t).isEmptyElement?(e.openBlock(),e.createElementBlock("div",Is,[...a[4]||(a[4]=[e.createElementVNode("div",{class:"svc-panel__placeholder","data-bind":"text: placeholderText"},null,-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Rs,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer,handleClick:!1},null,8,["model"])])],2)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0),e.unref(t).element.isInteractiveDesignElement?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:s.componentName},s.componentData),null,16,["is"]),e.unref(t).isEmptyElement?(e.openBlock(),e.createElementBlock("div",Fs,[e.createElementVNode("div",Ls,e.toDisplayString(e.unref(t).placeholderText),1)])):e.createCommentVNode("",!0)],64))],42,zs)):e.createCommentVNode("",!0)}}),Ks={class:"svc-carry-forward-panel-wrapper"},Qs={class:"svc-carry-forward-panel"},Hs={class:"svc-carry-forward-panel__link"},Os=e.defineComponent({__name:"QuestionBanner",props:{model:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",Ks,[e.createElementVNode("div",Qs,[e.createElementVNode("span",null,e.toDisplayString(n.model.text)+e.toDisplayString(" "),1),e.createElementVNode("span",Hs,[e.createVNode(e.unref(l.SvComponent),{is:"svc-action-button",text:n.model.actionText,click:n.model.onClick.bind(n.model)},null,8,["text","click"])])])]))}});function Gs(i,n,o){i(n,o)}function I(i){const n=Gs.bind(void 0,i);n("svc-tabbed-menu",J),n("svc-tabbed-menu-item-wrapper",X),n("svc-tabbed-menu-item",U),n("svc-side-bar",oe),n("svc-side-bar-default-header",le),n("svc-side-bar-page",ae),n("svc-tabs",de),n("svc-tab-control",ge),n("svc-tab-button",Ee),n("svc-property-grid-placeholder",qe),n("svc-side-bar-header",Me),n("svc-side-bar-property-grid-header",Ae),n("svc-property-grid",ce),n("svc-object-selector",re),n("svc-search",_s),n("svc-scroll",D),n("svc-switcher",Xe),n("svc-action-button",We),n("svc-question-error",Ke),n("survey-embeddedsurvey",Oo),n("sv-logic-operator",Ho),n("survey-linkvalue",Go),n("survey-color",it),n("color-item",ct),n("sv-boolean-switch",wt),n("survey-fileedit",ft),n("survey-spinedit",Bt),n("survey-textwithreset",M),n("survey-commentwithreset",M),n("survey-widget",l.SurveyComponent),n("survey-simulator",xe),n("svc-tab-test",lo),n("svc-complete-page",ro),n("survey-results",bo),n("survey-results-table-row",Eo),n("json-error-item",Po),n("svc-tab-json-editor-textarea",Vo),n("svc-tab-json-editor-ace",yo),n("svc-tab-translation",Xo),n("sd-translation-line-skeleton",et),n("svc-translate-from-action",ot),n("svc-tab-logic",Ao),n("svc-tab-theme",lt),n("svc-toolbox",zt),n("svc-toolbox-list",Wt),n("svc-toolbox-category",Gt),n("svc-toolbox-tool",It),n("svc-toolbox-item",At),n("svc-toolbox-item-group",Kt),n(B.editableStringRendererName,$t),n("svc-tab-designer",nn),n("svc-page-navigator",bs),n("svc-page-navigator-item",Ss),n("svc-page",mn),n("svc-row",gn),n("svc-add-new-question-btn",kn),n("svc-add-question-type-selector",Cn),n("svc-question",z),n("svc-rating-question",z),n("svc-rating-question-content",Tn),n("svc-image-question",wn),n("svc-image-question-adorner",$n),n("svc-matrix-cell",zn),n("svc-cell-question",Rn),n("svc-cell-dropdown-question",Ms),n("svc-question-editor-content",rs),n("svc-logo-image",ms),n("svc-panel",Jn),n("svc-item-value",Un),n("svc-image-item-value",as),n("svc-dropdown-question",us),n("svc-dropdown-question-adorner",Ds),n("svc-widget-question",As),n("svc-question-banner",Os)}I((i,n)=>l.ComponentFactory.Instance.registerComponent(i,n));const Ws={install(i){i.component("SurveyCreatorComponent",T),I((n,o)=>{i.component(n,o),l.ComponentFactory.Instance.registerComponent(n,n)})}};h.SurveyCreatorComponent=T,h.surveyCreatorPlugin=Ws,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});