@yoobic/yobi 7.7.119 → 7.7.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{draggable-dots-helpers-c083d016.js → draggable-dots-helpers-62339212.js} +1 -1
- package/dist/cjs/{entities-helpers-7cfa90df.js → entities-helpers-87aceb2c.js} +1 -1
- package/dist/cjs/{image-helpers-b66a05b5.js → image-helpers-97057cb8.js} +1 -1
- package/dist/cjs/{index-09702f39.js → index-155fde41.js} +1 -1
- package/dist/cjs/{index-d1b05e5d.js → index-76cc2ab4.js} +1 -1
- package/dist/cjs/{index-7058cf1f.js → index-a1c7d061.js} +5 -4
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{media-helpers-6700e737.js → media-helpers-cb54a1be.js} +1 -1
- package/dist/cjs/yoo-action-sheet-controller_15.cjs.entry.js +3 -3
- package/dist/cjs/yoo-ag-grid_96.cjs.entry.js +18 -6
- package/dist/cjs/yoo-audio-recorder-dialog.cjs.entry.js +2 -2
- package/dist/cjs/yoo-avatar_5.cjs.entry.js +3 -3
- package/dist/cjs/yoo-camera-preview-dialog_7.cjs.entry.js +2 -2
- package/dist/cjs/yoo-card-header.cjs.entry.js +3 -3
- package/dist/cjs/yoo-card-list-image_12.cjs.entry.js +4 -4
- package/dist/cjs/yoo-chat-message_3.cjs.entry.js +3 -3
- package/dist/cjs/yoo-chat.cjs.entry.js +3 -3
- package/dist/cjs/yoo-detail-bar.cjs.entry.js +3 -3
- package/dist/cjs/yoo-feed-detail.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-choice_4.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-conditions.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-connect.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-creator-block-expandable.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-block-simple_4.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-creator-card_2.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-field-selector_8.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator-translate-dialog.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-creator.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-image-collection.cjs.entry.js +2 -1
- package/dist/cjs/yoo-form-image-tagging-creator.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-incentive-targets.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-multi-input.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-reorder.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-stripe-card.cjs.entry.js +2 -2
- package/dist/cjs/yoo-form-swipe-cards.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +3 -3
- package/dist/cjs/yoo-form-uploader.cjs.entry.js +2 -2
- package/dist/cjs/yoo-input-bar.cjs.entry.js +3 -3
- package/dist/cjs/yoo-location-heading.cjs.entry.js +2 -2
- package/dist/cjs/yoo-podium.cjs.entry.js +3 -3
- package/dist/cjs/yoo-profile-summary.cjs.entry.js +2 -2
- package/dist/cjs/yoo-scratch-card.cjs.entry.js +2 -2
- package/dist/cjs/yoo-slides-media.cjs.entry.js +3 -3
- package/dist/cjs/yoo-user-profile.cjs.entry.js +3 -3
- package/dist/cjs/yoo-videoplayer-videojs.cjs.entry.js +2 -2
- package/dist/cjs/yoo-walkthrough.cjs.entry.js +3 -3
- package/dist/collection/components/1.atoms/markdown/markdown.js +13 -1
- package/dist/collection/components/2.molecules/scratch-card/scratch-card.js +1 -1
- package/dist/collection/components/3.organisms/photo-editor/photo-editor.js +1 -1
- package/dist/collection/components/form/form-carousel/form-carousel.js +1 -1
- package/dist/collection/components/form/form-image-collection/form-image-collection.js +2 -2
- package/dist/collection/components/form/form-swipe-cards/form-swipe-cards.js +2 -2
- package/dist/collection/components/form/image-cropper-dialog/image-cropper-dialog.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-ca07fb1e.js → p-0212af76.js} +1 -1
- package/dist/design-system/{p-c5e93385.entry.js → p-03546b26.entry.js} +1 -1
- package/dist/design-system/{p-e7acfa91.entry.js → p-04c6358e.entry.js} +1 -1
- package/dist/design-system/{p-3a478fb9.entry.js → p-0d18b191.entry.js} +1 -1
- package/dist/design-system/{p-7ab32013.js → p-0de7249f.js} +1 -1
- package/dist/design-system/{p-8989307b.entry.js → p-0e639507.entry.js} +1 -1
- package/dist/design-system/{p-d5142f0b.entry.js → p-1002c53e.entry.js} +1 -1
- package/dist/design-system/{p-2c94c689.entry.js → p-1c38c7c8.entry.js} +1 -1
- package/dist/design-system/{p-4c5d8029.entry.js → p-22a02087.entry.js} +1 -1
- package/dist/design-system/{p-1fe2e1c0.entry.js → p-2f86af3b.entry.js} +1 -1
- package/dist/design-system/{p-f11f225a.entry.js → p-39341278.entry.js} +1 -1
- package/dist/design-system/{p-a2395cca.js → p-3b304481.js} +1 -1
- package/dist/design-system/{p-d3370a33.entry.js → p-4998826e.entry.js} +1 -1
- package/dist/design-system/{p-95e2d92e.entry.js → p-4b71feb1.entry.js} +1 -1
- package/dist/design-system/{p-c841574f.entry.js → p-520827e7.entry.js} +1 -1
- package/dist/design-system/{p-64af5ffd.entry.js → p-57f8f9f1.entry.js} +2 -2
- package/dist/design-system/{p-057759b5.entry.js → p-59cab22c.entry.js} +1 -1
- package/dist/design-system/{p-9c80733e.entry.js → p-5aa1743c.entry.js} +1 -1
- package/dist/design-system/{p-be23af49.js → p-5fa0f72e.js} +1 -1
- package/dist/design-system/{p-42c07639.entry.js → p-7155f140.entry.js} +1 -1
- package/dist/design-system/{p-6235196a.entry.js → p-75d3c3d5.entry.js} +1 -1
- package/dist/design-system/{p-2455931c.entry.js → p-76deb3b8.entry.js} +1 -1
- package/dist/design-system/{p-0f241eef.entry.js → p-83dec167.entry.js} +1 -1
- package/dist/design-system/{p-039c4150.entry.js → p-84a57ae6.entry.js} +1 -1
- package/dist/design-system/{p-21365e62.entry.js → p-89edb19e.entry.js} +1 -1
- package/dist/design-system/p-8a24542c.entry.js +1 -0
- package/dist/design-system/{p-08431aa2.entry.js → p-8aad41d0.entry.js} +1 -1
- package/dist/design-system/{p-ef95e13f.entry.js → p-8f30bfbc.entry.js} +1 -1
- package/dist/design-system/{p-91a38302.entry.js → p-9b35756a.entry.js} +1 -1
- package/dist/design-system/{p-26008c55.entry.js → p-a53fd2b6.entry.js} +1 -1
- package/dist/design-system/{p-76fdfe1c.js → p-a60e966e.js} +1 -1
- package/dist/design-system/{p-2115a170.entry.js → p-a70e9b0b.entry.js} +1 -1
- package/dist/design-system/{p-22f9536c.entry.js → p-aa03c2f7.entry.js} +1 -1
- package/dist/design-system/{p-0e3446b9.entry.js → p-ac9dd690.entry.js} +1 -1
- package/dist/design-system/p-c00239a6.entry.js +1 -0
- package/dist/design-system/{p-abbf8762.js → p-c56127b3.js} +1 -1
- package/dist/design-system/{p-17333b04.js → p-ca015bb7.js} +1 -1
- package/dist/design-system/{p-a56325b1.entry.js → p-cb1a1a1f.entry.js} +1 -1
- package/dist/design-system/{p-5d09b661.entry.js → p-ccfe85d4.entry.js} +1 -1
- package/dist/design-system/{p-40219bd7.entry.js → p-d264a36d.entry.js} +1 -1
- package/dist/design-system/{p-b4c62d36.entry.js → p-d2c9a36f.entry.js} +1 -1
- package/dist/design-system/p-d2ed0138.entry.js +1 -0
- package/dist/design-system/{p-aa0908a4.entry.js → p-deaf7a2a.entry.js} +1 -1
- package/dist/design-system/p-e19dede5.entry.js +1 -0
- package/dist/design-system/{p-0ac2b95f.entry.js → p-f33b63af.entry.js} +1 -1
- package/dist/esm/{draggable-dots-helpers-0bdf23af.js → draggable-dots-helpers-4d26acb7.js} +1 -1
- package/dist/esm/{entities-helpers-21ed0fb9.js → entities-helpers-b3e84746.js} +1 -1
- package/dist/esm/{image-helpers-e5f40964.js → image-helpers-7c377247.js} +1 -1
- package/dist/esm/{index-e6beb363.js → index-87790f7e.js} +1 -1
- package/dist/esm/{index-b84e8ca5.js → index-eb0cc732.js} +1 -1
- package/dist/esm/{index-d4c265dd.js → index-fda6fc95.js} +5 -4
- package/dist/esm/index.js +5 -5
- package/dist/esm/{media-helpers-3fd67515.js → media-helpers-ccaf8dbd.js} +1 -1
- package/dist/esm/yoo-action-sheet-controller_15.entry.js +3 -3
- package/dist/esm/yoo-ag-grid_96.entry.js +18 -6
- package/dist/esm/yoo-audio-recorder-dialog.entry.js +2 -2
- package/dist/esm/yoo-avatar_5.entry.js +3 -3
- package/dist/esm/yoo-camera-preview-dialog_7.entry.js +2 -2
- package/dist/esm/yoo-card-header.entry.js +3 -3
- package/dist/esm/yoo-card-list-image_12.entry.js +4 -4
- package/dist/esm/yoo-chat-message_3.entry.js +3 -3
- package/dist/esm/yoo-chat.entry.js +3 -3
- package/dist/esm/yoo-detail-bar.entry.js +3 -3
- package/dist/esm/yoo-feed-detail.entry.js +2 -2
- package/dist/esm/yoo-form-choice_4.entry.js +3 -3
- package/dist/esm/yoo-form-conditions.entry.js +2 -2
- package/dist/esm/yoo-form-connect.entry.js +2 -2
- package/dist/esm/yoo-form-creator-block-expandable.entry.js +3 -3
- package/dist/esm/yoo-form-creator-block-simple_4.entry.js +4 -4
- package/dist/esm/yoo-form-creator-card_2.entry.js +3 -3
- package/dist/esm/yoo-form-creator-field-selector_8.entry.js +3 -3
- package/dist/esm/yoo-form-creator-translate-dialog.entry.js +3 -3
- package/dist/esm/yoo-form-creator.entry.js +3 -3
- package/dist/esm/yoo-form-image-collection.entry.js +2 -1
- package/dist/esm/yoo-form-image-tagging-creator.entry.js +3 -3
- package/dist/esm/yoo-form-incentive-targets.entry.js +2 -2
- package/dist/esm/yoo-form-multi-input.entry.js +2 -2
- package/dist/esm/yoo-form-reorder.entry.js +2 -2
- package/dist/esm/yoo-form-stripe-card.entry.js +2 -2
- package/dist/esm/yoo-form-swipe-cards.entry.js +3 -3
- package/dist/esm/yoo-form-text-editor.entry.js +3 -3
- package/dist/esm/yoo-form-uploader.entry.js +2 -2
- package/dist/esm/yoo-input-bar.entry.js +3 -3
- package/dist/esm/yoo-location-heading.entry.js +2 -2
- package/dist/esm/yoo-podium.entry.js +3 -3
- package/dist/esm/yoo-profile-summary.entry.js +2 -2
- package/dist/esm/yoo-scratch-card.entry.js +2 -2
- package/dist/esm/yoo-slides-media.entry.js +3 -3
- package/dist/esm/yoo-user-profile.entry.js +3 -3
- package/dist/esm/yoo-videoplayer-videojs.entry.js +2 -2
- package/dist/esm/yoo-walkthrough.entry.js +3 -3
- package/dist/types/components/1.atoms/markdown/markdown.d.ts +1 -0
- package/dist/types/home/runner/work/yoobic-ng-6/yoobic-ng-6/design-system/stencil/.stencil/shared/utils/src/helpers/media-helpers.d.ts +1 -1
- package/package.json +1 -1
- package/dist/design-system/p-51b31923.entry.js +0 -1
- package/dist/design-system/p-5967be0f.entry.js +0 -1
- package/dist/design-system/p-a9b344e7.entry.js +0 -1
- package/dist/design-system/p-f4dc9a99.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,f as e,h as o,H as s,a}from"./p-34197588.js";import{h as n,i as r,j as l,k as h,S as d,A as c,l as p}from"./p-4d956bd4.js";import{c as m}from"./p-6dbac5f2.js";import{t as b,b9 as f,Y as v,u as g,a2 as u,s as y,as as x,a4 as w}from"./p-8c6ff567.js";import{g as C}from"./p-76fdfe1c.js";import{u as k,c as I,r as S,s as E,a as T,f as O,b as F,d as A,e as N,g as L,h as D,p as j,i as z,j as R,k as B,l as P,m as M}from"./p-5b2fa517.js";import"./p-473a381c.js";import{f as U}from"./p-16ea8a14.js";import{S as V}from"./p-12797a88.js";import{N as G,A as q}from"./p-67fc8d0d.js";import{a as H,s as W,u as Y,i as K,g as $,r as Q,b as _,c as Z,d as J,e as X,f as tt,h as it,j as et,k as ot,l as st,m as at,t as nt,n as rt,o as lt,p as ht,q as dt,v as ct,w as pt,x as mt,y as bt,z as ft,A as vt,B as gt,C as ut,D as yt,E as xt,F as wt,G as Ct,H as kt,I as It,J as St}from"./p-be23af49.js";import{c as Et}from"./p-1feee72c.js";import{o as Tt}from"./p-c578e362.js";import"./p-ca07fb1e.js";import"./p-e0d6fbed.js";import"./p-81cde160.js";import"./p-478a812f.js";import"./p-f1b3e8cb.js";import"./p-1f1c180f.js";import"./p-a33e7e8f.js";import"./p-a1142cd3.js";import"./p-16ec81f2.js";import"./p-b71f650c.js";import"./p-ed132d63.js";import"./p-659a953c.js";import"./p-bd19a341.js";import"./p-7b8c6197.js";import"./p-ba9a1e5a.js";import"./p-9021373d.js";import"./p-86948176.js";import"./p-b4aad66a.js";import"./p-d6c8e21e.js";import"./p-773567d1.js";import"./p-16835be6.js";import"./p-c940b791.js";import"./p-ba705441.js";import"./p-1c220344.js";import"./p-b5003a96.js";import"./p-e26d9ded.js";import"./p-31417fd8.js";import"./p-ee1979e2.js";import"./p-a4d0bd7f.js";import"./p-9c28d18f.js";import"./p-c3ec533d.js";import"./p-5fd2d8ef.js";import"./p-338ff9dc.js";import"./p-88c8100b.js";import"./p-03785d04.js";import"./p-0fa5a641.js";import"./p-ce28b223.js";import"./p-9b8752ac.js";import"./p-b90d2aac.js";import"./p-9de400aa.js";import"./p-3d31de8a.js";import"./p-c15310d4.js";const Ot=[n.custom,n.settings,n.move,n.duplicate,n.delete,n.close],Ft=class{constructor(e){t(this,e),this.planChanged=i(this,"planChanged",7),this.reloadLivePreview=i(this,"reloadLivePreview",7),this.leftMenuChange=i(this,"leftMenuChange",7),this.loadNewTranslations=i(this,"loadNewTranslations",7),this.closeClicked=i(this,"closeClicked",7),this.saveClicked=i(this,"saveClicked",7),this.pageHeaderClicked=i(this,"pageHeaderClicked",7),this.formCreatorBlockExpanded=i(this,"formCreatorBlockExpanded",7),this.slidesChanged=i(this,"slidesChanged",7),this.addNewPageClicked=i(this,"addNewPageClicked",7),this.newScoringClicked=i(this,"newScoringClicked",7),this.scoringChanged=i(this,"scoringChanged",7),this.scoringQuickSetup=i(this,"scoringQuickSetup",7),this.editPageSettings=i(this,"editPageSettings",7),this.openFullPageLivePreviewClicked=i(this,"openFullPageLivePreviewClicked",7),this.baseLanguageChanged=i(this,"baseLanguageChanged",7),this.selectedLanguagesChanged=i(this,"selectedLanguagesChanged",7),this.translationUpdated=i(this,"translationUpdated",7),this.translationsUpdated=i(this,"translationsUpdated",7),this.translationEdited=i(this,"translationEdited",7),this.translationRemoved=i(this,"translationRemoved",7),this.translationRemoveAll=i(this,"translationRemoveAll",7),this.translationImport=i(this,"translationImport",7),this.translateValue=i(this,"translateValue",7),this.saveNewTranslations=i(this,"saveNewTranslations",7),this.missionDescriptionChanged=i(this,"missionDescriptionChanged",7),this.editMultipleFields=i(this,"editMultipleFields",7),this.createCustomFormFields=i(this,"createCustomFormFields",7),this.customFieldEdited=i(this,"customFieldEdited",7),this.customFieldDeleted=i(this,"customFieldDeleted",7),this.hasLoaded=i(this,"hasLoaded",7),this.formFieldBlockExpanded=i(this,"formFieldBlockExpanded",7),this.centerContentWidthChanged=i(this,"centerContentWidthChanged",7),this.scrollContent=i(this,"scrollContent",7),this.createNewRestrictionClicked=i(this,"createNewRestrictionClicked",7),this.editRestrictionCondition=i(this,"editRestrictionCondition",7),this.formFieldDelete=i(this,"formFieldDelete",7),this.setLoading=i(this,"setLoading",7),this.translateDialogClosed=i(this,"translateDialogClosed",7),this.newPageAdded=i(this,"newPageAdded",7),this.translateDialogLanguageChanged=i(this,"translateDialogLanguageChanged",7),this.showQrCode=i(this,"showQrCode",7),this.headerWarningClicked=i(this,"headerWarningClicked",7),this.workflowStepAdded=i(this,"workflowStepAdded",7),this.workflowStepUpdated=i(this,"workflowStepUpdated",7),this.workflowStepEdited=i(this,"workflowStepEdited",7),this.workflowStepRemoved=i(this,"workflowStepRemoved",7),this.workflowBranchAdded=i(this,"workflowBranchAdded",7),this.workflowStepParallelStepAdded=i(this,"workflowStepParallelStepAdded",7),this.workflowCurrentStepChanged=i(this,"workflowCurrentStepChanged",7),this.openZenDesk=i(this,"openZenDesk",7),this.formFields=[],this.categories=[],this.options=[],this.helpCenterOptions=[],this.bulkActions=Ot,this.showPagesSection=!0,this.scoring=[],this.selectedLeftMenuOption=r.blocks,this.selectedPageIndex=0,this.showConditions=!1,this.showLeftMenuSelection=!0,this.numberOfBlocksToRender=20,this.selectionMode=!1,this.isLivePreviewHidden=!1,this.selectedFields=[],this.shouldRenderLeftSelectionContent=!0,this.currentSlides=[],this.parentBlockIndices=[],this.simpleFormBlocks={information:[]},this.newFieldContainerBlocks=[],this.newFieldCategoryBlocks=[],this.expandableBlockContainers=[],this.expandableBlocks=[],this.leftMenuSortables=[],this.hasPageChanged=-1,this.hasLeftMenuOptionChanged=!1,this.totalFields=0,this.fieldsWithScoring=[],this.selectedScoringIndex=0,this.isPagesAccordionOpen=!0,this.hasAdditionBeenClicked=!1,this.infiniteScrolls=[],this.unattachedParentConditions=[],this.restrictionConditionSelectedTab=0,this.expandedConditions=[],this.onInsertPageAfterClicked=t=>{t&&this.onAddNewPage(t.detail+1)},this.onPageClicked=t=>{var i,e,o;(null===(i=this.newUndefinedCondition)||void 0===i?void 0:i.pageCondition)&&(null===(e=this.newUndefinedCondition)||void 0===e?void 0:e.condition)?(this.addPageCondition(this.newUndefinedCondition.condition,t.detail),this.newUndefinedCondition=null,this.removeOverlays()):(null===(o=this.newUndefinedCondition)||void 0===o?void 0:o.pageCondition)?(this.createNewRestrictionClicked.emit({pageIndex:t.detail,type:this.newUndefinedCondition.type}),this.newUndefinedCondition=null,this.removeOverlays()):(this.selectedPageIndex=t.detail,this.pageHeaderClicked.emit(t.detail),this.hasPageChanged=t.detail,this.resetExpandableBlockReferences())},this.onDuplicatePageClicked=t=>{var i,e,o;if(t){const s=Et(this.currentSlides[t.detail]);H(s);const a=[];(null===(i=this.translations)||void 0===i?void 0:i.length)>0&&(null===(e=this.translations)||void 0===e||e.forEach((t=>{const i=k(Et(t),this.baseLanguage);I(null,!1,`%${t.key}%`,s,`%${i.key}%`,{key:t.key,updateKey:i.key})&&a.push(i)})),null===(o=null==s?void 0:s.items)||void 0===o||o.forEach((t=>{var i;t.opValues&&(null===(i=t.opValues[0])||void 0===i?void 0:i.length)>0&&t.values&&(t.opValues[0]=Et(t.values))}))),this.saveNewTranslations.emit(a),this.currentSlides.splice(t.detail+1,0,s),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}},this.onDeletePageClicked=t=>{var i;if(t){const e=(null===(i=this.missionDescription)||void 0===i?void 0:i.active)?b("DELETEPAGEACTIVECAMPAIGN"):b("DELETECONFIRMPAGE");f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],e).then((i=>{var e,o,s;i&&(null===(e=this.currentSlides[t.detail])||void 0===e||e.items.forEach((t=>{this.scoring=S(t.name,this.scoring)})),this.computeScoringTotal(),(null===(o=this.scoring)||void 0===o?void 0:o.length)>0&&this.scoringChanged.emit(this.scoring),t.detail===this.selectedPageIndex&&(null===(s=this.currentExpandableFieldSortable)||void 0===s||s.destroy(),this.currentExpandableFieldSortable=null),this.currentSlides.splice(t.detail,1),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender())}))}},this.onEditPageClicked=t=>{t&&this.editPageSettings.emit(t.detail)},this.onAddSiteTagRestrictionClicked=t=>{t&&this.createNewRestrictionClicked.emit({pageIndex:t.detail,type:"tags"})},this.onAddUserGroupRestrictionClicked=t=>{t&&this.createNewRestrictionClicked.emit({pageIndex:t.detail,type:"groups"})},this.onScoreChanged=t=>{const{formattedScoring:i,scoringCategory:e}=t.detail,o=E(i,e);this.updateScoring(o)},this.onScoreDeleted=t=>{const{formattedScoring:i,scoringCategory:e}=t.detail;W(i,e).forEach((t=>{delete this.selectedScoring[t]})),this.selectedScoring.selectedFields=Y(this.selectedScoring.selectedFields,null==i?void 0:i.fieldName),this.selectedScoring=Object.assign({},this.selectedScoring),this.scoring[this.selectedScoringIndex]=this.selectedScoring,this.isInOtherScoring(null==i?void 0:i.fieldName)||this.toggleHasScoring(null==i?void 0:i.fieldName),this.computeScoringTotal(),this.scoringChanged.emit(this.scoring),this.emitNewSlidesAndRerender()},this.onScoreAdded=t=>{const{formattedScoring:i,scoringCategory:e}=t.detail,o=E(i,e),s=this.slides[this.selectedPageIndex].items.find((t=>t.name===i.fieldName));this.selectedScoring.selectedFields=Y(this.selectedScoring.selectedFields,i.fieldName),this.selectedScoring=Object.assign({},this.selectedScoring),this.isInOtherScoring(i.fieldName)||this.toggleHasScoring(i.fieldName),this.scoring[this.selectedScoringIndex].selectedFields.push(s),this.updateScoring(o),this.emitNewSlidesAndRerender()}}get isTranslatorForm(){var t;return 1===(null===(t=this.options)||void 0===t?void 0:t.length)&&this.options[0]===r.translate}get showLogics(){return this.options.includes(r.logic)}get showScorings(){return this.options.includes(r.scoring)}get showTranslations(){return this.options.includes(r.translate)}get showDesign(){return this.options.includes(r.design)}get showWorkflow(){return this.options.includes(r.workflow)}get isLesson(){var t;return"lesson"===(null===(t=this.missionDescription)||void 0===t?void 0:t.type)}onCustomFormFieldsUpdated(){this.fieldSelectorElement&&(this.fieldSelectorElement.initialCustomFormFields=null,this.fieldSelectorElement.initialCustomFormFields=this.customFormFields)}updateSelectedScoring(t){const i=this.scoring.findIndex((i=>i.title===t.title));i>-1&&(this.selectedScoringIndex=i),this.selectedScoring=t}updateInternalSlides(t){var i;t=null==t?void 0:t.map(((t,i)=>{var e;return t.items=null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.map(((t,e)=>{var o,s,a;return(t=T(t,c)).isExpanded||(null===(o=this.currentExpandedBlockLocation)||void 0===o?void 0:o.slideIndex)!==i||(null===(s=this.currentExpandedBlockLocation)||void 0===s?void 0:s.itemIndex)!==e||(null===(a=this.newFieldCondition)||void 0===a?void 0:a.condition)||(t.isExpanded=!0),t})),t})),this.currentSlides=this.hasLeftMenuOptionChanged?Et(t):[...t],this.selectedLeftMenuOption===r.workflow&&(this.missionDescription.slides=t),this.hasAdditionBeenClicked&&(null===(i=this.newFieldCondition)||void 0===i?void 0:i.condition)&&(this.newFieldCondition=null,this.overlayElement.initialNewFieldCondition=this.newFieldCondition,this.hasAdditionBeenClicked=!1)}onTranslationsChanged(){var t,i,e,o;this.haveTranslationsUpdated=!0,this.reloadLivePreview.emit(),this.livePreviewElement&&(this.livePreviewElement.missionDescriptionTitle=v((null===(t=this.missionDescription)||void 0===t?void 0:t.title)||(null===(i=this.plan)||void 0===i?void 0:i.title))),this.formCreatorHeader&&(this.formCreatorHeader.formTitle=v((null===(e=this.missionDescription)||void 0===e?void 0:e.title)||(null===(o=this.plan)||void 0===o?void 0:o.title))),this.formCreatorTranslateDialog&&(this.formCreatorTranslateDialog.translations=this.translations,this.formCreatorTranslateDialog.forceUpdateTranslations())}onAdditionClicked(t){t.detail.customFieldId?this.onCustomFieldAdded(t.detail.customFieldId):t.detail.conditionType||t.detail.condition?this.onAddNewCondition(t.detail.conditionType,t.detail.pageRestriction,t.detail.condition):t.detail.field&&(this.hasAdditionBeenClicked=!0,this.onFormFieldAdd(t.detail.field))}onCustomFieldEdited(t){t.stopImmediatePropagation(),this.customFieldEdited.emit(t.detail)}onCustomFieldDeleted(t){t.stopImmediatePropagation(),this.customFieldDeleted.emit(t.detail)}onConditionExpanded(t){t.detail.expanded&&(this.collapseAllBlocks(null,!0),this.scrollToField(t.detail.index,t.detail.host),this.expandedConditions.push(t.detail.host))}onCreatorBlockExpanded(t){var i;if(null==t?void 0:t.detail){const{slideIndex:e,itemIndex:o}=O(this.currentSlides,t.detail.name);if(o>-1)if(t.detail.expanded&&!K(this.selectedLeftMenuOption)){if(this.currentExpandedBlockLocation&&o!==this.currentExpandedBlockLocation.itemIndex){const t=$(this.currentSlides,this.selectedPageIndex,this.currentExpandedBlockLocation.itemIndex);this.expandableBlocks&&this.expandableBlocks[t]&&this.expandableBlocks[t].expandBlock(!1,this.currentExpandedBlockLocation.itemIndex!==t,o)}this.collapseAllBlocks(t.detail.name,!0),this.formCreatorBlockExpanded.emit({pageIndex:e,itemIndex:o}),this.currentExpandedBlockLocation={slideIndex:e,itemIndex:o},this.expandedFieldName=t.detail.name||this.expandedFieldName,this.scrollToField(o)}else!t.detail.expanded&&this.currentExpandedBlockLocation&&o===this.currentExpandedBlockLocation.itemIndex?(this.currentExpandedBlockLocation=null,this.currentSlides[e].items[o].isExpanded=!1):!t.detail.expanded&&this.forceFieldRerender&&(this.forceFieldRerender=null);t.detail.expanded&&(null===(i=this.expandedConditions)||void 0===i||i.forEach((t=>{t.forceCollapse()})),this.expandedConditions=[])}}onRemoveConditionClicked(t){f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],b("REMOVECONDITIONCONFIRM")).then((i=>{if(i){const{slides:i,unattachedParentConditions:e}=Q(this.currentSlides,t.detail.name,this.unattachedParentConditions,t.detail.conditionId);this.currentSlides=i,this.unattachedParentConditions=e,this.emitNewSlidesAndRerender()}}))}onRemovePageCondition(t){if(t&&t.detail){const{slides:i,unattachedParentConditions:e}=_(this.currentSlides,t.detail.slideIndex,t.detail.conditionId,this.unattachedParentConditions);this.currentSlides=i,this.unattachedParentConditions=e,this.emitNewSlidesAndRerender()}}onFormFieldDelete(t){var i;if(t&&t.detail){const{slideIndex:e,itemIndex:o}=O(this.currentSlides,t.detail.name),s=(null===(i=this.missionDescription)||void 0===i?void 0:i.active)?b("DELETEFIELDACTIVECAMPAIGN"):b("DELETECONFIRMFIELD");f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],s).then((i=>{var s,a,n,r,l;i&&(this.unattachedParentConditions=Z(this.currentSlides,{slideIndex:e,itemIndex:o},this.unattachedParentConditions),this.formFieldDelete.emit({name:t.detail.name}),this.scoring=S(t.detail.name,this.scoring),this.computeScoringTotal(),J(this.currentSlides,{slideIndex:e,itemIndex:o,name:t.detail.name}),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender(),0!==(null===(a=null===(s=this.currentSlides[e])||void 0===s?void 0:s.items)||void 0===a?void 0:a.length)&&(null===(n=this.currentSlides[e])||void 0===n?void 0:n.items)||(this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.forceSortableRefresh=!0),(null===(r=this.currentExpandedBlockLocation)||void 0===r?void 0:r.slideIndex)===e&&(null===(l=this.currentExpandedBlockLocation)||void 0===l?void 0:l.itemIndex)===o&&(this.currentExpandedBlockLocation=null))}))}}onFormFieldDuplicate(t){var i,e;if(null==t?void 0:t.detail){const{slideIndex:o,itemIndex:s}=O(this.currentSlides,t.detail.name);if(this.currentSlides=X(this.currentSlides,{slideIndex:o,itemIndex:s},!1,null,"dataset"===(null===(i=this.missionDescription)||void 0===i?void 0:i.type)),null===(e=this.translations)||void 0===e?void 0:e.length){const t=[];this.updateDuplicatedFieldTranslations(this.currentSlides,o,s+1,t),(null==t?void 0:t.length)&&this.saveNewTranslations.emit(t)}this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}}onFormFieldMarkAsMandatory(t){if(t&&t.detail){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.name);let o=this.currentSlides[i].items[e];o=Object.assign(Object.assign({},o),{required:!0}),this.currentSlides[i].items[e]=o,this.emitNewSlidesAndRerender()}}onMoveUpClicked(t){this.onFormFieldMove(t,!0)}onMoveDownClicked(t){this.onFormFieldMove(t,!1)}onLinkToFieldClicked(t){t.detail&&(void 0!==t.detail.itemIndex&&(this.currentSlides[t.detail.slideIndex].items[t.detail.itemIndex].isExpanded=!0),this.setSelectedPage(t.detail.slideIndex))}onEditPageSettings(t){t.stopPropagation(),t.detail&&this.editPageSettings.emit(t.detail)}onDeleteCondition(t){f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],b("DELETECONFIRMCONDITION")).then((i=>{i&&(tt(this.currentSlides,t.detail.conditionId),this.unattachedParentConditions=it(this.unattachedParentConditions,t.detail.conditionId),this.emitNewSlidesAndRerender(!0,!0))}))}onEditRestriction(t){t.stopPropagation(),this.editRestrictionCondition.emit(t.detail)}onDuplicateCondition(t){this.createNewCondition("field",void 0,t.detail.itemIndex,t.detail.slideIndex,t.detail.condition)}onAddCondition(t){this.addCondition(t.detail.condition,t.detail.slideIndex,t.detail.itemIndex)}onAddPageCondition(t){this.addPageCondition(t.detail.condition,t.detail.slideIndex)}onConditionClicked(t){const{slideIndex:i,conditionIndex:e}=et(this.currentSlides,t.detail.conditionId);e>=0&&(this.selectedPageIndex!==i&&(this.selectedPageIndex=i,this.pageHeaderClicked.emit(i),this.hasPageChanged=i,this.resetExpandableBlockReferences()),this.showConditions=!0,this.selectedLeftMenuOption=r.logic)}onScoringSelected(t){(null==t?void 0:t.detail)&&([this.scoring,this.selectedScoring,this.selectedScoringIndex]=F(this.scoring,t.detail))}onDeleteScoringClicked(t){(null==t?void 0:t.detail)>-1&&(this.scoring.splice(t.detail,1),this.selectedScoring=0===this.scoring.length?null:this.scoring[0],this.scoring=[...this.scoring],this.scoringChanged.emit(this.scoring))}onNewConditionalFieldClicked(t){var i;this.selectedLeftMenuOption=r.blocks,this.newFieldCondition=t.detail,this.overlayElement.initialNewFieldCondition=this.newFieldCondition,null===(i=this.newFieldCategoryBlocks)||void 0===i||i.forEach((t=>t.forEach((t=>null==t?void 0:t.classList.add("overlay-active")))))}onHeaderClicked(t){var i,e,o;if("field"===(null===(i=this.newUndefinedCondition)||void 0===i?void 0:i.type))this.createNewCondition(this.newUndefinedCondition.type,t.detail.name);else if(null===(e=this.newUndefinedCondition)||void 0===e?void 0:e.type)this.createNewRestrictionClicked.emit({name:t.detail.name,type:this.newUndefinedCondition.type}),this.newUndefinedCondition=null;else if(null===(o=this.newUndefinedCondition)||void 0===o?void 0:o.condition){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.name);this.addCondition(this.newUndefinedCondition.condition,i,e)}}onCreateNewCondition(t){this.collapseAllBlocks(),this.showConditions=!0,this.createNewCondition("field",t.detail.name)}onConditionChanged(t){if("field"===t.detail.condition.type){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.fieldName);let o=!1;this.unattachedParentConditions&&this.unattachedParentConditions.length>0&&(this.unattachedParentConditions=this.unattachedParentConditions.map((i=>(i.condition._id===t.detail.condition._id&&(o=!0,i.condition=t.detail.condition),i)))),!o&&this.currentSlides[i].items[e].condition&&this.currentSlides[i].items[e].condition.length>0&&this.currentSlides[i].items[e].condition.forEach(((o,s)=>{o._id===t.detail.condition._id&&(this.currentSlides[i].items[e].condition[s].condition=t.detail.condition)})),o||ot(t.detail.condition,this.currentSlides),this.emitNewSlidesAndRerender()}}onPageConditionChanged(t){t.detail&&this.currentSlides[t.detail.pageIndex].condition&&(this.currentSlides[t.detail.pageIndex].condition=g(this.currentSlides[t.detail.pageIndex].condition)?this.currentSlides[t.detail.pageIndex].condition.map((i=>i._id===t.detail.condition._id?t.detail.condition:i)):t.detail.condition,this.emitNewSlidesAndRerender())}onItemSelected(t){if(this.selectionMode){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.name);this.currentSlides[i].items[e].selected?(this.currentSlides[i].items[e].selected=!1,this.selectedFields=this.selectedFields.filter((t=>!(t.slideIndex===i&&t.itemIndex===e)))):(this.currentSlides[i].items[e].selected=!0,this.selectedFields.push({slideIndex:i,itemIndex:e,name:t.detail.name})),this.selectedFields=[...this.selectedFields],this.selectedFields=Tt(this.selectedFields,["slideIndex","itemIndex"],["asc","asc"]),this.selectedMoveActions=st(this.itemList,null,((t,i,e)=>this.moveSelectedFields(e,t)),{selectedFields:this.selectedFields,extraStartingItems:[{title:"MOVEFIELDSAFTER",useHandler:!1,cssClass:"no-hover",hideIfNoItems:!0},{title:"MOVEFIELDSATBEGINNING",useHandler:!0,cssClass:"bottom-border"}]})}}onTranslateFieldClicked(t,i=null){var e;(null===(e=this.translations)||void 0===e?void 0:e.length)>0?(this.loadNewTranslations.emit(),i=O(this.currentSlides,t.detail.name),this.reloadTranslationModalOnUpdate=i):this.showTranslationDialog(t)}onCreateNewRestriction(t){this.selectedLeftMenuOption=r.logic,this.newRestrictionCondition=t.detail,this.restrictionSelector&&(this.restrictionSelector.disableSecondaryActions=!0),this.overlayElement.initialNewRestrictionCondition=this.newRestrictionCondition}onRestricitonHeaderClicked(t){if(this.newRestrictionCondition&&t.detail.type)this.createNewRestrictionClicked.emit({name:this.newRestrictionCondition.name,type:t.detail.type}),this.removeOverlays();else if(this.newRestrictionCondition&&t.detail.condition){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,this.newRestrictionCondition.name);this.addCondition(t.detail.condition,i,e)}}onRestrictionConditionClicked(){this.restrictionConditionSelectedTab=1,this.selectedLeftMenuOption===r.logic?this.restrictionSelector.updateSelectedTab(this.restrictionConditionSelectedTab):this.selectedLeftMenuOption=r.logic}onFieldMove(t){this.moveSelectedFields(t.detail.targetFieldName,t.detail.targetFieldSlideIndex,t.detail.selectedField)}onfieldChanged(t){var i,e,o,s,a,n;if((null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.opValues)&&(null===(e=this.scoring)||void 0===e?void 0:e.length)){const i=null===(n=null===(a=null===(s=null===(o=this.missionDescription)||void 0===o?void 0:o.slides[this.selectedPageIndex])||void 0===s?void 0:s.items)||void 0===a?void 0:a.find((i=>i.name===t.detail.name)))||void 0===n?void 0:n.values,e=t.detail.opValues[0];i&&e&&(null==e||e.forEach(((e,o)=>{this.scoring.map(((s,a)=>{const n=i=>`${t.detail.name}${i}`,r=t=>s[n(t)];void 0!==r(i[o])&&void 0===r(e)&&(this.scoring[a]=Object.assign(Object.assign({},s),{[n(e)]:r(i[o])}),delete this.scoring[a][n(i[o])],this.missionDescription.slides[this.selectedPageIndex].items.find((i=>i.name===t.detail.name)).values[o]=e)}))})))}}onSaveAsTemplateClicked(t){const i=O(this.slides,t.detail.name),e=[this.slides[i.slideIndex].items[i.itemIndex]],{cleanedFields:o,removedConditionIds:s}=at(e,this.translations);this.createCustomFormFields.emit({cleanedFields:o,removedConditionIds:s})}async updateHeaderWarning(t){this.formCreatorHeader.showWarning=t}async translateAllFields(){nt(!1,this.missionDescription,this.translations,this.currentSlides,this.scoring,this.baseLanguage,{missionDescriptionChanged:this.missionDescriptionChanged,slidesChanged:this.slidesChanged,scoringChanged:this.scoringChanged,translationsUpdated:this.translationsUpdated},null,!0)}async translationUpdateShowTranslateDialog(){this.reloadTranslationModalOnUpdate&&this.haveTranslationsUpdated&&this.translations&&this.translations.length>0&&(this.showTranslationDialog(null,this.reloadTranslationModalOnUpdate),this.reloadTranslationModalOnUpdate=null,this.haveTranslationsUpdated=!1)}async addPageCondition(t,i){if(this.currentSlides[i].condition){const e=[...this.currentSlides[i].condition,t];this.currentSlides[i].condition=e}else this.currentSlides[i].condition=[t];this.unattachedParentConditions=rt(this.unattachedParentConditions,t),this.emitNewSlidesAndRerender()}async addCondition(t,i,e){var o;if((null===(o=null==t?void 0:t.field)||void 0===o?void 0:o.values)&&(t.field.values=Et(t.field.values)),this.currentSlides[i].items[e].condition){const o=[...this.currentSlides[i].items[e].condition,t];this.currentSlides[i].items[e].condition=o}else this.currentSlides[i].items[e].condition=[t];this.unattachedParentConditions=rt(this.unattachedParentConditions,t),this.emitNewSlidesAndRerender()}async updateTranslationValueInDialog(t){this.formCreatorTranslateDialog&&this.formCreatorTranslateDialog.updateTranslationValue(t)}async scrollToField(t,i){setTimeout((()=>{var e,o;let s=t;this.expandableBlocks[s]||i||(s=$(this.slides,this.selectedPageIndex,t));const a=48*(t-s),n=i||this.expandableBlocks[s];if(n){const t=n.getBoundingClientRect(),i=null===(e=this.mainContentScrollElement)||void 0===e?void 0:e.getBoundingClientRect();i&&t&&(t.y<i.y||t.bottom>i.bottom-160)&&this.mainContentScrollElement.scrollByPoint(0,t.y-i.y-8+a,200)}this.newFieldAdded=null,null===(o=this.newFieldContainerBlocks)||void 0===o||o.forEach((t=>{var i;return null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.remove("disabled")}))}),500)}async setAreSlidesDirtyAndDisableSaveButton(t,i=!1){this.areSlidesDirty=t,this.formCreatorHeader&&this.formCreatorHeader.setSaveButtonDisabled(!this.areSlidesDirty||i)}async toggleSelectionMode(t){this.selectionMode=!t&&!this.selectionMode,this.selectionMode?this.currentExpandedBlockLocation&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex]&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex].expandBlock(!1):(this.removeOverlays(),lt(this.currentSlides),this.selectedFields=[])}async setSelectedPage(t){t=Math.max(0,t),this.hasPageChanged=t,this.selectedPageIndex=t}async addNewPage(t,i){t=Object.assign({_id:C()},t),this.currentSlides.splice(i,0,t),this.selectedPageIndex=i,this.hasPageChanged=i,this.newPageAdded.emit(i),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}async pageOrderChange(t,i){const e=e=>{const o=e[t];e.splice(t,1),e.splice(i,0,o)};e(this.currentSlides),e(this.itemList),this.emitNewSlidesAndRerender()}async expandFormFieldBlock(t,i){t===this.selectedPageIndex&&(this.scrollToField(i),this.expandableBlocks[i]?this.expandableBlocks[i].expandBlock(!0):await this.expandChildBlocks(i))}async setScoring(t,i=!1){t&&t.length>0&&([t,this.selectedScoring,this.selectedScoringIndex]=ht(t),i&&(this.fieldsWithScoring=dt(t),ct(this.currentSlides,this.fieldsWithScoring),this.computeScoringTotal()))}async forceUpdateBlockValues({slideIndex:t,itemIndex:i},o){if(this.selectedPageIndex===t){let s=!1;const a=i;for(;!s&&i>=0;)this.expandableBlocks[i]?(this.expandableBlocks[i].formField.title=a===i&&o?o.title:this.currentSlides[t].items[i].title,this.expandableBlocks[i].formField.values=this.currentSlides[t].items[i].values,this.expandableBlocks[i].formField.required=a===i&&o?o.required:this.currentSlides[t].items[i].required,e(this.expandableBlocks[i]),s=!0):i-=1}}componentWillLoad(){this.currentSlides=this.slides,this.isTallScreen()&&(this.numberOfBlocksToRender=30),this.isTranslatorForm?this.selectedLeftMenuOption=r.translate:(pt(this.currentSlides),this.setItemList(),this.newFieldCategoryBlocks=Array.from(Array(this.categories.length),(()=>[])),this.setSimpleFormBlockArrays(),this.totalFields=mt(this.slides),this.currentSlides=bt(this.currentSlides),this.scoring=u(this.scoring),this.setScoring(this.scoring,!0)),this.isLivePreviewHidden=this.selectedLeftMenuOption===r.workflow}componentDidLoad(){this.plan||(this.initExpandedFieldsSortable(),this.initNewFieldsSortable(),this.currentSlides=bt(this.currentSlides),this.updateGlobalActions(),this.hasLoaded.emit(),this.containerElWatch=setInterval((()=>{var t;(null===(t=this.containerEl)||void 0===t?void 0:t.scrollTop)>0&&(this.containerEl.scrollTop=0)}),1e3)),this.hasLoaded.emit()}componentWillUpdate(){this.currentSlides=bt(this.currentSlides),this.currentSlides=ft(this.unattachedParentConditions,this.currentSlides),pt(this.currentSlides),this.totalFields=mt(this.slides),this.newFieldAdded||(this.newFieldContainerBlocks=[]),this.setItemList()}componentDidUpdate(){var t;this.currentSlides=bt(this.currentSlides),this.restrictionConditionSelectedTab=0,this.updateGlobalActions(),(this.hasPageChanged>-1||this.forceSortableRefresh)&&this.isSelectedLeftMenu(r.blocks)&&(this.currentExpandableFieldSortable&&this.hasPageChanged>-1&&this.currentExpandableFieldSortable.destroy(),setTimeout((()=>{this.initExpandedFieldsSortable(),this.initNewFieldsSortable()}),this.forceSortableRefresh?1e3:0),this.forceSortableRefresh=!1,this.hasPageChanged=-1),this.hasLeftMenuOptionChanged&&this.isSelectedLeftMenu(r.blocks)&&(this.initExpandedFieldsSortable(),this.initNewFieldsSortable(),this.hasLeftMenuOptionChanged=!1),this.checkExpandedFieldsHaveForms(),(null===(t=this.newFieldAdded)||void 0===t?void 0:t.conditional)&&(this.showConditions=!0,this.forceFieldRerender&&(this.forceFieldRerender=null)),this.shouldRenderLeftSelectionContent=!0}updateGlobalActions(){this.selectedMoveActions=st(this.itemList,null,((t,i,e)=>this.moveSelectedFields(e,t)),{extraStartingItems:[{title:"MOVEFIELDSAFTER",useHandler:!1,cssClass:"no-hover",hideIfNoItems:!0},{title:"MOVEFIELDSATBEGINNING",useHandler:!0,cssClass:"bottom-border"}]}),this.selectedDuplicateActions=st(this.itemList,null,((t,i)=>this.duplicateSelectedFields(t,i)),{emptySubmenuHandlerTitle:"ADDTOSTART"})}disconnectedCallback(){this.containerElWatch&&clearInterval(this.containerElWatch)}async expandChildBlocks(t){var i;const[e,o]=this.getIndexAndChildCount(t),s=await(null===(i=this.expandableBlocks[o])||void 0===i?void 0:i.getExpandableChildBlocks());s&&s.length>0&&s[e-1]&&s[e-1].expandBlock(!0)}computeScoringTotal(){this.scoring=this.scoring.map((t=>A(t)))}isTallScreen(){return window.innerHeight>1300}updateScoring(t){this.scoring[this.selectedScoringIndex]=Object.assign(Object.assign({},this.scoring[this.selectedScoringIndex]),t),this.scoring[this.selectedScoringIndex].selectedFields=this.scoring[this.selectedScoringIndex].selectedFields.filter(((t,i,e)=>e.findIndex((i=>i.name===t.name))===i)),this.selectedScoring=Object.assign({},this.scoring[this.selectedScoringIndex]),this.scoring=[...this.scoring],this.computeScoringTotal(),this.scoringChanged.emit(this.scoring)}isInOtherScoring(t){let i=!1;return this.scoring.forEach((e=>{e.selectedFields.find((i=>i.name===t))&&(i=!0)})),i}onScoringQuickSetup(){this.scoringQuickSetup.emit({title:this.selectedScoring.title,pages:this.slides,scoringIndex:this.selectedScoringIndex})}getIndexAndChildCount(t){let i=0;for(;!this.expandableBlocks[t]&&t>0;)t-=1,i+=1;return[i,t]}toggleInvisibleDiv(){vt(this.currentSlides,this.selectedPageIndex)&&this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{var e;if(t&&t.isExpanded)if(this.expandableBlocks[i])this.expandableBlocks[i].toggleInvisibleDiv();else{const[t,o]=this.getIndexAndChildCount(i);null===(e=this.expandableBlocks[o])||void 0===e||e.getExpandableChildBlocks().then((i=>{i.length>0&&i[t-1]&&i[t-1].toggleInvisibleDiv()}))}}))}showTranslationDialog(t,i=null){var e;let o=!1;t?i=null===i?O(this.currentSlides,t.detail.name):i:i||(i={slideIndex:0,itemIndex:0}),this.formCreatorTranslateDialog=document.createElement("yoo-form-creator-translate-dialog"),this.formCreatorTranslateDialog.baseLanguage=this.baseLanguage,this.formCreatorTranslateDialog.translatedLanguages=null===(e=this.missionDescription)||void 0===e?void 0:e.languages,this.formCreatorTranslateDialog.allLanguages=this.allLanguages,this.translations&&this.translations.length>0?(o=!0,this.formCreatorTranslateDialog.isTranslator=this.isTranslator,this.formCreatorTranslateDialog.disableNewLanguageButton=this.isLesson&&!this.plan?"ADDNEWLANGAUGEINCOURSE":null,this.formCreatorTranslateDialog.translations=this.translations,this.formCreatorTranslateDialog.slides=N(this.currentSlides,!0),this.formCreatorTranslateDialog.initialSelectedFieldLocation=i,this.formCreatorTranslateDialog.addEventListener("translationUpdated",(t=>{t.stopPropagation(),this.translationUpdated.emit(t.detail)})),this.formCreatorTranslateDialog.addEventListener("languageChanged",(t=>{t.stopPropagation(),this.translateDialogLanguageChanged.emit(t.detail)})),this.formCreatorTranslateDialog.addEventListener("translateValue",(t=>{this.translateValue.emit(t.detail)}))):(this.formCreatorTranslateDialog.mode="createInitial",this.formCreatorTranslateDialog.addEventListener("selectedLanguagesChanged",(t=>{this.selectedLanguagesChanged.emit(t.detail)})),this.formCreatorTranslateDialog.addEventListener("baseLanguageChanged",(t=>{this.baseLanguageChanged.emit(t.detail)}))),y(this.formCreatorTranslateDialog,{},"visible-overflow responsive","fadeEnterAnimation","fadeLeaveAnimation",!0).then((e=>{var s,a,n,r;this.translateDialogClosed.emit({refreshForms:o}),(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.createNewTranslations)?this.translateNewLanguages([],!1,i):(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.addNewLanguage)?this.showChangeLanguageTranslationDialog(t,i):(this.reloadLivePreview.emit(),this.livePreviewElement&&(this.livePreviewElement.missionDescriptionTitle=v(null===(n=this.missionDescription)||void 0===n?void 0:n.title)),this.formCreatorHeader&&(this.formCreatorHeader.formTitle=v(null===(r=this.missionDescription)||void 0===r?void 0:r.title)))}))}showChangeLanguageTranslationDialog(t,i){var e;const o=document.createElement("yoo-form-creator-translate-dialog");o.baseLanguage=this.baseLanguage,o.mode="create",o.translatedLanguages=null===(e=this.missionDescription)||void 0===e?void 0:e.languages,o.allLanguages=this.allLanguages,o.addEventListener("selectedLanguagesChanged",(t=>{this.selectedLanguagesChanged.emit([...t.detail,...this.selectedLanguages])})),y(o,{},"visible-overflow responsive","fadeEnterAnimation","fadeLeaveAnimation",!0).then((e=>{var o,s,a;(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.createNewTranslations)?this.translateNewLanguages(this.translations,!0,i,null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.newLanguesToTranslate):(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.presentTranslationModal)&&this.showTranslationDialog(t,i)}))}setItemList(){this.itemList=this.currentSlides.map((t=>{let i;t.condition&&u(t.condition).length>0&&(i=u(t.condition).map((t=>t._id)));const e=t.items.map((t=>{let i=[];return t.condition&&g(t.condition)&&(i=t.condition.filter((t=>"string"!=typeof t)).map((t=>t._id))),{itemTitle:t.title,itemId:t.name,conditionIds:i}}));return{pageTitle:t.title,pageConditionIds:i,pageItems:e}}))}toggleHasScoring(t){this.slides=this.slides.map((i=>(i.items.forEach((i=>{i.name===t&&(i.hasScoring=!i.hasScoring)})),i)))}async initNewFieldsSortable(t=!1){var i,e;0===(null===(i=this.newFieldContainerBlocks)||void 0===i?void 0:i.length)&&this.fieldSelectorElement&&(this.newFieldContainerBlocks=await this.fieldSelectorElement.getNewFieldContainerBlocks()),null===(e=this.newFieldContainerBlocks)||void 0===e||e.forEach(((i,e)=>{var o;if(i){t&&(null===(o=null==i?void 0:i.classList)||void 0===o||o.remove("disabled"));const s=V.create(i,{group:{name:"fields",pull:"clone",put:!1},animation:150,sort:!1,filter:".disabled",onClone:t=>{switch(this.currentExpandedBlockLocation&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex]&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex].expandBlock(!1),this.toggleInvisibleDiv(),this.selectedLeftMenuOption){case r.blocks:this.handleNewFieldOnClone(t);break;case r.logic:this.handleNewLogicFieldOnClone(t)}},onEnd:t=>{switch(this.toggleInvisibleDiv(),this.selectedLeftMenuOption){case r.blocks:this.handleNewFieldOnEnd(t,e)}}});this.leftMenuSortables.push(s)}}))}handleNewFieldOnEnd(t,i){var e,o;if(i>(null===(e=this.categories)||void 0===e?void 0:e.length)-1&&(null===(o=this.customFormFields)||void 0===o?void 0:o.length)>0&&(null==t?void 0:t.item)){const i=t.item.classList;t.item.remove();let e=i[1];if(e){e=e.replace("custom-field-","");const i=parseInt(e);this.customFormFields[i]&&this.onCustomFieldAdded(null,this.customFormFields[i],t.newIndex)}}else{const e=this.newFieldCategoryBlocks[i][t.oldIndex],o=t.to,s=null==e?void 0:e.formField;if(e&&o&&!o.classList.contains("category-block-selection")&&!o.classList.contains("condition-block-selection")){t.item.remove();const i={title:s.title,type:s.type,icon:s.icon,category:s.category,config:s.config};this.shouldRenderLeftSelectionContent=!1,this.onFormFieldAdd(i,t.newIndex)}this.fieldEmptyStateContainer&&this.fieldEmptyStateContainer.classList.contains("empty-state")&&(this.fieldEmptyStateContainer.style.opacity="1")}}handleNewLogicFieldOnClone(t){const i=t.clone.firstChild;i.type&&(i.mode="new")}handleNewFieldOnClone(t){const i=t.clone.firstChild,e=t.item.firstChild.formField;i.mode="new",i.formField=e,this.fieldEmptyStateContainer&&this.fieldEmptyStateContainer.classList.contains("empty-state")&&(this.fieldEmptyStateContainer.style.opacity="0")}initExpandedFieldsSortable(){this.expandableBlockContainers&&this.expandableBlockContainers.length&&this.expandableBlockContainers[this.selectedPageIndex]&&(this.currentExpandableFieldSortable=V.create(this.expandableBlockContainers[this.selectedPageIndex],{animation:150,group:{name:"fields"},chosenClass:"sortable-chosen-no-border",direction:"vertical",draggable:".sortable-container",filter:".selection",scroll:!0,swapThreshold:.2,onStart:()=>{this.toggleInvisibleDiv(),this.currentExpandedBlockLocation&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex]&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex].expandBlock(!1)},onEnd:t=>{const i=this.parentBlockIndices[t.oldIndex],e=this.parentBlockIndices[t.newIndex],o=gt(this.currentSlides[this.selectedPageIndex].items[i])+1,s=this.currentSlides[this.selectedPageIndex].items.slice(i,i+o);this.currentSlides[this.selectedPageIndex].items.splice(i,o),this.currentSlides[this.selectedPageIndex].items.splice(e,0,...s),this.toggleInvisibleDiv(),pt(this.currentSlides),this.slidesChanged.emit({slides:this.currentSlides,pageIndex:this.selectedPageIndex})}}))}removeOverlays(){var t,i,e,o,s;this.newUndefinedCondition=null,this.newRestrictionCondition=null,this.hasAdditionBeenClicked||(this.newFieldCondition=null),this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{var e;const[o]=this.getIndexAndChildCount(i);null===(e=this.expandableBlocks[o])||void 0===e||e.getExpandableChildBlocks().then((t=>null==t?void 0:t.forEach((t=>null==t?void 0:t.classList.remove("overlay-active")))))})),null===(t=this.pageCardList)||void 0===t||t.classList.remove("overlay-active"),null===(i=this.pageCardList)||void 0===i||i.addCardClassList(),null===(e=this.expandableBlocks)||void 0===e||e.forEach((t=>{var i;return null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.remove("overlay-active")})),null===(o=this.newFieldCategoryBlocks)||void 0===o||o.forEach((t=>null==t?void 0:t.forEach((t=>null==t?void 0:t.classList.remove("overlay-active"))))),null===(s=this.expandableBlocks)||void 0===s||s.forEach((t=>{(null==t?void 0:t.mode)&&(t.mode="added")})),this.newCustomFormFieldSelectionMode&&(this.newCustomFormFieldSelectionMode=!1,this.overlayElement.newCustomFormField=!1,this.selectionMode=!1),this.overlayElement.initialNewUndefinedCondition=this.newUndefinedCondition,this.overlayElement.initialNewFieldCondition=this.newFieldCondition,this.overlayElement.initialNewRestrictionCondition=this.newRestrictionCondition,this.restrictionSelector&&(this.restrictionSelector.disableSecondaryActions=!1)}createNewCondition(t,i,e,o,s){if(!s){const a=O(this.currentSlides,i);s=ut(t,this.currentSlides[o=a.slideIndex].items[e=a.itemIndex])}if("field"===t)if(G.includes(this.currentSlides[o].items[e].category))x({message:b("CANNOTAPPLYCONDITIONSTOINFORMATION"),duration:2e3,showCloseButton:!0,closable:!0,cssClass:"form-creator",position:"top"});else{const{slides:t,unattachedParentConditions:i}=yt(this.currentSlides,this.unattachedParentConditions,o,e,s);this.currentSlides=t,this.unattachedParentConditions=i}else this.addCondition(s,o,e);this.emitNewSlidesAndRerender(!1)}checkExpandedFieldsHaveForms(){vt(this.currentSlides,this.selectedPageIndex)&&this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{(null==t?void 0:t.isExpanded)&&!t.hasExpanded&&this.formCreatorBlockExpanded.emit({pageIndex:this.selectedPageIndex,itemIndex:i})}))}duplicateSelectedFields(t,i){var e,o;if(null===(e=this.selectedFields)||void 0===e?void 0:e.length){let e;e=0===i&&0===(null===(o=this.currentSlides[t].items)||void 0===o?void 0:o.length)?this.selectedFields:this.selectedFields.reverse();const s=[];e.forEach((e=>{var o,a;const{slideIndex:n,itemIndex:r}=O(this.currentSlides,e.name);this.currentSlides=X(this.currentSlides,{slideIndex:n,itemIndex:r},!1,{slideIndex:t,itemIndex:i},"dataset"===(null===(o=this.missionDescription)||void 0===o?void 0:o.type)),(null===(a=this.translations)||void 0===a?void 0:a.length)&&this.updateDuplicatedFieldTranslations(this.currentSlides,t,i+1,s)})),(null==s?void 0:s.length)&&this.saveNewTranslations.emit(s),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}}updateDuplicatedFieldTranslations(t,i,e,o){this.translations.forEach((s=>{var a,n,r,l;const h=k(Et(s),this.baseLanguage);L(!1,`%${s.key}%`,t[i].items[e],`%${null==h?void 0:h.key}%`,{key:s.key,updateKey:null==h?void 0:h.key})&&(o.push(h),(null===(n=null===(a=t[i].items[e])||void 0===a?void 0:a.opValues)||void 0===n?void 0:n.length)>0&&(null===(l=null===(r=t[i].items[e])||void 0===r?void 0:r.opValues[0])||void 0===l?void 0:l.length)>0&&(t[i].items[e].opValues[0]=t[i].items[e].values))}))}deleteSelectedFields(){if(this.selectedFields&&this.selectedFields.length>0){const t=1===this.selectedFields.length?"DELETECONFIRMFIELD":"DELETECONFIRMFIELDS";f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],b(t,{number:this.selectedFields.length})).then((t=>{var i,e,o;t&&(this.selectedFields.forEach((t=>{J(this.currentSlides,{name:t.name})})),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender(),0!==(null===(e=null===(i=this.currentSlides[this.selectedPageIndex])||void 0===i?void 0:i.items)||void 0===e?void 0:e.length)&&(null===(o=this.currentSlides[this.selectedPageIndex])||void 0===o?void 0:o.items)||(this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.forceSortableRefresh=!0))}))}}editSelectedFields(){var t;(null===(t=this.selectedFields)||void 0===t?void 0:t.length)>0&&this.editMultipleFields.emit(this.selectedFields)}onCreateCustomFormFields(){var t;if((null===(t=this.selectedFields)||void 0===t?void 0:t.length)>0){const t=this.selectedFields.map((t=>this.slides[t.slideIndex].items[t.itemIndex])),{cleanedFields:i,removedConditionIds:e}=at(t,this.translations);this.createCustomFormFields.emit({cleanedFields:i,removedConditionIds:e})}}moveSelectedFields(t,i,e){if((e=e||this.selectedFields)&&e.length>0){let o=0,s=0;const a=[],n=[];if(e.forEach((t=>{a.push(this.currentSlides[t.slideIndex].items[t.itemIndex]),n.push(this.currentSlides[t.slideIndex].items[t.itemIndex].name)})),n.forEach((t=>{const i=O(this.currentSlides,t);this.currentSlides[i.slideIndex].items.splice(i.itemIndex,1)})),t){const e=O(this.currentSlides,t);i=e.slideIndex,o=e.itemIndex,s=1}this.currentSlides[i].items.splice(o+s,0,...a),this.emitNewSlidesAndRerender()}}isSelectedLeftMenu(t){return t===this.selectedLeftMenuOption}emitNewSlidesAndRerender(t=!0,i=!1){this.removeOverlays(),t&&(this.currentSlides=D(this.currentSlides)),lt(this.currentSlides),this.selectionMode&&this.toggleSelectionMode(),this.currentSlides=N(this.currentSlides),this.slidesChanged.emit({slides:this.currentSlides,pageIndex:this.selectedPageIndex,reloadRestrictionConditions:i}),this.currentSlides=[...this.currentSlides]}setSimpleFormBlockArrays(){this.categories.forEach((t=>{this.simpleFormBlocks[t]=[]})),[...this.formFields].forEach((t=>{this.simpleFormBlocks[t.category].push(t),t.mostUsed&&this.simpleFormBlocks.mostused&&this.simpleFormBlocks.mostused.push(t)}))}selectAll(){var t,i;null===(i=null===(t=this.currentSlides[this.selectedPageIndex])||void 0===t?void 0:t.items)||void 0===i||i.forEach(((t,i)=>{t.selected||(t.selected=!0,this.selectedFields.push({slideIndex:this.selectedPageIndex,itemIndex:i,name:t.name}))})),this.selectedFields=[...this.selectedFields]}resetExpandableBlockReferences(){this.expandableBlocks=[]}translateNewLanguages(t,i,e,o){var s;"mission"===(null===(s=this.missionDescription)||void 0===s?void 0:s.type)?f(b(this.missionDescription.active?"CAUTION":"BESTPRACTICES"),[b("CANCEL"),b("TRANSLATECAMPAIGN")],null,"translate-warning",null,null,null,this.missionDescription.active?"TRANSLATEACTIVECAMPAIGNLINK":"TRANSLATECAMPAIGNLINK").then((e=>{e&&nt(i,this.missionDescription,t,this.currentSlides,this.scoring,this.baseLanguage,{missionDescriptionChanged:this.missionDescriptionChanged,slidesChanged:this.slidesChanged,scoringChanged:this.scoringChanged,translationsUpdated:this.translationsUpdated},o)})):nt(i,this.missionDescription,t,this.currentSlides,this.scoring,this.baseLanguage,{missionDescriptionChanged:this.missionDescriptionChanged,slidesChanged:this.slidesChanged,scoringChanged:this.scoringChanged,translationsUpdated:this.translationsUpdated},o),this.reloadTranslationModalOnUpdate=e}onInfiniteScroll(){var t;this.numberOfBlocksToRender<this.slides[this.selectedPageIndex].items.length&&(this.numberOfBlocksToRender+=20,null===(t=this.infiniteScrolls[this.selectedPageIndex])||void 0===t||t.complete())}onMainContentScrolled(t){t&&(this.scrollContent.emit(t.detail),t.detail.deltaY>200&&this.pagesAccordion&&this.isPagesAccordionOpen&&this.pagesAccordion.clickAccordion(0))}onPagesAccordionSelected(t){this.isPagesAccordionOpen=t.detail.selected}onLeftMenuIconSelected(t){var i;if(this.removeOverlays(),this.hasLeftMenuOptionChanged=!0,this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.showLeftMenuSelection=this.selectedLeftMenuOption!==t||!this.showLeftMenuSelection,t===r.logic&&(this.showConditions=!0),t===r.scoring&&this.scoring[0])if((null===(i=this.scoring)||void 0===i?void 0:i.length)>0&&(this.scoring=j(this.scoring,this.currentSlides),this.computeScoringTotal()),this.scoring.some((t=>!0===t.isSelected))){const t=this.scoring.findIndex((t=>!0===t.isSelected));this.selectedScoring=this.scoring[t]}else this.scoring[0].isSelected=!0,this.selectedScoring=this.scoring[0];this.leftMenuChange.emit(t),this.selectedLeftMenuOption=t,this.isLivePreviewHidden=this.selectedLeftMenuOption===r.workflow,this.onWorkflowStep(null)}onCloseClicked(t){t.stopPropagation(),this.closeClicked.emit()}onSaveClicked(t){t.stopPropagation(),this.saveClicked.emit(!0)}onAddNewPage(t=this.currentSlides.length){this.hasPageChanged=t,this.addNewPageClicked.emit(t)}collapseAllBlocks(t=null,i=!1){vt(this.currentSlides,this.selectedPageIndex)&&(this.currentSlides[this.selectedPageIndex].items.forEach((i=>{i.isExpanded=t&&i.name===t})),i&&(this.currentSlides=N(this.currentSlides),this.currentSlides=[...this.currentSlides]))}onCustomFieldAdded(t,i,e){var o,s,a,n,r,l;if(!this.currentSlides[this.selectedPageIndex])return;e=w(e)?null===(s=null===(o=this.currentSlides[this.selectedPageIndex])||void 0===o?void 0:o.items)||void 0===s?void 0:s.length:e,i||(i=null===(a=this.customFormFields)||void 0===a?void 0:a.find((i=>i._id===t)));const h=xt(i.fields,"dataset"===(null===(n=this.missionDescription)||void 0===n?void 0:n.type),{slideIndex:this.selectedPageIndex,itemIndex:e});null==h||h.forEach((t=>{var i,e;t.slideIndex=this.selectedPageIndex,t.slideTitle=null===(i=this.currentSlides[this.selectedPageIndex])||void 0===i?void 0:i.title,t.slideId=null===(e=this.currentSlides[this.selectedPageIndex])||void 0===e?void 0:e._id})),(null===(l=null===(r=this.currentSlides[this.selectedPageIndex])||void 0===r?void 0:r.items)||void 0===l?void 0:l.length)>0?this.currentSlides[this.selectedPageIndex].items.splice(e,0,...h):this.currentSlides[this.selectedPageIndex].items=h,this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}onAddNewCondition(t,i=!1,e){var o,s,a,n;this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{var e;const[o]=this.getIndexAndChildCount(i);null===(e=this.expandableBlocks[o])||void 0===e||e.getExpandableChildBlocks().then((t=>null==t?void 0:t.forEach((t=>null==t?void 0:t.classList.add("overlay-active")))))})),null===(o=this.pageCardList)||void 0===o||o.classList.add("overlay-active"),null===(s=this.pageCardList)||void 0===s||s.addCardClassList(),null===(a=this.expandableBlocks)||void 0===a||a.forEach((t=>{var i;return null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.add("overlay-active")})),null===(n=this.expandableBlocks)||void 0===n||n.forEach((t=>{(null==t?void 0:t.mode)&&(t.mode="no-expand")})),this.newUndefinedCondition={type:t,pageCondition:i,condition:e},this.overlayElement.initialNewUndefinedCondition=this.newUndefinedCondition}onFormFieldAdd(t,i,e){var o,s,a,n,r,l,h;if(!this.currentSlides[this.selectedPageIndex])return;null===(o=this.newFieldContainerBlocks)||void 0===o||o.forEach((t=>null==t?void 0:t.classList.add("disabled"))),this.collapseAllBlocks();let d,c=this.currentSlides[this.selectedPageIndex].items.length;if(t){if(d=wt(t,null===(s=this.missionDescription)||void 0===s?void 0:s.type),d=Object.assign({isExpanded:!(null===(a=this.newFieldCondition)||void 0===a?void 0:a.condition)},d),this.newFieldCondition){const t=this.newFieldCondition.condition;(null===(n=null==t?void 0:t.field)||void 0===n?void 0:n.values)&&(t.field.values=Et(t.field.values)),d=Object.assign(Object.assign({},d),{condition:[t]}),c=this.newFieldCondition.index,this.unattachedParentConditions=rt(this.unattachedParentConditions,this.newFieldCondition.condition),this.showConditions=!1,this.forceFieldRerender=this.newFieldCondition.condition.field.name}"dataset"===(null===(r=this.missionDescription)||void 0===r?void 0:r.type)&&(d.name=d.title.split(" ").join("_").toLowerCase(),d.customName=C(),z(d,this.currentSlides)||(d.name=M(d.title,this.selectedPageIndex,c)))}else e&&(d=e);void 0!==i&&i<this.parentBlockIndices.length&&!e?c=this.parentBlockIndices[i]:e&&i>-1&&((null===(l=this.currentExpandedBlockLocation)||void 0===l?void 0:l.itemIndex)!==i||e||(this.forceFieldRerender=e.name),c=i),d=Object.assign(Object.assign({},d),{formCreatorIndex:c||0,slideIndex:this.selectedPageIndex}),(null===(h=this.newFieldCondition)||void 0===h?void 0:h.condition)||(this.currentExpandedBlockLocation={slideIndex:this.selectedPageIndex,itemIndex:c}),c<this.currentSlides[this.selectedPageIndex].items.length?this.currentSlides[this.selectedPageIndex].items.splice(c,0,d):this.currentSlides[this.selectedPageIndex].items.push(d),this.newFieldAdded={slideIndex:this.selectedPageIndex,itemIndex:c,conditional:!w(this.newFieldCondition)},this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender(),1===this.currentSlides[this.selectedPageIndex].items.length&&(this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.forceSortableRefresh=!0)}onFormFieldMove(t,i){if(t&&t.detail){const{slideIndex:e,itemIndex:o}=O(this.currentSlides,t.detail.name);this.currentExpandedBlockLocation&&this.currentExpandedBlockLocation.slideIndex===e&&this.currentExpandedBlockLocation.itemIndex===o&&this.expandableBlocks[o]&&this.expandableBlocks[o].expandBlock(!1);const s=this.currentSlides[e].items[o],a=i?o-1:o+1;this.currentSlides[e].items.splice(o,1),this.currentSlides[e].items.splice(a,0,s),this.emitNewSlidesAndRerender()}}renderHeader(){var t,i;return o("yoo-form-creator-header",{ref:t=>this.formCreatorHeader=t,logo:this.logo,formTitle:(null===(t=this.missionDescription)||void 0===t?void 0:t.title)||(null===(i=this.plan)||void 0===i?void 0:i.title),prefixTitle:this.prefixTitle,isLesson:this.isLesson,selectedLeftMenuOption:this.selectedLeftMenuOption,initialSaveButtonDisabled:!this.areSlidesDirty,hideSave:this.isTranslator,onCloseClicked:t=>this.onCloseClicked(t),onSaveClicked:t=>this.onSaveClicked(t),onShowQrCode:t=>{t.stopImmediatePropagation(),this.showQrCode.emit()},onWarningClicked:t=>{t.stopImmediatePropagation(),this.headerWarningClicked.emit()}})}renderContent(){var t;const i=this.selectedLeftMenuOption!==r.translate&&this.selectedLeftMenuOption!==r.design&&this.selectedLeftMenuOption!==r.workflow,e=this.selectedLeftMenuOption!==r.design&&this.selectedLeftMenuOption!==r.workflow,s=this.selectedLeftMenuOption===r.workflow;let a=(this.selectedLeftMenuOption!==r.translate||this.isLesson)&&this.selectedLeftMenuOption!==r.design&&!this.plan;return s&&!(null===(t=this.missionDescription)||void 0===t?void 0:t.hasWorkflow)&&(a=!1),o("div",{class:"content"},this.renderLeftMenu(),i&&this.renderLeftSelection(),e&&(this.selectedLeftMenuOption!==r.translate?this.renderFormContent():this.renderTranslateContent()),s&&this.renderWorkflow(),a&&!K(this.selectedLeftMenuOption)&&this.renderLivePreview())}renderLeftMenu(){return o("div",{class:"left-menu"},o("div",{class:"left-menu-top"},!this.isTranslatorForm&&this.renderIcon(r.blocks),this.showLogics&&this.renderIcon(r.logic),this.showScorings&&this.renderIcon(r.scoring),this.showTranslations&&this.renderIcon(r.translate),this.showDesign&&this.renderIcon(r.design),this.showWorkflow&&this.renderIcon(r.workflow)),o("div",{class:"left-menu-bottom"},this.renderHelp()))}renderHelp(){var t;const i=null===(t=this.helpCenterOptions)||void 0===t?void 0:t.filter((t=>!t.isVisible||t.isVisible()));return!!(null==i?void 0:i.length)&&o("yoo-context-menu",{contentButtons:i,placement:"above"},o("yoo-tooltip",{content:b("YOOBICHELP"),hoverable:!0,placement:"right"},o("yoo-icon",{color:"stable",name:"help",size:"medium"})))}renderIcon(t){const i=t===r.blocks?"categories":t,e="translation"===i?"translate":"workflow"===i?"hr":"design"===i?"color-picker":i;return o("yoo-tooltip",{content:b(t.toUpperCase()),hoverable:!0,placement:"right"},o("yoo-icon",{onClick:()=>this.onLeftMenuIconSelected(t),name:e,color:this.isSelectedLeftMenu(t)?"app-color":"stable",size:"medium"}))}renderLeftSelection(){return o("div",{class:{"left-selection":!0,hide:!this.showLeftMenuSelection,scoring:K(this.selectedLeftMenuOption)}},this.shouldRenderLeftSelectionContent&&this.renderLeftSelectionContent())}renderLeftSelectionContent(){switch(this.selectedLeftMenuOption){case"fields":return this.renderBlockCategorySelection();case"logic":return this.renderLogicSelection();case"scoring":return this.renderScoringSelection();case"translation":return this.renderTranslateSelection()}}renderBlockCategorySelection(){return o("yoo-form-creator-field-selector",{ref:t=>this.fieldSelectorElement=t,masterTitle:this.selectedLeftMenuOption.toUpperCase(),categories:this.categories,initialSimpleFormBlocks:this.simpleFormBlocks,initialCustomFormFields:this.customFormFields,onElementReferencesLoaded:t=>{this.newFieldContainerBlocks=t.detail.newFieldContainerBlocks,this.newFieldCategoryBlocks=t.detail.newFieldCategoryBlocks,this.initNewFieldsSortable(!0)},onNewCustomFormFieldClicked:()=>{this.selectionMode=!0,this.newCustomFormFieldSelectionMode=!0,this.overlayElement.newCustomFormField=!0}})}renderLogicSelection(){const t=[{title:"ADDCONDITION",selected:!0,subTitle:"FIELDTOOLTIP",blurContent:!w(this.newRestrictionCondition)},{title:"ADDRESTRICTION",selected:!0,subTitle:"RESTRICTIONTOOLTIP"}];return o("div",{class:"logic-container"},o("yoo-ion-scroll",{forceOverscroll:!1,onClick:t=>t.stopPropagation()},o("yoo-accordion",{maxTitleCharacters:18,entries:t,iconPairLeft:q,allowMultipleSelection:!0},l.map(((i,e)=>o("div",{slot:t[e].title},o("div",{class:"condition-block-selection",ref:t=>this.newFieldContainerBlocks[e]=t},"conditions"===i&&this.renderNewConditionBlocks(i),"restrictions"===i&&this.renderRestrictionConditions(i))))))))}renderNewConditionBlocks(t){return m.map((i=>{if(i.conditionType===t)return o("div",{class:`${t}-sortable-container`},o("yoo-form-creator-condition-block",{mode:i.mode,type:i.type}))}))}renderRestrictionConditions(t){return o("yoo-form-creator-restriction-selector",{ref:t=>this.restrictionSelector=t,conditionType:t,restrictionConditions:this.restrictionConditions,initialSelectedTab:this.restrictionConditionSelectedTab,disableSecondaryActions:!w(this.newRestrictionCondition)})}renderEmptyScoringState(){return o("div",{class:"scoring-empty-state",slot:"CONTENT"},o("yoo-empty-state",{type:"scoring"}),o("div",null,b("LISTEMPTY")))}renderScoringSelection(){const t={text:b("ADDNEWSCORING"),size:"small",color:"app-color",handler:()=>this.newScoringClicked.emit()};return o("yoo-accordion",{class:"sub-accordion",entries:[{title:"SCORING",selected:!0,actionButtons:[t]}],showBottomBorder:!0,allowMultipleSelection:!0,disabled:!0},o("div",{slot:"SCORING"},o("yoo-ion-scroll",{forceOverscroll:!1,onClick:t=>t.stopPropagation()},o("yoo-form-creator-score-card-list",{scoring:this.scoring,totalFields:this.totalFields}))))}renderTranslateSelection(){return o("yoo-accordion",{class:"sub-accordion",entries:[{title:"TRANSLATE",selected:!0}],iconPairLeft:q,showBottomBorder:!0,allowMultipleSelection:!0},o("div",{slot:"TRANSLATE"},o("yoo-form-creator-block-expandable",{mode:"new",formField:{title:"PLACEHOLDER",icon:"info",category:p.information},options:this.options})))}renderTranslateContent(){var t;if(this.showTranslations)return o("yoo-form-creator-translate",{baseLanguage:this.baseLanguage,selectedLanguages:this.selectedLanguages,allLanguages:this.allLanguages,translations:this.translations,slides:this.currentSlides,scoring:this.scoring,missionDescription:this.missionDescription,plan:this.plan,showBilingualView:this.isTranslatorForm&&w(this.plan)&&!w(null===(t=this.currentSlides[0])||void 0===t?void 0:t.items[0]),isTranslator:this.isTranslator,disableNewLanguageButton:this.isLesson&&!this.plan?"ADDNEWLANGAUGEINCOURSE":null,disableTranslateButton:this.isLesson&&!this.plan?"INITIATETRANSLATIONSINCOURSE":null,onBaseLanguageChanged:t=>{t.stopPropagation(),this.baseLanguageChanged.emit(t.detail)},onSelectedLanguagesChanged:t=>{t.stopPropagation(),this.selectedLanguagesChanged.emit(t.detail)},onTranslationsUpdated:t=>{t.stopPropagation(),this.translationsUpdated.emit(Object.assign(Object.assign({},t.detail),{googleTranslate:!0}))},onTranslationEdited:t=>{t.stopPropagation(),this.translationEdited.emit(t.detail)},onTranslationRemoved:t=>{t.stopPropagation(),this.translationRemoved.emit(t.detail)},onTranslationRemoveAll:t=>{t.stopPropagation(),this.translationRemoveAll.emit()},onTranslationImport:t=>{t.stopPropagation(),this.translationImport.emit(t.detail)},onSlidesChanged:t=>{t.stopPropagation();const i=N(t.detail.slides,!0);this.slidesChanged.emit({slides:i})},onScoringChanged:t=>{t.stopPropagation(),this.scoringChanged.emit(t.detail)},onMissionDescriptionChanged:t=>{t.stopPropagation(),this.missionDescriptionChanged.emit(t.detail)},onPlanChanged:t=>{t.stopPropagation(),this.planChanged.emit(t.detail)},onSetLoading:t=>{t.stopPropagation(),this.setLoading.emit(t.detail)},onBilingualViewClicked:()=>this.showTranslationDialog(),onOpenZenDesk:t=>{t.stopPropagation(),this.openZenDesk.emit()}})}onWorkflowStep(t){this.currentWorkflowStep=t,this.workflowCurrentStepChanged.emit(this.currentWorkflowStep)}renderWorkflow(){return o("yoo-workflow",{missionDescription:this.missionDescription,onMissionDescriptionChanged:t=>{t.stopPropagation(),this.missionDescriptionChanged.emit(t.detail)},onWorkflowStepUpdated:t=>{t.stopPropagation(),this.workflowStepUpdated.emit(t.detail)},onWorkflowStepEdited:t=>{t.stopPropagation(),this.workflowStepEdited.emit(t.detail)},onWorkflowStepRemoved:t=>{t.stopPropagation(),this.workflowStepRemoved.emit(t.detail)},onWorkflowBranchAdded:t=>{t.stopPropagation(),this.workflowBranchAdded.emit(t.detail)},onWorkflowStepParallelStepAdded:t=>{t.stopPropagation(),this.workflowStepParallelStepAdded.emit(t.detail)}})}renderFormContent(){var t;const i={iconSlot:"start",icon:"circle-plus",iconSize:"small",text:b("ADDNEWPAGE"),size:"small",color:"light",handler:()=>this.onAddNewPage()},e={text:b("QUICKSETUP"),size:"small",color:"light",handler:()=>this.onScoringQuickSetup()},s=b("SELECTEDITEMS",{n:""}),a=this.selectedFields.length>0,r=[];if(!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.custom)&&r.push({icon:()=>"dashboards",color:()=>"stable",text:()=>b("CREATECUSTOMFIELD"),isVisible:()=>a,handler:()=>{this.onCreateCustomFormFields()}}),!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.settings)&&r.push({icon:()=>"settings",color:()=>"stable",text:()=>b("SETTINGS"),isVisible:()=>a,handler:()=>{this.editSelectedFields()}}),!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.move)&&r.push({icon:()=>"move",color:()=>"stable",text:()=>b("YOOBICMOVE"),isVisible:()=>a,contextMenuActions:{contentButtons:this.selectedMoveActions}}),!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.duplicate)&&r.push({icon:()=>"duplicate",color:()=>"stable",text:()=>b("DUPLICATE"),isVisible:()=>a,contextMenuActions:{contentButtons:this.selectedDuplicateActions,subDialogTitle:"DUPLICATEFIELDSAFTER"}}),this.newCustomFormFieldSelectionMode||!this.bulkActions.includes(n.delete)||Ct(this.slides,"locked",this.selectedFields)||r.push({icon:()=>"delete",color:()=>"stable",text:()=>b("DELETE"),isVisible:()=>a,handler:()=>{this.deleteSelectedFields()}}),this.newCustomFormFieldSelectionMode&&r.push({icon:()=>"check",color:()=>"success",text:()=>b("SAVE"),isVisible:()=>a,handler:()=>{this.onCreateCustomFormFields()}}),this.bulkActions.includes(n.settings)&&r.push({icon:()=>"cross",color:()=>"stable",text:()=>b("CLOSE"),isVisible:()=>a,handler:()=>{this.toggleSelectionMode()}}),K(this.selectedLeftMenuOption)&&0===this.scoring.length)return o("div",{class:"form-content relative"},this.renderEmptyScoringState());const l=K(this.selectedLeftMenuOption)?this.scoring.length>0?[e]:null:[i],h=o("yoo-accordion",{ref:t=>this.pagesAccordion=t,class:"pages-accordion",entries:[{title:"PAGES",subItemCount:this.currentSlides.length,selected:this.isPagesAccordionOpen,actionButtons:l}],iconPairLeft:q,showBottomBorder:!0,forceEntryUpdate:!0,allowMultipleSelection:!0,onAccordionSelected:t=>this.onPagesAccordionSelected(t)},o("div",{slot:"PAGES"},o("yoo-form-creator-page-card-list",{ref:t=>this.pageCardList=t,scoringMode:K(this.selectedLeftMenuOption)?this.selectedScoring:null,missionSlides:this.currentSlides,selectedPageIndex:this.selectedPageIndex,onPageClicked:this.onPageClicked,onDuplicatePageClicked:this.onDuplicatePageClicked,onInsertPageAfterClicked:this.onInsertPageAfterClicked,onDeletePageClicked:this.onDeletePageClicked,onEditPageClicked:this.onEditPageClicked,onAddSiteTagRestrictionClicked:this.onAddSiteTagRestrictionClicked,onAddUserGroupRestrictionClicked:this.onAddUserGroupRestrictionClicked,itemList:this.itemList,isSortable:"fields"===this.selectedLeftMenuOption}))),d=o("yoo-toast",{class:"bg-light-to-dark global-actions form-creator",message:s,extraButtons:r,count:this.selectedFields.length||0,showBackdrop:!1});return o("div",{class:"form-content"},this.showPagesSection&&h,this.renderFormContentBlocksContainer(),(null===(t=this.newUndefinedCondition)||void 0===t?void 0:t.pageCondition)&&o("div",{class:"page-condition-overlay",onClick:()=>this.removeOverlays()}),this.selectionMode&&d)}renderOverlays(){return o("yoo-form-creator-overlay",{ref:t=>this.overlayElement=t,initialNewUndefinedCondition:this.newUndefinedCondition,initialNewFieldCondition:this.newFieldCondition,initialNewRestrictionCondition:this.newRestrictionCondition,initialIsLivePreviewHidden:this.isLivePreviewHidden,newCustomFormField:this.newCustomFormFieldSelectionMode,onOverlaysCleared:()=>this.removeOverlays()})}renderScoringBlocksContainer(t){return o("div",{class:"expandable-form-block-container"},t.items.map((({multiple:t,title:i,icon:e,category:s,name:a,type:n,opValues:r,values:l,hasScoring:p,formCreatorIndex:m,parentConditions:b,max:f})=>{const v=R(n,c,t);let g,u={fieldName:a,scoreValuePairs:[],maxScore:null};if("feedback"===n&&(l=h),v!==d.noScoring){g=r&&r[0]?r[0]:l||[],g=null==g?void 0:g.map((t=>null==t?void 0:t.replace(/[.]/g,"_"))),u=B(this.selectedScoring,a,v),v!==d.singleChoice&&v!==d.multipleChoice||!g.length||(u=kt(u,g));const t=P(u.scoreValuePairs);null===u.maxScore&&(u.maxScore=t)}const y={title:i,icon:e,category:s,name:a,values:g,hasScoring:p,formCreatorIndex:m,type:n,expanded:!0,fieldConditions:b,formattedScoring:Object.assign({},u),scoringCategory:v,max:f};return o("div",{class:"scoring-block-container"},o("yoo-form-creator-block-expandable",{options:this.options,mode:this.selectedScoring.isPercentage?"scoring-percentage":"scoring",formField:y,onScoreDeleted:this.onScoreDeleted,onScoreChanged:this.onScoreChanged,onScoreAdded:this.onScoreAdded}))})))}renderFormContentBlocksContainer(){const t=this.slides.some((t=>{var i;return null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.some((t=>(null==t?void 0:t.parentConditions)||(null==t?void 0:t.condition)))}));setTimeout((()=>{var t;if((null===(t=this.currentExpandableFieldSortable)||void 0===t?void 0:t.sort)&&this.currentSlides&&this.currentSlides[this.selectedPageIndex]&&this.currentSlides[this.selectedPageIndex].items){const t=this.currentSlides[this.selectedPageIndex].items.filter((t=>t)).map((t=>t.name));try{this.currentExpandableFieldSortable.sort(t)}catch(t){}}}),0),this.parentBlockIndices=[];const i="app-color",e=[{text:b("HIDELOGICTOOLTIP"),size:"small",color:i,fill:"transparent",animated:!1,handler:()=>this.showConditions=!this.showConditions,isVisible:()=>!this.selectionMode&&!this.isLesson&&t},{text:b("SELECTALL"),size:"small",color:i,fill:"transparent",animated:!1,handler:()=>this.selectAll(),isVisible:()=>this.selectionMode},{text:b(this.selectionMode?"CANCEL":"SELECTACTION"),size:"small",fill:"transparent",animated:!1,color:this.selectionMode?"stable":i,handler:()=>this.toggleSelectionMode()}];return o("div",{class:"form-content-blocks-container"},o("yoo-accordion",{class:"pages-accordion",forceEntryUpdate:!0,entries:[{title:"CONTENT",selected:!0,actionButtons:K(this.selectedLeftMenuOption)?[]:[...e]}],iconPairLeft:q,showBottomBorder:!0,allowMultipleSelection:!0},this.currentSlides.map(((t,i)=>o("div",{slot:i===this.selectedPageIndex?"CONTENT":"HIDDEN-CONTENT"},o("yoo-ion-scroll",{ref:t=>{i===this.selectedPageIndex&&(this.mainContentScrollElement=t)},scrollEvents:!0,onIonScroll:t=>this.onMainContentScrolled(t)},K(this.selectedLeftMenuOption)&&this.selectedScoring?this.renderScoringBlocksContainer(t):i===this.selectedPageIndex&&this.renderExpandableBlockContainer(t,i)))))))}renderExpandableBlockContainer(t,i){var e;return[o("div",{class:"form-block-sortable-container"},o("div",{class:{"expandable-form-block-container":!0,empty:t.items.length<1},ref:t=>this.expandableBlockContainers[i]=t},null===(e=t.items)||void 0===e?void 0:e.map(((t,e)=>t.formCreatorIndex<this.numberOfBlocksToRender&&!t.sequentialConditionalField&&t.name!==this.forceFieldRerender&&this.renderFormContentBlocks(t,e,i))))),t.items.length<1&&this.renderEmptyFieldState(),o("yoo-ion-infinite-scroll",{ref:t=>this.infiniteScrolls[i]=t,onIonInfinite:()=>this.onInfiniteScroll()},this.numberOfBlocksToRender<t.items.length&&o("yoo-ion-infinite-scroll-content",{loadingSpinner:"dots"}))]}renderEmptyFieldState(){return o("div",{class:"empty-state",ref:t=>this.fieldEmptyStateContainer=t},o("yoo-empty-state",{type:"scoring"}),o("div",{class:"text-container"},b("EMPTYFORMCREATOR"),o("yoo-icon",{name:"circle-plus",color:"stable"})))}renderFormContentBlocks({opValues:t,title:i,icon:e,category:s,name:a,customName:n,isExpanded:r,parentConditions:l,condition:h,type:d,values:c,hasScoring:p,selected:m,formCreatorIndex:b,required:f,hideMobile:v,locked:g},u,y){var x,C;const k=h,{restrictionConditions:I,fieldConditions:S}=It(k);null===c&&(null==t?void 0:t.length)&&(c=t[0]);const E={title:i,icon:e,category:s,name:a,customName:n,values:c,type:d,expanded:r,isFirst:0===u,isLast:u===this.currentSlides[y].items.length-1,fieldConditions:l,parentFieldConditions:S,restrictionConditions:I,hasScoring:p,selected:m,pageIndex:y,formCreatorIndex:b,required:f,hideMobile:v,locked:g},{childFields:T,sequentialConditionFields:O}=St(l,b),F=n||a;return u>=0&&y===this.selectedPageIndex&&this.parentBlockIndices.push(u),o("div",{class:"sortable-container","data-id":a},o("yoo-form-creator-block-expandable",{key:`yoo-form-creator-block-expandable-${(null==T?void 0:T.length)||0}`,options:this.options,id:`${y}-${u}`,ref:t=>{y===this.selectedPageIndex&&(this.expandableBlocks[u]=t)},showConditions:!this.selectionMode&&this.showConditions,class:{selection:this.selectionMode},formField:E,itemList:this.itemList,campaignType:null===(x=this.missionDescription)||void 0===x?void 0:x.type,sequentialConditionFields:O,isInSelectionMode:this.selectionMode,numberOfBlocksToRender:this.numberOfBlocksToRender,blockFieldExpansion:!w(this.newUndefinedCondition),disableFieldTranslation:this.isLesson&&(!this.translations||0===(null===(C=this.translations)||void 0===C?void 0:C.length))},o("div",{class:"parent-slot",slot:F},o("slot",{name:F})),null==T?void 0:T.map((t=>{var i;return(null===(i=t.sequentialConditionalField)||void 0===i?void 0:i.masterParentFieldName)===F&&o("div",{class:"child-slot",slot:t.name},o("slot",{name:t.name}))}))))}renderLivePreview(){var t;return o("yoo-form-creator-live-preview",{ref:t=>this.livePreviewElement=t,mode:"panel",hidden:this.isLivePreviewHidden,showDevices:!1,missionDescriptionTitle:null===(t=this.missionDescription)||void 0===t?void 0:t.title,onVisibilityToggled:()=>this.isLivePreviewHidden=!this.isLivePreviewHidden},o("div",{class:"slot-container",slot:"livePreview"},o("slot",{name:"livePreview"})))}renderFormDynamic(){var t;return o("div",{class:"form-dynamic-container"},o("yoo-header",null,o("yoo-navbar",null,o("yoo-truncate",null,v(null===(t=this.missionDescription)||void 0===t?void 0:t.title)))))}render(){return o(s,{class:U(this.host)},o("div",{class:"container",ref:t=>this.containerEl=t},this.renderHeader(),this.renderContent(),this.renderOverlays()))}get host(){return a(this)}static get watchers(){return{customFormFields:["onCustomFormFieldsUpdated"],selectedNewScoring:["updateSelectedScoring"],slides:["updateInternalSlides"],translations:["onTranslationsChanged"]}}};Ft.style=":root{--ease-in-back:cubic-bezier(0.36, 0, 0.66, -0.56);--ease-in-circ:cubic-bezier(0.55, 0, 1, 0.45);--ease-in-cubic:cubic-bezier(0.32, 0, 0.67, 0);--ease-in-expo:cubic-bezier(0.7, 0, 0.84, 0);--ease-in-quad:cubic-bezier(0.11, 0, 0.5, 0);--ease-in-quart:cubic-bezier(0.5, 0, 0.75, 0);--ease-in-quint:cubic-bezier(0.64, 0, 0.78, 0);--ease-in-sine:cubic-bezier(0.12, 0, 0.39, 0);--ease-out-back:cubic-bezier(0.34, 1.56, 0.64, 1);--ease-out-circ:cubic-bezier(0, 0.55, 0.45, 1);--ease-out-cubic:cubic-bezier(0.33, 1, 0.68, 1);--ease-out-expo:cubic-bezier(0.16, 1, 0.3, 1);--ease-out-quad:cubic-bezier(0.5, 1, 0.89, 1);--ease-out-quart:cubic-bezier(0.25, 1, 0.5, 1);--ease-out-quint:cubic-bezier(0.22, 1, 0.36, 1);--ease-out-sine:cubic-bezier(0.61, 1, 0.88, 1);--ease-in-out-back:cubic-bezier(0.68, -0.6, 0.32, 1.6);--ease-in-out-circ:cubic-bezier(0.85, 0, 0.15, 1);--ease-in-out-cubic:cubic-bezier(0.65, 0, 0.35, 1);--ease-in-out-expo:cubic-bezier(0.87, 0, 0.13, 1);--ease-in-out-quad:cubic-bezier(0.45, 0, 0.55, 1);--ease-in-out-quart:cubic-bezier(0.76, 0, 0.24, 1);--ease-in-out-quint:cubic-bezier(0.83, 0, 0.17, 1);--ease-in-out-sine:cubic-bezier(0.37, 0, 0.63, 1)}.tippy-box,.tippy-popper{white-space:pre-wrap}.tippy-box .tippy-tooltip,.tippy-popper .tippy-tooltip{padding:var(--spacing-02, 0.125rem)}.tippy-box{-webkit-box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1))}.tippy-box .tippy-content.editable{padding:0}.tippy-box .tippy-content .flex{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.tippy-box .tippy-content .hidden{display:none}.tippy-box .tippy-content .editable-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:var(--dark, #000000)}.tippy-box .tippy-content .editable-content .text-content{min-width:5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content .text-content>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content.readonly{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .maxchar-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:end;align-self:flex-end;height:var(--spacing-24, 1.5rem);padding-right:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content yoo-button{padding:0 var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content .edit-content{-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content .edit-content yoo-icon{padding-left:var(--spacing-08, 0.5rem);cursor:pointer}.tippy-box .tippy-content .editable-content .edit-content>*{cursor:pointer}.tippy-box .tippy-content .request-access{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .request-access .title{margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700)}.tippy-box .tippy-content .request-access .sub-title{display:-ms-flexbox;display:flex;margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-300, 300);font-size:var(--font-size-14, 0.875rem)}.tippy-box .tippy-content .request-access .sub-title yoo-avatar{margin:0 var(--spacing-04, 0.25rem)}.tippy-box .tippy-content .request-access yoo-button{max-width:8rem}.tippy-box[data-theme~=startameeting] .tippy-content{padding:0;border-radius:var(--border-radius-04, 0.25rem)}.tippy-box[data-theme~=large]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content .text-content{padding-right:var(--spacing-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=small] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content .text-content{padding-right:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=accent]{background-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=accent] .tippy-svg-arrow{fill:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--accent, #276ef1)}.tippy-box[data-theme~=anthracite]{background-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite] .tippy-svg-arrow{fill:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=app-color]{background-color:var(--app-color)}.tippy-box[data-theme~=app-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=app-color] .tippy-svg-arrow{fill:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--app-color)}.tippy-box[data-theme~=danger]{background-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger] .tippy-svg-arrow{fill:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger-light]{background-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger-light] .tippy-svg-arrow{fill:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=dark]{background-color:var(--dark, #000000)}.tippy-box[data-theme~=dark] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=dark] .tippy-svg-arrow{fill:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--dark, #000000)}.tippy-box[data-theme~=energized]{background-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=energized] .tippy-svg-arrow{fill:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--energized, #fed05b)}.tippy-box[data-theme~=info]{background-color:var(--info, #fc459e)}.tippy-box[data-theme~=info] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=info] .tippy-svg-arrow{fill:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--info, #fc459e)}.tippy-box[data-theme~=light]{background-color:var(--light, #ffffff)}.tippy-box[data-theme~=light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light] .tippy-svg-arrow{fill:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light, #ffffff)}.tippy-box[data-theme~=light-orange]{background-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-orange] .tippy-svg-arrow{fill:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-to-text-color]{background-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-to-text-color] .tippy-svg-arrow{fill:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=royal]{background-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=royal] .tippy-svg-arrow{fill:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--royal, #7577ff)}.tippy-box[data-theme~=stable]{background-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable] .tippy-svg-arrow{fill:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable-alt]{background-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-alt] .tippy-svg-arrow{fill:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-light]{background-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-light] .tippy-svg-arrow{fill:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-ultralight]{background-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-ultralight] .tippy-svg-arrow{fill:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=success]{background-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=success] .tippy-svg-arrow{fill:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--success, #3aa76d)}.tippy-box[data-theme~=text-color]{background-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=text-color] .tippy-svg-arrow{fill:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--text-color, #807f83)}.tippy-box[data-theme~=warning]{background-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=warning] .tippy-svg-arrow{fill:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--warning, #ff6402)}.tippy-box[data-theme~=anthracite-to-text-color]{background-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-svg-arrow{fill:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite-to-text-color, #1a1a1a)}:root{--safe-area-inset-top:0;--safe-area-inset-right:0;--safe-area-inset-bottom:0;--safe-area-inset-left:0}@supports (top: constant(safe-area-inset-top)){:root{--safe-area-inset-top:constant(safe-area-inset-top);--safe-area-inset-right:constant(safe-area-inset-right);--safe-area-inset-bottom:constant(safe-area-inset-bottom);--safe-area-inset-left:constant(safe-area-inset-left)}}@supports (top: env(safe-area-inset-top)){:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}}.fr-popup.fr-active{z-index:30004 !important;display:block !important;opacity:1 !important}:host{display:block;width:100%;height:100%;background:var(--light-to-dark, #ffffff)}:host .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:hidden}:host .container .content{display:-ms-flexbox;display:flex;height:calc(100% - 3rem);background-color:var(--stable-ultralight-to-light-10, #fafafa)}:host .container .content .sortable-chosen yoo-form-creator-block-expandable{--expandable-block-border:0.125rem solid var(--accent, #276ef1)}:host .container .content .left-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:3rem;padding:var(--spacing-16, 1rem) 0;background:var(--light-to-dark, #ffffff);border-right:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host .container .content .left-menu-top,:host .container .content .left-menu-bottom{display:grid;gap:var(--spacing-16, 1rem)}:host .container .content .left-menu-top>*,:host .container .content .left-menu-bottom>*{cursor:pointer}:host .container .content .left-selection{position:relative;width:22rem;min-width:22rem;height:100%;overflow:hidden;background:var(--light-to-dark, #ffffff);border-right:0.0625rem solid var(--stable-light, #f1f1f1);-webkit-transition:0.3s;transition:0.3s}:host .container .content .left-selection.hide{width:0;min-width:0}:host .container .content .left-selection yoo-accordion{--outer-container-padding:0 var(--spacing-20-deprecated, 1.25rem);--outer-container-width:calc(100% - 2.5rem)}:host .container .content .left-selection yoo-accordion yoo-accordion.sub-accordion{--outer-container-padding:0;--outer-container-width:100%}:host .container .content .left-selection.scoring{min-width:26.25rem;max-width:26.25rem;padding-top:var(--spacing-16, 1rem)}:host .container .content .left-selection.scoring yoo-ion-scroll{--top-pos:3.5rem;padding:0 0 5rem var(--spacing-16, 1rem)}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container{display:-ms-flexbox;display:flex}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container yoo-form-creator-condition-block,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container yoo-form-creator-condition-block{-ms-flex:1;flex:1}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container yoo-tooltip,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container yoo-tooltip{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container .help-container,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container .help-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:0.875rem;height:0.875rem;margin-left:var(--spacing-10-deprecated, 0.625rem);color:var(--light, #ffffff);font-size:var(--font-size-12, 0.75rem);background:var(--dark-to-light, #000000);border-radius:50%}:host .container .content .left-selection .logic-container yoo-ion-scroll{padding-top:var(--spacing-08, 0.5rem)}:host .container .content .form-content{width:100%;min-width:25rem;max-width:800px;height:100%;margin:auto;padding:var(--spacing-08, 0.5rem) var(--spacing-24, 1.5rem) var(--spacing-24, 1.5rem);}:host .container .content .form-content::-webkit-scrollbar{width:var(--spacing-08, 0.5rem);height:var(--spacing-08, 0.5rem)}:host .container .content .form-content::-webkit-scrollbar-track{background-color:transparent;border-radius:var(--border-radius-08, 0.5rem)}:host .container .content .form-content::-webkit-scrollbar-thumb{background-color:transparent;border-radius:var(--border-radius-08, 0.5rem)}:host .container .content .form-content:hover::-webkit-scrollbar-track{background-color:var(--stable-light-to-anthracite)}:host .container .content .form-content:hover::-webkit-scrollbar-thumb{background:var(--stable, #adadad)}:host .container .content .form-content.relative{position:relative}:host .container .content .form-content yoo-accordion.pages-accordion{--accordion-background:var(--stable-background)}:host .container .content .form-content yoo-toast{position:absolute;top:auto;right:calc(50% - 225px);bottom:4rem;left:auto;height:auto}:host .container .content .form-content .page-condition-overlay{position:absolute;top:11rem;right:-1rem;bottom:0;left:0;z-index:1;background:var(--dark-to-light, #000000);opacity:0.8}:host .container .content .form-content .scoring-empty-state{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;height:100%}:host .container .content .form-content .scoring-empty-state yoo-empty-state{height:26rem}:host .container .content .form-content .scoring-empty-state div{color:var(--text-color-to-light-60, #807f83);font-size:var(--font-size-16, 1rem);opacity:0.7;padding:var(--spacing-16, 1rem)}:host .container .content .form-content .form-content-blocks-container{position:relative;height:100%;max-height:100%}:host .container .content .form-content .form-content-blocks-container yoo-ion-scroll{--top-pos:2.6875rem}:host .container .content .form-content .form-content-blocks-container .empty-state{position:absolute;top:20px;right:0;bottom:auto;left:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:2;text-align:center;background:var(--stable-light-to-ligh-10);border:0.0625rem dashed var(--stable-alt, #d0d0d0)}:host .container .content .form-content .form-content-blocks-container .empty-state yoo-empty-state{width:8rem;height:6.25rem;padding:var(--spacing-16, 1rem)}:host .container .content .form-content .form-content-blocks-container .empty-state .text-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:12rem;padding:var(--spacing-16, 1rem);color:var(--stable, #adadad);font-size:var(--font-size-16, 1rem)}:host .container .content .form-content .form-content-blocks-container .empty-state .text-container yoo-icon{margin:var(--spacing-08, 0.5rem) 0 0 var(--spacing-04, 0.25rem)}:host .container .content .form-content .form-content-blocks-container .expandable-form-block-container{padding-bottom:10rem}:host .container .content .form-content .form-content-blocks-container .form-block-sortable-container{position:relative;min-height:calc(100% - 13.75rem);padding:0 var(--spacing-10-deprecated, 0.625rem) 12.5rem}:host .container .content .form-content .form-content-blocks-container .form-block-sortable-container .expandable-form-block-container{min-height:3rem;padding-bottom:0}:host .container .content .form-content .form-content-blocks-container .form-block-sortable-container .expandable-form-block-container.empty{width:calc(100% - 2px);height:12.75rem;padding:0}:host .container .content .parent-slot{width:100%}:host yoo-accordion{--title-icon-color:var(--stable-alt, #d0d0d0)}";export{Ft as yoo_form_creator}
|
|
1
|
+
import{r as t,c as i,f as e,h as o,H as s,a}from"./p-34197588.js";import{h as n,i as r,j as l,k as h,S as d,A as c,l as p}from"./p-4d956bd4.js";import{c as m}from"./p-6dbac5f2.js";import{t as b,b9 as f,Y as v,u as g,a2 as u,s as y,as as x,a4 as w}from"./p-8c6ff567.js";import{g as C}from"./p-a60e966e.js";import{u as k,c as I,r as S,s as E,a as T,f as O,b as F,d as A,e as N,g as L,h as D,p as j,i as z,j as R,k as B,l as P,m as M}from"./p-5b2fa517.js";import"./p-473a381c.js";import{f as U}from"./p-16ea8a14.js";import{S as V}from"./p-12797a88.js";import{N as G,A as q}from"./p-67fc8d0d.js";import{a as H,s as W,u as Y,i as K,g as $,r as Q,b as _,c as Z,d as J,e as X,f as tt,h as it,j as et,k as ot,l as st,m as at,t as nt,n as rt,o as lt,p as ht,q as dt,v as ct,w as pt,x as mt,y as bt,z as ft,A as vt,B as gt,C as ut,D as yt,E as xt,F as wt,G as Ct,H as kt,I as It,J as St}from"./p-5fa0f72e.js";import{c as Et}from"./p-1feee72c.js";import{o as Tt}from"./p-c578e362.js";import"./p-0212af76.js";import"./p-e0d6fbed.js";import"./p-81cde160.js";import"./p-478a812f.js";import"./p-f1b3e8cb.js";import"./p-1f1c180f.js";import"./p-a33e7e8f.js";import"./p-a1142cd3.js";import"./p-16ec81f2.js";import"./p-b71f650c.js";import"./p-ed132d63.js";import"./p-659a953c.js";import"./p-bd19a341.js";import"./p-7b8c6197.js";import"./p-ba9a1e5a.js";import"./p-9021373d.js";import"./p-86948176.js";import"./p-b4aad66a.js";import"./p-d6c8e21e.js";import"./p-773567d1.js";import"./p-16835be6.js";import"./p-c940b791.js";import"./p-ba705441.js";import"./p-1c220344.js";import"./p-b5003a96.js";import"./p-e26d9ded.js";import"./p-31417fd8.js";import"./p-ee1979e2.js";import"./p-a4d0bd7f.js";import"./p-9c28d18f.js";import"./p-c3ec533d.js";import"./p-5fd2d8ef.js";import"./p-338ff9dc.js";import"./p-88c8100b.js";import"./p-03785d04.js";import"./p-0fa5a641.js";import"./p-ce28b223.js";import"./p-9b8752ac.js";import"./p-b90d2aac.js";import"./p-9de400aa.js";import"./p-3d31de8a.js";import"./p-c15310d4.js";const Ot=[n.custom,n.settings,n.move,n.duplicate,n.delete,n.close],Ft=class{constructor(e){t(this,e),this.planChanged=i(this,"planChanged",7),this.reloadLivePreview=i(this,"reloadLivePreview",7),this.leftMenuChange=i(this,"leftMenuChange",7),this.loadNewTranslations=i(this,"loadNewTranslations",7),this.closeClicked=i(this,"closeClicked",7),this.saveClicked=i(this,"saveClicked",7),this.pageHeaderClicked=i(this,"pageHeaderClicked",7),this.formCreatorBlockExpanded=i(this,"formCreatorBlockExpanded",7),this.slidesChanged=i(this,"slidesChanged",7),this.addNewPageClicked=i(this,"addNewPageClicked",7),this.newScoringClicked=i(this,"newScoringClicked",7),this.scoringChanged=i(this,"scoringChanged",7),this.scoringQuickSetup=i(this,"scoringQuickSetup",7),this.editPageSettings=i(this,"editPageSettings",7),this.openFullPageLivePreviewClicked=i(this,"openFullPageLivePreviewClicked",7),this.baseLanguageChanged=i(this,"baseLanguageChanged",7),this.selectedLanguagesChanged=i(this,"selectedLanguagesChanged",7),this.translationUpdated=i(this,"translationUpdated",7),this.translationsUpdated=i(this,"translationsUpdated",7),this.translationEdited=i(this,"translationEdited",7),this.translationRemoved=i(this,"translationRemoved",7),this.translationRemoveAll=i(this,"translationRemoveAll",7),this.translationImport=i(this,"translationImport",7),this.translateValue=i(this,"translateValue",7),this.saveNewTranslations=i(this,"saveNewTranslations",7),this.missionDescriptionChanged=i(this,"missionDescriptionChanged",7),this.editMultipleFields=i(this,"editMultipleFields",7),this.createCustomFormFields=i(this,"createCustomFormFields",7),this.customFieldEdited=i(this,"customFieldEdited",7),this.customFieldDeleted=i(this,"customFieldDeleted",7),this.hasLoaded=i(this,"hasLoaded",7),this.formFieldBlockExpanded=i(this,"formFieldBlockExpanded",7),this.centerContentWidthChanged=i(this,"centerContentWidthChanged",7),this.scrollContent=i(this,"scrollContent",7),this.createNewRestrictionClicked=i(this,"createNewRestrictionClicked",7),this.editRestrictionCondition=i(this,"editRestrictionCondition",7),this.formFieldDelete=i(this,"formFieldDelete",7),this.setLoading=i(this,"setLoading",7),this.translateDialogClosed=i(this,"translateDialogClosed",7),this.newPageAdded=i(this,"newPageAdded",7),this.translateDialogLanguageChanged=i(this,"translateDialogLanguageChanged",7),this.showQrCode=i(this,"showQrCode",7),this.headerWarningClicked=i(this,"headerWarningClicked",7),this.workflowStepAdded=i(this,"workflowStepAdded",7),this.workflowStepUpdated=i(this,"workflowStepUpdated",7),this.workflowStepEdited=i(this,"workflowStepEdited",7),this.workflowStepRemoved=i(this,"workflowStepRemoved",7),this.workflowBranchAdded=i(this,"workflowBranchAdded",7),this.workflowStepParallelStepAdded=i(this,"workflowStepParallelStepAdded",7),this.workflowCurrentStepChanged=i(this,"workflowCurrentStepChanged",7),this.openZenDesk=i(this,"openZenDesk",7),this.formFields=[],this.categories=[],this.options=[],this.helpCenterOptions=[],this.bulkActions=Ot,this.showPagesSection=!0,this.scoring=[],this.selectedLeftMenuOption=r.blocks,this.selectedPageIndex=0,this.showConditions=!1,this.showLeftMenuSelection=!0,this.numberOfBlocksToRender=20,this.selectionMode=!1,this.isLivePreviewHidden=!1,this.selectedFields=[],this.shouldRenderLeftSelectionContent=!0,this.currentSlides=[],this.parentBlockIndices=[],this.simpleFormBlocks={information:[]},this.newFieldContainerBlocks=[],this.newFieldCategoryBlocks=[],this.expandableBlockContainers=[],this.expandableBlocks=[],this.leftMenuSortables=[],this.hasPageChanged=-1,this.hasLeftMenuOptionChanged=!1,this.totalFields=0,this.fieldsWithScoring=[],this.selectedScoringIndex=0,this.isPagesAccordionOpen=!0,this.hasAdditionBeenClicked=!1,this.infiniteScrolls=[],this.unattachedParentConditions=[],this.restrictionConditionSelectedTab=0,this.expandedConditions=[],this.onInsertPageAfterClicked=t=>{t&&this.onAddNewPage(t.detail+1)},this.onPageClicked=t=>{var i,e,o;(null===(i=this.newUndefinedCondition)||void 0===i?void 0:i.pageCondition)&&(null===(e=this.newUndefinedCondition)||void 0===e?void 0:e.condition)?(this.addPageCondition(this.newUndefinedCondition.condition,t.detail),this.newUndefinedCondition=null,this.removeOverlays()):(null===(o=this.newUndefinedCondition)||void 0===o?void 0:o.pageCondition)?(this.createNewRestrictionClicked.emit({pageIndex:t.detail,type:this.newUndefinedCondition.type}),this.newUndefinedCondition=null,this.removeOverlays()):(this.selectedPageIndex=t.detail,this.pageHeaderClicked.emit(t.detail),this.hasPageChanged=t.detail,this.resetExpandableBlockReferences())},this.onDuplicatePageClicked=t=>{var i,e,o;if(t){const s=Et(this.currentSlides[t.detail]);H(s);const a=[];(null===(i=this.translations)||void 0===i?void 0:i.length)>0&&(null===(e=this.translations)||void 0===e||e.forEach((t=>{const i=k(Et(t),this.baseLanguage);I(null,!1,`%${t.key}%`,s,`%${i.key}%`,{key:t.key,updateKey:i.key})&&a.push(i)})),null===(o=null==s?void 0:s.items)||void 0===o||o.forEach((t=>{var i;t.opValues&&(null===(i=t.opValues[0])||void 0===i?void 0:i.length)>0&&t.values&&(t.opValues[0]=Et(t.values))}))),this.saveNewTranslations.emit(a),this.currentSlides.splice(t.detail+1,0,s),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}},this.onDeletePageClicked=t=>{var i;if(t){const e=(null===(i=this.missionDescription)||void 0===i?void 0:i.active)?b("DELETEPAGEACTIVECAMPAIGN"):b("DELETECONFIRMPAGE");f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],e).then((i=>{var e,o,s;i&&(null===(e=this.currentSlides[t.detail])||void 0===e||e.items.forEach((t=>{this.scoring=S(t.name,this.scoring)})),this.computeScoringTotal(),(null===(o=this.scoring)||void 0===o?void 0:o.length)>0&&this.scoringChanged.emit(this.scoring),t.detail===this.selectedPageIndex&&(null===(s=this.currentExpandableFieldSortable)||void 0===s||s.destroy(),this.currentExpandableFieldSortable=null),this.currentSlides.splice(t.detail,1),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender())}))}},this.onEditPageClicked=t=>{t&&this.editPageSettings.emit(t.detail)},this.onAddSiteTagRestrictionClicked=t=>{t&&this.createNewRestrictionClicked.emit({pageIndex:t.detail,type:"tags"})},this.onAddUserGroupRestrictionClicked=t=>{t&&this.createNewRestrictionClicked.emit({pageIndex:t.detail,type:"groups"})},this.onScoreChanged=t=>{const{formattedScoring:i,scoringCategory:e}=t.detail,o=E(i,e);this.updateScoring(o)},this.onScoreDeleted=t=>{const{formattedScoring:i,scoringCategory:e}=t.detail;W(i,e).forEach((t=>{delete this.selectedScoring[t]})),this.selectedScoring.selectedFields=Y(this.selectedScoring.selectedFields,null==i?void 0:i.fieldName),this.selectedScoring=Object.assign({},this.selectedScoring),this.scoring[this.selectedScoringIndex]=this.selectedScoring,this.isInOtherScoring(null==i?void 0:i.fieldName)||this.toggleHasScoring(null==i?void 0:i.fieldName),this.computeScoringTotal(),this.scoringChanged.emit(this.scoring),this.emitNewSlidesAndRerender()},this.onScoreAdded=t=>{const{formattedScoring:i,scoringCategory:e}=t.detail,o=E(i,e),s=this.slides[this.selectedPageIndex].items.find((t=>t.name===i.fieldName));this.selectedScoring.selectedFields=Y(this.selectedScoring.selectedFields,i.fieldName),this.selectedScoring=Object.assign({},this.selectedScoring),this.isInOtherScoring(i.fieldName)||this.toggleHasScoring(i.fieldName),this.scoring[this.selectedScoringIndex].selectedFields.push(s),this.updateScoring(o),this.emitNewSlidesAndRerender()}}get isTranslatorForm(){var t;return 1===(null===(t=this.options)||void 0===t?void 0:t.length)&&this.options[0]===r.translate}get showLogics(){return this.options.includes(r.logic)}get showScorings(){return this.options.includes(r.scoring)}get showTranslations(){return this.options.includes(r.translate)}get showDesign(){return this.options.includes(r.design)}get showWorkflow(){return this.options.includes(r.workflow)}get isLesson(){var t;return"lesson"===(null===(t=this.missionDescription)||void 0===t?void 0:t.type)}onCustomFormFieldsUpdated(){this.fieldSelectorElement&&(this.fieldSelectorElement.initialCustomFormFields=null,this.fieldSelectorElement.initialCustomFormFields=this.customFormFields)}updateSelectedScoring(t){const i=this.scoring.findIndex((i=>i.title===t.title));i>-1&&(this.selectedScoringIndex=i),this.selectedScoring=t}updateInternalSlides(t){var i;t=null==t?void 0:t.map(((t,i)=>{var e;return t.items=null===(e=null==t?void 0:t.items)||void 0===e?void 0:e.map(((t,e)=>{var o,s,a;return(t=T(t,c)).isExpanded||(null===(o=this.currentExpandedBlockLocation)||void 0===o?void 0:o.slideIndex)!==i||(null===(s=this.currentExpandedBlockLocation)||void 0===s?void 0:s.itemIndex)!==e||(null===(a=this.newFieldCondition)||void 0===a?void 0:a.condition)||(t.isExpanded=!0),t})),t})),this.currentSlides=this.hasLeftMenuOptionChanged?Et(t):[...t],this.selectedLeftMenuOption===r.workflow&&(this.missionDescription.slides=t),this.hasAdditionBeenClicked&&(null===(i=this.newFieldCondition)||void 0===i?void 0:i.condition)&&(this.newFieldCondition=null,this.overlayElement.initialNewFieldCondition=this.newFieldCondition,this.hasAdditionBeenClicked=!1)}onTranslationsChanged(){var t,i,e,o;this.haveTranslationsUpdated=!0,this.reloadLivePreview.emit(),this.livePreviewElement&&(this.livePreviewElement.missionDescriptionTitle=v((null===(t=this.missionDescription)||void 0===t?void 0:t.title)||(null===(i=this.plan)||void 0===i?void 0:i.title))),this.formCreatorHeader&&(this.formCreatorHeader.formTitle=v((null===(e=this.missionDescription)||void 0===e?void 0:e.title)||(null===(o=this.plan)||void 0===o?void 0:o.title))),this.formCreatorTranslateDialog&&(this.formCreatorTranslateDialog.translations=this.translations,this.formCreatorTranslateDialog.forceUpdateTranslations())}onAdditionClicked(t){t.detail.customFieldId?this.onCustomFieldAdded(t.detail.customFieldId):t.detail.conditionType||t.detail.condition?this.onAddNewCondition(t.detail.conditionType,t.detail.pageRestriction,t.detail.condition):t.detail.field&&(this.hasAdditionBeenClicked=!0,this.onFormFieldAdd(t.detail.field))}onCustomFieldEdited(t){t.stopImmediatePropagation(),this.customFieldEdited.emit(t.detail)}onCustomFieldDeleted(t){t.stopImmediatePropagation(),this.customFieldDeleted.emit(t.detail)}onConditionExpanded(t){t.detail.expanded&&(this.collapseAllBlocks(null,!0),this.scrollToField(t.detail.index,t.detail.host),this.expandedConditions.push(t.detail.host))}onCreatorBlockExpanded(t){var i;if(null==t?void 0:t.detail){const{slideIndex:e,itemIndex:o}=O(this.currentSlides,t.detail.name);if(o>-1)if(t.detail.expanded&&!K(this.selectedLeftMenuOption)){if(this.currentExpandedBlockLocation&&o!==this.currentExpandedBlockLocation.itemIndex){const t=$(this.currentSlides,this.selectedPageIndex,this.currentExpandedBlockLocation.itemIndex);this.expandableBlocks&&this.expandableBlocks[t]&&this.expandableBlocks[t].expandBlock(!1,this.currentExpandedBlockLocation.itemIndex!==t,o)}this.collapseAllBlocks(t.detail.name,!0),this.formCreatorBlockExpanded.emit({pageIndex:e,itemIndex:o}),this.currentExpandedBlockLocation={slideIndex:e,itemIndex:o},this.expandedFieldName=t.detail.name||this.expandedFieldName,this.scrollToField(o)}else!t.detail.expanded&&this.currentExpandedBlockLocation&&o===this.currentExpandedBlockLocation.itemIndex?(this.currentExpandedBlockLocation=null,this.currentSlides[e].items[o].isExpanded=!1):!t.detail.expanded&&this.forceFieldRerender&&(this.forceFieldRerender=null);t.detail.expanded&&(null===(i=this.expandedConditions)||void 0===i||i.forEach((t=>{t.forceCollapse()})),this.expandedConditions=[])}}onRemoveConditionClicked(t){f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],b("REMOVECONDITIONCONFIRM")).then((i=>{if(i){const{slides:i,unattachedParentConditions:e}=Q(this.currentSlides,t.detail.name,this.unattachedParentConditions,t.detail.conditionId);this.currentSlides=i,this.unattachedParentConditions=e,this.emitNewSlidesAndRerender()}}))}onRemovePageCondition(t){if(t&&t.detail){const{slides:i,unattachedParentConditions:e}=_(this.currentSlides,t.detail.slideIndex,t.detail.conditionId,this.unattachedParentConditions);this.currentSlides=i,this.unattachedParentConditions=e,this.emitNewSlidesAndRerender()}}onFormFieldDelete(t){var i;if(t&&t.detail){const{slideIndex:e,itemIndex:o}=O(this.currentSlides,t.detail.name),s=(null===(i=this.missionDescription)||void 0===i?void 0:i.active)?b("DELETEFIELDACTIVECAMPAIGN"):b("DELETECONFIRMFIELD");f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],s).then((i=>{var s,a,n,r,l;i&&(this.unattachedParentConditions=Z(this.currentSlides,{slideIndex:e,itemIndex:o},this.unattachedParentConditions),this.formFieldDelete.emit({name:t.detail.name}),this.scoring=S(t.detail.name,this.scoring),this.computeScoringTotal(),J(this.currentSlides,{slideIndex:e,itemIndex:o,name:t.detail.name}),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender(),0!==(null===(a=null===(s=this.currentSlides[e])||void 0===s?void 0:s.items)||void 0===a?void 0:a.length)&&(null===(n=this.currentSlides[e])||void 0===n?void 0:n.items)||(this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.forceSortableRefresh=!0),(null===(r=this.currentExpandedBlockLocation)||void 0===r?void 0:r.slideIndex)===e&&(null===(l=this.currentExpandedBlockLocation)||void 0===l?void 0:l.itemIndex)===o&&(this.currentExpandedBlockLocation=null))}))}}onFormFieldDuplicate(t){var i,e;if(null==t?void 0:t.detail){const{slideIndex:o,itemIndex:s}=O(this.currentSlides,t.detail.name);if(this.currentSlides=X(this.currentSlides,{slideIndex:o,itemIndex:s},!1,null,"dataset"===(null===(i=this.missionDescription)||void 0===i?void 0:i.type)),null===(e=this.translations)||void 0===e?void 0:e.length){const t=[];this.updateDuplicatedFieldTranslations(this.currentSlides,o,s+1,t),(null==t?void 0:t.length)&&this.saveNewTranslations.emit(t)}this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}}onFormFieldMarkAsMandatory(t){if(t&&t.detail){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.name);let o=this.currentSlides[i].items[e];o=Object.assign(Object.assign({},o),{required:!0}),this.currentSlides[i].items[e]=o,this.emitNewSlidesAndRerender()}}onMoveUpClicked(t){this.onFormFieldMove(t,!0)}onMoveDownClicked(t){this.onFormFieldMove(t,!1)}onLinkToFieldClicked(t){t.detail&&(void 0!==t.detail.itemIndex&&(this.currentSlides[t.detail.slideIndex].items[t.detail.itemIndex].isExpanded=!0),this.setSelectedPage(t.detail.slideIndex))}onEditPageSettings(t){t.stopPropagation(),t.detail&&this.editPageSettings.emit(t.detail)}onDeleteCondition(t){f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],b("DELETECONFIRMCONDITION")).then((i=>{i&&(tt(this.currentSlides,t.detail.conditionId),this.unattachedParentConditions=it(this.unattachedParentConditions,t.detail.conditionId),this.emitNewSlidesAndRerender(!0,!0))}))}onEditRestriction(t){t.stopPropagation(),this.editRestrictionCondition.emit(t.detail)}onDuplicateCondition(t){this.createNewCondition("field",void 0,t.detail.itemIndex,t.detail.slideIndex,t.detail.condition)}onAddCondition(t){this.addCondition(t.detail.condition,t.detail.slideIndex,t.detail.itemIndex)}onAddPageCondition(t){this.addPageCondition(t.detail.condition,t.detail.slideIndex)}onConditionClicked(t){const{slideIndex:i,conditionIndex:e}=et(this.currentSlides,t.detail.conditionId);e>=0&&(this.selectedPageIndex!==i&&(this.selectedPageIndex=i,this.pageHeaderClicked.emit(i),this.hasPageChanged=i,this.resetExpandableBlockReferences()),this.showConditions=!0,this.selectedLeftMenuOption=r.logic)}onScoringSelected(t){(null==t?void 0:t.detail)&&([this.scoring,this.selectedScoring,this.selectedScoringIndex]=F(this.scoring,t.detail))}onDeleteScoringClicked(t){(null==t?void 0:t.detail)>-1&&(this.scoring.splice(t.detail,1),this.selectedScoring=0===this.scoring.length?null:this.scoring[0],this.scoring=[...this.scoring],this.scoringChanged.emit(this.scoring))}onNewConditionalFieldClicked(t){var i;this.selectedLeftMenuOption=r.blocks,this.newFieldCondition=t.detail,this.overlayElement.initialNewFieldCondition=this.newFieldCondition,null===(i=this.newFieldCategoryBlocks)||void 0===i||i.forEach((t=>t.forEach((t=>null==t?void 0:t.classList.add("overlay-active")))))}onHeaderClicked(t){var i,e,o;if("field"===(null===(i=this.newUndefinedCondition)||void 0===i?void 0:i.type))this.createNewCondition(this.newUndefinedCondition.type,t.detail.name);else if(null===(e=this.newUndefinedCondition)||void 0===e?void 0:e.type)this.createNewRestrictionClicked.emit({name:t.detail.name,type:this.newUndefinedCondition.type}),this.newUndefinedCondition=null;else if(null===(o=this.newUndefinedCondition)||void 0===o?void 0:o.condition){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.name);this.addCondition(this.newUndefinedCondition.condition,i,e)}}onCreateNewCondition(t){this.collapseAllBlocks(),this.showConditions=!0,this.createNewCondition("field",t.detail.name)}onConditionChanged(t){if("field"===t.detail.condition.type){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.fieldName);let o=!1;this.unattachedParentConditions&&this.unattachedParentConditions.length>0&&(this.unattachedParentConditions=this.unattachedParentConditions.map((i=>(i.condition._id===t.detail.condition._id&&(o=!0,i.condition=t.detail.condition),i)))),!o&&this.currentSlides[i].items[e].condition&&this.currentSlides[i].items[e].condition.length>0&&this.currentSlides[i].items[e].condition.forEach(((o,s)=>{o._id===t.detail.condition._id&&(this.currentSlides[i].items[e].condition[s].condition=t.detail.condition)})),o||ot(t.detail.condition,this.currentSlides),this.emitNewSlidesAndRerender()}}onPageConditionChanged(t){t.detail&&this.currentSlides[t.detail.pageIndex].condition&&(this.currentSlides[t.detail.pageIndex].condition=g(this.currentSlides[t.detail.pageIndex].condition)?this.currentSlides[t.detail.pageIndex].condition.map((i=>i._id===t.detail.condition._id?t.detail.condition:i)):t.detail.condition,this.emitNewSlidesAndRerender())}onItemSelected(t){if(this.selectionMode){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,t.detail.name);this.currentSlides[i].items[e].selected?(this.currentSlides[i].items[e].selected=!1,this.selectedFields=this.selectedFields.filter((t=>!(t.slideIndex===i&&t.itemIndex===e)))):(this.currentSlides[i].items[e].selected=!0,this.selectedFields.push({slideIndex:i,itemIndex:e,name:t.detail.name})),this.selectedFields=[...this.selectedFields],this.selectedFields=Tt(this.selectedFields,["slideIndex","itemIndex"],["asc","asc"]),this.selectedMoveActions=st(this.itemList,null,((t,i,e)=>this.moveSelectedFields(e,t)),{selectedFields:this.selectedFields,extraStartingItems:[{title:"MOVEFIELDSAFTER",useHandler:!1,cssClass:"no-hover",hideIfNoItems:!0},{title:"MOVEFIELDSATBEGINNING",useHandler:!0,cssClass:"bottom-border"}]})}}onTranslateFieldClicked(t,i=null){var e;(null===(e=this.translations)||void 0===e?void 0:e.length)>0?(this.loadNewTranslations.emit(),i=O(this.currentSlides,t.detail.name),this.reloadTranslationModalOnUpdate=i):this.showTranslationDialog(t)}onCreateNewRestriction(t){this.selectedLeftMenuOption=r.logic,this.newRestrictionCondition=t.detail,this.restrictionSelector&&(this.restrictionSelector.disableSecondaryActions=!0),this.overlayElement.initialNewRestrictionCondition=this.newRestrictionCondition}onRestricitonHeaderClicked(t){if(this.newRestrictionCondition&&t.detail.type)this.createNewRestrictionClicked.emit({name:this.newRestrictionCondition.name,type:t.detail.type}),this.removeOverlays();else if(this.newRestrictionCondition&&t.detail.condition){const{slideIndex:i,itemIndex:e}=O(this.currentSlides,this.newRestrictionCondition.name);this.addCondition(t.detail.condition,i,e)}}onRestrictionConditionClicked(){this.restrictionConditionSelectedTab=1,this.selectedLeftMenuOption===r.logic?this.restrictionSelector.updateSelectedTab(this.restrictionConditionSelectedTab):this.selectedLeftMenuOption=r.logic}onFieldMove(t){this.moveSelectedFields(t.detail.targetFieldName,t.detail.targetFieldSlideIndex,t.detail.selectedField)}onfieldChanged(t){var i,e,o,s,a,n;if((null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.opValues)&&(null===(e=this.scoring)||void 0===e?void 0:e.length)){const i=null===(n=null===(a=null===(s=null===(o=this.missionDescription)||void 0===o?void 0:o.slides[this.selectedPageIndex])||void 0===s?void 0:s.items)||void 0===a?void 0:a.find((i=>i.name===t.detail.name)))||void 0===n?void 0:n.values,e=t.detail.opValues[0];i&&e&&(null==e||e.forEach(((e,o)=>{this.scoring.map(((s,a)=>{const n=i=>`${t.detail.name}${i}`,r=t=>s[n(t)];void 0!==r(i[o])&&void 0===r(e)&&(this.scoring[a]=Object.assign(Object.assign({},s),{[n(e)]:r(i[o])}),delete this.scoring[a][n(i[o])],this.missionDescription.slides[this.selectedPageIndex].items.find((i=>i.name===t.detail.name)).values[o]=e)}))})))}}onSaveAsTemplateClicked(t){const i=O(this.slides,t.detail.name),e=[this.slides[i.slideIndex].items[i.itemIndex]],{cleanedFields:o,removedConditionIds:s}=at(e,this.translations);this.createCustomFormFields.emit({cleanedFields:o,removedConditionIds:s})}async updateHeaderWarning(t){this.formCreatorHeader.showWarning=t}async translateAllFields(){nt(!1,this.missionDescription,this.translations,this.currentSlides,this.scoring,this.baseLanguage,{missionDescriptionChanged:this.missionDescriptionChanged,slidesChanged:this.slidesChanged,scoringChanged:this.scoringChanged,translationsUpdated:this.translationsUpdated},null,!0)}async translationUpdateShowTranslateDialog(){this.reloadTranslationModalOnUpdate&&this.haveTranslationsUpdated&&this.translations&&this.translations.length>0&&(this.showTranslationDialog(null,this.reloadTranslationModalOnUpdate),this.reloadTranslationModalOnUpdate=null,this.haveTranslationsUpdated=!1)}async addPageCondition(t,i){if(this.currentSlides[i].condition){const e=[...this.currentSlides[i].condition,t];this.currentSlides[i].condition=e}else this.currentSlides[i].condition=[t];this.unattachedParentConditions=rt(this.unattachedParentConditions,t),this.emitNewSlidesAndRerender()}async addCondition(t,i,e){var o;if((null===(o=null==t?void 0:t.field)||void 0===o?void 0:o.values)&&(t.field.values=Et(t.field.values)),this.currentSlides[i].items[e].condition){const o=[...this.currentSlides[i].items[e].condition,t];this.currentSlides[i].items[e].condition=o}else this.currentSlides[i].items[e].condition=[t];this.unattachedParentConditions=rt(this.unattachedParentConditions,t),this.emitNewSlidesAndRerender()}async updateTranslationValueInDialog(t){this.formCreatorTranslateDialog&&this.formCreatorTranslateDialog.updateTranslationValue(t)}async scrollToField(t,i){setTimeout((()=>{var e,o;let s=t;this.expandableBlocks[s]||i||(s=$(this.slides,this.selectedPageIndex,t));const a=48*(t-s),n=i||this.expandableBlocks[s];if(n){const t=n.getBoundingClientRect(),i=null===(e=this.mainContentScrollElement)||void 0===e?void 0:e.getBoundingClientRect();i&&t&&(t.y<i.y||t.bottom>i.bottom-160)&&this.mainContentScrollElement.scrollByPoint(0,t.y-i.y-8+a,200)}this.newFieldAdded=null,null===(o=this.newFieldContainerBlocks)||void 0===o||o.forEach((t=>{var i;return null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.remove("disabled")}))}),500)}async setAreSlidesDirtyAndDisableSaveButton(t,i=!1){this.areSlidesDirty=t,this.formCreatorHeader&&this.formCreatorHeader.setSaveButtonDisabled(!this.areSlidesDirty||i)}async toggleSelectionMode(t){this.selectionMode=!t&&!this.selectionMode,this.selectionMode?this.currentExpandedBlockLocation&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex]&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex].expandBlock(!1):(this.removeOverlays(),lt(this.currentSlides),this.selectedFields=[])}async setSelectedPage(t){t=Math.max(0,t),this.hasPageChanged=t,this.selectedPageIndex=t}async addNewPage(t,i){t=Object.assign({_id:C()},t),this.currentSlides.splice(i,0,t),this.selectedPageIndex=i,this.hasPageChanged=i,this.newPageAdded.emit(i),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}async pageOrderChange(t,i){const e=e=>{const o=e[t];e.splice(t,1),e.splice(i,0,o)};e(this.currentSlides),e(this.itemList),this.emitNewSlidesAndRerender()}async expandFormFieldBlock(t,i){t===this.selectedPageIndex&&(this.scrollToField(i),this.expandableBlocks[i]?this.expandableBlocks[i].expandBlock(!0):await this.expandChildBlocks(i))}async setScoring(t,i=!1){t&&t.length>0&&([t,this.selectedScoring,this.selectedScoringIndex]=ht(t),i&&(this.fieldsWithScoring=dt(t),ct(this.currentSlides,this.fieldsWithScoring),this.computeScoringTotal()))}async forceUpdateBlockValues({slideIndex:t,itemIndex:i},o){if(this.selectedPageIndex===t){let s=!1;const a=i;for(;!s&&i>=0;)this.expandableBlocks[i]?(this.expandableBlocks[i].formField.title=a===i&&o?o.title:this.currentSlides[t].items[i].title,this.expandableBlocks[i].formField.values=this.currentSlides[t].items[i].values,this.expandableBlocks[i].formField.required=a===i&&o?o.required:this.currentSlides[t].items[i].required,e(this.expandableBlocks[i]),s=!0):i-=1}}componentWillLoad(){this.currentSlides=this.slides,this.isTallScreen()&&(this.numberOfBlocksToRender=30),this.isTranslatorForm?this.selectedLeftMenuOption=r.translate:(pt(this.currentSlides),this.setItemList(),this.newFieldCategoryBlocks=Array.from(Array(this.categories.length),(()=>[])),this.setSimpleFormBlockArrays(),this.totalFields=mt(this.slides),this.currentSlides=bt(this.currentSlides),this.scoring=u(this.scoring),this.setScoring(this.scoring,!0)),this.isLivePreviewHidden=this.selectedLeftMenuOption===r.workflow}componentDidLoad(){this.plan||(this.initExpandedFieldsSortable(),this.initNewFieldsSortable(),this.currentSlides=bt(this.currentSlides),this.updateGlobalActions(),this.hasLoaded.emit(),this.containerElWatch=setInterval((()=>{var t;(null===(t=this.containerEl)||void 0===t?void 0:t.scrollTop)>0&&(this.containerEl.scrollTop=0)}),1e3)),this.hasLoaded.emit()}componentWillUpdate(){this.currentSlides=bt(this.currentSlides),this.currentSlides=ft(this.unattachedParentConditions,this.currentSlides),pt(this.currentSlides),this.totalFields=mt(this.slides),this.newFieldAdded||(this.newFieldContainerBlocks=[]),this.setItemList()}componentDidUpdate(){var t;this.currentSlides=bt(this.currentSlides),this.restrictionConditionSelectedTab=0,this.updateGlobalActions(),(this.hasPageChanged>-1||this.forceSortableRefresh)&&this.isSelectedLeftMenu(r.blocks)&&(this.currentExpandableFieldSortable&&this.hasPageChanged>-1&&this.currentExpandableFieldSortable.destroy(),setTimeout((()=>{this.initExpandedFieldsSortable(),this.initNewFieldsSortable()}),this.forceSortableRefresh?1e3:0),this.forceSortableRefresh=!1,this.hasPageChanged=-1),this.hasLeftMenuOptionChanged&&this.isSelectedLeftMenu(r.blocks)&&(this.initExpandedFieldsSortable(),this.initNewFieldsSortable(),this.hasLeftMenuOptionChanged=!1),this.checkExpandedFieldsHaveForms(),(null===(t=this.newFieldAdded)||void 0===t?void 0:t.conditional)&&(this.showConditions=!0,this.forceFieldRerender&&(this.forceFieldRerender=null)),this.shouldRenderLeftSelectionContent=!0}updateGlobalActions(){this.selectedMoveActions=st(this.itemList,null,((t,i,e)=>this.moveSelectedFields(e,t)),{extraStartingItems:[{title:"MOVEFIELDSAFTER",useHandler:!1,cssClass:"no-hover",hideIfNoItems:!0},{title:"MOVEFIELDSATBEGINNING",useHandler:!0,cssClass:"bottom-border"}]}),this.selectedDuplicateActions=st(this.itemList,null,((t,i)=>this.duplicateSelectedFields(t,i)),{emptySubmenuHandlerTitle:"ADDTOSTART"})}disconnectedCallback(){this.containerElWatch&&clearInterval(this.containerElWatch)}async expandChildBlocks(t){var i;const[e,o]=this.getIndexAndChildCount(t),s=await(null===(i=this.expandableBlocks[o])||void 0===i?void 0:i.getExpandableChildBlocks());s&&s.length>0&&s[e-1]&&s[e-1].expandBlock(!0)}computeScoringTotal(){this.scoring=this.scoring.map((t=>A(t)))}isTallScreen(){return window.innerHeight>1300}updateScoring(t){this.scoring[this.selectedScoringIndex]=Object.assign(Object.assign({},this.scoring[this.selectedScoringIndex]),t),this.scoring[this.selectedScoringIndex].selectedFields=this.scoring[this.selectedScoringIndex].selectedFields.filter(((t,i,e)=>e.findIndex((i=>i.name===t.name))===i)),this.selectedScoring=Object.assign({},this.scoring[this.selectedScoringIndex]),this.scoring=[...this.scoring],this.computeScoringTotal(),this.scoringChanged.emit(this.scoring)}isInOtherScoring(t){let i=!1;return this.scoring.forEach((e=>{e.selectedFields.find((i=>i.name===t))&&(i=!0)})),i}onScoringQuickSetup(){this.scoringQuickSetup.emit({title:this.selectedScoring.title,pages:this.slides,scoringIndex:this.selectedScoringIndex})}getIndexAndChildCount(t){let i=0;for(;!this.expandableBlocks[t]&&t>0;)t-=1,i+=1;return[i,t]}toggleInvisibleDiv(){vt(this.currentSlides,this.selectedPageIndex)&&this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{var e;if(t&&t.isExpanded)if(this.expandableBlocks[i])this.expandableBlocks[i].toggleInvisibleDiv();else{const[t,o]=this.getIndexAndChildCount(i);null===(e=this.expandableBlocks[o])||void 0===e||e.getExpandableChildBlocks().then((i=>{i.length>0&&i[t-1]&&i[t-1].toggleInvisibleDiv()}))}}))}showTranslationDialog(t,i=null){var e;let o=!1;t?i=null===i?O(this.currentSlides,t.detail.name):i:i||(i={slideIndex:0,itemIndex:0}),this.formCreatorTranslateDialog=document.createElement("yoo-form-creator-translate-dialog"),this.formCreatorTranslateDialog.baseLanguage=this.baseLanguage,this.formCreatorTranslateDialog.translatedLanguages=null===(e=this.missionDescription)||void 0===e?void 0:e.languages,this.formCreatorTranslateDialog.allLanguages=this.allLanguages,this.translations&&this.translations.length>0?(o=!0,this.formCreatorTranslateDialog.isTranslator=this.isTranslator,this.formCreatorTranslateDialog.disableNewLanguageButton=this.isLesson&&!this.plan?"ADDNEWLANGAUGEINCOURSE":null,this.formCreatorTranslateDialog.translations=this.translations,this.formCreatorTranslateDialog.slides=N(this.currentSlides,!0),this.formCreatorTranslateDialog.initialSelectedFieldLocation=i,this.formCreatorTranslateDialog.addEventListener("translationUpdated",(t=>{t.stopPropagation(),this.translationUpdated.emit(t.detail)})),this.formCreatorTranslateDialog.addEventListener("languageChanged",(t=>{t.stopPropagation(),this.translateDialogLanguageChanged.emit(t.detail)})),this.formCreatorTranslateDialog.addEventListener("translateValue",(t=>{this.translateValue.emit(t.detail)}))):(this.formCreatorTranslateDialog.mode="createInitial",this.formCreatorTranslateDialog.addEventListener("selectedLanguagesChanged",(t=>{this.selectedLanguagesChanged.emit(t.detail)})),this.formCreatorTranslateDialog.addEventListener("baseLanguageChanged",(t=>{this.baseLanguageChanged.emit(t.detail)}))),y(this.formCreatorTranslateDialog,{},"visible-overflow responsive","fadeEnterAnimation","fadeLeaveAnimation",!0).then((e=>{var s,a,n,r;this.translateDialogClosed.emit({refreshForms:o}),(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.createNewTranslations)?this.translateNewLanguages([],!1,i):(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.addNewLanguage)?this.showChangeLanguageTranslationDialog(t,i):(this.reloadLivePreview.emit(),this.livePreviewElement&&(this.livePreviewElement.missionDescriptionTitle=v(null===(n=this.missionDescription)||void 0===n?void 0:n.title)),this.formCreatorHeader&&(this.formCreatorHeader.formTitle=v(null===(r=this.missionDescription)||void 0===r?void 0:r.title)))}))}showChangeLanguageTranslationDialog(t,i){var e;const o=document.createElement("yoo-form-creator-translate-dialog");o.baseLanguage=this.baseLanguage,o.mode="create",o.translatedLanguages=null===(e=this.missionDescription)||void 0===e?void 0:e.languages,o.allLanguages=this.allLanguages,o.addEventListener("selectedLanguagesChanged",(t=>{this.selectedLanguagesChanged.emit([...t.detail,...this.selectedLanguages])})),y(o,{},"visible-overflow responsive","fadeEnterAnimation","fadeLeaveAnimation",!0).then((e=>{var o,s,a;(null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.createNewTranslations)?this.translateNewLanguages(this.translations,!0,i,null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.newLanguesToTranslate):(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.presentTranslationModal)&&this.showTranslationDialog(t,i)}))}setItemList(){this.itemList=this.currentSlides.map((t=>{let i;t.condition&&u(t.condition).length>0&&(i=u(t.condition).map((t=>t._id)));const e=t.items.map((t=>{let i=[];return t.condition&&g(t.condition)&&(i=t.condition.filter((t=>"string"!=typeof t)).map((t=>t._id))),{itemTitle:t.title,itemId:t.name,conditionIds:i}}));return{pageTitle:t.title,pageConditionIds:i,pageItems:e}}))}toggleHasScoring(t){this.slides=this.slides.map((i=>(i.items.forEach((i=>{i.name===t&&(i.hasScoring=!i.hasScoring)})),i)))}async initNewFieldsSortable(t=!1){var i,e;0===(null===(i=this.newFieldContainerBlocks)||void 0===i?void 0:i.length)&&this.fieldSelectorElement&&(this.newFieldContainerBlocks=await this.fieldSelectorElement.getNewFieldContainerBlocks()),null===(e=this.newFieldContainerBlocks)||void 0===e||e.forEach(((i,e)=>{var o;if(i){t&&(null===(o=null==i?void 0:i.classList)||void 0===o||o.remove("disabled"));const s=V.create(i,{group:{name:"fields",pull:"clone",put:!1},animation:150,sort:!1,filter:".disabled",onClone:t=>{switch(this.currentExpandedBlockLocation&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex]&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex].expandBlock(!1),this.toggleInvisibleDiv(),this.selectedLeftMenuOption){case r.blocks:this.handleNewFieldOnClone(t);break;case r.logic:this.handleNewLogicFieldOnClone(t)}},onEnd:t=>{switch(this.toggleInvisibleDiv(),this.selectedLeftMenuOption){case r.blocks:this.handleNewFieldOnEnd(t,e)}}});this.leftMenuSortables.push(s)}}))}handleNewFieldOnEnd(t,i){var e,o;if(i>(null===(e=this.categories)||void 0===e?void 0:e.length)-1&&(null===(o=this.customFormFields)||void 0===o?void 0:o.length)>0&&(null==t?void 0:t.item)){const i=t.item.classList;t.item.remove();let e=i[1];if(e){e=e.replace("custom-field-","");const i=parseInt(e);this.customFormFields[i]&&this.onCustomFieldAdded(null,this.customFormFields[i],t.newIndex)}}else{const e=this.newFieldCategoryBlocks[i][t.oldIndex],o=t.to,s=null==e?void 0:e.formField;if(e&&o&&!o.classList.contains("category-block-selection")&&!o.classList.contains("condition-block-selection")){t.item.remove();const i={title:s.title,type:s.type,icon:s.icon,category:s.category,config:s.config};this.shouldRenderLeftSelectionContent=!1,this.onFormFieldAdd(i,t.newIndex)}this.fieldEmptyStateContainer&&this.fieldEmptyStateContainer.classList.contains("empty-state")&&(this.fieldEmptyStateContainer.style.opacity="1")}}handleNewLogicFieldOnClone(t){const i=t.clone.firstChild;i.type&&(i.mode="new")}handleNewFieldOnClone(t){const i=t.clone.firstChild,e=t.item.firstChild.formField;i.mode="new",i.formField=e,this.fieldEmptyStateContainer&&this.fieldEmptyStateContainer.classList.contains("empty-state")&&(this.fieldEmptyStateContainer.style.opacity="0")}initExpandedFieldsSortable(){this.expandableBlockContainers&&this.expandableBlockContainers.length&&this.expandableBlockContainers[this.selectedPageIndex]&&(this.currentExpandableFieldSortable=V.create(this.expandableBlockContainers[this.selectedPageIndex],{animation:150,group:{name:"fields"},chosenClass:"sortable-chosen-no-border",direction:"vertical",draggable:".sortable-container",filter:".selection",scroll:!0,swapThreshold:.2,onStart:()=>{this.toggleInvisibleDiv(),this.currentExpandedBlockLocation&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex]&&this.expandableBlocks[this.currentExpandedBlockLocation.itemIndex].expandBlock(!1)},onEnd:t=>{const i=this.parentBlockIndices[t.oldIndex],e=this.parentBlockIndices[t.newIndex],o=gt(this.currentSlides[this.selectedPageIndex].items[i])+1,s=this.currentSlides[this.selectedPageIndex].items.slice(i,i+o);this.currentSlides[this.selectedPageIndex].items.splice(i,o),this.currentSlides[this.selectedPageIndex].items.splice(e,0,...s),this.toggleInvisibleDiv(),pt(this.currentSlides),this.slidesChanged.emit({slides:this.currentSlides,pageIndex:this.selectedPageIndex})}}))}removeOverlays(){var t,i,e,o,s;this.newUndefinedCondition=null,this.newRestrictionCondition=null,this.hasAdditionBeenClicked||(this.newFieldCondition=null),this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{var e;const[o]=this.getIndexAndChildCount(i);null===(e=this.expandableBlocks[o])||void 0===e||e.getExpandableChildBlocks().then((t=>null==t?void 0:t.forEach((t=>null==t?void 0:t.classList.remove("overlay-active")))))})),null===(t=this.pageCardList)||void 0===t||t.classList.remove("overlay-active"),null===(i=this.pageCardList)||void 0===i||i.addCardClassList(),null===(e=this.expandableBlocks)||void 0===e||e.forEach((t=>{var i;return null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.remove("overlay-active")})),null===(o=this.newFieldCategoryBlocks)||void 0===o||o.forEach((t=>null==t?void 0:t.forEach((t=>null==t?void 0:t.classList.remove("overlay-active"))))),null===(s=this.expandableBlocks)||void 0===s||s.forEach((t=>{(null==t?void 0:t.mode)&&(t.mode="added")})),this.newCustomFormFieldSelectionMode&&(this.newCustomFormFieldSelectionMode=!1,this.overlayElement.newCustomFormField=!1,this.selectionMode=!1),this.overlayElement.initialNewUndefinedCondition=this.newUndefinedCondition,this.overlayElement.initialNewFieldCondition=this.newFieldCondition,this.overlayElement.initialNewRestrictionCondition=this.newRestrictionCondition,this.restrictionSelector&&(this.restrictionSelector.disableSecondaryActions=!1)}createNewCondition(t,i,e,o,s){if(!s){const a=O(this.currentSlides,i);s=ut(t,this.currentSlides[o=a.slideIndex].items[e=a.itemIndex])}if("field"===t)if(G.includes(this.currentSlides[o].items[e].category))x({message:b("CANNOTAPPLYCONDITIONSTOINFORMATION"),duration:2e3,showCloseButton:!0,closable:!0,cssClass:"form-creator",position:"top"});else{const{slides:t,unattachedParentConditions:i}=yt(this.currentSlides,this.unattachedParentConditions,o,e,s);this.currentSlides=t,this.unattachedParentConditions=i}else this.addCondition(s,o,e);this.emitNewSlidesAndRerender(!1)}checkExpandedFieldsHaveForms(){vt(this.currentSlides,this.selectedPageIndex)&&this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{(null==t?void 0:t.isExpanded)&&!t.hasExpanded&&this.formCreatorBlockExpanded.emit({pageIndex:this.selectedPageIndex,itemIndex:i})}))}duplicateSelectedFields(t,i){var e,o;if(null===(e=this.selectedFields)||void 0===e?void 0:e.length){let e;e=0===i&&0===(null===(o=this.currentSlides[t].items)||void 0===o?void 0:o.length)?this.selectedFields:this.selectedFields.reverse();const s=[];e.forEach((e=>{var o,a;const{slideIndex:n,itemIndex:r}=O(this.currentSlides,e.name);this.currentSlides=X(this.currentSlides,{slideIndex:n,itemIndex:r},!1,{slideIndex:t,itemIndex:i},"dataset"===(null===(o=this.missionDescription)||void 0===o?void 0:o.type)),(null===(a=this.translations)||void 0===a?void 0:a.length)&&this.updateDuplicatedFieldTranslations(this.currentSlides,t,i+1,s)})),(null==s?void 0:s.length)&&this.saveNewTranslations.emit(s),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}}updateDuplicatedFieldTranslations(t,i,e,o){this.translations.forEach((s=>{var a,n,r,l;const h=k(Et(s),this.baseLanguage);L(!1,`%${s.key}%`,t[i].items[e],`%${null==h?void 0:h.key}%`,{key:s.key,updateKey:null==h?void 0:h.key})&&(o.push(h),(null===(n=null===(a=t[i].items[e])||void 0===a?void 0:a.opValues)||void 0===n?void 0:n.length)>0&&(null===(l=null===(r=t[i].items[e])||void 0===r?void 0:r.opValues[0])||void 0===l?void 0:l.length)>0&&(t[i].items[e].opValues[0]=t[i].items[e].values))}))}deleteSelectedFields(){if(this.selectedFields&&this.selectedFields.length>0){const t=1===this.selectedFields.length?"DELETECONFIRMFIELD":"DELETECONFIRMFIELDS";f(b("CONFIRM"),[b("YOOBICNO"),b("YOOBICOK")],b(t,{number:this.selectedFields.length})).then((t=>{var i,e,o;t&&(this.selectedFields.forEach((t=>{J(this.currentSlides,{name:t.name})})),this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender(),0!==(null===(e=null===(i=this.currentSlides[this.selectedPageIndex])||void 0===i?void 0:i.items)||void 0===e?void 0:e.length)&&(null===(o=this.currentSlides[this.selectedPageIndex])||void 0===o?void 0:o.items)||(this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.forceSortableRefresh=!0))}))}}editSelectedFields(){var t;(null===(t=this.selectedFields)||void 0===t?void 0:t.length)>0&&this.editMultipleFields.emit(this.selectedFields)}onCreateCustomFormFields(){var t;if((null===(t=this.selectedFields)||void 0===t?void 0:t.length)>0){const t=this.selectedFields.map((t=>this.slides[t.slideIndex].items[t.itemIndex])),{cleanedFields:i,removedConditionIds:e}=at(t,this.translations);this.createCustomFormFields.emit({cleanedFields:i,removedConditionIds:e})}}moveSelectedFields(t,i,e){if((e=e||this.selectedFields)&&e.length>0){let o=0,s=0;const a=[],n=[];if(e.forEach((t=>{a.push(this.currentSlides[t.slideIndex].items[t.itemIndex]),n.push(this.currentSlides[t.slideIndex].items[t.itemIndex].name)})),n.forEach((t=>{const i=O(this.currentSlides,t);this.currentSlides[i.slideIndex].items.splice(i.itemIndex,1)})),t){const e=O(this.currentSlides,t);i=e.slideIndex,o=e.itemIndex,s=1}this.currentSlides[i].items.splice(o+s,0,...a),this.emitNewSlidesAndRerender()}}isSelectedLeftMenu(t){return t===this.selectedLeftMenuOption}emitNewSlidesAndRerender(t=!0,i=!1){this.removeOverlays(),t&&(this.currentSlides=D(this.currentSlides)),lt(this.currentSlides),this.selectionMode&&this.toggleSelectionMode(),this.currentSlides=N(this.currentSlides),this.slidesChanged.emit({slides:this.currentSlides,pageIndex:this.selectedPageIndex,reloadRestrictionConditions:i}),this.currentSlides=[...this.currentSlides]}setSimpleFormBlockArrays(){this.categories.forEach((t=>{this.simpleFormBlocks[t]=[]})),[...this.formFields].forEach((t=>{this.simpleFormBlocks[t.category].push(t),t.mostUsed&&this.simpleFormBlocks.mostused&&this.simpleFormBlocks.mostused.push(t)}))}selectAll(){var t,i;null===(i=null===(t=this.currentSlides[this.selectedPageIndex])||void 0===t?void 0:t.items)||void 0===i||i.forEach(((t,i)=>{t.selected||(t.selected=!0,this.selectedFields.push({slideIndex:this.selectedPageIndex,itemIndex:i,name:t.name}))})),this.selectedFields=[...this.selectedFields]}resetExpandableBlockReferences(){this.expandableBlocks=[]}translateNewLanguages(t,i,e,o){var s;"mission"===(null===(s=this.missionDescription)||void 0===s?void 0:s.type)?f(b(this.missionDescription.active?"CAUTION":"BESTPRACTICES"),[b("CANCEL"),b("TRANSLATECAMPAIGN")],null,"translate-warning",null,null,null,this.missionDescription.active?"TRANSLATEACTIVECAMPAIGNLINK":"TRANSLATECAMPAIGNLINK").then((e=>{e&&nt(i,this.missionDescription,t,this.currentSlides,this.scoring,this.baseLanguage,{missionDescriptionChanged:this.missionDescriptionChanged,slidesChanged:this.slidesChanged,scoringChanged:this.scoringChanged,translationsUpdated:this.translationsUpdated},o)})):nt(i,this.missionDescription,t,this.currentSlides,this.scoring,this.baseLanguage,{missionDescriptionChanged:this.missionDescriptionChanged,slidesChanged:this.slidesChanged,scoringChanged:this.scoringChanged,translationsUpdated:this.translationsUpdated},o),this.reloadTranslationModalOnUpdate=e}onInfiniteScroll(){var t;this.numberOfBlocksToRender<this.slides[this.selectedPageIndex].items.length&&(this.numberOfBlocksToRender+=20,null===(t=this.infiniteScrolls[this.selectedPageIndex])||void 0===t||t.complete())}onMainContentScrolled(t){t&&(this.scrollContent.emit(t.detail),t.detail.deltaY>200&&this.pagesAccordion&&this.isPagesAccordionOpen&&this.pagesAccordion.clickAccordion(0))}onPagesAccordionSelected(t){this.isPagesAccordionOpen=t.detail.selected}onLeftMenuIconSelected(t){var i;if(this.removeOverlays(),this.hasLeftMenuOptionChanged=!0,this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.showLeftMenuSelection=this.selectedLeftMenuOption!==t||!this.showLeftMenuSelection,t===r.logic&&(this.showConditions=!0),t===r.scoring&&this.scoring[0])if((null===(i=this.scoring)||void 0===i?void 0:i.length)>0&&(this.scoring=j(this.scoring,this.currentSlides),this.computeScoringTotal()),this.scoring.some((t=>!0===t.isSelected))){const t=this.scoring.findIndex((t=>!0===t.isSelected));this.selectedScoring=this.scoring[t]}else this.scoring[0].isSelected=!0,this.selectedScoring=this.scoring[0];this.leftMenuChange.emit(t),this.selectedLeftMenuOption=t,this.isLivePreviewHidden=this.selectedLeftMenuOption===r.workflow,this.onWorkflowStep(null)}onCloseClicked(t){t.stopPropagation(),this.closeClicked.emit()}onSaveClicked(t){t.stopPropagation(),this.saveClicked.emit(!0)}onAddNewPage(t=this.currentSlides.length){this.hasPageChanged=t,this.addNewPageClicked.emit(t)}collapseAllBlocks(t=null,i=!1){vt(this.currentSlides,this.selectedPageIndex)&&(this.currentSlides[this.selectedPageIndex].items.forEach((i=>{i.isExpanded=t&&i.name===t})),i&&(this.currentSlides=N(this.currentSlides),this.currentSlides=[...this.currentSlides]))}onCustomFieldAdded(t,i,e){var o,s,a,n,r,l;if(!this.currentSlides[this.selectedPageIndex])return;e=w(e)?null===(s=null===(o=this.currentSlides[this.selectedPageIndex])||void 0===o?void 0:o.items)||void 0===s?void 0:s.length:e,i||(i=null===(a=this.customFormFields)||void 0===a?void 0:a.find((i=>i._id===t)));const h=xt(i.fields,"dataset"===(null===(n=this.missionDescription)||void 0===n?void 0:n.type),{slideIndex:this.selectedPageIndex,itemIndex:e});null==h||h.forEach((t=>{var i,e;t.slideIndex=this.selectedPageIndex,t.slideTitle=null===(i=this.currentSlides[this.selectedPageIndex])||void 0===i?void 0:i.title,t.slideId=null===(e=this.currentSlides[this.selectedPageIndex])||void 0===e?void 0:e._id})),(null===(l=null===(r=this.currentSlides[this.selectedPageIndex])||void 0===r?void 0:r.items)||void 0===l?void 0:l.length)>0?this.currentSlides[this.selectedPageIndex].items.splice(e,0,...h):this.currentSlides[this.selectedPageIndex].items=h,this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender()}onAddNewCondition(t,i=!1,e){var o,s,a,n;this.currentSlides[this.selectedPageIndex].items.forEach(((t,i)=>{var e;const[o]=this.getIndexAndChildCount(i);null===(e=this.expandableBlocks[o])||void 0===e||e.getExpandableChildBlocks().then((t=>null==t?void 0:t.forEach((t=>null==t?void 0:t.classList.add("overlay-active")))))})),null===(o=this.pageCardList)||void 0===o||o.classList.add("overlay-active"),null===(s=this.pageCardList)||void 0===s||s.addCardClassList(),null===(a=this.expandableBlocks)||void 0===a||a.forEach((t=>{var i;return null===(i=null==t?void 0:t.classList)||void 0===i?void 0:i.add("overlay-active")})),null===(n=this.expandableBlocks)||void 0===n||n.forEach((t=>{(null==t?void 0:t.mode)&&(t.mode="no-expand")})),this.newUndefinedCondition={type:t,pageCondition:i,condition:e},this.overlayElement.initialNewUndefinedCondition=this.newUndefinedCondition}onFormFieldAdd(t,i,e){var o,s,a,n,r,l,h;if(!this.currentSlides[this.selectedPageIndex])return;null===(o=this.newFieldContainerBlocks)||void 0===o||o.forEach((t=>null==t?void 0:t.classList.add("disabled"))),this.collapseAllBlocks();let d,c=this.currentSlides[this.selectedPageIndex].items.length;if(t){if(d=wt(t,null===(s=this.missionDescription)||void 0===s?void 0:s.type),d=Object.assign({isExpanded:!(null===(a=this.newFieldCondition)||void 0===a?void 0:a.condition)},d),this.newFieldCondition){const t=this.newFieldCondition.condition;(null===(n=null==t?void 0:t.field)||void 0===n?void 0:n.values)&&(t.field.values=Et(t.field.values)),d=Object.assign(Object.assign({},d),{condition:[t]}),c=this.newFieldCondition.index,this.unattachedParentConditions=rt(this.unattachedParentConditions,this.newFieldCondition.condition),this.showConditions=!1,this.forceFieldRerender=this.newFieldCondition.condition.field.name}"dataset"===(null===(r=this.missionDescription)||void 0===r?void 0:r.type)&&(d.name=d.title.split(" ").join("_").toLowerCase(),d.customName=C(),z(d,this.currentSlides)||(d.name=M(d.title,this.selectedPageIndex,c)))}else e&&(d=e);void 0!==i&&i<this.parentBlockIndices.length&&!e?c=this.parentBlockIndices[i]:e&&i>-1&&((null===(l=this.currentExpandedBlockLocation)||void 0===l?void 0:l.itemIndex)!==i||e||(this.forceFieldRerender=e.name),c=i),d=Object.assign(Object.assign({},d),{formCreatorIndex:c||0,slideIndex:this.selectedPageIndex}),(null===(h=this.newFieldCondition)||void 0===h?void 0:h.condition)||(this.currentExpandedBlockLocation={slideIndex:this.selectedPageIndex,itemIndex:c}),c<this.currentSlides[this.selectedPageIndex].items.length?this.currentSlides[this.selectedPageIndex].items.splice(c,0,d):this.currentSlides[this.selectedPageIndex].items.push(d),this.newFieldAdded={slideIndex:this.selectedPageIndex,itemIndex:c,conditional:!w(this.newFieldCondition)},this.resetExpandableBlockReferences(),this.emitNewSlidesAndRerender(),1===this.currentSlides[this.selectedPageIndex].items.length&&(this.leftMenuSortables.forEach((t=>t.destroy())),this.leftMenuSortables=[],this.forceSortableRefresh=!0)}onFormFieldMove(t,i){if(t&&t.detail){const{slideIndex:e,itemIndex:o}=O(this.currentSlides,t.detail.name);this.currentExpandedBlockLocation&&this.currentExpandedBlockLocation.slideIndex===e&&this.currentExpandedBlockLocation.itemIndex===o&&this.expandableBlocks[o]&&this.expandableBlocks[o].expandBlock(!1);const s=this.currentSlides[e].items[o],a=i?o-1:o+1;this.currentSlides[e].items.splice(o,1),this.currentSlides[e].items.splice(a,0,s),this.emitNewSlidesAndRerender()}}renderHeader(){var t,i;return o("yoo-form-creator-header",{ref:t=>this.formCreatorHeader=t,logo:this.logo,formTitle:(null===(t=this.missionDescription)||void 0===t?void 0:t.title)||(null===(i=this.plan)||void 0===i?void 0:i.title),prefixTitle:this.prefixTitle,isLesson:this.isLesson,selectedLeftMenuOption:this.selectedLeftMenuOption,initialSaveButtonDisabled:!this.areSlidesDirty,hideSave:this.isTranslator,onCloseClicked:t=>this.onCloseClicked(t),onSaveClicked:t=>this.onSaveClicked(t),onShowQrCode:t=>{t.stopImmediatePropagation(),this.showQrCode.emit()},onWarningClicked:t=>{t.stopImmediatePropagation(),this.headerWarningClicked.emit()}})}renderContent(){var t;const i=this.selectedLeftMenuOption!==r.translate&&this.selectedLeftMenuOption!==r.design&&this.selectedLeftMenuOption!==r.workflow,e=this.selectedLeftMenuOption!==r.design&&this.selectedLeftMenuOption!==r.workflow,s=this.selectedLeftMenuOption===r.workflow;let a=(this.selectedLeftMenuOption!==r.translate||this.isLesson)&&this.selectedLeftMenuOption!==r.design&&!this.plan;return s&&!(null===(t=this.missionDescription)||void 0===t?void 0:t.hasWorkflow)&&(a=!1),o("div",{class:"content"},this.renderLeftMenu(),i&&this.renderLeftSelection(),e&&(this.selectedLeftMenuOption!==r.translate?this.renderFormContent():this.renderTranslateContent()),s&&this.renderWorkflow(),a&&!K(this.selectedLeftMenuOption)&&this.renderLivePreview())}renderLeftMenu(){return o("div",{class:"left-menu"},o("div",{class:"left-menu-top"},!this.isTranslatorForm&&this.renderIcon(r.blocks),this.showLogics&&this.renderIcon(r.logic),this.showScorings&&this.renderIcon(r.scoring),this.showTranslations&&this.renderIcon(r.translate),this.showDesign&&this.renderIcon(r.design),this.showWorkflow&&this.renderIcon(r.workflow)),o("div",{class:"left-menu-bottom"},this.renderHelp()))}renderHelp(){var t;const i=null===(t=this.helpCenterOptions)||void 0===t?void 0:t.filter((t=>!t.isVisible||t.isVisible()));return!!(null==i?void 0:i.length)&&o("yoo-context-menu",{contentButtons:i,placement:"above"},o("yoo-tooltip",{content:b("YOOBICHELP"),hoverable:!0,placement:"right"},o("yoo-icon",{color:"stable",name:"help",size:"medium"})))}renderIcon(t){const i=t===r.blocks?"categories":t,e="translation"===i?"translate":"workflow"===i?"hr":"design"===i?"color-picker":i;return o("yoo-tooltip",{content:b(t.toUpperCase()),hoverable:!0,placement:"right"},o("yoo-icon",{onClick:()=>this.onLeftMenuIconSelected(t),name:e,color:this.isSelectedLeftMenu(t)?"app-color":"stable",size:"medium"}))}renderLeftSelection(){return o("div",{class:{"left-selection":!0,hide:!this.showLeftMenuSelection,scoring:K(this.selectedLeftMenuOption)}},this.shouldRenderLeftSelectionContent&&this.renderLeftSelectionContent())}renderLeftSelectionContent(){switch(this.selectedLeftMenuOption){case"fields":return this.renderBlockCategorySelection();case"logic":return this.renderLogicSelection();case"scoring":return this.renderScoringSelection();case"translation":return this.renderTranslateSelection()}}renderBlockCategorySelection(){return o("yoo-form-creator-field-selector",{ref:t=>this.fieldSelectorElement=t,masterTitle:this.selectedLeftMenuOption.toUpperCase(),categories:this.categories,initialSimpleFormBlocks:this.simpleFormBlocks,initialCustomFormFields:this.customFormFields,onElementReferencesLoaded:t=>{this.newFieldContainerBlocks=t.detail.newFieldContainerBlocks,this.newFieldCategoryBlocks=t.detail.newFieldCategoryBlocks,this.initNewFieldsSortable(!0)},onNewCustomFormFieldClicked:()=>{this.selectionMode=!0,this.newCustomFormFieldSelectionMode=!0,this.overlayElement.newCustomFormField=!0}})}renderLogicSelection(){const t=[{title:"ADDCONDITION",selected:!0,subTitle:"FIELDTOOLTIP",blurContent:!w(this.newRestrictionCondition)},{title:"ADDRESTRICTION",selected:!0,subTitle:"RESTRICTIONTOOLTIP"}];return o("div",{class:"logic-container"},o("yoo-ion-scroll",{forceOverscroll:!1,onClick:t=>t.stopPropagation()},o("yoo-accordion",{maxTitleCharacters:18,entries:t,iconPairLeft:q,allowMultipleSelection:!0},l.map(((i,e)=>o("div",{slot:t[e].title},o("div",{class:"condition-block-selection",ref:t=>this.newFieldContainerBlocks[e]=t},"conditions"===i&&this.renderNewConditionBlocks(i),"restrictions"===i&&this.renderRestrictionConditions(i))))))))}renderNewConditionBlocks(t){return m.map((i=>{if(i.conditionType===t)return o("div",{class:`${t}-sortable-container`},o("yoo-form-creator-condition-block",{mode:i.mode,type:i.type}))}))}renderRestrictionConditions(t){return o("yoo-form-creator-restriction-selector",{ref:t=>this.restrictionSelector=t,conditionType:t,restrictionConditions:this.restrictionConditions,initialSelectedTab:this.restrictionConditionSelectedTab,disableSecondaryActions:!w(this.newRestrictionCondition)})}renderEmptyScoringState(){return o("div",{class:"scoring-empty-state",slot:"CONTENT"},o("yoo-empty-state",{type:"scoring"}),o("div",null,b("LISTEMPTY")))}renderScoringSelection(){const t={text:b("ADDNEWSCORING"),size:"small",color:"app-color",handler:()=>this.newScoringClicked.emit()};return o("yoo-accordion",{class:"sub-accordion",entries:[{title:"SCORING",selected:!0,actionButtons:[t]}],showBottomBorder:!0,allowMultipleSelection:!0,disabled:!0},o("div",{slot:"SCORING"},o("yoo-ion-scroll",{forceOverscroll:!1,onClick:t=>t.stopPropagation()},o("yoo-form-creator-score-card-list",{scoring:this.scoring,totalFields:this.totalFields}))))}renderTranslateSelection(){return o("yoo-accordion",{class:"sub-accordion",entries:[{title:"TRANSLATE",selected:!0}],iconPairLeft:q,showBottomBorder:!0,allowMultipleSelection:!0},o("div",{slot:"TRANSLATE"},o("yoo-form-creator-block-expandable",{mode:"new",formField:{title:"PLACEHOLDER",icon:"info",category:p.information},options:this.options})))}renderTranslateContent(){var t;if(this.showTranslations)return o("yoo-form-creator-translate",{baseLanguage:this.baseLanguage,selectedLanguages:this.selectedLanguages,allLanguages:this.allLanguages,translations:this.translations,slides:this.currentSlides,scoring:this.scoring,missionDescription:this.missionDescription,plan:this.plan,showBilingualView:this.isTranslatorForm&&w(this.plan)&&!w(null===(t=this.currentSlides[0])||void 0===t?void 0:t.items[0]),isTranslator:this.isTranslator,disableNewLanguageButton:this.isLesson&&!this.plan?"ADDNEWLANGAUGEINCOURSE":null,disableTranslateButton:this.isLesson&&!this.plan?"INITIATETRANSLATIONSINCOURSE":null,onBaseLanguageChanged:t=>{t.stopPropagation(),this.baseLanguageChanged.emit(t.detail)},onSelectedLanguagesChanged:t=>{t.stopPropagation(),this.selectedLanguagesChanged.emit(t.detail)},onTranslationsUpdated:t=>{t.stopPropagation(),this.translationsUpdated.emit(Object.assign(Object.assign({},t.detail),{googleTranslate:!0}))},onTranslationEdited:t=>{t.stopPropagation(),this.translationEdited.emit(t.detail)},onTranslationRemoved:t=>{t.stopPropagation(),this.translationRemoved.emit(t.detail)},onTranslationRemoveAll:t=>{t.stopPropagation(),this.translationRemoveAll.emit()},onTranslationImport:t=>{t.stopPropagation(),this.translationImport.emit(t.detail)},onSlidesChanged:t=>{t.stopPropagation();const i=N(t.detail.slides,!0);this.slidesChanged.emit({slides:i})},onScoringChanged:t=>{t.stopPropagation(),this.scoringChanged.emit(t.detail)},onMissionDescriptionChanged:t=>{t.stopPropagation(),this.missionDescriptionChanged.emit(t.detail)},onPlanChanged:t=>{t.stopPropagation(),this.planChanged.emit(t.detail)},onSetLoading:t=>{t.stopPropagation(),this.setLoading.emit(t.detail)},onBilingualViewClicked:()=>this.showTranslationDialog(),onOpenZenDesk:t=>{t.stopPropagation(),this.openZenDesk.emit()}})}onWorkflowStep(t){this.currentWorkflowStep=t,this.workflowCurrentStepChanged.emit(this.currentWorkflowStep)}renderWorkflow(){return o("yoo-workflow",{missionDescription:this.missionDescription,onMissionDescriptionChanged:t=>{t.stopPropagation(),this.missionDescriptionChanged.emit(t.detail)},onWorkflowStepUpdated:t=>{t.stopPropagation(),this.workflowStepUpdated.emit(t.detail)},onWorkflowStepEdited:t=>{t.stopPropagation(),this.workflowStepEdited.emit(t.detail)},onWorkflowStepRemoved:t=>{t.stopPropagation(),this.workflowStepRemoved.emit(t.detail)},onWorkflowBranchAdded:t=>{t.stopPropagation(),this.workflowBranchAdded.emit(t.detail)},onWorkflowStepParallelStepAdded:t=>{t.stopPropagation(),this.workflowStepParallelStepAdded.emit(t.detail)}})}renderFormContent(){var t;const i={iconSlot:"start",icon:"circle-plus",iconSize:"small",text:b("ADDNEWPAGE"),size:"small",color:"light",handler:()=>this.onAddNewPage()},e={text:b("QUICKSETUP"),size:"small",color:"light",handler:()=>this.onScoringQuickSetup()},s=b("SELECTEDITEMS",{n:""}),a=this.selectedFields.length>0,r=[];if(!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.custom)&&r.push({icon:()=>"dashboards",color:()=>"stable",text:()=>b("CREATECUSTOMFIELD"),isVisible:()=>a,handler:()=>{this.onCreateCustomFormFields()}}),!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.settings)&&r.push({icon:()=>"settings",color:()=>"stable",text:()=>b("SETTINGS"),isVisible:()=>a,handler:()=>{this.editSelectedFields()}}),!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.move)&&r.push({icon:()=>"move",color:()=>"stable",text:()=>b("YOOBICMOVE"),isVisible:()=>a,contextMenuActions:{contentButtons:this.selectedMoveActions}}),!this.newCustomFormFieldSelectionMode&&this.bulkActions.includes(n.duplicate)&&r.push({icon:()=>"duplicate",color:()=>"stable",text:()=>b("DUPLICATE"),isVisible:()=>a,contextMenuActions:{contentButtons:this.selectedDuplicateActions,subDialogTitle:"DUPLICATEFIELDSAFTER"}}),this.newCustomFormFieldSelectionMode||!this.bulkActions.includes(n.delete)||Ct(this.slides,"locked",this.selectedFields)||r.push({icon:()=>"delete",color:()=>"stable",text:()=>b("DELETE"),isVisible:()=>a,handler:()=>{this.deleteSelectedFields()}}),this.newCustomFormFieldSelectionMode&&r.push({icon:()=>"check",color:()=>"success",text:()=>b("SAVE"),isVisible:()=>a,handler:()=>{this.onCreateCustomFormFields()}}),this.bulkActions.includes(n.settings)&&r.push({icon:()=>"cross",color:()=>"stable",text:()=>b("CLOSE"),isVisible:()=>a,handler:()=>{this.toggleSelectionMode()}}),K(this.selectedLeftMenuOption)&&0===this.scoring.length)return o("div",{class:"form-content relative"},this.renderEmptyScoringState());const l=K(this.selectedLeftMenuOption)?this.scoring.length>0?[e]:null:[i],h=o("yoo-accordion",{ref:t=>this.pagesAccordion=t,class:"pages-accordion",entries:[{title:"PAGES",subItemCount:this.currentSlides.length,selected:this.isPagesAccordionOpen,actionButtons:l}],iconPairLeft:q,showBottomBorder:!0,forceEntryUpdate:!0,allowMultipleSelection:!0,onAccordionSelected:t=>this.onPagesAccordionSelected(t)},o("div",{slot:"PAGES"},o("yoo-form-creator-page-card-list",{ref:t=>this.pageCardList=t,scoringMode:K(this.selectedLeftMenuOption)?this.selectedScoring:null,missionSlides:this.currentSlides,selectedPageIndex:this.selectedPageIndex,onPageClicked:this.onPageClicked,onDuplicatePageClicked:this.onDuplicatePageClicked,onInsertPageAfterClicked:this.onInsertPageAfterClicked,onDeletePageClicked:this.onDeletePageClicked,onEditPageClicked:this.onEditPageClicked,onAddSiteTagRestrictionClicked:this.onAddSiteTagRestrictionClicked,onAddUserGroupRestrictionClicked:this.onAddUserGroupRestrictionClicked,itemList:this.itemList,isSortable:"fields"===this.selectedLeftMenuOption}))),d=o("yoo-toast",{class:"bg-light-to-dark global-actions form-creator",message:s,extraButtons:r,count:this.selectedFields.length||0,showBackdrop:!1});return o("div",{class:"form-content"},this.showPagesSection&&h,this.renderFormContentBlocksContainer(),(null===(t=this.newUndefinedCondition)||void 0===t?void 0:t.pageCondition)&&o("div",{class:"page-condition-overlay",onClick:()=>this.removeOverlays()}),this.selectionMode&&d)}renderOverlays(){return o("yoo-form-creator-overlay",{ref:t=>this.overlayElement=t,initialNewUndefinedCondition:this.newUndefinedCondition,initialNewFieldCondition:this.newFieldCondition,initialNewRestrictionCondition:this.newRestrictionCondition,initialIsLivePreviewHidden:this.isLivePreviewHidden,newCustomFormField:this.newCustomFormFieldSelectionMode,onOverlaysCleared:()=>this.removeOverlays()})}renderScoringBlocksContainer(t){return o("div",{class:"expandable-form-block-container"},t.items.map((({multiple:t,title:i,icon:e,category:s,name:a,type:n,opValues:r,values:l,hasScoring:p,formCreatorIndex:m,parentConditions:b,max:f})=>{const v=R(n,c,t);let g,u={fieldName:a,scoreValuePairs:[],maxScore:null};if("feedback"===n&&(l=h),v!==d.noScoring){g=r&&r[0]?r[0]:l||[],g=null==g?void 0:g.map((t=>null==t?void 0:t.replace(/[.]/g,"_"))),u=B(this.selectedScoring,a,v),v!==d.singleChoice&&v!==d.multipleChoice||!g.length||(u=kt(u,g));const t=P(u.scoreValuePairs);null===u.maxScore&&(u.maxScore=t)}const y={title:i,icon:e,category:s,name:a,values:g,hasScoring:p,formCreatorIndex:m,type:n,expanded:!0,fieldConditions:b,formattedScoring:Object.assign({},u),scoringCategory:v,max:f};return o("div",{class:"scoring-block-container"},o("yoo-form-creator-block-expandable",{options:this.options,mode:this.selectedScoring.isPercentage?"scoring-percentage":"scoring",formField:y,onScoreDeleted:this.onScoreDeleted,onScoreChanged:this.onScoreChanged,onScoreAdded:this.onScoreAdded}))})))}renderFormContentBlocksContainer(){const t=this.slides.some((t=>{var i;return null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.some((t=>(null==t?void 0:t.parentConditions)||(null==t?void 0:t.condition)))}));setTimeout((()=>{var t;if((null===(t=this.currentExpandableFieldSortable)||void 0===t?void 0:t.sort)&&this.currentSlides&&this.currentSlides[this.selectedPageIndex]&&this.currentSlides[this.selectedPageIndex].items){const t=this.currentSlides[this.selectedPageIndex].items.filter((t=>t)).map((t=>t.name));try{this.currentExpandableFieldSortable.sort(t)}catch(t){}}}),0),this.parentBlockIndices=[];const i="app-color",e=[{text:b("HIDELOGICTOOLTIP"),size:"small",color:i,fill:"transparent",animated:!1,handler:()=>this.showConditions=!this.showConditions,isVisible:()=>!this.selectionMode&&!this.isLesson&&t},{text:b("SELECTALL"),size:"small",color:i,fill:"transparent",animated:!1,handler:()=>this.selectAll(),isVisible:()=>this.selectionMode},{text:b(this.selectionMode?"CANCEL":"SELECTACTION"),size:"small",fill:"transparent",animated:!1,color:this.selectionMode?"stable":i,handler:()=>this.toggleSelectionMode()}];return o("div",{class:"form-content-blocks-container"},o("yoo-accordion",{class:"pages-accordion",forceEntryUpdate:!0,entries:[{title:"CONTENT",selected:!0,actionButtons:K(this.selectedLeftMenuOption)?[]:[...e]}],iconPairLeft:q,showBottomBorder:!0,allowMultipleSelection:!0},this.currentSlides.map(((t,i)=>o("div",{slot:i===this.selectedPageIndex?"CONTENT":"HIDDEN-CONTENT"},o("yoo-ion-scroll",{ref:t=>{i===this.selectedPageIndex&&(this.mainContentScrollElement=t)},scrollEvents:!0,onIonScroll:t=>this.onMainContentScrolled(t)},K(this.selectedLeftMenuOption)&&this.selectedScoring?this.renderScoringBlocksContainer(t):i===this.selectedPageIndex&&this.renderExpandableBlockContainer(t,i)))))))}renderExpandableBlockContainer(t,i){var e;return[o("div",{class:"form-block-sortable-container"},o("div",{class:{"expandable-form-block-container":!0,empty:t.items.length<1},ref:t=>this.expandableBlockContainers[i]=t},null===(e=t.items)||void 0===e?void 0:e.map(((t,e)=>t.formCreatorIndex<this.numberOfBlocksToRender&&!t.sequentialConditionalField&&t.name!==this.forceFieldRerender&&this.renderFormContentBlocks(t,e,i))))),t.items.length<1&&this.renderEmptyFieldState(),o("yoo-ion-infinite-scroll",{ref:t=>this.infiniteScrolls[i]=t,onIonInfinite:()=>this.onInfiniteScroll()},this.numberOfBlocksToRender<t.items.length&&o("yoo-ion-infinite-scroll-content",{loadingSpinner:"dots"}))]}renderEmptyFieldState(){return o("div",{class:"empty-state",ref:t=>this.fieldEmptyStateContainer=t},o("yoo-empty-state",{type:"scoring"}),o("div",{class:"text-container"},b("EMPTYFORMCREATOR"),o("yoo-icon",{name:"circle-plus",color:"stable"})))}renderFormContentBlocks({opValues:t,title:i,icon:e,category:s,name:a,customName:n,isExpanded:r,parentConditions:l,condition:h,type:d,values:c,hasScoring:p,selected:m,formCreatorIndex:b,required:f,hideMobile:v,locked:g},u,y){var x,C;const k=h,{restrictionConditions:I,fieldConditions:S}=It(k);null===c&&(null==t?void 0:t.length)&&(c=t[0]);const E={title:i,icon:e,category:s,name:a,customName:n,values:c,type:d,expanded:r,isFirst:0===u,isLast:u===this.currentSlides[y].items.length-1,fieldConditions:l,parentFieldConditions:S,restrictionConditions:I,hasScoring:p,selected:m,pageIndex:y,formCreatorIndex:b,required:f,hideMobile:v,locked:g},{childFields:T,sequentialConditionFields:O}=St(l,b),F=n||a;return u>=0&&y===this.selectedPageIndex&&this.parentBlockIndices.push(u),o("div",{class:"sortable-container","data-id":a},o("yoo-form-creator-block-expandable",{key:`yoo-form-creator-block-expandable-${(null==T?void 0:T.length)||0}`,options:this.options,id:`${y}-${u}`,ref:t=>{y===this.selectedPageIndex&&(this.expandableBlocks[u]=t)},showConditions:!this.selectionMode&&this.showConditions,class:{selection:this.selectionMode},formField:E,itemList:this.itemList,campaignType:null===(x=this.missionDescription)||void 0===x?void 0:x.type,sequentialConditionFields:O,isInSelectionMode:this.selectionMode,numberOfBlocksToRender:this.numberOfBlocksToRender,blockFieldExpansion:!w(this.newUndefinedCondition),disableFieldTranslation:this.isLesson&&(!this.translations||0===(null===(C=this.translations)||void 0===C?void 0:C.length))},o("div",{class:"parent-slot",slot:F},o("slot",{name:F})),null==T?void 0:T.map((t=>{var i;return(null===(i=t.sequentialConditionalField)||void 0===i?void 0:i.masterParentFieldName)===F&&o("div",{class:"child-slot",slot:t.name},o("slot",{name:t.name}))}))))}renderLivePreview(){var t;return o("yoo-form-creator-live-preview",{ref:t=>this.livePreviewElement=t,mode:"panel",hidden:this.isLivePreviewHidden,showDevices:!1,missionDescriptionTitle:null===(t=this.missionDescription)||void 0===t?void 0:t.title,onVisibilityToggled:()=>this.isLivePreviewHidden=!this.isLivePreviewHidden},o("div",{class:"slot-container",slot:"livePreview"},o("slot",{name:"livePreview"})))}renderFormDynamic(){var t;return o("div",{class:"form-dynamic-container"},o("yoo-header",null,o("yoo-navbar",null,o("yoo-truncate",null,v(null===(t=this.missionDescription)||void 0===t?void 0:t.title)))))}render(){return o(s,{class:U(this.host)},o("div",{class:"container",ref:t=>this.containerEl=t},this.renderHeader(),this.renderContent(),this.renderOverlays()))}get host(){return a(this)}static get watchers(){return{customFormFields:["onCustomFormFieldsUpdated"],selectedNewScoring:["updateSelectedScoring"],slides:["updateInternalSlides"],translations:["onTranslationsChanged"]}}};Ft.style=":root{--ease-in-back:cubic-bezier(0.36, 0, 0.66, -0.56);--ease-in-circ:cubic-bezier(0.55, 0, 1, 0.45);--ease-in-cubic:cubic-bezier(0.32, 0, 0.67, 0);--ease-in-expo:cubic-bezier(0.7, 0, 0.84, 0);--ease-in-quad:cubic-bezier(0.11, 0, 0.5, 0);--ease-in-quart:cubic-bezier(0.5, 0, 0.75, 0);--ease-in-quint:cubic-bezier(0.64, 0, 0.78, 0);--ease-in-sine:cubic-bezier(0.12, 0, 0.39, 0);--ease-out-back:cubic-bezier(0.34, 1.56, 0.64, 1);--ease-out-circ:cubic-bezier(0, 0.55, 0.45, 1);--ease-out-cubic:cubic-bezier(0.33, 1, 0.68, 1);--ease-out-expo:cubic-bezier(0.16, 1, 0.3, 1);--ease-out-quad:cubic-bezier(0.5, 1, 0.89, 1);--ease-out-quart:cubic-bezier(0.25, 1, 0.5, 1);--ease-out-quint:cubic-bezier(0.22, 1, 0.36, 1);--ease-out-sine:cubic-bezier(0.61, 1, 0.88, 1);--ease-in-out-back:cubic-bezier(0.68, -0.6, 0.32, 1.6);--ease-in-out-circ:cubic-bezier(0.85, 0, 0.15, 1);--ease-in-out-cubic:cubic-bezier(0.65, 0, 0.35, 1);--ease-in-out-expo:cubic-bezier(0.87, 0, 0.13, 1);--ease-in-out-quad:cubic-bezier(0.45, 0, 0.55, 1);--ease-in-out-quart:cubic-bezier(0.76, 0, 0.24, 1);--ease-in-out-quint:cubic-bezier(0.83, 0, 0.17, 1);--ease-in-out-sine:cubic-bezier(0.37, 0, 0.63, 1)}.tippy-box,.tippy-popper{white-space:pre-wrap}.tippy-box .tippy-tooltip,.tippy-popper .tippy-tooltip{padding:var(--spacing-02, 0.125rem)}.tippy-box{-webkit-box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1));box-shadow:var(--shadow-03, 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1))}.tippy-box .tippy-content.editable{padding:0}.tippy-box .tippy-content .flex{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}.tippy-box .tippy-content .hidden{display:none}.tippy-box .tippy-content .editable-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;color:var(--dark, #000000)}.tippy-box .tippy-content .editable-content .text-content{min-width:5rem;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content .text-content>div{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.tippy-box .tippy-content .editable-content.readonly{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .maxchar-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-item-align:end;align-self:flex-end;height:var(--spacing-24, 1.5rem);padding-right:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content yoo-button{padding:0 var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .editable-content .action-content .edit-content{-ms-flex-align:center;align-items:center}.tippy-box .tippy-content .editable-content .action-content .edit-content yoo-icon{padding-left:var(--spacing-08, 0.5rem);cursor:pointer}.tippy-box .tippy-content .editable-content .edit-content>*{cursor:pointer}.tippy-box .tippy-content .request-access{padding:var(--spacing-08, 0.5rem)}.tippy-box .tippy-content .request-access .title{margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-700, 700)}.tippy-box .tippy-content .request-access .sub-title{display:-ms-flexbox;display:flex;margin-bottom:var(--spacing-08, 0.5rem);font-weight:var(--font-weight-300, 300);font-size:var(--font-size-14, 0.875rem)}.tippy-box .tippy-content .request-access .sub-title yoo-avatar{margin:0 var(--spacing-04, 0.25rem)}.tippy-box .tippy-content .request-access yoo-button{max-width:8rem}.tippy-box[data-theme~=startameeting] .tippy-content{padding:0;border-radius:var(--border-radius-04, 0.25rem)}.tippy-box[data-theme~=large]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content .text-content{padding-right:var(--spacing-16, 1rem)}.tippy-box[data-theme~=large] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small]{font-size:var(--font-size-16, 1rem)}.tippy-box[data-theme~=small] .tippy-content{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content{padding:var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content .text-content{padding-right:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=small] .tippy-content .editable-content yoo-icon{margin:0 var(--spacing-04, 0.25rem)}.tippy-box[data-theme~=accent]{background-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=accent] .tippy-svg-arrow{fill:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--accent, #276ef1)}.tippy-box[data-theme~=accent][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--accent, #276ef1)}.tippy-box[data-theme~=anthracite]{background-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite] .tippy-svg-arrow{fill:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=anthracite][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite, #1a1a1a)}.tippy-box[data-theme~=app-color]{background-color:var(--app-color)}.tippy-box[data-theme~=app-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=app-color] .tippy-svg-arrow{fill:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--app-color)}.tippy-box[data-theme~=app-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--app-color)}.tippy-box[data-theme~=danger]{background-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger] .tippy-svg-arrow{fill:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger, #d44333)}.tippy-box[data-theme~=danger-light]{background-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=danger-light] .tippy-svg-arrow{fill:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=danger-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--danger-light, #f46885)}.tippy-box[data-theme~=dark]{background-color:var(--dark, #000000)}.tippy-box[data-theme~=dark] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=dark] .tippy-svg-arrow{fill:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--dark, #000000)}.tippy-box[data-theme~=dark][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--dark, #000000)}.tippy-box[data-theme~=energized]{background-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=energized] .tippy-svg-arrow{fill:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--energized, #fed05b)}.tippy-box[data-theme~=energized][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--energized, #fed05b)}.tippy-box[data-theme~=info]{background-color:var(--info, #fc459e)}.tippy-box[data-theme~=info] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=info] .tippy-svg-arrow{fill:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--info, #fc459e)}.tippy-box[data-theme~=info][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--info, #fc459e)}.tippy-box[data-theme~=light]{background-color:var(--light, #ffffff)}.tippy-box[data-theme~=light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light] .tippy-svg-arrow{fill:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light, #ffffff)}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light, #ffffff)}.tippy-box[data-theme~=light-orange]{background-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-orange] .tippy-svg-arrow{fill:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-orange][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-orange, #fcae49)}.tippy-box[data-theme~=light-to-text-color]{background-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=light-to-text-color] .tippy-svg-arrow{fill:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=light-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--light-to-text-color, #ffffff)}.tippy-box[data-theme~=royal]{background-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=royal] .tippy-svg-arrow{fill:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--royal, #7577ff)}.tippy-box[data-theme~=royal][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--royal, #7577ff)}.tippy-box[data-theme~=stable]{background-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable] .tippy-svg-arrow{fill:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable, #adadad)}.tippy-box[data-theme~=stable-alt]{background-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-alt] .tippy-svg-arrow{fill:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-alt][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-alt, #d0d0d0)}.tippy-box[data-theme~=stable-light]{background-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-light] .tippy-svg-arrow{fill:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-light][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-light, #f1f1f1)}.tippy-box[data-theme~=stable-ultralight]{background-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=stable-ultralight] .tippy-svg-arrow{fill:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=stable-ultralight][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--stable-ultralight, #fafafa)}.tippy-box[data-theme~=success]{background-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=success] .tippy-svg-arrow{fill:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--success, #3aa76d)}.tippy-box[data-theme~=success][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--success, #3aa76d)}.tippy-box[data-theme~=text-color]{background-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=text-color] .tippy-svg-arrow{fill:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--text-color, #807f83)}.tippy-box[data-theme~=text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--text-color, #807f83)}.tippy-box[data-theme~=warning]{background-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=warning] .tippy-svg-arrow{fill:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--warning, #ff6402)}.tippy-box[data-theme~=warning][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--warning, #ff6402)}.tippy-box[data-theme~=anthracite-to-text-color]{background-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-tooltip{padding:var(--spacing-08, 0.5rem)}.tippy-box[data-theme~=anthracite-to-text-color] .tippy-svg-arrow{fill:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=top]>.tippy-arrow::before{border-top-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=bottom]>.tippy-arrow::before{border-bottom-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=left]>.tippy-arrow::before{border-left-color:var(--anthracite-to-text-color, #1a1a1a)}.tippy-box[data-theme~=anthracite-to-text-color][data-placement^=right]>.tippy-arrow::before{border-right-color:var(--anthracite-to-text-color, #1a1a1a)}:root{--safe-area-inset-top:0;--safe-area-inset-right:0;--safe-area-inset-bottom:0;--safe-area-inset-left:0}@supports (top: constant(safe-area-inset-top)){:root{--safe-area-inset-top:constant(safe-area-inset-top);--safe-area-inset-right:constant(safe-area-inset-right);--safe-area-inset-bottom:constant(safe-area-inset-bottom);--safe-area-inset-left:constant(safe-area-inset-left)}}@supports (top: env(safe-area-inset-top)){:root{--safe-area-inset-top:env(safe-area-inset-top);--safe-area-inset-right:env(safe-area-inset-right);--safe-area-inset-bottom:env(safe-area-inset-bottom);--safe-area-inset-left:env(safe-area-inset-left)}}.fr-popup.fr-active{z-index:30004 !important;display:block !important;opacity:1 !important}:host{display:block;width:100%;height:100%;background:var(--light-to-dark, #ffffff)}:host .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow:hidden}:host .container .content{display:-ms-flexbox;display:flex;height:calc(100% - 3rem);background-color:var(--stable-ultralight-to-light-10, #fafafa)}:host .container .content .sortable-chosen yoo-form-creator-block-expandable{--expandable-block-border:0.125rem solid var(--accent, #276ef1)}:host .container .content .left-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-sizing:border-box;box-sizing:border-box;min-width:3rem;padding:var(--spacing-16, 1rem) 0;background:var(--light-to-dark, #ffffff);border-right:var(--border-width-01, 0.0625rem) solid var(--stable-light, #f1f1f1)}:host .container .content .left-menu-top,:host .container .content .left-menu-bottom{display:grid;gap:var(--spacing-16, 1rem)}:host .container .content .left-menu-top>*,:host .container .content .left-menu-bottom>*{cursor:pointer}:host .container .content .left-selection{position:relative;width:22rem;min-width:22rem;height:100%;overflow:hidden;background:var(--light-to-dark, #ffffff);border-right:0.0625rem solid var(--stable-light, #f1f1f1);-webkit-transition:0.3s;transition:0.3s}:host .container .content .left-selection.hide{width:0;min-width:0}:host .container .content .left-selection yoo-accordion{--outer-container-padding:0 var(--spacing-20-deprecated, 1.25rem);--outer-container-width:calc(100% - 2.5rem)}:host .container .content .left-selection yoo-accordion yoo-accordion.sub-accordion{--outer-container-padding:0;--outer-container-width:100%}:host .container .content .left-selection.scoring{min-width:26.25rem;max-width:26.25rem;padding-top:var(--spacing-16, 1rem)}:host .container .content .left-selection.scoring yoo-ion-scroll{--top-pos:3.5rem;padding:0 0 5rem var(--spacing-16, 1rem)}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container{display:-ms-flexbox;display:flex}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container yoo-form-creator-condition-block,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container yoo-form-creator-condition-block{-ms-flex:1;flex:1}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container yoo-tooltip,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container yoo-tooltip{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .container .content .left-selection .logic-container .condition-block-selection .condition-sortable-container .help-container,:host .container .content .left-selection .logic-container .condition-block-selection .restrictions-sortable-container .help-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:0.875rem;height:0.875rem;margin-left:var(--spacing-10-deprecated, 0.625rem);color:var(--light, #ffffff);font-size:var(--font-size-12, 0.75rem);background:var(--dark-to-light, #000000);border-radius:50%}:host .container .content .left-selection .logic-container yoo-ion-scroll{padding-top:var(--spacing-08, 0.5rem)}:host .container .content .form-content{width:100%;min-width:25rem;max-width:800px;height:100%;margin:auto;padding:var(--spacing-08, 0.5rem) var(--spacing-24, 1.5rem) var(--spacing-24, 1.5rem);}:host .container .content .form-content::-webkit-scrollbar{width:var(--spacing-08, 0.5rem);height:var(--spacing-08, 0.5rem)}:host .container .content .form-content::-webkit-scrollbar-track{background-color:transparent;border-radius:var(--border-radius-08, 0.5rem)}:host .container .content .form-content::-webkit-scrollbar-thumb{background-color:transparent;border-radius:var(--border-radius-08, 0.5rem)}:host .container .content .form-content:hover::-webkit-scrollbar-track{background-color:var(--stable-light-to-anthracite)}:host .container .content .form-content:hover::-webkit-scrollbar-thumb{background:var(--stable, #adadad)}:host .container .content .form-content.relative{position:relative}:host .container .content .form-content yoo-accordion.pages-accordion{--accordion-background:var(--stable-background)}:host .container .content .form-content yoo-toast{position:absolute;top:auto;right:calc(50% - 225px);bottom:4rem;left:auto;height:auto}:host .container .content .form-content .page-condition-overlay{position:absolute;top:11rem;right:-1rem;bottom:0;left:0;z-index:1;background:var(--dark-to-light, #000000);opacity:0.8}:host .container .content .form-content .scoring-empty-state{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;height:100%}:host .container .content .form-content .scoring-empty-state yoo-empty-state{height:26rem}:host .container .content .form-content .scoring-empty-state div{color:var(--text-color-to-light-60, #807f83);font-size:var(--font-size-16, 1rem);opacity:0.7;padding:var(--spacing-16, 1rem)}:host .container .content .form-content .form-content-blocks-container{position:relative;height:100%;max-height:100%}:host .container .content .form-content .form-content-blocks-container yoo-ion-scroll{--top-pos:2.6875rem}:host .container .content .form-content .form-content-blocks-container .empty-state{position:absolute;top:20px;right:0;bottom:auto;left:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:2;text-align:center;background:var(--stable-light-to-ligh-10);border:0.0625rem dashed var(--stable-alt, #d0d0d0)}:host .container .content .form-content .form-content-blocks-container .empty-state yoo-empty-state{width:8rem;height:6.25rem;padding:var(--spacing-16, 1rem)}:host .container .content .form-content .form-content-blocks-container .empty-state .text-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:12rem;padding:var(--spacing-16, 1rem);color:var(--stable, #adadad);font-size:var(--font-size-16, 1rem)}:host .container .content .form-content .form-content-blocks-container .empty-state .text-container yoo-icon{margin:var(--spacing-08, 0.5rem) 0 0 var(--spacing-04, 0.25rem)}:host .container .content .form-content .form-content-blocks-container .expandable-form-block-container{padding-bottom:10rem}:host .container .content .form-content .form-content-blocks-container .form-block-sortable-container{position:relative;min-height:calc(100% - 13.75rem);padding:0 var(--spacing-10-deprecated, 0.625rem) 12.5rem}:host .container .content .form-content .form-content-blocks-container .form-block-sortable-container .expandable-form-block-container{min-height:3rem;padding-bottom:0}:host .container .content .form-content .form-content-blocks-container .form-block-sortable-container .expandable-form-block-container.empty{width:calc(100% - 2px);height:12.75rem;padding:0}:host .container .content .parent-slot{width:100%}:host yoo-accordion{--title-icon-color:var(--stable-alt, #d0d0d0)}";export{Ft as yoo_form_creator}
|