survey-creator-vue 2.0.0 → 2.0.2

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.
@@ -1,2 +1,2 @@
1
- (function(E,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):(E=typeof globalThis<"u"?globalThis:E||self,l(E.SurveyCreatorVue={},E.SurveyVue,E.Vue,E.Survey,E.SurveyCreatorCore))})(this,function(E,l,e,y,B){"use strict";const L={class:"svc-flex-column svc-flex-row__element svc-flex-row__element--growing"},A={class:"svc-top-bar"},K={key:0,class:"svc-tabbed-menu-wrapper"},Q=["v-show"],H={class:"svc-creator__content-holder svc-flex-column"},O=["id"],G={key:0,class:"svc-footer-bar"},W=["v-show"],j={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",L,[e.createElementVNode("div",A,[o.value.showTabs?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabbed-menu",model:o.value.tabbedMenu},null,8,["model"])])):e.createCommentVNode("",!0),o.value.showToolbar?(e.openBlock(),e.createElementBlock("div",{key:1,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,Q)):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",H,[(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",{class:e.normalizeClass(["svc-creator-tab",{"svc-creator__toolbox--right":o.value.toolboxLocation=="right"}]),key:r.id,id:"scrollableDiv-"+r.id},[e.createVNode(e.unref(l.SvComponent),{is:r.componentContent,model:r.data.model},null,8,["is","model"])],10,O)):e.createCommentVNode("",!0)],64))),256))])],2),o.value.isMobileView?(e.openBlock(),e.createElementBlock("div",G,[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,W)])):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",j,[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))}}),Z=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)}),e.onUnmounted(()=>{o.dispose(),o=void 0}),(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:"svc-tabbed-menu",ref_key:"container",ref:t},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.model.renderedActions,r=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:r.renderedId,is:"svc-tabbed-menu-item-wrapper",item:r},null,8,["item"]))),128))],512))}}),X={class:"sv-action__content"},Y=e.defineComponent({__name:"TabbedMenuItemWrapper",props:{item:{}},setup(i){const n=e.ref(),o=i;return l.useBase(()=>o.item),e.onMounted(()=>{const t=o.item;t.updateModeCallback=(s,a)=>{t.mode=s,e.nextTick(()=>a(s,n.value))},t.afterRender()}),e.onUnmounted(()=>{const t=o.item;t.updateModeCallback=void 0}),(t,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["svc-tabbed-menu-item-container",[t.item.isVisible?"":"sv-action--hidden",t.item.css]]),ref_key:"root",ref:n},[e.createElementVNode("div",X,[e.createVNode(e.unref(l.SvComponent),{is:t.item.component||"svc-tabbed-menu-item",item:t.item},null,8,["is","item"])])],2))}}),x=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",{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)],2)),[[e.unref(l.key2ClickDirective)]])}}),U={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",U,[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"},ce=[e.createElementVNode("div",{class:"svc-scroll__scrollbar-sizer"},null,-1)],q=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())},ce,32)],512))}}),de=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(q,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))}}),me=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))}}),pe={class:"svc-sidebar-tabs__top-container"},ke={class:"svc-sidebar-tabs__collapse-button"},fe=e.createElementVNode("div",{class:"svc-sidebar-tabs__separator"},[e.createElementVNode("div")],-1),_e={class:"svc-sidebar-tabs__items"},Ce={class:"svc-sidebar-tabs__bottom-container"},ge={class:"svc-sidebar-tabs__items"},Be=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",pe,[e.createElementVNode("div",ke,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tab-button",model:o.model.expandCollapseAction},null,8,["model"])]),fe,e.createVNode(q,null,{default:e.withCtx(()=>[e.createElementVNode("div",_e,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.topToolbar},null,8,["model"])])]),_:1})]),e.createElementVNode("div",Ce,[e.createElementVNode("div",ge,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.bottomToolbar},null,8,["model"])])])],2))}}),be={class:"svc-menu-action"},Ne=["title"],he={class:"svc-menu-action__icon"},Ee={class:"svc-menu-action__icon-container"},we=e.defineComponent({__name:"TabButton",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",be,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),title:o.model.tooltip,onClick:t[0]||(t[0]=s=>o.model.action())},[e.createElementVNode("div",he,[e.createElementVNode("div",Ee,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.model.iconName,size:"auto"},null,8,["iconName"])])])],10,Ne)),[[e.unref(l.key2ClickDirective),{processEsc:!1,disableTabStop:o.model.disableTabStop}]])]))}}),Se={class:"svc-property-grid-placeholder"},ye={class:"svc-property-grid-placeholder__header"},qe={class:"svc-property-grid-placeholder__title"},De={class:"svc-property-grid-placeholder__description"},$e=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),ue=e.defineComponent({__name:"PropertyGridPlaceholder",setup(i){const n=B.editorLocalization;return(o,t)=>(e.openBlock(),e.createElementBlock("div",Se,[e.createElementVNode("div",ye,[e.createElementVNode("span",qe,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderTitle")),1),e.createElementVNode("span",De,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderDescription")),1)]),$e]))}}),Ve={class:"svc-side-bar__container-header svc-sidebar__header-container"},Te={key:0,class:"svc-side-bar__container-title"},Me={key:1,class:"svc-sidebar__header-caption"},ze={class:"svc-sidebar__header-title"},Ie={class:"svc-sidebar__header-subtitle"},Pe=e.defineComponent({__name:"SideBarHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Ve,[o.model.subTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Te,e.toDisplayString(o.model.title),1)),o.model.subTitle?(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("span",ze,e.toDisplayString(o.model.title),1),e.createElementVNode("span",Ie,e.toDisplayString(o.model.subTitle),1)])):e.createCommentVNode("",!0)]))}}),Fe={class:"svc-sidebar__header svc-sidebar__header--tabbed"},Re={class:"svc-sidebar__header-container svc-sidebar__header-container--with-subtitle"},Le={class:"svc-sidebar__header-content"},Ae={class:"svc-sidebar__header-caption"},Ke={class:"svc-sidebar__header-title"},Qe={class:"svc-sidebar__header-subtitle"},He=e.defineComponent({__name:"SideBarPropertyGridHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Fe,[e.createElementVNode("div",Re,[e.createElementVNode("div",Le,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),onClick:t[0]||(t[0]=s=>o.model.action())},[e.createElementVNode("div",Ae,[e.createElementVNode("span",Ke,e.toDisplayString(o.model.title),1),e.createElementVNode("span",Qe,e.toDisplayString(o.model.tooltip),1)])],2)),[[e.unref(l.key2ClickDirective),{processEsc:!1}]]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:o.model.popupModel},null,8,["model"])])])]))}}),Oe=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)]))}}),Ge=["title"],We=["title"],je=["title"],Je=["title"],Ze=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,Ge)):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,We)),[[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,je)):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,Je)),[[e.unref(l.key2ClickDirective)]])],64)):e.createCommentVNode("",!0)],64))}}),Xe=["disabled","title","aria-checked","aria-expanded","role"],Ye=[e.createElementVNode("div",{class:"svc-switcher__icon-thumb"},null,-1)],xe={key:0,class:"svc-switcher__title"},Ue={inheritAttrs:!1},ve=e.defineComponent({...Ue,__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())},Ye,2),o.item.hasTitle?(e.openBlock(),e.createElementBlock("span",xe,e.toDisplayString(o.item.title),1)):e.createCommentVNode("",!0)],42,Xe)),[[e.unref(l.key2ClickDirective),{processEsc:!1,disableTabStop:o.item.disableTabStop}]])}}),eo={key:0,class:"svd-simulator-content"},oo={class:"svd-simulator-content"},to=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",eo,[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",oo,[e.createVNode(e.unref(l.SvComponent),{is:"survey-widget",model:a.model.survey},null,8,["model"])])],4)],4)):e.createCommentVNode("",!0)],34))}}),no={class:"svc-surface-placeholder"},so={class:"svc-surface-placeholder__text"},lo={class:"svc-surface-placeholder__title"},ao={class:"svc-surface-placeholder__description"},D=e.defineComponent({__name:"SurfacePlaceholder",props:{name:{},placeholderTitleText:{},placeholderDescriptionText:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",no,[e.createElementVNode("div",{class:e.normalizeClass(["svc-surface-placeholder__image","svc-surface-placeholder__image--"+n.name])},null,2),e.createElementVNode("div",so,[e.createElementVNode("div",lo,e.toDisplayString(n.placeholderTitleText),1),e.createElementVNode("div",ao,e.toDisplayString(n.placeholderDescriptionText),1)])]))}}),ro={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},io=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.createBlock(D,{key:0,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",ro,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),co={class:"svc-btn__text"},mo=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",co,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 po={key:0,class:"svd-test-results"},ko={class:"svd-test-results__content"},fo={class:"svd-test-results__header"},_o={class:"svd-test-results__header-text"},Co={class:"svd-test-results__header-types"},go={class:"svd-test-results__text svd-light-bg-color"},Bo={class:"svd-test-results__table svd-light-bg-color"},bo={class:"svd-light-background-color"},No={class:"svd-dark-border-color"},ho={class:"svd-dark-border-color"},Eo=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",po,[e.createElementVNode("div",ko,[e.createElementVNode("div",fo,[e.createElementVNode("div",_o,e.toDisplayString(e.unref(o).surveyResultsText),1),e.createElementVNode("div",Co,[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",go,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o).resultText),1)],512),[[e.vShow,e.unref(o).resultViewType==="text"]]),e.withDirectives(e.createElementVNode("div",Bo,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",bo,[e.createElementVNode("th",No,e.toDisplayString(e.unref(o).resultsTitle),1),e.createElementVNode("th",ho,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)}}),wo={key:2},So=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",wo,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))}}),yo={class:"svc-creator-tab__content"},qo={class:"svc-json-editor-tab__content"},Do={class:"svc-json-editor-tab__errros_list"},$o=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",yo,[e.createElementVNode("div",qo,[e.createElementVNode("div",{class:"svc-json-editor-tab__ace-editor",ref_key:"inputEl",ref:o},null,512),e.withDirectives(e.createElementVNode("div",Do,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:t.model.errorList},null,8,["model"])],512),[[e.vShow,t.model.hasErrors]])])]))}}),uo={class:"svc-creator-tab__content"},Vo={class:"svc-json-editor-tab__content"},To=["aria-label","disabled"],Mo={class:"svc-json-editor-tab__errros_list"},zo=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",uo,[e.createElementVNode("div",Vo,[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},`
2
- `,40,To),[[e.vModelText,e.unref(t).text]]),e.withDirectives(e.createElementVNode("div",Mo,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:e.unref(t).errorList},null,8,["model"])],512),[[e.vShow,e.unref(t).hasErrors]])])]))}}),Io={class:"svc-json-error__container"},Po={class:"svc-json-error__title"},Fo=["title","aria-label"],Ro=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",Io,[e.createElementVNode("div",Po,[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,Fo)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)])],64))}}),Lo={class:"svc-btn__text"},M=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",Lo,e.toDisplayString(t.model.title),1)],2)),[[e.unref(l.key2ClickDirective)]])}}),Ao={class:"svc-creator-tab__content"},Ko={key:1,class:"svc-logic-tab__content-empty"},Qo=e.defineComponent({__name:"Logic",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Ao,[e.createElementVNode("div",{class:e.normalizeClass(["svc-plugin-tab__content svc-logic-tab__content",{"svc-logic-tab--empty":!o.model.hasItems}])},[o.model.hasItems?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.itemsSurvey},null,8,["model"]),o.model.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M,{key:0,model:o.model.addNewButton},null,8,["model"]))],64)):e.createCommentVNode("",!0),o.model.hasItems?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ko,[e.createVNode(D,{name:"logic",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"]),o.model.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M,{key:0,model:o.model.addNewButton},null,8,["model"]))]))],2)]))}}),Ho=["id","required","tabindex","disabled","role","aria-required","aria-label","aria-invalid","aria-describedby"],Oo=["id"];y.RendererFactory.Instance.registerRenderer("dropdown","logicoperator","sv-logic-operator");const Go=e.defineComponent({__name:"LogicOperator",props:{question:{}},setup(i){const n=i,o=e.ref(),t=e.computed(()=>n.question.dropdownListModel??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.selectedItemLocText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.selectedItemLocText},null,8,["locString"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(c.question.readOnlyText),1)],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,Ho),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.selectedItemLocText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.selectedItemLocText},null,8,["locString"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(c.question.readOnlyText),1)],10,Oo)):e.createCommentVNode("",!0)],2))}}),Wo=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)}}),jo=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),disabled:!1,classes:s.question.linkClearButtonCssClasses},null,8,["text","click","classes"])):e.createCommentVNode("",!0)],64))}}),Jo={key:1,class:"st-content"},Zo={class:"svc-flex-column st-strings-wrapper"},Xo={class:"svc-flex-row st-strings-header"},Yo={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(D,{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",Jo,[e.createElementVNode("div",Zo,[e.createElementVNode("div",Xo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsHeaderSurvey},null,8,["model"])]),e.createElementVNode("div",Yo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsSurvey},null,8,["model"])])])]))],2))}}),Uo=(i,n)=>{const o=i.__vccOpts||i;for(const[t,s]of n)o[t]=s;return o},vo={},et={class:"sd-translation-line-skeleton"};function ot(i,n){return e.openBlock(),e.createElementBlock("div",et)}const tt=Uo(vo,[["render",ot]]),nt=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))}}),st={key:1,class:"svc-plugin-tab__content"},lt={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},at=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.createBlock(D,{key:0,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",st,[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",lt,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),rt=["disabled","value"],it=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],ct=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,rt)],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,it),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))}}),dt=e.defineComponent({__name:"ColorItem",props:{model:{},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))}}),mt=["disabled","value","placeholder"],pt=["disabled","id","aria-required","aria-label","aria-invalid","aria-describedby","title","accept"],kt=["disabled"],ft=["for","aria-label"],_t=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,mt),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,pt),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,kt)),[[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,ft)),[[e.unref(l.key2ClickDirective)]])],2)],34))}}),Ct=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],gt=["disabled"],Bt=["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[18]||(t[18]=(...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),onClick:t[6]||(t[6]=(...s)=>o.question.onDownButtonClick&&o.question.onDownButtonClick(...s)),onMousedown:t[7]||(t[7]=(...s)=>o.question.onDownButtonMouseDown&&o.question.onDownButtonMouseDown(...s)),onMouseup:t[8]||(t[8]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[9]||(t[9]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[10]||(t[10]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[11]||(t[11]=(...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),onClick:t[12]||(t[12]=(...s)=>o.question.onUpButtonClick&&o.question.onUpButtonClick(...s)),onMousedown:t[13]||(t[13]=(...s)=>o.question.onUpButtonMouseDown&&o.question.onUpButtonMouseDown(...s)),onMouseup:t[14]||(t[14]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[15]||(t[15]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[16]||(t[16]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[17]||(t[17]=(...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,Bt)],2)],34))}}),Nt=["disabled","title"],z=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,Nt)],2))}}),ht=["aria-required","aria-label","aria-invalid","aria-errormessage"],Et=[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)],wt={class:"spg-boolean-switch__caption"},St={class:"spg-boolean-switch__title"};y.RendererFactory.Instance.registerRenderer("boolean","switch","sv-boolean-switch");const yt=e.defineComponent({inheritAttrs:!1,__name:"BooleanSwitch",props:{question:{}},setup(i){const n=i,o=e.ref(null);return l.useQuestion(n,o),(t,s)=>(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]=a=>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"},Et,2)),[[e.unref(l.key2ClickDirective),{disableTabStop:!0}]]),e.createElementVNode("div",wt,[e.createElementVNode("div",St,[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.question.locTitle},null,8,["locString"])])])],8,ht))}}),qt={class:"svc-string-editor__content"},Dt=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--hover"},null,-1),$t=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--focus"},null,-1),ut={class:"svc-string-editor__input"},Vt=["textContent","aria-placeholder","contenteditable"],Tt=["aria-placeholder","contenteditable","innerHTML"],Mt={key:0,class:"svc-string-editor__error"},zt=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}),h=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.getCharacterCounterClass}),$=p=>{var k,g;return s.value&&(s.value.spellcheck=!1),o.value.__isEditing=!1,(k=r.value)==null||k.onBlur(p),(g=r.value)==null?void 0:g.errorText},w=p=>{var k;(k=r.value)==null||k.onFocus(p)},bl=p=>{var k;(k=r.value)==null||k.onPaste(p)},R=p=>{var k,g;(k=s.value)==null||k.focus(),o.value.__isEditing=!0,(g=r.value)==null||g.onClick(p)},u=()=>{a.value=o.value.renderedHtml},Nl=e.watch(()=>o.value,(p,k)=>{k&&p.onStringChanged.remove(u),p&&(p.onStringChanged.add(u),u())},{immediate:!0});return e.onMounted(()=>{var p;o.value.__isEditing&&((p=s.value)==null||p.focus())}),e.onUnmounted(()=>{Nl(),o.value.onStringChanged.remove(u)}),(p,k)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(d.value)},[e.createElementVNode("span",qt,[Dt,$t,e.createElementVNode("span",ut,[o.value.hasHtml?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,role:"textbox",class:"sv-string-editor",spellcheck:"false",onFocus:w,onPaste:bl,onBlur:$,onInput:k[0]||(k[0]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onInput)&&((C=e.unref(r))==null?void 0:C.onInput(...g))}),onKeydown:k[1]||(k[1]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyDown)&&((C=e.unref(r))==null?void 0:C.onKeyDown(...g))}),onKeyup:k[2]||(k[2]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyUp)&&((C=e.unref(r))==null?void 0:C.onKeyUp(...g))}),onCompositionstart:k[3]||(k[3]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionStart)&&((C=e.unref(r))==null?void 0:C.onCompositionStart(...g))}),onCompositionend:k[4]||(k[4]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionEnd)&&((C=e.unref(r))==null?void 0:C.onCompositionEnd(...g))}),onMouseup:k[5]||(k[5]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onMouseUp)&&((C=e.unref(r))==null?void 0:C.onMouseUp(...g))}),onClick:R,textContent:a.value,"aria-placeholder":m.value,contenteditable:f.value,ref_key:"root",ref:s},null,40,Vt)),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:$,onKeydown:k[6]||(k[6]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyDown)&&((C=e.unref(r))==null?void 0:C.onKeyDown(...g))}),onKeyup:k[7]||(k[7]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyUp)&&((C=e.unref(r))==null?void 0:C.onKeyUp(...g))}),onCompositionstart:k[8]||(k[8]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionStart)&&((C=e.unref(r))==null?void 0:C.onCompositionStart(...g))}),onCompositionend:k[9]||(k[9]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionEnd)&&((C=e.unref(r))==null?void 0:C.onCompositionEnd(...g))}),onMouseup:k[10]||(k[10]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onMouseUp)&&((C=e.unref(r))==null?void 0:C.onMouseUp(...g))}),onClick:R,"aria-placeholder":m.value,contenteditable:f.value,innerHTML:a.value,ref_key:"root",ref:s},null,40,Tt)):e.createCommentVNode("",!0),N.value?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:2,is:"sv-character-counter",counter:S.value,remainingCharacterCounter:h.value},null,8,["counter","remainingCharacterCounter"])):e.createCommentVNode("",!0)])]),c.value?(e.openBlock(),e.createElementBlock("span",Mt,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)],2))}}),It={key:0,class:"svc-toolbox__search-container"},Pt=e.createElementVNode("div",{class:"svc-toolbox__category-separator svc-toolbox__category-separator--search"},null,-1),Ft={key:1,class:"svc-toolbox__placeholder"},Rt={key:1,class:"svc-toolbox__category"},Lt=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)}),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",It,[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"]),Pt])):e.createCommentVNode("",!0),o.value.showPlaceholder?(e.openBlock(),e.createElementBlock("div",Ft,e.toDisplayString(o.value.toolboxNoResultsFound),1)):e.createCommentVNode("",!0),e.createVNode(q,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",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,d=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:d.renderedId,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))}}),At={key:0,class:"svc-toolbox__category-separator"},Kt=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],s=>{s.dispose()}),t=e.ref();return e.onMounted(()=>{const s=n.item;s.updateModeCallback=(a,r)=>{s.mode=a,e.nextTick(()=>r(a,t.value))},s.afterRender()}),e.onUnmounted(()=>{const s=n.item;s.updateModeCallback=void 0}),l.useBase(()=>n.item),(s,a)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.item.css),ref_key:"root",ref:t},[s.item.needSeparator&&!s.creator.toolbox.showCategoryTitles?(e.openBlock(),e.createElementBlock("div",At)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"svc-toolbox__tool-content sv-action__content",onPointerdown:a[0]||(a[0]=(...c)=>{var d,m;return((d=e.unref(o))==null?void 0:d.onPointerDown)&&((m=e.unref(o))==null?void 0:m.onPointerDown(...c))})},[e.createVNode(e.unref(l.SvComponent),{viewModel:e.unref(o),is:(r=e.unref(o))==null?void 0:r.itemComponent,item:s.item,creator:s.creator,isCompact:s.isCompact},null,8,["viewModel","is","item","creator","isCompact"])],32)],2)}}}),Qt=["aria-label","title"],Ht={class:"svc-toolbox__item-container"},Ot={key:0,class:"svc-toolbox__item-title"},Gt=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",Ht,[n.item.iconName?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-svg-icon",iconName:n.item.iconName,size:"auto",class:"svc-toolbox__item-icon"},null,8,["iconName"])):e.createCommentVNode("",!0)]),n.isCompact?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Ot,e.toDisplayString(n.item.title),1))],10,Qt)),[[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),{is:"sv-svg-icon",iconName:n.item.iconName,size:24,class:"svc-toolbox__item-icon"},null,8,["iconName"]),e.createElementVNode("span",null,e.toDisplayString(n.item.title),1)])):e.createCommentVNode("",!0)],64))}}),Wt=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))}}),jt={className:"svc-toolbox__category-header-wrapper"},Jt={class:"svc-toolbox__category-title"},Zt={key:0,class:"svc-toolbox__category-header__controls"},Xt={className:"svc-toolbox__category-header-wrapper"},Yt=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.createElementVNode("div",jt,[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",Jt,e.toDisplayString(o.category.title),1),o.toolbox.canCollapseCategories?(e.openBlock(),e.createElementBlock("div",Zt,[e.createElementVNode("div",Xt,[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=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-tool",item:s,key:s.renderedId,creator:o.toolbox.creator,parentModel:o.toolbox,isCompact:!1},null,8,["item","creator","parentModel"]))),128))],2))}}),xt=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))}}),Ut={class:"svc-flex-column"},vt={class:"svc-tab-designer_content"},en={key:0,class:"svc-designer-header"},on={class:"svc-designer__placeholder-container","data-sv-drop-target-survey-element":"newGhostPage"},tn={className:"svc-designer-placeholder-page","data-sv-drop-target-survey-element":"newGhostPage"},nn={key:0,class:"svc-designer-header"},sn=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],ln=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],an={key:0,class:"svc-tab-designer__tools"},rn={key:0,class:"svc-tab-designer__page-navigator"},cn={key:1,class:"svc-tab-designer__toolbar"},dn=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",Ut,[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(q,null,{default:e.withCtx(()=>[e.createElementVNode("div",vt,[t.model.showPlaceholder?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.model.creator.showHeaderInEmptySurvey&&t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",en,[e.createVNode(e.unref(l.SvComponent),{is:"survey-header",survey:t.model.creator.survey},null,8,["survey"])])):e.createCommentVNode("",!0),e.createElementVNode("div",on,[e.createVNode(D,{name:"designer",placeholderTitleText:t.model.placeholderTitleText,placeholderDescriptionText:t.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"]),e.createElementVNode("div",tn,[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.surfaceCssVariables])},[t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",nn,[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,sn))),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,ln)):e.createCommentVNode("",!0)],6),t.model.showSurfaceTools?(e.openBlock(),e.createElementBlock("div",an,[t.model.creator.showPageNavigator?(e.openBlock(),e.createElementBlock("div",rn,[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",cn,[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))}}),mn=["id","data-sv-drop-target-survey-page"],pn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),kn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),fn={class:"svc-page__content-actions"},_n={key:1,class:"svc-page__content-actions"},Cn={key:2,class:"svc-page__placeholder_frame"},gn={class:"svc-panel__placeholder_frame"},Bn={class:"svc-panel__placeholder"},bn=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},[pn,kn,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",fn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"]),e.unref(t).topActionContainer.hasActions?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-action-bar",model:e.unref(t).topActionContainer},null,8,["model"])):e.createCommentVNode("",!0)])],32)):e.createCommentVNode("",!0),!e.unref(t).allowDragging||e.unref(t).isGhost?(e.openBlock(),e.createElementBlock("div",_n,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"]),e.unref(t).topActionContainer.hasActions?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-action-bar",model:e.unref(t).topActionContainer},null,8,["model"])):e.createCommentVNode("",!0)])):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",Cn,[e.createElementVNode("div",gn,[e.createElementVNode("div",Bn,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,mn)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)}}),Nn={class:"svc-add-new-item-button__text"},hn=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))},[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",Nn,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))}}),En=["title","aria-label"],wn=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,En)),[[e.unref(l.key2ClickDirective)]])}}),Sn=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--top"},null,-1),yn=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--bottom"},null,-1),qn=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)},[Sn,yn,e.renderSlot(a.$slots,"default")],2))}}),Dn=["data-sv-drop-target-survey-element"],$n={class:"svc-fake-title"},un=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1),Vn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1),Tn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),Mn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),zn={class:"svc-question__top-actions"},In={key:0,class:"svc-panel__placeholder_frame-wrapper"},Pn={class:"svc-panel__placeholder_frame"},Fn={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],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",$n,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())},[un,Vn,Tn,Mn,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",zn,[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",In,[e.createElementVNode("div",Pn,[e.createElementVNode("div",Fn,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,Dn)):e.createCommentVNode("",!0)}}),I=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"]))}}),Rn=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"]))}}),Ln={key:0,class:"svc-image-question-controls"},An=["accept"],Kn={class:"svc-context-button",title:void 0,"aria-label":void 0},Qn={key:1,class:"svc-image-question__loading-placeholder"},Hn={class:"svc-image-question__loading"},On=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",Ln,[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,An),e.withDirectives((e.openBlock(),e.createElementBlock("span",Kn,[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",Qn,[e.createElementVNode("div",Hn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])])):e.createCommentVNode("",!0)],64))}}),Gn={class:"svc-rating-question-content"},Wn=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,h;return e.openBlock(),e.createElementBlock("div",Gn,[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]=$=>{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]=$=>{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":(h=e.unref(o))==null?void 0:h.addTooltip},null,8,["class","title","aria-label"])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default")])}}}),jn={key:0,class:"svc-matrix-cell__question-controls"},Jn=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 h;return(h=e.unref(c))==null?void 0:h.selectContext(e.unref(c),N)}),onMouseover:m[2]||(m[2]=N=>{var h;return(h=e.unref(c))==null?void 0:h.hover(N,N.currentTarget)}),onMouseleave:m[3]||(m[3]=N=>{var h;return(h=e.unref(c))==null?void 0:h.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",jn,[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)}}}),Zn={class:"svc-question__adorner"},Xn={class:"svc-question__content svc-question__content--in-popup"},Yn=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",Zn,[e.createElementVNode("div",Xn,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:t.componentName},t.componentData),null,16,["is"])])]))}}),xn=["data-sv-drop-target-survey-element"],Un={class:"svc-fake-title"},vn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1),es=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1),os=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),ts=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),ns={class:"svc-question__top-actions"},ss={key:0,class:"svc-panel__placeholder_frame-wrapper"},ls={class:"svc-panel__placeholder_frame"},as={class:"svc-panel__placeholder"},rs={class:"svc-add-new-item-button__text"},is={key:1,class:"svc-panel__add-new-question-container"},cs={class:"svc-panel__question-type-selector-popup"},ds={class:"svc-panel__add-new-question-wrapper"},ms=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",Un,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)},[vn,es,os,ts,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",ns,[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",ss,[e.createElementVNode("div",ls,[e.createElementVNode("div",as,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",rs,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",is,[e.createElementVNode("div",cs,[e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:e.unref(o).questionTypeSelectorModel.popupModel},null,8,["model"])]),e.createElementVNode("div",ds,[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,xn)):e.createCommentVNode("",!0)}}),ps=["data-sv-drop-target-item-value"],ks=e.createElementVNode("div",{class:"svc-item-value__ghost"},null,-1),fs={class:"svc-item-value-controls"},_s={key:0,class:"svc-item-value-controls__button svc-item-value-controls__drag"},Cs=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},[ks,e.createElementVNode("div",fs,[e.unref(c).isDraggable?(e.openBlock(),e.createElementBlock("span",_s,[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,ps))}}),gs=["data-sv-drop-target-item-value"],Bs={class:"svc-image-item-value-wrapper__content"},bs=["accept"],Ns={key:0,class:"svc-image-item-value__item"},hs={key:2,class:"svc-context-container svc-image-item-value-controls"},Es={class:"sd-imagepicker__item sd-imagepicker__item--inline"},ws={class:"sd-imagepicker__label"},Ss={key:0,class:"svc-image-item-value__loading"},ys=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",Bs,[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:e.unref(r).acceptedTypes,class:"svc-choose-file-input"},null,8,bs),!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",Ns,[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",hs,[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",Es,[e.createElementVNode("label",ws,[e.createElementVNode("div",{style:e.normalizeStyle(c.value),class:"sd-imagepicker__image"},[e.unref(r).isUploading?(e.openBlock(),e.createElementBlock("div",Ss,[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,gs))}}),qs=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"]))}}),Ds=["accept"],$s=[e.createElementVNode("svg",null,[e.createElementVNode("use",{"xlink:href":"#icon-image-48x48"})],-1)],us={class:"svc-context-container svc-logo-image-controls"},Vs={key:2,class:"svc-logo-image__loading"},Ts=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,Ds),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)))},$s)),[[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",us,[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",Vs,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])):e.createCommentVNode("",!0)],512))}}),Ms={key:0,class:"svc-search"},zs={class:"svc-search__search-icon"},Is=["aria-label","placeholder"],Ps={class:"svc-search__toolbar"},Fs={class:"svc-search__toolbar-counter"},Rs=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",Ms,[e.createElementVNode("div",zs,[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,Is),[[e.vModelText,o.value]]),e.createElementVNode("div",Ps,[e.createElementVNode("div",Fs,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)}}),Ls=["title"],As=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",{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,Ls)),[[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]])}}),Ks={class:"svc-page-navigator-item"},Qs=["title"],Hs=[e.createElementVNode("div",{class:"svc-page-navigator-item__dot-content"},null,-1)],Os={class:"svc-page-navigator-item__banner"},Gs={class:"svc-page-navigator-item__text"},Ws=e.createElementVNode("span",{class:"svc-page-navigator-item__dot"},[e.createElementVNode("span",{class:"svc-page-navigator-item__dot-content"})],-1),js=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",Ks,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{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},Hs,8,Qs),e.createElementVNode("div",Os,[e.createElementVNode("span",Gs,e.toDisplayString(t.model.title),1),Ws])],2)),[[e.unref(l.key2ClickDirective)]])]))}}),Js={class:"svc-question__dropdown-choices--wrapper"},Zs={class:"svc-question__dropdown-choices"},Xs=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",Js,[e.createElementVNode("div",null,[e.createElementVNode("div",Zs,[(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)},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)])]))}}),Ys=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"]))}}),xs={class:"svc-question__adorner"},Us={class:"svc-question__content svc-question__content--in-popup"},vs={class:"svc-question__dropdown-choices"},P="survey-radiogroup-item",el=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",xs,[e.createElementVNode("div",Us,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:a.componentName},a.componentData),null,16,["is"]),e.createElementVNode("div",vs,[(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)},s(c)),null,16,["is"])]))),128))])])]))}}),ol=["data-sv-drop-target-survey-element"],tl=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1),nl=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1),sl=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),ll=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),al={class:"svc-widget__content"},rl={key:1,class:"svc-panel__placeholder_frame"},il=[e.createElementVNode("div",{class:"svc-panel__placeholder","data-bind":"text: placeholderText"},null,-1)],cl={class:"svc-question__content-actions"},dl={key:0,class:"svc-panel__placeholder_frame"},ml={class:"svc-panel__placeholder"},pl=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"},[tl,nl,sl,ll,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",al,[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",rl,il)):e.createCommentVNode("",!0),e.createElementVNode("div",cl,[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",dl,[e.createElementVNode("div",ml,e.toDisplayString(e.unref(t).placeholderText),1)])):e.createCommentVNode("",!0)],64))],42,ol)):e.createCommentVNode("",!0)}}),kl={class:"svc-carry-forward-panel-wrapper"},fl={class:"svc-carry-forward-panel"},_l={class:"svc-carry-forward-panel__link"},Cl=e.defineComponent({__name:"QuestionBanner",props:{model:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",kl,[e.createElementVNode("div",fl,[e.createElementVNode("span",null,e.toDisplayString(n.model.text)+e.toDisplayString(" "),1),e.createElementVNode("span",_l,[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 gl(i,n,o){i(n,o)}function F(i){const n=gl.bind(void 0,i);n("svc-tabbed-menu",Z),n("svc-tabbed-menu-item-wrapper",Y),n("svc-tabbed-menu-item",x),n("svc-side-bar",oe),n("svc-side-bar-default-header",le),n("svc-side-bar-page",ae),n("svc-tabs",me),n("svc-tab-control",Be),n("svc-tab-button",we),n("svc-property-grid-placeholder",ue),n("svc-side-bar-header",Pe),n("svc-side-bar-property-grid-header",He),n("svc-property-grid",de),n("svc-object-selector",re),n("svc-search",Rs),n("svc-scroll",q),n("svc-switcher",ve),n("svc-action-button",Ze),n("svc-question-error",Oe),n("survey-embeddedsurvey",Wo),n("sv-logic-operator",Go),n("survey-linkvalue",jo),n("survey-color",ct),n("color-item",dt),n("sv-boolean-switch",yt),n("survey-fileedit",_t),n("survey-spinedit",bt),n("survey-textwithreset",z),n("survey-commentwithreset",z),n("survey-widget",l.SurveyComponent),n("survey-simulator",to),n("svc-tab-preview",io),n("svc-complete-page",mo),n("survey-results",Eo),n("survey-results-table-row",So),n("json-error-item",Ro),n("svc-tab-json-editor-textarea",zo),n("svc-tab-json-editor-ace",$o),n("svc-tab-translation",xo),n("sd-translation-line-skeleton",tt),n("svc-translate-from-action",nt),n("svc-tab-logic",Qo),n("svc-tab-theme",at),n("svc-toolbox",Lt),n("svc-toolbox-list",xt),n("svc-toolbox-category",Yt),n("svc-toolbox-tool",Kt),n("svc-toolbox-item",Gt),n("svc-toolbox-item-group",Wt),n(B.editableStringRendererName,zt),n("svc-tab-designer",dn),n("svc-page-navigator",As),n("svc-page-navigator-item",js),n("svc-page",bn),n("svc-row",qn),n("svc-add-new-question-btn",hn),n("svc-add-question-type-selector",wn),n("svc-question",I),n("svc-rating-question",I),n("svc-rating-question-content",Wn),n("svc-image-question",Rn),n("svc-image-question-adorner",On),n("svc-matrix-cell",Jn),n("svc-cell-question",Yn),n("svc-cell-dropdown-question",el),n("svc-question-editor-content",qs),n("svc-logo-image",Ts),n("svc-panel",ms),n("svc-item-value",Cs),n("svc-image-item-value",ys),n("svc-dropdown-question",Ys),n("svc-dropdown-question-adorner",Xs),n("svc-widget-question",pl),n("svc-question-banner",Cl)}F((i,n)=>l.ComponentFactory.Instance.registerComponent(i,n));const Bl={install(i){i.component("SurveyCreatorComponent",T),F((n,o)=>{i.component(n,o),l.ComponentFactory.Instance.registerComponent(n,n)})}};E.SurveyCreatorComponent=T,E.surveyCreatorPlugin=Bl,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
1
+ (function(E,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):(E=typeof globalThis<"u"?globalThis:E||self,l(E.SurveyCreatorVue={},E.SurveyVue,E.Vue,E.Survey,E.SurveyCreatorCore))})(this,function(E,l,e,y,B){"use strict";const L={class:"svc-flex-column svc-flex-row__element svc-flex-row__element--growing"},A={class:"svc-top-bar"},K={key:0,class:"svc-tabbed-menu-wrapper"},Q=["v-show"],H={class:"svc-creator__content-holder svc-flex-column"},O=["aria-labelledby","id"],G={key:0,class:"svc-footer-bar"},W=["v-show"],j={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",L,[e.createElementVNode("div",A,[o.value.showTabs?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabbed-menu",model:o.value.tabbedMenu},null,8,["model"])])):e.createCommentVNode("",!0),o.value.showToolbar?(e.openBlock(),e.createElementBlock("div",{key:1,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,Q)):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",H,[(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,O)):e.createCommentVNode("",!0)],64))),256))])],2),o.value.isMobileView?(e.openBlock(),e.createElementBlock("div",G,[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,W)])):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",j,[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))}}),Z=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)}),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.renderedId,is:"svc-tabbed-menu-item-wrapper",item:r},null,8,["item"]))),128))],512))}}),X={class:"sv-action__content"},Y=e.defineComponent({__name:"TabbedMenuItemWrapper",props:{item:{}},setup(i){const n=e.ref(),o=i;return l.useBase(()=>o.item),e.onMounted(()=>{const t=o.item;t.updateModeCallback=(s,a)=>{t.mode=s,e.nextTick(()=>a(s,n.value))},t.afterRender()}),e.onUnmounted(()=>{const t=o.item;t.updateModeCallback=void 0}),(t,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["svc-tabbed-menu-item-container",[t.item.isVisible?"":"sv-action--hidden",t.item.css]]),ref_key:"root",ref:n},[e.createElementVNode("div",X,[e.createVNode(e.unref(l.SvComponent),{is:t.item.component||"svc-tabbed-menu-item",item:t.item},null,8,["is","item"])])],2))}}),x=["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,x)),[[e.unref(l.key2ClickDirective)]])}}),v={class:"svc-flex-row svc-side-bar__wrapper"},ee={class:"svc-side-bar__container-wrapper"},oe={class:"svc-side-bar__container-content"},te=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",v,[e.withDirectives(e.createElementVNode("div",ee,[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",oe,[(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]])}}),ne={class:"svc-side-bar__container-header"},se={class:"svc-side-bar__container-actions"},le={key:0,class:"svc-side-bar__container-title"},ae=e.defineComponent({__name:"SideBarDefaultHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",se,[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",le,e.toDisplayString(o.model.title),1)):e.createCommentVNode("",!0)]))}}),re=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)}}),ie=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)}}),ce={class:"svc-scroll__container"},de=[e.createElementVNode("div",{class:"svc-scroll__scrollbar-sizer"},null,-1)],q=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",ce,[e.renderSlot(t.$slots,"default")])],32),e.createElementVNode("div",{class:"svc-scroll__scrollbar",onScroll:s[1]||(s[1]=()=>e.unref(n).onScrollScrollbar())},de,32)],512))}}),me=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(q,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))}}),pe=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))}}),ke={class:"svc-sidebar-tabs__top-container"},fe={class:"svc-sidebar-tabs__collapse-button"},_e=e.createElementVNode("div",{class:"svc-sidebar-tabs__separator"},[e.createElementVNode("div")],-1),Ce={class:"svc-sidebar-tabs__items"},ge={class:"svc-sidebar-tabs__bottom-container"},Be={class:"svc-sidebar-tabs__items"},be=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",ke,[e.createElementVNode("div",fe,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tab-button",model:o.model.expandCollapseAction},null,8,["model"])]),_e,e.createVNode(q,null,{default:e.withCtx(()=>[e.createElementVNode("div",Ce,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.topToolbar},null,8,["model"])])]),_:1})]),e.createElementVNode("div",ge,[e.createElementVNode("div",Be,[e.createVNode(e.unref(l.SvComponent),{is:"svc-tabs",model:o.model.bottomToolbar},null,8,["model"])])])],2))}}),Ne={key:0,class:"svc-menu-action"},he=["title"],Ee={class:"svc-menu-action__icon"},we={class:"svc-menu-action__icon-container"},Se=e.defineComponent({__name:"TabButton",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>o.model.visible?(e.openBlock(),e.createElementBlock("div",Ne,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),title:o.model.tooltip,onClick:t[0]||(t[0]=s=>o.model.action())},[e.createElementVNode("div",Ee,[e.createElementVNode("div",we,[e.createVNode(e.unref(l.SvComponent),{is:"sv-svg-icon",iconName:o.model.iconName,size:"auto"},null,8,["iconName"])])])],10,he)),[[e.unref(l.key2ClickDirective),{processEsc:!1,disableTabStop:o.model.disableTabStop}]])])):e.createCommentVNode("",!0)}}),ye={class:"svc-property-grid-placeholder"},qe={class:"svc-property-grid-placeholder__header"},De={class:"svc-property-grid-placeholder__title"},$e={class:"svc-property-grid-placeholder__description"},ue=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),Ve=e.defineComponent({__name:"PropertyGridPlaceholder",setup(i){const n=B.editorLocalization;return(o,t)=>(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("div",qe,[e.createElementVNode("span",De,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderTitle")),1),e.createElementVNode("span",$e,e.toDisplayString(e.unref(n).getString("ed.propertyGridPlaceholderDescription")),1)]),ue]))}}),Te={class:"svc-side-bar__container-header svc-sidebar__header-container"},Me={key:0,class:"svc-side-bar__container-title"},ze={key:1,class:"svc-sidebar__header-caption"},Ie={class:"svc-sidebar__header-title"},Pe={class:"svc-sidebar__header-subtitle"},Fe=e.defineComponent({__name:"SideBarHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Te,[o.model.subTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Me,e.toDisplayString(o.model.title),1)),o.model.subTitle?(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("span",Ie,e.toDisplayString(o.model.title),1),e.createElementVNode("span",Pe,e.toDisplayString(o.model.subTitle),1)])):e.createCommentVNode("",!0)]))}}),Re={class:"svc-sidebar__header svc-sidebar__header--tabbed"},Le={class:"svc-sidebar__header-container svc-sidebar__header-container--with-subtitle"},Ae={class:"svc-sidebar__header-content"},Ke={class:"svc-sidebar__header-caption"},Qe={class:"svc-sidebar__header-title"},He={class:"svc-sidebar__header-subtitle"},Oe=e.defineComponent({__name:"SideBarPropertyGridHeader",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("div",Le,[e.createElementVNode("div",Ae,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.model.buttonClassName),onClick:t[0]||(t[0]=s=>o.model.action())},[e.createElementVNode("div",Ke,[e.createElementVNode("span",Qe,e.toDisplayString(o.model.title),1),e.createElementVNode("span",He,e.toDisplayString(o.model.tooltip),1)])],2)),[[e.unref(l.key2ClickDirective),{processEsc:!1}]]),e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:o.model.popupModel},null,8,["model"])])])]))}}),Ge=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)]))}}),We=["title"],je=["title"],Je=["title"],Ze=["title"],Xe=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,We)):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,je)),[[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,Je)):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,Ze)),[[e.unref(l.key2ClickDirective)]])],64)):e.createCommentVNode("",!0)],64))}}),Ye=["disabled","title","aria-checked","aria-expanded","role"],xe=[e.createElementVNode("div",{class:"svc-switcher__icon-thumb"},null,-1)],Ue={key:0,class:"svc-switcher__title"},ve={inheritAttrs:!1},eo=e.defineComponent({...ve,__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())},xe,2),o.item.hasTitle?(e.openBlock(),e.createElementBlock("span",Ue,e.toDisplayString(o.item.title),1)):e.createCommentVNode("",!0)],42,Ye)),[[e.unref(l.key2ClickDirective),{processEsc:!1,disableTabStop:o.item.disableTabStop}]])}}),oo={key:0,class:"svd-simulator-content"},to={class:"svd-simulator-content"},no=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",oo,[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",to,[e.createVNode(e.unref(l.SvComponent),{is:"survey-widget",model:a.model.survey},null,8,["model"])])],4)],4)):e.createCommentVNode("",!0)],34))}}),so={class:"svc-surface-placeholder"},lo={class:"svc-surface-placeholder__text"},ao={class:"svc-surface-placeholder__title"},ro={class:"svc-surface-placeholder__description"},D=e.defineComponent({__name:"SurfacePlaceholder",props:{name:{},placeholderTitleText:{},placeholderDescriptionText:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("div",{class:e.normalizeClass(["svc-surface-placeholder__image","svc-surface-placeholder__image--"+n.name])},null,2),e.createElementVNode("div",lo,[e.createElementVNode("div",ao,e.toDisplayString(n.placeholderTitleText),1),e.createElementVNode("div",ro,e.toDisplayString(n.placeholderDescriptionText),1)])]))}}),io={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},co=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.createBlock(D,{key:0,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",io,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),mo={class:"svc-btn__text"},po=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",mo,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 ko={key:0,class:"svd-test-results"},fo={class:"svd-test-results__content"},_o={class:"svd-test-results__header"},Co={class:"svd-test-results__header-text"},go={class:"svd-test-results__header-types"},Bo={class:"svd-test-results__text svd-light-bg-color"},bo={class:"svd-test-results__table svd-light-bg-color"},No={class:"svd-light-background-color"},ho={class:"svd-dark-border-color"},Eo={class:"svd-dark-border-color"},wo=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",ko,[e.createElementVNode("div",fo,[e.createElementVNode("div",_o,[e.createElementVNode("div",Co,e.toDisplayString(e.unref(o).surveyResultsText),1),e.createElementVNode("div",go,[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",Bo,[e.createElementVNode("div",null,e.toDisplayString(e.unref(o).resultText),1)],512),[[e.vShow,e.unref(o).resultViewType==="text"]]),e.withDirectives(e.createElementVNode("div",bo,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",No,[e.createElementVNode("th",ho,e.toDisplayString(e.unref(o).resultsTitle),1),e.createElementVNode("th",Eo,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)}}),So={key:2},yo=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",So,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))}}),qo={class:"svc-creator-tab__content"},Do={class:"svc-json-editor-tab__content"},$o={class:"svc-json-editor-tab__errros_list"},uo=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",qo,[e.createElementVNode("div",Do,[e.createElementVNode("div",{class:"svc-json-editor-tab__ace-editor",ref_key:"inputEl",ref:o},null,512),e.withDirectives(e.createElementVNode("div",$o,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:t.model.errorList},null,8,["model"])],512),[[e.vShow,t.model.hasErrors]])])]))}}),Vo={class:"svc-creator-tab__content"},To={class:"svc-json-editor-tab__content"},Mo=["aria-label","disabled"],zo={class:"svc-json-editor-tab__errros_list"},Io=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",Vo,[e.createElementVNode("div",To,[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},`
2
+ `,40,Mo),[[e.vModelText,e.unref(t).text]]),e.withDirectives(e.createElementVNode("div",zo,[e.createVNode(e.unref(l.SvComponent),{is:"sv-list",model:e.unref(t).errorList},null,8,["model"])],512),[[e.vShow,e.unref(t).hasErrors]])])]))}}),Po={class:"svc-json-error__container"},Fo={class:"svc-json-error__title"},Ro=["title","aria-label"],Lo=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",Po,[e.createElementVNode("div",Fo,[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,Ro)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)])],64))}}),Ao={class:"svc-btn__text"},M=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",Ao,e.toDisplayString(t.model.title),1)],2)),[[e.unref(l.key2ClickDirective)]])}}),Ko={class:"svc-creator-tab__content"},Qo={key:1,class:"svc-logic-tab__content-empty"},Ho=e.defineComponent({__name:"Logic",props:{model:{}},setup(i){const n=i;return l.useBase(()=>n.model),(o,t)=>(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("div",{class:e.normalizeClass(["svc-plugin-tab__content svc-logic-tab__content",{"svc-logic-tab--empty":!o.model.hasItems}])},[o.model.hasItems?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.itemsSurvey},null,8,["model"]),o.model.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M,{key:0,model:o.model.addNewButton},null,8,["model"]))],64)):e.createCommentVNode("",!0),o.model.hasItems?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Qo,[e.createVNode(D,{name:"logic",placeholderTitleText:o.model.placeholderTitleText,placeholderDescriptionText:o.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"]),o.model.readOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M,{key:0,model:o.model.addNewButton},null,8,["model"]))]))],2)]))}}),Oo=["id","required","tabindex","disabled","role","aria-required","aria-label","aria-invalid","aria-describedby"],Go=["id"];y.RendererFactory.Instance.registerRenderer("dropdown","logicoperator","sv-logic-operator");const Wo=e.defineComponent({__name:"LogicOperator",props:{question:{}},setup(i){const n=i,o=e.ref(),t=e.computed(()=>n.question.dropdownListModel??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.selectedItemLocText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.selectedItemLocText},null,8,["locString"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(c.question.readOnlyText),1)],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,Oo),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.selectedItemLocText?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"survey-string",locString:c.question.selectedItemLocText},null,8,["locString"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(c.question.readOnlyText),1)],10,Go)):e.createCommentVNode("",!0)],2))}}),jo=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)}}),Jo=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),disabled:!1,classes:s.question.linkClearButtonCssClasses},null,8,["text","click","classes"])):e.createCommentVNode("",!0)],64))}}),Zo={key:1,class:"st-content"},Xo={class:"svc-flex-column st-strings-wrapper"},Yo={class:"svc-flex-row st-strings-header"},xo={class:"svc-flex-row svc-plugin-tab__content st-strings"},Uo=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(D,{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",Zo,[e.createElementVNode("div",Xo,[e.createElementVNode("div",Yo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsHeaderSurvey},null,8,["model"])]),e.createElementVNode("div",xo,[e.createVNode(e.unref(l.SurveyComponent),{model:o.model.stringsSurvey},null,8,["model"])])])]))],2))}}),vo=(i,n)=>{const o=i.__vccOpts||i;for(const[t,s]of n)o[t]=s;return o},et={},ot={class:"sd-translation-line-skeleton"};function tt(i,n){return e.openBlock(),e.createElementBlock("div",ot)}const nt=vo(et,[["render",tt]]),st=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))}}),lt={key:1,class:"svc-plugin-tab__content"},at={key:2,class:"svc-plugin-tab__content-actions svc-test-tab__content-actions"},rt=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.createBlock(D,{key:0,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",lt,[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",at,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:o.model.pages},null,8,["model"])])):e.createCommentVNode("",!0)],2))}}),it=["disabled","value"],ct=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],dt=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,it)],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,ct),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))}}),mt=e.defineComponent({__name:"ColorItem",props:{model:{},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))}}),pt=["disabled","value","placeholder"],kt=["disabled","id","aria-required","aria-label","aria-invalid","aria-describedby","title","accept"],ft=["disabled"],_t=["for","aria-label"],Ct=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,pt),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,kt),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,ft)),[[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,_t)),[[e.unref(l.key2ClickDirective)]])],2)],34))}}),gt=["disabled","id","placeholder","aria-required","aria-label","aria-invalid","aria-describedby","value"],Bt=["disabled"],bt=["disabled"],Nt=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[18]||(t[18]=(...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,gt),e.createElementVNode("span",{class:e.normalizeClass(o.question.cssClasses.buttonsContainer)},[e.createElementVNode("button",{disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.arrowButton),onClick:t[6]||(t[6]=(...s)=>o.question.onDownButtonClick&&o.question.onDownButtonClick(...s)),onMousedown:t[7]||(t[7]=(...s)=>o.question.onDownButtonMouseDown&&o.question.onDownButtonMouseDown(...s)),onMouseup:t[8]||(t[8]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[9]||(t[9]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[10]||(t[10]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[11]||(t[11]=(...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,Bt),e.createElementVNode("button",{disabled:o.question.isInputReadOnly,class:e.normalizeClass(o.question.cssClasses.arrowButton),onClick:t[12]||(t[12]=(...s)=>o.question.onUpButtonClick&&o.question.onUpButtonClick(...s)),onMousedown:t[13]||(t[13]=(...s)=>o.question.onUpButtonMouseDown&&o.question.onUpButtonMouseDown(...s)),onMouseup:t[14]||(t[14]=(...s)=>o.question.onButtonMouseUp&&o.question.onButtonMouseUp(...s)),onMouseleave:t[15]||(t[15]=(...s)=>o.question.onButtonMouseLeave&&o.question.onButtonMouseLeave(...s)),onBlur:t[16]||(t[16]=(...s)=>o.question.onBlur&&o.question.onBlur(...s)),onFocus:t[17]||(t[17]=(...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,bt)],2)],34))}}),ht=["disabled","title"],z=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,ht)],2))}}),Et=["aria-required","aria-label","aria-invalid","aria-errormessage"],wt=[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)],St={class:"spg-boolean-switch__caption"},yt={class:"spg-boolean-switch__title"};y.RendererFactory.Instance.registerRenderer("boolean","switch","sv-boolean-switch");const qt=e.defineComponent({inheritAttrs:!1,__name:"BooleanSwitch",props:{question:{}},setup(i){const n=i,o=e.ref(null);return l.useQuestion(n,o),(t,s)=>(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]=a=>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"},wt,2)),[[e.unref(l.key2ClickDirective),{disableTabStop:!0}]]),e.createElementVNode("div",St,[e.createElementVNode("div",yt,[e.createVNode(e.unref(l.SvComponent),{is:"survey-string",locString:t.question.locTitle},null,8,["locString"])])])],8,Et))}}),Dt={class:"svc-string-editor__content"},$t=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--hover"},null,-1),ut=e.createElementVNode("div",{class:"svc-string-editor__border svc-string-editor__border--focus"},null,-1),Vt={class:"svc-string-editor__input"},Tt=["textContent","aria-placeholder","contenteditable"],Mt=["aria-placeholder","contenteditable","innerHTML"],zt={key:0,class:"svc-string-editor__error"},It=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}),h=e.computed(()=>{var p;return(p=r.value)==null?void 0:p.getCharacterCounterClass}),$=p=>{var k,g;return s.value&&(s.value.spellcheck=!1),o.value.__isEditing=!1,(k=r.value)==null||k.onBlur(p),(g=r.value)==null?void 0:g.errorText},w=p=>{var k;(k=r.value)==null||k.onFocus(p)},Nl=p=>{var k;(k=r.value)==null||k.onPaste(p)},R=p=>{var k,g;(k=s.value)==null||k.focus(),o.value.__isEditing=!0,(g=r.value)==null||g.onClick(p)},u=()=>{a.value=o.value.renderedHtml},hl=e.watch(()=>o.value,(p,k)=>{k&&p.onStringChanged.remove(u),p&&(p.onStringChanged.add(u),u())},{immediate:!0});return e.onMounted(()=>{var p;o.value.__isEditing&&((p=s.value)==null||p.focus())}),e.onUnmounted(()=>{hl(),o.value.onStringChanged.remove(u)}),(p,k)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(d.value)},[e.createElementVNode("span",Dt,[$t,ut,e.createElementVNode("span",Vt,[o.value.hasHtml?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",{key:0,role:"textbox",class:"sv-string-editor",spellcheck:"false",onFocus:w,onPaste:Nl,onBlur:$,onInput:k[0]||(k[0]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onInput)&&((C=e.unref(r))==null?void 0:C.onInput(...g))}),onKeydown:k[1]||(k[1]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyDown)&&((C=e.unref(r))==null?void 0:C.onKeyDown(...g))}),onKeyup:k[2]||(k[2]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyUp)&&((C=e.unref(r))==null?void 0:C.onKeyUp(...g))}),onCompositionstart:k[3]||(k[3]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionStart)&&((C=e.unref(r))==null?void 0:C.onCompositionStart(...g))}),onCompositionend:k[4]||(k[4]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionEnd)&&((C=e.unref(r))==null?void 0:C.onCompositionEnd(...g))}),onMouseup:k[5]||(k[5]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onMouseUp)&&((C=e.unref(r))==null?void 0:C.onMouseUp(...g))}),onClick:R,textContent:a.value,"aria-placeholder":m.value,contenteditable:f.value,ref_key:"root",ref:s},null,40,Tt)),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:$,onKeydown:k[6]||(k[6]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyDown)&&((C=e.unref(r))==null?void 0:C.onKeyDown(...g))}),onKeyup:k[7]||(k[7]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onKeyUp)&&((C=e.unref(r))==null?void 0:C.onKeyUp(...g))}),onCompositionstart:k[8]||(k[8]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionStart)&&((C=e.unref(r))==null?void 0:C.onCompositionStart(...g))}),onCompositionend:k[9]||(k[9]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onCompositionEnd)&&((C=e.unref(r))==null?void 0:C.onCompositionEnd(...g))}),onMouseup:k[10]||(k[10]=(...g)=>{var _,C;return((_=e.unref(r))==null?void 0:_.onMouseUp)&&((C=e.unref(r))==null?void 0:C.onMouseUp(...g))}),onClick:R,"aria-placeholder":m.value,contenteditable:f.value,innerHTML:a.value,ref_key:"root",ref:s},null,40,Mt)):e.createCommentVNode("",!0),N.value?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:2,is:"sv-character-counter",counter:S.value,remainingCharacterCounter:h.value},null,8,["counter","remainingCharacterCounter"])):e.createCommentVNode("",!0)])]),c.value?(e.openBlock(),e.createElementBlock("span",zt,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)],2))}}),Pt={key:0,class:"svc-toolbox__search-container"},Ft=e.createElementVNode("div",{class:"svc-toolbox__category-separator svc-toolbox__category-separator--search"},null,-1),Rt={key:1,class:"svc-toolbox__placeholder"},Lt={key:1,class:"svc-toolbox__category"},At=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)}),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",Pt,[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"]),Ft])):e.createCommentVNode("",!0),o.value.showPlaceholder?(e.openBlock(),e.createElementBlock("div",Rt,e.toDisplayString(o.value.toolboxNoResultsFound),1)):e.createCommentVNode("",!0),e.createVNode(q,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",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,d=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:d.renderedId,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))}}),Kt={key:0,class:"svc-toolbox__category-separator"},Qt=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],s=>{s.dispose()}),t=e.ref();return e.onMounted(()=>{const s=n.item;s.updateModeCallback=(a,r)=>{s.mode=a,e.nextTick(()=>r(a,t.value))},s.afterRender()}),e.onUnmounted(()=>{const s=n.item;s.updateModeCallback=void 0}),l.useBase(()=>n.item),(s,a)=>{var r;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.item.css),ref_key:"root",ref:t},[s.item.needSeparator&&!s.creator.toolbox.showCategoryTitles?(e.openBlock(),e.createElementBlock("div",Kt)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"svc-toolbox__tool-content sv-action__content",onPointerdown:a[0]||(a[0]=(...c)=>{var d,m;return((d=e.unref(o))==null?void 0:d.onPointerDown)&&((m=e.unref(o))==null?void 0:m.onPointerDown(...c))})},[e.createVNode(e.unref(l.SvComponent),{viewModel:e.unref(o),is:(r=e.unref(o))==null?void 0:r.itemComponent,item:s.item,creator:s.creator,isCompact:s.isCompact},null,8,["viewModel","is","item","creator","isCompact"])],32)],2)}}}),Ht=["aria-label","title"],Ot={class:"svc-toolbox__item-container"},Gt={key:0,class:"svc-toolbox__item-title"},Wt=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",Ot,[n.item.iconName?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-svg-icon",iconName:n.item.iconName,size:"auto",class:"svc-toolbox__item-icon"},null,8,["iconName"])):e.createCommentVNode("",!0)]),n.isCompact?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Gt,e.toDisplayString(n.item.title),1))],10,Ht)),[[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),{is:"sv-svg-icon",iconName:n.item.iconName,size:24,class:"svc-toolbox__item-icon"},null,8,["iconName"]),e.createElementVNode("span",null,e.toDisplayString(n.item.title),1)])):e.createCommentVNode("",!0)],64))}}),jt=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))}}),Jt={className:"svc-toolbox__category-header-wrapper"},Zt={class:"svc-toolbox__category-title"},Xt={key:0,class:"svc-toolbox__category-header__controls"},Yt={className:"svc-toolbox__category-header-wrapper"},xt=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.createElementVNode("div",Jt,[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",Zt,e.toDisplayString(o.category.title),1),o.toolbox.canCollapseCategories?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",Yt,[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=>(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{is:"svc-toolbox-tool",item:s,key:s.renderedId,creator:o.toolbox.creator,parentModel:o.toolbox,isCompact:!1},null,8,["item","creator","parentModel"]))),128))],2))}}),Ut=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))}}),vt={class:"svc-flex-column"},en={class:"svc-tab-designer_content"},on={key:0,class:"svc-designer-header"},tn={class:"svc-designer__placeholder-container","data-sv-drop-target-survey-element":"newGhostPage"},nn={className:"svc-designer-placeholder-page","data-sv-drop-target-survey-element":"newGhostPage"},sn={key:0,class:"svc-designer-header"},ln=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],an=["data-sv-drop-target-survey-element","data-sv-drop-target-page"],rn={key:0,class:"svc-tab-designer__tools"},cn={key:0,class:"svc-tab-designer__page-navigator"},dn={key:1,class:"svc-tab-designer__toolbar"},mn=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",vt,[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(q,null,{default:e.withCtx(()=>[e.createElementVNode("div",en,[t.model.showPlaceholder?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.model.creator.showHeaderInEmptySurvey&&t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",on,[e.createVNode(e.unref(l.SvComponent),{is:"survey-header",survey:t.model.creator.survey},null,8,["survey"])])):e.createCommentVNode("",!0),e.createElementVNode("div",tn,[e.createVNode(D,{name:"designer",placeholderTitleText:t.model.placeholderTitleText,placeholderDescriptionText:t.model.placeholderDescriptionText},null,8,["placeholderTitleText","placeholderDescriptionText"]),e.createElementVNode("div",nn,[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.surfaceCssVariables])},[t.model.creator.allowEditSurveyTitle?(e.openBlock(),e.createElementBlock("div",sn,[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,ln))),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,an)):e.createCommentVNode("",!0)],6),t.model.showSurfaceTools?(e.openBlock(),e.createElementBlock("div",rn,[t.model.creator.showPageNavigator?(e.openBlock(),e.createElementBlock("div",cn,[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",dn,[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))}}),pn=["id","data-sv-drop-target-survey-page"],kn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),fn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),_n={key:0,class:"svc-page__placeholder_frame"},Cn={class:"svc-panel__placeholder_frame"},gn={class:"svc-panel__placeholder"},Bn={class:"svc-page__content-actions"},bn={key:2,class:"svc-page__content-actions"},Nn=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},[kn,fn,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",_n,[e.createElementVNode("div",Cn,[e.createElementVNode("div",gn,e.toDisplayString(e.unref(t).placeholderText),1)])])):e.createCommentVNode("",!0),e.unref(t).allowDragging&&!e.unref(t).isGhost?(e.openBlock(),e.createElementBlock("div",{key:1,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",Bn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"]),e.unref(t).topActionContainer.hasActions?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-action-bar",model:e.unref(t).topActionContainer},null,8,["model"])):e.createCommentVNode("",!0)])],32)):e.createCommentVNode("",!0),!e.unref(t).allowDragging||e.unref(t).isGhost?(e.openBlock(),e.createElementBlock("div",bn,[e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).actionContainer},null,8,["model"]),e.unref(t).topActionContainer.hasActions?(e.openBlock(),e.createBlock(e.unref(l.SvComponent),{key:0,is:"sv-action-bar",model:e.unref(t).topActionContainer},null,8,["model"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createVNode(e.unref(l.SvComponent),{is:"sv-action-bar",model:e.unref(t).footerActionsBar},null,8,["model"])],42,pn)),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)}}),hn={class:"svc-add-new-item-button__text"},En=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",hn,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))}}),wn=["title","aria-label"],Sn=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,wn)),[[e.unref(l.key2ClickDirective)]])}}),yn=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--top"},null,-1),qn=e.createElementVNode("div",{class:"svc-row__drop-indicator svc-row__drop-indicator--bottom"},null,-1),Dn=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)},[yn,qn,e.renderSlot(a.$slots,"default")],2))}}),$n=["data-sv-drop-target-survey-element"],un={class:"svc-fake-title"},Vn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1),Tn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1),Mn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),zn=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),In={class:"svc-question__top-actions"},Pn={key:0,class:"svc-panel__placeholder_frame-wrapper"},Fn={class:"svc-panel__placeholder_frame"},Rn={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],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",un,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())},[Vn,Tn,Mn,zn,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",In,[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",Pn,[e.createElementVNode("div",Fn,[e.createElementVNode("div",Rn,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)}}),I=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"]))}}),Ln=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"]))}}),An={key:0,class:"svc-image-question-controls"},Kn=["accept"],Qn={class:"svc-context-button",title:void 0,"aria-label":void 0},Hn={key:1,class:"svc-image-question__loading-placeholder"},On={class:"svc-image-question__loading"},Gn=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",An,[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,Kn),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",Hn,[e.createElementVNode("div",On,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])])):e.createCommentVNode("",!0)],64))}}),Wn={class:"svc-rating-question-content"},jn=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,h;return e.openBlock(),e.createElementBlock("div",Wn,[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]=$=>{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]=$=>{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":(h=e.unref(o))==null?void 0:h.addTooltip},null,8,["class","title","aria-label"])),[[e.unref(l.key2ClickDirective)]]):e.createCommentVNode("",!0)],2),e.renderSlot(t.$slots,"default")])}}}),Jn={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 h;return(h=e.unref(c))==null?void 0:h.selectContext(e.unref(c),N)}),onMouseover:m[2]||(m[2]=N=>{var h;return(h=e.unref(c))==null?void 0:h.hover(N,N.currentTarget)}),onMouseleave:m[3]||(m[3]=N=>{var h;return(h=e.unref(c))==null?void 0:h.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",Jn,[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)}}}),Xn={class:"svc-question__adorner"},Yn={class:"svc-question__content svc-question__content--in-popup"},xn=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",Xn,[e.createElementVNode("div",Yn,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:t.componentName},t.componentData),null,16,["is"])])]))}}),Un=["data-sv-drop-target-survey-element"],vn={class:"svc-fake-title"},es=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1),os=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1),ts=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),ns=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),ss={class:"svc-question__top-actions"},ls={key:0,class:"svc-panel__placeholder_frame-wrapper"},as={class:"svc-panel__placeholder_frame"},rs={class:"svc-panel__placeholder"},is={class:"svc-add-new-item-button__text"},cs={key:1,class:"svc-panel__add-new-question-container"},ds={class:"svc-panel__question-type-selector-popup"},ms={class:"svc-panel__add-new-question-wrapper"},ps=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",vn,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)},[es,os,ts,ns,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",ss,[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",ls,[e.createElementVNode("div",as,[e.createElementVNode("div",rs,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",is,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",cs,[e.createElementVNode("div",ds,[e.createVNode(e.unref(l.SvComponent),{is:"sv-popup",model:e.unref(o).questionTypeSelectorModel.popupModel},null,8,["model"])]),e.createElementVNode("div",ms,[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,Un)):e.createCommentVNode("",!0)}}),ks=["data-sv-drop-target-item-value"],fs=e.createElementVNode("div",{class:"svc-item-value__ghost"},null,-1),_s={class:"svc-item-value-controls"},Cs={key:0,class:"svc-item-value-controls__button svc-item-value-controls__drag"},gs=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},[fs,e.createElementVNode("div",_s,[e.unref(c).isDraggable?(e.openBlock(),e.createElementBlock("span",Cs,[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,ks))}}),Bs=["data-sv-drop-target-item-value"],bs={class:"svc-image-item-value-wrapper__content"},Ns=["accept"],hs={key:0,class:"svc-image-item-value__item"},Es={key:2,class:"svc-context-container svc-image-item-value-controls"},ws={class:"sd-imagepicker__item sd-imagepicker__item--inline"},Ss={class:"sd-imagepicker__label"},ys={key:0,class:"svc-image-item-value__loading"},qs=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",bs,[e.createElementVNode("input",{type:"file","aria-hidden":"true",tabindex:"-1",accept:e.unref(r).acceptedTypes,class:"svc-choose-file-input"},null,8,Ns),!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",hs,[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",Es,[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",ws,[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",ys,[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,Bs))}}),Ds=e.defineComponent({__name:"QuestionEditor",props:{survey:{},style:{}},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.createElementBlock("div",{style:e.normalizeStyle(n.style)},[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:t.value},s.value),null,16,["is"])],4))}}),$s=["accept"],us=[e.createElementVNode("svg",null,[e.createElementVNode("use",{"xlink:href":"#icon-image-48x48"})],-1)],Vs={class:"svc-context-container svc-logo-image-controls"},Ts={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,$s),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)))},us)),[[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",Vs,[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",Ts,[e.createVNode(e.unref(l.SvComponent),{is:"sv-loading-indicator"})])):e.createCommentVNode("",!0)],512))}}),zs={key:0,class:"svc-search"},Is={class:"svc-search__search-icon"},Ps=["aria-label","placeholder"],Fs={class:"svc-search__toolbar"},Rs={class:"svc-search__toolbar-counter"},Ls=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",zs,[e.createElementVNode("div",Is,[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,Ps),[[e.vModelText,o.value]]),e.createElementVNode("div",Fs,[e.createElementVNode("div",Rs,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)}}),As=["title"],Ks=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,As)),[[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]])}}),Qs={class:"svc-page-navigator-item"},Hs=["title"],Os=[e.createElementVNode("div",{class:"svc-page-navigator-item__dot-content"},null,-1)],Gs={class:"svc-page-navigator-item__banner"},Ws={class:"svc-page-navigator-item__text"},js=e.createElementVNode("span",{class:"svc-page-navigator-item__dot"},[e.createElementVNode("span",{class:"svc-page-navigator-item__dot-content"})],-1),Js=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",Qs,[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},Os,8,Hs),e.createElementVNode("div",Gs,[e.createElementVNode("span",Ws,e.toDisplayString(t.model.title),1),js])],2)),[[e.unref(l.key2ClickDirective)]])]))}}),Zs={class:"svc-question__dropdown-choices--wrapper"},Xs={class:"svc-question__dropdown-choices"},Ys=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",Zs,[e.createElementVNode("div",null,[e.createElementVNode("div",Xs,[(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)},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)])]))}}),xs=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"]))}}),Us={class:"svc-question__adorner"},vs={class:"svc-question__content svc-question__content--in-popup"},el={class:"svc-question__dropdown-choices"},P="survey-radiogroup-item",ol=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",Us,[e.createElementVNode("div",vs,[e.createVNode(e.unref(l.SvComponent),e.mergeProps({is:a.componentName},a.componentData),null,16,["is"]),e.createElementVNode("div",el,[(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)},s(c)),null,16,["is"])]))),128))])])]))}}),tl=["data-sv-drop-target-survey-element"],nl=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--left"},null,-1),sl=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--right"},null,-1),ll=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--top"},null,-1),al=e.createElementVNode("div",{class:"svc-question__drop-indicator svc-question__drop-indicator--bottom"},null,-1),rl={class:"svc-widget__content"},il={key:1,class:"svc-panel__placeholder_frame"},cl=[e.createElementVNode("div",{class:"svc-panel__placeholder","data-bind":"text: placeholderText"},null,-1)],dl={class:"svc-question__content-actions"},ml={key:0,class:"svc-panel__placeholder_frame"},pl={class:"svc-panel__placeholder"},kl=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"},[nl,sl,ll,al,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",rl,[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",il,cl)):e.createCommentVNode("",!0),e.createElementVNode("div",dl,[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",ml,[e.createElementVNode("div",pl,e.toDisplayString(e.unref(t).placeholderText),1)])):e.createCommentVNode("",!0)],64))],42,tl)):e.createCommentVNode("",!0)}}),fl={class:"svc-carry-forward-panel-wrapper"},_l={class:"svc-carry-forward-panel"},Cl={class:"svc-carry-forward-panel__link"},gl=e.defineComponent({__name:"QuestionBanner",props:{model:{}},setup(i){return(n,o)=>(e.openBlock(),e.createElementBlock("div",fl,[e.createElementVNode("div",_l,[e.createElementVNode("span",null,e.toDisplayString(n.model.text)+e.toDisplayString(" "),1),e.createElementVNode("span",Cl,[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 Bl(i,n,o){i(n,o)}function F(i){const n=Bl.bind(void 0,i);n("svc-tabbed-menu",Z),n("svc-tabbed-menu-item-wrapper",Y),n("svc-tabbed-menu-item",U),n("svc-side-bar",te),n("svc-side-bar-default-header",ae),n("svc-side-bar-page",re),n("svc-tabs",pe),n("svc-tab-control",be),n("svc-tab-button",Se),n("svc-property-grid-placeholder",Ve),n("svc-side-bar-header",Fe),n("svc-side-bar-property-grid-header",Oe),n("svc-property-grid",me),n("svc-object-selector",ie),n("svc-search",Ls),n("svc-scroll",q),n("svc-switcher",eo),n("svc-action-button",Xe),n("svc-question-error",Ge),n("survey-embeddedsurvey",jo),n("sv-logic-operator",Wo),n("survey-linkvalue",Jo),n("survey-color",dt),n("color-item",mt),n("sv-boolean-switch",qt),n("survey-fileedit",Ct),n("survey-spinedit",Nt),n("survey-textwithreset",z),n("survey-commentwithreset",z),n("survey-widget",l.SurveyComponent),n("survey-simulator",no),n("svc-tab-preview",co),n("svc-complete-page",po),n("survey-results",wo),n("survey-results-table-row",yo),n("json-error-item",Lo),n("svc-tab-json-editor-textarea",Io),n("svc-tab-json-editor-ace",uo),n("svc-tab-translation",Uo),n("sd-translation-line-skeleton",nt),n("svc-translate-from-action",st),n("svc-tab-logic",Ho),n("svc-tab-theme",rt),n("svc-toolbox",At),n("svc-toolbox-list",Ut),n("svc-toolbox-category",xt),n("svc-toolbox-tool",Qt),n("svc-toolbox-item",Wt),n("svc-toolbox-item-group",jt),n(B.editableStringRendererName,It),n("svc-tab-designer",mn),n("svc-page-navigator",Ks),n("svc-page-navigator-item",Js),n("svc-page",Nn),n("svc-row",Dn),n("svc-add-new-question-btn",En),n("svc-add-question-type-selector",Sn),n("svc-question",I),n("svc-rating-question",I),n("svc-rating-question-content",jn),n("svc-image-question",Ln),n("svc-image-question-adorner",Gn),n("svc-matrix-cell",Zn),n("svc-cell-question",xn),n("svc-cell-dropdown-question",ol),n("svc-question-editor-content",Ds),n("svc-logo-image",Ms),n("svc-panel",ps),n("svc-item-value",gs),n("svc-image-item-value",qs),n("svc-dropdown-question",xs),n("svc-dropdown-question-adorner",Ys),n("svc-widget-question",kl),n("svc-question-banner",gl)}F((i,n)=>l.ComponentFactory.Instance.registerComponent(i,n));const bl={install(i){i.component("SurveyCreatorComponent",T),F((n,o)=>{i.component(n,o),l.ComponentFactory.Instance.registerComponent(n,n)})}};E.SurveyCreatorComponent=T,E.surveyCreatorPlugin=bl,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});